/* Compact approved header. Explicit scope wins over the legacy blue-theme masthead.
   No category navigation selectors are changed. */
body > header .masthead-wave{position:relative;z-index:40;overflow:visible;background:#06317c url('assets/header-ola-mendocina.png') center/100% 100% no-repeat}
body > header .masthead-wave .header-inner{--logo-wave-width:610px;--masthead-gutter:max(0px,calc((100vw - 1440px)/2));position:relative;isolation:isolate;display:grid;grid-template-columns:236px minmax(0,1fr) 160px 140px;grid-template-areas:'brand search gluten cart';align-items:center;gap:20px;max-width:1440px;width:100%;height:160px;min-height:0;aspect-ratio:auto;margin:0 auto;padding:8px 32px;background:none}
/* Extend the flat left end to the viewport while keeping the original curve aligned with the logo. */
body > header .masthead-wave .header-inner::before{content:'';position:absolute;left:calc(-1 * var(--masthead-gutter));top:0;width:calc(var(--logo-wave-width) + var(--masthead-gutter));height:100%;pointer-events:none;z-index:-1;background:url('assets/header-logo-wave.svg?v=20261015-edge') right center/calc(var(--logo-wave-width) * 11) 100% no-repeat}
body > header .masthead-wave .brand{grid-area:brand;position:relative;display:flex;justify-content:center;align-items:center;left:auto;top:auto;width:236px;height:140px;max-width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body > header .masthead-wave .brand::before{content:none}
body > header .masthead-wave .brand img{display:block;opacity:1;width:216px;height:130px;max-width:100%;object-fit:contain;background:transparent;border:0;border-radius:0;box-shadow:none}
body > header .masthead-wave .search{grid-area:search;position:relative;z-index:2;display:flex;align-items:center;left:auto;top:auto;width:100%;height:58px;min-width:0;max-width:none;gap:10px;margin:0;padding:5px 6px 5px 18px;border:1px solid #e3e9f2;border-radius:36px;background:#fff;box-shadow:0 3px 14px #001e4f26}
body > header .masthead-wave .search>svg{position:static;opacity:1;width:25px;height:25px;color:#778296}
body > header .masthead-wave .search input{position:static;width:100%;height:42px;min-width:0;margin:0;padding:0;flex:1;background:transparent;color:#26334e;border:0;font-size:17px;font-weight:400;line-height:1.4}
body > header .masthead-wave .search input::placeholder{color:#778296;opacity:1}
body > header .masthead-wave .search-submit{position:static;flex-shrink:0;width:auto;height:46px;min-height:46px;padding:9px 23px;margin:0;border:0;border-radius:28px;background:#ed0024;color:#fff;box-shadow:none;font-size:16px;font-weight:700}
body > header .masthead-wave .search-submit:hover{background:#ce0022}
body > header .masthead-wave .search:focus-within{outline:3px solid #53c9ff;outline-offset:3px;box-shadow:none}
body > header .masthead-wave .gluten-access{grid-area:gluten;position:relative;left:auto;top:auto;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:9px;width:160px;height:62px;min-width:0;min-height:62px;margin:0;padding:8px 12px;background:#fff;border:1px solid #dce7fb;border-radius:16px;color:#0a2d61;box-shadow:0 3px 14px #001e4f26}
body > header .masthead-wave .gluten-access>svg{opacity:1;width:35px;height:35px;color:#0a2d61}
body > header .masthead-wave .gluten-access>span{opacity:1;font-size:15px;font-weight:700;line-height:1.25;text-align:left;color:#0a2d61}
body > header .masthead-wave .gluten-access:hover{background:#edf6ff}
body > header .masthead-wave .gluten-access[aria-pressed='true']{background:#e4f3ff;border-color:#078ac9;box-shadow:inset 0 0 0 2px #078ac9}
body > header .masthead-wave .cart-button{grid-area:cart;position:relative;left:auto;top:auto;display:flex;align-items:center;justify-content:center;gap:10px;width:140px;height:62px;min-width:0;min-height:62px;margin:0;padding:10px 15px;background:#ef0024;border:1px solid #ff2344;border-radius:16px;color:#fff;box-shadow:0 3px 14px #001e4f26}
body > header .masthead-wave .cart-button>svg{opacity:1;width:31px;height:31px}
body > header .masthead-wave .cart-button .cart-label{display:inline;opacity:1;font-size:16px;font-weight:700}
body > header .masthead-wave .cart-button b{position:absolute;top:-8px;right:6px;display:flex;align-items:center;justify-content:center;min-width:26px;min-height:26px;height:26px;padding:0 5px;border:0;border-radius:30px;background:#fff;color:#0a2d61;font-size:13px;line-height:1;box-shadow:0 2px 6px #001b4d33}
body > header .masthead-wave .cart-button:hover{background:#cf0021}
body > header .masthead-wave :is(.brand,.gluten-access,.cart-button):focus-visible{outline:3px solid #65d9ff;outline-offset:4px}
@media(max-width:1200px){body > header .masthead-wave .header-inner{grid-template-columns:202px minmax(0,1fr) 146px 126px;height:140px;padding:8px 24px;gap:14px}body > header .masthead-wave .header-inner::before{--logo-wave-width:520px}body > header .masthead-wave .brand{width:202px;height:120px}body > header .masthead-wave .brand img{width:182px;height:110px}body > header .masthead-wave .gluten-access{width:146px;padding:8px;gap:8px}body > header .masthead-wave .gluten-access>span{font-size:14px}body > header .masthead-wave .cart-button{width:126px;padding:10px;gap:8px}body > header .masthead-wave .search input{font-size:16px}body > header .masthead-wave .search-submit{padding:9px 16px;font-size:14px}}
@media(max-width:960px) and (min-width:761px){body > header .masthead-wave .header-inner{grid-template-columns:170px minmax(0,1fr) 122px 108px;gap:12px;height:124px;padding:8px 18px}body > header .masthead-wave .header-inner::before{--logo-wave-width:440px}body > header .masthead-wave .brand{width:170px;height:104px}body > header .masthead-wave .brand img{width:150px;height:92px}body > header .masthead-wave .gluten-access{width:122px;gap:6px}body > header .masthead-wave .gluten-access>svg{width:27px;height:27px}body > header .masthead-wave .gluten-access>span{font-size:13px}body > header .masthead-wave .cart-button{width:108px;gap:6px}body > header .masthead-wave .cart-button .cart-label{font-size:14px}body > header .masthead-wave .cart-button>svg{width:26px;height:26px}body > header .masthead-wave .search{padding-left:12px;gap:8px}body > header .masthead-wave .search-submit{padding:9px 12px}body > header .masthead-wave .search>svg{width:21px;height:21px}}
@media(max-width:760px){body > header .masthead-wave{background-size:auto 100%}body > header .masthead-wave .header-inner{grid-template-columns:minmax(0,1fr) 100px 94px;grid-template-areas:'brand gluten cart' 'search search search';height:160px;padding:6px 14px 10px;gap:6px 10px}body > header .masthead-wave .header-inner::before{--logo-wave-width:350px;height:106px}body > header .masthead-wave .brand{width:160px;height:88px;justify-self:start}body > header .masthead-wave .brand img{width:148px;height:86px}body > header .masthead-wave .search{height:50px;margin:0;padding:3px 4px 3px 14px;gap:8px}body > header .masthead-wave .search input{height:40px;font-size:16px}body > header .masthead-wave .search-submit{min-height:42px;height:42px;font-size:14px;padding:8px 17px}body > header .masthead-wave .search>svg{width:22px;height:22px}body > header .masthead-wave .gluten-access{width:100px;height:64px;min-height:64px;flex-direction:column;padding:5px;gap:3px;border-radius:12px}body > header .masthead-wave .gluten-access>svg{width:24px;height:24px}body > header .masthead-wave .gluten-access>span{font-size:11px;line-height:1.05;text-align:center}body > header .masthead-wave .cart-button{width:94px;height:64px;min-height:64px;flex-direction:column;gap:3px;padding:6px;border-radius:12px}body > header .masthead-wave .cart-button>svg{width:25px;height:25px}body > header .masthead-wave .cart-button .cart-label{font-size:12px}body > header .masthead-wave .cart-button b{top:-6px;right:3px;min-width:23px;min-height:23px;height:23px;font-size:12px}}
@media(max-width:400px){body > header .masthead-wave .header-inner{grid-template-columns:minmax(0,1fr) 85px 80px;gap:6px 8px;padding-inline:12px;height:150px}body > header .masthead-wave .header-inner::before{--logo-wave-width:310px;height:96px}body > header .masthead-wave .brand{width:136px;height:78px}body > header .masthead-wave .brand img{width:128px;height:76px}body > header .masthead-wave .gluten-access{width:85px}body > header .masthead-wave .cart-button{width:80px}}

/* Center the logo on the rounded white wave, independently of the flexible mobile column. */
@media(max-width:760px){body > header .masthead-wave .brand{transform:translate(-9px,3px)}}
@media(max-width:400px){body > header .masthead-wave .brand{transform:translate(-4px,3px)}}
