/* =========================================================================
   APHELION — main.css
   Hand-written, mobile-first design system. No framework, no reset library.
   Table of contents:
     1. Design tokens (light + dark)
     2. Reset & base
     3. Layout primitives & utilities
     4. Header / navigation
     5. Hero
     6. PDP: gallery + configurator + buybox + options
     7. Tabs / bundle / related / reviews / story / trust / faq
     8. Footer
     9. Drawers / modals / toasts
     10. Cart
     11. Checkout
     12. Assistant
     13. Gamification
     14. Motion, focus, reduced-motion, print
   ========================================================================= */

/* ---------- 1. Design tokens --------------------------------------------- */
:root {
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: #faf8f4;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2efe8;
  --text: #14161a;
  --text-muted: #5b6068;
  --text-faint: #85898f;
  --border: #e4e1da;
  --border-strong: #cfcbc0;
  --accent: #97742f;
  --accent-strong: #7c5f24;
  --accent-contrast: #fffaf0;
  --accent-soft: #f1e6cf;
  --navy: #12213d;
  --success: #1f7a45;
  --success-bg: #e6f4ea;
  --danger: #b3261e;
  --danger-bg: #fbe9e7;
  --focus-ring: #2f6fed;
  --shadow-color: 30 26 20;
  --shadow-sm: 0 1px 2px rgb(var(--shadow-color) / 0.06), 0 1px 1px rgb(var(--shadow-color) / 0.04);
  --shadow-md: 0 6px 20px rgb(var(--shadow-color) / 0.10), 0 2px 6px rgb(var(--shadow-color) / 0.06);
  --shadow-lg: 0 20px 60px rgb(var(--shadow-color) / 0.18), 0 6px 16px rgb(var(--shadow-color) / 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1280px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
}

:root[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-elevated: #17181c;
  --surface: #17181c;
  --surface-2: #1f2126;
  --text: #f3f1ea;
  --text-muted: #adb1b8;
  --text-faint: #797d84;
  --border: #2b2d33;
  --border-strong: #3a3d44;
  --accent: #d9b876;
  --accent-strong: #e8cd94;
  --accent-contrast: #1a1305;
  --accent-soft: #2c2312;
  --navy: #9fb0d6;
  --success: #57c281;
  --success-bg: #133020;
  --danger: #ff7a70;
  --danger-bg: #331312;
  --focus-ring: #7fa8ff;
  --shadow-color: 0 0 0;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0a0b0d;
    --bg-elevated: #17181c;
    --surface: #17181c;
    --surface-2: #1f2126;
    --text: #f3f1ea;
    --text-muted: #adb1b8;
    --text-faint: #797d84;
    --border: #2b2d33;
    --border-strong: #3a3d44;
    --accent: #d9b876;
    --accent-strong: #e8cd94;
    --accent-contrast: #1a1305;
    --accent-soft: #2c2312;
    --navy: #9fb0d6;
    --success: #57c281;
    --success-bg: #133020;
    --danger: #ff7a70;
    --danger-bg: #331312;
    --focus-ring: #7fa8ff;
    --shadow-color: 0 0 0;
  }
}

/* ---------- 2. Reset & base ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
img { max-width: 100%; display: block; height: auto; }
svg { overflow: visible; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text); }
a { color: inherit; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- 3. Layout primitives & utilities ------------------------------ */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 1000;
  background: var(--accent); color: var(--accent-contrast);
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 600;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--focus-ring); outline-offset: 2px;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700;
  color: var(--accent); margin: 0 0 0.75em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 0.85em 1.5em; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  min-height: 48px; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
:root[data-theme="dark"] .btn-primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 1em 1.9em; font-size: 1rem; min-height: 52px; }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.82rem; min-height: 38px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.link-button { background: none; border: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.9rem; color: var(--text-muted); min-height: 44px; }
.link-button:hover { color: var(--accent); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent;
  color: var(--text); cursor: pointer; position: relative; flex-shrink: 0;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.92); }

.badge-count {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: var(--accent-contrast);
  font-size: 0.62rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  line-height: 1; border: 2px solid var(--bg);
}

.stars { color: var(--accent); letter-spacing: 1px; font-size: 0.95em; }

.price { font-family: var(--font-display); font-weight: 700; font-size: 1.05em; }
.price__compare { color: var(--text-faint); font-weight: 400; font-size: 0.85em; margin-left: 0.5em; text-decoration: line-through; }
.price__save { display: inline-flex; align-items: center; margin-left: 0.6em; background: var(--success-bg); color: var(--success); font-size: 0.72rem; font-weight: 700; padding: 0.25em 0.65em; border-radius: var(--radius-pill); }

.stock { font-size: 0.88rem; font-weight: 600; color: var(--success); display: flex; align-items: center; gap: 0.4em; margin: 0.6em 0; }
.stock::before { content: "●"; font-size: 0.6em; }
.stock--low { color: #a06a1c; }
.stock--out { color: var(--danger); }

.chip-select {
  border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
  padding: 0.4em 1.6em 0.4em 0.9em; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: right 0.85em top 55%, right 0.6em top 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  min-height: 34px;
}
.select-group { display: flex; align-items: center; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

@media (min-width: 640px) { .container { padding-inline: 32px; } }

/* ---------- 4. Header / navigation ---------------------------------------- */
.scrim {
  position: fixed; inset: 0; background: rgb(10 10 12 / 0.42); backdrop-filter: blur(2px);
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); }
}
.site-header__row {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: var(--header-h);
  max-width: var(--container); margin-inline: auto;
}
.hamburger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hamburger__bar { display: block; width: 19px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand__mark { color: var(--accent); flex-shrink: 0; }
.brand__word { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; font-size: 1.05rem; }
.nav-primary { display: none; }
.nav-primary a { text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 0.5em 0.2em; position: relative; color: var(--text); }
.nav-primary a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out);
}
.nav-primary a:hover::after, .nav-primary a:focus-visible::after { transform: scaleX(1); }

.search-form { display: none; position: relative; align-items: center; flex: 1 1 240px; max-width: 300px; }
.search-form__icon { position: absolute; left: 12px; color: var(--text-faint); pointer-events: none; }
.search-form__input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-2);
  padding: 0.6em 0.9em 0.6em 2.2em; font-size: 0.86rem; min-height: 40px;
}
.search-form__input:focus-visible { background: var(--surface); }
.search-form__input::-webkit-search-cancel-button { cursor: pointer; }

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.header-actions .select-group:first-of-type { margin-left: 6px; }

.icon svg, .icon { color: var(--text); }
.icon--moon { display: none; }
:root[data-theme="dark"] .icon--sun { display: none; }
:root[data-theme="dark"] .icon--moon { display: inline-flex; }

.reward-pill {
  display: none; align-items: center; gap: 6px; border: 1px solid var(--accent-soft); background: var(--accent-soft);
  color: var(--accent-strong); border-radius: var(--radius-pill); padding: 0.4em 0.9em 0.4em 0.7em;
  font-size: 0.78rem; font-weight: 700; cursor: pointer; min-height: 36px;
  animation: pulseGlow 3.2s ease-in-out infinite;
}
.reward-pill:hover { background: var(--accent); color: var(--accent-contrast); }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgb(151 116 47 / 0.25); }
  50% { box-shadow: 0 0 0 6px rgb(151 116 47 / 0); }
}

.free-shipping-ticker { max-width: var(--container); margin-inline: auto; padding: 0 16px 10px; display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--text-muted); }
.free-shipping-ticker__bar { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.free-shipping-ticker__fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: 0%; transition: width var(--dur-slow) var(--ease-out); }

.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 340px); background: var(--bg-elevated);
  z-index: 65; padding: calc(var(--header-h) + 24px) 24px 24px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(-100%); transition: transform var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-lg); overflow-y: auto;
}
.mobile-nav[data-open] { transform: translateX(0); }
.mobile-nav a { text-decoration: none; padding: 14px 8px; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--border); min-height: 48px; display: flex; align-items: center; }

@media (min-width: 900px) {
  .hamburger { display: none; }
  .nav-primary { display: flex; gap: 26px; margin-right: 22px; }
  .search-form { display: flex; }
  .reward-pill { display: inline-flex; }
}

/* ---------- 5. Hero -------------------------------------------------------- */
.hero {
  position: relative; padding: 64px 20px 56px; overflow: hidden;
  background: radial-gradient(circle at 82% 18%, var(--accent-soft), transparent 55%), var(--bg);
}
.hero__orbit {
  position: absolute; right: -18%; top: -22%; width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid var(--border-strong); opacity: 0.5;
}
.hero__orbit::before, .hero__orbit::after {
  content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid var(--border-strong); opacity: 0.7;
}
.hero__orbit::after { inset: 130px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__orbit { animation: spin 90s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__content { max-width: 640px; position: relative; }
.hero__title { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.2em; }
.hero__tagline { font-family: var(--font-display); font-style: italic; color: var(--accent-strong); font-size: 1.15rem; margin-bottom: 0.7em; }
.hero__desc { color: var(--text-muted); max-width: 52ch; font-size: 1.02rem; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.4em; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em; font-size: 0.88rem; color: var(--text-muted); }
.hero__trust-sep { opacity: 0.5; }

@media (min-width: 900px) {
  .hero { padding: 96px 32px 84px; }
}

/* ---------- 6. PDP: gallery + configurator + buybox ------------------------ */
.pdp { max-width: var(--container); margin-inline: auto; padding: 8px 16px 40px; scroll-margin-top: 84px; }
.breadcrumb { margin-bottom: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.78rem; color: var(--text-faint); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: 0.5; }

.pdp__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }

.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 38%, var(--surface-2), var(--bg) 78%);
  border: 1px solid var(--border); cursor: zoom-in;
}
.gallery__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.configurator__canvas-wrap { position: absolute; inset: 0; }
.configurator__canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.configurator__canvas[hidden] { display: none; }
.gallery__zoom-hint {
  position: absolute; right: 12px; bottom: 12px; background: rgb(20 22 26 / 0.72); color: #fff;
  font-size: 0.72rem; padding: 0.4em 0.8em; border-radius: var(--radius-pill); pointer-events: none;
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
}
.gallery__stage:hover .gallery__zoom-hint, .gallery__stage:focus-visible .gallery__zoom-hint { opacity: 1; }
.gallery__zoom-close { position: absolute; top: 10px; right: 10px; background: rgb(20 22 26 / 0.55); color: #fff; z-index: 3; }
.gallery__stage.is-zoomed {
  position: fixed; inset: 5vh 5vw; z-index: 80; aspect-ratio: auto; cursor: zoom-out; box-shadow: var(--shadow-lg);
}
.gallery__stage.is-zoomed .gallery__image { object-fit: contain; padding: 3%; }

.thumbnail-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.thumbnail {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1.5px solid var(--border); background: var(--surface-2); padding: 0; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail:hover { transform: translateY(-2px); }
.thumbnail.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.configurator__controls { display: flex; flex-direction: column; gap: 8px; }
.configurator__hint { font-size: 0.78rem; color: var(--text-faint); text-align: center; }
.configurator__buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.configurator__buttons .btn[aria-pressed="true"] { background: var(--surface-2); border-color: var(--accent); color: var(--accent-strong); }
.configurator__light-slider { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--text-muted); padding: 0 4px; }
.configurator__light-slider input[type="range"] { flex: 1; accent-color: var(--accent); min-height: 44px; }
.configurator__note {
  font-size: 0.8rem; background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.7em 1em; color: var(--text-muted);
}

/* ----- Buybox ----- */
.buybox { display: flex; flex-direction: column; }
.buybox__category { color: var(--text-faint); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3em; }
.buybox__title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.35em; }
.buybox__rating { display: flex; align-items: center; gap: 0.6em; font-size: 0.85rem; margin-bottom: 0.9em; }
.buybox__rating a { text-decoration: underline; text-underline-offset: 3px; color: var(--text-muted); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em; margin-bottom: 2px; }
.price-row .price { font-size: 1.7rem; }
.notify-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.6em 0; }
.notify-row input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6em 0.8em; flex: 1 1 160px; min-height: 44px; }

.option-groups { display: flex; flex-direction: column; gap: 18px; margin: 18px 0 6px; }
.option-group__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6em; }
.option-group__value { color: var(--text-muted); font-weight: 400; }
.option-list { display: flex; flex-wrap: wrap; gap: 10px; }

.option-btn {
  position: relative; border: 1.5px solid var(--border); background: var(--surface); border-radius: var(--radius-pill);
  padding: 0.6em 1.1em; font-size: 0.85rem; font-weight: 500; cursor: pointer; min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  display: inline-flex; align-items: center; gap: 0.5em;
}
.option-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.option-btn[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
:root[data-theme="dark"] .option-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); }
.option-btn .delta { opacity: 0.75; font-size: 0.85em; }
.option-btn:disabled, .option-btn.is-oos { opacity: 0.42; cursor: not-allowed; text-decoration: line-through; }
.option-btn:disabled:hover, .option-btn.is-oos:hover { transform: none; }

.swatch {
  width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 2px solid var(--border);
  cursor: pointer; position: relative; min-height: 46px; flex: 0 0 auto;
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-fast) var(--ease-out);
}
.swatch::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--swatch-color, #ccc); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.swatch:hover { transform: translateY(-2px) scale(1.05); }
.swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.swatch.is-oos { opacity: 0.35; cursor: not-allowed; }
.swatch.is-oos:hover { transform: none; }
.swatch.is-oos::before { content: ""; position: absolute; inset: -2px; background: linear-gradient(to top right, transparent 47%, var(--danger) 49%, var(--danger) 51%, transparent 53%); border-radius: 50%; }

.engraving-field { display: flex; flex-direction: column; gap: 6px; margin-top: -6px; }
.engraving-field input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7em 0.9em; min-height: 46px; }
.engraving-field__counter { font-size: 0.75rem; color: var(--text-faint); align-self: flex-end; }

.fit-finder { background: var(--surface-2); border-radius: var(--radius-md); padding: 16px; margin: 18px 0; }
.fit-finder h3 { font-size: 0.95rem; margin-bottom: 0.7em; }
.fit-finder__row { display: flex; flex-direction: column; gap: 8px; }
.fit-finder__row label { font-size: 0.85rem; font-weight: 500; }
.fit-finder__input-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fit-finder__input-group input { width: 90px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.55em 0.7em; min-height: 44px; }
.fit-finder__unit { color: var(--text-muted); font-size: 0.85rem; }
.fit-finder__result { margin: 10px 0 0; font-size: 0.88rem; background: var(--surface); border-radius: var(--radius-sm); padding: 0.8em 1em; border: 1px dashed var(--border-strong); }
.fit-finder__result .btn { margin-top: 8px; }

.qty-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 18px; flex-wrap: wrap; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty-stepper button { width: 40px; height: 42px; border: none; background: var(--surface-2); cursor: pointer; font-size: 1.1rem; }
.qty-stepper input { width: 44px; text-align: center; border: none; background: transparent; height: 42px; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-break-note { font-size: 0.8rem; color: var(--success); background: var(--success-bg); padding: 0.4em 0.9em; border-radius: var(--radius-pill); }

.buybox__actions { display: flex; gap: 10px; margin-bottom: 16px; }
.buybox__actions .add-to-cart { flex: 1; }
.heart-btn { border: 1.5px solid var(--border); width: 52px; height: 52px; }
.heart-btn[aria-pressed="true"] { color: var(--danger); border-color: var(--danger); }
.heart-btn[aria-pressed="true"] svg path { fill: var(--danger); stroke: var(--danger); }
.heart-btn.pop { animation: heartPop 420ms var(--ease-spring); }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.trust-list { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.trust-list li { display: flex; align-items: center; gap: 0.6em; }

.provenance-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; background: linear-gradient(135deg, var(--accent-soft), transparent); }
.provenance-card__title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35em; color: var(--accent-strong); }
.provenance-card p:last-child { margin-bottom: 0; font-size: 0.85rem; color: var(--text-muted); }

@media (min-width: 900px) {
  .pdp__grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .buybox { position: sticky; top: calc(var(--header-h) + 16px); }
}

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg-elevated);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgb(0 0 0 / 0.08);
}
.sticky-cta__price { font-weight: 700; flex-shrink: 0; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* ---------- 7. Tabs / bundle / related / reviews / story / trust / faq ---- */
.tabs { margin-top: 34px; }
.tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab {
  background: none; border: none; border-bottom: 2px solid transparent; padding: 12px 16px; font-weight: 600;
  font-size: 0.88rem; color: var(--text-muted); cursor: pointer; white-space: nowrap; min-height: 44px;
}
.tab[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.tab-panel { padding: 22px 2px; max-width: 68ch; color: var(--text-muted); }
.tab-panel p { color: inherit; }
.spec-list { display: flex; flex-direction: column; gap: 10px; }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.spec-list li span:first-child { color: var(--text-faint); }

.bundle-section { max-width: var(--container); margin-inline: auto; padding: 24px 16px; }
.bundle { background: var(--surface-2); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.bundle h2 { font-size: 1.3rem; }
.bundle__items { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bundle-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; flex: 1 1 200px; }
.bundle-item img { width: 46px; height: 46px; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg); flex-shrink: 0; }
.bundle-item__name { font-size: 0.85rem; font-weight: 600; }
.bundle-item__price { font-size: 0.78rem; color: var(--text-muted); }
.bundle-plus { font-size: 1.4rem; color: var(--text-faint); }
.bundle__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bundle__savings { color: var(--success); font-weight: 600; font-size: 0.88rem; }

.related { max-width: var(--container); margin-inline: auto; padding: 32px 16px 48px; }
.related__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; flex-wrap: wrap; gap: 6px; }
.related__head h2 { font-size: 1.5rem; margin: 0; }
.related__count { font-size: 0.82rem; color: var(--text-faint); }
.related__empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card__media { position: relative; aspect-ratio: 1/1; background: var(--surface-2); }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14%; }
.product-card__wishlist { position: absolute; top: 6px; right: 6px; background: rgb(255 255 255 / 0.85); }
:root[data-theme="dark"] .product-card__wishlist { background: rgb(20 20 20 / 0.6); }
.product-card__badge { position: absolute; top: 8px; left: 8px; background: var(--danger); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 0.25em 0.6em; border-radius: var(--radius-pill); }
.product-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card__cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.product-card__name { font-size: 0.9rem; font-weight: 600; margin: 0; }
.product-card__rating { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4em; }
.product-card__price-row { display: flex; align-items: baseline; gap: 0.4em; margin-top: auto; padding-top: 6px; }
.product-card__price-row .price { font-size: 0.98rem; }
.product-card__stock { font-size: 0.72rem; }
.product-card__actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.product-card__actions .btn { flex: 1; }
.product-card.is-hidden-by-search { display: none; }

.reviews { max-width: var(--container); margin-inline: auto; padding: 32px 16px 48px; display: grid; gap: 26px; grid-template-columns: 1fr; }
.reviews__summary h2 { font-size: 1.5rem; }
.reviews__score { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; margin-bottom: 14px; }
.reviews__score-num { font-size: 1.8rem; font-weight: 700; font-family: var(--font-display); }
.reviews__score p { width: 100%; color: var(--text-muted); font-size: 0.85rem; margin: 2px 0 0; }
.reviews__histogram { display: flex; flex-direction: column; gap: 6px; max-width: 240px; }
.histogram-row { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-muted); }
.histogram-row .bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.histogram-row .bar i { display: block; height: 100%; background: var(--accent); }
.reviews__list { display: flex; flex-direction: column; gap: 16px; }
.review { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.review__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.review__author { font-weight: 700; font-size: 0.88rem; }
.review__date { font-size: 0.75rem; color: var(--text-faint); }
.review__title { font-weight: 600; margin-bottom: 0.3em; font-size: 0.94rem; }
.review__body { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.review__helpful { background: none; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.3em 0.9em; font-size: 0.75rem; cursor: pointer; }
.review__helpful[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-strong); }

@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 260px 1fr; }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.story { max-width: var(--container); margin-inline: auto; padding: 48px 16px; display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.story__figure { margin: 0; background: var(--surface-2); border-radius: var(--radius-lg); overflow: hidden; }
.story__figure img { width: 100%; }
.story__copy h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.story__copy p { color: var(--text-muted); }
@media (min-width: 860px) { .story { grid-template-columns: 1fr 1fr; } }

.trust-grid { max-width: var(--container); margin-inline: auto; padding: 8px 16px 48px; display: grid; gap: 14px; grid-template-columns: 1fr; }
.trust-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; position: relative; }
.trust-card h3 { font-size: 0.98rem; margin-bottom: 0.4em; }
.trust-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; padding-right: 50px; }
.trust-card img { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; }
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.faq { max-width: 820px; margin-inline: auto; padding: 20px 16px 56px; }
.faq h2 { font-size: 1.5rem; margin-bottom: 0.8em; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item h3 { margin: 0; font-size: 1em; font-weight: 400; }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; padding: 16px 4px; font-weight: 600;
  font-size: 0.96rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px;
}
.accordion-trigger::after { content: "+"; font-size: 1.3rem; color: var(--accent); transition: transform var(--dur-base) var(--ease-out); flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel { padding: 0 4px 16px; color: var(--text-muted); font-size: 0.92rem; }
.accordion-panel p { margin: 0; }

/* ---------- 8. Footer ------------------------------------------------------ */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 40px 16px 24px; margin-top: 24px; }
.footer__newsletter { max-width: var(--container); margin: 0 auto 32px; text-align: center; }
.footer__newsletter h2 { font-size: 1.3rem; }
.footer__newsletter p { color: var(--text-muted); max-width: 44ch; margin-inline: auto; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; max-width: 420px; margin-inline: auto; }
.newsletter-form input { flex: 1 1 200px; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.7em 1.1em; min-height: 46px; background: var(--surface); }
.form-success { color: var(--success); font-size: 0.85rem; margin-top: 10px; }
.footer__columns { max-width: var(--container); margin: 0 auto; display: grid; gap: 24px; grid-template-columns: 1fr; padding: 24px 0; border-top: 1px solid var(--border); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.footer__col a, .footer__col button { text-decoration: none; font-size: 0.9rem; text-align: left; background: none; border: none; padding: 0; cursor: pointer; color: var(--text); min-height: 32px; }
.footer__col a:hover, .footer__col button:hover { color: var(--accent); }
.footer__legal { max-width: var(--container); margin: 0 auto; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (min-width: 700px) { .footer__columns { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 9. Drawers / modals / toasts ----------------------------------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(92vw, 420px); z-index: 70;
  transform: translateX(100%); transition: transform var(--dur-base) var(--ease-out);
}
.drawer:not([hidden]) { transform: translateX(0); }
.drawer__panel {
  background: var(--bg-elevated); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.drawer__header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 18px 20px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-elevated); z-index: 2;
}
.drawer__header h2 { font-size: 1.15rem; margin: 0; }

.modal {
  position: fixed; inset: 0; z-index: 75; display: flex; align-items: flex-end; justify-content: center;
}
.modal__panel {
  background: var(--bg-elevated); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(24px); opacity: 0; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
}
.modal:not([hidden]) .modal__panel { transform: translateY(0); opacity: 1; }
.modal__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.modal__header h2 { margin: 0; font-size: 1.2rem; }

@media (min-width: 700px) {
  .modal { align-items: center; }
  .modal__panel { border-radius: var(--radius-lg); padding: 28px; }
}

.toast-container { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; padding: 0 16px; width: 100%; }
.toast {
  background: var(--text); color: var(--bg); padding: 0.8em 1.2em; border-radius: var(--radius-pill); font-size: 0.85rem;
  box-shadow: var(--shadow-md); display: inline-flex; align-items: center; gap: 0.6em; max-width: 92vw;
  animation: toastIn 260ms var(--ease-spring);
}
:root[data-theme="dark"] .toast { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.toast.toast--leaving { animation: toastOut 220ms var(--ease-out) forwards; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(8px); opacity: 0; } }
@media (min-width: 900px) { .toast-container { bottom: 24px; } }

/* ---------- 10. Cart -------------------------------------------------------- */
.cart-drawer__body { flex: 1; padding: 8px 20px; }
.cart-empty { text-align: center; padding: 48px 12px; color: var(--text-muted); }
.cart-empty__title { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.cart-empty .btn { margin-top: 10px; }
.cart-items { display: flex; flex-direction: column; gap: 14px; padding: 12px 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: var(--surface-2); border-radius: var(--radius-sm); }
.cart-item__name { font-weight: 600; font-size: 0.9rem; }
.cart-item__meta { font-size: 0.76rem; color: var(--text-muted); margin: 2px 0 6px; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-item .qty-stepper button { width: 30px; height: 32px; font-size: 0.9rem; }
.cart-item .qty-stepper input { width: 32px; height: 32px; }
.cart-item__price { font-weight: 700; font-size: 0.88rem; text-align: right; }
.cart-item__remove { background: none; border: none; color: var(--text-faint); font-size: 0.76rem; text-decoration: underline; cursor: pointer; padding: 4px 0; min-height: 32px; }
.cart-item__remove:hover { color: var(--danger); }

.free-shipping-meter { padding: 10px 20px 0; }
.free-shipping-meter p, #cartFreeShipText { font-size: 0.82rem; margin-bottom: 6px; }
.free-shipping-meter__bar, .tier-meter__bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.free-shipping-meter__bar span, .tier-meter__bar span { display: block; height: 100%; background: var(--success); border-radius: 999px; width: 0%; transition: width var(--dur-slow) var(--ease-out); }

.cart-drawer__footer { border-top: 1px solid var(--border); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.coupon-form label { font-size: 0.8rem; font-weight: 600; display: block; margin-bottom: 6px; }
.coupon-form__row { display: flex; gap: 8px; }
.coupon-form__row input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6em 0.8em; min-height: 42px; }
.coupon-form__message { font-size: 0.78rem; margin: 6px 0 0; min-height: 1em; }
.coupon-form__message.is-error { color: var(--danger); }
.coupon-form__message.is-success { color: var(--success); }
.coupon-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--success-bg); color: var(--success); border-radius: var(--radius-pill); padding: 0.4em 0.5em 0.4em 0.9em; font-size: 0.8rem; font-weight: 600; }
.coupon-chip button { background: none; border: none; color: inherit; cursor: pointer; font-size: 0.9rem; min-height: 28px; }

.cart-totals { display: flex; flex-direction: column; gap: 6px; }
.cart-totals__row { display: flex; justify-content: space-between; font-size: 0.88rem; }
.cart-totals__row--discount dd { color: var(--success); }
.cart-totals__row--total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-size: 1.05rem; font-weight: 700; }
.checkout-cta { width: 100%; }

/* ---------- 11. Checkout ---------------------------------------------------- */
.checkout-panel { max-width: 720px; }
.checkout-demo-notice { background: var(--accent-soft); color: var(--accent-strong); border-radius: var(--radius-sm); padding: 0.7em 1em; font-size: 0.82rem; margin-bottom: 14px; }
.step-indicator { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 22px; counter-reset: step; }
.step-indicator li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.66rem; color: var(--text-faint); flex: 1; text-align: center; position: relative; }
.step-indicator li:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: 55%; right: -45%; height: 2px; background: var(--border); z-index: 0; }
.step-indicator li.is-active:not(:last-child)::after, .step-indicator li.is-done::after { background: var(--accent); }
.step-indicator__num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.72rem; z-index: 1; color: var(--text-muted);
}
.step-indicator li.is-active .step-indicator__num { background: var(--text); border-color: var(--text); color: var(--bg); }
:root[data-theme="dark"] .step-indicator li.is-active .step-indicator__num { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.step-indicator li.is-done .step-indicator__num { background: var(--success); border-color: var(--success); color: #fff; }
.step-indicator li.is-active { color: var(--text); font-weight: 700; }

.checkout-step h3 { font-size: 1.1rem; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 14px 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; }
.field input {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0.75em 0.9em; min-height: 48px; background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus-visible { border-color: var(--focus-ring); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 0.76rem; color: var(--danger); min-height: 1em; margin: 0; }
.shipping-method { border: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.radio-card {
  display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; cursor: pointer; font-size: 0.9rem; min-height: 52px;
}
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { accent-color: var(--accent); width: 18px; height: 18px; }
.radio-card strong { margin-left: auto; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; margin: 6px 0 18px; min-height: 32px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }

.review-summary { display: flex; flex-direction: column; gap: 18px; margin-bottom: 8px; }
.review-summary__block { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; }
.review-summary__block h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 0.6em; }
.review-summary__block p { margin: 0; font-size: 0.9rem; }
.review-summary__edit { font-size: 0.78rem; margin-top: 6px; }

.checkout-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }
.checkout-actions .btn-secondary { margin-right: auto; }

.confirmation { text-align: center; padding: 8px 4px; }
.confirmation__icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 16px;
  animation: popIn 480ms var(--ease-spring);
}
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirmation__meta { display: flex; justify-content: center; gap: 28px; margin: 18px 0; flex-wrap: wrap; }
.confirmation__meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.confirmation__meta dd { font-weight: 700; margin: 0; }
.confirmation__email-note { font-size: 0.8rem; color: var(--text-faint); }
.referral-card { background: var(--surface-2); border-radius: var(--radius-md); padding: 16px; margin: 18px 0; text-align: left; }
.referral-card__title { font-weight: 700; margin-bottom: 0.3em; }
.referral-card__code-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.referral-card__code-row code { background: var(--surface); border: 1px dashed var(--border-strong); padding: 0.5em 0.9em; border-radius: var(--radius-sm); font-weight: 700; letter-spacing: 0.03em; }
.confirmation__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

@media (min-width: 560px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 12. Assistant --------------------------------------------------- */
.assistant-panel .drawer__panel { background: var(--bg-elevated); }
.assistant-subtitle { font-size: 0.75rem; color: var(--text-faint); margin: 2px 0 0; }
.assistant-log { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 160px; }
.assistant-msg { max-width: 88%; padding: 0.75em 1em; border-radius: var(--radius-md); font-size: 0.88rem; line-height: 1.45; animation: msgIn 220ms var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.assistant-msg--agent { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.assistant-msg--user { background: var(--text); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 4px; }
:root[data-theme="dark"] .assistant-msg--user { background: var(--accent); color: var(--accent-contrast); }
.assistant-step-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.assistant-step {
  display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-muted);
  opacity: 0; transform: translateX(-6px); animation: stepIn 320ms var(--ease-out) forwards;
}
@keyframes stepIn { to { opacity: 1; transform: translateX(0); } }
.assistant-step__icon { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; }
.assistant-step.is-done .assistant-step__icon { background: var(--success); border-color: var(--success); color: #fff; }
.assistant-step.is-active .assistant-step__icon { border-color: var(--accent); animation: spinDot 900ms linear infinite; }
@keyframes spinDot { to { transform: rotate(360deg); } }

.assistant-suggestions { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 12px; }
.assistant-suggestions button {
  text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-md);
  padding: 0.7em 1em; font-size: 0.84rem; cursor: pointer; min-height: 44px;
}
.assistant-suggestions button:hover { border-color: var(--accent); background: var(--accent-soft); }
.assistant-controls { padding: 0 20px 10px; display: flex; flex-direction: column; gap: 8px; }
.assistant-status { font-size: 0.8rem; color: var(--accent-strong); margin: 0; min-height: 1.1em; }
.assistant-controls .btn { width: 100%; }
.assistant-input-row { display: flex; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--bg-elevated); }
.assistant-input-row input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.7em 1.1em; min-height: 46px; }

/* ---------- 13. Gamification ------------------------------------------------ */
.reward-modal__panel { max-width: 420px; text-align: center; }
.orbit-wheel-wrap { position: relative; width: 220px; height: 220px; margin: 20px auto; }
.orbit-wheel {
  width: 100%; height: 100%; border-radius: 50%; position: relative; border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border-strong), var(--shadow-md);
  transition: transform 2.6s cubic-bezier(0.13, 0.72, 0.1, 1);
}
.orbit-wheel__segment-label {
  position: absolute; top: 50%; left: 50%; font-size: 0.62rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.35); width: 84px; text-align: center; transform-origin: 0 0;
}
.orbit-wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; z-index: 2;
  border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 16px solid var(--accent);
}
.orbit-wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elevated); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem; z-index: 2; box-shadow: var(--shadow-sm);
}
.reveal-stage { margin: 6px 0 18px; }
.reveal-prize { font-weight: 700; background: var(--success-bg); color: var(--success); border-radius: var(--radius-md); padding: 0.8em 1em; margin-top: 10px; }
.reveal-prize.is-none { background: var(--surface-2); color: var(--text-muted); }
.tier-meter { text-align: left; border-top: 1px solid var(--border); padding-top: 14px; }
.tier-meter p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.badge-toast-icon { font-size: 1.1rem; }

/* ---------- 14. Motion, focus, reduced-motion, print ------------------------ */
.spin-active { animation: none; }
[hidden] { display: none !important; }

@media print {
  .site-header, .sticky-cta, .drawer, .modal, .toast-container, .reward-pill { display: none !important; }
}

