/* ==========================================================================
   Zhankar Rose Milk — Premium Scroll Animation Experience
   Design System & Styling
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Rose Milk Brand Palette */
  --bg-dark: #0e070a;
  --bg-card: rgba(26, 15, 20, 0.75);
  --bg-card-border: rgba(240, 166, 175, 0.2);
  --bg-card-hover: rgba(45, 22, 30, 0.85);

  --rose-100: #fff0f2;
  --rose-200: #fce2e5;
  --rose-300: #f7bec5;
  --rose-400: #f095a1;
  --rose-500: #e65267;
  --rose-600: #d62f49;
  --rose-700: #9e1429;
  --rose-glow: rgba(230, 82, 103, 0.35);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 240, 243, 0.78);
  --text-muted: rgba(255, 240, 243, 0.48);

  --blue-brand: #0266c8;
  --gold-brand: #d49a37;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dock-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 20%, #201016 0%, #0e070a 100%);
}

/* ==========================================================================
   Loader Overlay
   ========================================================================== */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #261119 0%, #0a0406 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s ease;
}

.loader-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  max-width: 440px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo-img {
  height: 96px;
  max-width: 90%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 30px rgba(240, 149, 161, 0.7));
  margin-bottom: 12px;
  animation: logoFloat 2.5s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 6px 25px rgba(240, 149, 161, 0.5));
  }
  100% {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 10px 35px rgba(240, 149, 161, 0.85));
  }
}

.loader-brand .brand-sub {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-400);
  font-weight: 600;
  display: block;
}

.loader-brand .brand-flavor {
  font-size: 1.05rem;
  color: var(--rose-300);
  font-style: italic;
  font-family: var(--font-serif);
  margin-top: 4px;
}

.progress-container {
  width: 100%;
  margin-top: 10px;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d62f49, #f7bec5, #ffffff);
  border-radius: 999px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 16px rgba(240, 149, 161, 0.9);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.85rem;
}

.progress-percent {
  font-weight: 700;
  color: var(--rose-300);
  font-variant-numeric: tabular-nums;
}

.progress-status {
  color: var(--text-muted);
}

.loader-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: 8px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(14, 7, 10, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light background adaptation when scrolling past the dark animation hero */
.site-header.scrolled-light {
  background: rgba(253, 249, 244, 0.88);
  border-bottom: 1px solid rgba(147, 0, 29, 0.12);
  box-shadow: 0 8px 32px rgba(147, 0, 29, 0.06);
}

.header-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-logo-img {
  height: 50px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(214, 47, 73, 0.45));
  transition: all 0.3s ease;
  display: block;
}

.site-header.scrolled-light .brand-logo-img {
  filter: drop-shadow(0 2px 8px rgba(147, 0, 29, 0.2));
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.drawer-logo-img {
  height: 44px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(214, 47, 73, 0.4));
  display: block;
}

.logo-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(230, 82, 103, 0.22);
  color: var(--rose-300);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(230, 82, 103, 0.35);
  transition: all 0.35s ease;
}

.site-header.scrolled-light .logo-tag {
  background: rgba(147, 0, 29, 0.08);
  color: #93001d;
  border-color: rgba(147, 0, 29, 0.2);
}

.header-playback-hud {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.site-header.scrolled-light .header-playback-hud {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.hud-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--rose-200);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: rgba(230, 82, 103, 0.25);
  color: #fff;
}

.site-header.scrolled-light .hud-btn {
  color: #93001d;
}

.site-header.scrolled-light .hud-btn:hover {
  background: rgba(147, 0, 29, 0.1);
}

.hud-frame-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 10px;
}

.site-header.scrolled-light .hud-frame-indicator {
  border-left-color: rgba(0, 0, 0, 0.12);
}

.indicator-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.site-header.scrolled-light .indicator-label {
  color: #5b403f;
}

.indicator-val {
  font-family: monospace;
  color: var(--rose-300);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.site-header.scrolled-light .indicator-val {
  color: #93001d;
}

/* Nav links styling */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(230, 82, 103, 0.25);
  border-color: rgba(240, 166, 175, 0.3);
  box-shadow: 0 0 12px rgba(230, 82, 103, 0.2);
}

.site-header.scrolled-light .nav-link {
  color: #5b403f;
}

.site-header.scrolled-light .nav-link:hover {
  color: #93001d;
  background: rgba(147, 0, 29, 0.05);
}

.site-header.scrolled-light .nav-link.active {
  color: #93001d;
  background: rgba(147, 0, 29, 0.1);
  border-color: rgba(147, 0, 29, 0.25);
  box-shadow: none;
}

.nav-cta-btn {
  background: linear-gradient(135deg, #d62f49 0%, #b31d34 100%);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(214, 47, 73, 0.45);
  transition: all 0.25s ease;
  white-space: nowrap;
  margin-left: 6px;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(214, 47, 73, 0.65);
}

/* Mobile Hamburger Toggle Pill */
.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  cursor: pointer;
  color: #fff;
  transition: all 0.25s ease;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(240, 149, 161, 0.4);
}

.site-header.scrolled-light .mobile-menu-btn {
  background: rgba(147, 0, 29, 0.08);
  border: 1px solid rgba(147, 0, 29, 0.2);
  color: #1c1c19;
}

.site-header.scrolled-light .mobile-menu-btn:hover {
  background: rgba(147, 0, 29, 0.14);
}

.hamburger-box {
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Mobile Drawer Backdrop Overlay */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 3, 5, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Body Scroll Lock when Drawer is Open */
body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Mobile Navigation Slide-Out Drawer (True Top-Level Drawer) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #180b11 0%, #0e070a 100%);
  border-left: 1px solid rgba(240, 149, 161, 0.25);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}

/* Drawer Header */
.mobile-drawer-header {
  height: 70px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(24, 11, 17, 0.95);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.mobile-drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-close-btn:hover {
  background: rgba(230, 82, 103, 0.25);
  border-color: rgba(240, 149, 161, 0.4);
  transform: scale(1.05);
}

/* Drawer Scrollable Content Area */
.mobile-nav-scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  text-decoration: none;
  color: rgba(255, 240, 243, 0.82);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link .nav-item-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #fff;
  background: rgba(230, 82, 103, 0.2);
  border-color: rgba(240, 149, 161, 0.3);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.mobile-drawer-actions .mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #d62f49 0%, #b31d34 100%);
  color: #fff !important;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(214, 47, 73, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-drawer-actions .mobile-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(214, 47, 73, 0.65);
}

.mobile-drawer-meta {
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255, 240, 243, 0.45);
  font-weight: 500;
}

/* Ensure smooth section scrolling target offset */
#scroll-hero,
#three-pillars,
#tasting-notes,
#order-packs,
#pasture-timeline,
#nutrition-facts,
#testimonials,
#store-locator,
section[id] {
  scroll-margin-top: 84px;
}

#additional-sections {
  position: relative;
  z-index: 20;
  width: 100%;
  background-color: #fdf9f4;
  color: #1c1c19;
}

/* ==========================================================================
   Scroll Hero Animation Track
   ========================================================================== */
.scroll-animation-track {
  position: relative;
  height: 550vh; /* Smooth, scrubbable 240 frame scroll length */
  width: 100%;
}

.sticky-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  will-change: transform;
}

#animation-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
}

.glow-1 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(230, 82, 103, 0.4) 0%, transparent 70%);
  top: 10%;
  right: 5%;
}

.glow-2 {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(247, 190, 197, 0.25) 0%, transparent 70%);
  bottom: 5%;
  left: 5%;
}

/* ==========================================================================
   Hero Brand Title Overlay (Fade at 30% scroll)
   ========================================================================== */
.hero-title-overlay {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translate(-50%, 0);
  text-align: center;
  z-index: 15;
  pointer-events: none;
  width: 90%;
  max-width: 840px;
  will-change: opacity, transform;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 82, 103, 0.18);
  border: 1px solid rgba(240, 149, 161, 0.35);
  color: var(--rose-200);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 45px rgba(230, 82, 103, 0.45);
  margin-bottom: 10px;
}

.hero-headline .italic-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 25%, #f7bec5 75%, #ff4d6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fce2e5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   Story Narrative Cards (Dynamic Scroll Fade) — Sleek, Compact & Unobtrusive
   ========================================================================== */
.story-overlays-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.story-card {
  position: absolute;
  max-width: 320px;
  width: auto;
  background: rgba(16, 8, 12, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(240, 166, 175, 0.22);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  pointer-events: auto;
  left: 5%;
  bottom: 60px;
  top: auto;
}

.story-card.right-aligned {
  left: auto;
  right: 5%;
  bottom: 60px;
  top: auto;
}

.story-card.center-aligned {
  left: 50%;
  right: auto;
  bottom: 50px;
  top: auto;
  transform: translate(-50%, 16px) scale(0.97);
  text-align: center;
  max-width: 360px;
}

.story-card.center-aligned.active {
  transform: translate(-50%, 0) scale(1);
}

.story-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rose-400);
  background: rgba(230, 82, 103, 0.15);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(230, 82, 103, 0.28);
  margin-bottom: 8px;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  background: var(--rose-400);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--rose-400);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.story-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.22;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.story-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.story-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rose-300);
}

.metric-text {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.primary-pill-btn {
  background: linear-gradient(135deg, #d62f49 0%, #a81c31 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(214, 47, 73, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.primary-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(214, 47, 73, 0.65);
}

.secondary-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-pill-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Interactive Dock & Timeline Scrubber
   ========================================================================== */
.interactive-dock {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  max-width: 760px;
  width: 90%;
  pointer-events: auto;
}

.dock-inner {
  height: var(--dock-height);
  background: rgba(18, 9, 13, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(240, 149, 161, 0.25);
  border-radius: 999px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.dock-control-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dock-control-btn:hover {
  background: rgba(230, 82, 103, 0.3);
  border-color: var(--rose-400);
  transform: scale(1.05);
}

.timeline-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

#scrubber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

#scrubber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--rose-500);
  box-shadow: 0 0 12px var(--rose-500);
  cursor: grab;
  transition: transform 0.1s ease;
}

#scrubber-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.3);
}

#scrubber-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--rose-500);
  box-shadow: 0 0 12px var(--rose-500);
  cursor: grab;
}

.timeline-milestones {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.milestone-pin {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.milestone-pin:hover, .milestone-pin.active {
  color: var(--rose-300);
  background: rgba(230, 82, 103, 0.15);
}

.dock-stats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--rose-300);
  font-weight: 700;
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.dock-divider {
  color: var(--text-muted);
}

/* ==========================================================================
   Scroll Prompt Floating Badge
   ========================================================================== */
.scroll-prompt {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.4s ease;
}

.scroll-prompt.hidden {
  opacity: 0;
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-wheel {
  width: 3px;
  height: 7px;
  background: var(--rose-400);
  border-radius: 2px;
  animation: mouseWheel 1.6s ease-in-out infinite;
}

@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.prompt-text {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   Product Lineup Section
   ========================================================================== */
.flavors-section, .nutrition-section, .cta-section {
  position: relative;
  z-index: 20;
  padding: 120px 0;
  background: var(--bg-dark);
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
}

.section-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rose-400);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: rgba(25, 14, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 149, 161, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(230, 82, 103, 0.15);
}

.product-card.featured-product {
  border-color: rgba(230, 82, 103, 0.45);
  background: linear-gradient(180deg, rgba(46, 20, 28, 0.7) 0%, rgba(20, 10, 14, 0.8) 100%);
}

.product-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: radial-gradient(circle at top center, rgba(230, 82, 103, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #d62f49 0%, #a81c31 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(214, 47, 73, 0.4);
}

.product-image-container {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s var(--ease-out-expo);
}

.product-img.clip-card-img {
  border-radius: 18px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(230, 82, 103, 0.15);
  color: var(--rose-300);
  border: 1px solid rgba(230, 82, 103, 0.25);
}

.tag-blue {
  background: rgba(2, 102, 200, 0.15);
  color: #70b4ff;
  border-color: rgba(2, 102, 200, 0.3);
}

.tag-red {
  background: rgba(212, 154, 55, 0.15);
  color: #ffc97a;
  border-color: rgba(212, 154, 55, 0.3);
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.card-btn-action {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #d62f49 0%, #b31d34 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(214, 47, 73, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(214, 47, 73, 0.6);
}

.card-btn-secondary {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Nutrition & Health Section
   ========================================================================== */
.nutrition-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.nutrition-copy .section-title {
  font-size: 2.6rem;
}

.nutrition-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.nutri-card {
  background: rgba(25, 14, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 20px;
  transition: border-color 0.2s ease;
}

.nutri-card:hover {
  border-color: rgba(240, 149, 161, 0.3);
}

.nutri-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.nutri-card h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 700;
}

.nutri-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.glass-nutrition-card {
  background: rgba(28, 15, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(240, 149, 161, 0.25);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-nutrition-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nutri-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nutri-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.nutri-list li strong {
  color: var(--rose-300);
}

.nutri-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Call To Action
   ========================================================================== */
.cta-banner {
  background: radial-gradient(ellipse at center, rgba(214, 47, 73, 0.3) 0%, rgba(20, 9, 14, 0.8) 100%);
  border: 1px solid rgba(240, 149, 161, 0.3);
  border-radius: 32px;
  padding: 72px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
}

.cta-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-primary-btn {
  background: linear-gradient(135deg, #d62f49 0%, #b31d34 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(214, 47, 73, 0.5);
  transition: all 0.2s ease;
}

.cta-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(214, 47, 73, 0.7);
}

.cta-secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cta-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 32px 0;
  background: #090406;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--rose-400);
}

.kbd {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--rose-300);
  margin-right: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .nutrition-layout {
    grid-template-columns: 1fr;
  }

  .story-card, .story-card.right-aligned, .story-card.center-aligned {
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    top: auto !important;
    transform: translate(-50%, 14px) scale(0.97) !important;
    width: calc(100% - 32px) !important;
    max-width: 310px !important;
    padding: 13px 16px !important;
    border-radius: 16px !important;
  }

  .story-card.active, .story-card.right-aligned.active, .story-card.center-aligned.active {
    transform: translate(-50%, 0) scale(1) !important;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 1180px) {
  .header-playback-hud {
    display: none;
  }
}

@media (max-width: 1024px) {
  .site-header {
    height: 68px;
  }

  .nav-links {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }

  .header-inner {
    padding: 0 18px;
  }

  .brand-logo-img {
    height: 42px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .nutrition-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mobile-nav-drawer {
    max-width: 100%;
    border-left: none;
  }
}

/* ==========================================================================
   Interactive Sensory Laboratory & Flavor Architecture
   ========================================================================== */
.sensory-lab-container {
  background: #ffffff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(147, 0, 29, 0.05);
  border: 1px solid rgba(147, 0, 29, 0.08);
  margin-top: 24px;
}

.sensory-preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.sensory-preset-btn {
  background: #f7f3ee;
  border: 1px solid rgba(147, 0, 29, 0.12);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #5b403f;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sensory-preset-btn:hover {
  background: rgba(147, 0, 29, 0.08);
  color: #93001d;
  transform: translateY(-1px);
}

.sensory-preset-btn.active {
  background: #93001d;
  color: #ffffff;
  border-color: #93001d;
  box-shadow: 0 4px 14px rgba(147, 0, 29, 0.3);
}

.sensory-sliders-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sensory-slider-card {
  background: #fdf9f4;
  border: 1px solid rgba(147, 0, 29, 0.06);
  border-radius: 18px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.sensory-slider-card:hover {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  border-color: rgba(147, 0, 29, 0.15);
}

.sensory-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sensory-metric-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c1c19;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sensory-score-badge {
  font-size: 0.88rem;
  font-weight: 800;
  color: #93001d;
  background: rgba(147, 0, 29, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.sensory-range-wrap {
  position: relative;
  margin: 10px 0 8px;
}

.sensory-range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #ebe8e3;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.sensory-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d62f49;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(214, 47, 73, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sensory-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.sensory-range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d62f49;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(214, 47, 73, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.sensory-desc {
  font-size: 0.82rem;
  color: #5b403f;
  line-height: 1.45;
}

/* Serving Recommendations Interactive Switcher */
.serving-rec-container {
  margin-top: 32px;
  background: #fdf9f4;
  border: 1px solid rgba(147, 0, 29, 0.08);
  border-radius: 24px;
  padding: 24px;
}

.serving-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(147, 0, 29, 0.1);
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.serving-tabs-nav::-webkit-scrollbar {
  display: none;
}

.serving-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5b403f;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.serving-tab-btn:hover {
  background: rgba(147, 0, 29, 0.06);
  color: #93001d;
}

.serving-tab-btn.active {
  background: #ffffff;
  color: #93001d;
  box-shadow: 0 3px 12px rgba(147, 0, 29, 0.1);
}

.serving-panel {
  display: none;
  animation: fadeIn 0.3s ease;
  padding-top: 18px;
}

.serving-panel.active {
  display: block;
}

.serving-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .serving-panel-grid {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }
}

.serving-panel-desc {
  font-size: 0.92rem;
  color: #5b403f;
  line-height: 1.6;
}

.serving-meta-pill-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.serving-meta-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(147, 0, 29, 0.08);
  font-size: 0.82rem;
  color: #1c1c19;
  font-weight: 600;
}

/* ==========================================================================
   Artisanal Live Batch Status Banner ("Farm-to-Bottle" Freshness Counter)
   ========================================================================== */
.batch-status-banner {
  background: linear-gradient(135deg, #ffffff 0%, #fff7f8 100%);
  border: 1.5px solid rgba(214, 47, 73, 0.2);
  border-radius: 28px;
  padding: 26px 30px;
  box-shadow: 0 12px 36px rgba(214, 47, 73, 0.07);
  position: relative;
  overflow: hidden;
}

.batch-status-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d62f49 0%, #ba1a2e 50%, #2e6a37 100%);
}

.batch-status-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(214, 47, 73, 0.1);
}

.batch-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 106, 55, 0.1);
  color: #2e6a37;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse-ring-container {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #2e6a37;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e6a37;
  position: relative;
  z-index: 1;
}

.batch-number-tag {
  background: #ba1a2e;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}

.batch-location-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #5b403f;
  font-weight: 600;
}

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

@media (min-width: 640px) {
  .batch-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .batch-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.batch-metric-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.batch-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.batch-metric-card.highlight-card {
  background: #fff0f2;
  border-color: rgba(214, 47, 73, 0.25);
  box-shadow: 0 4px 16px rgba(214, 47, 73, 0.08);
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7d6b6a;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1c1c19;
  line-height: 1.3;
  margin: 2px 0;
}

.metric-sub {
  font-size: 0.76rem;
  color: #5b403f;
}

.batch-allocation-bar-wrap {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 16px 20px 22px;
  border: 1px solid rgba(214, 47, 73, 0.15);
  box-shadow: 0 10px 30px -10px rgba(186, 26, 46, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

.batch-allocation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #5b403f;
  margin-bottom: 4px;
  font-weight: 600;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ba1a2e;
  background: rgba(186, 26, 46, 0.08);
  border: 1px solid rgba(186, 26, 46, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.batch-replay-btn:hover {
  background: #ba1a2e;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(186, 26, 46, 0.25);
}

.batch-replay-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Road Area Container */
.batch-road-container {
  position: relative;
  margin-top: 32px;
  padding-bottom: 2px;
  width: 100%;
}

.batch-allocation-track {
  width: 100%;
  height: 12px;
  background: #f1ede8;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.07);
}

.batch-allocation-fill {
  height: 100%;
  background: linear-gradient(90deg, #991224 0%, #ba1a2e 45%, #e1324d 100%);
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 14px rgba(214, 47, 73, 0.5);
  transition: width 2.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.batch-fill-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: batchShimmerAnim 2.2s linear infinite;
  pointer-events: none;
}

@keyframes batchShimmerAnim {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.batch-fill-head-pulse {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.75;
  filter: blur(2px);
  animation: batchHeadGlow 1s ease-in-out infinite alternate;
}

@keyframes batchHeadGlow {
  0% { opacity: 0.3; transform: scaleX(0.7); }
  100% { opacity: 0.9; transform: scaleX(1.1); }
}

/* Milk Van Vehicle Rider */
.batch-van-rider {
  position: absolute;
  bottom: 2px;
  width: 78px;
  height: 44px;
  z-index: 10;
  cursor: pointer;
  user-select: none;
  transform: translateX(calc(-1 * var(--van-progress-ratio, 0.808) * 54px));
  transition: left 2.2s cubic-bezier(0.22, 1, 0.36, 1), transform 2.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: left, transform;
}

.batch-van-vehicle {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

.batch-van-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

/* Tooltip Badge above Milk Van */
.batch-van-tooltip {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.batch-van-rider:hover .batch-van-tooltip {
  transform: translateX(-50%) scale(1.08) translateY(-2px);
}

.batch-van-badge {
  background: #ba1a2e;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(186, 26, 46, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}

.batch-van-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #ba1a2e;
  margin-top: -1px;
}

/* Wheel Animations */
.is-in-transit .van-wheel {
  animation: vanWheelSpin 0.28s linear infinite;
}

@keyframes vanWheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Chassis Driving Vibration */
.is-in-transit .batch-van-chassis {
  animation: vanChassisRumble 0.16s ease-in-out infinite alternate;
}

@keyframes vanChassisRumble {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-1.4px) rotate(0.4deg); }
}

/* Braking and Idle Animations */
.is-arrived .batch-van-chassis {
  animation: vanBrakingDip 0.5s ease-out forwards;
}

@keyframes vanBrakingDip {
  0% { transform: translateY(-1.4px) rotate(0.4deg); }
  30% { transform: translateY(1.6px) rotate(-1.2deg); }
  65% { transform: translateY(-0.6px) rotate(0.3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.is-arrived:not(.is-in-transit) .batch-van-vehicle {
  animation: vanGentleIdle 3s ease-in-out infinite alternate 0.5s;
}

@keyframes vanGentleIdle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-1.5px); }
}

/* Headlight Projection */
.van-headlight-cone {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.is-in-transit .van-headlight-cone {
  opacity: 0.85;
  animation: vanBeamFlicker 0.18s ease-in-out infinite alternate;
}

.is-arrived .van-headlight-cone {
  opacity: 0.35;
}

@keyframes vanBeamFlicker {
  0% { opacity: 0.7; }
  100% { opacity: 0.95; }
}

/* Exhaust Smoke Particles */
.batch-van-exhaust {
  position: absolute;
  left: 2px;
  bottom: 8px;
  pointer-events: none;
}

.exhaust-puff {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 26, 46, 0.4) 0%, rgba(186, 26, 46, 0) 70%);
  opacity: 0;
}

.is-in-transit .exhaust-puff.p1 {
  animation: exhaustDrift 0.6s linear infinite;
}

.is-in-transit .exhaust-puff.p2 {
  animation: exhaustDrift 0.6s linear infinite 0.2s;
}

.is-in-transit .exhaust-puff.p3 {
  animation: exhaustDrift 0.6s linear infinite 0.4s;
}

@keyframes exhaustDrift {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0.75;
  }
  100% {
    transform: translate(-18px, -10px) scale(1.8);
    opacity: 0;
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

