/* Header only. Existing logo, type, palette and destinations are preserved. */
.site-header.header { background:var(--white); border-bottom:1px solid var(--line); box-shadow:none; }
.site-header .header-main { min-height:100px; grid-template-columns:210px minmax(240px,1fr) auto; gap:32px; padding-block:14px; }
.site-header .brand { min-width:0; justify-content:flex-start; }
.site-header .logo-crop { width:200px; height:70px; }
.site-header .header-search { height:48px; margin:0; background:var(--soft); border:1px solid var(--line); border-radius:4px; transition:border-color 160ms ease; }
.site-header .header-search:focus-within { border-color:var(--brand); }
.site-header .search-category { padding-inline:16px; min-height:44px; font-size:.75rem; font-weight:600; border-color:var(--line); gap:12px; color:var(--ink); }
.site-header .header-search input { font-family:var(--font-body); font-size:.875rem; padding-inline:16px; }
.site-header .header-search button { width:48px; min-width:48px; min-height:44px; display:grid; place-items:center; padding:0; border-radius:0 3px 3px 0; }
.site-header .header-search button:hover { background:#fff; }
.site-header .header-actions { gap:10px; }
.site-header .icon-button, .site-header .cart-button { min-height:44px; min-width:44px; border-radius:3px; color:var(--brand); }
.site-header .icon-button:hover, .site-header .cart-button:hover { background:var(--soft); }
.site-header .cart-button { gap:9px; padding:8px 10px; font-size:.8125rem; }
.site-header .cart-button #cart-count { width:22px; height:22px; font-size:.6875rem; font-variant-numeric:tabular-nums; }
.site-header .category-nav { border-top:1px solid var(--line); border-bottom:0; }
.site-header .category-nav-inner { min-height:54px; gap:32px; }
.site-header .all-categories { min-height:42px; width:210px; border-radius:3px; padding:10px 14px; font-size:.8125rem; }
.site-header .desktop-nav { align-self:stretch; gap:30px; }
.site-header .desktop-nav a { position:relative; display:flex; align-items:center; min-height:54px; padding:10px 0; font-size:.875rem; line-height:1.4; font-weight:600; color:var(--ink); }
.site-header .desktop-nav a::after { content:""; position:absolute; bottom:0; left:0; right:0; height:2px; background:var(--brand); transform:scaleX(0); transform-origin:left; transition:transform 160ms ease; }
.site-header .desktop-nav a:hover, .site-header .desktop-nav a.active { color:var(--brand); }
.site-header .desktop-nav a:hover::after, .site-header .desktop-nav a.active::after { transform:scaleX(1); }
.site-header :where(a,button,input):focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
.site-header .header-search input:focus-visible { outline-offset:-4px; }
.site-header .menu-toggle { display:none; }
.site-header .mobile-nav[hidden] { display:none; }
@media (min-width:761px) and (max-width:1100px) {
 .site-header .header-main { grid-template-columns:180px minmax(200px,1fr) auto; gap:18px; min-height:90px; }
 .site-header .logo-crop { width:175px; height:64px; }
 .site-header .search-category { display:none; }
 .site-header .category-nav-inner { gap:24px; }
 .site-header .all-categories { width:180px; }
 .site-header .desktop-nav { gap:24px; }
 .site-header .desktop-nav a { font-size:.8125rem; }
 .site-header .header-actions { gap:2px; }
}
@media(max-width:760px) {
 .site-header .header-main { position:relative; grid-template-columns:44px minmax(0,1fr) 88px; grid-template-rows:60px 44px; gap:8px; min-height:0; padding:6px 0 12px; }
 .site-header .brand { grid-column:2; grid-row:1; justify-content:center; }
 .site-header .logo-crop { width:160px; max-width:100%; height:60px; }
 .site-header .header-actions { grid-column:3; grid-row:1; gap:0; }
 .site-header .header-actions #open-search { display:inline-flex; }
 .site-header .header-actions .menu-toggle { display:inline-flex; position:absolute; left:0; top:14px; transform:none; width:44px; height:44px; padding:10px; }
 .site-header .menu-toggle[aria-expanded="true"] { background:var(--soft); }
 .site-header .menu-toggle svg path { transform-box:fill-box; transform-origin:center; transition:transform 160ms ease,opacity 160ms ease; }
 .site-header .menu-toggle[aria-expanded="true"] svg path:first-child { transform:translateY(6px) rotate(45deg); }
 .site-header .menu-toggle[aria-expanded="true"] svg path:nth-child(2) { opacity:0; }
 .site-header .menu-toggle[aria-expanded="true"] svg path:last-child { transform:translateY(-6px) rotate(-45deg); }
 .site-header .cart-button { position:relative; width:44px; padding:8px; }
 .site-header .cart-label { display:none; }
 .site-header .cart-button #cart-count { position:absolute; top:0; right:-2px; width:18px; height:18px; font-size:.625rem; }
 .site-header .header-search { display:flex; grid-column:1/-1; grid-row:2; height:44px; width:100%; }
 .site-header .header-search input { font-size:1rem; padding-inline:12px; }
 .site-header .search-category { display:none; }
 .site-header .header-search button { min-height:42px; height:42px; }
 .site-header .category-nav { display:none; }
 .site-header .mobile-nav:not([hidden]) { position:absolute; inset:100% 0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; padding:16px max(16px,calc((100vw - 620px)/2)) 24px; background:var(--white); border-block:1px solid var(--line); max-height:calc(100dvh - 200px); overflow-y:auto; overscroll-behavior:contain; box-shadow:0 8px 16px #26252208; }
 .site-header .mobile-nav>a { display:flex; align-items:center; min-height:48px; padding:10px 0; font-size:.875rem; font-weight:600; line-height:1.5; }
 .site-header .mobile-nav a[aria-current="page"] { color:var(--brand); text-decoration:underline; text-underline-offset:6px; }
 .site-header .mobile-nav-categories { display:block; grid-column:1/-1; padding:20px 0 0; }
 .site-header .mobile-nav-categories>span { text-transform:none; letter-spacing:0; font-size:.875rem; margin-bottom:8px; }
 .site-header .mobile-nav-categories>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; }
 .site-header .mobile-nav-categories a { display:flex; align-items:center; min-height:48px; font-size:.8125rem; line-height:1.5; padding:10px 0; overflow-wrap:break-word; }
}
@media(max-width:360px) {
 .site-header .header-main { gap:4px; grid-template-columns:44px minmax(0,1fr) 88px; }
 .site-header .logo-crop { width:140px; }
}
@media(prefers-reduced-motion:reduce) {
 .site-header .header-search,.site-header .desktop-nav a::after,.site-header .menu-toggle svg path { transition:none; }
}
