/*
 NX Plug Header Design Studio V1
 Safe, additive header-only CSS. Never affects a store with studio.enabled=false.
 Breakpoints align with existing storefront navigation: 900px/600px.
*/
[data-storefront-header][data-nxh="1"] {
  --nxh-bg:var(--nxh-d-bg);
  --nxh-fg:var(--nxh-d-fg);
  --nxh-gap:var(--nxh-d-gap);
  --nxh-height:var(--nxh-d-height);
  --nxh-padding:var(--nxh-d-padding);
  --nxh-radius:var(--nxh-d-radius);
  --nxh-logo-width:var(--nxh-d-logo-width);
  --nxh-search-width:var(--nxh-d-search-width);
  --nxh-align:var(--nxh-d-align);
  --nxh-sticky:var(--nxh-d-sticky);
  --nxh-logo:var(--nxh-d-display-logo);
  --nxh-navigation:var(--nxh-d-display-navigation);
  --nxh-search:var(--nxh-d-display-search);
  --nxh-language:var(--nxh-d-display-language);
  --nxh-account:var(--nxh-d-display-account);
  --nxh-cart:var(--nxh-d-display-cart);
  --nxh-menu:var(--nxh-d-display-menu);
  --nxh-logo-order:var(--nxh-d-order-logo);
  --nxh-navigation-order:var(--nxh-d-order-navigation);
  --nxh-search-order:var(--nxh-d-order-search);
  --nxh-language-order:var(--nxh-d-order-language);
  --nxh-account-order:var(--nxh-d-order-account);
  --nxh-cart-order:var(--nxh-d-order-cart);
  --nxh-menu-order:var(--nxh-d-order-menu);
  --nxh-layout:var(--nxh-d-layout);
  --nxh-zone-logo:var(--nxh-d-zone-logo);
  --nxh-zone-navigation:var(--nxh-d-zone-navigation);
  --nxh-zone-search:var(--nxh-d-zone-search);
  --nxh-zone-language:var(--nxh-d-zone-language);
  --nxh-zone-account:var(--nxh-d-zone-account);
  --nxh-zone-cart:var(--nxh-d-zone-cart);
  --nxh-zone-menu:var(--nxh-d-zone-menu);
  background:var(--nxh-bg)!important;
  color:var(--nxh-fg)!important;
  border-radius:var(--nxh-radius)!important;
  padding-inline:var(--nxh-padding)!important;
  position:var(--nxh-sticky)!important;
  top:0;
  overflow:visible;
  isolation:isolate;
}
[data-storefront-header][data-nxh="1"] .store-header-row {
  display:flex!important;
  flex-wrap:wrap;
  gap:var(--nxh-gap)!important;
  min-height:var(--nxh-height)!important;
  height:auto!important;
  align-items:center;
  justify-content:var(--nxh-align)!important;
  max-width:100%;
}
[data-storefront-header][data-nxh="1"] .store-header-identity,
[data-storefront-header][data-nxh="1"] .store-header-actions { display:contents!important; }
[data-storefront-header][data-nxh="1"] [data-store-header-logo] {
  order:var(--nxh-logo-order)!important;
  display:var(--nxh-logo)!important;
  min-width:0;
  flex:0 1 auto;
  max-width:var(--nxh-logo-width);
}
[data-storefront-header][data-nxh="1"] [data-store-header-logo] img {
  width:auto;max-width:var(--nxh-logo-width)!important;height:auto;max-height:60px;object-fit:contain;
}
[data-storefront-header][data-nxh="1"] [data-store-header-logo] span:not([data-design-logo-fallback]) {color:var(--nxh-fg);}
[data-storefront-header][data-nxh="1"] [data-storefront-header-search] input {
  color:var(--nxh-fg)!important;
  background:color-mix(in srgb,var(--nxh-fg) 6%,transparent)!important;
  border-color:color-mix(in srgb,var(--nxh-fg) 20%,transparent)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-header-search] input::placeholder {
  color:color-mix(in srgb,var(--nxh-fg) 54%,transparent)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-cart],
[data-storefront-header][data-nxh="1"] [data-storefront-header-search] button,
[data-storefront-header][data-nxh="1"] [data-storefront-mobile-menu] summary {
  color:var(--nxh-fg)!important;
  border-color:color-mix(in srgb,var(--nxh-fg) 24%,transparent);
}

[data-storefront-header][data-nxh="1"] .store-desktop-nav {
  order:var(--nxh-navigation-order)!important;display:var(--nxh-navigation)!important;
  min-width:0;max-width:100%;flex:0 1 auto;
}
[data-storefront-header][data-nxh="1"] [data-storefront-header-search] {
  order:var(--nxh-search-order)!important;display:var(--nxh-search)!important;
  margin:0!important;min-width:0;flex:1 1 auto;
  width:min(100%,var(--nxh-search-width));max-width:var(--nxh-search-width)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-language] {
  order:var(--nxh-language-order)!important;display:var(--nxh-language)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-account] {
  order:var(--nxh-account-order)!important;display:var(--nxh-account)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-cart] {
  order:var(--nxh-cart-order)!important;display:var(--nxh-cart)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-mobile-menu] {
  order:var(--nxh-menu-order)!important;display:var(--nxh-menu)!important;
}
[data-storefront-header][data-nxh="1"] :is(.store-nav-link,.store-nav-summary,.store-header-account,[data-storefront-language] > summary) {
  color:var(--nxh-fg)!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="floating"] {
  margin:10px var(--nxh-padding);border:1px solid currentColor;
  box-shadow:0 12px 24px rgba(15,23,42,.15);
  backdrop-filter:blur(12px);border-radius:max(14px,var(--nxh-radius))!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .store-header-row {
  justify-content:center!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="search"] [data-storefront-header-search] {
  max-width:min(480px, var(--nxh-search-width))!important;flex:1 1 var(--nxh-search-width);
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .store-desktop-nav {
  flex-basis:100%;width:100%;max-width:none;justify-content:center;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="mega"] .store-nav-submenu--mega {
  min-width:min(550px,80vw);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="overlay"][data-nxh-home="1"] {
  background:color-mix(in srgb,var(--nxh-bg) 35%,transparent)!important;
  backdrop-filter:blur(6px);
  margin-bottom:calc(-1 * var(--nxh-height));
}
@media(max-width:899px){
  [data-storefront-header][data-nxh="1"] {
    --nxh-bg:var(--nxh-t-bg); --nxh-fg:var(--nxh-t-fg);
    --nxh-gap:var(--nxh-t-gap); --nxh-height:var(--nxh-t-height);
    --nxh-padding:var(--nxh-t-padding); --nxh-radius:var(--nxh-t-radius);
    --nxh-logo-width:var(--nxh-t-logo-width); --nxh-search-width:var(--nxh-t-search-width);
    --nxh-align:var(--nxh-t-align); --nxh-sticky:var(--nxh-t-sticky);
    --nxh-logo:var(--nxh-t-display-logo);
    --nxh-navigation:var(--nxh-t-display-navigation);
    --nxh-search:var(--nxh-t-display-search);
    --nxh-language:var(--nxh-t-display-language);
    --nxh-account:var(--nxh-t-display-account);
    --nxh-cart:var(--nxh-t-display-cart);
    --nxh-menu:var(--nxh-t-display-menu);
    --nxh-logo-order:var(--nxh-t-order-logo);
    --nxh-navigation-order:var(--nxh-t-order-navigation);
    --nxh-search-order:var(--nxh-t-order-search);
    --nxh-language-order:var(--nxh-t-order-language);
    --nxh-account-order:var(--nxh-t-order-account);
    --nxh-cart-order:var(--nxh-t-order-cart);
    --nxh-menu-order:var(--nxh-t-order-menu);
    --nxh-layout:var(--nxh-t-layout);
    --nxh-zone-logo:var(--nxh-t-zone-logo);
    --nxh-zone-navigation:var(--nxh-t-zone-navigation);
    --nxh-zone-search:var(--nxh-t-zone-search);
    --nxh-zone-language:var(--nxh-t-zone-language);
    --nxh-zone-account:var(--nxh-t-zone-account);
    --nxh-zone-cart:var(--nxh-t-zone-cart);
    --nxh-zone-menu:var(--nxh-t-zone-menu);
  }
  [data-storefront-header][data-nxh="1"] .store-desktop-nav {display:var(--nxh-navigation)!important;flex-wrap:wrap;max-width:100%;}
  [data-storefront-header][data-nxh="1"] .store-header-row{flex-wrap:nowrap}
  [data-storefront-header][data-nxh="1"] [data-storefront-header-search] {
    flex:0 1 var(--nxh-search-width);max-width:var(--nxh-search-width);
  }
  [data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .store-header-row {flex-wrap:wrap}
}
@media(max-width:599px){
  [data-storefront-header][data-nxh="1"] {
    --nxh-bg:var(--nxh-m-bg); --nxh-fg:var(--nxh-m-fg);
    --nxh-gap:var(--nxh-m-gap); --nxh-height:var(--nxh-m-height);
    --nxh-padding:var(--nxh-m-padding); --nxh-radius:var(--nxh-m-radius);
    --nxh-logo-width:var(--nxh-m-logo-width); --nxh-search-width:var(--nxh-m-search-width);
    --nxh-align:var(--nxh-m-align); --nxh-sticky:var(--nxh-m-sticky);
    --nxh-logo:var(--nxh-m-display-logo);
    --nxh-navigation:var(--nxh-m-display-navigation);
    --nxh-search:var(--nxh-m-display-search);
    --nxh-language:var(--nxh-m-display-language);
    --nxh-account:var(--nxh-m-display-account);
    --nxh-cart:var(--nxh-m-display-cart);
    --nxh-menu:var(--nxh-m-display-menu);
    --nxh-logo-order:var(--nxh-m-order-logo);
    --nxh-navigation-order:var(--nxh-m-order-navigation);
    --nxh-search-order:var(--nxh-m-order-search);
    --nxh-language-order:var(--nxh-m-order-language);
    --nxh-account-order:var(--nxh-m-order-account);
    --nxh-cart-order:var(--nxh-m-order-cart);
    --nxh-menu-order:var(--nxh-m-order-menu);
    --nxh-layout:var(--nxh-m-layout);
    --nxh-zone-logo:var(--nxh-m-zone-logo);
    --nxh-zone-navigation:var(--nxh-m-zone-navigation);
    --nxh-zone-search:var(--nxh-m-zone-search);
    --nxh-zone-language:var(--nxh-m-zone-language);
    --nxh-zone-account:var(--nxh-m-zone-account);
    --nxh-zone-cart:var(--nxh-m-zone-cart);
    --nxh-zone-menu:var(--nxh-m-zone-menu);
  }
  [data-storefront-header][data-nxh="1"] .store-header-row{
    gap:var(--nxh-gap)!important;max-width:100%;flex-wrap:wrap!important;
  }
  [data-storefront-header][data-nxh="1"] [data-store-header-logo]{
    max-width:min(var(--nxh-logo-width),calc(100vw - 176px));min-width:0;
  }
  [data-storefront-header][data-nxh="1"] [data-store-header-logo] :is(img,span){max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  [data-storefront-header][data-nxh="1"] [data-storefront-header-search]{min-width:38px;max-width:var(--nxh-search-width)}
  [data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .store-header-row{flex-wrap:wrap}
}
/* Real storefront three-zone mode. Exactly the original link, account, form,
   language and cart nodes live in the groups; no cloned interactive elements. */
[data-storefront-header][data-nxh="1"] .store-header-row[data-nxh-zone-active="1"] {
  display:block!important;min-width:0;height:auto!important;
}
[data-storefront-header][data-nxh="1"] .nxh-zone-row {
  width:100%;min-height:var(--nxh-height);display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);
  gap:var(--nxh-gap);align-items:center;
}
[data-storefront-header][data-nxh="1"] .nxh-zone {
  display:flex;align-items:center;gap:var(--nxh-gap);min-width:0;
  max-width:100%;white-space:nowrap;
}
[data-storefront-header][data-nxh="1"] .nxh-zone[data-nxh-zone="left"] {justify-content:flex-start;}
[data-storefront-header][data-nxh="1"] .nxh-zone[data-nxh-zone="center"] {justify-content:center;}
[data-storefront-header][data-nxh="1"] .nxh-zone[data-nxh-zone="right"] {justify-content:flex-end;}
[data-storefront-header][data-nxh="1"] .nxh-zone [data-storefront-header-search]{
  margin-inline:0!important;flex:0 1 var(--nxh-search-width)!important;
  width:var(--nxh-search-width);max-width:var(--nxh-search-width);
}
[data-storefront-header][data-nxh="1"] .nxh-zone .store-desktop-nav {
  flex:0 0 auto;white-space:nowrap;
}
[data-storefront-header][data-nxh="1"] .nxh-zone [data-store-header-logo]{
  flex:0 1 auto;min-width:0;
}
@media(max-width:899px){
  [data-storefront-header][data-nxh="1"] .nxh-zone-row{
    grid-template-columns:minmax(0,1fr) minmax(0,max-content) minmax(0,1fr);
  }
  [data-storefront-header][data-nxh="1"] .nxh-zone {
    gap:var(--nxh-gap);
  }
}
@media(max-width:599px){
  [data-storefront-header][data-nxh="1"] .nxh-zone-row{
    gap:4px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  }
  [data-storefront-header][data-nxh="1"] .nxh-zone {
    gap:min(var(--nxh-gap),7px);min-width:0;
  }
  [data-storefront-header][data-nxh="1"] .nxh-zone [data-store-header-logo] {
    max-width:min(var(--nxh-logo-width),calc(100vw - 174px));
  }
  [data-storefront-header][data-nxh="1"] .nxh-zone [data-storefront-header-search] {
    flex:0 1 38px!important;max-width:var(--nxh-search-width)!important;
  }
}
@media(prefers-reduced-motion:reduce){[data-storefront-header][data-nxh="1"] *{transition:none!important}}


/* V5.6 Component Styles: merchant-selected, strictly validated per device. */
[data-storefront-header][data-nxh="1"] {
  --nxh-logo-font-size:var(--nxh-d-logo-font-size);
  --nxh-logo-font-weight:var(--nxh-d-logo-font-weight);
  --nxh-logo-icon-size:var(--nxh-d-logo-icon-size);
  --nxh-logo-icon-stroke:var(--nxh-d-logo-icon-stroke);
  --nxh-logo-border-width:var(--nxh-d-logo-border-width);
  --nxh-logo-border-color:var(--nxh-d-logo-border-color);
  --nxh-logo-border-radius:var(--nxh-d-logo-border-radius);
  --nxh-navigation-font-size:var(--nxh-d-navigation-font-size);
  --nxh-navigation-font-weight:var(--nxh-d-navigation-font-weight);
  --nxh-navigation-icon-size:var(--nxh-d-navigation-icon-size);
  --nxh-navigation-icon-stroke:var(--nxh-d-navigation-icon-stroke);
  --nxh-navigation-border-width:var(--nxh-d-navigation-border-width);
  --nxh-navigation-border-color:var(--nxh-d-navigation-border-color);
  --nxh-navigation-border-radius:var(--nxh-d-navigation-border-radius);
  --nxh-search-font-size:var(--nxh-d-search-font-size);
  --nxh-search-font-weight:var(--nxh-d-search-font-weight);
  --nxh-search-icon-size:var(--nxh-d-search-icon-size);
  --nxh-search-icon-stroke:var(--nxh-d-search-icon-stroke);
  --nxh-search-border-width:var(--nxh-d-search-border-width);
  --nxh-search-border-color:var(--nxh-d-search-border-color);
  --nxh-search-border-radius:var(--nxh-d-search-border-radius);
  --nxh-language-font-size:var(--nxh-d-language-font-size);
  --nxh-language-font-weight:var(--nxh-d-language-font-weight);
  --nxh-language-icon-size:var(--nxh-d-language-icon-size);
  --nxh-language-icon-stroke:var(--nxh-d-language-icon-stroke);
  --nxh-language-border-width:var(--nxh-d-language-border-width);
  --nxh-language-border-color:var(--nxh-d-language-border-color);
  --nxh-language-border-radius:var(--nxh-d-language-border-radius);
  --nxh-account-font-size:var(--nxh-d-account-font-size);
  --nxh-account-font-weight:var(--nxh-d-account-font-weight);
  --nxh-account-icon-size:var(--nxh-d-account-icon-size);
  --nxh-account-icon-stroke:var(--nxh-d-account-icon-stroke);
  --nxh-account-border-width:var(--nxh-d-account-border-width);
  --nxh-account-border-color:var(--nxh-d-account-border-color);
  --nxh-account-border-radius:var(--nxh-d-account-border-radius);
  --nxh-cart-font-size:var(--nxh-d-cart-font-size);
  --nxh-cart-font-weight:var(--nxh-d-cart-font-weight);
  --nxh-cart-icon-size:var(--nxh-d-cart-icon-size);
  --nxh-cart-icon-stroke:var(--nxh-d-cart-icon-stroke);
  --nxh-cart-border-width:var(--nxh-d-cart-border-width);
  --nxh-cart-border-color:var(--nxh-d-cart-border-color);
  --nxh-cart-border-radius:var(--nxh-d-cart-border-radius);
  --nxh-menu-font-size:var(--nxh-d-menu-font-size);
  --nxh-menu-font-weight:var(--nxh-d-menu-font-weight);
  --nxh-menu-icon-size:var(--nxh-d-menu-icon-size);
  --nxh-menu-icon-stroke:var(--nxh-d-menu-icon-stroke);
  --nxh-menu-border-width:var(--nxh-d-menu-border-width);
  --nxh-menu-border-color:var(--nxh-d-menu-border-color);
  --nxh-menu-border-radius:var(--nxh-d-menu-border-radius);
}
@media(max-width:899px){
[data-storefront-header][data-nxh="1"] {
  --nxh-logo-font-size:var(--nxh-t-logo-font-size);
  --nxh-logo-font-weight:var(--nxh-t-logo-font-weight);
  --nxh-logo-icon-size:var(--nxh-t-logo-icon-size);
  --nxh-logo-icon-stroke:var(--nxh-t-logo-icon-stroke);
  --nxh-logo-border-width:var(--nxh-t-logo-border-width);
  --nxh-logo-border-color:var(--nxh-t-logo-border-color);
  --nxh-logo-border-radius:var(--nxh-t-logo-border-radius);
  --nxh-navigation-font-size:var(--nxh-t-navigation-font-size);
  --nxh-navigation-font-weight:var(--nxh-t-navigation-font-weight);
  --nxh-navigation-icon-size:var(--nxh-t-navigation-icon-size);
  --nxh-navigation-icon-stroke:var(--nxh-t-navigation-icon-stroke);
  --nxh-navigation-border-width:var(--nxh-t-navigation-border-width);
  --nxh-navigation-border-color:var(--nxh-t-navigation-border-color);
  --nxh-navigation-border-radius:var(--nxh-t-navigation-border-radius);
  --nxh-search-font-size:var(--nxh-t-search-font-size);
  --nxh-search-font-weight:var(--nxh-t-search-font-weight);
  --nxh-search-icon-size:var(--nxh-t-search-icon-size);
  --nxh-search-icon-stroke:var(--nxh-t-search-icon-stroke);
  --nxh-search-border-width:var(--nxh-t-search-border-width);
  --nxh-search-border-color:var(--nxh-t-search-border-color);
  --nxh-search-border-radius:var(--nxh-t-search-border-radius);
  --nxh-language-font-size:var(--nxh-t-language-font-size);
  --nxh-language-font-weight:var(--nxh-t-language-font-weight);
  --nxh-language-icon-size:var(--nxh-t-language-icon-size);
  --nxh-language-icon-stroke:var(--nxh-t-language-icon-stroke);
  --nxh-language-border-width:var(--nxh-t-language-border-width);
  --nxh-language-border-color:var(--nxh-t-language-border-color);
  --nxh-language-border-radius:var(--nxh-t-language-border-radius);
  --nxh-account-font-size:var(--nxh-t-account-font-size);
  --nxh-account-font-weight:var(--nxh-t-account-font-weight);
  --nxh-account-icon-size:var(--nxh-t-account-icon-size);
  --nxh-account-icon-stroke:var(--nxh-t-account-icon-stroke);
  --nxh-account-border-width:var(--nxh-t-account-border-width);
  --nxh-account-border-color:var(--nxh-t-account-border-color);
  --nxh-account-border-radius:var(--nxh-t-account-border-radius);
  --nxh-cart-font-size:var(--nxh-t-cart-font-size);
  --nxh-cart-font-weight:var(--nxh-t-cart-font-weight);
  --nxh-cart-icon-size:var(--nxh-t-cart-icon-size);
  --nxh-cart-icon-stroke:var(--nxh-t-cart-icon-stroke);
  --nxh-cart-border-width:var(--nxh-t-cart-border-width);
  --nxh-cart-border-color:var(--nxh-t-cart-border-color);
  --nxh-cart-border-radius:var(--nxh-t-cart-border-radius);
  --nxh-menu-font-size:var(--nxh-t-menu-font-size);
  --nxh-menu-font-weight:var(--nxh-t-menu-font-weight);
  --nxh-menu-icon-size:var(--nxh-t-menu-icon-size);
  --nxh-menu-icon-stroke:var(--nxh-t-menu-icon-stroke);
  --nxh-menu-border-width:var(--nxh-t-menu-border-width);
  --nxh-menu-border-color:var(--nxh-t-menu-border-color);
  --nxh-menu-border-radius:var(--nxh-t-menu-border-radius);
}
}
@media(max-width:599px){
[data-storefront-header][data-nxh="1"] {
  --nxh-logo-font-size:var(--nxh-m-logo-font-size);
  --nxh-logo-font-weight:var(--nxh-m-logo-font-weight);
  --nxh-logo-icon-size:var(--nxh-m-logo-icon-size);
  --nxh-logo-icon-stroke:var(--nxh-m-logo-icon-stroke);
  --nxh-logo-border-width:var(--nxh-m-logo-border-width);
  --nxh-logo-border-color:var(--nxh-m-logo-border-color);
  --nxh-logo-border-radius:var(--nxh-m-logo-border-radius);
  --nxh-navigation-font-size:var(--nxh-m-navigation-font-size);
  --nxh-navigation-font-weight:var(--nxh-m-navigation-font-weight);
  --nxh-navigation-icon-size:var(--nxh-m-navigation-icon-size);
  --nxh-navigation-icon-stroke:var(--nxh-m-navigation-icon-stroke);
  --nxh-navigation-border-width:var(--nxh-m-navigation-border-width);
  --nxh-navigation-border-color:var(--nxh-m-navigation-border-color);
  --nxh-navigation-border-radius:var(--nxh-m-navigation-border-radius);
  --nxh-search-font-size:var(--nxh-m-search-font-size);
  --nxh-search-font-weight:var(--nxh-m-search-font-weight);
  --nxh-search-icon-size:var(--nxh-m-search-icon-size);
  --nxh-search-icon-stroke:var(--nxh-m-search-icon-stroke);
  --nxh-search-border-width:var(--nxh-m-search-border-width);
  --nxh-search-border-color:var(--nxh-m-search-border-color);
  --nxh-search-border-radius:var(--nxh-m-search-border-radius);
  --nxh-language-font-size:var(--nxh-m-language-font-size);
  --nxh-language-font-weight:var(--nxh-m-language-font-weight);
  --nxh-language-icon-size:var(--nxh-m-language-icon-size);
  --nxh-language-icon-stroke:var(--nxh-m-language-icon-stroke);
  --nxh-language-border-width:var(--nxh-m-language-border-width);
  --nxh-language-border-color:var(--nxh-m-language-border-color);
  --nxh-language-border-radius:var(--nxh-m-language-border-radius);
  --nxh-account-font-size:var(--nxh-m-account-font-size);
  --nxh-account-font-weight:var(--nxh-m-account-font-weight);
  --nxh-account-icon-size:var(--nxh-m-account-icon-size);
  --nxh-account-icon-stroke:var(--nxh-m-account-icon-stroke);
  --nxh-account-border-width:var(--nxh-m-account-border-width);
  --nxh-account-border-color:var(--nxh-m-account-border-color);
  --nxh-account-border-radius:var(--nxh-m-account-border-radius);
  --nxh-cart-font-size:var(--nxh-m-cart-font-size);
  --nxh-cart-font-weight:var(--nxh-m-cart-font-weight);
  --nxh-cart-icon-size:var(--nxh-m-cart-icon-size);
  --nxh-cart-icon-stroke:var(--nxh-m-cart-icon-stroke);
  --nxh-cart-border-width:var(--nxh-m-cart-border-width);
  --nxh-cart-border-color:var(--nxh-m-cart-border-color);
  --nxh-cart-border-radius:var(--nxh-m-cart-border-radius);
  --nxh-menu-font-size:var(--nxh-m-menu-font-size);
  --nxh-menu-font-weight:var(--nxh-m-menu-font-weight);
  --nxh-menu-icon-size:var(--nxh-m-menu-icon-size);
  --nxh-menu-icon-stroke:var(--nxh-m-menu-icon-stroke);
  --nxh-menu-border-width:var(--nxh-m-menu-border-width);
  --nxh-menu-border-color:var(--nxh-m-menu-border-color);
  --nxh-menu-border-radius:var(--nxh-m-menu-border-radius);
}
}
[data-storefront-header][data-nxh="1"] [data-store-header-logo]{
  font-size:var(--nxh-logo-font-size)!important;
  font-weight:var(--nxh-logo-font-weight)!important;
  border-style:solid;
  border-width:var(--nxh-logo-border-width)!important;
  border-color:var(--nxh-logo-border-color)!important;
  border-radius:var(--nxh-logo-border-radius)!important;
}
[data-storefront-header][data-nxh="1"] .store-desktop-nav{
  font-size:var(--nxh-navigation-font-size)!important;
  font-weight:var(--nxh-navigation-font-weight)!important;
  border-style:solid;
  border-width:var(--nxh-navigation-border-width)!important;
  border-color:var(--nxh-navigation-border-color)!important;
  border-radius:var(--nxh-navigation-border-radius)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-header-search] input{
  font-size:var(--nxh-search-font-size)!important;
  font-weight:var(--nxh-search-font-weight)!important;
  border-style:solid;
  border-width:var(--nxh-search-border-width)!important;
  border-color:var(--nxh-search-border-color)!important;
  border-radius:var(--nxh-search-border-radius)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-language] > summary{
  font-size:var(--nxh-language-font-size)!important;
  font-weight:var(--nxh-language-font-weight)!important;
  border-style:solid;
  border-width:var(--nxh-language-border-width)!important;
  border-color:var(--nxh-language-border-color)!important;
  border-radius:var(--nxh-language-border-radius)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-account]{
  font-size:var(--nxh-account-font-size)!important;
  font-weight:var(--nxh-account-font-weight)!important;
  border-style:solid;
  border-width:var(--nxh-account-border-width)!important;
  border-color:var(--nxh-account-border-color)!important;
  border-radius:var(--nxh-account-border-radius)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-cart]{
  font-size:var(--nxh-cart-font-size)!important;
  font-weight:var(--nxh-cart-font-weight)!important;
  border-style:solid;
  border-width:var(--nxh-cart-border-width)!important;
  border-color:var(--nxh-cart-border-color)!important;
  border-radius:var(--nxh-cart-border-radius)!important;
}
[data-storefront-header][data-nxh="1"] [data-storefront-mobile-menu] > summary{
  font-size:var(--nxh-menu-font-size)!important;
  font-weight:var(--nxh-menu-font-weight)!important;
  border-style:solid;
  border-width:var(--nxh-menu-border-width)!important;
  border-color:var(--nxh-menu-border-color)!important;
  border-radius:var(--nxh-menu-border-radius)!important;
}
[data-storefront-header][data-nxh="1"] .store-desktop-nav :is(.store-nav-link,.store-nav-summary){font-size:var(--nxh-navigation-font-size)!important;font-weight:var(--nxh-navigation-font-weight)!important}
[data-storefront-header][data-nxh="1"] [data-store-header-logo] > span:last-child{font-size:var(--nxh-logo-font-size)!important;font-weight:var(--nxh-logo-font-weight)!important}
[data-storefront-header][data-nxh="1"] [data-storefront-header-search] input{font-size:var(--nxh-search-font-size)!important}
[data-storefront-header][data-nxh="1"] [data-storefront-header-search] [data-ruby-search-toggle]{
 border-style:solid!important;
 border-width:var(--nxh-search-border-width)!important;
 border-color:var(--nxh-search-border-color)!important;
 border-radius:var(--nxh-search-border-radius)!important;
}
[data-storefront-header][data-nxh="1"] .store-desktop-nav .store-nav-icon{width:var(--nxh-navigation-icon-size)!important;height:var(--nxh-navigation-icon-size)!important;stroke-width:var(--nxh-navigation-icon-stroke)!important;flex-shrink:0}
[data-storefront-header][data-nxh="1"] [data-storefront-header-search] :is(button,[data-ruby-search-toggle]) svg{width:var(--nxh-search-icon-size)!important;height:var(--nxh-search-icon-size)!important;stroke-width:var(--nxh-search-icon-stroke)!important;flex-shrink:0}
[data-storefront-header][data-nxh="1"] [data-storefront-account] svg{width:var(--nxh-account-icon-size)!important;height:var(--nxh-account-icon-size)!important;stroke-width:var(--nxh-account-icon-stroke)!important;flex-shrink:0}
[data-storefront-header][data-nxh="1"] [data-storefront-cart] svg{width:var(--nxh-cart-icon-size)!important;height:var(--nxh-cart-icon-size)!important;stroke-width:var(--nxh-cart-icon-stroke)!important;flex-shrink:0}
[data-storefront-header][data-nxh="1"] [data-storefront-mobile-menu] > summary svg{width:var(--nxh-menu-icon-size)!important;height:var(--nxh-menu-icon-size)!important;stroke-width:var(--nxh-menu-icon-stroke)!important;flex-shrink:0}
[data-storefront-header][data-nxh="1"] [data-storefront-account],[data-storefront-header][data-nxh="1"] [data-storefront-cart],[data-storefront-header][data-nxh="1"] [data-storefront-language] > summary,[data-storefront-header][data-nxh="1"] [data-storefront-mobile-menu] > summary{min-height:44px;min-width:44px}
[data-storefront-header][data-nxh="1"][data-nxh-preset="floating"]{border-width:var(--nxh-frame-border-width);border-color:var(--nxh-frame-border-color)}

/* Header Frame: independent outer border, not the Logo border. */
[data-storefront-header][data-nxh="1"]{
 box-sizing:border-box!important;max-width:100%;
 --nxh-frame-border-width:var(--nxh-d-frame-border-width);
 --nxh-frame-border-color:var(--nxh-d-frame-border-color);
 border-style:solid!important;
 border-width:var(--nxh-frame-border-width)!important;
 border-color:var(--nxh-frame-border-color)!important;
}
@media(max-width:899px){[data-storefront-header][data-nxh="1"]{--nxh-frame-border-width:var(--nxh-t-frame-border-width);--nxh-frame-border-color:var(--nxh-t-frame-border-color)}}
@media(max-width:599px){[data-storefront-header][data-nxh="1"]{--nxh-frame-border-width:var(--nxh-m-frame-border-width);--nxh-frame-border-color:var(--nxh-m-frame-border-color)}}

/* A real search <form> is a flex item. Without min-width:0 it can keep its
   max-content width (~516px) even inside a configured 210px Tablet zone. */
[data-storefront-header][data-nxh="1"] [data-storefront-header-search] .store-header-search-form{
 min-width:0;max-width:100%;width:100%;flex:1 1 auto;
}

/*
 * Header.zip 03/05/06 structural parity on real opt-in storefronts.
 * Opt-in data-nxh=1 is mandatory. Existing merchants remain unaffected.
 * Zones are actual DOM groups from nx-header-studio-zones.js.
 */
[data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .store-header-row[data-nxh-zone-active="1"]{
  display:block!important;width:100%;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .nxh-zone-row{
  display:grid!important;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr)!important;
  grid-template-rows:auto!important;align-items:center;min-width:0;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .nxh-zone[data-nxh-zone="center"]{
  justify-content:center!important;z-index:2;min-width:0;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .nxh-zone[data-nxh-zone="left"]{
  justify-content:flex-start!important;min-width:0;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .nxh-zone[data-nxh-zone="right"]{
  justify-content:flex-end!important;min-width:0;
  gap:clamp(4px,.6vw,10px)!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .nxh-zone [data-storefront-header-search]{
  width:clamp(80px,11vw,170px)!important;max-width:170px!important;min-width:58px!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .store-header-row[data-nxh-zone-active="1"]{
  display:block!important;width:100%;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone-row{
  display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
  grid-template-rows:auto minmax(35px,auto)!important;
  column-gap:14px;row-gap:7px;min-height:0!important;
  width:100%;align-content:start!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="left"]{
  grid-column:1;grid-row:1;justify-content:flex-start!important;gap:12px;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="right"]{
  grid-column:2;grid-row:1;justify-content:flex-end!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="center"]{
  grid-column:1/-1;grid-row:2;justify-content:flex-start!important;
  align-items:center;min-width:0;padding-top:6px;
  border-top:1px solid color-mix(in srgb,var(--nxh-fg) 18%,transparent);
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone .store-desktop-nav{
  flex:0 1 100%!important;width:100%;max-width:none;
  min-width:0;justify-content:flex-start!important;overflow:visible;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone [data-storefront-header-search]{
  flex:0 1 var(--nxh-search-width)!important;
  max-width:clamp(120px,32vw,360px)!important;min-width:90px!important;
}
/* Real merchant submenu markup already has sanitized links and descriptions.
   Treat the "auto" choice as Mega only when the Mega preset is active. */
[data-storefront-header][data-nxh="1"][data-nxh-preset="mega"] .store-nav-parent[data-dropdown-style="mega"]{
  position:static!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="mega"] .store-nav-submenu--mega{
  position:absolute!important;top:100%!important;
  left:clamp(8px,2vw,25px)!important;right:clamp(8px,2vw,25px)!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important;
  gap:8px!important;max-height:min(65vh,480px);
  overflow-y:auto;padding:18px!important;
  border-top:3px solid var(--merchant-accent,#0EA5E9);
  border-radius:0 0 14px 14px!important;
  box-shadow:0 16px 42px rgba(7,28,46,.24)!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="mega"] .store-nav-submenu--mega .store-nav-dropdown-link{
  display:flex;min-width:0;min-height:58px;align-items:flex-start;
  gap:8px;padding:12px!important;
  border:1px solid #E1ECF3;border-radius:9px;
  background:#FFFFFF;color:#24455D;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="mega"] .store-nav-submenu--mega .store-nav-dropdown-link:is(:hover,:focus-visible){
  background:#EFF9FF;border-color:#AEDBF5;outline:2px solid transparent;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="mega"] .store-nav-submenu--mega .store-nav-copy{
  display:flex;flex-direction:column;gap:3px;min-width:0;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="mega"] .store-nav-submenu--mega .store-nav-copy small{
  color:#71899B;font-size:12px;line-height:1.4;white-space:normal;
}
@media(max-width:899px){
  [data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto!important;min-height:0!important;
  }
  [data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="center"]{
    flex-wrap:wrap;
  }
  [data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="left"]{
    grid-column:1;grid-row:1;
  }
  [data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="right"]{
    grid-column:2;grid-row:1;
  }
}
@media(max-width:599px){
  [data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .nxh-zone-row{
    grid-template-columns:minmax(46px,1fr) minmax(0,auto) minmax(46px,1fr)!important;
    gap:4px!important;
  }
  [data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .nxh-zone [data-store-header-logo]{
    max-width:min(var(--nxh-logo-width),140px)!important;
  }
  [data-storefront-header][data-nxh="1"][data-nxh-preset="centered"] .nxh-zone[data-nxh-zone="right"]{
    gap:3px!important;
  }
}

/* Multi-Row navigation can host an explicitly configured Mega menu too. */
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .store-nav-parent[data-dropdown-style="mega"]{
  position:static!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .store-nav-submenu--mega{
  position:absolute!important;top:100%!important;
  left:clamp(8px,2vw,25px)!important;right:clamp(8px,2vw,25px)!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important;
  gap:8px!important;padding:18px!important;
  max-height:min(65vh,480px);overflow-y:auto;
  border-top:3px solid var(--merchant-accent,#0EA5E9);
  border-radius:0 0 14px 14px!important;
  box-shadow:0 16px 42px rgba(7,28,46,.24)!important;
}
@media(max-width:899px){
  [data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .store-nav-submenu--mega{
    position:static!important;width:auto!important;display:block!important;
    max-height:none;box-shadow:none!important;
  }
}

/* Visibility safeguard: never expose a published Mega dropdown before its
   parent is opened. Author-important grid must not override closed <details>. */
[data-storefront-header][data-nxh="1"]:is([data-nxh-preset="mega"],[data-nxh-preset="multirow"])
  .store-nav-parent:not([open])>.store-nav-submenu--mega{
  display:none!important;
}
[data-storefront-header][data-nxh="1"]:is([data-nxh-preset="mega"],[data-nxh-preset="multirow"])
  .store-nav-parent[open]>.store-nav-submenu--mega{
  display:grid!important;
}
@media (hover:hover) and (pointer:fine) and (min-width:900px){
  [data-storefront-header][data-nxh="1"]:is([data-nxh-preset="mega"],[data-nxh-preset="multirow"])
    .store-nav-parent:is([data-dropdown-trigger="auto"],[data-dropdown-trigger="hover"]):hover>.store-nav-submenu--mega{
    display:grid!important;
  }
}


/* Header alignment P0 - validated per-zone controls from Left/Center/Right and
   Top/Middle/Bottom. Values are emitted by CommerceHeaderStudio only. */
[data-storefront-header][data-nxh="1"]{
  --nxh-zone-left-h:var(--nxh-d-zone-left-h,flex-start);
  --nxh-zone-left-v:var(--nxh-d-zone-left-v,center);
  --nxh-zone-center-h:var(--nxh-d-zone-center-h,center);
  --nxh-zone-center-v:var(--nxh-d-zone-center-v,center);
  --nxh-zone-right-h:var(--nxh-d-zone-right-h,flex-end);
  --nxh-zone-right-v:var(--nxh-d-zone-right-v,center);
}
@media(max-width:899px){
  [data-storefront-header][data-nxh="1"]{
    --nxh-zone-left-h:var(--nxh-t-zone-left-h,flex-start);
    --nxh-zone-left-v:var(--nxh-t-zone-left-v,center);
    --nxh-zone-center-h:var(--nxh-t-zone-center-h,center);
    --nxh-zone-center-v:var(--nxh-t-zone-center-v,center);
    --nxh-zone-right-h:var(--nxh-t-zone-right-h,flex-end);
    --nxh-zone-right-v:var(--nxh-t-zone-right-v,center);
  }
}
@media(max-width:599px){
  [data-storefront-header][data-nxh="1"]{
    --nxh-zone-left-h:var(--nxh-m-zone-left-h,flex-start);
    --nxh-zone-left-v:var(--nxh-m-zone-left-v,center);
    --nxh-zone-center-h:var(--nxh-m-zone-center-h,center);
    --nxh-zone-center-v:var(--nxh-m-zone-center-v,center);
    --nxh-zone-right-h:var(--nxh-m-zone-right-h,flex-end);
    --nxh-zone-right-v:var(--nxh-m-zone-right-v,center);
  }
}
[data-storefront-header][data-nxh="1"][data-nxh-preset] .nxh-zone{
  align-self:stretch!important;min-height:0;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset] .nxh-zone[data-nxh-zone="left"]{
  justify-content:var(--nxh-zone-left-h)!important;
  align-items:var(--nxh-zone-left-v)!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset] .nxh-zone[data-nxh-zone="center"]{
  justify-content:var(--nxh-zone-center-h)!important;
  align-items:var(--nxh-zone-center-v)!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset] .nxh-zone[data-nxh-zone="right"]{
  justify-content:var(--nxh-zone-right-h)!important;
  align-items:var(--nxh-zone-right-v)!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone .store-desktop-nav{
  justify-content:var(--nxh-zone-center-h,flex-start)!important;
}


/* Header Structure: a real fourth drop location in the Multi-Row upper tier.
   Main Row = Left / Center / Right, Navigation Row = Center. */
[data-storefront-header][data-nxh="1"]{
  --nxh-zone-top-center-h:var(--nxh-d-zone-top-center-h,center);
  --nxh-zone-top-center-v:var(--nxh-d-zone-top-center-v,center);
}
@media(max-width:899px){
  [data-storefront-header][data-nxh="1"]{
    --nxh-zone-top-center-h:var(--nxh-t-zone-top-center-h,center);
    --nxh-zone-top-center-v:var(--nxh-t-zone-top-center-v,center);
  }
}
@media(max-width:599px){
  [data-storefront-header][data-nxh="1"]{
    --nxh-zone-top-center-h:var(--nxh-m-zone-top-center-h,center);
    --nxh-zone-top-center-v:var(--nxh-m-zone-top-center-v,center);
  }
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone-row{
  grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr)!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="top-center"]{
  grid-column:2;grid-row:1;min-width:0;
  justify-content:var(--nxh-zone-top-center-h,center)!important;
  align-items:var(--nxh-zone-top-center-v,center)!important;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="right"]{
  grid-column:3;grid-row:1;
}
[data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="center"]{
  grid-column:1/-1;grid-row:2;
}
@media(max-width:899px){
  [data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone-row{
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  }
  [data-storefront-header][data-nxh="1"][data-nxh-preset="multirow"] .nxh-zone[data-nxh-zone="right"]{
    grid-column:3;grid-row:1;
  }
}

[data-storefront-header][data-nxh="1"] .nxh-zone[data-nxh-zone-empty="true"]{display:none!important;padding:0!important;border:0!important;min-height:0!important}

/* Content-sized outer zones leave genuine alignment space for the navigation.
   Do not change the centered-logo or two-tier preset geometry. */
@media(min-width:900px){
  [data-storefront-header][data-nxh="1"]:not([data-nxh-preset="centered"]):not([data-nxh-preset="multirow"]) .nxh-zone-row:has(> .nxh-zone[data-nxh-zone="center"] > .store-desktop-nav){
    grid-template-columns:minmax(0,max-content) minmax(0,1fr) minmax(0,max-content);
  }
  [data-storefront-header][data-nxh="1"]:not([data-nxh-preset="centered"]):not([data-nxh-preset="multirow"]) .nxh-zone[data-nxh-zone="center"] > .store-desktop-nav{
    flex:0 1 auto;min-width:0;max-width:100%;flex-wrap:wrap;
  }
}
