/* Official Delivery header component. Load after theme-tokens.css and style.css.
   Keep the existing header markup and app.js hooks when reusing. */
/* Shared institutional header language, with Delivery controls retained. */
header{--header-gutter:var(--header-gutter-desktop)}
header .header-inner,header .nav-content{
 width:calc(100% - var(--header-gutter) * 2);max-width:none;margin-inline:auto;
}
header .department-menu{left:var(--header-gutter);max-width:calc(100% - var(--header-gutter) * 2)}
@media(max-width:1160px){header{--header-gutter:var(--header-gutter-tablet)}}
@media(max-width:640px){header{--header-gutter:var(--header-gutter-mobile)}}
header{
 --header-background:var(--green-dark);
 background:var(--header-background);color:var(--green-dark);
 border-top:var(--header-top-accent-width) solid var(--header-top-accent-color);border-bottom:var(--header-border);
 box-shadow:var(--header-shadow);
}
.header-inner{
 display:grid;grid-template-columns:154px minmax(200px,1fr) auto auto auto;
 align-items:center;gap:var(--header-gap-desktop);min-height:var(--header-height-min);padding-block:var(--header-padding-desktop);
}
.header-inner .brand{justify-self:start;line-height:var(--line-height-1)}
.header-inner .search{
 order:0;display:flex;width:100%;height:var(--header-search-height);margin:0;
 background:var(--background);border:1px solid var(--line);border-radius:var(--header-search-radius);
 color:var(--green-dark);
}
.header-inner .search input{border-radius:var(--header-search-radius);padding:var(--header-search-padding);color:var(--ink)}
.header-inner .search button{flex:0 0 46px;padding:10px;border-radius:0 8px 8px 0}
.header-inner .search:focus-within{border-color:var(--green-dark);box-shadow:0 0 0 1px var(--green-dark)}
.header-inner .header-action{color:var(--white);padding:var(--header-action-padding);gap:var(--header-action-gap);border-radius:var(--header-search-radius);min-height:var(--header-action-height-min)}
.header-inner .header-action small{color:var(--white);font-size:var(--font-size-12px);line-height:var(--line-height-1_5)}
.header-inner .header-action b{font-size:var(--font-size-14px);line-height:var(--line-height-1_4)}
.header-inner .location{margin:0;max-width:210px}
.header-inner .location b{max-width:165px}
.header-inner .account{display:flex}
.header-inner .account>span{white-space:nowrap}
.header-inner .cart-button{
 display:flex;align-items:center;justify-content:center;gap:8px;
 background:var(--green-dark);color:var(--white);padding:var(--header-cart-padding);min-height:var(--header-search-height);
}
.header-inner .cart-button:after{content:'Carrinho';font-size:var(--font-size-14px);font-weight:var(--font-weight-700)}
.header-inner .cart-button>span{right:-6px;top:-6px;min-width:22px;border:2px solid var(--white);line-height:var(--line-height-1_2)}
.header-inner .header-action:hover{background:var(--surface-soft);color:var(--green-dark);filter:none}
.header-inner .header-action:hover small{color:var(--muted)}
.header-inner .cart-button:hover{color:var(--header-cta-foreground)}
.header-inner button:focus-visible{outline-color:var(--yellow)}
.header-inner .search button:focus-visible{outline-color:var(--green-dark)}
.header-inner .cart-button{background:var(--header-cta-background);color:var(--header-cta-foreground);border:1px solid transparent;transition:background .18s,transform .18s}
.header-inner .cart-button:hover{background:var(--header-cta-background);filter:brightness(.97);transform:translateY(-2px)}
.header-inner .cart-button:focus-visible{outline:3px solid var(--white);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.header-inner .cart-button{transition:none}.header-inner .cart-button:hover{transform:none}}
header button:focus-visible{outline-color:var(--green-dark)}
.nav{background:var(--background);color:var(--green-dark);border-top:var(--header-border);min-height:0}
.nav-content{gap:var(--nav-gap-desktop);justify-content:space-between;min-height:var(--header-menu-height)}
.nav button,.nav button:first-child{
 font-size:var(--font-size-14px);font-weight:var(--font-weight-700);line-height:var(--line-height-1_5);min-height:var(--header-action-height-min);padding:var(--header-action-padding);
 border-radius:var(--nav-item-radius);
}
.nav button:first-child{padding-right:24px;border-right:1px solid var(--line);border-radius:0;gap:10px}
.nav button:hover{background:var(--surface-soft);color:var(--green-dark);filter:none}
.nav button:nth-child(2){display:block}
.department-menu{border:1px solid var(--line);border-radius:0 0 10px 10px}
@media(max-width:1160px){
 .header-inner{grid-template-columns:154px 1fr auto auto;gap:var(--header-gap-tablet);padding-block:var(--header-padding-compact)}
 .header-inner .search{grid-column:1/-1;grid-row:2;order:0}
 .header-inner .location{justify-self:end;margin:0}
 .nav-content{justify-content:flex-start;gap:12px}
}
@media(max-width:760px){
 .header-inner{grid-template-columns:112px minmax(0,1fr) 44px 48px;gap:var(--header-gap-small);min-height:0}
 .header-inner .location{max-width:100%;padding:4.8px 0;gap:5px}
 .header-inner .location small{font-size:var(--font-size-12px)}
 .header-inner .location b{font-size:var(--font-size-14px);max-width:100%}
 .header-inner .account{justify-content:center;padding:10px;min-width:44px}
 .header-inner .account>span{display:none}
 .header-inner .cart-button{padding:11px;min-width:48px}
 .header-inner .cart-button:after{display:none}
 .nav-content{gap:8px}
 .nav button,.nav button:first-child{font-size:var(--font-size-14px);padding:var(--nav-item-padding-mobile)}
}
@media(max-width:640px){
 .header-inner{grid-template-columns:minmax(0,1fr) 44px 48px;gap:var(--header-gap-mobile)}
 .header-inner .brand{grid-column:1;grid-row:1}
 .header-inner .account{grid-column:2;grid-row:1}
 .header-inner .cart-button{grid-column:3;grid-row:1}
 .header-inner .search{grid-column:1/-1;grid-row:2}
 .header-inner .location{grid-column:1/-1;grid-row:3;justify-self:stretch;justify-content:flex-start;min-height:36px}
 .header-inner .location>span:not(:last-child){display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;min-width:0}
 .header-inner .location>span:last-child{display:block;margin-left:auto}
 .header-inner .location b{overflow-wrap:anywhere}
}

header .nav-shortcuts svg{stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}

/* Official v22 navigation geometry, from the supplied audit. */

header .nav{background:var(--background)}
header .nav-content.nav-shortcuts{display:flex;align-items:center;justify-content:space-between;gap:var(--header-menu-gap);padding-block:var(--header-menu-padding);min-height:var(--header-menu-height);height:auto;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
header .nav-content.nav-shortcuts::-webkit-scrollbar{display:none}
header .nav-content.nav-shortcuts>a,header .nav-content.nav-shortcuts>button{display:flex;flex:1 0 auto;align-items:center;gap:8px;min-width:0;min-height:var(--header-menu-target);padding:0 16px 0 0;border:0;border-right:1px solid var(--nav-shortcut-divider);border-radius:0;background:transparent;color:var(--green-dark);text-align:left;white-space:nowrap;font-family:Arial,Helvetica,sans-serif!important;font-size:var(--header-menu-font)!important;font-weight:400!important;line-height:1.5!important;letter-spacing:normal!important}
header .nav-content.nav-shortcuts>:last-child{border-right:0;padding-right:0}
header .nav-shortcuts .nav-shortcut-icon{display:grid;place-items:center;flex:0 0 var(--header-menu-circle);width:var(--header-menu-circle);height:var(--header-menu-circle);border-radius:50%;background:#eaf0e0;color:var(--green-dark);transition:background .2s}
header .nav-shortcuts .nav-shortcut-icon svg{width:var(--header-menu-icon);height:var(--header-menu-icon)}
header .nav-shortcuts .nav-shortcut-label{min-width:0}
header .nav-shortcuts .nav-shortcut-arrow{flex:0 0 12px;width:12px;height:12px;margin-left:auto;color:var(--green-dark)}
header .nav-content.nav-shortcuts>a:hover,header .nav-content.nav-shortcuts>button:hover{background:transparent;color:var(--green-dark)}
header .nav-shortcuts>a:hover .nav-shortcut-icon,header .nav-shortcuts>button:hover .nav-shortcut-icon,header .nav-shortcuts>a:focus-visible .nav-shortcut-icon,header .nav-shortcuts>button:focus-visible .nav-shortcut-icon{background:var(--yellow)}
@media(max-width:1160px){header .nav-content.nav-shortcuts{justify-content:flex-start;gap:12px}header .nav-content.nav-shortcuts>a,header .nav-content.nav-shortcuts>button{flex:0 0 auto;padding-right:12px}header .nav-shortcuts .nav-shortcut-arrow{display:none}}
@media(prefers-reduced-motion:reduce){header .nav-shortcuts .nav-shortcut-icon{transition:none}}

/* Explicit component reset prevents legacy page rules from changing the header. */
header{font-family:var(--font-family-base);font-size:16px;font-weight:400;line-height:1.5;letter-spacing:normal;position:sticky;top:0;z-index:20;border-top:0}
header .header-inner{height:auto;padding-inline:0;min-width:0}
header .header-inner .brand{width:var(--header-logo-width)}
header .header-inner .brand-logo{width:var(--header-logo-width);height:var(--header-logo-height);aspect-ratio:auto;object-fit:contain;object-position:center}
header .header-inner .search{align-items:center;min-width:0}
header .search input{font:400 16px/1.5 var(--font-family-base);letter-spacing:normal;min-width:0;background:transparent;border:0}
header .search input::placeholder{color:#566459}
header .search button{width:46px;height:auto;background:transparent}
header .search svg{width:21px;height:21px}
header svg{stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none;vertical-align:middle;flex-shrink:0}
header .header-action>svg{width:24px;height:24px}
header button:focus-visible,header input:focus-visible{outline:3px solid #238C28;outline-offset:5px}
header .header-inner .cart-button:focus-visible{outline:3px solid white;outline-offset:3px}
header .nav{min-height:0;padding:0;overflow:visible}
header .nav-content.nav-shortcuts>button{margin:0}
header .nav-content.nav-shortcuts>:last-child{padding-right:0}
header .delivery-menu-toggle{display:none}
html{scroll-padding-top:calc(var(--sticky-header-height,121.04px) + 16px)}
/* Offset is provided by scroll-padding, without adding the previous fixed margins. */
.shelf,.recipes,#catalog,.promo-grid,.campaign-pair{scroll-margin-top:0}
@media(max-width:760px){
 header .header-inner .brand{width:var(--header-logo-mobile-width)}
 header .header-inner .brand-logo{width:var(--header-logo-mobile-width);height:var(--header-logo-mobile-height)}
}
@media(max-width:640px){
 header .header-inner{grid-template-columns:minmax(0,1fr) 44px 48px 44px}
 header .delivery-menu-toggle{display:flex;align-items:center;justify-content:center;grid-column:4;grid-row:1;width:37px;height:37px;padding:0;border-radius:50%;color:white;background:none}
 header .delivery-menu-toggle svg{width:24px;height:24px}
 header .delivery-menu-toggle:hover{background:#E0E9D7;filter:none}
 header .delivery-menu-toggle .menu-close{display:none}
 header .delivery-menu-toggle[aria-expanded="true"] .menu-open{display:none}
 header .delivery-menu-toggle[aria-expanded="true"] .menu-close{display:block}
 header .nav-content.nav-shortcuts{display:none;flex-direction:row;max-height:none}
 header .nav-content.nav-shortcuts.is-open{display:flex;overflow-x:auto;overflow-y:hidden}
 header .header-inner .cart-button{border-radius:6px}
}
@media(max-width:380px){
 header .header-inner .brand{width:var(--header-logo-small-width)}
 header .header-inner .brand-logo{width:var(--header-logo-small-width);height:var(--header-logo-small-height)}
}
@media(prefers-reduced-motion:reduce){header *{transition:none!important;animation:none!important}html{scroll-behavior:auto}}

/* Shared institutional pill search; adapts to its available grid column. */
header .header-inner .search{width:100%;max-width:var(--header-search-max-width);justify-self:center;height:var(--header-search-pill-height);background:var(--header-search-background);border:0;border-radius:var(--header-search-pill-radius);color:var(--green-dark)}
header .header-inner .search input{height:100%;border-radius:var(--header-search-pill-radius);padding:0 18px;color:var(--ink);font:400 16px/24px var(--font-family-base)}
header .header-inner .search button{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;padding:0;border-radius:var(--header-search-pill-radius);color:var(--green-dark)}

/* Delivery controls matched to the supplied white-icon reference. */
header .header-inner .location,header .header-inner .account{gap:10px;padding:6px 8px;min-height:44px;align-items:center;color:#fff}
header .header-inner .location{max-width:260px}
header .header-inner .location>svg{width:22px;height:22px;stroke-width:1.8}
header .header-inner .account>svg{width:22px;height:22px;stroke-width:1.8}
header .header-inner .location small{font-size:11px;font-weight:700;line-height:1.3}
header .header-inner .location b{font-size:13px;line-height:1.3;max-width:195px}
header .header-inner .account small{font-size:12px;font-weight:400;line-height:1.3}
header .header-inner .account b{font-size:13px;line-height:1.3}
header .header-inner .control-chevron{display:flex;flex:0 0 16px;margin-left:2px}
header .header-inner .control-chevron svg{width:16px;height:16px;stroke-width:2}
header .header-inner .location:hover,header .header-inner .account:hover{background:#ffffff12;color:#fff}
header .header-inner .location:hover small,header .header-inner .account:hover small{color:#fff}
header .header-inner .cart-button{position:relative;gap:4px;padding:8px 4px;min-width:48px;min-height:44px;background:transparent;border:0;color:#fff;transform:none}
header .header-inner .cart-button:after{content:none;display:none}
header .header-inner .cart-button>svg{width:28px;height:28px;stroke-width:2}
header .header-inner .cart-button>span{position:static;min-width:14px;padding:0;border:0;background:transparent;color:#fff;font-size:11px;font-weight:400;line-height:1;align-self:flex-start;margin-top:2px}
header .header-inner .cart-button:hover{background:#ffffff12;color:#fff;transform:none;filter:none}
header .header-inner .cart-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:760px){
 header .header-inner .account{padding:6px;justify-content:center}
 header .header-inner .cart-button{padding:6px 2px}
 header .header-inner .location{max-width:100%;gap:8px;padding:4.8px 0}
 header .header-inner .location b{max-width:100%}
}
@media(max-width:640px){
 header .header-inner .location>span:not(:last-child){display:block;min-width:0}
 header .header-inner .location b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 header .header-inner .location>span:last-child{display:flex;margin-left:auto}
}

/* Larger logo and search aligned next to the brand (19/10/2026). */
@media(min-width:1161px){
 header .header-inner{grid-template-columns:var(--header-logo-width) minmax(200px,1fr) auto auto auto;column-gap:16px}
 header .header-inner .search{justify-self:start}
}
@media(min-width:761px) and (max-width:1160px){
 header .header-inner{grid-template-columns:var(--header-logo-width) 1fr auto auto}
}
@media(min-width:641px) and (max-width:760px){
 header .header-inner{grid-template-columns:var(--header-logo-mobile-width) minmax(0,1fr) 44px 48px}
}
