/* ============ Tokens ============ */
:root {
  --mist: #ECEEEA;        /* page background: atomizer mist */
  --surface: #F6F7F4;     /* raised surfaces */
  --glass: #DDE2E1;       /* glass tint behind vials */
  --line: #C9CECC;        /* borders */
  --ink: #22202B;         /* primary text */
  --smoke: #5E5A66;       /* secondary text (6:1 on mist) */
  --plum: #4A2545;        /* primary action */
  --plum-hover: #5E3158;
  --on-plum: #FFFFFF;
  --plum-tint: #E6DCE4;
  --focus: #4A2545;
  --scrim: rgba(20, 18, 26, .5);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* type scale (1.25 minor third-ish, display steps larger) */
  --t-sm: .875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.5rem;
  --t-xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --t-hero: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-tile: 6px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --dur: 200ms;

  --z-header: 40; --z-scrim: 90; --z-drawer: 100; --z-toast: 110;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #16141B; --surface: #1E1B24; --glass: #26232D; --line: #3A3642;
    --ink: #ECEAF0; --smoke: #ABA6B4; --plum: #D3A6CB; --plum-hover: #E2BFDA;
    --on-plum: #1E1420; --plum-tint: #3A2A38; --focus: #D3A6CB;
    --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mist: #16141B; --surface: #1E1B24; --glass: #26232D; --line: #3A3642;
  --ink: #ECEAF0; --smoke: #ABA6B4; --plum: #D3A6CB; --plum-hover: #E2BFDA;
  --on-plum: #1E1420; --plum-tint: #3A2A38; --focus: #D3A6CB;
  --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.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: var(--s-4); top: -60px; z-index: 200;
  background: var(--plum); color: var(--on-plum); padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill); text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s-6); } }

.price { font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }
.price-lg { font-size: var(--t-lg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--plum); color: var(--on-plum); }
.btn-primary:hover { background: var(--plum-hover); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--glass); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: var(--r-pill);
}
.icon-btn:hover { background: var(--glass); }
svg[aria-hidden] { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg, .bag-btn svg, .search svg { width: 22px; height: 22px; }

/* ============ Announcement + header ============ */
.announce { background: var(--ink); color: var(--mist); text-align: center; font-size: var(--t-sm); padding: var(--s-2) var(--s-4); }

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--mist) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: var(--s-4); min-height: 68px;
}
.wordmark {
  font-family: var(--f-display); font-size: 1.625rem; line-height: 1;
  text-decoration: none; letter-spacing: -.01em; font-weight: 500;
}
.wordmark span { font-style: italic; font-weight: 400; }

.menu-toggle { justify-self: end; }
.primary-nav { display: none; }
.primary-nav.open {
  display: block; grid-column: 1 / -1; padding-bottom: var(--s-4);
}
.primary-nav ul { display: flex; flex-direction: column; gap: var(--s-1); }
.primary-nav a {
  display: block; padding: var(--s-3) 0; text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.primary-nav a:hover { color: var(--plum); }

.header-actions { display: none; }
.bag-btn {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  padding: 0 var(--s-4); border: 1px solid var(--ink); border-radius: var(--r-pill);
  background: transparent; font-weight: 600;
}
.bag-btn:hover { background: var(--glass); }
.bag-count {
  min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center;
  border-radius: var(--r-pill); background: var(--plum); color: var(--on-plum);
  font-size: .75rem; font-variant-numeric: tabular-nums;
}

/* mobile: bag sits next to the menu toggle */
.header-inner { grid-template-columns: 1fr auto auto; }
.header-actions { display: flex; grid-column: 2; grid-row: 1; }
.header-actions .search { display: none; }
.header-actions .bag-btn span:not(.bag-count) { display: none; }
.menu-toggle { grid-column: 3; grid-row: 1; }

.search {
  display: flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--smoke);
}
.search:focus-within { border-color: var(--ink); color: var(--ink); }
.search input { border: 0; background: transparent; outline: none; width: 15rem; color: var(--ink); min-width: 0; }
.search input::placeholder { color: var(--smoke); }

.mobile-search { display: block; margin-bottom: var(--s-3); }
.mobile-search .search { width: 100%; }
.mobile-search input { width: 100%; }

@media (min-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: none; }
  .primary-nav, .primary-nav.open { display: block; grid-column: 2; padding: 0; }
  .primary-nav ul { flex-direction: row; justify-content: center; gap: var(--s-6); }
  .primary-nav a { border: 0; padding: var(--s-2) 0; position: relative; }
  .primary-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease-out);
  }
  .primary-nav a:hover::after { transform: scaleX(1); }
  .header-actions { grid-column: 3; gap: var(--s-3); align-items: center; }
  .header-actions .search { display: flex; }
  .header-actions .bag-btn span:not(.bag-count) { display: inline; }
  .mobile-search { display: none; }
}

/* ============ Hero ============ */
.hero { padding: var(--s-7) 0 var(--s-8); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero h1 {
  font-family: var(--f-display); font-size: var(--t-hero);
  line-height: 1.02; letter-spacing: -.02em; font-weight: 400;
  max-width: 13ch; text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
.lede { margin-top: var(--s-5); font-size: var(--t-md); color: var(--smoke); max-width: 52ch; }
.hero-ctas { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero-vial {
  margin: 0; display: grid; grid-template-columns: minmax(120px, 190px) 1fr;
  gap: var(--s-5); align-items: end;
  padding: var(--s-5); background: var(--glass); border-radius: 160px 160px var(--r-tile) var(--r-tile);
}
.vial-stage { aspect-ratio: 120 / 340; width: 100%; }
.hv-house { color: var(--smoke); font-size: var(--t-sm); }
.hv-name { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.15; margin-top: 2px; }
.hv-notes { color: var(--smoke); font-size: var(--t-sm); margin-top: var(--s-2); }
.hero-vial .sizes { margin-top: var(--s-4); }
.hv-sprays { margin-top: var(--s-3); font-size: var(--t-sm); min-height: 3.2em; }
.hv-buy { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }

@media (min-width: 900px) {
  .hero { padding: var(--s-8) 0 var(--s-9); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .hero-vial { padding: var(--s-6); grid-template-columns: 180px 1fr; }
}
@media (max-width: 520px) {
  .hero-vial { grid-template-columns: 1fr; justify-items: start; border-radius: var(--r-tile); }
  .hero-vial .vial-stage { width: 110px; justify-self: center; }
}

/* ============ Vial SVG ============ */
.vial .liquid {
  transform-box: fill-box; transform-origin: 50% 100%;
  transition: transform 520ms cubic-bezier(.3, 1.2, .4, 1);
}
.vial .glass-body { fill: color-mix(in srgb, var(--surface) 55%, transparent); stroke: var(--ink); stroke-width: 1.2; }
.vial .cap { fill: var(--ink); }
.vial .collar { fill: var(--smoke); }
.vial .shine { fill: #fff; opacity: .55; }
.vial .grad-line { stroke: var(--ink); stroke-width: 1; opacity: .45; }
.vial .grad-text { fill: var(--smoke); font: 600 9px var(--f-text); }

/* ============ Size selector ============ */
.size-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-opt span {
  display: grid; place-items: center; min-width: 52px; min-height: 40px; padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--surface);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur);
}
.size-opt:hover span { border-color: var(--ink); }
.size-opt input:checked + span { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.size-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sizes-lg .size-opt span { min-width: 64px; min-height: 44px; font-size: var(--t-base); }

/* ============ Trust ============ */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-list { display: grid; gap: var(--s-5); padding-block: var(--s-6); }
.trust-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.trust-list svg { width: 28px; height: 28px; flex: none; color: var(--plum); }
.trust-list strong { display: block; font-weight: 600; }
.trust-list span { display: block; color: var(--smoke); font-size: var(--t-sm); }
@media (min-width: 768px) { .trust-list { grid-template-columns: repeat(3, 1fr); } }

/* ============ Sections ============ */
.shop, .how, .discovery, .houses, .faq { padding-block: var(--s-8); }
@media (min-width: 900px) { .shop, .how, .discovery, .houses, .faq { padding-block: var(--s-9); } }
.section-head { max-width: 60ch; margin-bottom: var(--s-6); }
.section-head h2, .disc-intro h2, .newsletter h2 {
  font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.08; letter-spacing: -.015em;
}
.section-head p { margin-top: var(--s-3); color: var(--smoke); }
.section-head a { color: var(--plum); text-underline-offset: 3px; }

/* ============ Shop toolbar ============ */
.toolbar { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent; font-weight: 500;
  display: inline-flex; align-items: center; gap: var(--s-2);
  transition: background-color var(--dur), border-color var(--dur), color var(--dur);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--mist); border-color: var(--ink); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.toolbar-right { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.result-count { color: var(--smoke); font-size: var(--t-sm); }
.select { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); color: var(--smoke); }
.select select {
  min-height: 44px; padding: 0 var(--s-6) 0 var(--s-3); border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
@media (min-width: 900px) {
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .toolbar-right { justify-content: flex-end; }
}
.active-house {
  display: flex; align-items: center; gap: var(--s-3); margin: calc(-1 * var(--s-2)) 0 var(--s-5);
  font-size: var(--t-sm);
}
.active-house button {
  border: 0; background: none; color: var(--plum); text-decoration: underline; text-underline-offset: 3px;
  min-height: 44px; padding: 0 var(--s-2); font-weight: 600;
}

/* ============ Product grid ============ */
.grid { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; background: var(--glass); border-radius: var(--r-tile);
  aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden;
}
.card-media .vial { height: 78%; width: auto; }
.card-media::before {
  /* a soft pool of the fragrance's own colour behind the vial */
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--juice) 45%, transparent), transparent);
  bottom: -18%;
}
.card-family {
  position: absolute; top: var(--s-3); left: var(--s-3);
  font-size: .8125rem; font-weight: 500; padding: 2px var(--s-3);
  border-radius: var(--r-pill); background: var(--surface); color: var(--ink);
}
.card-body { padding-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); flex: 1; }
.card-house { color: var(--smoke); font-size: var(--t-sm); }
.card-name { font-family: var(--f-display); font-size: 1.375rem; line-height: 1.15; }
.card-notes { color: var(--smoke); font-size: var(--t-sm); }
.card .sizes { margin-top: var(--s-3); }
.card-buy { margin-top: var(--s-3); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.card-buy .price { font-size: var(--t-md); }
.card-buy .btn { min-height: 44px; padding: 0 var(--s-4); }

.empty { text-align: center; padding: var(--s-8) var(--s-4); border: 1px dashed var(--line); border-radius: var(--r-tile); }
.empty p { margin-bottom: var(--s-4); }

/* ============ How it works ============ */
.how { background: var(--ink); color: var(--mist); }
.how .section-head p { color: color-mix(in srgb, var(--mist) 78%, var(--ink)); }
.how-grid { display: grid; gap: var(--s-5); }
.steps { counter-reset: step; display: grid; gap: var(--s-6); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 0 var(--s-4); }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-family: var(--f-display); font-size: 2.75rem; line-height: 1; font-style: italic;
  color: color-mix(in srgb, var(--mist) 60%, var(--ink));
}
.steps h3 { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.2; }
.steps p { margin-top: var(--s-2); color: color-mix(in srgb, var(--mist) 78%, var(--ink)); max-width: 48ch; }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: start; }
  .how .section-head { position: sticky; top: 110px; }
}
:root[data-theme="dark"] .how { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .how { background: var(--surface); color: var(--ink); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .how .section-head p,
  :root:not([data-theme="light"]) .steps p { color: var(--smoke); }
  :root:not([data-theme="light"]) .steps li::before { color: var(--plum); }
}
:root[data-theme="dark"] .how { color: var(--ink); }
:root[data-theme="dark"] .how .section-head p, :root[data-theme="dark"] .steps p { color: var(--smoke); }
:root[data-theme="dark"] .steps li::before { color: var(--plum); }

/* ============ Discovery set ============ */
.disc-grid { display: grid; gap: var(--s-7); }
.disc-intro p { margin-top: var(--s-3); color: var(--smoke); max-width: 46ch; }
.disc-tray {
  margin-top: var(--s-6); display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3);
  padding: var(--s-5) var(--s-4) var(--s-4); background: var(--glass); border-radius: var(--r-tile);
  max-width: 420px;
}
.disc-tray .slot { aspect-ratio: 40 / 120; display: grid; place-items: end center; }
.disc-tray .slot svg { height: 100%; width: auto; }
.disc-intro .disc-status { color: var(--ink); font-weight: 600; margin-top: var(--s-4); }
.disc-buy { margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }

.disc-pick ul { display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
@media (min-width: 560px) { .disc-pick ul { grid-template-columns: 1fr 1fr; } }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick label {
  display: flex; align-items: center; gap: var(--s-3); min-height: 60px;
  padding: var(--s-2) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-tile);
  background: var(--surface); cursor: pointer;
  transition: border-color var(--dur), background-color var(--dur);
}
.pick label:hover { border-color: var(--ink); }
.pick .swatch { width: 14px; height: 30px; border-radius: 3px 3px 6px 6px; flex: none; border: 1px solid rgba(0,0,0,.18); }
.pick .pk-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.pick .pk-house { font-size: .8125rem; color: var(--smoke); }
.pick .pk-name { font-weight: 600; }
.pick .tick {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); flex: none;
  display: grid; place-items: center;
}
.pick .tick svg { width: 14px; height: 14px; opacity: 0; stroke-width: 2.4; }
.pick input:checked + label { border-color: var(--plum); background: var(--plum-tint); }
.pick input:checked + label .tick { background: var(--plum); border-color: var(--plum); color: var(--on-plum); }
.pick input:checked + label .tick svg { opacity: 1; }
.pick input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.pick input:disabled + label { opacity: .5; cursor: not-allowed; }
@media (min-width: 900px) {
  .disc-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); align-items: start; }
  .disc-intro { position: sticky; top: 110px; }
}

/* ============ Houses ============ */
.houses { background: var(--surface); border-block: 1px solid var(--line); }
.house-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .house-list { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-6); } }
@media (min-width: 1024px) { .house-list { grid-template-columns: repeat(3, 1fr); } }
.house-list li { border-bottom: 1px solid var(--line); }
.house-list button {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
  min-height: 60px; padding: var(--s-3) 0; border: 0; background: none; text-align: left;
}
.house-list .h-name { font-family: var(--f-display); font-size: 1.25rem; transition: color var(--dur); }
.house-list .h-count { color: var(--smoke); font-size: var(--t-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.house-list button:hover .h-name { color: var(--plum); }

/* ============ FAQ ============ */
.faq-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); } }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-4); min-height: 64px; padding: var(--s-3) 0; font-weight: 600; font-size: var(--t-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--dur) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 var(--s-5); color: var(--smoke); max-width: 62ch; }

/* ============ Newsletter ============ */
.newsletter { padding-block: var(--s-8); background: var(--plum-tint); }
.news-inner { display: grid; gap: var(--s-5); align-items: end; }
.newsletter p { margin-top: var(--s-2); color: var(--smoke); max-width: 52ch; }
.news-form label { display: block; font-weight: 600; font-size: var(--t-sm); margin-bottom: var(--s-2); }
.news-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.news-row input {
  flex: 1 1 220px; min-height: 48px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  border: 1px solid var(--ink); background: var(--surface); color: var(--ink);
}
.news-row input[aria-invalid="true"] { border-color: #B3261E; }
.field-msg { min-height: 1.6em; margin-top: var(--s-2); font-size: var(--t-sm); }
.field-msg.error { color: #B3261E; }
.field-msg.ok { color: var(--ink); font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field-msg.error { color: #F2B8B5; }
  :root:not([data-theme="light"]) .news-row input[aria-invalid="true"] { border-color: #F2B8B5; }
}
@media (min-width: 900px) { .news-inner { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

/* ============ Footer ============ */
.site-footer { padding: var(--s-8) 0 var(--s-6); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-blurb { margin-top: var(--s-3); color: var(--smoke); max-width: 40ch; }
.site-footer h2 { font-size: var(--t-sm); font-weight: 600; margin-bottom: var(--s-2); }
.site-footer nav a { display: inline-block; padding: 6px 0; color: var(--smoke); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.footer-base p { font-size: .8125rem; color: var(--smoke); max-width: 80ch; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}

/* ============ Bag drawer ============ */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: var(--z-scrim); opacity: 0; transition: opacity 220ms var(--ease-out); }
.scrim.show { opacity: 1; }
.bag {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(420px, 100%); background: var(--mist); display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 280ms var(--ease-out);
}
.bag.show { transform: translateX(0); }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.bag-head h2 { font-family: var(--f-display); font-size: var(--t-lg); }
.ship-meter { padding: var(--s-4) var(--s-5); font-size: var(--t-sm); border-bottom: 1px solid var(--line); }
.meter { margin-top: var(--s-2); height: 4px; border-radius: 2px; background: var(--glass); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--plum); transform-origin: left; transition: transform 300ms var(--ease-out); }
.bag-lines { flex: 1; overflow-y: auto; padding: 0 var(--s-5); }
.bag-line { display: grid; grid-template-columns: 36px 1fr auto; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); align-items: start; }
.bag-line .mini { height: 64px; }
.bag-line .mini svg { height: 100%; width: auto; }
.bl-house { font-size: .8125rem; color: var(--smoke); }
.bl-name { font-weight: 600; line-height: 1.3; }
.bl-meta { font-size: var(--t-sm); color: var(--smoke); }
.qty { display: inline-flex; align-items: center; margin-top: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-pill); }
.qty button { width: 36px; height: 36px; border: 0; background: none; border-radius: var(--r-pill); font-size: 1.1rem; }
.qty button:hover { background: var(--glass); }
.qty output { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; font-size: var(--t-sm); }
.bl-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); }
.bl-remove { border: 0; background: none; color: var(--smoke); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; min-height: 32px; }
.bl-remove:hover { color: var(--ink); }
.bag-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: var(--s-4); padding: var(--s-6); text-align: center; color: var(--smoke); }
.bag-foot { padding: var(--s-5); border-top: 1px solid var(--line); background: var(--surface); }
.bag-total { display: flex; justify-content: space-between; font-weight: 600; font-size: var(--t-md); }
.bag-note { font-size: .8125rem; color: var(--smoke); margin: var(--s-1) 0 var(--s-4); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: var(--s-5); z-index: var(--z-toast);
  background: var(--ink); color: var(--mist); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill);
  font-weight: 500; font-size: var(--t-sm); max-width: calc(100% - 32px);
  transform: translate(-50%, 140%); opacity: 0; transition: transform 240ms var(--ease-out), opacity 240ms;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ============ Motion preferences ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* Bodoni hairlines break up at small sizes: give small display text more weight */
.card-name, .hv-name, .house-list .h-name, .steps h3, .bag-head h2 { font-weight: 500; }

/* ============ Stock states ============ */
.card-status {
  position: absolute; top: var(--s-3); right: var(--s-3); z-index: 1;
  font-size: .8125rem; font-weight: 600; padding: 2px var(--s-3);
  border-radius: var(--r-pill); background: var(--ink); color: var(--mist);
}
.is-unavailable .card-media .vial { opacity: .55; }
.is-unavailable .card-name a, .is-unavailable .card-notes { color: var(--smoke); }
.card-restock { font-size: var(--t-sm); color: var(--smoke); font-weight: 500; }
.size-opt.is-off span { text-decoration: line-through; color: var(--smoke); background: transparent; border-style: dashed; }
.size-opt.is-off input { cursor: not-allowed; }
.size-opt.is-off:hover span { border-color: var(--line); }
.bl-warn { margin-top: var(--s-1); font-size: .8125rem; font-weight: 600; color: #B3261E; }
.bag-line.has-warn .mini { opacity: .5; }
.pick.is-off label { background: transparent; border-style: dashed; }
.pk-off { font-size: .8125rem; font-weight: 600; color: var(--smoke); }
.pdp-low { margin-top: var(--s-3); font-size: var(--t-sm); font-weight: 600; color: var(--plum); }
.pdp-unavailable {
  margin-top: var(--s-6); padding: var(--s-5); border-radius: var(--r-tile);
  border: 1px dashed var(--ink); display: grid; gap: var(--s-3); justify-items: start;
}
.pdp-unavailable .pu-title { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 500; }
.pdp-unavailable p:not(.pu-title) { color: var(--smoke); max-width: 52ch; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bl-warn { color: #F2B8B5; } }
:root[data-theme="dark"] .bl-warn { color: #F2B8B5; }

/* ============ Card + hero links ============ */
.card-media { text-decoration: none; transition: background-color var(--dur) var(--ease-out); }
.card-media:hover { background: color-mix(in srgb, var(--glass) 82%, var(--juice)); }
.card-name a, .hv-name a {
  text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size var(--dur) var(--ease-out);
}
.card-name a:hover, .hv-name a:hover, .card-name a:focus-visible { background-size: 100% 1px; }
.bl-name a { text-decoration: none; }
.bl-name a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* sizes with prices underneath */
.size-opt-priced span { display: flex; flex-direction: column; min-width: 88px; min-height: 60px; line-height: 1.2; border-radius: var(--r-tile); }
.size-opt-priced small { font-weight: 500; font-size: .8125rem; color: var(--smoke); }
.size-opt-priced input:checked + span small { color: inherit; opacity: .8; }

/* ============ Product detail page ============ */
.breadcrumb { padding: var(--s-5) 0 0; font-size: var(--t-sm); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-2); color: var(--smoke); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: var(--s-2); color: var(--line); }
.breadcrumb a { color: var(--smoke); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }

.pdp-top { display: grid; gap: var(--s-6); padding-block: var(--s-5) var(--s-8); }
.pdp-media {
  position: relative; background: var(--glass); border-radius: var(--r-tile);
  display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden;
}
.pdp-media::before {
  content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; bottom: -30%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--juice) 55%, transparent), transparent);
}
.pdp-vial { position: relative; width: 30%; max-width: 200px; aspect-ratio: 124 / 340; }
.pdp-vial svg { width: 100%; height: auto; }

.pdp-house a { color: var(--smoke); text-decoration: none; font-weight: 500; }
.pdp-house a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.pdp-name {
  font-family: var(--f-display); font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  line-height: 1.02; letter-spacing: -.02em; margin-top: var(--s-1); text-wrap: balance;
}
.pdp-meta { margin-top: var(--s-3); color: var(--smoke); font-size: var(--t-sm); }
.pdp-desc { margin-top: var(--s-4); max-width: 58ch; font-size: var(--t-md); }

/* profile panel, after the reference screenshot */
.profile { margin-top: var(--s-6); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); }
.profile h2 { font-family: var(--f-display); font-size: 1.375rem; font-weight: 500; display: flex; align-items: center; gap: var(--s-3); }
.profile h2::before { content: ""; width: 32px; height: 1px; background: var(--ink); }
.scales { display: grid; gap: var(--s-5) var(--s-6); margin-top: var(--s-5); }
@media (min-width: 560px) { .scales { grid-template-columns: 1fr 1fr; } }
.scale h3 { font-size: var(--t-sm); font-weight: 600; }
.track { position: relative; height: 2px; margin: var(--s-4) 7px var(--s-3); background: var(--line); }
.track-fill { position: absolute; inset: 0; background: var(--plum); transform-origin: left; }
.knob {
  position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--plum); border: 2px solid var(--surface); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--plum);
}
.ends { display: flex; justify-content: space-between; gap: var(--s-2); font-size: .8125rem; color: var(--smoke); }
.ends-3 span:nth-child(2) { text-align: center; }
.ends .on { color: var(--plum); font-weight: 700; }

.pdp-sizes { margin-top: var(--s-6); }
.pdp-sizes legend { font-weight: 600; font-size: var(--t-sm); margin-bottom: var(--s-2); }
.pdp-sprays { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--smoke); }
.pdp-buy { margin-top: var(--s-5); display: flex; gap: var(--s-3); align-items: stretch; flex-wrap: wrap; }
.pdp-add { flex: 1 1 220px; min-height: 52px; font-size: var(--t-md); }
.qty-lg { margin: 0; }
.qty-lg button { width: 48px; height: 50px; }
.qty-lg button:disabled { opacity: .35; cursor: not-allowed; }
.qty-lg output { min-width: 32px; font-size: var(--t-base); }
.pdp-total { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--smoke); }
.pdp-total .price { color: var(--ink); font-size: var(--t-md); margin-left: var(--s-1); }
.pdp-assure { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-3); font-size: var(--t-sm); }
.pdp-assure li { display: flex; gap: var(--s-3); align-items: center; }
.pdp-assure svg { width: 22px; height: 22px; color: var(--plum); flex: none; }

@media (min-width: 900px) {
  .pdp-top { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; padding-top: var(--s-6); }
  .pdp-media { position: sticky; top: 100px; aspect-ratio: 4 / 5; }
}

/* sections below the fold */
.pdp-section { padding-block: var(--s-7); border-top: 1px solid var(--line); }
.pdp-h2 { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.08; letter-spacing: -.015em; }
.pdp-sub { margin-top: var(--s-2); color: var(--smoke); max-width: 60ch; }
.pdp-split { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .pdp-split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }

/* accord bars: one colour per accord, width = strength */
.accords { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.accords li {
  width: max(var(--w), 9rem); min-height: 40px; display: flex; align-items: center;
  padding: 0 var(--s-4); border-radius: 3px var(--r-pill) var(--r-pill) 3px;
  background: var(--c); color: var(--t); font-weight: 600; text-transform: capitalize;
  transform-origin: left; animation: grow 600ms var(--ease-out) both;
}
.accords li:nth-child(2) { animation-delay: 60ms; }
.accords li:nth-child(3) { animation-delay: 120ms; }
.accords li:nth-child(4) { animation-delay: 180ms; }
.accords li:nth-child(5) { animation-delay: 240ms; }
@keyframes grow { from { transform: scaleX(.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* when to wear */
.wear { margin-top: var(--s-5); display: grid; gap: var(--s-5); }
.wear-list { display: grid; gap: var(--s-3); }
.wear-list li { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: var(--s-3); font-size: var(--t-sm); }
.w-label { font-weight: 600; }
.w-bar { height: 8px; border-radius: 4px; background: var(--glass); overflow: hidden; }
.w-bar span { display: block; height: 100%; background: var(--plum); transform-origin: left; border-radius: 4px; }
.w-val { text-align: right; color: var(--smoke); font-variant-numeric: tabular-nums; }

/* notes as strata: lighter at the top (evaporates first), deeper at the base */
.strata { margin-top: var(--s-6); display: grid; border-radius: var(--r-tile); overflow: hidden; border: 1px solid var(--line); }
.stratum {
  display: grid; gap: var(--s-3); padding: var(--s-5);
  background: var(--bg); color: var(--fg);
}
.stratum + .stratum { border-top: 1px solid rgba(0, 0, 0, .12); }
.st-head h3 { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 500; line-height: 1.2; }
.st-head p { font-size: var(--t-sm); }
.st-notes { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.st-notes li {
  padding: 6px var(--s-4); border-radius: var(--r-pill); font-weight: 500; font-size: var(--t-sm);
  background: rgba(255, 255, 255, .78); color: #22202B;
}
@media (min-width: 768px) {
  .stratum { grid-template-columns: 240px 1fr; align-items: center; padding: var(--s-5) var(--s-6); }
}
.pdp-footnote { margin-top: var(--s-4); font-size: .8125rem; color: var(--smoke); max-width: 70ch; }

.similar-grid { margin-top: var(--s-6); }
@media (min-width: 1024px) { .similar-grid { grid-template-columns: repeat(4, 1fr); } }

.pdp-not-found { padding-block: var(--s-9); display: grid; gap: var(--s-4); justify-items: start; }
.pdp-not-found h1 { font-family: var(--f-display); font-size: var(--t-xl); }
.pdp-not-found p { color: var(--smoke); }

/* mobile sticky buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.buybar[hidden] { display: none; }
.buybar-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.buybar-name { font-weight: 600; font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.has-buybar .site-footer { padding-bottom: 96px; }
body.has-buybar .toast { bottom: 88px; }
@media (min-width: 900px) {
  .buybar, .buybar[hidden] { display: none; }
  body.has-buybar .site-footer { padding-bottom: var(--s-6); }
  body.has-buybar .toast { bottom: var(--s-5); }
}

/* ============ Header account link ============ */
.acct-btn {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; min-width: 44px;
  padding: 0 var(--s-3); border-radius: var(--r-pill); text-decoration: none; font-weight: 600; justify-content: center;
}
.acct-btn:hover { background: var(--glass); }
.acct-btn svg { width: 22px; height: 22px; }
.header-actions { gap: var(--s-1); align-items: center; }
@media (max-width: 1023px) {
  .acct-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ============ Stars ============ */
.stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; flex: none; }
.stars svg { display: inline-block; }
.stars-base svg { fill: var(--line); }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.stars-top svg { fill: #C8902E; }
.card-rating { display: flex; align-items: center; gap: var(--s-2); font-size: .8125rem; color: var(--smoke); font-variant-numeric: tabular-nums; }
.pdp-rating { display: inline-flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--t-sm); color: var(--smoke); text-underline-offset: 3px; }
.pdp-rating:hover { color: var(--ink); }

/* ============ Shop form fields (reviews, account) ============ */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .rv-stars legend { font-weight: 600; font-size: var(--t-sm); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-2) var(--s-4); border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-size: var(--t-base);
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.help { font-size: .8125rem; color: var(--smoke); line-height: 1.45; }
.help a { color: var(--plum); text-underline-offset: 3px; }
.field-err { font-size: .8125rem; font-weight: 600; color: #B3261E; }
.field-err:empty { display: none; }
.req { color: #B3261E; }
.opt { font-weight: 400; color: var(--smoke); }
.muted { color: var(--smoke); }
.link-btn { border: 0; background: none; padding: 0 var(--s-1); min-height: 44px; color: var(--plum); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--t-sm); }
.pass-row { display: flex; gap: var(--s-2); }
.pass-row input { flex: 1; min-width: 0; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--plum); flex: none; }
.check span { font-size: .875rem; color: var(--smoke); }
.check strong { display: block; color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .field-err, :root:not([data-theme="light"]) .req { color: #F2B8B5; }
  :root:not([data-theme="light"]) .field [aria-invalid="true"] { border-color: #F2B8B5; }
}

/* ============ Reviews ============ */
.reviews-body { margin-top: var(--s-6); }
.rv-top { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .rv-top { grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: var(--s-8); } }
.rv-avg { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.rv-avg-num { font-family: var(--f-display); font-size: 3rem; line-height: 1; font-variant-numeric: lining-nums; }
.rv-avg-count { color: var(--smoke); font-size: var(--t-sm); width: 100%; }
.rv-dist { margin-top: var(--s-4); display: grid; gap: var(--s-2); max-width: 340px; }
.rv-dist li { display: grid; grid-template-columns: 56px 1fr 28px; gap: var(--s-3); align-items: center; font-size: var(--t-sm); }
.rv-bar { height: 8px; border-radius: 4px; background: var(--glass); overflow: hidden; }
.rv-bar span { display: block; height: 100%; background: #C8902E; transform-origin: left; border-radius: 4px; }
.rv-n { text-align: right; color: var(--smoke); font-variant-numeric: tabular-nums; }
.rv-none { color: var(--smoke); font-size: var(--t-md); }
.rv-gate { padding: var(--s-5); border: 1px dashed var(--line); border-radius: var(--r-tile); display: grid; gap: var(--s-4); justify-items: start; }
.rv-gate p { color: var(--smoke); max-width: 52ch; }

.rv-form { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); display: grid; gap: var(--s-4); }
.rv-form h3 { font-family: var(--f-display); font-size: var(--t-lg); font-weight: 500; }
.rv-form .field input, .rv-form .field textarea { background: var(--mist); }
.rv-stars legend { margin-bottom: var(--s-2); }
.star-row { display: flex; gap: var(--s-1); }
.star-opt { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border-radius: 8px; }
.star-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.star-opt svg { width: 32px; height: 32px; fill: var(--line); transition: fill 120ms var(--ease-out), transform 120ms var(--ease-out); }
.star-opt.on svg { fill: #C8902E; }
.star-opt:hover svg { transform: scale(1.08); }
.star-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.rv-star-text { font-size: var(--t-sm); color: var(--smoke); margin-top: var(--s-1); }
.rv-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.form-err { font-size: var(--t-sm); }

.rv-list { margin-top: var(--s-7); border-top: 1px solid var(--line); }
.rv-item { padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.rv-item.is-mine { background: linear-gradient(90deg, var(--plum-tint), transparent 70%); padding-left: var(--s-4); border-radius: 4px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.rv-title { font-weight: 600; font-size: var(--t-md); }
.rv-body { margin-top: var(--s-2); max-width: 70ch; }
.rv-meta { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: .8125rem; color: var(--smoke); }
.rv-author { font-weight: 600; color: var(--ink); }
.rv-verified { display: inline-flex; align-items: center; gap: 4px; color: var(--ok-text, #2E6B45); font-weight: 600; }
.rv-verified svg { width: 14px; height: 14px; stroke-width: 2.4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rv-verified { color: #8FD3A8; } }

/* ============ Account ============ */
.account-wrap, .success-wrap { padding-block: var(--s-7) var(--s-9); }
.auth { display: grid; gap: var(--s-6); max-width: 960px; }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; } .auth-foot { grid-column: 2; } }
.auth-intro h1, .acct-head h1, .acct-title, .success-card h1 { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.08; letter-spacing: -.015em; }
.auth-intro p { margin-top: var(--s-3); color: var(--smoke); max-width: 44ch; }
.auth-notice { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: 8px; background: var(--plum-tint); color: var(--ink) !important; font-weight: 500; }
.auth-card { border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); overflow: hidden; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tabs [role="tab"] {
  min-height: 52px; border: 0; background: var(--mist); font-weight: 600; color: var(--smoke);
  border-bottom: 2px solid transparent;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); border-bottom-color: var(--plum); }
.auth-form { padding: var(--s-5); display: grid; gap: var(--s-4); }
.auth-foot { font-size: var(--t-sm); color: var(--smoke); }

.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.acct-head .muted { margin-top: var(--s-1); }
.acct-orders { margin-top: var(--s-7); }
.acct-orders h2 { font-family: var(--f-display); font-size: var(--t-lg); margin-bottom: var(--s-4); }
#orders { display: grid; gap: var(--s-5); }
.orders-empty { padding: var(--s-6); border: 1px dashed var(--line); border-radius: var(--r-tile); display: grid; gap: var(--s-4); justify-items: start; color: var(--smoke); }

.order-card { border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--surface); padding: var(--s-5); display: grid; gap: var(--s-5); }
.order-head { display: flex; justify-content: space-between; gap: var(--s-4); align-items: flex-start; }
.order-head h3 { font-weight: 600; font-size: var(--t-md); font-variant-numeric: tabular-nums; }
.order-head .muted { font-size: var(--t-sm); }
.order-total { font-size: var(--t-md); }

.otrack { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.otrack li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding-top: 2px; }
.otrack li::before {
  content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0;
}
.otrack li:first-child::before { display: none; }
.otrack li.done::before, .otrack li.current::before { background: var(--plum); }
.otrack-dot { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.otrack li.done .otrack-dot { background: var(--plum); border-color: var(--plum); }
.otrack li.current .otrack-dot { border-color: var(--plum); box-shadow: inset 0 0 0 4px var(--surface); background: var(--plum); }
.otrack-label { font-size: .8125rem; font-weight: 600; color: var(--smoke); }
.otrack li.done .otrack-label, .otrack li.current .otrack-label { color: var(--ink); }
.otrack-date { font-size: .75rem; color: var(--smoke); min-height: 1.2em; }
.order-cancelled { padding: var(--s-3) var(--s-4); border-radius: 8px; border: 1px dashed var(--line); color: var(--smoke); font-size: var(--t-sm); }
.order-tracking { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; font-size: var(--t-sm); padding: var(--s-3) var(--s-4); background: var(--mist); border-radius: 8px; }
.order-tracking a { color: var(--plum); font-weight: 600; text-underline-offset: 3px; }
.order-tracking code, .account-wrap code, .success-wrap code { font-size: .875em; background: var(--glass); padding: 1px 6px; border-radius: 4px; }

.order-items { display: grid; border-top: 1px solid var(--line); }
.order-items li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.order-items li > div, .order-items li > span:first-child { display: grid; gap: 2px; }
.oi-name { font-weight: 600; }
.oi-name a, .oi-sub a { color: inherit; text-underline-offset: 3px; }
.oi-sub { display: block; color: var(--smoke); font-size: .8125rem; font-weight: 400; }
.oi-review { color: var(--plum); font-weight: 600; font-size: .8125rem; text-underline-offset: 3px; justify-self: start; }
.order-sums { display: grid; gap: var(--s-1); font-size: var(--t-sm); margin: 0; }
.order-sums div { display: flex; justify-content: space-between; }
.order-sums dt { color: var(--smoke); }
.order-sums dd { margin: 0; font-variant-numeric: tabular-nums; }
.order-sums .sum-total { padding-top: var(--s-2); margin-top: var(--s-1); border-top: 1px solid var(--line); font-weight: 600; font-size: var(--t-base); }
.order-sums .sum-total dt { color: var(--ink); }

/* ============ Checkout success ============ */
.success-card { max-width: 620px; display: grid; gap: var(--s-4); }
.success-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--plum); color: var(--on-plum); display: grid; place-items: center; }
.success-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.success-lede { color: var(--smoke); font-size: var(--t-md); }
.success-lede strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.success-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }

/* keep the desktop nav on one line now that the header holds an account link */
.primary-nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .primary-nav ul { gap: var(--s-4); }
  .header-actions .search input { width: 9rem; }
}
@media (min-width: 1280px) { .primary-nav ul { gap: var(--s-5); } .header-actions .search input { width: 12rem; } }
