/* Shared commerce header. Lucide symbols are self-hosted in assets/lucide-sprite.svg. */
.site-header.store-header { position: relative; z-index: 70; background: var(--ink); color: var(--white); }
.success-page .site-header.store-header { position: relative; }
.site-header.store-header .nav {
  display: grid; grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr);
  align-items: center; min-height: 72px; gap: 24px;
  padding: 0 max(30px,env(safe-area-inset-right)) 0 max(30px,env(safe-area-inset-left));
}
.store-header .utility { font-size: 10px; }
.account-ready .site-header.store-header .utility span { visibility: visible; }
.site-header.store-header .nav-links { display: flex; align-items: center; gap: clamp(22px,2.5vw,40px); }
.store-header .nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; white-space: nowrap; }
.store-header .nav-actions { display: flex; justify-self: end; align-items: center; gap: 8px; }
.store-header .icon-button,.store-header .cart-button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0; color: var(--white); text-decoration: none;
  border-radius: 999px; transition: color .18s ease,background-color .18s ease,transform .18s ease;
}
.store-header .icon-button:hover,.store-header .cart-button:hover { color: var(--orange); background: rgba(255,255,255,.07); }
.store-header .icon-button:active,.store-header .cart-button:active { transform: scale(.96); }
.store-header .lucide-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.store-header .cart-button { position: relative; }
.store-header .cart-button b { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 10px; background: var(--orange); color: var(--ink); font-size: 10px; }
.store-header :is(a,button):focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.store-header .menu-toggle,.store-header .site-menu { display: none; }

@media (max-width: 767px) {
  .store-header .utility { display: none; }
  .site-header.store-header .nav {
    grid-template-columns: 44px minmax(0,1fr) auto; min-height: 64px; gap: 5px;
    padding: 0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left));
  }
  .store-header .menu-toggle { display: inline-flex; }
  .store-header .nav > .brand { justify-self: start; min-width: 0; gap: 8px; }
  .store-header .brand img { width: 31px; height: 31px; }
  .store-header .brand span { overflow: hidden; text-overflow: ellipsis; font-size: clamp(9px,3vw,12px); }
  .site-header.store-header .nav-links,.store-header .nav-search { display: none; }
  .store-header .nav-actions { gap: 0; }
  .store-header .site-menu { display: grid; position: fixed; inset: 0; z-index: 90; background: rgba(7,9,10,.66); backdrop-filter: blur(5px); }
  .store-header .site-menu[hidden] { display: none; }
  .store-header .site-menu aside { width: min(88vw,360px); min-height: 100%; padding: max(18px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 28px max(20px,env(safe-area-inset-left)); background: var(--ink); box-shadow: 16px 0 42px rgba(0,0,0,.3); }
  .store-header .site-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 50px; margin-bottom: 20px; font: 600 12px/1 var(--font-mono,monospace); text-transform: uppercase; letter-spacing: .14em; }
  .store-header .site-menu aside > a { display: flex; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--white); text-decoration: none; font: 600 clamp(16px,5vw,22px)/1.2 var(--font-display,sans-serif); text-transform: uppercase; }
  .store-header .site-menu aside > a:first-of-type { color: var(--orange); }
  html.site-menu-open { overflow: hidden; }
}

@media (max-width: 350px) {
  .site-header.store-header .nav { grid-template-columns: 44px minmax(0,1fr) auto; }
  .store-header .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .store-header .icon-button,.store-header .cart-button { transition: none; }
}
