/* ==========================================================================
   CalmCore — Precision Bio-Formulas & 3D Molecular Experience
   ========================================================================== */

:root {
  --bg-alabaster: #efefec;
  --bg-warm: #e8e9e4;
  --ink-primary: #181b18;
  --ink-secondary: #5c6159;
  --ink-muted: #848980;
  --sage-500: #7c8e67;
  --sage-600: #687a54;
  --sage-400: #99ab84;
  --sage-200: rgba(var(--accent-rgb), 0.22);
  --glass-bg: rgba(255, 255, 255, 0.46);
  --glass-bg-strong: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 18px 48px rgba(24, 27, 24, 0.06);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto;
  background: var(--bg-alabaster);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-alabaster);
  overflow-x: hidden;
  min-height: 100vh;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-surface {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(24, 27, 24, 0.04);
}

.glass-card {
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   Persistent Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-primary);
}

.brand-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.brand-icon svg {
  width: 26px;
  height: 26px;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 4px 8px;
  gap: 2px;
}

.nav-link {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--ink-secondary);
  padding: 9px 16px;
  border-radius: 7px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.55);
}

.nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(24, 27, 24, 0.08);
}

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

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn:hover,
.signin-btn:hover {
  background: var(--glass-bg-strong);
  color: var(--ink-primary);
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sage-500);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.signin-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--ink-primary);
  transition: transform 0.2s ease, background 0.2s ease;
}

/* ==========================================================================
   Scroll Track & Sticky Stage
   ========================================================================== */
#scroll-track {
  position: relative;
  height: 520vh;
}

#viewport-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-alabaster);
}

.ambient-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.72) 0%, rgba(239, 239, 236, 0.2) 55%, rgba(226, 227, 221, 0.65) 100%);
  pointer-events: none;
}

#image-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vial-img,
.mol-img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  user-select: none;
  z-index: 2;
  will-change: transform, opacity;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle farthest-corner, #000 72%, transparent 100%);
  mask-image: radial-gradient(circle farthest-corner, #000 72%, transparent 100%);
}

.mol-img {
  filter: drop-shadow(0 10px 18px rgba(24, 27, 24, 0.08));
}

#webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#particle-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   Scene 5: Bio-Figure Layer & Hotspots
   ========================================================================== */
.bio-figure-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: translateX(48px) scale(1.03);
  mix-blend-mode: multiply;
  pointer-events: none;
  will-change: opacity, transform;
}

.bio-figure-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.bio-figure-img {
  width: min(82vw, 1180px);
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: contrast(1.02) saturate(0.95);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 22%, black 48%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 22%, black 48%);
}

.bio-mist {
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(to top, rgba(239, 239, 236, 0.96) 0%, rgba(239, 239, 236, 0.55) 45%, transparent 100%);
  pointer-events: none;
}

.hotspots-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
}

.hotspots-layer.active .hotspot {
  pointer-events: auto;
}

.hotspot {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.hotspot-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  animation: pulseRing 2.6s ease-out infinite;
}

.hotspot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease;
}

.hotspot:hover .hotspot-dot,
.hotspot-active .hotspot-dot {
  transform: scale(1.25);
}

.hotspot-callout {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  white-space: nowrap;
}

.callout-line {
  width: 38px;
  height: 1px;
  background: rgba(24, 27, 24, 0.25);
}

.callout-text {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(244, 244, 240, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.callout-title {
  color: var(--ink-secondary);
  font-weight: 500;
}

.callout-sub {
  color: var(--sage-600);
}

@keyframes pulseRing {
  0% {
    transform: scale(0.82);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.38);
    opacity: 0;
  }
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

/* ==========================================================================
   Scene Layers (Common)
   ========================================================================== */
.scene-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  will-change: opacity, transform;
}

.scene-layer.interactive {
  pointer-events: auto;
}

/* ==========================================================================
   Scene 1: Hero & Vial Carousel
   ========================================================================== */
#scene-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 96px 32px 36px;
  text-align: center;
}

.hero-top {
  max-width: 720px;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.1rem, 4.1vw, 3.35rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.vial-hit-zone {
  position: relative;
  width: min(86vw, 940px);
  height: 38vh;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  pointer-events: auto;
}

.vial-hit {
  height: 100%;
  border-radius: 18px;
  transition: background 0.25s ease;
}

.vial-hit:hover {
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
}

.hero-bottom {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inspect-trigger {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.22);
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  color: var(--sage-600);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  transition: transform 0.25s var(--ease-out-expo), background 0.25s ease;
}

.inspect-trigger svg {
  width: 15px;
  height: 15px;
}

.inspect-trigger:hover {
  transform: scale(1.1);
  background: rgba(var(--accent-rgb), 0.34);
}

.protocol-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.protocol-title {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.protocol-desc {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ==========================================================================
   Scene 3: Bio-Active Micro-Clusters
   ========================================================================== */
#scene-clusters {
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.5vw;
}

.clusters-left {
  max-width: 340px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  margin-bottom: 18px;
}

.section-body {
  font-size: 0.86rem;
  line-height: 1.62;
  color: var(--ink-secondary);
  margin-bottom: 28px;
}

.phase-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.clusters-right {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 190px;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.stat-value {
  font-size: clamp(1.9rem, 2.8vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

/* ==========================================================================
   Shared Progress Bar (Scenes 2-4)
   ========================================================================== */
.sequence-progress-wrap {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  width: min(56vw, 620px);
  z-index: 11;
  opacity: 0;
  pointer-events: none;
}

.sequence-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(24, 27, 24, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.sequence-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--sage-500);
  border-radius: 999px;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Scene 5: Cardiovascular Efficiency Dashboard
   ========================================================================== */
#scene-biometrics {
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 104px 48px 42px 6vw;
}

.biometrics-left {
  max-width: 540px;
  width: 100%;
  align-self: center;
}

.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
  margin-bottom: 22px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.back-btn:hover {
  transform: translateX(-2px);
  background: var(--glass-bg-strong);
}

.biometrics-title {
  margin-bottom: 26px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  border-radius: 16px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-out-expo), border-color 0.28s ease, box-shadow 0.28s ease;
}

.metric-card.highlighted,
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.65);
  box-shadow: 0 20px 44px rgba(var(--accent-rgb), 0.14);
}

.metric-name {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

.metric-value {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  margin-bottom: 14px;
}

.metric-bar {
  width: 100%;
  height: 6px;
  border-radius: 2px;
  background: rgba(24, 27, 24, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.metric-bar-fill {
  display: block;
  height: 100%;
  background: var(--sage-500);
  transition: width 0.6s var(--ease-out-expo);
}

.metric-status {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.metric-foot {
  font-size: 0.72rem;
  color: var(--ink-secondary);
}

/* Bottom-Right Floating Product Card */
.product-float {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  max-width: 330px;
}

.product-thumb {
  width: 54px;
  height: 68px;
  border-radius: 10px;
  background: rgba(235, 236, 231, 0.85);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mini-vial {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-vial-cap {
  width: 16px;
  height: 7px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #b8bab5, #eceee9, #a4a7a0);
}

.mini-vial-neck {
  width: 11px;
  height: 4px;
  background: rgba(255, 255, 255, 0.75);
}

.mini-vial-body {
  position: relative;
  width: 24px;
  height: 36px;
  border-radius: 5px 5px 4px 4px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(24, 27, 24, 0.14);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.mini-vial-liquid {
  position: absolute;
  inset: 6px 2px 2px;
  border-radius: 3px;
  background: rgba(141, 160, 119, 0.6);
}

.mini-vial-label {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 4.5px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  padding: 3px 1px;
  color: var(--ink-primary);
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-name {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.product-code {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-primary);
}

.add-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 27, 24, 0.08);
  display: grid;
  place-items: center;
  color: var(--ink-primary);
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.add-cart-btn svg {
  width: 16px;
  height: 16px;
}

.add-cart-btn:hover {
  background: var(--sage-500);
  color: #fff;
  transform: scale(1.06);
}

/* ==========================================================================
   Phase Rail (Right Edge)
   ========================================================================== */
.phase-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(24, 27, 24, 0.18);
  transition: transform 0.25s ease, background 0.25s ease;
}

.phase-dot.active {
  background: var(--sage-500);
  transform: scale(1.45);
}

/* ==========================================================================
   Modal Overlay
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 27, 24, 0.24);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-panel {
  width: min(92vw, 540px);
  border-radius: 20px;
  padding: 26px 28px;
  background: rgba(246, 246, 243, 0.92);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-secondary);
}

.modal-close:hover {
  background: rgba(24, 27, 24, 0.06);
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 27, 24, 0.06);
}

.modal-item-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-item-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-muted);
}

.modal-action-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--sage-500);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 500;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(24, 27, 24, 0.14);
  background: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 900px) {
  .site-header {
    padding: 14px 18px;
  }
  .nav-pill {
    display: none;
  }
  #scene-clusters {
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 24px 80px;
    text-align: left;
  }
  .clusters-right {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }
  #scene-biometrics {
    flex-direction: column;
    align-items: flex-start;
    padding: 88px 20px 24px;
    gap: 16px;
  }
  .product-float {
    align-self: flex-end;
  }
  .bio-figure-img {
    opacity: 0.45;
  }
}

/* ==========================================================================
   v2 — layout aligned with the reference video / webp frames
   ========================================================================== */

/* ---- Header: separate grey tiles like the reference ---- */
.nav-pill {
  background: none;
  border: none;
  box-shadow: none;
  gap: 8px;
  padding: 0;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  padding: 0 16px;
  height: 40px;
  border-radius: 6px;
  background: rgba(24, 27, 24, 0.07);
}
.nav-link:hover { background: rgba(24, 27, 24, 0.12); }
.nav-divider { display: none; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(24, 27, 24, 0.07);
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  color: var(--ink-primary);
}
.signin-btn {
  height: 40px;
  border-radius: 6px;
  background: #fff;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---- Hero ---- */
#scene-hero {
  display: block;
  padding: 0;
}
.hero-top {
  position: absolute;
  top: 13.5vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 900px);
  text-align: center;
  max-width: none;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-primary);
  margin-bottom: 1.6vh;
}
.hero-title {
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.vial-hit-zone {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 97.5vw;
  height: 38vh;
  transform: translate(-50%, -50%);
}
.inspect-trigger {
  position: absolute;
  left: 50%;
  top: 69.5%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  margin: 0;
  z-index: 5;
  pointer-events: auto;
  background: radial-gradient(circle at 35% 30%, var(--accent-light), var(--accent-dark));
  border: none;
  color: #fff;
  box-shadow: 0 8px 22px rgba(var(--accent-rgb), 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.3s var(--ease-out-expo);
}
.inspect-trigger::before {
  content: '';
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 70%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
  animation: haloPulse 3s ease-in-out infinite;
}
.inspect-trigger svg { width: 18px; height: 18px; }
.inspect-trigger:hover { transform: translate(-50%, -50%) scale(1.08); background: radial-gradient(circle at 35% 30%, var(--accent-light), var(--accent-dark)); }
@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-bottom {
  position: absolute;
  top: 79%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 560px);
  max-width: none;
  text-align: center;
  align-items: center;
}
.protocol-code { color: var(--ink-primary); margin-bottom: 1.2vh; }
.protocol-title {
  font-size: clamp(1.3rem, 1.7vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 1.6vh;
}
.protocol-desc { font-size: 0.8rem; color: var(--ink-muted); }

/* ---- Bio-Active Micro-Clusters ---- */
#scene-clusters {
  display: block;
  padding: 0;
}
.clusters-left {
  position: absolute;
  left: 19%;
  top: 33vh;
  transform: translateX(-50%);
  width: min(26vw, 380px);
  max-width: none;
  text-align: center;
}
.clusters-left .section-title {
  font-size: clamp(2.4rem, 3.6vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 4vh;
}
.clusters-left .section-body { font-size: 0.82rem; margin-bottom: 0; color: var(--ink-muted); }
.phase-tag {
  position: absolute;
  left: 50%;
  top: calc(72vh - 33vh);
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--ink-primary);
}
.clusters-right {
  position: absolute;
  left: 84%;
  top: 36vh;
  transform: translateX(-50%);
  min-width: 0;
  width: 18vw;
  text-align: center;
  align-items: center;
  gap: 5vh;
}
.stat-block { align-items: center; }
.stat-label { color: var(--ink-primary); }
.stat-value {
  font-size: clamp(2.4rem, 3.9vw, 4.4rem);
  letter-spacing: -0.05em;
}
.tracing-tag {
  position: absolute;
  top: calc(72vh - 36vh);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--sage-500);
  text-align: center;
}

/* Segmented progress bar like the reference */
.sequence-progress-wrap {
  width: 58vw;
  bottom: 9vh;
}
.sequence-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0;
  box-shadow: 0 0 0 0.5px rgba(24, 27, 24, 0.04);
}
.sequence-progress-fill { border-radius: 0; background: var(--sage-500); }

/* ---- Bio-figure geometry ---- */
.bio-figure-wrap {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 1376 / 768;
  display: block;
}
.bio-figure-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: initial;
}
.hotspots-layer {
  inset: auto;
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 1376 / 768;
}

/* Hotspots: green "+" discs, glass halo on the active one */
.hotspot { width: 30px; height: 30px; }
.hotspot-ring {
  width: 30px;
  height: 30px;
  background: rgba(var(--accent-rgb), 0.2);
  border: none;
}
.hotspot-dot {
  position: relative;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle at 35% 30%, var(--accent-light), var(--accent-dark));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.hotspot-dot::before,
.hotspot-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.hotspot-dot::before { width: 10px; height: 1.6px; }
.hotspot-dot::after { width: 1.6px; height: 10px; }
.hotspot-active .hotspot-ring {
  width: clamp(80px, 8vw, 120px);
  height: clamp(80px, 8vw, 120px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: none;
}
.hotspot-active .hotspot-dot {
  width: clamp(34px, 3.2vw, 46px);
  height: clamp(34px, 3.2vw, 46px);
  transform: none;
}
.hotspot-callout {
  right: auto;
  left: -52%;
  top: auto;
  bottom: calc(50% + 20px);
  transform: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.hotspot-callout .callout-text {
  background: none;
  backdrop-filter: none;
  padding: 0 0 6px;
  text-align: left;
  min-width: 150px;
  border-bottom: 1px solid rgba(24, 27, 24, 0.25);
}
.callout-title { color: var(--ink-muted); }
.callout-sub { color: var(--ink-primary); }
.callout-line {
  width: 1px;
  height: 46px;
  background: rgba(24, 27, 24, 0.25);
  transform: rotate(-38deg) translate(-4px, 14px);
  transform-origin: top;
}

/* ---- Final scene ---- */
#scene-biometrics {
  display: block;
  padding: 0;
}
.biometrics-left {
  position: absolute;
  left: 3vw;
  top: 13vh;
  max-width: none;
  width: 45vw;
}
.biometrics-head {
  display: flex;
  align-items: flex-start;
  gap: 2.6vw;
  margin-bottom: 4.5vh;
}
.back-btn {
  flex: none;
  width: 44px;
  height: 44px;
  margin: 1.4vh 0 0;
  border-radius: 7px;
  background: rgba(24, 27, 24, 0.07);
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  color: var(--ink-primary);
}
.biometrics-title {
  font-size: clamp(2.8rem, 5.6vw, 6.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 0;
}
.metrics-grid {
  gap: 1.8vh 1.4vw;
  height: 58vh;
  grid-template-rows: 1fr 1fr;
}
.metric-card {
  border-radius: 20px;
  padding: 2.4vh 1.5vw 2.2vh;
  justify-content: space-between;
}
.metric-name { font-size: clamp(0.8rem, 1.05vw, 1.05rem); color: var(--ink-primary); margin: 0; }
.metric-value {
  font-size: clamp(2.2rem, 3.8vw, 4.2rem);
  letter-spacing: -0.05em;
  margin: 0;
}
.metric-bar {
  height: 14px;
  border-radius: 1px;
  background: #fff;
  margin: 0;
}
.metric-status { color: var(--sage-500); font-size: 0.6rem; margin: 0; }
.metric-foot { font-size: clamp(0.8rem, 1.05vw, 1.05rem); color: var(--ink-muted); }

.product-float {
  position: absolute;
  right: 3vw;
  bottom: 5vh;
  width: min(31vw, 520px);
  max-width: none;
  padding: 1vh 1vh 1vh 1vh;
  gap: 1.4vw;
  border-radius: 24px;
  background: rgba(226, 222, 217, 0.62);
}
.product-thumb {
  width: clamp(80px, 11vh, 130px);
  height: clamp(80px, 11vh, 130px);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.product-thumb img {
  width: 150%;
  height: 150%;
  max-width: none;
  object-fit: contain;
  margin: -25%;
  mix-blend-mode: multiply;
}
.product-name { font-size: clamp(0.85rem, 1.15vw, 1.2rem); letter-spacing: -0.03em; margin-bottom: 0.6vh; }
.product-code { margin-bottom: 1.2vh; }
.product-price { font-size: clamp(1.2rem, 1.9vw, 2rem); letter-spacing: -0.04em; }
.add-cart-btn {
  align-self: flex-end;
  width: clamp(44px, 6.4vh, 60px);
  height: clamp(44px, 6.4vh, 60px);
  border-radius: 14px;
  background: #0c0e0c;
  color: #fff;
  border: none;
  margin: 0 0.6vh 0.6vh 0;
}
.add-cart-btn:hover { background: var(--sage-600); }

@media (max-width: 900px) {
  .nav-pill { display: none; }
  .biometrics-left { width: 92vw; top: 11vh; }
  .metrics-grid { height: auto; }
  .product-float { width: 90vw; right: 5vw; }
  .clusters-left { left: 50%; width: 80vw; }
  .clusters-right { left: 50%; top: 66vh; width: 80vw; }
}

/* ---- fixes ---- */
#scroll-track { overflow: clip; }
#viewport-stage { contain: paint; }
#image-stage { overflow: hidden; }

/* open vial: hide the floating cap and soften every edge */
.vial-open {
  -webkit-mask-image: linear-gradient(to bottom, transparent 26.5%, #000 31%), linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 26.5%, #000 31%), linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hotspot-callout .callout-text {
  background: rgba(244, 244, 240, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 6px 6px 0 0;
}
.biometrics-title { font-size: clamp(2.6rem, 5vw, 5.8rem); }

/* ==========================================================================
   v3 — theme per product, aligned hotspots, info cards, logo, product thumb
   ========================================================================== */
:root {
  --accent-rgb: 124, 142, 103;
  --accent-light: #a3b58c;
  --accent-dark: #6f8559;
  --stage-bg: #e9eae4;
}

.brand-icon { width: 30px; height: 30px; }
.brand-icon svg { width: 30px; height: 30px; }

/* background tint for the last section */
.tint-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.55), transparent 62%),
    var(--stage-bg);
  transition: background-color 0.6s ease;
}
.bio-mist {
  background: linear-gradient(to top, var(--stage-bg) 0%, color-mix(in srgb, var(--stage-bg) 55%, transparent) 45%, transparent 100%);
}
.bio-figure-img { filter: contrast(1.02) saturate(0.95) brightness(1.06); }

/* ---------- Hotspots: every ring is centred on its dot ---------- */
.hotspot {
  width: 44px;
  height: 44px;
  display: block;
  padding: 0;
}
.hotspot .hotspot-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: translate(-50%, -50%);
  animation: ringPulse 2.8s ease-out infinite;
}
.hotspot .hotspot-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, width 0.3s ease, height 0.3s ease;
}
.hotspot:hover .hotspot-dot { transform: translate(-50%, -50%) scale(1.12); }
.hotspot.hotspot-active .hotspot-ring {
  width: clamp(84px, 7.4vw, 112px);
  height: clamp(84px, 7.4vw, 112px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.14));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: none;
}
.hotspot.hotspot-active .hotspot-dot {
  width: clamp(36px, 3.1vw, 46px);
  height: clamp(36px, 3.1vw, 46px);
  transform: translate(-50%, -50%);
}
@keyframes ringPulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.9; }
  70%, 100% { transform: translate(-50%, -50%) scale(1.45); opacity: 0; }
}

/* callout: label → underline → diagonal leader into the ring */
.hotspot .hotspot-callout {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: 0;
  height: 0;
  display: none;
  transform: none;
  pointer-events: none;
}
.hotspot.hotspot-active:not(.card-open) .hotspot-callout { display: block; }
.hotspot .callout-text {
  position: absolute;
  right: 74px;
  bottom: 54px;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 7px 12px 7px 10px;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid rgba(24, 27, 24, 0.3);
  background: rgba(244, 244, 240, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
  white-space: nowrap;
}
.hotspot .callout-line {
  position: absolute;
  left: -74px;
  top: -54px;
  width: 46px;
  height: 1px;
  background: rgba(24, 27, 24, 0.3);
  transform-origin: 0 0;
  transform: rotate(37deg);
}

/* ---------- Info card opened by the + buttons ---------- */
.info-card {
  position: absolute;
  z-index: 40;
  width: 310px;
  padding: 20px 22px 18px;
  border-radius: 20px;
  background: rgba(247, 247, 244, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 60px rgba(24, 27, 24, 0.14);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out-expo);
}
.info-card.open { opacity: 1; transform: none; pointer-events: auto; }
.info-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.info-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}
.info-card-close {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-secondary);
  background: rgba(24, 27, 24, 0.06);
}
.info-card-close:hover { background: rgba(24, 27, 24, 0.12); }
.info-card-title { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-primary); }
.info-card-value {
  font-size: 2.6rem;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 2px 0 8px;
}
.info-card-status {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--sage-600);
  margin-bottom: 10px;
}
.info-card-desc { font-size: 0.78rem; line-height: 1.55; color: var(--ink-secondary); margin-bottom: 12px; }
.info-card-rows { border-top: 1px solid rgba(24, 27, 24, 0.08); }
.info-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(24, 27, 24, 0.07);
  font-size: 0.72rem;
}
.info-card-row span:first-child { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--ink-muted); }
.info-card-row span:last-child { color: var(--ink-primary); text-align: right; }
.info-card-add {
  width: 100%;
  margin-top: 14px;
  height: 38px;
  border-radius: 10px;
  background: #0c0e0c;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.info-card-add:hover { background: var(--sage-600); }

/* ---------- Product thumb: transparent cut-out, no white box ---------- */
.product-thumb {
  background: transparent;
  overflow: visible;
  width: clamp(70px, 10vh, 116px);
  height: clamp(92px, 13vh, 150px);
  display: grid;
  place-items: center;
  position: relative;
  margin: -1.2vh 0.4vw -1.2vh 0.6vw;
}
.product-thumb::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 1%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(24, 27, 24, 0.22), transparent 70%);
  filter: blur(3px);
  z-index: 0;
}
.product-thumb img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 8px 10px rgba(24, 27, 24, 0.12));
}
.product-float { align-items: center; }

/* ---- robust figure geometry on tall viewports (hotspots stay on the figure) ---- */
.bio-figure-wrap,
.hotspots-layer {
  height: min(100%, calc(125vw / 1.7917));
  top: auto;
  bottom: 0;
}
.bio-figure-img {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 22%, #000 48%), linear-gradient(to bottom, transparent 0%, #000 9%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 22%, #000 48%), linear-gradient(to bottom, transparent 0%, #000 9%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.biometrics-title { font-size: clamp(2.5rem, 4.7vw, 5.4rem); }

.inspect-trigger { transition: left 0.45s var(--ease-out-expo), transform 0.3s var(--ease-out-expo); }


/* ---- v4: dynamic vial hit-boxes + opaque reference-texture molecule cutouts ---- */
.vial-hit-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  display: block;
  pointer-events: none;
  z-index: 4;
}
.vial-hit {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 22px;
  cursor: pointer;
}
.inspect-trigger {
  left: 50% !important;
  z-index: 6;
}
.mol-img.has-alpha {
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 12px 24px rgba(24, 27, 24, 0.1));
}

/* ---- v5: Mobile carousel arrows, horizontal touch swipe & side vial peek ---- */
.carousel-arrow {
  display: none;
}

@media (max-width: 900px) {
  #scene-hero {
    touch-action: pan-y;
  }
  .hero-branch {
    width: 78px;
    top: 12vh;
    opacity: 0.28;
  }
  .hero-top {
    top: 11vh;
    width: 90vw;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7.6vw, 2.6rem);
    line-height: 1.08;
  }
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 8;
    pointer-events: auto;
    color: var(--ink-primary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px rgba(24, 27, 24, 0.1);
    transition: opacity 0.25s ease, transform 0.2s ease, background 0.2s ease;
  }
  .carousel-arrow svg {
    width: 18px;
    height: 18px;
  }
  .carousel-prev {
    left: 14px;
  }
  .carousel-next {
    right: 14px;
  }
  .carousel-arrow:active {
    transform: translateY(-50%) scale(0.92);
  }
  .carousel-arrow:disabled {
    opacity: 0.26;
    pointer-events: none;
  }
  .inspect-trigger {
    top: 66.5%;
    width: 46px;
    height: 46px;
  }
  .inspect-trigger::before {
    inset: -24px;
  }
  .hero-bottom {
    top: 76%;
    width: 88vw;
  }
  .protocol-desc {
    font-size: 0.75rem;
  }
  .phase-rail {
    top: auto;
    bottom: 14px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
  }
}

/* ==========================================================================
   v6 — Final.webp product card, hotspot hover hint, glassmorphic Scene 2
        & responsive Scene 5 hotspots (tablet + mobile)
   ========================================================================== */

/* 1. Product card thumbnail strictly framed inside white rounded box (final.webp) */
.product-float {
  padding: 10px 14px 10px 10px;
  gap: 14px;
  align-items: center;
}
.product-thumb {
  width: clamp(72px, 9.2vh, 96px);
  height: clamp(72px, 9.2vh, 96px);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(24, 27, 24, 0.04);
}
.product-thumb::after {
  display: none;
}
.product-thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0;
  filter: none;
}

/* 2. Hotspot hover hint: reveal callout on hover for any "+" button */
.hotspot:hover {
  z-index: 20;
}
.hotspot:not(.card-open):hover .hotspot-callout,
.hotspot.hotspot-active:not(.card-open) .hotspot-callout {
  display: block;
}
.hotspot:not(.card-open):hover .callout-text {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(24, 27, 24, 0.08);
}

/* 3. Scene 2 glassmorphic cards & Scene 5 responsive figure/hotspots (< desktop) */
@media (max-width: 1180px) {
  #scene-clusters {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 86px 20px 64px;
    gap: 14px;
  }
  .clusters-left {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(92vw, 480px);
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--glass-shadow);
    text-align: center;
  }
  .clusters-left .section-title {
    font-size: clamp(1.65rem, 4.8vw, 2.5rem);
    margin-bottom: 10px;
  }
  .clusters-left .section-body {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--ink-secondary);
    margin-bottom: 12px;
  }
  .phase-tag {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    display: block;
    font-size: 0.6rem;
    white-space: normal;
  }
  .clusters-right {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(92vw, 480px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--glass-shadow);
  }
  .stat-value {
    font-size: clamp(1.5rem, 4.4vw, 2.2rem);
  }
  .tracing-tag {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1 / -1;
    margin-top: 2px;
    white-space: normal;
  }
  .sequence-progress-wrap {
    width: min(86vw, 480px);
    bottom: 34px;
  }

  /* Tablet 901..1180: keep bio-figure + hotspots clear of the 2x2 cards */
  .biometrics-left {
    width: 46vw;
    top: 10.5vh;
  }
  .biometrics-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }
  .metrics-grid {
    height: auto;
    gap: 12px;
  }
  .metric-card {
    padding: 14px 16px;
  }
  .metric-value {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
  }
  .bio-figure-wrap,
  .hotspots-layer {
    height: min(84vh, calc(84vw / 1.7917));
    right: -4vw;
    bottom: 0;
  }
  .product-float {
    width: min(44vw, 420px);
    bottom: 3.5vh;
    right: 3vw;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .biometrics-left {
    width: 45vw;
    top: 9.5vh;
  }
  .biometrics-head {
    margin-bottom: 2.2vh;
  }
  .product-float {
    left: 3vw;
    right: auto;
    bottom: 4vh;
    width: 45vw;
    max-width: none;
  }
}

/* Mobile <= 900: clean vertical stack with dedicated figure + hotspots stage */
@media (max-width: 900px) {
  #scene-biometrics {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 66px 14px 36px;
    gap: 8px;
  }
  .biometrics-left {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }
  .biometrics-head {
    gap: 12px;
    margin-bottom: 10px;
    align-items: center;
  }
  .back-btn {
    width: 36px;
    height: 36px;
    margin: 0;
  }
  .biometrics-title {
    font-size: 1.65rem;
    line-height: 1.05;
  }
  .metrics-grid {
    height: auto;
    grid-template-rows: auto auto;
    gap: 8px;
  }
  .metric-card {
    padding: 10px 12px;
    border-radius: 14px;
    gap: 4px;
  }
  .metric-name {
    font-size: 0.72rem;
  }
  .metric-value {
    font-size: 1.32rem;
  }
  .metric-bar {
    height: 8px;
  }
  .metric-status {
    font-size: 0.5rem;
  }
  .metric-foot {
    font-size: 0.66rem;
  }
  /* Dedicated lower-middle stage for bio-figure + hotspots between cards and product-float */
  .bio-figure-wrap,
  .hotspots-layer {
    height: min(36vh, 300px);
    right: -4vw;
    bottom: 108px;
    top: auto;
  }
  .hotspot {
    width: 36px;
    height: 36px;
  }
  .hotspot .hotspot-dot {
    width: 22px;
    height: 22px;
  }
  .hotspot.hotspot-active .hotspot-ring {
    width: 60px;
    height: 60px;
  }
  .hotspot.hotspot-active .hotspot-dot {
    width: 28px;
    height: 28px;
  }
  .hotspot .callout-text {
    right: 34px;
    bottom: 28px;
    min-width: 120px;
    padding: 5px 8px;
    font-size: 0.55rem;
  }
  .hotspot .callout-line {
    left: -34px;
    top: -28px;
    width: 26px;
  }
  .product-float {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: auto;
    width: 100%;
    max-width: none;
    padding: 8px 10px 8px 8px;
    border-radius: 18px;
    z-index: 15;
  }
  .product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    padding: 4px;
  }
  .product-name {
    font-size: 0.8rem;
  }
  .product-price {
    font-size: 1.15rem;
  }
  .add-cart-btn {
    width: 42px;
    height: 42px;
    margin: 0;
  }
  .info-card {
    width: min(88vw, 310px);
    padding: 16px 18px;
    z-index: 45;
  }
}

/* ==========================================================================
   v7 — Mari in the Kitchen: Menu Palette, Bilingual Controls & Section 1 Catalog
   ========================================================================== */
:root {
  --bg-alabaster: #faf2e4;
  --bg-warm: #f3e5ce;
  --ink-primary: #3b1e10;
  --ink-secondary: #684632;
  --ink-muted: #8b6e59;
  --sage-500: #4b5716;
  --sage-600: #39430f;
  --sage-400: #6e7d28;
  --cranberry: #b81d24;
  --menu-sand: #efe2c6;
  --accent-rgb: 75, 87, 22;
  --accent-light: #6e7d28;
  --accent-dark: #39430f;
  --stage-bg: #faf2e4;
  --glass-bg: rgba(250, 242, 228, 0.72);
  --glass-bg-strong: rgba(255, 250, 242, 0.88);
  --glass-border: rgba(255, 255, 255, 0.82);
  --glass-shadow: 0 18px 48px rgba(59, 30, 16, 0.08);
}

#viewport-stage {
  background: var(--stage-bg);
  transition: background-color 0.55s ease;
}

.ambient-bg {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 252, 246, 0.82) 0%, rgba(var(--accent-rgb), 0.11) 46%, rgba(243, 229, 206, 0.72) 100%);
  transition: background 0.55s ease;
}

.site-header {
  padding: 16px 36px;
}

.brand-logo {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 50%;
  background: #faf4e8;
  box-shadow: 0 4px 16px rgba(59, 30, 16, 0.08);
  display: block;
  transition: transform 0.25s var(--ease-out-expo);
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}

.lang-btn {
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--sage-500);
  color: #fffaf2;
}

.signin-btn {
  background: var(--cranberry);
  color: #fffaf2;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(184, 29, 36, 0.22);
}

.signin-btn:hover {
  background: #9f171d;
  color: #fff;
}

/* Unified frosted navigation pill */
.nav-pill {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(59, 30, 16, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 4px 6px;
  gap: 2px;
}

.nav-link {
  background: transparent;
  border-radius: 999px;
  height: 34px;
  padding: 0 14px;
  color: var(--ink-secondary);
}

.nav-link:hover {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--ink-primary);
}

.icon-btn {
  background: rgba(255, 250, 242, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
}

#image-stage {
  z-index: 2;
}

/* Transparent studio cutout product photography, flavor auras & contact shadows */
.product-aura {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(14px);
  will-change: transform, opacity;
}

.product-ground-shadow {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(59, 30, 16, 0.36) 0%, rgba(59, 30, 16, 0.15) 50%, rgba(59, 30, 16, 0) 76%);
  filter: blur(6px);
  will-change: transform, opacity;
}

.hero-branch {
  position: absolute;
  top: 12.5vh;
  width: clamp(135px, 14.5vw, 220px);
  height: auto;
  color: #4b5716;
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-branch-left {
  left: 0;
}

.hero-branch-right {
  right: 0;
  transform: scaleX(-1);
}

.vial-img.product-photo {
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.split-left {
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
}

.split-right {
  clip-path: inset(0 0 0 50%);
  -webkit-clip-path: inset(0 0 0 50%);
}

.slice-beam {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  pointer-events: none;
  z-index: 7;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 250, 242, 0.96) 35%,
    rgba(217, 147, 22, 0.9) 52%,
    rgba(255, 250, 242, 0.96) 68%,
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(255, 250, 242, 0.95), 0 0 28px rgba(var(--accent-rgb), 0.55);
  transform-origin: center center;
  will-change: transform, opacity;
}

.cutaway-img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  user-select: none;
  object-fit: contain;
  pointer-events: none;
  will-change: transform, opacity;
}

.cutaway-img.cutaway-photo {
  object-fit: cover;
  object-position: center 62%;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 54%, rgba(0, 0, 0, 0.6) 72%, transparent 98%);
  mask-image: radial-gradient(circle, #000 54%, rgba(0, 0, 0, 0.6) 72%, transparent 98%);
}

#scene-clusters .section-title,
#scene-clusters .stat-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
}

.product-thumb {
  overflow: hidden;
  padding: 4px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(255, 250, 242, 0.96), var(--menu-sand));
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* Section 1 minimalist rhythm inspired by inicio.webp */
.phase-rail {
  display: none;
}

.hero-top {
  top: 10.5vh;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 3.8vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.eyebrow {
  color: var(--sage-500);
  font-weight: 500;
  margin-bottom: 1.1vh;
}

.inspect-trigger {
  top: 66.5%;
}

.inspect-trigger svg {
  width: 19px;
  height: 19px;
}

.hero-bottom {
  top: 75.5%;
  width: min(92vw, 560px);
}

.hero-meta-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-meta-row .protocol-code {
  margin-bottom: 0;
}

.new-flavor-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cranberry);
  color: #fffaf2;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.color-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
}

.color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage-500);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.protocol-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.protocol-desc {
  max-width: 520px;
  margin-bottom: 12px;
  color: var(--ink-secondary);
}

.hero-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.variant-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.variant-pill {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.85);
  border: 1px solid rgba(59, 30, 16, 0.14);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-primary);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.variant-pill strong {
  color: var(--cranberry);
  margin-left: 4px;
}

.variant-pill:hover {
  transform: translateY(-1px);
  border-color: var(--sage-500);
}

.variant-pill.active {
  background: var(--sage-500);
  border-color: var(--sage-500);
  color: #fffaf2;
}

.variant-pill.active strong {
  color: #faf2e4;
}

.hero-add-btn {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--cranberry);
  color: #fffaf2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(184, 29, 36, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-add-btn:hover {
  transform: translateY(-1px);
  background: #9f171d;
}

.color-swatches {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid rgba(59, 30, 16, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.color-swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 6px rgba(59, 30, 16, 0.18);
  transition: transform 0.22s var(--ease-out-expo), box-shadow 0.22s ease;
}

.color-swatch-btn:hover {
  transform: scale(1.16);
}

.color-swatch-btn.active {
  transform: scale(1.24);
  box-shadow: 0 0 0 2px var(--ink-primary), 0 4px 10px rgba(59, 30, 16, 0.22);
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px 16px;
  }
  .brand-logo {
    width: 52px;
    height: 52px;
  }
  .nav-pill {
    display: none;
  }
  .hero-branch {
    width: 78px;
    top: 12vh;
    opacity: 0.28;
  }
  .hero-top {
    top: 10vh;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7.6vw, 2.55rem);
  }
  .inspect-trigger {
    top: 64.5%;
  }
  .hero-bottom {
    top: 74%;
    width: 90vw;
  }
  .protocol-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ==========================================================================
   v8 — Three.js 3D Stage, Feliz Natal Gift Box & Final Section Polish
   ========================================================================== */
#webgl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s linear;
}

#video-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.video-panetone-el {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
  pointer-events: none;
  will-change: transform, opacity;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 39% 49% at 50% 50%, #000 66%, transparent 98%);
  mask-image: radial-gradient(ellipse 39% 49% at 50% 50%, #000 66%, transparent 98%);
}

.box-layer {
  position: absolute;
  left: 72.5vw;
  top: 50vh;
  width: min(33vw, 470px);
  margin-left: calc(min(33vw, 470px) * -0.48);
  margin-top: calc(min(33vw, 470px) * -0.40);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.box-layer-back {
  z-index: 4;
}

.box-layer-front {
  z-index: 6;
}

.box-img {
  width: 100%;
  height: auto;
  display: block;
}

.box-layer-back .box-img {
  filter: drop-shadow(0 24px 36px rgba(59, 30, 16, 0.22));
}

/* Final Section: single-line title & comfortable card text spacing */
#scene-biometrics .biometrics-left {
  left: 3.5vw;
  top: 12vh;
  width: min(46vw, 620px);
}

#scene-biometrics .biometrics-head {
  align-items: center;
  gap: 16px;
  margin-bottom: 3vh;
}

#scene-biometrics .back-btn {
  margin: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid rgba(59, 30, 16, 0.1);
}

#scene-biometrics .biometrics-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.1vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

#scene-biometrics .metrics-grid {
  gap: 16px;
  height: auto;
  grid-template-rows: auto auto;
}

#scene-biometrics .metric-card {
  padding: 20px 22px;
  min-height: 158px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

#scene-biometrics .metric-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}

#scene-biometrics .metric-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

#scene-biometrics .metric-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(59, 30, 16, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}

#scene-biometrics .metric-bar-fill {
  border-radius: 999px;
}

#scene-biometrics .metric-status {
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  line-height: 1.4;
  color: var(--sage-500);
  margin-bottom: 4px;
}

#scene-biometrics .metric-foot {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ink-secondary);
}

#scene-biometrics .product-float {
  right: 3.5vw;
  bottom: 3.5vh;
  width: min(32vw, 430px);
  padding: 12px 14px;
  gap: 14px;
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

#scene-biometrics .product-thumb {
  width: 78px;
  height: 78px;
  padding: 6px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(255, 250, 242, 0.98), var(--menu-sand));
}

#scene-biometrics .product-thumb img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  mix-blend-mode: normal;
}

#scene-biometrics .add-cart-btn {
  background: var(--cranberry);
  color: #fffaf2;
  margin: 0;
}

#scene-biometrics .add-cart-btn:hover {
  background: #9f171d;
}

@media (max-width: 900px) {
  .box-layer {
    left: 50vw;
    top: 66vh;
    width: min(56vw, 240px);
    margin-left: calc(min(56vw, 240px) * -0.48);
    margin-top: calc(min(56vw, 240px) * -0.45);
  }
  #scene-biometrics .biometrics-left {
    left: auto;
    top: auto;
    width: 100%;
  }
  #scene-biometrics .biometrics-title {
    font-size: clamp(1.38rem, 5.8vw, 1.9rem);
    white-space: nowrap;
  }
  #scene-biometrics .metric-card {
    padding: 12px 14px;
    min-height: 112px;
  }
  #scene-biometrics .metric-value {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  #scene-biometrics .metric-bar {
    margin-bottom: 8px;
  }
  #scene-biometrics .product-float {
    right: auto;
    bottom: auto;
    width: 100%;
    padding: 10px 12px;
  }
  .hotspots-layer .hotspot {
    top: 65% !important;
    left: 50% !important;
  }
}

/* ==========================================================================
   v9 — Local Cart, Catalog Quick-Add & Visual Order Slip for WhatsApp
   ========================================================================== */
.modal-panel {
  width: min(94vw, 580px);
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(250, 242, 228, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: var(--ink-primary);
}

.modal-item {
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid rgba(59, 30, 16, 0.08);
  gap: 12px;
}

.modal-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  padding: 4px;
  object-fit: contain;
  background: var(--menu-sand);
  flex-shrink: 0;
}

.catalog-modal-item {
  align-items: center;
}

.catalog-item-left,
.cart-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.catalog-quick-adds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.catalog-add-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 226, 198, 0.85);
  border: 1px solid rgba(59, 30, 16, 0.12);
  font-size: 0.68rem;
  color: var(--ink-primary);
  transition: background 0.2s ease, transform 0.15s ease;
}

.catalog-add-chip:hover {
  background: var(--sage-500);
  color: #fffaf2;
  transform: translateY(-1px);
}

.catalog-add-chip.added {
  background: var(--cranberry);
  color: #fffaf2;
}

.cart-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--menu-sand);
  border: 1px solid rgba(59, 30, 16, 0.12);
  padding: 2px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-primary);
  display: grid;
  place-items: center;
}

.qty-btn:hover {
  background: rgba(255, 250, 242, 0.9);
}

.qty-val {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
}

.cart-line-total {
  min-width: 58px;
  text-align: right;
  font-size: 0.9rem;
  color: var(--ink-primary);
}

.cart-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.modal-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(59, 30, 16, 0.14);
  background: rgba(255, 250, 242, 0.9);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-primary);
}

.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
}

.cart-subtotal-val {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  color: var(--cranberry);
}

.slip-preview-wrap {
  border-radius: 14px;
  padding: 10px;
  background: rgba(239, 226, 198, 0.52);
  border: 1px solid rgba(59, 30, 16, 0.1);
}

.slip-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.slip-preview-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
}

.slip-mini-actions {
  display: inline-flex;
  gap: 6px;
}

.slip-mini-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(59, 30, 16, 0.14);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-primary);
}

.slip-mini-btn:hover {
  background: var(--sage-500);
  color: #fffaf2;
}

.slip-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(59, 30, 16, 0.08);
}

.cart-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clear-cart-btn {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(59, 30, 16, 0.08);
  color: var(--ink-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
}

.clear-cart-btn:hover {
  background: rgba(59, 30, 16, 0.14);
  color: var(--ink-primary);
}

.whatsapp-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 12px;
  background: #25d366;
  background: linear-gradient(135deg, #1fa855, #128c44);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(18, 140, 68, 0.24);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.whatsapp-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.whatsapp-hint {
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--ink-muted);
  text-align: center;
}

#card-product-code {
  cursor: pointer;
}

@media (max-width: 600px) {
  .cart-inputs-grid {
    grid-template-columns: 1fr;
  }
  .cart-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-row-right {
    justify-content: space-between;
  }
}
