/* ==========================================================================
   AMAN BAZAAR — Design System
   A single stylesheet for every page type: home, collections index,
   collection listing, product detail, editorial and cart.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --lapis-900: #0a1020;
  --lapis-800: #111a2e;
  --lapis-700: #1a2440;
  --lapis-600: #26345a;

  --gold-300: #f0e0b4;
  --gold-400: #e0c684;
  --gold-500: #c8a04f;
  --gold-600: #a9853a;
  --gold-700: #7d6129;

  --sand-50: #fffdf9;
  --sand-100: #faf6ee;
  --sand-200: #f2ebdd;
  --sand-300: #e6dcc7;

  --ink-900: #1c1710;
  --ink-700: #3d342a;
  --ink-500: #6b5f50;
  --ink-400: #8b8072;

  --jade: #3f7d64;
  --carnelian: #a8412f;

  /* Semantic */
  --bg: var(--sand-100);
  --surface: var(--sand-50);
  --surface-alt: var(--sand-200);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --line: var(--sand-300);
  --accent: var(--gold-500);
  --on-dark: #f4eee2;

  /* Type */
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --step-1: clamp(1.12rem, 1.02rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.75vw, 2.75rem);
  --step-4: clamp(2.1rem, 1.5rem + 3vw, 4rem);
  --step-5: clamp(2.35rem, 1.5rem + 3.9vw, 4.35rem);

  /* Space & shape */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --shell: 1320px;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(28, 23, 16, 0.06);
  --shadow: 0 14px 38px -18px rgba(28, 23, 16, 0.32);
  --shadow-lg: 0 40px 80px -36px rgba(10, 16, 32, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.45s;

  --nav-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; background-color: var(--surface-alt); }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--gold-400); color: var(--lapis-900); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 10000;
  padding: 0.85rem 1.6rem;
  background: var(--gold-500);
  color: var(--lapis-900);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.shell--narrow { width: min(100% - (var(--gutter) * 2), 860px); }

.section { padding-block: clamp(3.5rem, 8vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--dark {
  background: var(--lapis-800);
  color: var(--on-dark);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.eyebrow::before {
  content: '';
  width: 2.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head--center .eyebrow::after {
  content: '';
  width: 2.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-size: var(--step-3);
  color: var(--lapis-800);
  margin-top: 0.7rem;
}

.section--dark .section-title { color: var(--gold-400); }
.section--dark .eyebrow { color: var(--gold-500); }

.section-lede {
  max-width: 56ch;
  color: var(--text-muted);
  margin-top: 1rem;
}

.section--dark .section-lede { color: rgba(244, 238, 226, 0.72); }

/* Decorative rule with a central glyph */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  color: var(--gold-500);
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 180px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.divider::after { background: linear-gradient(270deg, transparent, currentColor); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--lapis-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 0.95em 2em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* Light sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover::after,
.btn:focus-visible::after { transform: translateX(120%); }

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -14px rgba(168, 133, 58, 0.85);
}

.btn:active { transform: translateY(-1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--gold-400);
  border: 1px solid currentColor;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  --btn-bg: var(--gold-500);
  --btn-fg: var(--lapis-900);
  border-color: var(--gold-500);
}

.btn--dark {
  --btn-bg: var(--lapis-800);
  --btn-fg: var(--gold-400);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  --btn-bg: var(--lapis-700);
  box-shadow: 0 16px 30px -14px rgba(17, 26, 46, 0.7);
}

.btn--block { width: 100%; }
.btn--sm { padding: 0.7em 1.4em; letter-spacing: 0.1em; }

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease);
}

.text-link:hover,
.text-link:focus-visible { background-size: 100% 1px; }

.text-link svg { transition: transform 0.4s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Entrance gate
   -------------------------------------------------------------------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--lapis-900);
  transition: visibility 0s linear 1.5s;
}

.gate__door {
  position: absolute;
  top: 0;
  width: 50.5%;
  height: 100%;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 96px),
    linear-gradient(160deg, #241c15, #16110c 55%, #2c231a);
  transition: transform 1.4s var(--ease);
}

.gate__door--l { left: 0; border-right: 1px solid var(--gold-600); }
.gate__door--r { right: 0; border-left: 1px solid var(--gold-600); }

.gate__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--gold-400);
  padding: var(--gutter);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}

.gate__glyphs {
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.5em;
  margin-bottom: 1rem;
  opacity: 0.75;
  animation: glyphPulse 3s var(--ease-soft) infinite;
}

.gate__title {
  font-size: var(--step-4);
  letter-spacing: 0.1em;
}

.gate__sub {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-style: italic;
  color: rgba(240, 224, 180, 0.7);
  margin-top: 0.6rem;
}

.gate__bar {
  width: min(280px, 60vw);
  height: 2px;
  margin: 2rem auto 0;
  background: rgba(200, 160, 79, 0.25);
  overflow: hidden;
}

.gate__bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold-500);
  transform-origin: left;
  animation: gateLoad 1.1s var(--ease-soft) forwards;
}

.gate.is-open { visibility: hidden; pointer-events: none; }
.gate.is-open .gate__door--l { transform: translateX(-101%); }
.gate.is-open .gate__door--r { transform: translateX(101%); }
.gate.is-open .gate__content { opacity: 0; transform: scale(1.1); }

@keyframes gateLoad { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes glyphPulse {
  0%, 100% { opacity: 0.45; letter-spacing: 0.5em; }
  50% { opacity: 1; letter-spacing: 0.62em; }
}

/* --------------------------------------------------------------------------
   6. Scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 1200;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-300));
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0;
  z-index: 1100;
  width: 100%;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.72), transparent);
  opacity: 1;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  height: var(--nav-h);
}

.nav.is-stuck {
  background: rgba(10, 16, 32, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(200, 160, 79, 0.28), 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

.nav.is-stuck::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }

/* Pages without a hero image need an opaque bar from the start */
.nav--solid {
  background: rgba(10, 16, 32, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(200, 160, 79, 0.25);
}

.nav--solid::before { opacity: 0; }

/* With no hero to sit over, the fixed bar would otherwise cover the first row. */
.nav--solid ~ main { padding-top: calc(var(--nav-h) + clamp(1.5rem, 3vw, 3rem)); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  white-space: nowrap;
}

.brand span { color: var(--on-dark); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  font-size: 0.62em;
  color: var(--lapis-900);
  background: linear-gradient(140deg, var(--gold-300), var(--gold-600));
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(240, 224, 180, 0.35), 0 6px 18px -8px rgba(200, 160, 79, 0.9);
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand__mark { transform: rotate(360deg); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
  margin-left: auto;
}

.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.88);
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current='page'] { color: var(--gold-400); }

.nav__link:hover::after,
.nav__link[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: rgba(244, 238, 226, 0.9);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(200, 160, 79, 0.16);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.icon-btn svg { width: 21px; height: 21px; }

.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  color: var(--lapis-900);
  background: var(--gold-400);
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}

.cart-count.is-visible { transform: scale(1); }
.cart-count.is-bump { animation: bump 0.45s var(--ease); }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Hamburger. The bars are absolutely placed so the closed and open states do not
   depend on how the button's grid rows happen to be sized. */
.nav__toggle { display: none; position: relative; }

.nav__toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1.5px;
  margin: -0.75px 0 0 -10px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}

.nav__toggle span:nth-child(1) { transform: translateY(-6px); }
.nav__toggle span:nth-child(3) { transform: translateY(6px); }

.nav__toggle[aria-expanded='true'] span:nth-child(1) { transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded='true'] span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 1rem var(--gutter) 2rem;
    background: rgba(10, 16, 32, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(200, 160, 79, 0.22);
    box-shadow: var(--shadow-lg);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease);
  }

  .nav__menu.is-open { clip-path: inset(0 0 0 0); }

  .nav__link {
    padding-block: 1.05rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(244, 238, 226, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.3s var(--ease);
  }

  .nav__menu.is-open .nav__link {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 60ms + 120ms);
  }

  .nav__link::after { display: none; }
}

/* --------------------------------------------------------------------------
   8. Search overlay
   -------------------------------------------------------------------------- */
.search {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(10, 16, 32, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--on-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}

.search.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.search__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - (var(--gutter) * 2), 900px);
  margin: clamp(2rem, 8vh, 5rem) auto 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(200, 160, 79, 0.4);
}

.search__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold-300);
}

.search__input::placeholder { color: rgba(244, 238, 226, 0.32); }
.search__input:focus { outline: none; }

.search__results {
  width: min(100% - (var(--gutter) * 2), 900px);
  margin-inline: auto;
  padding-block: 1.5rem 3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search__hint {
  color: rgba(244, 238, 226, 0.5);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

.search__item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.search__item:hover,
.search__item:focus-visible {
  background: rgba(200, 160, 79, 0.14);
  transform: translateX(5px);
}

.search__item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: none;
}

.search__item h4 {
  font-size: var(--step-0);
  color: var(--gold-300);
  letter-spacing: 0.02em;
}

.search__item p {
  font-size: var(--step--1);
  color: rgba(244, 238, 226, 0.55);
}

.search__item .price {
  margin-left: auto;
  font-family: var(--font-display);
  color: var(--gold-400);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. Hero — home
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--lapis-900);
  color: var(--on-dark);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  will-change: transform;
  animation: kenBurns 26s var(--ease-soft) infinite alternate;
}

@keyframes kenBurns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 12% 50%, rgba(10, 16, 32, 0.94) 0%, rgba(10, 16, 32, 0.55) 45%, transparent 78%),
    linear-gradient(180deg, rgba(10, 16, 32, 0.7) 0%, transparent 28%, rgba(10, 16, 32, 0.88) 100%);
}

.hero__inner {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  padding-block: calc(var(--nav-h) + 4rem) 5rem;
}

.hero__text { max-width: 53rem; }

.hero__title {
  font-size: var(--step-5);
  margin: 1rem 0 0;
  color: var(--gold-400);
  letter-spacing: 0.01em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 120ms + 300ms);
}

@keyframes lineUp { to { transform: translateY(0); } }

.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sand-50);
}

.hero .eyebrow {
  color: var(--gold-500);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}

.hero__lede {
  max-width: 48ch;
  margin-top: 1.5rem;
  font-size: var(--step-1);
  color: rgba(244, 238, 226, 0.82);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.75s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.95s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 160, 79, 0.25);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.15s forwards;
}

.stat__num {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}

.stat__label {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.55);
  margin-top: 0.5rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 238, 226, 0.55);
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--gold-400), transparent);
  animation: scrollHint 2.2s var(--ease-soft) infinite;
}

@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Floating glyph column */
.hero__glyphs {
  position: absolute;
  top: 50%;
  right: clamp(1rem, 5vw, 5rem);
  transform: translateY(-50%);
  display: grid;
  gap: 1.4rem;
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  color: rgba(200, 160, 79, 0.42);
  z-index: -1;
}

.hero__glyphs span { animation: floaty 6s var(--ease-soft) infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-10px); opacity: 1; }
}

@media (max-width: 720px) {
  .hero__glyphs { display: none; }
  .hero__scroll { display: none; }
}

/* --------------------------------------------------------------------------
   10. Hero — inner pages
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(380px, 62svh, 620px);
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 4rem;
  text-align: center;
  color: var(--on-dark);
  background: var(--lapis-900);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__media {
  position: absolute;
  inset: -6% 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.86) 0%, rgba(17, 26, 46, 0.7) 45%, rgba(10, 16, 32, 0.94) 100%);
}

.page-hero__inner {
  max-width: 62rem;
  animation: fadeUp 1s var(--ease) 0.1s both;
}

.page-hero__title {
  font-size: var(--step-4);
  color: var(--gold-400);
  margin-top: 0.9rem;
  letter-spacing: 0.02em;
}

.page-hero__lede {
  max-width: 62ch;
  margin: 1.25rem auto 0;
  color: rgba(244, 238, 226, 0.78);
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.crumbs a { color: var(--gold-600); transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--gold-500); text-decoration: underline; }
.crumbs li { display: flex; align-items: center; gap: 0.45rem; }
.crumbs li + li::before { content: '/'; color: var(--line); }
.crumbs [aria-current] { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   11. Reveal animations
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}

[data-reveal='left'] { transform: translateX(-40px); }
[data-reveal='right'] { transform: translateX(40px); }
[data-reveal='zoom'] { transform: scale(0.94); }
[data-reveal='mask'] { clip-path: inset(0 0 100% 0); transform: none; }

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* --------------------------------------------------------------------------
   12. Marquee band
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  padding-block: 1.1rem;
  background: var(--lapis-800);
  color: var(--gold-400);
  border-block: 1px solid rgba(200, 160, 79, 0.22);
  user-select: none;
}

/* Fade the text at both ends without fading the band itself. */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 120px);
  z-index: 1;
  pointer-events: none;
}

.marquee::before { left: 0; background: linear-gradient(90deg, var(--lapis-800), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--lapis-800), transparent); }

.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.marquee__track span::after {
  content: '\25C6';
  font-size: 0.6em;
  color: var(--gold-600);
}

@keyframes marquee { to { transform: translateX(-100%); } }

/* --------------------------------------------------------------------------
   13. Collection cards
   -------------------------------------------------------------------------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.collection-grid--feature {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.collection-card {
  position: relative;
  display: block;
  min-height: clamp(320px, 42vw, 440px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--lapis-800);
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.collection-card:hover,
.collection-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.collection-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.collection-card:hover .collection-card__img {
  transform: scale(1.09);
  filter: saturate(1.1);
}

.collection-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.08) 20%, rgba(10, 16, 32, 0.82) 78%, rgba(10, 16, 32, 0.95));
  transition: background 0.6s var(--ease);
}

.collection-card:hover::after {
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.34) 0%, rgba(10, 16, 32, 0.88) 70%, rgba(10, 16, 32, 0.97));
}

.collection-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--on-dark);
}

.collection-card__count {
  position: absolute;
  top: clamp(1.1rem, 2.5vw, 1.6rem);
  right: clamp(1.1rem, 2.5vw, 1.6rem);
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(200, 160, 79, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.collection-card__title {
  font-size: var(--step-2);
  color: var(--gold-400);
  transition: transform 0.55s var(--ease);
}

.collection-card__desc {
  font-size: var(--step--1);
  color: rgba(244, 238, 226, 0.7);
  margin-top: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease), opacity 0.45s var(--ease), margin 0.45s var(--ease);
}

.collection-card:hover .collection-card__desc,
.collection-card:focus-visible .collection-card__desc {
  max-height: 6.5rem;
  opacity: 1;
}

.collection-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.collection-card__cta svg { transition: transform 0.5s var(--ease); }
.collection-card:hover .collection-card__cta svg { transform: translateX(6px); }

/* Tall feature card spanning two rows on wide screens */
@media (min-width: 900px) {
  .collection-grid--feature > :first-child {
    grid-row: span 2;
    min-height: 100%;
  }
}

/* --------------------------------------------------------------------------
   14. Product cards
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(265px, 100%), 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.9rem);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-alt);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease);
}

.product-card:hover .product-card__media img { transform: scale(1.07); }

.product-card__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lapis-900);
  background: rgba(240, 224, 180, 0.92);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.product-card__quick {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  transform: translateY(calc(100% + 1rem));
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}

.product-card:hover .product-card__quick,
.product-card:focus-within .product-card__quick {
  transform: none;
  opacity: 1;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.15rem 1.25rem;
}

.product-card__cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.product-card__title {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--lapis-800);
  margin-top: 0.45rem;
  line-height: 1.35;
}

.product-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__desc {
  margin-top: 0.55rem;
  font-size: var(--step--1);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink-900);
}

.product-card__link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.product-card__link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   15. Collection toolbar (search / sort / count)
   -------------------------------------------------------------------------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 220px;
  padding: 0.6rem 0.9rem;
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 160, 79, 0.18);
}

.field svg { width: 17px; height: 17px; color: var(--text-muted); flex: none; }

.field input,
.field select {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  font-size: var(--step--1);
}

.field input:focus,
.field select:focus { outline: none; }

.field--select { flex: 0 1 220px; }
.field--select select { cursor: pointer; appearance: none; }

.toolbar__count {
  font-size: var(--step--1);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: auto;
}

.toolbar__count b { color: var(--ink-900); font-weight: 600; }

.empty-state {
  grid-column: 1 / -1;
  padding: clamp(2.5rem, 6vw, 5rem) 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--lapis-800);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   16. Product detail
   -------------------------------------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .product { grid-template-columns: 1fr; }
}

.product__gallery { display: grid; gap: 1rem; }

.product__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}

.product__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.35s var(--ease);
}

.product__stage.is-zoomed img { transform: scale(1.75); }

.product__stage::after {
  content: '\2315';
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  color: var(--lapis-900);
  background: rgba(255, 253, 249, 0.88);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.product__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.7rem;
}

.product__thumb {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__thumb:hover { transform: translateY(-3px); }
.product__thumb[aria-selected='true'] {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 2px rgba(200, 160, 79, 0.28);
}

.product__panel { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

@media (max-width: 960px) {
  .product__panel { position: static; }
}

.product__label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.product__title {
  font-size: var(--step-3);
  color: var(--lapis-800);
  margin: 0.75rem 0 0;
}

.product__price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ink-900);
}

.product__price .cur { font-size: 0.6em; color: var(--text-muted); }

.product__desc {
  margin-top: 1.5rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-serif);
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink-700);
}

.specs {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.specs__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.specs__row dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.specs__row dd {
  font-weight: 500;
  color: var(--lapis-800);
  text-align: right;
}

.buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.qty button {
  width: 44px;
  height: 46px;
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.qty button:hover { background: var(--surface-alt); color: var(--ink-900); }

.qty input {
  width: 46px;
  height: 46px;
  text-align: center;
  font-weight: 600;
  background: none;
  border: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }

.buy .btn { flex: 1 1 220px; }

.assurance {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.assurance li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}

.assurance svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.15rem;
  color: var(--jade);
}

/* --------------------------------------------------------------------------
   17. Cart drawer & toasts
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(10, 16, 32, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100dvh;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}

.drawer.is-open { transform: none; visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem var(--gutter-drawer, 1.5rem);
  border-bottom: 1px solid var(--line);
}

.drawer__head h2 {
  font-size: var(--step-1);
  color: var(--lapis-800);
  letter-spacing: 0.04em;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
}

.drawer__close:hover { background: var(--surface-alt); color: var(--ink-900); transform: rotate(90deg); }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.5rem;
}

.drawer__foot {
  padding: 1.35rem 1.5rem calc(1.35rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--sand-100);
}

.cart-line {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.4s var(--ease) both;
}

.cart-line:last-child { border-bottom: 0; }

.cart-line__img {
  width: 74px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-line__name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lapis-800);
}

.cart-line__meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 0.2rem;
}

.cart-line__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.stepper button {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--text-muted);
  transition: background-color 0.2s var(--ease);
}

.stepper button:hover { background: var(--surface-alt); color: var(--ink-900); }
.stepper span { min-width: 26px; text-align: center; font-size: 0.85rem; font-weight: 600; }

.cart-line__remove {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.cart-line__remove:hover { color: var(--carnelian); }

.cart-line__price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.cart-total dt { font-size: var(--step--1); color: var(--text-muted); }
.cart-total dd { font-family: var(--font-display); font-weight: 600; }
.cart-total--grand dd { font-size: var(--step-1); color: var(--ink-900); }

.cart-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.75rem 0 1rem;
}

.cart-empty {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty__glyph {
  font-size: 2.5rem;
  color: var(--gold-500);
  opacity: 0.55;
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 1600;
  display: grid;
  gap: 0.6rem;
  width: min(420px, calc(100% - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  background: var(--lapis-800);
  color: var(--on-dark);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: var(--step--1);
  animation: toastIn 0.45s var(--ease) both;
}

.toast.is-out { animation: toastOut 0.35s var(--ease) both; }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--gold-400); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(10px) scale(0.97); }
}

/* --------------------------------------------------------------------------
   18. Cart page
   -------------------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 880px) {
  .cart-layout { grid-template-columns: 1fr; }
}

/* An empty cart hides the summary, so the form should reclaim the full width. */
.cart-layout:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.panel + .panel { margin-top: 1.5rem; }

.panel__title {
  font-size: var(--step-1);
  color: var(--lapis-800);
  margin-bottom: 1.25rem;
}

.summary { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

@media (max-width: 880px) { .summary { position: static; } }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

.form-field { display: grid; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.75rem 0.95rem;
  background: var(--sand-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 160, 79, 0.16);
}

.form-field input:user-invalid,
.form-field textarea:user-invalid {
  border-color: var(--carnelian);
  box-shadow: 0 0 0 3px rgba(168, 65, 47, 0.12);
}

.form-error {
  font-size: 0.75rem;
  color: var(--carnelian);
  min-height: 1rem;
}

/* --------------------------------------------------------------------------
   19. Editorial (Story / About)
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }

.prose > * + * { margin-top: 1.25rem; }

.prose p {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  line-height: 1.75;
  color: var(--ink-700);
}

.prose h2 {
  font-size: var(--step-2);
  color: var(--lapis-800);
  margin-top: 2.5rem;
}

.prose .lead {
  font-size: var(--step-2);
  line-height: 1.5;
  color: var(--lapis-800);
}

.prose .lead::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.8;
  padding: 0.08em 0.1em 0 0;
  color: var(--gold-600);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.split__media:hover img { transform: scale(1.05); }

.split__media::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(240, 224, 180, 0.35);
  border-radius: calc(var(--radius-lg) - 8px);
  z-index: 1;
  pointer-events: none;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.value-card {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow);
}

.value-card__glyph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
  color: var(--gold-600);
  background: var(--sand-200);
  border-radius: 50%;
}

.value-card h3 {
  font-size: var(--step-1);
  color: var(--lapis-800);
  margin-bottom: 0.6rem;
}

.value-card p { color: var(--text-muted); font-size: var(--step--1); }

.section--dark .value-card {
  background: rgba(244, 238, 226, 0.04);
  border-color: rgba(200, 160, 79, 0.22);
}

.section--dark .value-card h3 { color: var(--gold-400); }
.section--dark .value-card p { color: rgba(244, 238, 226, 0.68); }
.section--dark .value-card__glyph { background: rgba(200, 160, 79, 0.14); color: var(--gold-400); }

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-left: 2.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-500) 12%, var(--gold-500) 88%, transparent);
}

.timeline__item { position: relative; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.25rem;
  top: 0.55rem;
  width: 15px;
  height: 15px;
  background: var(--sand-100);
  border: 2px solid var(--gold-500);
  border-radius: 50%;
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.timeline__item.is-in::before { background: var(--gold-500); transform: scale(1.15); }

.timeline__item h3 { font-size: var(--step-1); color: var(--lapis-800); }
.timeline__item p { color: var(--text-muted); margin-top: 0.45rem; }

.timeline__year {
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  color: var(--gold-600);
}

/* --------------------------------------------------------------------------
   20. Testimonials
   -------------------------------------------------------------------------- */
.testimonials { position: relative; }

.testimonials__viewport { overflow: hidden; }

.testimonials__track {
  display: flex;
  transition: transform 0.7s var(--ease);
}

.testimonial {
  flex: 0 0 100%;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem);
  text-align: center;
}

.testimonial__stars {
  color: var(--gold-500);
  letter-spacing: 0.3em;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-style: italic;
  line-height: 1.55;
  color: var(--on-dark);
  max-width: 34ch;
  margin-inline: auto;
}

.testimonial__author {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.testimonial__role {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(244, 238, 226, 0.5);
  text-transform: none;
  margin-top: 0.3rem;
}

.testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.testimonials__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200, 160, 79, 0.45);
  border-radius: 50%;
  color: var(--gold-400);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.testimonials__arrow:hover {
  background: var(--gold-500);
  color: var(--lapis-900);
  transform: scale(1.06);
}

.testimonials__dots { display: flex; gap: 0.55rem; }

.testimonials__dots button {
  width: 8px;
  height: 8px;
  background: rgba(244, 238, 226, 0.3);
  border-radius: 999px;
  transition: width 0.4s var(--ease), background-color 0.4s var(--ease);
}

.testimonials__dots button[aria-selected='true'] {
  width: 26px;
  background: var(--gold-400);
}

/* --------------------------------------------------------------------------
   21. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.faq__item:has([aria-expanded='true']) {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-sm);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--lapis-800);
  transition: background-color 0.3s var(--ease);
}

.faq__q:hover { background: var(--sand-100); }

.faq__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold-600);
  transform: translateY(-50%);
  transition: transform 0.4s var(--ease);
}

.faq__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq__q[aria-expanded='true'] .faq__icon::after { transform: translateY(-50%) rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq__q[aria-expanded='true'] + .faq__a { grid-template-rows: 1fr; }

.faq__a > div { overflow: hidden; }

.faq__a p {
  padding: 0 1.35rem 1.35rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   22. Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--lapis-800), var(--lapis-600));
  border-radius: var(--radius-lg);
  color: var(--on-dark);
  overflow: hidden;
  text-align: center;
}

.newsletter::before {
  content: '𓋹 𓂀 𓆣 𓋹 𓂀 𓆣';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 12vw, 8rem);
  letter-spacing: 0.35em;
  color: rgba(200, 160, 79, 0.07);
  pointer-events: none;
  white-space: nowrap;
}

.newsletter > * { position: relative; }

.newsletter h2 {
  font-size: var(--step-3);
  color: var(--gold-400);
  margin-top: 0.75rem;
}

.newsletter p {
  max-width: 50ch;
  margin: 1rem auto 0;
  color: rgba(244, 238, 226, 0.75);
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 520px;
  margin: 2rem auto 0;
}

.newsletter__form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.95rem 1.25rem;
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(200, 160, 79, 0.35);
  border-radius: 999px;
  color: var(--on-dark);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.newsletter__form input::placeholder { color: rgba(244, 238, 226, 0.45); }

.newsletter__form input:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 253, 249, 0.14);
}

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--lapis-900);
  color: rgba(244, 238, 226, 0.72);
  border-top: 1px solid rgba(200, 160, 79, 0.3);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer__brand { max-width: 34ch; }
.footer__brand p { margin-top: 1rem; font-size: var(--step--1); }

.footer h3 {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.1rem;
}

.footer__links { display: grid; gap: 0.7rem; }

.footer__links a {
  position: relative;
  font-size: var(--step--1);
  width: fit-content;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.footer__links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease);
}

.footer__links a:hover {
  color: var(--gold-400);
  padding-left: 16px;
}

.footer__links a:hover::before { width: 10px; }

.socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(200, 160, 79, 0.3);
  border-radius: 50%;
  color: rgba(244, 238, 226, 0.8);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease),
    color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.social svg { width: 18px; height: 18px; }

.social:hover {
  transform: translateY(-4px);
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--lapis-900);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(244, 238, 226, 0.1);
  font-size: 0.8rem;
  color: rgba(244, 238, 226, 0.45);
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__bottom a:hover { color: var(--gold-400); }

/* --------------------------------------------------------------------------
   24. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom));
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--lapis-800);
  color: var(--gold-400);
  border: 1px solid rgba(200, 160, 79, 0.4);
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s,
    background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.to-top:hover { background: var(--gold-500); color: var(--lapis-900); }

/* --------------------------------------------------------------------------
   25. Motion & print preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .hero__title .line > span { transform: none; }
  .hero__media { animation: none; }
  .marquee__track { animation: none; }
}

@media print {
  .nav, .footer, .to-top, .drawer, .drawer-backdrop, .search,
  .gate, .scroll-progress, .toasts, .marquee { display: none !important; }

  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1; transform: none; }
}
