/* ============================================================
   SoulStones — Design System: "The Atelier in Black & Gold"
   Palette: off-white background, black section grounds, gold
   for headings, buttons, and accents. Warm-tinted neutrals.
   ============================================================ */

:root {
  /* Core palette */
  --bg: #F7F3EA;            /* off-white background */
  --surface: #FFFDF8;       /* warm white card / lift */
  --black: #16120B;         /* black section ground (warm near-black) */
  --black-soft: #221C12;    /* lifted black surface */
  --gold: #C9A24B;          /* bright gold: buttons, accents, headings on black */
  --gold-soft: #E8D5A8;     /* champagne: hovers, soft fills */
  --gold-deep: #876521;     /* deep gold: headings & labels on light (legible) */
  --ink: #1A160F;           /* near-black text */
  --muted: #8A7B6C;         /* secondary text on light */
  --on-black: #F4EEE1;      /* text on black grounds */
  --on-black-muted: rgba(244, 238, 225, 0.72);

  --hairline: rgba(26, 22, 15, 0.12);
  --hairline-gold: rgba(201, 162, 75, 0.42);
  --hairline-on-black: rgba(232, 213, 168, 0.22);

  /* Type */
  --font-display: "Gloock", Georgia, serif !important;
  --font-body: "Inter", system-ui, -apple-system, sans-serif !important;
  --font-script: "Cormorant Garamond", Georgia, serif !important;

  /* Radius */
  --r-card: 12px;
  --r-badge: 6px;
  --r-pill: 999px;

  /* Spacing */
  --sp-sm: 16px;
  --sp-md: 24px;
  --sp-lg: 40px;
  --section: clamp(56px, 8vw, 96px);

  /* Shadow (soft, warm-tinted) */
  --sh-rest: 0 2px 8px rgba(26, 22, 15, 0.07);
  --sh-hover: 0 10px 28px rgba(26, 22, 15, 0.14);
  --sh-overlay: 0 16px 48px rgba(26, 22, 15, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --shell: 1180px;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none !important; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; color: var(--gold-deep); }

.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: -60px; left: 16px; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

/* Universal visible focus */
:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  font-family: var(--font-body) !important; font-weight: 600 !important;
  font-size: 0.8125rem !important; letter-spacing: 0.06em !important; text-transform: uppercase !important;
  border-radius: var(--r-pill) !important; border: 1px solid transparent !important;
  padding: 14px 30px !important; white-space: nowrap !important;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn-primary { background: var(--gold) !important; color: var(--ink) !important; }
.btn-primary:hover { background: var(--gold-soft) !important; transform: translateY(-1px) !important; }
.btn-secondary { background: transparent !important; color: var(--gold-deep) !important; border-color: var(--gold) !important; padding: 13px 29px !important; }
.btn-secondary:hover { background: var(--gold-soft) !important; color: var(--ink) !important; }
.btn-whatsapp { background: transparent !important; color: var(--gold-deep) !important; border-color: var(--gold) !important; padding: 13px 24px !important; }
.btn-whatsapp:hover { background: var(--gold-soft) !important; color: var(--ink) !important; }
.btn-block { width: 100%; }

/* On black grounds, buttons are solid gold with dark text */
.consult-band .btn-whatsapp,
.drawer-foot .btn-whatsapp {
  background: var(--gold); color: var(--ink); border-color: transparent;
}
.consult-band .btn-whatsapp:hover,
.drawer-foot .btn-whatsapp:hover { background: var(--gold-soft); }

/* ----------------------------- Section scaffold ----------------------------- */
.section { padding-block: var(--section) !important; }
/* Adjacent same-background sections share one spacing unit, not two */
.section + .section { padding-top: 0 !important; }
/* Restore top padding for adjacent sections with different backgrounds */
.section.reviews,
.section.promise,
.section.how {
  padding-top: var(--section) !important;
}
.section-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; color: var(--gold-deep); }
.section-lede { margin: 14px 0 0; max-width: 64ch; color: var(--muted); font-size: 1.125rem; }

/* ----------------------------- Header ----------------------------- */
/* ----------------------------- Announcement bar ----------------------------- */
.announcement-bar {
  background: var(--black); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  max-height: 60px;
  padding: 9px 20px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em;
  transition: max-height .4s var(--ease), padding .4s var(--ease), opacity .3s var(--ease);
}
.announcement-bar.dismissed {
  max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; pointer-events: none;
}
.announcement-text { margin: 0; }

/* ----------------------------- Site header ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 234, 0.86);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header[data-elevated="true"] {
  background: rgba(247, 243, 234, 0.96);
  border-bottom-color: var(--hairline);
  box-shadow: var(--sh-rest);
}
.header-inner { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); min-height: 64px; }
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: -0.01em; line-height: 1; color: var(--ink); }
.wordmark-stones { color: var(--gold-deep); }

/* Primary nav — top-level links and Collections button share the same visual style */
.primary-nav {
  display: flex !important; align-items: center !important;
  gap: clamp(14px, 2vw, 30px) !important; margin-right: auto !important;
}
.primary-nav > a,
.nav-dropdown-btn {
  font-size: 1rem !important; font-weight: 500 !important; color: var(--ink) !important;
  padding-bottom: 3px !important; border-bottom: 1px solid transparent !important;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.primary-nav > a:hover,
.nav-dropdown-btn:hover,
.nav-dropdown-btn[aria-expanded="true"] {
  border-bottom-color: var(--gold); color: var(--gold-deep);
}

/* Collections dropdown button */
.nav-dropdown-btn {
  background: none !important; border: none !important; border-radius: 0 !important;
  font-family: var(--font-body) !important;
  display: inline-flex !important; align-items: center !important; gap: 4px !important;
  cursor: pointer !important; padding-top: 0 !important;
}
.nav-dropdown-btn .chevron {
  transition: transform .22s var(--ease);
  flex-shrink: 0;
}
.nav-dropdown-btn[aria-expanded="true"] .chevron { transform: rotate(-180deg); }

/* ---- Dropdown panels (Collections + Profile) ---- */
.nav-item { position: relative; }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 188px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); box-shadow: var(--sh-overlay);
  padding: 6px;
  display: flex; flex-direction: column; z-index: 200;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.nav-dropdown-panel.open {
  opacity: 1; pointer-events: auto; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s 0s;
}
.nav-dropdown-panel a {
  padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font-size: 0.9375rem; font-weight: 500;
  border-bottom: none;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.nav-dropdown-panel a:hover { background: var(--bg); color: var(--gold-deep); border-bottom-color: transparent; }
.dropdown-divider { border: none; border-top: 1px solid var(--hairline); margin: 4px 8px; }
.dropdown-all { color: var(--gold-deep) !important; font-weight: 600 !important; }

/* Profile panel: right-aligned, no horizontal offset */
.profile-panel {
  left: auto; right: 0;
  transform: translateY(-6px);
  min-width: 156px;
}
.profile-panel.open { transform: translateY(0); }

/* ---- Icon buttons (search, profile, cart) ---- */
.icon-btn {
  background: none; border: none; padding: 8px; color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; position: relative;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.icon-btn:hover { color: var(--gold-deep); background: rgba(135, 101, 33, 0.07); }
.icon-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Cart badge (on icon-btn.cart-button) */
.cart-button { position: relative; }
.cart-count {
  position: absolute; top: 0px; right: 0px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--gold); color: var(--ink);
  font-size: 0.6875rem; font-weight: 700; line-height: 18px; text-align: center;
  border-radius: var(--r-pill); pointer-events: none;
  transition: transform .2s var(--ease);
}
.cart-count[data-empty="true"] { display: none; }
.cart-count.bump { transform: scale(1.35); }

.header-actions { display: flex; align-items: center; gap: 2px; }

/* ---- Full-width search bar ---- */
.search-bar {
  border-top: 1px solid transparent;
  background: var(--bg);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  padding: 0;
  transition:
    max-height .32s var(--ease),
    opacity .24s var(--ease),
    transform .24s var(--ease),
    padding .32s var(--ease),
    border-color .24s var(--ease);
}
.search-bar.is-open {
  max-height: 72px;
  opacity: 1;
  transform: none;
  padding: 12px 0;
  border-top-color: var(--hairline);
}
.search-inner {
  display: flex; align-items: center; gap: 10px;
}
.search-icon { color: var(--muted); flex-shrink: 0; }
.search-input {
  flex: 1; border: none; background: none;
  font-family: var(--font-body); font-size: 1.0625rem; color: var(--ink);
  padding: 4px 0; outline: none;
  caret-color: var(--gold);
}
.search-input::placeholder { color: var(--muted); }
.search-close-btn { color: var(--muted); flex-shrink: 0; }
.search-close-btn:hover { color: var(--ink); background: none; }

/* Mobile hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; isolation: isolate; min-height: clamp(520px, 76vh, 720px); display: flex; align-items: center; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../images/hero_section_banner.webp");
  background-size: cover; background-position: 28% center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(247,243,234,0) 30%, rgba(247,243,234,0.55) 58%, rgba(247,243,234,0.96) 80%);
}
.hero-inner { display: flex; justify-content: flex-end; width: min(100% - 40px, var(--shell)); }
.hero-copy { max-width: 33rem; text-align: left; }
.hero-accent {
  font-family: var(--font-script); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold-deep);
  margin: 0 0 10px; line-height: 1.2;
}
.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.2rem); letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
.hero-sub { font-size: 1.125rem; line-height: 1.65; color: var(--ink); opacity: .82; margin: 20px 0 0; max-width: 38ch; }
.hero-cta { display: flex !important; flex-wrap: wrap !important; gap: 14px !important; margin-top: 32px !important; }

/* ----------------------------- Trust strip ----------------------------- */
.trust-strip { background: var(--surface); border-block: 1px solid var(--hairline); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; padding-block: 22px; }
.trust-item { display: flex; align-items: center; gap: 11px; font-size: 1rem; font-weight: 500; color: var(--ink); }
.trust-item svg { color: var(--gold-deep); flex-shrink: 0; }

/* ----------------------------- Categories ----------------------------- */
.categories { background: var(--bg); }
/* Feature + trio: one tall lead tile, three horizontal tiles stacked beside it */
.category-grid { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 20px; }
.cat-tile {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--sh-rest); overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cat-tile:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }
.cat-tile--lead { grid-column: 1; grid-row: 1 / 4; }
.cat-tile:not(.cat-tile--lead) { grid-column: 2; flex-direction: row; align-items: stretch; }
.cat-media { background: linear-gradient(160deg, var(--bg) 0%, #EFE7D6 100%); overflow: hidden; }
.cat-tile--lead .cat-media { aspect-ratio: 3 / 4; flex: 1; }
.cat-tile:not(.cat-tile--lead) .cat-media { width: clamp(108px, 15vw, 150px); flex-shrink: 0; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.cat-tile:hover .cat-media img { transform: scale(1.04); }
.cat-label { padding: 16px 18px 18px; display: flex; flex-direction: column; justify-content: center; }
.cat-tile--lead .cat-label { padding: 20px 22px 24px; }
.cat-name { display: block; font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; color: var(--gold-deep); }
.cat-tile--lead .cat-name { font-size: 1.5rem; letter-spacing: -0.01em; }
.cat-planet { display: block; font-size: 0.875rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 4px; }

.intent-row {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding-top: 24px; border-top: 1px solid var(--hairline);
}
.intent-row-title { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.intent-links { display: flex; flex-wrap: wrap; gap: 10px; }
.intent-links a {
  font-size: 1rem; font-weight: 500; color: var(--gold-deep);
  padding: 8px 18px; border: 1px solid var(--hairline-gold); border-radius: var(--r-pill);
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.intent-links a:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); }

/* ----------------------------- New arrivals rail ----------------------------- */
.new-arrivals { background: var(--bg); overflow: hidden !important; }
.new-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.rail-controls { display: flex; gap: 8px; }
.rail-nav {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline-gold); background: var(--surface); color: var(--gold-deep);
  font-size: 1.3rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s var(--ease), border-color .18s var(--ease), opacity .18s var(--ease);
}
.rail-nav:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--ink); }
.rail-nav:disabled { opacity: .35; cursor: default; }
.rail-viewport { width: min(100% - 40px, var(--shell)); margin-inline: auto; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(248px, 28%);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail > li { scroll-snap-align: start; }

/* ----------------------------- Product card ----------------------------- */
.product-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--sh-rest); overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.product-card:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }
.product-media {
  position: relative; aspect-ratio: 1; display: block; overflow: hidden;
  background: var(--surface);
}
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s var(--ease); border-radius: 11px; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge-new {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--surface); color: var(--gold-deep);
  border: 1px solid var(--gold); border-radius: var(--r-badge);
  padding: 4px 10px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.product-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.product-planet { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.product-name { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--gold-deep); }
.product-meta { font-size: 0.875rem; color: var(--muted); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.product-price { font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--ink);
  border: 0; border-radius: var(--r-pill);
  padding: 9px 16px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.add-btn:hover { background: var(--gold-soft); transform: translateY(-1px); }
.add-btn.added { background: var(--black); color: var(--gold); }

/* Out-of-stock state (mirrors product.css so every product card matches) */
.badge-stock {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--hairline); border-radius: var(--r-badge);
  padding: 4px 10px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.product-card.out-of-stock .product-media img { opacity: 0.5; }
.add-btn:disabled, .add-btn:disabled:hover {
  background: var(--bg); color: var(--muted); transform: none; cursor: not-allowed;
}

/* ----------------------------- Stats band (black) ----------------------------- */
.stats-band { background: var(--black); color: var(--on-black); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(44px, 6vw, 68px); justify-content: center !important; }
.stat { padding: 4px clamp(16px, 3vw, 38px); position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--hairline-on-black); }
.stat-figure { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; color: var(--gold); }
.stat-plus, .stat-unit { color: var(--gold-soft); font-size: 0.6em; }
.stat-label { display: block; margin-top: 12px; font-size: 0.875rem; line-height: 1.5; color: var(--on-black-muted); max-width: 22ch; }

/* ----------------------------- Top styles + filters ----------------------------- */
.top-styles { background: var(--surface); }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 8px 17px; font-size: 0.8125rem; font-weight: 500;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--gold); border-color: var(--black); }
.sort-field { display: inline-flex; align-items: center; gap: 9px; }
.sort-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sort-field select {
  font-family: var(--font-body); font-size: 0.875rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 9px 16px; cursor: pointer;
}
.sort-field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px var(--hairline-gold); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }

.empty-state { text-align: center; padding: clamp(40px, 7vw, 72px) 20px; }
.empty-title { font-family: var(--font-body); font-weight: 600; font-size: 1.5rem; color: var(--gold-deep); margin: 0; }
.empty-sub { color: var(--muted); margin: 8px 0 22px; }

/* ----------------------------- Consultation band (black) ----------------------------- */
.consult-band { background: var(--black); color: var(--on-black); position: relative; overflow: hidden; }
.consult-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: var(--section); }
/* Consult kicker: Inter italic — Cormorant is reserved for the hero only (One Script Rule) */
.consult-kicker { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: 1.125rem; color: var(--gold-soft); margin: 0 0 12px; line-height: 1.5; }
.consult-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; color: var(--gold); max-width: 18ch; }
.consult-body { color: var(--on-black-muted); font-size: 1.125rem; line-height: 1.65; max-width: 46ch; margin: 18px 0 28px; }
.consult-hours { margin: 16px 0 0; font-size: 0.8125rem; color: rgba(244, 238, 225, 0.55); }
.consult-portrait { margin: 0; }
.portrait-slot {
  aspect-ratio: 4 / 5; border-radius: var(--r-card);
  border: 1px solid var(--hairline-on-black);
  background:
    repeating-linear-gradient(135deg, rgba(201,162,75,0.05) 0 14px, rgba(201,162,75,0.09) 14px 28px),
    var(--black-soft);
  display: flex; align-items: center; justify-content: center;
}
.portrait-tag { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232, 213, 168, 0.55); }

/* ----------------------------- Video testimonials ----------------------------- */
.video-testimonials { background: var(--bg); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.video-card {
  position: relative; border: 0; text-align: left; width: 100%;
  background: var(--black); border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 4 / 5; color: var(--on-black);
  box-shadow: var(--sh-rest);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.video-card:hover { box-shadow: var(--sh-hover); transform: translateY(-3px); }
.video-poster { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .9; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,18,11,0) 36%, rgba(22,18,11,0.85) 100%); }
.video-play {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  width: 50px; height: 50px; border-radius: var(--r-pill);
  background: var(--gold); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-rest);
}
.video-info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.video-name { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--on-black); }
.video-stone { font-size: 0.875rem; color: var(--gold-soft); margin-top: 4px; }

/* ----------------------------- Reviews ----------------------------- */
.reviews { background: var(--surface); }
.review-columns { columns: 3 260px; column-gap: 22px; }
.review {
  break-inside: avoid; margin-bottom: 22px;
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 22px 24px;
}
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.875rem; }
.review-quote { font-family: var(--font-body); font-weight: 400; font-style: italic; font-size: 1.125rem; line-height: 1.6; color: var(--ink); margin: 12px 0 16px; }
.review-author { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.review-stone { font-size: 0.875rem; color: var(--muted); }

/* ----------------------------- Promise ----------------------------- */
.promise { background: #F1E9D8; }
.promise-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.promise-figure { margin: 28px 0 0; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--sh-rest); }
.promise-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 22px; mix-blend-mode: multiply; }
.promise-list { display: grid; gap: 6px; }
.promise-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.promise-list li:last-child { border-bottom: 0; }
.promise-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--gold-deep); border: 1px solid var(--hairline-gold); }
.promise-list h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--gold-deep); }
.promise-list p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* ----------------------------- How it works ----------------------------- */
.how { background: var(--surface); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.step { position: relative; padding-top: 14px; }
.step + .step::before { content: ""; position: absolute; left: -28px; top: 40px; width: 1px; bottom: 10px; background: var(--hairline); }
.step-num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -0.02em; color: var(--gold); line-height: 1; }
.step-title { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--gold-deep); margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); max-width: 32ch; }

/* ----------------------------- Certifications ----------------------------- */
.certs { background: var(--bg); border-top: 1px solid var(--hairline); }
.certs-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px 40px; padding-block: clamp(34px, 5vw, 52px); }
.certs-note { margin: 0; font-size: 1rem; color: var(--muted); max-width: 30ch; }
.cert-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cert-logo {
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em;
  color: var(--gold-deep); padding: 12px 20px;
  border: 1px solid var(--hairline-gold); border-radius: 8px; background: var(--surface);
}

/* ----------------------------- Footer (black) ----------------------------- */
.site-footer { background: var(--black); color: var(--on-black-muted); padding-top: clamp(48px, 7vw, 80px); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 48px; }
.wordmark--footer { color: var(--on-black); font-size: 1.5rem; }
.wordmark--footer .wordmark-stones { color: var(--gold); }
.footer-tagline { margin: 14px 0 22px; font-size: 1rem; max-width: 34ch; color: var(--on-black-muted); }
.newsletter-label { display: block; font-size: 0.875rem; color: var(--on-black-muted); margin-bottom: 10px; }
.newsletter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-row input {
  flex: 1 1 180px; min-width: 0;
  background: rgba(244, 238, 225, 0.07); color: var(--on-black);
  border: 1px solid var(--hairline-on-black); border-radius: var(--r-card);
  padding: 12px 16px; font-family: var(--font-body); font-size: 1rem;
}
.newsletter-row input::placeholder { color: rgba(244, 238, 225, 0.4); }
.newsletter-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--hairline-gold); }
.newsletter-row input[aria-invalid="true"] { border-color: #D08A8A; }
.newsletter-msg { margin: 10px 0 0; font-size: 0.8125rem; min-height: 1em; }
.newsletter-msg[data-state="ok"] { color: var(--gold-soft); }
.newsletter-msg[data-state="error"] { color: #E6A9A9; }

.footer-col h4 { font-family: var(--font-body) !important; font-size: 0.75rem !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; color: var(--gold) !important; font-weight: 600 !important; margin-bottom: 16px !important; }
.footer-col a { display: block; padding: 6px 0; font-size: 1rem; color: var(--on-black-muted); transition: color .16s var(--ease); }
.footer-col a:hover { color: var(--on-black); }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 8px; color: var(--gold) !important; font-weight: 600; }
.footer-social { display: flex !important; gap: 12px !important; margin-top: 16px !important; }
.footer-social a { display: inline-flex !important; padding: 9px !important; border: 1px solid var(--hairline-on-black) !important; border-radius: var(--r-pill) !important; color: var(--on-black) !important; }
.footer-social a:hover { background: rgba(232, 213, 168, 0.12); }

.footer-base {
  display: flex !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 12px !important;
  padding-block: 22px !important; border-top: 1px solid var(--hairline-on-black) !important;
  font-size: 0.8125rem !important; color: rgba(244, 238, 225, 0.55) !important;
}

.footer-legal a{
  color: rgba(244, 238, 225, 0.55) !important;
}
.footer-legal a:hover { color: var(--on-black) !important; }

/* ----------------------------- Cart drawer ----------------------------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(22, 18, 11, 0.5); opacity: 0; transition: opacity .25s var(--ease); }
.drawer-overlay.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 160; height: 100dvh; width: min(420px, 92vw);
  background: var(--bg); box-shadow: var(--sh-overlay);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--hairline); }
.drawer-head h2 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--gold-deep); }
.drawer-close { background: none; border: 0; color: var(--ink); padding: 4px; display: inline-flex; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.drawer-thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--surface); object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.drawer-info-name { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ink); }
.drawer-info-meta { font-size: 0.875rem; color: var(--muted); }
.drawer-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); line-height: 1; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; }
.qty-btn:hover { border-color: var(--gold); }
.qty-val { min-width: 16px; text-align: center; font-size: 0.875rem; }
.drawer-line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.drawer-price { font-weight: 700; color: var(--ink); }
.remove-btn { background: none; border: 0; color: var(--muted); font-size: 0.75rem; text-decoration: underline; padding: 0; }
.remove-btn:hover { color: var(--gold-deep); }
.drawer-empty { padding: 48px 28px; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.drawer-empty-title { font-family: var(--font-body); font-weight: 600; font-size: 1.5rem; color: var(--gold-deep); margin: 0; }
.drawer-empty-sub { color: var(--muted); margin: 0 0 12px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--hairline); background: var(--surface); }
.drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 1rem; }
.drawer-subtotal :last-child { font-family: var(--font-body); font-weight: 700; color: var(--gold-deep); font-size: 1.25rem; }
.drawer-note { font-size: 0.875rem; color: var(--muted); margin: 12px 0 16px; }

/* ----------------------------- Video dialog ----------------------------- */
.video-overlay { position: fixed; inset: 0; z-index: 170; background: rgba(22, 18, 11, 0.82); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.video-overlay.show { opacity: 1; pointer-events: auto; }
.video-dialog { position: relative; width: min(880px, 100%); }
.video-close { position: absolute; top: -46px; right: 0; background: none; border: 0; color: var(--on-black); padding: 6px; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--black-soft); display: flex; align-items: center; justify-content: center; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder-msg { color: var(--on-black-muted); font-size: 1rem; padding: 24px; text-align: center; }

/* ----------------------------- Reveal animation ----------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .promise-inner { grid-template-columns: 1fr; }
  .promise-figure { order: -1; }
  .consult-inner { grid-template-columns: 1fr; }
  .consult-portrait { order: -1; max-width: 360px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stat:nth-child(3)::before, .stat:nth-child(2)::before { background: var(--hairline-on-black); }
  .stat { text-align: center; }
  .stat-label { margin-inline: auto; }
}

@media (max-width: 768px) {
  /* --- Announcement bar: single line only on narrow screens --- */
  .announcement-text { font-size: 0.75rem; }

  /* --- Header --- */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: auto 0 auto 0; top: var(--mobile-nav-top, 100px); z-index: 90;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--hairline);
    padding: 0 20px 14px; box-shadow: var(--sh-overlay);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
  }
  .primary-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  /* Direct anchor links in mobile nav */
  .primary-nav > a {
    padding: 13px 0; border-bottom: 1px solid var(--hairline); width: 100%;
    display: block; font-size: 1rem;
  }
  .primary-nav > a:hover { border-bottom-color: var(--hairline); color: var(--gold-deep); }
  /* Collections dropdown inside mobile nav — inline expand.
     Scoped to .primary-nav so it never touches the .header-actions profile panel. */
  .primary-nav .nav-item--has-dropdown { width: 100%; }
  .primary-nav .nav-dropdown-btn {
    width: 100%; justify-content: space-between;
    padding: 13px 0; border-bottom: 1px solid var(--hairline); border-radius: 0;
    font-size: 1rem;
  }
  .primary-nav .nav-dropdown-btn[aria-expanded="true"] { border-bottom-color: transparent; color: var(--gold-deep); }
  /* Primary-nav dropdown panels: flow inline, expand by max-height */
  .primary-nav .nav-dropdown-panel {
    position: static;
    transform: none; opacity: 1;
    visibility: visible; pointer-events: none;
    background: none; border: none; box-shadow: none;
    padding: 0; border-radius: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .28s var(--ease), padding .28s var(--ease);
  }
  .primary-nav .nav-dropdown-panel.open {
    max-height: 260px; pointer-events: auto;
    padding-bottom: 4px;
  }
  .primary-nav .nav-dropdown-panel a {
    padding: 11px 0 11px 16px; border-radius: 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.9375rem;
  }
  .primary-nav .nav-dropdown-panel a:last-child { border-bottom: none; }
  .primary-nav .nav-dropdown-panel a:hover { background: none; }
  .dropdown-divider { display: none; }
  /* Profile panel stays absolutely positioned on mobile — right-aligned below the icon */
  /* (desktop absolute styles are unchanged; no mobile override needed) */
  .header-inner { gap: 14px; }
  .wordmark { margin-right: auto; }

  /* --- Hero --- */
  .hero { min-height: 560px; align-items: flex-end; padding-bottom: 48px; }
  .hero::after { background: linear-gradient(180deg, rgba(247,243,234,0) 30%, rgba(247,243,234,0.7) 62%, rgba(247,243,234,0.98) 88%); }
  .hero-media { background-position: 60% 30%; }
  .hero-inner { justify-content: flex-start; }
  .hero-copy { max-width: 100%; }

  /* --- Category grid ---
     Bug: .cat-tile:not(--lead) has grid-column:2 from desktop. In a 1-col grid
     this creates an implicit second column, making layout a cramped 2-col instead
     of a clean single column. Reset placement and restack as column flex. */
  .category-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .cat-tile--lead { grid-column: auto; grid-row: auto; }
  .cat-tile--lead .cat-media { aspect-ratio: 16 / 10; }
  .cat-tile:not(.cat-tile--lead) { grid-column: auto; flex-direction: column; }
  .cat-tile:not(.cat-tile--lead) .cat-media { width: 100%; aspect-ratio: 16 / 10; }

  /* --- New arrivals rail: hide native scrollbar on touch devices --- */
  .rail { scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }

  /* --- Reviews, steps, certs, footer --- */
  .review-columns { columns: 1; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step + .step::before { display: none; }
  .step { padding: 18px 0; border-top: 1px solid var(--hairline); }
  .certs-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-inner { gap: 14px 22px; }
  .trust-item { font-size: 0.875rem; }

  /* --- Video testimonials: 4/5 ratio = 419px tall at 375px. Use 16/9 instead. --- */
  .video-card { aspect-ratio: 16 / 9; }
  .video-grid { justify-content: center; padding-left: 0; margin-left: 0; margin-right: 0; }

  /* --- Cart drawer: prevent long stone names (e.g. "Cat's Eye Chrysoberyl")
     from overflowing the 64px-thumb / 1fr / auto grid at narrow drawer widths --- */
  .drawer-info-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* --- Product grid: 2 columns on mobile ---
     minmax(240px, 1fr) only ever fits one column at 375px (shell = 335px).
     Force 2 equal columns and compact card internals to match. */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; justify-content: center; padding-left: 0; margin-left: 0; margin-right: 0; }
  .product-body { padding: 10px 10px 12px; gap: 2px; }
  .product-name { font-size: 1rem; line-height: 1.2; }
  /* Stack price above Add button so they don't compete for width in a ~141px content area */
  .product-foot { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 8px; }
  .product-price { font-size: 1rem; }
  .add-btn { justify-content: center; padding: 9px 10px; }
  .badge-new { top: 8px; left: 8px; padding: 3px 8px; }

  /* Center promise items on mobile */
  .promise-list { max-width: 520px; margin-inline: auto; padding-left: 0; margin-left: 0; margin-right: 0; }
  .promise-list li { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
  .promise-list li > div { flex: 1 1 auto; }
}

@media (max-width: 460px) {
  .category-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .stat { border-top: 1px solid var(--hairline-on-black); padding-top: 22px; }
  .stat:first-child { border-top: 0; padding-top: 4px; }
  .hero-cta .btn { flex: 1 1 auto !important; }
}

/* ----------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------- Cart success toast ----------------------------- */
/* Brand gold instead of Bootstrap's default green; error toasts keep
   Bootstrap's stock text-bg-danger (unchanged). */
#cartToast.cart-toast-success {
  background-color: var(--gold);
  color: var(--ink);
}
#cartToast.cart-toast-success .btn-close {
  filter: none;
}












