/* ============================================================
   The Bodhi Tree — Cinematic Dark Design System
   Pure dark · Immersive scroll · Frosted glass
   ============================================================ */

/* ─── Custom properties ─────────────────────────────────────── */
:root {
  /* Palette */
  --ink:          #040404;
  --surface:      #0d0d0d;
  --lift:         #181818;
  --text:         #f0ece4;
  --text-dim:     rgba(240, 236, 228, 0.48);
  --text-ghost:   rgba(240, 236, 228, 0.22);
  --sand:         #c8b49a;
  --sand-lt:      #e0d5c8;
  --sand-dim:     rgba(200, 180, 154, 0.25);

  /* Glass */
  --glass-fill:   rgba(255, 255, 255, 0.04);
  --glass-dark:   rgba(4, 4, 4, 0.62);
  --glass-border: rgba(255, 255, 255, 0.09);
  --blur:         28px;

  /* Typography */
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Space Grotesk', system-ui, sans-serif;

  /* Layout */
  --nav-h:        68px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
}

body.bodhi-dark {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Immersive homepage — JS locks scroll, scenes are fixed layers */
body.page-immersive {
  overflow: hidden;
  height: 100vh;
}

/* On immersive pages hide the brand text; only keep glass pill nav + actions */
body.page-immersive .bodhi-brand {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ─── Navbar ────────────────────────────────────────────────── */
.bodhi-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.45s ease, border-color 0.45s ease;
}

/* Nav never gets a full-width dark bar — links float */
body:not(.page-immersive) .bodhi-nav,
.bodhi-nav.nav-opaque {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent !important;
}

/* Brand */
.bodhi-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text) !important;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Pill nav group */
.nav-pill-group {
  display: flex;
  gap: 0.2rem;
  background: rgba(4, 4, 4, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.3rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-pill-link {
  display: block;
  padding: 0.38rem 1rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  border-radius: 50px;
  transition: all 0.25s ease;
}

.nav-pill-link:hover,
.nav-pill-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* Nav right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
  background: rgba(4, 4, 4, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-dim);
  font-size: 1.15rem;
  text-decoration: none;
  transition: color 0.25s;
}
.nav-cart-btn:hover { color: var(--text); }

#cart-badge {
  position: absolute;
  top: -7px;
  right: -11px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-pill-group { display: none !important; }
  .nav-burger { display: flex; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: rgba(4, 4, 4, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-link {
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 4.5rem);
  font-weight: 300;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  line-height: 1;
}
.mobile-menu-link:hover { color: var(--text); }

/* ─── Scene (full-screen experience) ────────────────────────── */
.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Video background */
.scene-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.scene-video video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Image fallback inside scene — must share the same stacking layer as video */
.scene-video img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Gradient fallback when no video */
.scene-video::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--scene-fallback, radial-gradient(ellipse at 50% 60%, #111 0%, #040404 80%));
}

/* Per-experience fallback gradients */
#scene-landing      .scene-video::before { background: radial-gradient(ellipse at 40% 60%, #0a1020 0%, #040404 75%); }
.scene-experience   .scene-video::before { background: radial-gradient(ellipse at 50% 60%, #0d0d1a 0%, #040404 80%); }

/* Overlay vignette on top of video */
.scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(4, 4, 4, 0.72) 0%,
    rgba(4, 4, 4, 0.38) 55%,
    rgba(4, 4, 4, 0.55) 100%
  );
}

/* Scene content */
.scene-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4rem;
  padding-top: var(--nav-h);
}

/* ─── Landing Scene ─────────────────────────────────────────── */
.scene-landing .scene-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-top: 0;
}

.landing-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 1.5rem;
}

.landing-title {
  font-family: var(--serif);
  font-size: clamp(5.5rem, 15vw, 13rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.landing-sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 3rem;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  z-index: 3;
}
.scroll-cue-text {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-ghost);
}
.scroll-cue-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--text-ghost) 0%, transparent 100%);
  animation: lineGrow 2.2s ease-in-out infinite;
}
@keyframes lineGrow {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50%       { transform: scaleY(1.25); opacity: 0.85; }
}

/* ─── Experience scene content ──────────────────────────────── */
.experience-inner { max-width: 720px; }

.experience-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 0.9rem;
}

.experience-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 10vw, 9.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 2rem;
}

.experience-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 440px;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.experience-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 2.2rem;
}
.experience-currency {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.experience-price {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.02em;
}

.experience-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scene index number (background) */
.scene-num {
  position: absolute;
  right: 4rem;
  bottom: 2.5rem;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(240, 236, 228, 0.04);
  user-select: none;
  pointer-events: none;
}

/* ─── Scene progress dots (right side) ──────────────────────── */
.scene-progress {
  position: fixed;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9800;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
body.page-immersive .scene-progress { opacity: 1; pointer-events: all; }

.scene-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-ghost);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s ease;
}
.scene-dot.active {
  background: var(--text);
  transform: scale(1.7);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-cinematic {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.88rem 2.2rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--text);
  border: none;
  border-radius: 3px;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}
.btn-cinematic:hover {
  background: var(--sand-lt);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(240, 236, 228, 0.14);
}

.btn-cinematic-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.84rem 2.1rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cinematic-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

/* Legacy .btn-bodhi — keep working for other pages */
.btn-bodhi {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--text);
  border: none;
  border-radius: 3px;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.btn-bodhi:hover {
  background: var(--sand-lt);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(240, 236, 228, 0.12);
}

.btn-bodhi-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--text);
  border: none;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-bodhi-sm:hover {
  background: var(--sand-lt);
  transform: translateY(-1px);
}
.btn-bodhi-sm:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.btn-bodhi-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.btn-bodhi-outline:hover {
  border-color: var(--text);
  color: var(--text);
}

/* ─── Glass Cards ───────────────────────────────────────────── */
.glass-card {
  background: var(--glass-fill);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.glass-card-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.glass-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.glass-card-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.glass-card-text {
  font-size: 0.84rem;
  color: var(--text-dim);
  flex-grow: 1;
  line-height: 1.65;
}
.glass-price {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sand);
}

/* ─── Featured / listing sections ──────────────────────────── */
.section-featured {
  padding: 7rem 0;
  background: var(--ink);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--text);
}
.section-header .text-muted { color: var(--text-dim) !important; }

/* Product / bundle pages header area */
.page-section-header {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
}
.page-section-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--text);
  line-height: 0.95;
  margin-bottom: 1rem;
}
.page-section-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── Bundle Hero (detail page) ─────────────────────────────── */
.bundle-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.bundle-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bundle-hero-bg video,
.bundle-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bundle-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(4, 4, 4, 0.9) 0%,
    rgba(4, 4, 4, 0.6) 50%,
    rgba(4, 4, 4, 0.3) 100%
  );
}
.bundle-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 8rem 2rem 4rem 4rem;
}
.bundle-hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  color: var(--text);
  line-height: 0.92;
  margin-bottom: 1.5rem;
}
.bundle-hero-desc {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.88;
  margin-bottom: 1.5rem;
}
.bundle-hero-price {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 1.5rem;
}
.bundle-savings {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.bundle-savings .badge {
  background: rgba(239, 68, 68, 0.65) !important;
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
}
.experience-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  padding: 0.32rem 0.9rem;
  margin-bottom: 1.5rem;
  background: var(--glass-fill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ─── Bundle product rows ───────────────────────────────────── */
.bundle-products-section {
  padding: 7rem 0;
  background: var(--ink);
}
.bundle-product-row {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.bundle-product-row > * { flex: 1; min-width: 0; }
.bundle-product-row:last-child { border-bottom: none; }
.bundle-product-row.reverse { flex-direction: row-reverse; }
.bundle-product-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1;
}
.bundle-product-info { padding: 1rem 0; }
.bundle-product-slug {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 0.75rem;
}
.bundle-product-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.bundle-product-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 440px;
}
.bundle-product-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sand);
  margin-top: 1.25rem;
}

/* ─── Related bundles ───────────────────────────────────────── */
.related-section {
  padding: 7rem 0;
  background: var(--surface);
}
.related-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-bottom: 3.5rem;
}
.related-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.related-card:hover { transform: scale(1.03); }
.related-card img { width: 100%; height: 100%; object-fit: cover; }
.related-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 4, 4, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.related-card-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.related-card-price {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--sand);
  font-weight: 600;
}

/* ─── Footer ────────────────────────────────────────────────── */
.bodhi-footer {
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  padding: 3.5rem 0;
}
.footer-link:hover { color: var(--sand) !important; }
body.page-immersive .bodhi-footer { display: none; }

/* ─── Flash messages (fixed overlay below nav, no layout gap) ─ */
.flash-container {
  position: fixed;
  top: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100vw - 2rem));
  z-index: 9500;
  padding: 0.75rem 0 0;
  pointer-events: none;
}
.flash-container .bodhi-alert {
  pointer-events: all;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* ─── Cart toast notification ───────────────────────────────── */
#cart-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9600;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--sand);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-size: 0.85rem;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#cart-toast.show {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
#cart-toast .toast-icon {
  color: var(--sand);
  margin-right: 0.5rem;
}

/* ─── Auth pages ─────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--glass-fill);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
}
.auth-title {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ─── Cart / Checkout ───────────────────────────────────────── */
.page-padded {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
  min-height: 100vh;
}

/* Bootstrap overrides for dark theme */
.table { color: var(--text); }
.table-dark { background: var(--surface); }
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
  color: var(--text);
}
.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
  box-shadow: none;
}
.form-label { color: var(--text-dim); font-size: 0.85rem; letter-spacing: 0.04em; }
.dropdown-menu-dark { background: var(--lift); border-color: var(--glass-border); }

/* ─── Utility ───────────────────────────────────────────────── */
.text-sand   { color: var(--sand) !important; }
.text-muted  { color: var(--text-dim) !important; }
.navbar .badge { font-size: 0.65rem; }
.table th { white-space: nowrap; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { opacity: 1; }

/* Legacy product/bundle card hover */
.product-card, .bundle-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover, .bundle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
.product-img { height: 220px; object-fit: cover; width: 100%; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 992px) {
  .bundle-product-row,
  .bundle-product-row.reverse { flex-direction: column; }
  .bundle-product-image img   { max-width: 100%; }
  .scene-content              { padding: 0 1.5rem; padding-top: var(--nav-h); }
  .scene-landing .scene-content { padding-top: 0; }
  .bundle-hero-content        { padding: 6rem 1.5rem 3rem; }
  .bodhi-nav                  { padding: 0 1.5rem; }
  .scroll-cue, .scene-num     { display: none; }
}
@media (max-width: 576px) {
  .experience-title  { font-size: clamp(2.8rem, 16vw, 5rem); }
  .landing-title     { font-size: clamp(4rem, 18vw, 7rem); }
  .experience-cta    { flex-direction: column; align-items: flex-start; }
  .landing-actions   { flex-direction: column; align-items: flex-start; }
  .scene-content     { padding: 0 1.2rem; }
  .scene-landing .scene-content { padding-top: 0; }
}

/* ─── Loading Screen ────────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.loading-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-inner {
  text-align: center;
  perspective: 600px;
}
.loading-ornament {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--sand), transparent);
  margin: 0 auto 2rem;
  opacity: 0.5;
}
.loading-brand {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}
.loading-tagline {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 3rem;
}
.loading-bar {
  width: 140px;
  height: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  margin: 0 auto;
  overflow: hidden;
  transform-origin: left center;
}
.loading-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sand), var(--sand-lt));
}
.loading-counter {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-ghost);
  margin-top: 0.8rem;
  min-height: 1.2em;
}

/* ─── Audio Mute Toggle ──────────────────────────────────────── */
.audio-mute-btn {
  display: none; /* JS shows on immersive pages */
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 2000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(4,4,4,0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-ghost);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.audio-mute-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
  background: rgba(4,4,4,0.85);
}

/* ─── Age Verification Gate ─────────────────────────────────── */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 50000;
  background: rgba(4, 4, 4, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popupFadeIn 0.5s ease;
}
.age-gate-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: popupSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.age-gate-icon {
  font-size: 3rem;
  color: var(--sand);
  margin-bottom: 1.2rem;
}
.age-gate-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.age-gate-text {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.age-gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.age-gate-deny {
  font-size: 0.82rem;
  color: var(--text-ghost);
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.age-gate-deny a {
  color: var(--text-ghost);
  text-decoration: underline;
  cursor: pointer;
}
.age-gate-deny a:hover {
  color: var(--text-dim);
}

/* ─── Email Signup Popup ────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 4, 4, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popupFadeIn 0.4s ease;
}
.popup-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  position: relative;
  text-align: center;
  animation: popupSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.popup-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-ghost);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.popup-close:hover { color: var(--text); }
.popup-icon {
  font-size: 2.5rem;
  color: var(--sand);
  margin-bottom: 1rem;
}
.popup-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.popup-text {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.popup-form .form-control {
  text-align: center;
}
.popup-disclaimer {
  font-size: 0.7rem;
  color: var(--text-ghost);
  margin-top: 1rem;
  margin-bottom: 0;
}
@keyframes popupFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Cookie Consent Banner ─────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.2rem 2rem;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  animation: cookieSlideUp 0.5s ease;
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-banner-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
  min-width: 280px;
  line-height: 1.6;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ─── Footer heading ────────────────────────────────────────── */
.footer-heading {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 0.5rem;
}

/* ─── Admin Dark Theme Override ─────────────────────────────── */
body.admin-panel {
  background: var(--ink) !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
}
.admin-panel .navbar,
.admin-panel .navbar-default,
.admin-panel .navbar-static-top {
  background: rgba(13, 13, 13, 0.92) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: none !important;
}
.admin-panel .navbar-default .navbar-brand,
.admin-panel .navbar-default .navbar-nav > li > a,
.admin-panel .navbar a {
  color: var(--text-dim) !important;
}
.admin-panel .navbar-default .navbar-brand:hover,
.admin-panel .navbar-default .navbar-nav > li > a:hover,
.admin-panel .navbar a:hover {
  color: var(--text) !important;
}
.admin-panel .navbar-default .navbar-nav > .active > a,
.admin-panel .navbar-default .navbar-nav > .open > a {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
}
.admin-panel .container-fluid,
.admin-panel .container {
  color: var(--text);
}
.admin-panel h1, .admin-panel h2, .admin-panel h3,
.admin-panel h4, .admin-panel h5, .admin-panel h6 {
  color: var(--text) !important;
  font-family: var(--serif) !important;
}
.admin-panel .card,
.admin-panel .panel,
.admin-panel .well {
  background: var(--glass-fill) !important;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.admin-panel .card-header,
.admin-panel .panel-heading {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  color: var(--text) !important;
}
.admin-panel .card-body,
.admin-panel .panel-body {
  background: transparent !important;
  color: var(--text-dim) !important;
}
.admin-panel .card.text-white {
  border: 1px solid var(--glass-border) !important;
}
.admin-panel .card.bg-primary { background: rgba(99, 102, 241, 0.2) !important; }
.admin-panel .card.bg-warning { background: rgba(234, 179, 8, 0.2) !important; }
.admin-panel .card.bg-success { background: rgba(34, 197, 94, 0.2) !important; }
.admin-panel .card.bg-info    { background: rgba(6, 182, 212, 0.2) !important; }
.admin-panel .card.bg-danger  { background: rgba(239, 68, 68, 0.2) !important; }
.admin-panel .card.bg-secondary { background: rgba(148, 163, 184, 0.15) !important; }
.admin-panel .card.border-primary { border-color: rgba(99, 102, 241, 0.4) !important; }
.admin-panel .card.border-warning { border-color: rgba(234, 179, 8, 0.4) !important; }
.admin-panel .card.border-success { border-color: rgba(34, 197, 94, 0.4) !important; }
.admin-panel .card.border-info    { border-color: rgba(6, 182, 212, 0.4) !important; }
.admin-panel .card.border-danger  { border-color: rgba(239, 68, 68, 0.4) !important; }
.admin-panel .table {
  color: var(--text) !important;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border) !important;
}
.admin-panel .table thead th,
.admin-panel .table-light th {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-dim) !important;
  border-color: var(--glass-border) !important;
}
.admin-panel .table td {
  border-color: var(--glass-border) !important;
  color: var(--text-dim) !important;
}
.admin-panel .table-hover > tbody > tr:hover > td,
.admin-panel .table-hover > tbody > tr:hover > th {
  background: rgba(255, 255, 255, 0.04) !important;
}
.admin-panel .btn-default,
.admin-panel .btn-secondary {
  background: var(--glass-fill) !important;
  border-color: var(--glass-border) !important;
  color: var(--text-dim) !important;
}
.admin-panel .btn-default:hover,
.admin-panel .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text) !important;
}
.admin-panel .btn-primary {
  background: rgba(200, 180, 154, 0.25) !important;
  border-color: var(--sand-dim) !important;
  color: var(--text) !important;
}
.admin-panel .btn-primary:hover {
  background: rgba(200, 180, 154, 0.4) !important;
}
.admin-panel .btn-danger {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
}
.admin-panel .btn-success {
  background: rgba(34, 197, 94, 0.25) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #86efac !important;
}
.admin-panel .form-control,
.admin-panel .form-select,
.admin-panel select,
.admin-panel input[type="text"],
.admin-panel input[type="number"],
.admin-panel input[type="email"],
.admin-panel input[type="date"],
.admin-panel input[type="password"],
.admin-panel textarea {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--glass-border) !important;
  color: var(--text) !important;
}
.admin-panel .form-control:focus,
.admin-panel .form-select:focus,
.admin-panel select:focus,
.admin-panel input:focus,
.admin-panel textarea:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.admin-panel .form-label,
.admin-panel label {
  color: var(--text-dim) !important;
}
.admin-panel a { color: var(--sand); }
.admin-panel a:hover { color: var(--sand-lt); }
.admin-panel .breadcrumb { background: transparent !important; }
.admin-panel .breadcrumb-item + .breadcrumb-item::before { color: var(--text-ghost); }
.admin-panel .breadcrumb a { color: var(--text-dim); }
.admin-panel .alert-info {
  background: rgba(6, 182, 212, 0.1) !important;
  border-color: rgba(6, 182, 212, 0.2) !important;
  color: var(--text-dim) !important;
}
.admin-panel .pagination > li > a,
.admin-panel .pagination > li > span,
.admin-panel .page-link {
  background: var(--glass-fill) !important;
  border-color: var(--glass-border) !important;
  color: var(--text-dim) !important;
}
.admin-panel .pagination > .active > a,
.admin-panel .pagination > .active > span,
.admin-panel .page-item.active .page-link {
  background: rgba(200, 180, 154, 0.3) !important;
  border-color: var(--sand-dim) !important;
  color: var(--text) !important;
}
.admin-panel .dropdown-menu {
  background: var(--lift) !important;
  border-color: var(--glass-border) !important;
}
.admin-panel .dropdown-menu > li > a,
.admin-panel .dropdown-item {
  color: var(--text-dim) !important;
}
.admin-panel .dropdown-menu > li > a:hover,
.admin-panel .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
}
.admin-panel .modal-content {
  background: var(--surface) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text) !important;
}
.admin-panel .modal-header {
  border-bottom-color: var(--glass-border) !important;
}
.admin-panel .modal-footer {
  border-top-color: var(--glass-border) !important;
}
.admin-panel .text-muted { color: var(--text-dim) !important; }
.admin-panel .text-primary { color: var(--sand) !important; }
.admin-panel .text-success { color: #86efac !important; }
.admin-panel .text-warning { color: #fde047 !important; }
.admin-panel .text-danger  { color: #fca5a5 !important; }
.admin-panel .text-info    { color: #67e8f9 !important; }
.admin-panel p, .admin-panel small { color: var(--text-dim); }
.admin-panel strong { color: var(--text); }

/* ─── Store Page ─────────────────────────────────────────────── */

/* Hero */
.store-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 5rem) 4rem 4rem;
  background: var(--ink);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.store-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 60%,
    rgba(200,180,154,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.store-hero-inner { position: relative; z-index: 1; }
.store-hero-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 1.2rem;
}
.store-hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 300;
  color: var(--text);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  will-change: transform;
}
.store-hero-sub {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  max-width: 440px;
  line-height: 1.7;
}
.store-hero-line {
  position: absolute;
  bottom: 0;
  left: 4rem;
  right: 4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* Filter bar */
.store-filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 500;
  padding: 1rem 4rem;
  background: rgba(4,4,4,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.store-filter-bar.is-stuck {
  border-bottom-color: var(--glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.store-filter-inner {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.store-filter-pill {
  display: inline-block;
  padding: 0.38rem 1rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.store-filter-pill:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}
.store-filter-pill.active {
  color: var(--sand);
  border-color: var(--sand-dim);
  background: rgba(200,180,154,0.06);
}

/* Body */
.store-body {
  padding: 4rem 4rem 0;
  background: var(--ink);
}

/* Products area wrapper — contains stacking contexts so items stay below filter bar */
#store-products-area {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/* Editorial grid — first block */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.store-grid-uniform {
  grid-template-columns: repeat(3, 1fr);
}
.store-item-wide {
  grid-column: span 2;
}

/* Product item */
.store-item {
  position: relative;
}
.store-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.store-item-link:hover { color: inherit; }
.store-item-media {
  position: relative;
  overflow: hidden;
  background: var(--lift);
  aspect-ratio: 3/4;
}
.store-item-wide .store-item-media { aspect-ratio: 16/10; }
.store-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.store-item-link:hover .store-item-img { transform: scale(1.04); }
.store-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,4,4,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.store-item-link:hover .store-item-overlay { opacity: 1; }
.store-item-cta {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
}
.store-item-meta {
  padding: 0.9rem 0 0;
}
.store-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}
.store-item-cat {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-ghost);
}
.store-item-price {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sand);
}
.store-item-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.store-add-form { margin-top: 0.6rem; }
.store-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}
.store-add-btn:hover {
  background: rgba(200,180,154,0.15);
  border-color: var(--sand-dim);
  color: var(--sand);
}
.store-sold-out {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-ghost);
  border: 1px solid var(--glass-border);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

/* Brand wisdom interstitials */
.store-wisdom {
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 4rem;
}
.store-wisdom-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin-bottom: 2.5rem;
  transform-origin: center;
}
.store-wisdom-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.35;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.01em;
}

/* Editorial close */
.store-editorial-close {
  padding: 7rem 4rem;
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}
.store-editorial-text {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

/* Empty state */
.store-empty {
  text-align: center;
  padding: 8rem 0;
}
.store-empty p {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text-ghost);
  font-weight: 300;
}

/* Store page responsive */
@media (max-width: 992px) {
  .store-hero { padding: calc(var(--nav-h) + 3rem) 2rem 3rem; }
  .store-filter-bar { padding: 0.8rem 2rem; }
  .store-body { padding: 2.5rem 2rem 0; }
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .store-item-wide { grid-column: span 2; }
  .store-editorial-close { padding: 4rem 2rem; }
}
@media (max-width: 576px) {
  .store-hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 2.5rem; }
  .store-filter-bar { padding: 0.7rem 1.5rem; }
  .store-body { padding: 1.5rem 1rem 0; }
  .store-grid { grid-template-columns: 1fr; }
  .store-item-wide { grid-column: span 1; }
  .store-wisdom { padding: 3rem 1rem; }
  .store-editorial-close { padding: 3rem 1.5rem; }
}

/* ============================================================
   AI Magic Orb
   ============================================================ */
.ai-orb-btn {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 9800;
  width: 52px;
  height: 52px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.ai-orb-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,180,154,0.35) 0%, transparent 70%);
  animation: orb-pulse 3s ease-in-out infinite;
  pointer-events: none;
}
.ai-orb-core {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(135deg,
    rgba(200,180,154,0.25) 0%,
    rgba(200,180,154,0.08) 60%,
    rgba(4,4,4,0.5) 100%);
  border: 1px solid rgba(200,180,154,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  font-size: 1.15rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 18px rgba(200,180,154,0.2), inset 0 0 12px rgba(200,180,154,0.08);
}
.ai-orb-btn:hover .ai-orb-core {
  box-shadow: 0 0 32px rgba(200,180,154,0.45), inset 0 0 18px rgba(200,180,154,0.14);
}
@keyframes orb-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* ── AI Chat Popup ──────────────────────────────────────────── */
.ai-chat-overlay {
  position: fixed;
  bottom: calc(5rem + 64px);
  right: 1.5rem;
  z-index: 9850;
  width: min(360px, calc(100vw - 2rem));
}
.ai-chat-card {
  background: rgba(13,13,13,0.96);
  border: 1px solid rgba(200,180,154,0.2);
  border-radius: 16px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.65), 0 0 40px rgba(200,180,154,0.08);
  display: flex;
  flex-direction: column;
  max-height: min(520px, calc(100vh - 14rem));
}
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ai-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(135deg, rgba(200,180,154,0.3) 0%, rgba(200,180,154,0.05) 100%);
  border: 1px solid rgba(200,180,154,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.ai-chat-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.ai-chat-status {
  font-size: 0.68rem;
  color: var(--text-ghost);
  letter-spacing: 0.05em;
}
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,180,154,0.15) transparent;
}
.ai-chat-msg {
  max-width: 86%;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
}
.ai-chat-msg p { margin: 0; }
.ai-chat-msg--bot {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-dim);
  align-self: flex-start;
  border-radius: 4px 12px 12px 12px;
}
.ai-chat-msg--user {
  background: rgba(200,180,154,0.14);
  border: 1px solid rgba(200,180,154,0.2);
  color: var(--text);
  align-self: flex-end;
  border-radius: 12px 4px 12px 12px;
}
.ai-chat-msg--typing {
  color: var(--text-ghost);
  font-style: italic;
}
.ai-chat-input-wrap {
  display: flex;
  gap: 0;
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.ai-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-size: 0.83rem;
  font-family: var(--sans);
  outline: none;
}
.ai-chat-input::placeholder { color: var(--text-ghost); }
.ai-chat-input:focus { border-color: rgba(200,180,154,0.35); }
.ai-chat-send {
  background: rgba(200,180,154,0.15);
  border: 1px solid rgba(200,180,154,0.3);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: var(--sand);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.ai-chat-send:hover { background: rgba(200,180,154,0.25); }

/* ============================================================
   Store — Featured Section
   ============================================================ */
.store-featured-section {
  padding: 4rem 0 3rem;
  background: var(--surface);
}
.store-featured-header {
  margin-bottom: 2.5rem;
  text-align: center;
}
.store-featured-eyebrow {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 0.5rem;
}
.store-featured-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--text);
  margin: 0;
}
.store-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.store-featured-item {
  position: relative;
}
.store-featured-media {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--lift);
}
.store-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.store-featured-item:hover .store-featured-media img { transform: scale(1.04); }
.store-sale-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.store-featured-meta {
  padding: 0.85rem 0.25rem 0.5rem;
}
.store-featured-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.3;
}
.store-featured-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--sand);
  font-family: var(--serif);
}
.store-original-price {
  text-decoration: line-through;
  color: var(--text-ghost);
  font-size: 0.76rem;
}
.store-sale-price { color: var(--sand); }

/* ── Marquee tagline ────────────────────────────────────────── */
.store-marquee-wrap {
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--ink);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.store-marquee {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  will-change: transform;
}
.store-marquee-text {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-ghost);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.store-marquee-sep {
  color: rgba(200,180,154,0.25);
  flex-shrink: 0;
}

/* ── Order status badges (profile page) ─────────────────────── */
.order-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
}
.order-status--pending   { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.order-status--paid      { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.25); }
.order-status--processing,
.order-status--waiting_supplier,
.order-status--in_progress,
.order-status--packed    { background: rgba(96,165,250,0.15); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.order-status--shipped,
.order-status--item_with_courier { background: rgba(167,139,250,0.15); color: #a78bfa; border: 1px solid rgba(167,139,250,0.25); }
.order-status--delivered { background: rgba(52,211,153,0.2);  color: #34d399; border: 1px solid rgba(52,211,153,0.35); }
.order-status--cancelled,
.order-status--refunded  { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.2); }

/* ── Admin table (dashboard outstanding orders) ─────────────── */
.adm-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.adm-table th {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  white-space: nowrap;
}
.adm-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.adm-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.adm-status--pending { background: rgba(251,191,36,0.18); color: #fbbf24; }
.adm-status--paid    { background: rgba(52,211,153,0.18); color: #34d399; }
.adm-status--processing,
.adm-status--waiting_supplier,
.adm-status--in_progress,
.adm-status--packed  { background: rgba(96,165,250,0.18); color: #60a5fa; }
.adm-btn-sm {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
  background: rgba(200,180,154,0.12);
  color: var(--sand, #c8b49a);
  border: 1px solid rgba(200,180,154,0.22);
  text-decoration: none;
  transition: background 0.2s;
}
.adm-btn-sm:hover { background: rgba(200,180,154,0.22); }

/* ── Mobile tweaks for featured section ─────────────────────── */
@media (max-width: 768px) {
  .store-featured-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .ai-chat-overlay { bottom: calc(5rem + 64px); right: 0.75rem; width: calc(100vw - 1.5rem); }
  .ai-orb-btn { right: 0.75rem; }
}
@media (max-width: 480px) {
  .store-featured-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ── Seasonal specials section (store page) ─────────────────── */
.store-seasonal-section {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, rgba(239,159,69,0.06) 0%, transparent 100%);
  border-top: 1px solid rgba(239,159,69,0.18);
  border-bottom: 1px solid var(--glass-border);
}
.store-seasonal-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ── Order history (profile page) ──────────────────────────── */
.order-summary-inner { transition: background 0.2s ease; }
.order-summary-inner:hover { background: rgba(200,180,154,0.06) !important; }
details.order-row[open] .order-summary-inner {
  border-color: rgba(200,180,154,0.25) !important;
}
.order-chevron { transition: transform 0.25s ease; display: inline-block; }
.order-detail { animation: fadeSlideIn 0.2s ease forwards; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ── hover-sand helper ──────────────────────────────────────── */
.hover-sand:hover { color: var(--sand) !important; }
