/* ==========================================================================
   Cali Clear Disposables USA — black & gold
   Structure and components come from the "Vape shop website concepts"
   mockups; the palette is the brand's own black and gold.
   Change the tokens in section 1 to re-skin the entire site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --black:        #0A0A0B;   /* page */
  --surface:      #141317;   /* cards, panels */
  --surface-2:    #1B1A20;   /* image wells, inputs */
  --surface-3:    #262430;   /* hover */
  --gold:         #F0C33C;   /* the brand gold, sampled from the logo */
  --gold-bright:  #FFD963;
  --gold-deep:    #C79A22;
  --gold-dim:     #6A5417;

  /* Text */
  --cream:        #F7F3E8;   /* primary text on dark */
  --body-text:    #C6BFB1;   /* body copy on dark */
  --muted:        #A49C8E;
  --muted-2:      #8E877A;
  --muted-3:      #6E6759;
  --on-gold:      #241C05;   /* text sitting on a gold surface */
  --ink:          #0A0A0B;   /* black: text on gold, dark fills */

  /* Lines */
  --edge:         #302C26;   /* default border on dark */
  --line:         #302C26;
  --line-soft:    #26231F;
  --line-dash:    #4A443A;

  /* Legacy aliases kept so templates don't need to know about the re-skin */
  --rust:         #F0C33C;
  --rust-dark:    #1B1A20;
  --white:        #141317;
  --sand:         #1B1A20;
  --on-dark:      #F7F3E8;
  --on-dark-soft: #D8D2C4;
  --on-dark-mute: #A49C8E;
  --on-rust-soft: #E3DCCC;

  /* Type */
  --display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --sans:    'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Metrics */
  --pad-x: clamp(16px, 4.5vw, 36px);
  --maxw: 1240px;
  --maxw-narrow: 1180px;
  --bw: 2px;
  --bw-heavy: 3px;
  --r-card: 18px;
  --r-panel: 20px;
  --r-field: 12px;
  --r-pill: 999px;

  /* On black a hard offset shadow only reads if it is gold, so it is kept for
     the loud surfaces and a soft lift is used for the quiet ones. */
  --shadow: 0 10px 30px rgba(0, 0, 0, .6);
  --shadow-lg: 8px 8px 0 var(--gold-deep);
  --shadow-gold: 6px 6px 0 var(--gold-deep);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* The UA rule for [hidden] is display:none at the lowest priority, so any
   class here that sets `display` (.empty-state, .sidebar-layout, .pager…)
   silently beats it and the element stays on screen. Everything that toggles
   visibility in JS does it with the hidden attribute, so this has to win. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--black);
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--gold); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -70px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 12px 20px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; transition: top .15s ease;
}
.skip-link:focus { top: 8px; color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 400; line-height: 1.05;
  text-wrap: balance; color: var(--cream);
}

/* The .h-* classes carry the full heading treatment, not just a size, so a
   heading that has to be a div for document-outline reasons still looks like
   a heading. */
.h-hero, .h-page, .h-section, .h-panel, .h-card {
  font-family: var(--display); font-weight: 400;
  text-wrap: balance; color: var(--cream);
}

.h-hero    { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.0; }
.h-page    { font-size: clamp(34px, 5vw, 58px);   line-height: .98; }
.h-section { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.02; }
.h-panel   { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.1; }
.h-card    { font-size: 19px; line-height: 1.15; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.label   { font-size: 12px; font-weight: 700; letter-spacing: .1em;  text-transform: uppercase; color: var(--muted); }
.label--display {
  font-family: var(--display); font-weight: 400; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gold);
}
.lede  { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.75; color: var(--body-text); max-width: 54ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny  { font-size: 12px; }

.price { font-family: var(--display); color: var(--gold); }
.price--lg { font-size: clamp(28px, 3.4vw, 34px); }
.price .from {
  font-family: var(--sans); font-size: .55em; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); margin-right: 6px; vertical-align: middle;
}
.was {
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  color: var(--muted-2); text-decoration: line-through; margin-left: 6px;
}
.save {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-deep);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; width: 100%; }
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding: clamp(44px, 7vw, 72px) var(--pad-x); }
.section--tight { padding-block: clamp(26px, 4vw, 40px); }

/* Full-bleed gold band. Everything inside flips to dark text, except the
   cards, which stay dark surfaces sitting on the gold. */
.section--gold {
  background: var(--gold);
  color: var(--on-gold);
  border-block: var(--bw-heavy) solid var(--black);
}
.section--gold h1, .section--gold h2, .section--gold h3, .section--gold .h-section { color: var(--ink); }
.section--gold .label { color: rgba(36, 28, 5, .72); }
.section--gold .card, .section--gold .panel--dark { color: var(--cream); }
.section--gold .card h1, .section--gold .card h2, .section--gold .card h3 { color: var(--cream); }

/* Hero band: black, lifted just off the page with a gold wash. */
.section--rust {
  background:
    radial-gradient(120% 100% at 78% 30%, rgba(240,195,60,.16) 0%, rgba(240,195,60,0) 58%),
    linear-gradient(180deg, #121116 0%, var(--black) 100%);
  color: var(--cream);
  border-bottom: var(--bw-heavy) solid var(--gold);
  position: relative; overflow: hidden;
}
.section--rust .lede { color: var(--body-text); }

main { flex: 1 0 auto; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 56px); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split--hero { grid-template-columns: 1.1fr .9fr; }
}

.stack { display: flex; flex-direction: column; }
.stack-4{gap:4px}.stack-6{gap:6px}.stack-8{gap:8px}.stack-10{gap:10px}
.stack-12{gap:12px}.stack-14{gap:14px}.stack-16{gap:16px}.stack-18{gap:18px}
.stack-20{gap:20px}.stack-24{gap:24px}

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--baseline { align-items: baseline; }
.row-8{gap:8px}.row-10{gap:10px}.row-14{gap:14px}.row-18{gap:18px}

.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(16px, 3vw, 24px); }
.grid-auto--sm  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.grid-auto--fit { grid-template-columns: repeat(auto-fit,  minmax(min(100%, 220px), 1fr)); }
.grid-cats      { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: clamp(16px, 3vw, 24px); }
.grid-auto--stat{ grid-template-columns: repeat(auto-fit,  minmax(min(100%, 160px), 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }

.sidebar-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sidebar-layout > .sidebar { flex: 0 1 250px; min-width: 220px; }
.sidebar-layout > .content { flex: 4 1 420px; min-width: 0; }
.sidebar-layout--cart > .content { flex: 2 1 420px; }
.sidebar-layout--cart > .sidebar { flex: 1 1 300px; position: sticky; top: 100px; }

.mt-auto { margin-top: auto; }
.center { text-align: center; }
.hide { display: none !important; }

.scanlines::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(240,195,60,.05) 0 2px, transparent 2px 14px);
}
.scanlines > * { position: relative; }

/* --------------------------------------------------------------------------
   5. Buttons & pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; text-align: center;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: var(--bw) solid var(--gold); background: transparent; color: var(--gold);
  transition: transform .12s ease, background-color .12s ease, color .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--gold); color: var(--ink); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }

.btn--ink { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.btn--ink:hover { background: var(--gold); color: var(--ink); border-color: var(--ink); }

.btn--rust { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--rust:hover { background: var(--gold-bright); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--onDark { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--onDark:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn--sm { padding: 9px 16px; font-size: 11px; letter-spacing: .1em; }
.btn--lg { padding: 17px 30px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
/* Fading a gold button to 40% on a near-black panel composites to a muddy
   near-black. Give the disabled state its own explicit, legible treatment. */
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed; transform: none;
  background: transparent; color: var(--muted-2);
  border-color: var(--edge); box-shadow: none;
}
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover {
  transform: none; background: transparent;
  color: var(--muted-2); border-color: var(--edge);
}
.btn.is-blocked { pointer-events: none; }

/* Buttons that sit on a gold band need dark edges instead of gold-on-gold. */
.section--gold .btn--ghost, .panel--gold .btn--ghost { border-color: var(--ink); color: var(--ink); }
.section--gold .btn--ghost:hover, .panel--gold .btn--ghost:hover { background: var(--ink); color: var(--gold); }
.section--gold .btn--ink, .panel--gold .btn--ink { border-color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: var(--bw) solid var(--gold); border-radius: var(--r-pill);
  padding: 8px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: transparent; color: var(--gold);
}
.pill--gold  { background: var(--gold); color: var(--ink); }
.pill--ink   { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.pill--rust  { background: var(--gold); color: var(--ink); }
.pill--light { border-color: var(--cream); color: var(--cream); }
.pill--soft  { border-color: var(--edge); color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; padding: 4px 10px; font-size: 11px; }
a.pill:hover, button.pill:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pill[aria-pressed="true"], .pill[aria-current="true"] { background: var(--gold); color: var(--ink); }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   6. Surfaces
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: var(--bw) solid var(--edge);
  border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column;
  color: var(--cream);
}
.card--shadow { box-shadow: var(--shadow); }
.card--link { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card--link:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .7), 0 0 0 1px rgba(240, 195, 60, .25);
}

.panel {
  background: var(--surface); border: var(--bw) solid var(--edge);
  border-radius: var(--r-panel); padding: clamp(20px, 3vw, 26px);
  display: flex; flex-direction: column; gap: 16px; color: var(--cream);
}
.panel--shadow { box-shadow: var(--shadow); }
.panel--flat { padding: 18px; gap: 12px; }

.panel--gold {
  background: var(--gold); color: var(--on-gold);
  border-color: var(--ink); box-shadow: var(--shadow-gold);
}
.panel--gold h1, .panel--gold h2, .panel--gold h3, .panel--gold .h-panel, .panel--gold .h-card { color: var(--ink); }
.panel--gold .prose p, .panel--gold .prose li, .panel--gold p { color: var(--on-gold); }
.panel--gold .prose strong { color: var(--ink); }
.panel--gold a { color: var(--ink); text-decoration-color: rgba(10,10,11,.4); }

.panel--dark {
  background: linear-gradient(180deg, #17161C 0%, #0F0E12 100%);
  color: var(--cream); border-color: var(--gold); box-shadow: var(--shadow-lg);
}
.panel--dark.panel--goldShadow { box-shadow: 8px 8px 0 var(--gold-deep); }
.panel--dark h2, .panel--dark h3, .panel--dark .h-panel { color: var(--gold); }

.panel--dashed { background: transparent; border: var(--bw) dashed var(--line-dash); }

.hairline { border: 0; border-top: 1px solid var(--edge); }
.hairline--dark { border-top-color: rgba(240, 195, 60, .25); }

/* --------------------------------------------------------------------------
   7. Forms
   -------------------------------------------------------------------------- */
.field {
  display: block; width: 100%;
  border: var(--bw) solid var(--edge); border-radius: var(--r-field);
  padding: 13px 16px; font-size: 14px; background: var(--surface-2); color: var(--cream);
}
.field::placeholder { color: var(--muted-3); }
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 195, 60, .25); }
.field--pill { border-radius: var(--r-pill); }
select.field {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F0C33C' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.field option { background: var(--surface); color: var(--cream); }
textarea.field { min-height: 120px; resize: vertical; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--body-text); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px;
  border: 2px solid var(--gold); border-radius: 4px; background: transparent;
  display: grid; place-items: center;
}
.check input:checked + .box { background: var(--gold); }
.check input:checked + .box::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}
.check input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }
.panel--gold .check { color: var(--on-gold); }
.panel--gold .check .box { border-color: var(--ink); }
.panel--gold .check input:checked + .box { background: var(--ink); }
.panel--gold .check input:checked + .box::after { border-color: var(--gold); }

.radio-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: var(--bw) solid var(--edge); border-radius: 14px;
  padding: 14px 16px; background: var(--surface-2); cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease;
}
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card .dot { width: 18px; height: 18px; flex-shrink: 0; border: 2px solid var(--gold); border-radius: var(--r-pill); background: transparent; }
.radio-card:hover { border-color: var(--gold-dim); }
.radio-card:has(input:checked) { border-color: var(--gold); background: rgba(240, 195, 60, .09); }
.radio-card:has(input:checked) .dot { background: var(--gold); box-shadow: inset 0 0 0 3px var(--surface-2); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.radio-card .rc-body { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; }
.radio-card .rc-title { font-size: 15px; font-weight: 700; color: var(--cream); }
.radio-card .rc-note { font-size: 12px; color: var(--muted); }
.radio-card .rc-price { font-family: var(--display); font-size: 17px; color: var(--gold); }

.field.is-invalid { border-color: #E2553A; box-shadow: 0 0 0 3px rgba(226, 85, 58, .2); }
.field-error { color: #F08A70; font-size: 12px; font-weight: 700; }
.field-error:empty { display: none; }

.qty { display: inline-flex; align-items: center; border: var(--bw) solid var(--gold); border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); }
.qty button { border: 0; background: transparent; color: var(--gold); font-family: var(--display); font-size: 18px; line-height: 1; padding: 12px 18px; }
.qty button:hover { background: var(--gold); color: var(--ink); }
.qty .qty-val { min-width: 42px; text-align: center; font-weight: 700; font-size: 16px; color: var(--cream); }
.qty--sm button { padding: 8px 14px; font-size: 15px; }
.qty--sm .qty-val { min-width: 30px; font-size: 14px; }

/* --------------------------------------------------------------------------
   8. Header / footer
   -------------------------------------------------------------------------- */
.announce {
  background: var(--gold); color: var(--on-gold); font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  padding: 11px var(--pad-x); text-align: center;
}
.announce a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* The header and the search panel stick as one block. Sticking them
   separately meant the panel stopped following once the page scrolled past
   its own position in the flow. */
.site-top { position: sticky; top: 0; z-index: 40; }
.site-header {
  background: var(--ink); border-bottom: var(--bw) solid var(--gold);
  padding: 14px var(--pad-x);
}
.site-header .bar { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.site-header a { color: var(--cream); }
.site-header a:hover { color: var(--gold); }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: clamp(104px, 13vw, 148px); height: auto; }
.brand .txt { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.brand .mark { font-family: var(--display); font-size: clamp(19px, 3.4vw, 26px); letter-spacing: -.01em; line-height: 1; color: var(--gold); }
.brand .sub { font-size: 8px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }

.site-nav { display: flex; gap: clamp(12px, 2.2vw, 24px); flex-wrap: wrap; }
.site-nav a { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); }
.site-nav a[aria-current="page"] { font-weight: 700; }

.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.bag-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold); padding: 9px 16px;
  border-radius: var(--r-pill); border: 2px solid var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap;
}
.site-header .bag-btn { color: var(--ink); }
.site-header .bag-btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.bag-btn .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--ink); color: var(--gold); border-radius: var(--r-pill); font-size: 11px; }

.nav-toggle { display: none; background: transparent; border: 2px solid var(--gold); border-radius: 10px; padding: 9px 10px; line-height: 0; }
.nav-toggle span { display: block; width: 20px; height: 2.5px; background: var(--gold); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

.marquee {
  background: var(--ink); color: var(--gold); font-family: var(--display);
  font-size: clamp(11px, 1.6vw, 15px); letter-spacing: .22em;
  padding: 14px var(--pad-x); text-align: center; text-transform: uppercase; line-height: 1.7;
  border-block: 1px solid var(--gold-dim);
}

.site-footer {
  background: var(--ink); color: var(--body-text);
  padding: 52px var(--pad-x) 28px; border-top: var(--bw-heavy) solid var(--gold);
}
.site-footer .cols { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.site-footer a { color: var(--body-text); font-size: 13px; }
.site-footer a:hover { color: var(--gold); }
.site-footer .col-head { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.site-footer .brand .mark { color: var(--gold); }
.site-footer .brand .sub { color: var(--muted-2); }
.site-footer .legal {
  max-width: var(--maxw); margin: 34px auto 0; padding-top: 20px;
  border-top: 1px solid var(--edge); display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); line-height: 1.8;
}
.warning-box {
  border: 1px solid var(--edge); border-radius: 10px; padding: 12px 14px;
  font-size: 11px; line-height: 1.7; color: var(--muted); max-width: 70ch;
}

/* --------------------------------------------------------------------------
   9. Product media
   -------------------------------------------------------------------------- */
.media { position: relative; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--square { aspect-ratio: 1; }
.media--43  { aspect-ratio: 4 / 3; }
.media--169 { aspect-ratio: 16 / 9; }
.media--cardTop { border-bottom: var(--bw) solid var(--edge); }
.media--framed { border: var(--bw) solid var(--gold); border-radius: 20px; box-shadow: var(--shadow-lg); }
.media--thumb  { border: var(--bw) solid var(--edge); border-radius: 12px; }
.media-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink);
  border-radius: var(--r-pill); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; padding: 5px 10px; pointer-events: none; text-transform: uppercase;
}
.media-badge--tl { top: 14px; left: 14px; right: auto; font-size: 11px; padding: 6px 12px; letter-spacing: .12em; }
.media-badge--sale { background: var(--ink); color: var(--gold); border-color: var(--gold); }

.media .ph { height: 56%; width: auto; max-height: 300px; opacity: .45; }
.media .ph-label {
  position: absolute; bottom: 9px; left: 0; right: 0; text-align: center;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-3);
}

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.thumbs button { padding: 0; border: 0; background: transparent; border-radius: 12px; }
.thumbs .media--thumb { transition: transform .12s ease, border-color .12s ease; }
.thumbs button[aria-current="true"] .media--thumb { border-color: var(--gold); }
.thumbs button:hover .media--thumb { transform: translateY(-2px); border-color: var(--gold-dim); }

/* --------------------------------------------------------------------------
   10. Product card
   -------------------------------------------------------------------------- */
.p-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card .name { font-family: var(--display); font-size: 19px; line-height: 1.15; color: var(--cream); }
.p-card .name a { display: block; color: var(--cream); }
.p-card .name a:hover { color: var(--gold); }
.p-card .blurb { font-size: 12px; line-height: 1.6; color: var(--muted); }
.p-card .foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px 8px; padding-top: 12px; flex-wrap: wrap;
}
.p-card .foot .btn { flex-shrink: 0; }
.p-card .price { font-size: 19px; }
.p-card .oos { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   11. Components
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted-2); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .here { color: var(--cream); font-weight: 700; }

.page-banner {
  background: linear-gradient(135deg, #1A1820 0%, #0F0E12 100%);
  color: var(--cream);
  border: var(--bw) solid var(--gold); border-radius: 20px;
  padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px);
  display: flex; justify-content: space-between; gap: 28px;
  align-items: flex-end; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.page-banner h1 { color: var(--gold); }
.page-banner p { color: var(--body-text); font-size: 15px; line-height: 1.7; max-width: 58ch; }

.facet { display: flex; flex-direction: column; gap: 12px; }
.facet-list { display: flex; flex-direction: column; gap: 2px; }
.facet-item {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--body-text);
  padding: 5px 6px; margin-inline: -6px; border-radius: 8px;
  background: transparent; border: 0; width: calc(100% + 12px); text-align: left;
}
.facet-item:hover { background: var(--surface-3); color: var(--cream); }
.facet-item .box { width: 15px; height: 15px; border: 2px solid var(--gold); border-radius: 4px; flex-shrink: 0; background: transparent; display: grid; place-items: center; }
.facet-item[aria-pressed="true"] { color: var(--gold); font-weight: 700; }
.facet-item[aria-pressed="true"] .box { background: var(--gold); }
.facet-item[aria-pressed="true"] .box::after {
  content: ""; width: 8px; height: 4px; margin-top: -2px;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg);
}
.facet-item .count { margin-left: auto; font-size: 11px; color: var(--muted-3); }

.stat { background: var(--surface); border: var(--bw) solid var(--edge); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat .n { font-family: var(--display); font-size: clamp(26px, 3vw, 32px); color: var(--gold); line-height: 1; }
.stat .t { font-size: 13px; line-height: 1.6; color: var(--body-text); }

.spec-table { background: var(--surface); border: var(--bw) solid var(--edge); border-radius: 16px; overflow: hidden; }
.spec-table .r { display: flex; justify-content: space-between; gap: 20px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.spec-table .r:last-child { border-bottom: 0; }
.spec-table .r .k { color: var(--muted); }
.spec-table .r .v { font-weight: 700; text-align: right; color: var(--cream); }
.spec-table .foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; background: var(--gold); color: var(--on-gold); font-size: 13px; line-height: 1.5; font-weight: 500; }
.spec-table .foot .btn { border-color: var(--ink); color: var(--ink); }
.spec-table .foot .btn:hover { background: var(--ink); color: var(--gold); }

.summary-line { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.summary-line .v { color: var(--cream); font-weight: 500; }
.summary-line--discount .v { color: var(--gold); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; }
.summary-total .k { font-family: var(--display); font-size: 18px; color: var(--cream); }
.summary-total .v { font-family: var(--display); font-size: 30px; color: var(--gold); }

.ship-bar { background: var(--gold); color: var(--on-gold); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 16px 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.ship-bar .track { flex: 1; min-width: 180px; height: 12px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: rgba(10,10,11,.18); overflow: hidden; }
.ship-bar .fill { height: 100%; background: var(--ink); transition: width .3s ease; }

.steps { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 9px; }
.step .n { width: 30px; height: 30px; border: 2px solid var(--edge); border-radius: var(--r-pill); display: grid; place-items: center; font-family: var(--display); font-size: 14px; flex-shrink: 0; background: transparent; color: var(--muted-3); }
.step .t { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-3); }
.step .rule { width: 22px; height: 2px; background: var(--edge); }
.step:last-child .rule { display: none; }
.step.is-done .n, .step.is-current .n { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.step.is-done .t, .step.is-current .t { color: var(--cream); }

.cart-line { background: var(--surface); border: var(--bw) solid var(--edge); border-radius: var(--r-card); padding: 18px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.cart-line .thumb { width: 108px; height: 108px; flex-shrink: 0; border: var(--bw) solid var(--edge); border-radius: 12px; }
.cart-line .info { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-line .name { font-family: var(--display); font-size: 20px; line-height: 1.15; }
.cart-line .name a { color: var(--cream); }
.cart-line .name a:hover { color: var(--gold); }
.cart-line .variant { font-size: 13px; color: var(--muted); }
.cart-line .stock { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cart-line .acts { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cart-line .acts button { background: 0; border: 0; padding: 0; color: var(--muted); border-bottom: 1px solid var(--edge); }
.cart-line .acts button:hover { color: var(--gold); border-bottom-color: var(--gold); }
.cart-line .side { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; margin-left: auto; }
.cart-line .line-total { font-family: var(--display); font-size: 22px; color: var(--gold); }

.mini-line { display: flex; gap: 14px; align-items: center; }
.mini-line .thumb { width: 56px; height: 56px; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; }
.mini-line .info { flex: 1 1 100px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-line .n { font-size: 14px; font-weight: 700; color: var(--cream); }
.mini-line .v { font-size: 12px; color: var(--muted); }
.mini-line .t { font-family: var(--display); font-size: 15px; color: var(--gold); }

.pager { display: flex; justify-content: center; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.pager button { border: 2px solid var(--edge); border-radius: var(--r-pill); padding: 10px 16px; font-size: 12px; font-weight: 700; background: transparent; color: var(--body-text); }
.pager button:hover:not([disabled]) { border-color: var(--gold); color: var(--gold); }
.pager button[aria-current="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pager button[disabled] { opacity: .3; cursor: not-allowed; }

.empty-state { border: var(--bw) dashed var(--line-dash); border-radius: var(--r-panel); padding: clamp(34px, 6vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }

.toast-host {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 120;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none; width: min(440px, calc(100% - 24px));
}
.toast {
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink);
  border-radius: var(--r-pill); padding: 13px 22px; font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6); text-align: center; animation: toast-in .22s ease both;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.age-gate {
  position: fixed; inset: 0; z-index: 300;
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(240,195,60,.13) 0%, rgba(240,195,60,0) 60%),
    var(--black);
  overflow: auto; display: grid; place-items: center; padding: clamp(16px, 5vw, 60px) var(--pad-x);
}
.age-gate[hidden] { display: none; }
.age-card {
  max-width: 560px; width: 100%; position: relative;
  background: var(--surface); border: var(--bw-heavy) solid var(--gold);
  border-radius: 22px; padding: clamp(28px, 5vw, 46px) clamp(22px, 4vw, 42px);
  box-shadow: 10px 10px 0 var(--gold-deep); display: flex; flex-direction: column; gap: 22px;
}
.age-card .mark { font-family: var(--display); font-size: 24px; text-align: center; color: var(--gold); letter-spacing: .04em; }
.age-card h1 { color: var(--cream); }

/* --- Homepage SEO content -------------------------------------------------- */
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.seo-block h3 {
  font-size: 19px; line-height: 1.2; color: var(--gold); margin-bottom: 8px;
  padding-left: 12px; border-left: 3px solid var(--gold);
}
.seo-block p { font-size: 14px; line-height: 1.8; color: var(--body-text); }

/* --- Side cart minimum notice ---------------------------------------------- */
.drawer-min {
  margin: 0; text-align: center; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; color: #F08A70;
}

/* --- Payment account box + receipt upload --------------------------------- */
.pay-account {
  border: 2px solid var(--gold); border-radius: 14px;
  background: rgba(240, 195, 60, .07); padding: 0; overflow: hidden; margin-bottom: 16px;
}
.pay-account-title {
  background: var(--gold); color: var(--on-gold);
  padding: 9px 16px; font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.pay-fields { margin: 0; padding: 6px 16px 4px; }
.pay-field { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; }
.pay-field + .pay-field { border-top: 1px solid rgba(240, 195, 60, .18); }
.pay-field dt {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); flex: 0 0 auto;
}
.pay-field dd { margin: 0; display: flex; align-items: center; gap: 10px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
.pay-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px; color: var(--cream); word-break: break-all; text-align: right;
}
/* The field people actually type into their banking app gets the emphasis. */
.pay-field--primary dd .pay-value {
  font-size: clamp(17px, 2.6vw, 22px); font-weight: 700; color: var(--gold); letter-spacing: .01em;
}
.pay-copy {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--gold-dim); background: transparent; color: var(--gold);
}
.pay-copy:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pay-amount {
  border-top: 1px solid rgba(240, 195, 60, .18);
  padding: 11px 16px; font-size: 13px; color: var(--body-text);
}
.pay-amount strong { color: var(--gold); font-size: 16px; }

.pay-reference { border-left: 3px solid var(--gold); padding: 2px 0 2px 14px; margin-top: 14px; }

.field--file {
  padding: 11px 14px; cursor: pointer;
  border-style: dashed; border-color: var(--gold-dim); background: var(--surface-2);
}
.field--file::file-selector-button {
  font: inherit; font-weight: 700; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  margin-right: 12px; padding: 8px 14px; cursor: pointer;
  border: 2px solid var(--gold); border-radius: var(--r-pill);
  background: transparent; color: var(--gold);
}
.field--file::file-selector-button:hover { background: var(--gold); color: var(--ink); }
.field--file:hover { border-color: var(--gold); }

/* --- Numbered checkout sections ------------------------------------------- */
.co-step { scroll-margin-top: 110px; }
.co-step-head { display: flex; align-items: center; gap: 12px; }
.co-num {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: var(--r-pill); background: var(--gold); color: var(--ink);
  font-family: var(--display); font-size: 16px;
  display: grid; place-items: center;
}
.pay-instructions p { margin: 0; }
.pay-instructions strong { color: var(--cream); }

/* --- Slide-out cart -------------------------------------------------------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .68); backdrop-filter: blur(2px);
  animation: scrim-in .2s ease both;
}
@keyframes scrim-in { from { opacity: 0; } }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 100%);
  background: var(--surface); border-left: var(--bw) solid var(--gold);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, .6);
  animation: drawer-in .24s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes drawer-in { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px var(--pad-x); border-bottom: 1px solid var(--edge); flex-shrink: 0;
}
.drawer-head h2 { color: var(--gold); }
.drawer-close {
  background: transparent; border: 2px solid var(--edge); color: var(--cream);
  width: 38px; height: 38px; border-radius: var(--r-pill);
  font-size: 22px; line-height: 1; display: grid; place-items: center; flex-shrink: 0;
}
.drawer-close:hover { border-color: var(--gold); color: var(--gold); }

.drawer-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px; padding: 40px var(--pad-x);
}

.drawer-body { flex: 1; overflow-y: auto; padding: 18px var(--pad-x); display: flex; flex-direction: column; gap: 16px; }
.drawer-ship { padding: 12px 14px; border-radius: 12px; }
.drawer-lines { display: flex; flex-direction: column; gap: 14px; }

.drawer-line { display: flex; gap: 14px; align-items: flex-start; }
.drawer-line .media {
  width: 74px; height: 74px; flex-shrink: 0;
  border: 1px solid var(--edge); border-radius: 10px;
}
.drawer-line .d-info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.drawer-line .d-name { font-family: var(--display); font-size: 15px; line-height: 1.2; }
.drawer-line .d-name a { color: var(--cream); }
.drawer-line .d-name a:hover { color: var(--gold); }
.drawer-line .d-var { font-size: 11px; color: var(--muted); }
.drawer-line .d-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.drawer-line .d-total { font-family: var(--display); font-size: 15px; color: var(--gold); }
.drawer-line .d-remove {
  background: 0; border: 0; padding: 0; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--edge);
}
.drawer-line .d-remove:hover { color: var(--gold); border-bottom-color: var(--gold); }

.drawer-foot {
  flex-shrink: 0; padding: 18px var(--pad-x) 22px;
  border-top: 1px solid var(--edge); background: #100F13;
  display: flex; flex-direction: column; gap: 10px;
}
.drawer-foot .summary-line { font-size: 15px; }

@media (max-width: 560px) {
  .drawer { width: 100%; border-left: 0; }
}

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(21px, 3vw, 27px); margin-top: 38px; margin-bottom: 12px; color: var(--gold); }
.prose h3 { font-size: 18px; margin-top: 26px; margin-bottom: 8px; color: var(--cream); }
.prose p, .prose li { font-size: 15px; line-height: 1.8; color: var(--body-text); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold-deep); }
.prose strong { color: var(--cream); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose > *:first-child { margin-top: 0; }
.prose code { background: var(--surface-2); border: 1px solid var(--edge); border-radius: 5px; padding: 1px 6px; font-size: .9em; color: var(--gold); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--edge); padding: 10px 12px; text-align: left; color: var(--body-text); }
.prose th { background: var(--surface-2); font-weight: 700; color: var(--cream); }

/* Long-form product description imported from WordPress */
.description-html { max-width: 78ch; }
.description-html h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 32px 0 12px; color: var(--gold); }
.description-html h3 { font-size: 17px; margin: 24px 0 8px; color: var(--cream); }
.description-html p, .description-html li { font-size: 15px; line-height: 1.8; color: var(--body-text); }
.description-html p { margin-bottom: 14px; }
.description-html ul, .description-html ol { margin: 0 0 16px; padding-left: 22px; }
.description-html li { margin-bottom: 7px; }
.description-html li::marker { color: var(--gold-deep); }
.description-html strong { color: var(--cream); }
.description-html table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; display: block; overflow-x: auto; }
.description-html th, .description-html td { border: 1px solid var(--edge); padding: 10px 12px; text-align: left; color: var(--body-text); }
.description-html th { background: var(--surface-2); color: var(--cream); }
.description-html img { border-radius: 12px; margin-bottom: 16px; }
.description-html > *:first-child { margin-top: 0; }

.accordion { border: var(--bw) solid var(--edge); border-radius: 16px; background: var(--surface); overflow: hidden; }
.accordion + .accordion { margin-top: 14px; }
.accordion summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--display); font-size: 17px; line-height: 1.3; color: var(--cream);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.accordion summary:hover { color: var(--gold); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 22px; color: var(--gold); flex-shrink: 0; }
.accordion[open] summary::after { content: "\2212"; }
.accordion[open] summary { border-bottom: 1px solid var(--edge); color: var(--gold); }
.accordion .ac-body { padding: 16px 22px 20px; }
.accordion .ac-body p { font-size: 14px; line-height: 1.75; color: var(--body-text); }

.dev-note {
  background: rgba(240, 195, 60, .08);
  border: 1px dashed var(--gold-deep); border-radius: 10px;
  padding: 12px 16px; font-size: 13px; line-height: 1.6; color: var(--body-text);
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }
}

/* --- header search --------------------------------------------------------
   The panel sits directly under the sticky header and shares its z-index
   band, so it must sit above the page but below the cart drawer. */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  background: transparent; color: var(--gold);
  border: 2px solid var(--edge); border-radius: 999px;
  transition: border-color .12s ease, color .12s ease;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-bright); }

.search-panel {
  background: var(--surface); border-bottom: 2px solid var(--edge);
  box-shadow: 0 14px 30px rgba(0,0,0,.5);
  max-height: calc(100vh - 100%); overflow-y: auto;
}
.search-inner { max-width: var(--maxw); margin-inline: auto; padding: 16px var(--pad-x) 20px; }
.search-row { display: flex; gap: 10px; align-items: center; }
.search-row .field { flex: 1; }
.search-status { font-size: 12px; color: var(--muted); margin: 8px 2px 0; min-height: 1em; }
.search-status:empty { margin-top: 0; }

.search-results { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.search-hit {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 10px; color: var(--cream);
}
.search-hit:hover, .search-hit:focus-visible { background: var(--surface-3); color: var(--cream); }
.search-thumb {
  width: 46px; height: 46px; flex-shrink: 0; overflow: hidden;
  border-radius: 8px; background: var(--surface-2); border: 1px solid var(--edge);
}
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.search-name { font-family: var(--display); font-size: 15px; line-height: 1.2; }
.search-meta { font-size: 11px; color: var(--muted); }
.search-price { font-family: var(--display); color: var(--gold); font-size: 15px; flex-shrink: 0; }

@media (max-width: 560px) {
  .search-name { font-size: 14px; }
  .search-thumb { width: 40px; height: 40px; }
}

/* Filter disclosure. The button only exists below the sidebar breakpoint. */
.filter-toggle { display: none; justify-content: space-between; }
.filter-caret { font-size: 11px; }
.filter-toggle[aria-expanded="true"] .filter-caret { transform: rotate(180deg); }

@media (max-width: 880px) {
  .filter-toggle { display: flex; }
  /* The crypto panel is a desktop-sidebar nicety; on a phone it just pushes
     the products further down the page. */
  .sidebar .crypto-note { display: none; }

  /* Sit the menu button beside the logo instead of letting space-between
     park it in the middle of the bar. */
  .nav-toggle { display: block; margin-right: auto; }
  .site-header .bar { flex-wrap: wrap; }
  .site-nav {
    order: 3; width: 100%; flex-direction: column; gap: 0;
    border-top: 1px solid var(--edge); margin-top: 12px; padding-top: 4px;
  }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
  .site-nav a:last-child { border-bottom: 0; }
  .sidebar-layout--cart > .sidebar { position: static; }
  .cart-line .side { margin-left: 0; width: 100%; flex-direction: row; justify-content: space-between; }
}

@media (max-width: 720px) {
  .hero-media { display: none; }
}

@media (max-width: 560px) {
  /* Two per row on phones. The auto-fill tracks collapse to one column at this
     width because of the min(100%, ...) floor, so the count is pinned here. */
  .grid-auto, .grid-auto--sm, .grid-auto--fit,
  .grid-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Product cards now have half the width, so ease the internals down. */
  .p-card .body { padding: 11px; gap: 6px; }
  .p-card .name { font-size: 15px; }
  .p-card .blurb { font-size: 11px; }
  .p-card .price { font-size: 16px; }
  .p-card .foot { padding-top: 8px; gap: 6px; flex-wrap: wrap; }
  .p-card .foot .btn { padding: 7px 11px; font-size: 10px; letter-spacing: .06em; }
  .was { font-size: 11px; margin-left: 4px; }
  .media-badge { font-size: 9px; padding: 4px 7px; top: 7px; right: 7px; }

  /* Category tiles at half width too. */
  .grid-cats .h-card { font-size: 15px; }
  .grid-cats .body { padding: 11px; }
  .grid-cats .tiny { font-size: 11px; }

  :root { --shadow-lg: 5px 5px 0 var(--gold-deep); --shadow-gold: 4px 4px 0 var(--gold-deep); }
  .announce { font-size: 10px; letter-spacing: .08em; padding: 9px 12px; }
  .page-banner { padding: 22px; border-radius: 16px; }
  .cart-line { padding: 14px; gap: 14px; }
  .cart-line .thumb { width: 78px; height: 78px; }
  .steps { gap: 8px; }
  .step .t { display: none; }
  .thumbs { gap: 8px; }
  .age-card { box-shadow: 6px 6px 0 var(--gold-deep); }
}

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .announce, .marquee, .age-gate, .toast-host, .btn, .nav-toggle { display: none !important; }
  html, body { background: #fff; color: #000; }
  .card, .panel { box-shadow: none; border-color: #999; break-inside: avoid; }
  .card, .panel, .prose p, .prose li { color: #000; }
}

/* Age-gate brand lockup. The logo is gold on a dark card, so it never sits on
   a gold fill (see brand rules). */
.age-logo {
  width: clamp(110px, 30vw, 150px);
  height: auto;
  margin: 0 auto 2px;
  display: block;
}
