/* Scoped header: utility, commerce row and navigation never share a grid. */
.cc-store-header { background: var(--cc-bg); color: var(--cc-ink); }
.cc-store-header a:focus-visible,
.cc-store-header button:focus-visible { outline: 2px solid var(--cc-copper-dark); outline-offset: 4px; }
.cc-store-header .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cc-header-utility { border-bottom: 1px solid var(--cc-line); color: var(--cc-muted); font-size: 13px; }
.cc-header-utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; padding-block: 8px; }
.cc-header-utility-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; }
.cc-header-social { display: grid; place-items: center; width: 28px; height: 28px; }
.cc-header-social img { display: block; width: 24px; height: 24px; object-fit: contain; }
.cc-header-main { display: grid; grid-template-columns: 230px minmax(280px, 1fr) auto; align-items: center; gap: 32px; padding-block: 28px; }
.cc-header-brand { display: block; width: 230px; max-width: 100%; }
.cc-header-brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.cc-product-search { display: flex; align-items: center; min-width: 0; width: 100%; height: 52px; background: #fff; border: 1px solid var(--cc-line); border-radius: 8px; }
.cc-product-search:focus-within { border-color: var(--cc-copper-dark); box-shadow: 0 0 0 2px var(--cc-blush); }
.cc-product-search input[type=search] { width: 100%; min-width: 0; flex: 1; height: 100%; padding: 0 16px; border: 0; background: transparent; color: var(--cc-ink); font: inherit; font-size: 16px; outline: none; }
.cc-product-search button { align-self: stretch; flex: 0 0 auto; border: 0; border-radius: 0 7px 7px 0; padding: 0 15px; background: var(--cc-brown); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cc-header-actions { display: flex; align-items: center; gap: 24px; }
.cc-header-action { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.cc-header-action > img, .cc-header-bag-icon img { display: block; flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.cc-header-action > span:not(.cc-header-bag-icon) { display: grid; gap: 2px; }
.cc-header-action small { font-size: 13px; line-height: 1.4; color: var(--cc-muted); }
.cc-header-action strong { font-size: 14px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
.cc-header-bag-icon { position: relative; display: block; flex: 0 0 40px; width: 40px; height: 40px; }
.cc-header-cart-count { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 21px; height: 21px; padding-inline: 5px; border-radius: 20px; background: var(--cc-copper-dark); color: #fff; border: 2px solid var(--cc-bg); font-size: 12px; line-height: 1; }
.cc-header-menu-row { border-block: 1px solid var(--cc-line); background: #fff; }
.cc-header-menu-toggle { display: none; }
.cc-header-menu { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 42px; list-style: none; margin: 0; padding: 0; }
.cc-header-menu > li { position: relative; }
.cc-header-menu a { display: block; padding: 17px 0; font-size: 15px; font-weight: 700; }
.cc-header-menu a:hover { color: var(--cc-copper-dark); }
.cc-header-menu .sub-menu { display: none; position: absolute; z-index: 25; top: 100%; left: 0; min-width: 190px; max-width: min(260px, 80vw); list-style: none; padding: 8px 16px; margin: 0; background: #fff; border: 1px solid var(--cc-line); box-shadow: 0 8px 20px #2a1d1814; }
.cc-header-menu > li:last-child > .sub-menu { left: auto; right: 0; }
.cc-header-menu li:hover > .sub-menu, .cc-header-menu li:focus-within > .sub-menu { display: block; }
.cc-header-menu .sub-menu a { padding: 10px 0; }
/* Tablet: full-width search on its own row instead of squeezed desktop columns. */
@media (max-width: 1199px) {
    .cc-header-main { grid-template-columns: 230px minmax(0, 1fr); gap: 22px 32px; padding-block: 24px; }
    .cc-header-actions { justify-content: flex-end; }
    .cc-product-search { grid-column: 1 / -1; grid-row: 2; }
    .cc-header-menu { gap: 0 28px; }
}
@media (max-width: 800px) {
    .cc-header-main { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
    .cc-header-brand { width: 190px; }
    .cc-header-actions { gap: 18px; }
    .cc-header-orders { display: none; }
    .cc-header-utility-inner { align-items: flex-start; }
    .cc-header-utility-links { gap: 8px 16px; }
    .cc-header-menu { gap: 0 22px; }
}
/* Mobile: logo, essential actions, full-width search and independent menu. */
@media (max-width: 640px) {
    .cc-store-header .cc-wrap { width: calc(100% - 32px); }
    .cc-header-utility-inner { flex-wrap: wrap; justify-content: center; gap: 6px; text-align: center; }
    .cc-header-utility-links { justify-content: center; gap: 8px 18px; }
    .cc-header-main { grid-template-columns: minmax(0, 1fr) auto; padding-block: 18px; gap: 18px 16px; }
    .cc-header-brand { width: 180px; }
    .cc-header-actions { gap: 18px; }
    .cc-header-action { flex-direction: column; gap: 3px; }
    .cc-header-account small { display: none; }
    .cc-header-account strong { font-size: 0; }
    .cc-header-account strong::after { content: 'Conta'; font-size: 13px; }
    .cc-header-action strong { font-size: 13px; }
    .cc-header-account strong { font-size: 0; }
    .cc-header-orders { display: none; }
    .cc-header-menu-toggle { align-items: center; gap: 10px; min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--cc-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
    .cc-header-enhanced .cc-header-menu-toggle { display: flex; }
    .cc-header-menu-lines { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
    .cc-header-menu-lines::after { content: ''; position: absolute; top: 4px; left: 0; width: 100%; border-top: 2px solid currentColor; }
    .cc-header-enhanced .cc-header-navigation:not(.is-open) { display: none; }
    .cc-header-menu { display: grid; justify-content: stretch; gap: 0; padding-block: 8px; }
    .cc-header-menu a { padding: 12px 0; white-space: normal; overflow-wrap: anywhere; }
    .cc-header-menu .sub-menu { display: block; position: static; min-width: 0; max-width: none; border: 0; padding: 0 16px; box-shadow: none; }
}

/* Native disclosure: preserve links; CORE alone controls marked groups. */
.cc-header-menu li { position: relative; }
.cc-header-menu li > a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.cc-header-menu [data-mds-navigation-group] { display: inline-block; max-width: 100%; padding: 17px 0; font-size: 15px; font-weight: 700; text-align: left; }
.cc-submenu-toggle::after,
.cc-header-menu button[data-mds-navigation-group]::after,
.cc-footer-menu button[data-mds-navigation-group]::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.cc-submenu-toggle::after { margin-left: 0; }
.cc-header-menu [data-mds-navigation-group]:hover { color: var(--cc-copper-dark); }
.cc-header-menu .sub-menu { width: 220px; }
.cc-header-menu .sub-menu a, .cc-header-menu .sub-menu [data-mds-navigation-group] { padding-block: 10px; }
.cc-header-menu .sub-menu .sub-menu { top: 0; left: 100%; right: auto; }
.cc-header-menu .sub-menu.cc-submenu-left { left: auto; right: 100%; }
.cc-header-menu .sub-menu.cc-submenu-inline,
.cc-header-menu .cc-submenu-scroll .sub-menu { position: static; width: 100%; min-width: 0; max-width: 100%; box-shadow: none; border: 0; }
.cc-header-menu .sub-menu.cc-submenu-scroll { overflow-y: auto; overscroll-behavior: contain; }
.cc-submenu-toggle { border: 0; background: transparent; color: inherit; min-width: 44px; min-height: 44px; cursor: pointer; font: inherit; vertical-align: middle; }
.cc-header-menu li.cc-submenu-open > .sub-menu { display: block; }
.cc-header-menu .sub-menu[hidden], .cc-header-menu li.cc-submenu-closed > .sub-menu { display: none !important; }
.cc-footer-menu, .cc-footer-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.cc-footer-menu .sub-menu { padding-left: 1rem; }
.cc-footer-menu [data-mds-navigation-group] { color: inherit; font: inherit; text-align: left; }
.cc-footer-menu button[data-mds-navigation-group] { padding: 0; }
.cc-footer-menu button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 640px) {
    .cc-header-menu .sub-menu, .cc-header-menu .sub-menu .sub-menu { position: static; width: 100%; min-width: 0; max-width: 100%; }
    .cc-header-menu [data-mds-navigation-group] { padding-block: 12px; }
    .cc-submenu-toggle { display: inline-block; }
}
