/* =========================================================
   LUMÉRA — Fine Jewellery — Collection Nº 02
   Warm cream / ivory / sand / champagne-gold palette.
   ========================================================= */

:root {
  --cream: #fdf8ef;
  --ivory: #faf2e1;
  --ivory-dim: #f2e6cd;
  --sand: #efe0c2;
  --beige: #e3d0a4;
  --gold: #c7a564;
  --gold-light: #e7d7ad;
  --gold-deep: #a8824a;
  --terracotta: #b6603f;
  --terracotta-light: #e3a98c;
  --terracotta-deep: #8a4228;
  --espresso: #3c2a1d;
  --espresso-soft: #4d3627;
  --sage: #7c8d70;
  --teal: #2f6f66;
  --teal-light: #cfe6df;
  --teal-deep: #1f4f48;
  --ink: #2b2016;
  --ink-muted: #786a57;
  --line: rgba(43, 32, 22, 0.12);
  --line-light: rgba(253, 248, 239, 0.22);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", sans-serif;

  --maxw: 1320px;
  --nav-h: 86px;
  --announce-h: 40px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--ink); }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  background: var(--espresso); color: var(--cream); padding: 0.8rem 1.4rem;
  border-radius: 4px; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Layout helpers ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem); }
.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.section-head.reveal { margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; color: var(--terracotta); font-weight: 500; margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--gold-light); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: 0.01em; line-height: 1.12; }
.section-head h2.light { color: var(--cream); }
.section-sub { margin-top: 1rem; color: var(--ink-muted); font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 2.1rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; transition: all 0.3s var(--ease); border: 1px solid transparent; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); color: #1a1408; font-weight: 500; }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(168,130,74,0.35); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(43,32,22,0.06); border-color: var(--ink); }
.btn-gold-outline { border-color: var(--gold-deep); color: var(--gold-deep); background: transparent; }
.btn-gold-outline:hover { background: var(--gold-deep); color: var(--cream); }
.btn-block { width: 100%; }

.text-link {
  display: inline-block; margin-top: 1.6rem; font-size: 0.9rem; letter-spacing: 0.04em;
  color: var(--terracotta); border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: opacity 0.2s var(--ease);
}
.text-link:hover { opacity: 0.6; }

/* ---------- Icon buttons ---------- */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; position: relative;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(43,32,22,0.06); }

/* =========================================================
   Announcement bar
   ========================================================= */
.announce {
  height: var(--announce-h); background: var(--terracotta-deep); color: var(--cream);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  position: relative; z-index: 60;
}
.announce p {
  font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold-light); white-space: nowrap; padding: 0 1rem;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(253,248,239,0.86); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem); gap: 1rem;
}
.brand-logo {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.12em;
  color: var(--ink); justify-self: center; font-weight: 700;
}
.primary-nav { display: flex; gap: clamp(1rem, 2vw, 2rem); justify-self: start; }
.primary-nav a {
  color: var(--ink); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  position: relative; padding: 0.4rem 0; white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--terracotta); transition: width 0.25s var(--ease);
}
.primary-nav a:hover::after { width: 100%; }

.header-actions { display: flex; gap: 0.25rem; justify-self: end; align-items: center; }
.header-actions .icon-btn { color: var(--ink); }
.bag-btn { position: relative; }
.bag-count {
  position: absolute; top: 2px; right: 2px; background: var(--terracotta); color: var(--cream);
  font-size: 0.62rem; font-weight: 600; min-width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

.nav-toggle { display: none; color: var(--ink); }
.burger, .burger::before, .burger::after {
  content: ""; display: block; width: 20px; height: 1.5px; background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger::before { transform: translateY(-6px); }
.burger::after { transform: translateY(4.5px); }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(0) rotate(-45deg); }

.mobile-nav {
  display: none; max-height: 0; overflow: hidden; background: var(--sand);
  transition: max-height 0.35s var(--ease);
}
.mobile-nav nav { display: flex; flex-direction: column; padding: 0.5rem clamp(1.25rem, 5vw, 3rem) 1.5rem; }
.mobile-nav a {
  color: var(--ink); padding: 0.9rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem; letter-spacing: 0.03em; text-transform: uppercase;
}
.mobile-nav.open { max-height: 480px; }

/* =========================================================
   3D Scroll Showcase — real Three.js jewellery, pinned per scene,
   rotating a full 90° around its vertical axis as the visitor
   scrolls. Light, warm, teal-accented scenes — no black backdrops.
   ========================================================= */
.showcase { position: relative; background: var(--cream); }

.scene-wrap { position: relative; height: 280vh; }
.scene-wrap[data-scene="ring"] .scene-stage { --scene-bg: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 55%, var(--sand) 100%); }
.scene-wrap[data-scene="necklace"] .scene-stage { --scene-bg: linear-gradient(180deg, var(--ivory), var(--teal-light)); }
.scene-wrap[data-scene="earrings"] .scene-stage { --scene-bg: linear-gradient(180deg, var(--sand), var(--beige)); }
.scene-wrap[data-scene="bracelet"] .scene-stage { --scene-bg: linear-gradient(180deg, var(--ivory), var(--teal-light) 120%); }

.scene-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  background: var(--scene-bg, var(--cream));
  isolation: isolate;
}
.scene-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: pan-y; cursor: grab;
}
.scene-canvas:active, .scene-canvas.grabbing { cursor: grabbing; }
.scene-canvas.hidden { display: none; }

.scene-fallback {
  position: absolute; inset: 0; z-index: 0;
}
.scene-fallback:not([hidden]) {
  display: flex; align-items: center; justify-content: center;
}
.scene-fallback svg {
  width: min(42vw, 260px); height: auto; color: var(--gold-deep); opacity: 0.75;
}

.scene-overlay {
  position: relative; z-index: 2; color: var(--ink); pointer-events: none;
}
.scene-overlay .btn, .scene-overlay a { pointer-events: auto; }

.scene-overlay--hero {
  max-width: 660px; padding: 0 clamp(1.5rem, 6vw, 5rem);
}
.scene-title {
  font-size: clamp(2.7rem, 7.5vw, 5.6rem); line-height: 1.02; color: var(--ink);
  letter-spacing: 0.005em; margin: 0.4rem 0 1.4rem;
}
.scene-title em {
  font-style: italic; background: linear-gradient(120deg, var(--gold-deep), var(--gold) 50%, var(--terracotta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.scene-sub { font-size: 1.1rem; color: var(--ink-muted); max-width: 500px; margin-bottom: 2.4rem; }
.scene-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.scene-caption {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink);
}
.scene-caption span {
  display: block; font-family: var(--sans); font-style: normal; font-size: 0.65rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 0.4rem;
}

.scene-overlay--caption {
  max-width: 420px; padding: 0 clamp(1.5rem, 6vw, 5rem);
  position: absolute; left: 0; bottom: clamp(2.5rem, 8vh, 5rem);
}
.scene-overlay--caption .scene-desc {
  margin: 0.7rem 0 1.3rem; color: var(--ink-muted); font-size: 1rem;
}
.scene-overlay--caption .btn { padding: 0.8rem 1.6rem; font-size: 0.78rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1px solid rgba(43,32,22,0.3); border-radius: 20px;
  pointer-events: auto;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; border-radius: 2px;
  background: var(--teal-deep); transform: translateX(-50%);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0% { opacity: 1; top: 7px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 7px; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Premium staggered entrance for product cards — Signature Edit and New Arrivals
   both use this same .product-card.reveal hook */
.product-card.reveal {
  transform: translateY(32px) scale(0.94);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.product-card.reveal.in-view { transform: translateY(0) scale(1); }

/* =========================================================
   Product grid / cards
   ========================================================= */
.product-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Signature Edit — editorial mosaic: a wide "plate" every few items, breaking the
   grid rhythm so the collection reads as a curated spread, not a repeating template. */
.signature-grid { grid-template-columns: repeat(6, 1fr); row-gap: clamp(2.5rem, 4vw, 3.5rem); }
.signature-grid .product-card { grid-column: span 2; }
.signature-grid .product-card.feature { grid-column: span 4; }
.signature-grid .product-card.feature .product-media { aspect-ratio: 16 / 10; }

.product-card { display: flex; flex-direction: column; }

/* The card frame: holds the shadow that makes the piece feel like it is
   lifting toward the viewer. The image inside tilts and scales; the frame
   itself just grows its shadow, so overlays (tag, add-to-bag) stay put. */
.product-media {
  position: relative; overflow: hidden; border-radius: 6px; background: var(--ivory-dim);
  aspect-ratio: 4 / 5; margin-bottom: 1.1rem;
  box-shadow: 0 10px 22px rgba(43,32,22,0.12);
  transition: box-shadow 0.45s var(--ease);
}

.product-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--lift-scale, 1));
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

/* Real Three.js jewellery dropped into each product thumbnail — the photo
   underneath stays as the loading placeholder / no-WebGL fallback until the
   3D piece is built, then fades out so the canvas shows through in its place. */
.card-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: pan-y;
}
.card-canvas.hidden { display: none; }
.product-media.has-3d { background: linear-gradient(165deg, var(--ivory-dim), var(--sand)); }
.product-media.has-3d img { opacity: 0; transition: none; }

/* Cinematic spotlight — the product nearest the centre of the screen (as you scroll,
   or the one piece in a row) gets its own elevated moment; its neighbours recede slightly. */
.product-card.in-focus .product-media {
  box-shadow: 0 26px 48px rgba(43,32,22,0.22);
}
.product-grid.spotlight-active .product-card:not(.in-focus) .product-media,
.scroll-row.spotlight-active .product-card:not(.in-focus) .product-media {
  opacity: 0.93;
}

/* Lift toward the viewer — perspective tilt + scale on the image, with the
   card's own shadow deepening to suggest the piece rising off the page. */
.product-card:hover .product-media,
.product-card:focus-within .product-media {
  box-shadow: 0 34px 58px rgba(43,32,22,0.26);
}
.product-card:hover .product-media img,
.product-card:focus-within .product-media img {
  --lift-scale: 1.06;
}

/* Touch devices: a brief, tap-triggered pop via :active. Pure CSS, so it
   never intercepts the touch gesture the browser needs to keep scrolling. */
@media (hover: none) {
  .product-card:active .product-media {
    box-shadow: 0 24px 42px rgba(43,32,22,0.24);
  }
  .product-card:active .product-media img {
    --lift-scale: 1.04;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card:hover .product-media,
  .product-card:focus-within .product-media,
  .product-card:active .product-media,
  .product-card.in-focus .product-media {
    box-shadow: 0 10px 22px rgba(43,32,22,0.12) !important;
  }
  .product-card:hover .product-media img,
  .product-card:focus-within .product-media img,
  .product-card:active .product-media img {
    transform: none !important;
  }
}

/* Editorial "campaign plate" labels — thin text, no pill backgrounds */
.plate-tag {
  position: absolute; z-index: 2; top: 0.9rem; left: 0.9rem;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: var(--cream); text-shadow: 0 1px 6px rgba(43,32,22,0.55);
}
.plate-tag--new { color: var(--terracotta-light); }
.plate-tag--statement { color: var(--gold-light); }
.plate-index {
  position: absolute; z-index: 2; top: 0.9rem; right: 0.9rem;
  font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--cream);
  text-shadow: 0 1px 6px rgba(43,32,22,0.55);
}

.quick-add {
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.9rem;
  background: rgba(253,248,239,0.95); color: var(--ink); backdrop-filter: blur(4px);
  padding: 0.85rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; transform: translateY(130%); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease), background 0.2s var(--ease);
}
.product-card:hover .quick-add,
.product-card:focus-within .quick-add { transform: translateY(0); opacity: 1; }
.quick-add:hover { background: var(--gold); }
.quick-add.added { background: var(--espresso); color: var(--cream); }

/* always show on touch devices where hover doesn't exist */
@media (hover: none) {
  .quick-add { transform: translateY(0); opacity: 1; position: static; margin-top: 0.7rem; background: var(--ink); color: var(--cream); }
}

.product-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.product-meta { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 0.4rem; }
.product-price { font-family: var(--serif); font-size: 1.05rem; color: var(--terracotta); font-weight: 600; }

/* ---------- Horizontal scroll row (New Arrivals) ---------- */
.bestsellers { background: var(--sand); }
.bestsellers .product-media { background: var(--beige); }

.scroll-row {
  display: flex; gap: clamp(1.25rem, 2.5vw, 2rem); overflow-x: auto; scroll-snap-type: x mandatory;
  max-width: var(--maxw); margin: 0 auto; padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--terracotta) transparent;
}
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 4px; }
.product-card.mini { flex: 0 0 clamp(220px, 24vw, 280px); scroll-snap-align: start; position: relative; }

/* =========================================================
   Atelier / editorial
   ========================================================= */
.atelier-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.atelier-media { position: relative; }
.atelier-img-main {
  width: 100%; height: auto; border-radius: 6px; aspect-ratio: 4/5; object-fit: cover;
  scale: 1; animation: atelierZoom 20s var(--ease) forwards; animation-play-state: paused;
}
.atelier-media.reveal.in-view .atelier-img-main { animation-play-state: running; }
@keyframes atelierZoom { from { scale: 1; } to { scale: 1.07; } }

.atelier-img-float {
  position: absolute; width: 42%; height: auto; bottom: -8%; right: -10%; border-radius: 6px;
  border: 6px solid var(--ivory); box-shadow: 0 30px 60px rgba(43,32,22,0.22); aspect-ratio: 4/5; object-fit: cover;
}
.atelier-copy p { color: var(--ink-muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.atelier-copy h2 { margin-bottom: 1.4rem; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.atelier-copy blockquote {
  margin: 1.8rem 0 0.5rem; padding-left: 1.3rem; border-left: 2px solid var(--gold-deep);
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink);
}
.atelier-copy cite { display: block; margin-top: 0.7rem; font-style: normal; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-muted); text-transform: uppercase; }

/* =========================================================
   Brand promise — editorial manifesto list (the one deep, warm
   espresso section on the page — never black)
   ========================================================= */
.promise { background: var(--espresso); color: var(--cream); position: relative; }
.promise-list {
  max-width: 920px; margin: 0 auto; display: flex; flex-direction: column;
}
.promise-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; align-items: start;
  padding: 2rem 0; border-top: 1px solid var(--line-light);
}
.promise-list .promise-row:last-child { border-bottom: 1px solid var(--line-light); }
.promise-num {
  font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--terracotta-light);
  line-height: 1;
}
.promise-row h3 { color: var(--cream); font-size: 1.2rem; margin-bottom: 0.6rem; }
.promise-row p { color: rgba(253,248,239,0.65); font-size: 0.96rem; max-width: 560px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--espresso-soft); color: var(--cream); padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem) 0; }
.footer-top {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand p { color: rgba(253,248,239,0.62); margin: 1rem 0 1.3rem; font-size: 0.92rem; max-width: 280px; }
.footer-brand .brand-logo { font-size: 1.4rem; color: var(--cream); }
.social-links { display: flex; gap: 0.3rem; }
.social-links .icon-btn { color: var(--cream); width: 38px; height: 38px; }
.social-links .icon-btn svg { width: 17px; height: 17px; }

.footer-col h4 { color: var(--terracotta-light); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col a { display: block; color: rgba(253,248,239,0.75); font-size: 0.92rem; padding: 0.35rem 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold-light); }

.newsletter-col p { color: rgba(253,248,239,0.62); font-size: 0.9rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsletter-form input {
  flex: 1 1 160px; background: rgba(253,248,239,0.08); border: 1px solid var(--line-light);
  color: var(--cream); padding: 0.8rem 1rem; border-radius: 2px; font-family: var(--sans); font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: rgba(253,248,239,0.42); }
.newsletter-form input:invalid:not(:placeholder-shown) { border-color: #c77; }
.form-msg { width: 100%; font-size: 0.82rem; margin-top: 0.3rem; min-height: 1.2em; color: var(--sage); }
.form-msg.error { color: #e49a9a; }

.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 0.8rem; padding: 1.6rem 0;
  font-size: 0.8rem; color: rgba(253,248,239,0.52);
}
.footer-legal { display: flex; gap: 1.3rem; }
.footer-legal a:hover { color: var(--gold-light); }

/* =========================================================
   Cart drawer
   ========================================================= */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(43,32,22,0.45); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); z-index: 150;
}
.drawer-overlay.visible { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--cream); z-index: 151; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  box-shadow: -20px 0 50px rgba(43,32,22,0.22);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { text-align: center; color: var(--ink-muted); margin-top: 3rem; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 0.9rem; align-items: center; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }
.cart-item-name { font-weight: 500; font-size: 0.95rem; }
.cart-item-price { color: var(--ink-muted); font-size: 0.85rem; margin-top: 0.2rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.cart-item-qty button {
  width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-remove { color: var(--ink-muted); font-size: 0.78rem; text-decoration: underline; justify-self: end; align-self: start; }
.drawer-foot { padding: 1.3rem 1.5rem 1.6rem; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 1rem; }
.cart-note { font-size: 0.78rem; color: var(--ink-muted); text-align: center; margin-top: 0.7rem; }

/* =========================================================
   Search overlay
   ========================================================= */
.search-overlay {
  position: fixed; inset: 0; background: rgba(43,32,22,0.97); z-index: 160;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
  padding: 2rem;
}
.search-overlay.visible { opacity: 1; pointer-events: auto; }
.search-close { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--cream); }
.search-form {
  display: flex; align-items: center; gap: 1rem; width: min(640px, 100%);
  border-bottom: 1px solid var(--line-light); padding-bottom: 1rem;
}
.search-form input {
  flex: 1; background: none; border: none; color: var(--cream); font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem); font-style: italic;
}
.search-form input:focus { outline: none; }
.search-form .icon-btn { color: var(--cream); }
.search-hint { color: rgba(253,248,239,0.5); margin-top: 1.2rem; font-size: 0.85rem; }

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 20px);
  background: var(--espresso); color: var(--cream); padding: 0.9rem 1.6rem; border-radius: 3px;
  font-size: 0.88rem; letter-spacing: 0.02em; z-index: 200; opacity: 0; pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  border: 1px solid var(--line-light);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .signature-grid, .signature-grid .product-card, .signature-grid .product-card.feature {
    grid-template-columns: repeat(2, 1fr); grid-column: span 1;
  }
  .signature-grid .product-card.feature .product-media { aspect-ratio: 4 / 5; }
  .atelier-grid { grid-template-columns: 1fr; }
  .atelier-img-float { width: 38%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .promise-row { grid-template-columns: 56px 1fr; }
  .promise-num { font-size: 1.9rem; }
  .scene-wrap { height: 240vh; }

  /* Below this width the 3D model and the overlay text share the same
     screen space (there's no room to sit the model beside the copy), so
     the text gets its own translucent panel to stay legible over it. */
  .scene-overlay--hero, .scene-overlay--caption {
    background: rgba(253, 248, 239, 0.88); backdrop-filter: blur(8px);
    border-radius: 14px; margin: 0 1rem; padding: 1.4rem 1.3rem !important;
    box-shadow: 0 10px 30px rgba(43,32,22,0.12);
  }
  .scene-overlay--caption { left: 0; right: 0; max-width: none; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-top { grid-template-columns: 1fr; }
  .atelier-img-float { position: static; width: 60%; margin-top: 1rem; border-width: 4px; }
  .atelier-media { display: flex; flex-direction: column; align-items: center; }
  .scene-overlay--hero { margin-top: 2rem; }
  .scene-overlay--caption { bottom: 1.25rem; margin: 0 0.75rem; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .brand-logo { font-size: 1.2rem; }
  .promise-row { grid-template-columns: 1fr; }
}
