/* Additive header-only repair. Existing catalogue, search, pricing and brand rules untouched. */
#header .emgn-nav{gap:28px;flex-wrap:wrap}
#header .emgn-nav>a.emhc-about{display:block}
#header .emgn-mega{max-height:min(620px,calc(100dvh - 180px));overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scroll-behavior:auto!important}
#header .emgn-mega-layout{display:block;padding:18px 22px}
#header .emgn-families{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;border:0;border-bottom:1px solid #dce7ef;padding:0 0 14px;max-height:none;overflow:visible;scrollbar-gutter:auto}
#header .emgn-family-button{min-width:0;min-height:42px;padding:9px 11px;border:1px solid #dce7ef;background:#f7fafc;font-size:13px;overflow-wrap:anywhere}
#header .emgn-family-button[aria-expanded=true]{background:#dff2fc;border-color:#87c9e7;color:#075779}
#header .emgn-families>.emgn-all{grid-column:1/-1;margin:0;padding:5px 0;font-size:13px}
#header .emgn-panels{min-width:0}
#header .emgn-panel{padding:14px 0 4px;min-height:0;margin:0}
#header .emgn-panel h2{font-size:22px;margin:4px 0 10px}
#header .emgn-eyebrow{font-size:10px;letter-spacing:1px}
#header .emgn-sublinks{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 18px}
#header .emgn-sublinks a{font-size:13px;padding:9px 0;min-height:42px;box-sizing:border-box}
#header .emgn-panel>.emgn-all{margin-top:8px;padding:9px 0}
#header .emhc-picker{display:none}
#header .emhc-context{font-size:12px;color:#526c81;margin:0 0 8px}
@media(max-width:1000px) and (min-width:801px){#header .emgn-families{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){
 #header .emgn-nav{gap:0 20px;min-height:49px;justify-content:flex-start}
 #header .emgn-nav>a{font-size:12px;padding:13px 0;min-height:44px;box-sizing:border-box}
 #header .emgn-products>summary{min-width:128px;padding:12px;gap:8px}
 #header .emgn-mega{left:12px;right:12px;max-height:min(570px,calc(100dvh - 205px))}
 #header .emgn-mega-layout{padding:14px}
 #header .emgn-families{display:none}
 #header .emhc-picker{display:block;border-bottom:1px solid #dce7ef;padding-bottom:12px}
 #header .emhc-picker label{display:block;font-weight:700;color:#163049;font-size:13px;margin-bottom:6px}
 #header .emhc-picker select{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:44px;font:inherit;font-size:15px;background:#f2f8fc;border:1px solid #8fbcd4;border-radius:6px;color:#163049;padding:8px}
 #header .emhc-picker>a{display:inline-block;color:#0075a6;font-size:13px;padding:9px 0 0}
 #header .emgn-panel{border:0;padding:12px 0 0}
 #header .emgn-panel h2{font-size:20px}
 #header .emgn-sublinks{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}
 #header .emgn-sublinks a{min-height:44px}
}
@media(max-width:380px){#header .emgn-nav{gap:0 12px}#header .emgn-products>summary{min-width:112px;font-size:14px;padding:12px 9px}#header .emgn-nav>a{font-size:11px}#header .emgn-mega{max-height:calc(100dvh - 200px)}#header .emgn-sublinks{gap:3px 10px}}
/* Existing theme product grid used min-content at320px; constrain layout only, not data. */
@media(max-width:600px){
 body.single-product div.product{grid-template-columns:minmax(0,1fr)!important}
 body.single-product div.product>*{min-width:0;max-width:100%;box-sizing:border-box}
 body.single-product .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:5px;padding-left:0!important}
 body.single-product .woocommerce-tabs ul.tabs li{margin:0!important;max-width:100%;box-sizing:border-box}
 body.single-product .woocommerce-tabs :is(input:not([type=checkbox]),textarea){max-width:100%;box-sizing:border-box}
}
