/* =========================================================================
   AAYARE JEWELS — The Aayare Atelier
   Stylesheet. Section map:
   1. Design tokens       6. Buttons & controls   11. Product page
   2. Reset & base        7. Header & nav         12. Quiz
   3. Typography          8. Hero                 13. Wishlist page
   4. Layout utilities    9. Home sections        14. Drawers & overlay
   5. Product card       10. Collection & filters 15. Footer  16. Responsive
   ========================================================================= */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Palette */
  --ivory: #FAF7F2;
  --ivory-deep: #F1EAE0;
  --espresso: #2D2420;
  --burgundy: #58111A;
  --burgundy-hover: #6E1822;
  --champagne: #C8B99D;
  --champagne-soft: #E4DACE;
  --ink-soft: #6B6058;
  --ink-faint: #938A80;
  --rule: #E4DACE;
  --rule-strong: #D8CBB8;
  --white: #FFFFFF;
  --focus: #58111A;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.9rem, 8vw, 6rem);
  --fs-display: clamp(2.1rem, 5vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 3.5vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --label-tracking: 0.22em;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Layout */
  --maxw: 1360px;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --header-h: 68px;

  /* Motion */
  --dur-1: 140ms; --dur-2: 260ms; --dur-3: 460ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Elevation (used sparingly) */
  --shadow-drawer: -12px 0 40px rgba(45, 36, 32, 0.14);

  /* Radii — kept minimal, editorial */
  --r-sm: 2px; --r-md: 3px; --r-pill: 999px;

  /* Z */
  --z-header: 70; --z-sticky: 60; --z-overlay: 90; --z-drawer: 100; --z-toast: 120;
}

/* 2. RESET & BASE ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--espresso);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 100%;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 200;
  background: var(--burgundy); color: var(--white);
  padding: 0.6rem 1rem; border-radius: var(--r-md);
  font-size: var(--fs-sm); letter-spacing: 0.04em;
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: 12px; }

/* 3. TYPOGRAPHY --------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: 0.01em; }
.label {
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: var(--label-tracking); text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: var(--label-tracking); text-transform: uppercase;
  color: var(--burgundy);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--champagne);
}
.eyebrow.centered { justify-content: center; }
.serif-italic { font-family: var(--serif); font-style: italic; }
.price { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* 4. LAYOUT UTILITIES --------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 44ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-top: 0.6rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.9rem; font-size: var(--fs-lead); }
.rule { height: 1px; background: var(--rule); border: 0; }
.hairline-top { border-top: 1px solid var(--rule); }

/* 5. PRODUCT CARD ------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.4rem) clamp(1rem, 2.2vw, 1.8rem);
}
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--ivory-deep); border: 1px solid var(--rule);
}
.pcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-3) var(--ease), opacity var(--dur-2) var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.035); }
.img-fail img { opacity: 0; }
.img-fail::after {
  content: "Image unavailable"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
}
.pcard__sample {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); background: rgba(250, 247, 242, 0.86);
  padding: 3px 7px; border: 1px solid var(--rule);
}
.pcard__wish {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(250, 247, 242, 0.9); border: 1px solid var(--rule);
  border-radius: var(--r-pill); color: var(--espresso);
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.pcard__wish:hover { border-color: var(--rule-strong); }
.pcard__wish[aria-pressed="true"] { color: var(--burgundy); border-color: var(--champagne); }
.pcard__wish svg { width: 18px; height: 18px; }
.pcard__body { padding-top: 0.85rem; display: flex; flex-direction: column; gap: 0.15rem; }
.pcard__cat { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.pcard__name { font-family: var(--serif); font-size: 1.22rem; line-height: 1.2; }
.pcard__name a { transition: color var(--dur-1); }
.pcard__name a:hover { color: var(--burgundy); }
.pcard__price { margin-top: 0.2rem; font-size: var(--fs-sm); color: var(--espresso); }
.pcard__soldout { color: var(--ink-faint); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; }

/* 6. BUTTONS & CONTROLS ------------------------------------------------- */
.btn {
  --btn-bg: var(--burgundy); --btn-fg: var(--white); --btn-bd: var(--burgundy);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-md);
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { background: var(--burgundy-hover); border-color: var(--burgundy-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] {
  --btn-bg: var(--champagne-soft); --btn-fg: var(--ink-faint); --btn-bd: var(--champagne-soft);
  cursor: not-allowed;
}
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--espresso); --btn-bd: var(--rule-strong);
}
.btn--ghost:hover { --btn-bg: transparent; border-color: var(--espresso); }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 40px; padding: 0.5rem 1.1rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.05em;
  color: var(--espresso); border-bottom: 1px solid var(--champagne);
  padding-bottom: 2px; transition: color var(--dur-1), border-color var(--dur-1);
}
.textlink:hover { color: var(--burgundy); border-color: var(--burgundy); }
.textlink svg { width: 15px; height: 15px; transition: transform var(--dur-2) var(--ease); }
.textlink:hover svg { transform: translateX(3px); }

/* Icon button */
.icon-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--espresso); border-radius: var(--r-pill);
  transition: color var(--dur-1), background var(--dur-1);
}
.icon-btn:hover { color: var(--burgundy); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn__badge {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px;
  padding: 0 4px; display: grid; place-items: center;
  background: var(--burgundy); color: var(--white);
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  border-radius: var(--r-pill); font-variant-numeric: tabular-nums;
}
.icon-btn__badge[hidden] { display: none; }

/* Selectable chips (variants, filters, quiz) */
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 1rem;
  border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  background: var(--white); color: var(--espresso);
  font-size: var(--fs-sm); letter-spacing: 0.02em;
  transition: border-color var(--dur-1), background var(--dur-1), color var(--dur-1);
}
.chip:hover { border-color: var(--espresso); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] {
  border-color: var(--burgundy); background: var(--burgundy); color: var(--white);
}
.chip[disabled] {
  color: var(--ink-faint); border-color: var(--rule); cursor: not-allowed;
  text-decoration: line-through; background: var(--ivory-deep);
}
.chip__check { width: 14px; height: 14px; opacity: 0; }
.chip[aria-checked="true"] .chip__check, .chip[aria-pressed="true"] .chip__check { opacity: 1; }

/* 7. HEADER & NAV ------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--header-h); gap: 1rem;
}
.header__nav { display: flex; align-items: center; gap: 1.7rem; }
.header__nav a {
  font-size: var(--fs-sm); letter-spacing: 0.06em; color: var(--espresso);
  position: relative; padding-block: 0.4rem;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--burgundy); transition: width var(--dur-2) var(--ease);
}
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { width: 100%; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; }
.header__burger { display: none; }

.wordmark {
  display: inline-flex; flex-direction: row; align-items: center; gap: 0.6rem;
  justify-self: center; line-height: 1;
}
.wordmark__mark { height: 40px; width: auto; }
.wordmark__name {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  letter-spacing: 0.14em; color: var(--espresso); white-space: nowrap;
}

/* Search bar (inline, expandable) */
.searchbar {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  border-bottom: 1px solid var(--rule-strong); padding: 0.4rem 0;
}
.searchbar input {
  flex: 1; border: none; background: transparent; font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
.searchbar input::placeholder { color: var(--ink-faint); transition: opacity var(--dur-2) var(--ease); }
.searchbar svg { width: 20px; height: 20px; flex: none; color: var(--ink-faint); }

/* Persistent header search — always visible (not behind a toggle), part of
   the sticky .header so it stays pinned on scroll instead of floating over
   the page. Placeholder text rotates via startSearchPlaceholderRotation(). */
.header__search-row { padding-block: 0.65rem; border-top: 1px solid var(--rule); }
.search-wrap { position: relative; max-width: 640px; margin: 0 auto; }
.searchbar--pill {
  max-width: none; margin: 0; border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill); padding: 0.5rem 1.1rem; background: var(--white);
}
.searchbar--pill:focus-within { border-color: var(--espresso); }

/* Instant search suggestions — recomputed on every keystroke */
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: var(--z-sticky);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md);
  box-shadow: 0 18px 44px -12px rgba(45,36,32,0.22); overflow: hidden;
  max-height: min(70vh, 480px); overflow-y: auto;
}
.search-suggest__item {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.search-suggest__item:hover, .search-suggest__item.is-active { background: var(--ivory-deep); }
.search-suggest__item img {
  width: 44px; height: 55px; object-fit: cover; flex: none;
  border: 1px solid var(--rule); background: var(--ivory-deep);
}
.search-suggest__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.search-suggest__info strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.search-suggest__info span { font-size: var(--fs-xs); color: var(--ink-soft); }
.search-suggest__empty { padding: 0.9rem; font-size: var(--fs-sm); color: var(--ink-faint); }
.search-suggest__all {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.75rem 0.9rem; font-size: var(--fs-sm); font-weight: 500; color: var(--burgundy);
  background: var(--ivory-deep);
}
.search-suggest__all:hover, .search-suggest__all.is-active { background: var(--champagne-soft); }
.search-suggest__all svg { width: 15px; height: 15px; flex: none; }

/* Currency switcher */
.currency-select { min-height: 40px; padding-right: 1.8rem; font-size: var(--fs-sm); }

/* 8. HERO — plain, static, text-free photo (the earlier scroll-linked
   crossfade was removed at client request — see HANDOFF.md §2). */
.hero--photo {
  position: relative; overflow: hidden;
  min-height: min(90vh, 820px);
  display: flex; align-items: center; background: #160f0c;
}
.hero-photo__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 18%; /* keep face + jewellery in frame, crop the skirt */
}
/* Text-free hero — just a bottom fade so the photo blends into the ivory
   page below; no left-side dark gradient, since that was only ever there
   for headline legibility. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12,8,6,0.08), transparent 22% 70%, var(--ivory) 100%);
}
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  color: rgba(250,247,242,0.85); background: rgba(20,15,12,0.28);
}
.hero__scroll svg { width: 18px; height: 18px; animation: nudge 1.8s var(--ease) infinite; }
.hero__scroll:hover { color: var(--ivory); background: rgba(20,15,12,0.42); }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Glassmorphism utility */
.glass {
  background: rgba(250,247,242,0.10);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(250,247,242,0.22);
  border-radius: 18px;
  box-shadow: 0 34px 90px -34px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.20);
}

/* 9. HOME SECTIONS ------------------------------------------------------ */
/* Signature row header with inline "view all" */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.row-head h2 { font-size: var(--fs-h2); }

/* Shop-by-category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.cat-tile {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--ivory-deep);
}
.cat-tile img {
  width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease);
  /* the placeholder SVGs bake in a caption near the bottom edge; scale up
     so it sits outside the visible frame, under our own tile label */
  transform: scale(1.3);
}
.cat-tile:hover img, .cat-tile:focus-visible img { transform: scale(1.38); }
.cat-tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,15,12,0.72), rgba(20,15,12,0.05) 60%);
}
.cat-tile__label { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; color: var(--ivory); }
.cat-tile__label strong { display: block; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; }
.cat-tile__label em {
  display: block; font-style: normal; font-size: var(--fs-xs); letter-spacing: 0.03em;
  color: rgba(250,247,242,0.84); margin-top: 0.25rem;
}
/* "Coming soon" tiles have no product yet — shown, not clickable */
.cat-tile--soon {
  background: linear-gradient(160deg, var(--espresso), #1c1512);
  cursor: default;
}
.cat-tile--soon .cat-tile__scrim { background: none; }
.cat-tile--soon .cat-tile__label { opacity: 0.75; }
.cat-tile--soon .cat-tile__label em { text-transform: uppercase; letter-spacing: 0.16em; color: var(--champagne); }

/* Reviews / testimonials — see js/data.js "testimonials" for the sample-data disclosure */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1080px; margin: 0 auto; }
.review-card {
  position: relative; border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 1.8rem 1.6rem 1.5rem; background: var(--white);
}
.review-card__sample {
  position: absolute; top: 1rem; right: 1rem; font-size: var(--fs-xs); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill); padding: 0.15rem 0.6rem;
}
.review-card blockquote {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5;
  color: var(--espresso); margin: 0.4rem 0 1.1rem;
}
.review-card figcaption { font-size: var(--fs-sm); color: var(--ink-soft); }
.review-card figcaption span { color: var(--ink-faint); }
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; max-width: 480px; }
}

/* Feature band (quiz invite) */
.feature-band {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: stretch;
  border: 1px solid var(--rule); background: var(--white);
}
.feature-band__copy { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.feature-band__copy h2 { font-size: var(--fs-h2); margin: 0.7rem 0 1rem; }
.feature-band__copy p { color: var(--ink-soft); font-size: var(--fs-lead); margin-bottom: 1.8rem; max-width: 40ch; }
.feature-band__art {
  position: relative; background: linear-gradient(135deg, var(--ivory-deep), #EADFD0);
  border-left: 1px solid var(--rule); display: grid; place-items: center; min-height: 260px;
  overflow: hidden; min-width: 0;
}
.feature-band__art .ring-motif { width: 62%; opacity: 0.9; }

/* Styled Together */
.styled { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.styled__media { position: relative; aspect-ratio: 5 / 6; border: 1px solid var(--rule); overflow: hidden; background: var(--ivory-deep); }
.styled__media img { width: 100%; height: 100%; object-fit: cover; }
.styled__panel h2 { font-size: var(--fs-h2); margin: 0.7rem 0 0.5rem; }
.styled__panel > p { color: var(--ink-soft); font-size: var(--fs-lead); margin-bottom: 1.5rem; }
.styled__items { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.styled__item {
  display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--rule);
}
.styled__item-thumb { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--rule); background: var(--ivory-deep); }
.styled__item-info strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; display: block; }
.styled__item-info span { font-size: var(--fs-xs); color: var(--ink-faint); letter-spacing: 0.14em; text-transform: uppercase; }
.styled__item-price { font-size: var(--fs-sm); }
.styled__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.3rem; }
.styled__total { font-size: var(--fs-sm); color: var(--ink-soft); }
.styled__total strong { font-family: var(--serif); font-size: 1.5rem; color: var(--espresso); display: block; }
.styled__check { display: inline-flex; }

/* Brand story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.story__body p { font-size: var(--fs-lead); color: var(--ink-soft); }
.story__body h2 { font-size: var(--fs-display); margin: 0.6rem 0 1.2rem; }
.story__mark { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 9vw, 7rem); color: var(--champagne); line-height: 0.9; letter-spacing: 0.1em; text-align: center; }
.story__note { display:block; font-family: var(--sans); font-style: normal; font-size: var(--fs-xs); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1rem; }

/* Gifting */
.gifting { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.gift-card { border: 1px solid var(--rule); background: var(--white); padding: clamp(1.4rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 0.6rem; min-height: 200px; }
.gift-card h3 { font-size: var(--fs-h3); }
.gift-card p { color: var(--ink-soft); font-size: var(--fs-sm); flex: 1; }

/* 10. COLLECTION & FILTERS --------------------------------------------- */
.collection { display: grid; grid-template-columns: 250px 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.filters__group { border-bottom: 1px solid var(--rule); padding-block: 1.2rem; }
.filters__group:first-child { padding-top: 0; }
.filters__group h3 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--espresso); margin-bottom: 0.9rem; }
.filters__opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters__opt { display: inline-flex; align-items: center; }
.pill-check {
  min-height: 38px; padding: 0.35rem 0.85rem; border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill); font-size: var(--fs-sm); background: var(--white);
  transition: border-color var(--dur-1), background var(--dur-1), color var(--dur-1);
}
.pill-check:hover { border-color: var(--espresso); }
.pill-check[aria-pressed="true"] { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.filters__range { display: flex; align-items: center; gap: 0.6rem; }
.filters__range label { font-size: var(--fs-sm); color: var(--ink-soft); }
.filters__range input {
  width: 100%; accent-color: var(--burgundy);
}
.range-out { font-size: var(--fs-sm); color: var(--espresso); font-variant-numeric: tabular-nums; margin-top: 0.5rem; }

.collection__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.collection__count { font-size: var(--fs-sm); color: var(--ink-soft); }
.collection__count strong { color: var(--espresso); }
.collection__tools { display: flex; align-items: center; gap: 0.8rem; }
.select {
  min-height: 44px; padding: 0.4rem 2rem 0.4rem 0.9rem; border: 1px solid var(--rule-strong);
  border-radius: var(--r-md); background: var(--white); font-size: var(--fs-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%232D2420' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}
.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.2rem; }
.active-filters:empty { display: none; }
.tag {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem 0.3rem 0.7rem;
  border: 1px solid var(--champagne); border-radius: var(--r-pill); font-size: var(--fs-xs);
  letter-spacing: 0.04em; background: var(--white);
}
.tag button { display: grid; place-items: center; width: 18px; height: 18px; color: var(--ink-soft); border-radius: var(--r-pill); }
.tag button:hover { color: var(--burgundy); }
.filters__mobile-toggle { display: none; }

/* Empty state */
.empty { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; border: 1px dashed var(--rule-strong); }
.empty h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.empty p { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* Breadcrumb */
.crumbs { display: flex; gap: 0.5rem; align-items: center; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--burgundy); }
.crumbs span { color: var(--rule-strong); }

/* 11. PRODUCT PAGE ----------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 1.2rem); display: grid; grid-template-columns: 72px 1fr; gap: 0.9rem; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 0.7rem; }
.gallery__thumb {
  aspect-ratio: 1; border: 1px solid var(--rule); overflow: hidden; background: var(--ivory-deep);
  transition: border-color var(--dur-1);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--burgundy); }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--rule); overflow: hidden; background: var(--ivory-deep); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-2) var(--ease); }
.gallery__sample { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); background: rgba(250,247,242,0.88); padding: 4px 8px; border: 1px solid var(--rule); }

.pinfo__cat { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.pinfo h1 { font-size: var(--fs-display); margin: 0.5rem 0 0.7rem; }
.pinfo__price { font-size: 1.5rem; font-family: var(--serif); }
.pinfo__short { font-size: var(--fs-lead); color: var(--ink-soft); margin: 1.1rem 0 1.6rem; font-style: italic; font-family: var(--serif); }
.pinfo__block { padding-block: 1.4rem; border-top: 1px solid var(--rule); }
.pinfo__block > h2 { font-size: var(--fs-xs); font-family: var(--sans); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; margin-bottom: 0.9rem; }
.variant-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.variant-hint { font-size: var(--fs-sm); color: var(--burgundy); margin-top: 0.8rem; min-height: 1.2em; }
.variant-hint[data-ok="true"] { color: var(--ink-soft); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); border-radius: var(--r-md); }
.qty button { width: 44px; height: 46px; display: grid; place-items: center; font-size: 1.1rem; color: var(--espresso); }
.qty button:hover { color: var(--burgundy); }
.qty output { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.pdp__buy { display: flex; gap: 0.8rem; align-items: center; margin-top: 1.2rem; flex-wrap: wrap; }
.pdp__buy .btn { flex: 1; min-width: 180px; }

.specs { display: grid; gap: 0.7rem; }
.specs dt { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.specs dd { font-size: var(--fs-sm); color: var(--espresso); margin-bottom: 0.4rem; }
.specs .pending { color: var(--burgundy); font-style: italic; }
.pending-note { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 0.8rem; font-style: italic; }

/* Match Your Ensemble */
.ensemble { border: 1px solid var(--rule); background: var(--white); padding: clamp(1.2rem, 2.5vw, 1.8rem); margin-top: 1.5rem; }
.ensemble__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ensemble__head h2 { font-size: var(--fs-h3); font-family: var(--serif); }
.ensemble__stage {
  position: relative; aspect-ratio: 4 / 3; margin: 1rem 0; border: 1px solid var(--rule);
  display: grid; place-items: center; overflow: hidden;
  transition: background-color var(--dur-3) var(--ease);
}
.ensemble__stage img { width: 58%; height: 78%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(45,36,32,0.18)); }
.ensemble__tones { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tone-swatch {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0.3rem; border: 1px solid transparent; border-radius: var(--r-md);
  transition: border-color var(--dur-1);
}
.tone-swatch:hover { border-color: var(--rule-strong); }
.tone-swatch__dot { width: 34px; height: 34px; border-radius: var(--r-pill); border: 1px solid var(--rule-strong); position: relative; }
.tone-swatch[aria-pressed="true"] { border-color: var(--burgundy); }
.tone-swatch[aria-pressed="true"] .tone-swatch__dot::after {
  content: ""; position: absolute; inset: -6px; border: 1px solid var(--burgundy); border-radius: var(--r-pill);
}
.tone-swatch span { font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--ink-soft); }
.ensemble__disc { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 0.9rem; font-style: italic; }

/* Sticky mobile buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: none; align-items: center; gap: 0.8rem;
  padding: 0.7rem var(--gutter); background: rgba(250,247,242,0.96);
  backdrop-filter: blur(8px); border-top: 1px solid var(--rule);
}
.buybar__price { font-family: var(--serif); font-size: 1.2rem; }
.buybar__price small { display: block; font-family: var(--sans); font-size: var(--fs-xs); color: var(--ink-faint); letter-spacing: 0.04em; }
.buybar .btn { flex: 1; }

/* 12. QUIZ ------------------------------------------------------------- */
.quiz { max-width: 640px; margin-inline: auto; }
.quiz__progress { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem; }
.quiz__progress .step { flex: 1; height: 3px; background: var(--rule); position: relative; overflow: hidden; }
.quiz__progress .step.done { background: var(--burgundy); }
.quiz__progress .step.current::after { content: ""; position: absolute; inset: 0; background: var(--burgundy); transform-origin: left; animation: fill var(--dur-3) var(--ease) forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.quiz__count { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); text-align: center; margin-bottom: 0.7rem; }
.quiz__q { font-size: var(--fs-display); font-family: var(--serif); text-align: center; margin-bottom: 2rem; }
.quiz__opts { display: grid; gap: 0.9rem; }
.quiz__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  background: var(--white); font-size: var(--fs-lead); text-align: left;
  transition: border-color var(--dur-1), background var(--dur-1);
}
.quiz__opt:hover { border-color: var(--espresso); }
.quiz__opt[aria-pressed="true"] { border-color: var(--burgundy); background: #FBF3F1; }
.quiz__opt .dot { width: 20px; height: 20px; border-radius: var(--r-pill); border: 1px solid var(--rule-strong); display: grid; place-items: center; }
.quiz__opt[aria-pressed="true"] .dot { border-color: var(--burgundy); }
.quiz__opt[aria-pressed="true"] .dot::after { content: ""; width: 10px; height: 10px; border-radius: var(--r-pill); background: var(--burgundy); }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; gap: 1rem; }

.quiz-result__head { text-align: center; max-width: 46ch; margin: 0 auto 2.5rem; }
.quiz-result__head h1 { font-size: var(--fs-display); margin-bottom: 0.8rem; }
.quiz-result__head p { color: var(--ink-soft); font-size: var(--fs-lead); }
.match-why { font-size: var(--fs-sm); color: var(--ink-soft); background: var(--white); border: 1px solid var(--rule); padding: 0.7rem 0.9rem; margin-top: 0.6rem; }
.match-why strong { color: var(--burgundy); font-weight: 600; }

/* 13. WISHLIST PAGE ---------------------------------------------------- */
.page-head { margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.page-head h1 { font-size: var(--fs-display); }
.page-head p { color: var(--ink-soft); margin-top: 0.5rem; }

/* 14. DRAWERS & OVERLAY ------------------------------------------------ */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(45, 36, 32, 0.4); opacity: 0; visibility: hidden;
  transition: opacity var(--dur-2) var(--ease), visibility var(--dur-2) var(--ease);
}
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: var(--z-drawer);
  width: min(440px, 92vw); height: 100dvh; background: var(--ivory);
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%); transition: transform var(--dur-3) var(--ease);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer[hidden] { display: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem var(--sp-5); border-bottom: 1px solid var(--rule); }
.drawer__head h2 { font-size: var(--fs-h3); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-5); }
.drawer__foot { border-top: 1px solid var(--rule); padding: var(--sp-5); background: var(--ivory-deep); }

/* Mobile nav drawer opens from left */
.nav-drawer { right: auto; left: 0; transform: translateX(-100%); width: min(360px, 88vw); }
.nav-drawer.open { transform: translateX(0); }
.nav-drawer nav { display: flex; flex-direction: column; }
.nav-drawer nav a { padding: 1rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.4rem; }
.nav-drawer nav a:hover { color: var(--burgundy); }

/* Bag line */
.bagline { display: grid; grid-template-columns: 68px 1fr auto; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.bagline__thumb { width: 68px; height: 84px; object-fit: cover; border: 1px solid var(--rule); background: var(--ivory-deep); }
.bagline__name { font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; }
.bagline__variant { font-size: var(--fs-xs); color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.2rem; }
.bagline__unavail { font-size: var(--fs-xs); color: var(--burgundy); margin-top: 0.3rem; }
.bagline__ctrls { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.6rem; }
.bagline__qty { display: inline-flex; align-items: center; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); }
.bagline__qty button { width: 32px; height: 32px; display: grid; place-items: center; }
.bagline__qty button:hover { color: var(--burgundy); }
.bagline__qty output { min-width: 30px; text-align: center; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.bagline__remove { font-size: var(--fs-xs); letter-spacing: 0.05em; color: var(--ink-soft); border-bottom: 1px solid transparent; }
.bagline__remove:hover { color: var(--burgundy); border-color: var(--champagne); }
.bagline__price { text-align: right; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

.bag-summary { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.4rem; }
.bag-summary .label { color: var(--ink-soft); }
.bag-summary strong { font-family: var(--serif); font-size: 1.5rem; }
.bag-note { font-size: var(--fs-xs); color: var(--ink-faint); margin: 0.5rem 0 1.1rem; }
.drawer__empty { text-align: center; padding-top: 3rem; color: var(--ink-soft); }
.drawer__empty svg { width: 40px; height: 40px; margin: 0 auto 1rem; color: var(--champagne); }

/* Account drawer (sign-in + spin the wheel) */
.account-drawer__body .field { margin-bottom: 1.2rem; }
.account-lede { font-size: var(--fs-lead); font-family: var(--serif); font-style: italic; margin-bottom: 1.2rem; }
.account-note { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 0.9rem; line-height: 1.5; }
.account-note--code { background: var(--ivory-deep); border: 1px dashed var(--rule-strong); padding: 0.7rem 0.9rem; border-radius: var(--r-md); color: var(--espresso); }
.account-note--code strong { color: var(--burgundy); font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.spin-result {
  text-align: center; border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 1.6rem 1.2rem; margin-bottom: 1.4rem; background: var(--ivory-deep);
}
.spin-result .label { display: block; font-size: var(--fs-xs); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--ink-soft); }
.spin-result strong { display: block; font-family: var(--serif); font-size: 1.7rem; margin: 0.4rem 0; color: var(--burgundy); }
.spin-result code {
  display: inline-block; margin-top: 0.8rem; padding: 0.4rem 0.8rem; background: var(--white);
  border: 1px dashed var(--rule-strong); border-radius: var(--r-sm); font-size: var(--fs-sm); letter-spacing: 0.06em;
}

/* Spin wheel */
.wheel-wrap { position: relative; width: min(260px, 70vw); aspect-ratio: 1; margin: 0 auto 1.6rem; }
.wheel {
  width: 100%; height: 100%; border-radius: 50%; position: relative; overflow: hidden;
  border: 6px solid var(--espresso); transition: transform 1.9s cubic-bezier(0.15, 0.65, 0.15, 1);
  background: conic-gradient(
    var(--burgundy) 0deg 60deg, var(--champagne) 60deg 120deg,
    var(--espresso) 120deg 180deg, var(--burgundy-hover) 180deg 240deg,
    var(--champagne-soft) 240deg 300deg, var(--ivory-deep) 300deg 360deg
  );
}
/* Slow attention-drawing drift before the decisive spin (doSpin() strips
   this class and sets an inline transform instead, so the two never
   conflict). Reduced-motion users get the site-wide animation override
   (near-zero duration, one iteration), so it effectively stays still. */
.wheel--idle { animation: wheel-idle-drift 34s linear infinite; }
@keyframes wheel-idle-drift { to { transform: rotate(360deg); } }
.wheel__seg {
  position: absolute; top: 50%; left: 50%; width: 44%; height: 0;
  transform-origin: left center; transform: rotate(calc(60deg * var(--i) + 30deg));
  text-align: right; font-family: var(--sans); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--ivory); white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.wheel__pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 18px solid var(--espresso);
}

/* WhatsApp button + Spin & Win button — fixed, on every page */
.whatsapp-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: var(--z-sticky);
  width: 54px; height: 54px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: #25D366; color: var(--white); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform var(--dur-2) var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 26px; height: 26px; }

.spin-fab {
  position: fixed; left: 20px; bottom: 24px; z-index: var(--z-sticky);
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--burgundy); color: var(--white); border-radius: var(--r-pill);
  padding: 0.75rem 1.2rem 0.75rem 0.9rem; font-size: var(--fs-sm); font-weight: 600;
  box-shadow: 0 10px 26px rgba(88, 17, 26, 0.35); transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.spin-fab:hover { transform: scale(1.04); background: var(--burgundy-hover); }
.spin-fab svg { width: 20px; height: 20px; }

/* Mobile/tablet bottom tab bar — home, wishlist, search, bag, account.
   Hidden entirely on laptop/desktop widths; see the 1024px breakpoint. */
.mobile-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: rgba(250, 247, 242, 0.97); backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom);
}
.mobile-tabbar a, .mobile-tabbar button {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 0.2rem; padding: 0.55rem 0.2rem 0.5rem; color: var(--ink-soft); font-size: 0.62rem;
  letter-spacing: 0.02em; font-family: var(--sans);
}
.mobile-tabbar svg { width: 21px; height: 21px; }
.mobile-tabbar a[aria-current="page"] { color: var(--burgundy); }
.mobile-tabbar .icon-btn__badge { position: absolute; top: 2px; right: calc(50% - 20px); }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: 0.5rem; align-items: center; pointer-events: none; }
.toast {
  background: var(--espresso); color: var(--ivory); padding: 0.8rem 1.2rem; border-radius: var(--r-md);
  font-size: var(--fs-sm); display: flex; align-items: center; gap: 0.6rem; max-width: 90vw;
  box-shadow: 0 10px 30px rgba(45,36,32,0.25);
  animation: toast-in var(--dur-2) var(--ease);
}
.toast svg { width: 16px; height: 16px; color: var(--champagne); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 15. FOOTER ----------------------------------------------------------- */
.footer { background: var(--espresso); color: var(--ivory); margin-top: clamp(3rem, 7vw, 6rem); }
.footer a { color: var(--ivory); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer__brand .wordmark__name { color: var(--ivory); }
.footer__brand .wordmark__sub { color: var(--champagne); }
.footer__brand p { color: rgba(250,247,242,0.7); font-size: var(--fs-sm); margin-top: 1.2rem; max-width: 34ch; }
.footer h4 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--champagne); margin-bottom: 1.1rem; }
.footer ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer ul a { font-size: var(--fs-sm); color: rgba(250,247,242,0.82); transition: color var(--dur-1); }
.footer ul a:hover { color: var(--ivory); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; border-top: 1px solid rgba(250,247,242,0.14); }
.footer__bottom small { color: rgba(250,247,242,0.6); font-size: var(--fs-xs); }
.footer__disclaimer { font-size: var(--fs-xs); color: rgba(250,247,242,0.5); max-width: 60ch; }

/* Motif svg helper */
.ring-motif { color: var(--champagne); }

/* ============ MOTION LAYER ============ */
/* Header elevation on scroll */
.header { transition: box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.header--scrolled { box-shadow: 0 1px 0 var(--rule), 0 12px 30px -18px rgba(45,36,32,0.35); }
.header--scrolled .wordmark__mark { height: 34px; transition: height var(--dur-2) var(--ease); }
.wordmark__mark { transition: height var(--dur-2) var(--ease); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* 3D pointer tilt on imagery */
.tilt { transition: transform 0.4s var(--ease); transform-style: preserve-3d; }

/* Magnetic buttons ease back smoothly */
.btn { transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
        border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }

/* 16. RESPONSIVE ------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }

  /* Bottom tab bar: phone + tablet only, never on laptop/desktop */
  .mobile-tabbar { display: flex; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .whatsapp-fab, .spin-fab { bottom: calc(58px + 14px + env(safe-area-inset-bottom)); }
  .cookie-banner { padding-bottom: calc(58px + 1rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__burger { display: grid; }
  .header__bar { grid-template-columns: auto 1fr auto; }
  .wordmark { justify-self: center; }
  .feature-band { grid-template-columns: minmax(0, 1fr); }
  .feature-band__art { border-left: 0; border-top: 1px solid var(--rule); order: -1; min-height: 200px; }
  .styled { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 2rem; }
  .story__mark { order: -1; }
  .gifting { grid-template-columns: 1fr; }
  .collection { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.is-open { display: block; }
  .filters__mobile-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .buybar { display: flex; }
  .pdp__buy { display: none; }
  main.has-buybar { padding-bottom: 88px; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0.9rem; }
  .gallery { grid-template-columns: 56px 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .styled__item { grid-template-columns: 48px 1fr auto; }
  .styled__item-price { grid-column: 2 / -1; text-align: left; padding-left: 0; }
  .quiz__q { font-size: var(--fs-h2); }
  .header .wordmark__name { display: none; }
  .header .wordmark__mark { height: 36px; }
}
@media (max-width: 330px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Mobile filters as drawer-like overlay when open */
.filters__mobile-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
@media (max-width: 900px) {
  .filters.is-open {
    position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--ivory);
    overflow-y: auto; padding: 1.5rem var(--gutter) 5rem;
  }
  .filters.is-open .filters__mobile-head { display: flex; }
}

/* ==========================================================================
   404 · FAQ · Legal pages · Cookie banner
   ========================================================================== */
.page-head.centered { text-align: center; margin-inline: auto; max-width: 60ch; }
.page-note { font-size: var(--fs-sm); color: var(--ink-faint); margin-top: 2.4rem; text-align: center; }

/* ---- 404 ---- */
.notfound__inner { max-width: 640px; margin-inline: auto; text-align: center; padding-block: clamp(1rem, 4vw, 2rem); }
.notfound__motif { width: 200px; height: auto; color: var(--champagne); margin: 0 auto 1.6rem; }
.notfound__inner h1 { font-size: var(--fs-h1); margin-top: 0.6rem; }
.notfound__inner > p { color: var(--ink-soft); margin-top: 0.9rem; font-size: var(--fs-lead); }
.notfound__search-wrap { max-width: 420px; margin: 1.8rem auto 0; }
.notfound__search { max-width: none; margin: 0; border-color: var(--rule-strong); }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.4rem; margin-top: 1.8rem; }
.notfound__picks { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: left; }
.notfound__picks .eyebrow.centered { justify-content: center; margin-bottom: 1.4rem; }
@media (max-width: 560px) {
  .notfound__actions { flex-direction: column; align-items: stretch; }
  .notfound__actions .btn { width: 100%; }
}

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item h2 { font-size: 1em; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0.2rem; text-align: left; font-family: var(--serif); font-size: 1.25rem;
  font-weight: 500; color: var(--espresso);
}
.faq__q:hover { color: var(--burgundy); }
.faq__chevron { width: 20px; height: 20px; flex: none; transition: transform var(--dur-2) var(--ease); }
.faq__q[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }
.faq__a p { color: var(--ink-soft); padding: 0 0.2rem 1.4rem; max-width: 62ch; }

/* ---- Contact form ---- */
.contact-form { margin-top: clamp(1.6rem, 3vw, 2.4rem); max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--espresso);
  margin-bottom: 0.5rem;
}
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--rule-strong);
  border-radius: var(--r-md); background: var(--white); font-size: var(--fs-body);
  font-family: var(--sans); resize: vertical;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 1px;
}
.field select.select { width: 100%; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form-status { font-size: var(--fs-sm); margin: 0; }
.form-status[data-kind="ok"] { color: #2E6B3E; }
.form-status[data-kind="error"] { color: var(--burgundy); }
.form-status[data-kind="sending"] { color: var(--ink-soft); }
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Legal pages ---- */
.legal__container { max-width: 720px; }
.legal__updated { font-size: var(--fs-xs); color: var(--ink-faint); letter-spacing: 0.04em; margin-top: 0.5rem; }
.legal__notice {
  font-size: var(--fs-sm); color: var(--espresso); background: var(--ivory-deep);
  border: 1px solid var(--champagne); border-left: 3px solid var(--burgundy);
  border-radius: var(--r-sm, 4px); padding: 1rem 1.2rem; margin: 1.6rem 0 2.4rem;
}
.legal h2 { font-size: var(--fs-h3); margin-top: 2.2rem; margin-bottom: 0.7rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--ink-soft); line-height: 1.7; }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-drawer, 60);
  display: flex; justify-content: center; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  pointer-events: none;
}
.cookie-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
  max-width: 760px; width: 100%; padding: 1.1rem 1.4rem;
  background: rgba(45, 36, 32, 0.88); border-color: rgba(250, 247, 242, 0.16);
  color: var(--ivory);
}
.cookie-banner__inner p { margin: 0; font-size: var(--fs-sm); color: var(--ivory); flex: 1 1 320px; }
.cookie-banner__inner a { color: var(--champagne); border-bottom: 1px solid currentColor; }
.cookie-banner__actions { display: flex; gap: 0.7rem; flex: none; }
@media (max-width: 480px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* Reduced motion */
@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;
  }
  .pcard:hover .pcard__media img { transform: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .tilt { transform: none !important; }
}
