/* ============================================================
   LUMINA — light luxury scroll-cinematic theme (mobile-first)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #f6f1ea;
  --cream-deep: #efe9df;
  --ink: #2b241b;
  --ink-soft: #5d5346;
  --gold: #b08d57;
  --gold-bright: #c9a76b;
  --serif: "Cormorant Garamond", serif;
  --sans: "Manrope", sans-serif;
}

html { scroll-behavior: auto; }
body {
  background: var(--cream-deep);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

/* ===== Preloader ===== */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--cream);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-brand {
  font-family: var(--serif); font-size: 2rem; font-weight: 600;
  letter-spacing: 0.34em; text-indent: 0.34em; color: var(--ink);
}
.spark { color: var(--gold); }
.loader-bar { width: min(220px, 60vw); height: 2px; background: rgba(43, 36, 27, 0.12); border-radius: 2px; overflow: hidden; }
.loader-fill { width: 0%; height: 100%; background: var(--gold); transition: width 0.25s ease; }
.loader-pct { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; color: var(--ink-soft); }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 2.2rem);
  background: linear-gradient(to bottom, rgba(246, 241, 234, 0.92), rgba(246, 241, 234, 0));
}
.nav-links { display: none; gap: 1.6rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; color: var(--ink-soft); }
.nav-brand {
  display: inline-flex; flex-direction: column; align-items: center; text-decoration: none;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0.3em; text-indent: 0.3em; color: var(--ink);
}
.nav-brand em {
  font-family: var(--sans); font-style: normal; font-size: 0.52rem; font-weight: 600;
  letter-spacing: 0.52em; text-indent: 0.52em; color: var(--gold); margin-top: 2px;
}
.nav-cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid rgba(43, 36, 27, 0.16); border-radius: 50%;
  background: rgba(246, 241, 234, 0.7); color: var(--ink); cursor: pointer;
}
.nav-cart svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; border-radius: 999px;
  font-size: 0.62rem; font-weight: 700;
}

/* ===== Cinematic scrub ===== */
.cinematic { position: relative; height: 520vh; background: var(--cream-deep); }
.cinematic .sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.stage {
  position: relative; height: 100%;
  width: min(100vw, calc(100vh * 0.5578), calc(100svh * 0.5578));
  overflow: hidden;
  box-shadow: 0 0 80px rgba(43, 36, 27, 0.18);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(246, 241, 234, 0.18) 0%,
    rgba(246, 241, 234, 0) 30%,
    rgba(246, 241, 234, 0) 55%,
    rgba(43, 36, 27, 0.18) 100%
  );
}

/* ===== Steps ===== */
.step-panel { position: absolute; inset: 0; pointer-events: none; }
.step {
  position: absolute; left: 0; right: 0; bottom: max(7vh, 56px);
  padding: 0 clamp(1.2rem, 6vw, 2.6rem);
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.step.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.step-tag {
  display: inline-block; margin-bottom: 0.8rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.26em;
  color: var(--gold); text-shadow: 0 1px 8px rgba(246, 241, 234, 0.8);
}
.step h1, .step h2 {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(2.3rem, 9.5vw, 3.4rem); line-height: 1.04; letter-spacing: 0.01em;
  text-shadow: 0 1px 14px rgba(246, 241, 234, 0.75);
}
.step p {
  max-width: 30ch; margin-top: 0.9rem;
  color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; font-weight: 500;
  text-shadow: 0 1px 10px rgba(246, 241, 234, 0.8);
}
.step-actions { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--cream);
  padding: 0.95rem 1.7rem; font-family: var(--sans);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }

/* ===== Shop layer (hotspots over the final frame) ===== */
.shop-layer { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
body.shop-on .shop-layer { opacity: 1; pointer-events: auto; }
.shop-hint {
  position: absolute; top: max(11vh, 86px); left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(43, 36, 27, 0.78); color: var(--cream);
  border-radius: 999px; padding: 0.55rem 1.1rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hs {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(246, 241, 234, 0.32);
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.hs::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 0 2px rgba(246, 241, 234, 0.9);
}
.hs::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(201, 167, 107, 0.85);
  animation: hs-pulse 2s ease-out infinite;
}
@keyframes hs-pulse {
  0% { transform: scale(0.7); opacity: 1; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ===== Product sheet ===== */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(43, 36, 27, 0.4);
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 250;
  width: min(100%, 560px); transform: translate(-50%, 110%);
  display: flex; gap: 1rem; align-items: stretch;
  background: var(--cream); border-radius: 22px 22px 0 0;
  padding: 1.2rem; box-shadow: 0 -18px 60px rgba(43, 36, 27, 0.3);
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1);
}
body.sheet-open .sheet { transform: translate(-50%, 0); }
body.sheet-open .sheet-scrim { opacity: 1; visibility: visible; }
.sheet-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(43, 36, 27, 0.08); color: var(--ink);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.sheet-thumb {
  flex: none; width: 116px; border-radius: 14px;
  background-color: #e7dfd2; background-repeat: no-repeat;
  border: 1px solid rgba(43, 36, 27, 0.08);
}
.sheet-body { flex: 1; min-width: 0; padding: 0.2rem 0; }
.sheet-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.24em; color: var(--gold); }
.sheet h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0.25rem 0 0.35rem; }
.sheet-desc { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.5; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.9rem; }
.sheet-price { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.sheet-add { padding: 0.8rem 1.2rem; font-size: 0.74rem; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 80px); opacity: 0;
  background: var(--ink); color: var(--cream);
  border-radius: 999px; padding: 0.75rem 1.4rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  transition: transform 0.4s ease, opacity 0.4s ease; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ===== Progress / hint / footer ===== */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(43, 36, 27, 0.1); }
.progress-fill { width: 0%; height: 100%; background: var(--gold); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.3em; color: var(--ink-soft);
  transition: opacity 0.4s ease; pointer-events: none; white-space: nowrap;
}
.footer {
  padding: 1.6rem; text-align: center;
  font-size: 0.78rem; color: var(--ink-soft); background: var(--cream);
}
.footer a { color: var(--gold); font-weight: 700; text-decoration: none; }

/* ===== Desktop polish ===== */
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .step { bottom: 12vh; }
  .step p { max-width: 36ch; }
}
