/* ==========================================================================
   AURELLE — editorial fine jewellery
   Type: Bodoni Moda (display) + Instrument Sans (text)
   1. Tokens   2. Reset   3. Type   4. Layout   5. Buttons & links
   6. Header & nav   7. Hero   8. Homepage sections   9. Product card
   10. Collection   11. Product detail   12. Drawers, modal, toast
   13. Footer   14. Motion   15. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ivory: #F8F5EF;
  --ivory-deep: #F1EBE1;
  --sand: #E6D8C5;
  --sand-soft: #EFE7DB;
  --gold: #B08D57;
  --gold-light: #D4B98A;
  --gold-text: #7A5C2E;
  --charcoal: #33302C;
  --ink: #1E1B18;
  --espresso: #26211C;
  --muted: #6F675D;
  --white: #FFFFFF;
  --line: rgba(51, 48, 44, 0.16);
  --line-strong: rgba(51, 48, 44, 0.32);
  --success: #3F6B4E;
  --error: #9A3B2E;

  --font-serif: "Marcellus", "Trajan Pro", "Optima", Georgia, serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.1875rem;
  --fs-h4: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --fs-h3: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
  --fs-h2: clamp(2.1rem, 1.4rem + 2.6vw, 3.8rem);
  --fs-h1: clamp(3.4rem, 1.2rem + 10vw, 12.5rem);

  --content-width: 1440px;
  --gutter: clamp(1rem, 3.2vw, 3rem);
  --space-section: clamp(4.5rem, 10vw, 9.5rem);
  --radius: 0;
  --header-h: 68px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
[hidden] { display: none !important; }

/* 3. Type ------------------------------------------------------------------ */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
}
/* Fine paper grain for a printed, tactile feel */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); }
h1 em, h2 em, h3 em { font-style: normal; color: inherit; }

/* Small editorial label, e.g. "(01) Shop by category" */
.eyebrow, .label {
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.label b, .eyebrow b { font-weight: 500; color: var(--ink); }

.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 44ch; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--ivory); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1001; padding: 0.75rem 1.25rem; background: var(--ink); color: var(--ivory); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 4. Layout ---------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--content-width)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--sand { background: var(--sand-soft); }
.section--dark { background: var(--espresso); color: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--ivory); }

.sec-head {
  display: grid; gap: 1.25rem; align-items: end;
  padding-top: 1rem; border-top: 1px solid var(--ink);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.sec-head h2 { max-width: 14ch; }
.sec-head__aside { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { margin-top: 0.75rem; }

/* 5. Buttons & links ------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem;
  min-height: 54px; padding: 0 1.4rem;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.01em;
  color: var(--ivory); background: var(--ink); border: 1px solid var(--ink);
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-text);
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { border-color: var(--gold-text); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.5s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }
.btn--outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn--outline::before { background: var(--ink); }
.btn--outline:hover { color: var(--ivory); border-color: var(--ink); }
.btn--light { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.btn--light:hover { color: var(--ivory); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link-underline, .text-link {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 500; padding-block: 0.3rem;
}
.link-underline::after, .text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease-out);
}
.link-underline:hover::after, .text-link:hover::after { transform: scaleX(0); }
.link-underline svg, .text-link svg { width: 15px; height: 15px; transition: transform 0.5s var(--ease-out); }
.link-underline:hover svg, .text-link:hover svg { transform: translateX(4px); }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; color: var(--ink);
}
.icon-btn svg { width: 20px; height: 20px; }

/* 6. Header & nav ---------------------------------------------------------- */
.announcement {
  background: var(--espresso); color: var(--sand); font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}
.announcement__inner { display: flex; justify-content: center; gap: 2.5rem; min-height: 36px; align-items: center; }
.announcement__inner span:not(:first-child) { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.header-left, .header-right { display: flex; align-items: center; gap: 0.25rem; }
.header-right { justify-content: flex-end; }

.logo {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); line-height: 1;
  padding-left: 0.22em;
}

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 1.9rem; }
.main-nav a, .util-link {
  position: relative; font-size: var(--fs-sm); font-weight: 500; padding-block: 0.5rem; white-space: nowrap;
}
.main-nav a::after, .util-link::after {
  content: ""; position: absolute; left: 0; bottom: 0.2rem; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after, .util-link:hover::after { transform: scaleX(1); transform-origin: left; }
.util-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.5rem; }
.util-link .count { font-size: 0.7em; margin-left: 0.2em; vertical-align: super; line-height: 0; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.util-link .count.bump { animation: bump 0.5s var(--ease-out); display: inline-block; }
.hide-mobile { display: none; }

/* Mobile menu */
.mobile-nav { position: fixed; inset: 0; z-index: 200; display: flex; visibility: hidden; pointer-events: none; }
.mobile-nav.is-open { visibility: visible; pointer-events: auto; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgba(30, 27, 24, 0.45); opacity: 0; transition: opacity 0.5s; }
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav__panel {
  position: relative; width: min(92vw, 440px); height: 100%; background: var(--ivory);
  padding: 1rem 1.5rem 2rem; display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(-100%); transition: transform 0.7s var(--ease-out);
}
.mobile-nav.is-open .mobile-nav__panel { transform: none; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-nav__links li { border-bottom: 1px solid var(--line); }
.mobile-nav__links a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: 0.7rem;
  font-family: var(--font-serif); font-size: 2.1rem; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(14px); transition: opacity 0.6s, transform 0.6s var(--ease-out);
}
.mobile-nav__links a small { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.06em; }
.mobile-nav.is-open .mobile-nav__links a { opacity: 1; transform: none; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(2) a { transition-delay: 0.05s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(3) a { transition-delay: 0.1s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(4) a { transition-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(5) a { transition-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav__links li:nth-child(6) a { transition-delay: 0.25s; }
.mobile-nav__feature { margin-top: 2rem; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; font-size: var(--fs-sm); }
.mobile-nav__feature img { width: 96px; height: 120px; object-fit: cover; }
.mobile-nav__feature b { display: block; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; }
.mobile-nav__meta { margin-top: auto; padding-top: 2rem; font-size: var(--fs-sm); color: var(--muted); display: grid; gap: 0.6rem; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0 0 auto 0; z-index: 210; background: var(--ivory);
  padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform 0.6s var(--ease-out); visibility: hidden;
}
.search-overlay.is-open { transform: none; visibility: visible; }
.search-overlay form { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--ink); }
.search-overlay input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 1rem 0; font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 3rem); }
.search-overlay input:focus { outline: none; }
.search-overlay__suggest { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; padding: 0 1rem;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-sm);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.overlay-scrim { position: fixed; inset: 0; z-index: 190; background: rgba(30,27,24,.35); opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.overlay-scrim.is-visible { opacity: 1; visibility: visible; }

/* 7. Hero (full-screen cinematic) ------------------------------------------ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  height: calc(100svh - var(--header-h) - 36px); min-height: 580px; max-height: 1000px;
  background: var(--espresso); color: var(--ivory);
}
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.6s var(--ease-in-out), visibility 1.6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide picture { position: absolute; inset: 0; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 9s cubic-bezier(.2,.6,.3,1); }
.hero__slide.is-active img { transform: scale(1.02); }
.hero__slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,17,14,.15) 0%, rgba(20,17,14,0) 30%, rgba(20,17,14,.55) 62%, rgba(20,17,14,.88) 100%);
}
.hero__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding-bottom: 7rem;
}
.hero__label {
  display: inline-block; text-shadow: 0 1px 10px rgba(0,0,0,.4); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light);
}
.hero__title {
  font-size: clamp(2.7rem, 1.4rem + 4.6vw, 6.2rem); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--ivory); margin-block: 1rem 1.25rem; max-width: 12ch;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
.hero__text { max-width: 38ch; color: rgba(248,245,239,.82); font-size: var(--fs-lg); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 2rem; }
.hero__actions .text-link { color: var(--ivory); }
.hero__label, .hero__text, .hero__actions { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }

.hero__slide.is-active .hero__title .ln > span { transform: none; transition-delay: 0.35s; }
.hero__slide.is-active .hero__title .ln:nth-child(2) > span { transition-delay: 0.47s; }
.hero__slide.is-active .hero__label { opacity: 1; transform: none; transition-delay: 0.25s; }
.hero__slide.is-active .hero__text { opacity: 1; transform: none; transition-delay: 0.65s; }
.hero__slide.is-active .hero__actions { opacity: 1; transform: none; transition-delay: 0.8s; }

.hero__shop {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 2rem; display: none;
  align-items: center; gap: 0.9rem; font-size: var(--fs-sm); color: var(--ivory); text-shadow: 0 1px 10px rgba(0,0,0,.55);
  opacity: 0; transition: opacity 1s var(--ease-out) 1s;
}
.hero__slide.is-active .hero__shop { opacity: 1; }
.hero__shop img { width: 48px; height: 60px; object-fit: cover; }
.hero__shop small { display: block; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(248,245,239,.6); }
.hero__shop b { font-weight: 500; border-bottom: 1px solid rgba(248,245,239,.5); padding-bottom: 1px; transition: border-color .3s; }
.hero__shop:hover b { border-color: var(--ivory); }

.hero__ui {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 1.25rem; padding-bottom: 1.25rem; pointer-events: none;
}
.hero__ui > * { pointer-events: auto; }
.hero__count { font-size: var(--fs-xs); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; color: rgba(248,245,239,.8); }
.hero__progress { display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.hero__progress::-webkit-scrollbar { display: none; }
.hero__progress button {
  flex: 1 1 auto; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 0.55rem;
  padding-right: 0.35rem; text-align: left; font-size: 10px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  color: rgba(248,245,239,.6); transition: color .3s;
}
.hero__progress button:hover, .hero__progress button.is-active { color: var(--ivory); }
.hero__progress button span { display: block; width: 100%; height: 2px; background: rgba(248,245,239,.28); overflow: hidden; }
.hero__progress button span i { display: block; height: 100%; width: 100%; background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.hero__progress button.is-done span i { transform: scaleX(1); }
.hero__progress button.is-active span i { animation: progress var(--slide-time, 7s) linear forwards; }
.hero.is-paused .hero__progress button.is-active span i { animation-play-state: paused; }
.hero__scroll { display: none; }

@media (min-width: 768px) {
  .hero__slide::after { background: linear-gradient(90deg, rgba(20,17,14,.78) 0%, rgba(20,17,14,.5) 32%, rgba(20,17,14,.08) 62%, rgba(20,17,14,0) 100%), linear-gradient(0deg, rgba(20,17,14,.45), rgba(20,17,14,0) 28%); }
  .hero__content { top: 0; display: flex; flex-direction: column; justify-content: center; padding-bottom: 3rem; }
  .hero__shop { display: flex; }
  .hero__progress { gap: 0.75rem; }
  .hero__progress button { flex: 0 0 auto; min-width: 104px; padding-right: 0.75rem; font-size: var(--fs-xs); letter-spacing: 0.06em; }
  .hero__ui { padding-bottom: 1.6rem; }
  /* Subject on the left: put the copy on the right */
  .hero__slide--right::after { background: linear-gradient(270deg, rgba(20,17,14,.78) 0%, rgba(20,17,14,.5) 32%, rgba(20,17,14,.08) 62%, rgba(20,17,14,0) 100%), linear-gradient(0deg, rgba(20,17,14,.45), rgba(20,17,14,0) 28%); }
  .hero__slide--right .hero__content { align-items: flex-end; text-align: right; }
  .hero__slide--right .hero__title, .hero__slide--right .hero__text { margin-left: auto; }
  .hero__slide--right .hero__actions { justify-content: flex-end; }
  .hero__slide--right .hero__shop { right: auto; left: var(--gutter); bottom: 6rem; }
}
@media (min-width: 1024px) {
  .hero__scroll {
    display: flex; align-items: center; gap: 0.75rem; position: absolute; right: var(--gutter); bottom: 6.5rem;
    font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(248,245,239,.7); z-index: 3;
  }
  .hero__scroll i { display: block; width: 1px; height: 36px; background: rgba(248,245,239,.25); position: relative; overflow: hidden; }
  .hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--ivory); animation: scrollcue 2.2s var(--ease-in-out) infinite; }
}
@keyframes scrollcue { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* 8. Homepage sections ----------------------------------------------------- */
/* Category tiles */
.cats { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.cats__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.cats__head h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); }
.cats__row { display: grid; grid-auto-flow: column; grid-auto-columns: 40%; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; scrollbar-width: none; }
.cats__row::-webkit-scrollbar { display: none; }
.cats__row li { scroll-snap-align: start; }
.cat-card { display: grid; gap: 0.2rem; }
.cat-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); margin-bottom: 0.6rem; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__name { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
.cat-card__meta { font-size: var(--fs-xs); color: var(--muted); }
.caption { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; font-size: var(--fs-sm); }
.caption > :last-child { color: var(--muted); text-align: right; white-space: nowrap; }
.caption b { font-weight: 500; }

/* Category index */
.index-list { border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 0.75rem 1rem;
  padding-block: clamp(0.9rem, 2vw, 1.4rem);
  transition: opacity 0.5s var(--ease-out);
}
.index-list__no { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; padding-top: 0.6em; }
.index-list__name {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 1.2rem + 4.2vw, 5.2rem); line-height: 1; letter-spacing: -0.01em;
  color: var(--ink); transition: transform 0.7s var(--ease-out), font-style 0s;
}
.index-list__desc { display: none; font-size: var(--fs-sm); color: var(--muted); }
.index-list__count { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.index-list__thumb { width: 64px; height: 80px; object-fit: cover; grid-column: 3; grid-row: 1; }
.index-list__count { grid-column: 2; grid-row: 2; }
.index-preview {
  position: fixed; left: 0; top: 0; z-index: 60; width: 300px; aspect-ratio: 4 / 5; pointer-events: none;
  overflow: hidden; opacity: 0; scale: 0.85;
  transition: opacity 0.4s var(--ease-out), scale 0.6s var(--ease-out);
}
.index-preview.is-visible { opacity: 1; scale: 1; }
.index-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.index-preview img.is-active { opacity: 1; }

/* Tabs as text */
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.tab {
  position: relative; padding: 0.35rem 0; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); transition: color 0.3s;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); transform-origin: left; }
.tab sup { font-size: 0.7em; margin-left: 0.15em; }

/* Statement with inline images */
.statement__text {
  font-family: var(--font-serif); font-size: clamp(1.7rem, 0.9rem + 3vw, 4rem); line-height: 1.18; letter-spacing: -0.01em; color: var(--ink);
}
.statement__text .w { opacity: var(--o, 1); transition: opacity 0.25s linear; }
.inline-img {
  display: inline-block; vertical-align: middle; position: relative; top: -0.08em;
  width: 1.9em; height: 0.82em; overflow: hidden; border-radius: 999px; margin-inline: 0.05em;
}
.inline-img--round { width: 0.82em; }
.inline-img img { width: 100%; height: 100%; object-fit: cover; }
.notes { display: grid; gap: 2rem; margin-top: clamp(3rem, 6vw, 5.5rem); }
.notes li { padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.notes .n { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.06em; }
.notes h3 { font-size: 1.45rem; margin-block: 0.6rem 0.5rem; }
.notes p { color: var(--muted); font-size: var(--fs-sm); max-width: 36ch; }

/* Feature (full-bleed image + ivory card) */
.feature { position: relative; }
.feature__media { position: relative; overflow: hidden; height: clamp(520px, 92vh, 960px); }
.feature__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: center 40%; will-change: transform; }
.feature__card {
  position: relative; z-index: 2; background: var(--ivory); padding: clamp(1.5rem, 3vw, 2.75rem);
  margin: -4rem var(--gutter) 0; display: grid; gap: 1rem;
}
.feature__card h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); }
.feature__card p { color: var(--muted); max-width: 40ch; }
.feature__card .btn { justify-self: start; margin-top: 0.5rem; }

/* Gifting */
.gifting { display: grid; gap: 3rem; }
.gifting__intro h2 { margin-block: 1rem 1.25rem; }
.gifting__intro p { color: var(--muted); max-width: 40ch; }
.service { margin-block: 2rem; border-top: 1px solid var(--line); }
.service li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.service li span:last-child { color: var(--muted); }
.gifting__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
.tile { display: block; }
.tile__media { overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile .caption b { font-weight: 500; }
.gifting__grid .tile:nth-child(even) { margin-top: 4rem; }

/* Single large quote */
.quote { display: grid; gap: 2rem; }
.quote__slides { position: relative; min-height: 15rem; }
.quote__slide { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); visibility: hidden; }
.quote__slide.is-active { position: relative; opacity: 1; transform: none; visibility: visible; }
.quote blockquote { font-family: var(--font-serif); font-size: clamp(1.6rem, 1rem + 2.4vw, 3.2rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); max-width: 22ch; }
.quote figcaption { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--muted); }
.quote figcaption b { color: var(--ink); font-weight: 500; }
.quote__controls { display: flex; align-items: center; gap: 1.25rem; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.quote__controls button { min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color .3s, color .3s; }
.quote__controls button:hover { background: var(--ink); color: var(--ivory); }
.quote__controls svg { width: 16px; height: 16px; }
.sample-note { margin-top: 1.5rem; font-size: var(--fs-xs); color: var(--muted); }

/* Lookbook strip */
.strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 1.25rem; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; cursor: grab; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging a { pointer-events: none; }
.strip > a { flex: none; width: 68vw; scroll-snap-align: start; }
.strip > a:nth-child(3n+2) { width: 52vw; margin-top: 3rem; }
.strip__media { overflow: hidden; aspect-ratio: 4 / 5; }
.strip > a:nth-child(3n) .strip__media { aspect-ratio: 1; }
.strip__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); -webkit-user-drag: none; user-select: none; }
.strip > a:hover img { transform: scale(1.04); }

/* Newsletter */
.newsletter { display: grid; gap: 2rem; align-items: end; }
.newsletter h2 { max-width: 12ch; }
.newsletter form { display: grid; gap: 0.75rem; }
.newsletter .row { display: flex; border-bottom: 1px solid var(--ink); }
.newsletter .row input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 56px; font-size: var(--fs-lg); }
.newsletter .row input:focus { outline: none; }
.newsletter .row button { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: var(--fs-sm); padding-inline: 0.5rem; }
.newsletter .row button svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.newsletter .row button:hover svg { transform: translateX(4px); }
.newsletter .row:focus-within { border-bottom-color: var(--gold-text); box-shadow: 0 1px 0 var(--gold-text); }
.field { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.field label { font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 0 1.1rem; background: var(--white);
  border: 1px solid var(--line-strong); transition: border-color 0.3s, box-shadow 0.3s;
}
.input:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: var(--fs-xs); color: var(--error); min-height: 1em; }
.consent { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: 0.6rem; align-items: flex-start; }
.consent input { margin-top: 2px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.form-success { display: flex; align-items: center; gap: 0.6rem; color: var(--success); font-size: var(--fs-sm); padding: 1rem 0; border-bottom: 1px solid currentColor; }
.form-success svg { width: 18px; height: 18px; }

/* 9. Product card ---------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.75rem clamp(0.75rem, 1.6vw, 1.25rem); }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory-deep); }
.product-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.8s var(--ease-out), transform 1.4s var(--ease-out); }
.product-card__media .img-alt { opacity: 0; transform: scale(1.06); }
.product-card:hover .img-main { opacity: 0; }
.product-card:hover .img-alt { opacity: 1; transform: scale(1); }
.product-card__badge {
  position: absolute; z-index: 2; top: 0.75rem; left: 0.75rem;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink);
  padding: 0.2rem 0.5rem; background: rgba(248,245,239,.92);
}
.product-card__badge--low { color: var(--error); }
.wish-btn {
  position: absolute; z-index: 3; top: 0.35rem; right: 0.35rem; width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--ink); transition: transform 0.4s var(--ease-out);
}
.wish-btn:hover { transform: scale(1.12); }
.wish-btn svg { width: 19px; height: 19px; transition: fill 0.3s, color 0.3s; }
.wish-btn[aria-pressed="true"] svg { fill: var(--ink); animation: bump 0.5s var(--ease-out); }
.quick-add {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  min-height: 46px; background: var(--ink); color: var(--ivory); font-size: var(--fs-sm); font-weight: 500;
  transform: translateY(101%); transition: transform 0.55s var(--ease-out), background-color 0.3s;
}
.quick-add:hover { background: var(--gold-text); }
.product-card:hover .quick-add, .quick-add:focus-visible { transform: none; }
.product-card__info { padding-top: 0.85rem; display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: baseline; }
.product-card__title { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.product-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card__price { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.product-card__meta { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); box-shadow: inset 0 0 0 2px var(--ivory); }
.swatch--yellow { background: linear-gradient(135deg, #E9CF8E, #B98E3E); }
.swatch--rose { background: linear-gradient(135deg, #EDC1A8, #B9775A); }
.swatch--white { background: linear-gradient(135deg, #F3F3F1, #BDBDB8); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.scroller > * { scroll-snap-align: start; }
.skeleton { background: linear-gradient(90deg, var(--ivory-deep) 0%, var(--sand-soft) 50%, var(--ivory-deep) 100%); background-size: 200% 100%; animation: skeleton 1.4s ease infinite; }

.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; }

/* 10. Collection page ------------------------------------------------------ */
.page-hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); text-align: center; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 1.5rem + 4vw, 5rem); margin-block: 1rem; }
.page-hero .lead { margin-inline: auto; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs--left ol { justify-content: flex-start; }

.cat-pills { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.toolbar {
  position: sticky; top: var(--header-h); z-index: 50; background: rgba(248,245,239,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line); transition: top 0.5s var(--ease-out);
}
.site-header.is-hidden ~ main .toolbar { top: 0; }
.toolbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.toolbar__btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.toolbar__btn svg { width: 18px; height: 18px; }
.toolbar__count { font-size: var(--fs-sm); color: var(--muted); }
.select-wrap { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); }
.select-wrap select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; min-height: 44px;
  padding-right: 1.5rem; font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
}
.select-wrap::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.collection-layout { display: grid; gap: 2.5rem; padding-block: 2.5rem var(--space-section); }
.filters {
  position: fixed; inset: 0 auto 0 0; z-index: 220; width: min(90vw, 380px); background: var(--ivory);
  padding: 1.5rem; overflow-y: auto; transform: translateX(-105%); transition: transform 0.6s var(--ease-out);
  display: flex; flex-direction: column;
}
.filters.is-open { transform: none; box-shadow: 30px 0 60px -30px rgba(0,0,0,.3); }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.filters__head h2 { font-size: 1.75rem; }
.filter-group { border-bottom: 1px solid var(--line); }
.filter-group summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  padding-block: 1.1rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "+"; font-size: 1.25rem; font-weight: 300; transition: transform 0.4s var(--ease-out); }
.filter-group[open] summary::after { transform: rotate(45deg); }
.filter-group__body { padding-bottom: 1.25rem; display: grid; gap: 0.25rem; }
.check { display: flex; align-items: center; gap: 0.75rem; min-height: 36px; font-size: var(--fs-sm); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; cursor: pointer; transition: background-color .25s, border-color .25s; }
.check input::after { content: ""; width: 5px; height: 9px; border: solid var(--ivory); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .25s var(--ease-out); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.check .n { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); }
.price-range { display: grid; gap: 0.75rem; }
.price-range input[type="range"] { width: 100%; accent-color: var(--gold-text); }
.price-range output { font-size: var(--fs-sm); font-weight: 500; }
.filters__foot { margin-top: auto; padding-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.active-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.active-filters:empty { display: none; }
.active-filters .chip svg { width: 12px; height: 12px; }

.empty-state { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line-strong); grid-column: 1 / -1; }
.empty-state svg { width: 48px; height: 48px; color: var(--gold); margin: 0 auto 1rem; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.5rem; }

/* 11. Product detail ------------------------------------------------------- */
.pdp { display: grid; gap: 2.5rem; padding-block: 1.5rem var(--space-section); }
.gallery { display: grid; gap: 0.75rem; }
.gallery__main {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory-deep); cursor: zoom-in;
}
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s var(--ease-out), transform 0.3s ease-out; }
.gallery__main.is-zoomed img { transform: scale(2); cursor: zoom-out; }
.gallery__main .zoom-hint {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; gap: 0.4rem; align-items: center;
  padding: 0.4rem 0.75rem; background: rgba(248,245,239,.9); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none;
}
.gallery__main .zoom-hint svg { width: 14px; height: 14px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; order: 2; }
.gallery__thumbs button { position: relative; aspect-ratio: 1; overflow: hidden; opacity: 0.55; transition: opacity 0.4s; }
.gallery__thumbs button::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .4s; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; }
.gallery__thumbs button[aria-current="true"]::after { border-color: var(--ink); }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__label { position: absolute; left: 1rem; top: 1rem; padding: 0.3rem 0.7rem; background: var(--ivory); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

.pdp__info { display: flex; flex-direction: column; gap: 1.5rem; }
.pdp__title h1 { font-size: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem); margin-block: 0.75rem; font-weight: 400; }
.pdp__price { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.pdp__price strong { font-size: 1.5rem; font-weight: 400; font-family: var(--font-serif); }
.pdp__price span { font-size: var(--fs-xs); color: var(--muted); }
.rating-link { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--muted); }
.rating-link:hover { color: var(--ink); }
.stock { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(63,107,78,.15); animation: pulse 2s ease infinite; }
.stock--low::before { background: #B7791F; box-shadow: 0 0 0 4px rgba(183,121,31,.15); }

.option-group { display: grid; gap: 0.75rem; }
.option-group__head { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.option-group__head b { font-weight: 600; }
.option-group__head span { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-size: var(--fs-sm); }
.option-group__head button { text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; min-height: 32px; }
.metal-options { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.metal-opt {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0 1rem;
  border: 1px solid var(--line-strong); font-size: var(--fs-sm); transition: border-color 0.3s;
}
.metal-opt .swatch { width: 18px; height: 18px; }
.metal-opt[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 0.5rem; }
.size-opt { min-height: 48px; border: 1px solid var(--line-strong); font-size: var(--fs-sm); transition: background-color .3s, color .3s, border-color .3s; }
.size-opt:hover { border-color: var(--ink); }
.size-opt[aria-checked="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.size-opt[aria-disabled="true"] { color: var(--muted); text-decoration: line-through; opacity: 0.6; cursor: not-allowed; }
.option-error { color: var(--error); font-size: var(--fs-sm); display: flex; gap: 0.4rem; align-items: center; }
.option-group.has-error .size-options { animation: shake 0.45s; }

.buy-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); min-height: 52px; }
.qty button { width: 44px; height: 50px; font-size: 1.1rem; }
.qty input { width: 36px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .wish-btn { position: static; width: 52px; height: 52px; border-radius: 0; border: 1px solid var(--line-strong); background: transparent; }

.assurance { display: grid; gap: 0.9rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); font-size: var(--fs-sm); }
.assurance li { display: flex; gap: 0.85rem; align-items: flex-start; }
.assurance svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 1px; }
.assurance a { text-decoration: underline; text-underline-offset: 3px; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  min-height: 60px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.25rem; font-weight: 300; transition: transform 0.4s var(--ease-out); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding-bottom: 1.5rem; color: var(--muted); font-size: var(--fs-sm); display: grid; gap: 0.75rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec-table th { font-weight: 400; color: var(--muted); width: 45%; }
.spec-table td { color: var(--ink); }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ivory); border-top: 1px solid var(--line);
  padding: 0.75rem var(--gutter); display: flex; align-items: center; gap: 1rem;
  transform: translateY(110%); transition: transform 0.5s var(--ease-out);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy img { width: 48px; height: 60px; object-fit: cover; }
.sticky-buy .t { flex: 1; min-width: 0; }
.sticky-buy .t b { display: block; font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .t span { font-size: var(--fs-sm); color: var(--muted); }
.sticky-buy .btn { padding: 0 1.25rem; }

.rating-summary { display: grid; gap: 2rem; }
.rating-summary .big { font-family: var(--font-serif); font-size: 4rem; line-height: 1; color: var(--ink); }
.bars { display: grid; gap: 0.5rem; font-size: var(--fs-sm); }
.bars div { display: grid; grid-template-columns: 2.5rem 1fr 2rem; gap: 0.75rem; align-items: center; }
.bars i { display: block; height: 4px; background: var(--sand); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
.is-inview .bars i::after, .bars.is-inview i::after { transform: scaleX(1); }

/* Size guide table */
.size-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); text-align: center; }
.size-table th, .size-table td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); }
.size-table thead th { font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.size-table tbody tr:hover { background: var(--sand-soft); }
.table-scroll { overflow-x: auto; }

/* 12. Drawers, modal, toast ------------------------------------------------ */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 230; width: min(100vw, 440px); background: var(--ivory);
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform 0.6s var(--ease-out);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; box-shadow: -30px 0 60px -30px rgba(0,0,0,.3); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.75rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.drawer__foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.75rem; background: var(--white); }
.ship-progress { font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.ship-progress .bar { height: 3px; background: var(--sand); margin-top: 0.6rem; overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--gold); width: 0; transition: width 0.8s var(--ease-out); }
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); animation: fadeUp 0.5s var(--ease-out); }
.cart-item img { width: 84px; height: 105px; object-fit: cover; }
.cart-item__top { display: flex; justify-content: space-between; gap: 0.5rem; }
.cart-item h3 { font-size: 1.15rem; font-weight: 500; }
.cart-item .variant { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.2rem; }
.cart-item__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; }
.cart-item .qty { min-height: 36px; }
.cart-item .qty button { width: 34px; height: 34px; }
.cart-item .qty input { width: 28px; font-size: var(--fs-sm); }
.remove-btn { font-size: var(--fs-xs); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.remove-btn:hover { color: var(--error); }
.cart-row { display: flex; justify-content: space-between; font-size: var(--fs-sm); }
.cart-row--total { font-size: 1.15rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty svg { width: 52px; height: 52px; margin: 0 auto 1.25rem; color: var(--gold); }
.cart-empty h3 { margin-bottom: 0.5rem; }
.cart-empty p { color: var(--muted); margin-bottom: 1.5rem; font-size: var(--fs-sm); }
.gift-wrap { display: flex; gap: 0.75rem; align-items: center; font-size: var(--fs-sm); padding: 0.9rem 1rem; border: 1px solid var(--line); background: var(--ivory); cursor: pointer; }
.gift-wrap input { accent-color: var(--gold-text); width: 16px; height: 16px; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); color: var(--muted); }
.secure-note svg { width: 14px; height: 14px; }

.modal {
  position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 1rem;
  visibility: hidden; opacity: 0; transition: opacity 0.4s, visibility 0.4s;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(31,29,26,.5); }
.modal__panel {
  position: relative; width: min(100%, 640px); max-height: 88vh; overflow-y: auto; background: var(--ivory);
  padding: clamp(1.5rem, 4vw, 2.5rem); transform: translateY(24px) scale(0.98); transition: transform 0.5s var(--ease-out);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 0.75rem; right: 0.75rem; }
.modal__panel h2 { font-size: 2.25rem; margin-bottom: 0.5rem; }
.modal__panel .tip { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--sand-soft); font-size: var(--fs-sm); }

.toast {
  position: fixed; z-index: 300; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%);
  display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.25rem; max-width: calc(100vw - 2rem);
  background: var(--ink); color: var(--ivory); font-size: var(--fs-sm); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
  visibility: hidden; transition: transform 0.6s var(--ease-out), visibility 0.6s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }
.toast svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }

/* Help page */
.help-layout { display: grid; gap: 3rem; padding-block: 1rem var(--space-section); }
.help-layout > *, .collection-layout > * { min-width: 0; }
.help-nav { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.help-nav a { white-space: nowrap; }
.help-section { padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.help-section h2 { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); margin-bottom: 1.25rem; }
.help-section h3 { font-size: 1.4rem; margin-block: 1.5rem 0.5rem; }
.help-section p, .help-section li { color: var(--muted); max-width: 68ch; }
.help-section ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.placeholder-flag { display: inline-block; margin-bottom: 1rem; padding: 0.35rem 0.75rem; background: var(--sand-soft); border-left: 2px solid var(--gold); font-size: var(--fs-xs); color: var(--muted); }
.contact-cards { display: grid; gap: 1rem; margin-top: 1rem; }
.contact-cards > div { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); }
.contact-cards h3 { margin-top: 0; }

/* 13. Footer --------------------------------------------------------------- */
.site-footer { background: var(--espresso); color: rgba(248,245,239,.7); padding-top: clamp(4rem, 8vw, 6rem); font-size: var(--fs-sm); overflow: hidden; }
.footer-top { display: grid; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(248,245,239,.14); }
.footer-brand p { font-family: var(--font-serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.25; color: var(--ivory); max-width: 20ch; }
.socials { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 1.5rem; }
.socials a { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: var(--sand); }
.socials a:hover { color: var(--gold-light); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-cols h3 { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(248,245,239,.5); margin-bottom: 1rem; font-weight: 500; }
.footer-cols ul { display: grid; gap: 0.55rem; }
.footer-cols a { color: var(--ivory); transition: color .3s; }
.footer-cols a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; font-size: var(--fs-xs); }
.payments { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-giant {
  font-family: var(--font-serif); font-size: clamp(4rem, 17vw, 18rem); line-height: 0.8; letter-spacing: 0.04em;
  text-align: center; color: #3A322A; user-select: none; white-space: nowrap; margin-bottom: -0.12em;
}

/* 14. Motion --------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-inview { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-img.is-inview { clip-path: inset(0 0 0 0); }
.reveal-img img { transform: scale(1.15); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-img.is-inview img { transform: scale(1); }
.reveal-line { position: relative; }
.reveal-line::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
.reveal-line.is-inview::before { transform: scaleX(1); }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes unveil { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes skeleton { to { background-position: -200% 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(63,107,78,0); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-img, .reveal-img img { opacity: 1; transform: none; clip-path: none; }
  .statement__text .w { opacity: 1 !important; }
  .index-preview { display: none; }
  .hero__title .ln > span, .hero__label, .hero__text, .hero__actions { transform: none !important; opacity: 1 !important; }
}

/* 15. Responsive ----------------------------------------------------------- */
@media (max-width: 400px) {
  .select-wrap > .muted { display: none; }
  .toolbar__inner { gap: 0.5rem; }
}
@media (max-width: 767px) {
  .logo { font-size: 1.25rem; letter-spacing: 0.12em; padding-left: 0.12em; }
  .product-card__info { grid-template-columns: 1fr; }
  .product-card__price { order: 2; }
  .product-card__meta { order: 3; }
  .tile .caption span { display: none; }
  .quote__slides { min-height: 0; }
  .util-link { padding-inline: 0.35rem; }
}

@media (min-width: 560px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .scroller { grid-auto-columns: 44%; }
  .cats__row { grid-auto-columns: 30%; }
  .strip > a { width: 42vw; }
  .strip > a:nth-child(3n+2) { width: 32vw; }
}

@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .hide-mobile { display: inline-flex; }
  .mobile-only { display: none; }
  .announcement__inner { justify-content: space-between; }
  .announcement__inner span:not(:first-child) { display: inline; }
  .sec-head { grid-template-columns: 1fr 1fr; }
  .notes { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .index-list a { grid-template-columns: 3rem 1fr 18rem 6rem; }
  .index-list__desc { display: block; }
  .index-list__thumb { display: none; }
  .index-list__count { grid-column: auto; grid-row: auto; text-align: right; }
  .feature__card { position: absolute; left: var(--gutter); bottom: var(--gutter); margin: 0; width: min(520px, 46vw); }
  .quote { grid-template-columns: 1fr auto; align-items: end; }
  .newsletter { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
  .rating-summary { grid-template-columns: 240px 1fr; align-items: center; }
  .gallery { grid-template-columns: 88px 1fr; }
  .gallery__thumbs { grid-template-columns: 1fr; grid-auto-rows: min-content; order: -1; }
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 3rem; }
  .logo { order: 1; }
  .header-left { order: 2; justify-content: center; }
  .header-right { order: 3; }

  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .cats__row { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; }
  .product-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .scroller { grid-auto-columns: calc(25% - 0.75rem); }

  .gifting { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .gifting__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
  .gifting__grid { gap: 3rem 1.25rem; }
  .gifting__grid .tile:nth-child(even) { margin-top: 7rem; }

  .strip > a { width: 26vw; }
  .strip > a:nth-child(3n+2) { width: 20vw; margin-top: 5rem; }

  .footer-top { grid-template-columns: 1fr 1.6fr; }

  .collection-layout { grid-template-columns: 250px 1fr; gap: 3rem; }
  .filters { position: sticky; top: calc(var(--header-h) + 80px); align-self: start; transform: none; width: auto; padding: 0; z-index: 1; max-height: calc(100vh - var(--header-h) - 100px); background: transparent; }
  .filters.is-open { box-shadow: none; }
  .filters__head .icon-btn, .filters__foot .btn--apply, .toolbar__btn--filter { display: none; }
  .filters__foot { grid-template-columns: 1fr; }
  .product-grid--collection { grid-template-columns: repeat(3, 1fr); }

  .pdp { grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  .pdp__info { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .sticky-buy { display: none; }
  .help-layout { grid-template-columns: 220px 1fr; gap: 4rem; }
  .help-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .help-nav .chip { justify-content: flex-start; border-radius: 0; border: 0; border-left: 1px solid var(--line); }
  .help-nav .chip:hover, .help-nav .chip.is-active { background: transparent; color: var(--ink); border-left: 2px solid var(--ink); }
}

@media (hover: none) {
  .quick-add { display: none; }
  .product-card:hover .img-main { opacity: 1; }
  .product-card:hover .img-alt { opacity: 0; }
}
