/* ==========================================================================
   Site header: announcement bar, logo, main menu (with the Design your own
   dropdown), search, basket and the phone menu. One header for every page:
   the store pages (tools/build-pages.py) and the designer (design.html,
   which gets the same markup written in by the same script).
   Colours come from --hd-* when a page sets them (the designer, whose own
   --text / --surface mean something else), otherwise from the store palette.
   ========================================================================== */
.announce{ background:var(--hd-accent, var(--accent)); color:var(--hd-accent-ink, var(--accent-ink)); text-align:center; font-family:'Inter', system-ui, sans-serif; font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; padding:9px 16px; margin:0; line-height:1.5; }

/* Stays at the top while scrolling, on a frosted bar so the page shows faintly behind it */
.site-header{ position:sticky; top:0; z-index:60; font-family:'Inter', system-ui, sans-serif; line-height:1.5;
  background:color-mix(in srgb, var(--hd-bg, var(--bg)) 82%, transparent); backdrop-filter:blur(14px) saturate(1.3); -webkit-backdrop-filter:blur(14px) saturate(1.3);
  border-bottom:1px solid var(--hd-line, var(--line)); }
.site-header > .container{ max-width:var(--hd-container, var(--container)); margin:0 auto; padding:18px var(--hd-gutter, var(--gutter));
  display:flex; align-items:center; justify-content:space-between; gap:14px 32px; }
.site-header .nav{ display:flex; flex-wrap:wrap; gap:6px 28px; }
.site-header .nav a{ font-size:14.5px; font-weight:600; color:var(--hd-text, var(--text)); text-decoration:none; }
.site-header .nav a:hover{ color:var(--hd-accent-soft, var(--accent-soft)); }
.site-header .header-actions{ display:flex; align-items:center; gap:6px; }
.site-header .icon-btn{ width:44px; height:44px; border-radius:999px; border:1px solid color-mix(in srgb, var(--hd-text, var(--text)) 14%, transparent); background:transparent; color:var(--hd-text, var(--text)); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; position:relative; text-decoration:none; padding:0; }
.site-header .icon-btn svg{ width:18px; height:18px; }
.site-header .icon-btn .count{ position:absolute; top:-3px; right:-3px; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:var(--hd-accent, var(--accent)); color:var(--hd-accent-ink, var(--accent-ink)); font-size:10.5px; font-weight:800; line-height:1; display:flex; align-items:center; justify-content:center; }
.site-header .menu-toggle{ display:none; }

/* Tablets and phones: a menu button opens the links in a column */
@media (max-width:900px){
  .site-header .menu-toggle{ display:inline-flex; }
  .site-header .nav{ display:none; order:3; width:100%; flex-direction:column; gap:0; padding:8px 0 4px; border-top:1px solid var(--hd-line, var(--line)); }
  .site-header .nav.is-open{ display:flex; }
  .site-header .nav a{ padding:14px 2px; font-size:17px; border-bottom:1px solid var(--hd-line, var(--line)); }
  .site-header > .container{ flex-wrap:wrap; }
}
@media (max-width:760px){
  .announce{ font-size:10.5px; letter-spacing:.12em; }
  .site-header > .container{ padding-inline:var(--hd-gutter, var(--gutter)); }
}

/* ==========================================================================
   Small phones: header on one row, tighter spacing
   ========================================================================== */
@media (max-width:480px){
  .announce{ font-size:9.5px; letter-spacing:.08em; padding:7px 10px; }
  .site-header > .container{ flex-wrap:wrap; gap:8px; padding-top:12px; padding-bottom:12px; }
  .site-header .brand .brand__script{ font-size:24px; }
  .site-header .header-actions{ gap:6px; }
  .site-header .header-actions .icon-btn{ width:40px; height:40px; }
}
@media (max-width:360px){
  .site-header .brand .brand__script{ font-size:21px; }
  .site-header .header-actions{ gap:4px; }
  .site-header .header-actions .icon-btn{ width:36px; height:36px; }
}
