/* ==========================================================================
   BOBA CRAFT™ | DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary: #FF6B8B;
  --primary-hover: #E85070;
  --primary-light: #FFEBF0;
  --primary-dark: #C93356;
  
  --secondary: #845EC2;
  --secondary-light: #F3ECFF;
  
  --accent-matcha: #4E9F3D;
  --accent-caramel: #C67D3A;
  --accent-thai: #FF7B54;
  --accent-mango: #FFB200;
  --accent-taro: #9C88FF;
  
  /* Neutrals & Surfaces */
  --bg-main: #FFFDF9;
  --bg-surface: #FFFFFF;
  --bg-surface-soft: #F9F5F0;
  --bg-dark: #1E1712;
  --text-main: #2A201A;
  --text-muted: #6B5B52;
  --text-light: #9C8C83;
  --border-soft: #EFE6DC;
  --border-focus: #FF6B8B;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(42, 32, 26, 0.05);
  --shadow-md: 0 8px 24px rgba(42, 32, 26, 0.08);
  --shadow-lg: 0 16px 40px rgba(42, 32, 26, 0.12);
  --shadow-colored: 0 12px 30px rgba(255, 107, 139, 0.25);
  
  /* Dimensions & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --container-max: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-title {
  font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

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

img, svg {
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Audio Status Badge Floating */
.audio-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.audio-badge:hover {
  transform: translateY(-2px);
  background: #FFF;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #FF6B8B, #845EC2);
  color: #FFF;
  font-size: 0.875rem;
  padding: 8px 16px;
  text-align: center;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: all var(--transition-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon svg {
  width: 36px;
  height: 42px;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-icon svg {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.highlight {
  color: var(--primary);
}

.nav-link.highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-trigger-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-soft);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-soft);
}

.cart-trigger-btn:hover {
  background: #FFF;
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(255, 107, 139, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 107, 139, 0.35);
}

.btn-secondary {
  background: var(--bg-surface-soft);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
  background: #FFF;
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--border-soft);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.pulse-btn {
  animation: subtlePulse 2.5s infinite;
}

@keyframes subtlePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 139, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 139, 0); }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
  background: radial-gradient(circle at top right, #FFF2F5 0%, #FFFDF9 60%);
}

.hero-bg-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: blinkDot 1.5s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #FF6B8B 0%, #845EC2 50%, #FFB200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

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

.stat-number {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Cup Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cup-showcase {
  position: relative;
  width: 320px;
  height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 107, 139, 0.25) 0%, rgba(132, 94, 194, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  animation: pulseGlow 6s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-cup-wrapper {
  position: relative;
  z-index: 1;
}

/* Floating Badges */
.floating-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  z-index: 10;
  animation: floatChip 4s infinite ease-in-out;
}

.floating-chip strong {
  display: block;
  color: var(--text-main);
}

.floating-chip small {
  color: var(--text-muted);
}

.chip-icon {
  font-size: 1.4rem;
}

.chip-1 {
  top: 15%;
  right: -50px;
  animation-delay: 0s;
}

.chip-2 {
  bottom: 25%;
  left: -60px;
  animation-delay: 1.5s;
}

.chip-3 {
  bottom: 5%;
  right: -30px;
  animation-delay: 2.5s;
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   DYNAMIC CUP ARCHITECTURE (SHARED BETWEEN HERO AND LAB)
   ========================================================================== */

.live-cup {
  position: relative;
  width: 170px;
  height: 290px;
  margin: 0 auto;
}

.hero-scale {
  transform: scale(1.15);
}

.cup-straw {
  position: absolute;
  top: -45px;
  left: 60%;
  width: 18px;
  height: 120px;
  background: repeating-linear-gradient(
    45deg,
    #FF6B8B,
    #FF6B8B 10px,
    #FFF 10px,
    #FFF 20px
  );
  border-radius: 9px;
  transform: rotate(14deg);
  z-index: 4;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-smooth);
}

.cup-lid {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px 12px 4px 4px;
  backdrop-filter: blur(6px);
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cup-lid::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px 6px 0 0;
}

.cup-body {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 250px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  border: 4px solid rgba(255, 255, 255, 0.7);
  border-top: none;
  border-radius: 6px 6px 40px 40px;
  overflow: hidden;
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.6), 0 14px 28px rgba(0, 0, 0, 0.1);
  z-index: 2;
  clip-path: polygon(4% 0%, 96% 0%, 90% 100%, 10% 100%);
}

/* Glass shine overlay */
.cup-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  width: 14px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
  z-index: 6;
  border-radius: 10px;
}

/* Liquid Layer */
.cup-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 88%;
  background: linear-gradient(180deg, #CBB4D4 0%, #9B72CF 100%);
  transition: height var(--transition-smooth), background 0.5s ease;
  z-index: 1;
}

.liquid-swirl {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

/* Floating Ice Cubes */
.liquid-ice-cubes {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
  transition: opacity var(--transition-fast);
}

.cube {
  position: absolute;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.5);
  animation: floatIce 3s infinite ease-in-out alternate;
}

.cube-1 { top: 5px; left: 20px; transform: rotate(12deg); animation-delay: 0s; }
.cube-2 { top: 18px; right: 22px; transform: rotate(-22deg); animation-delay: 0.6s; }
.cube-3 { top: 25px; left: 52px; transform: rotate(8deg); animation-delay: 1.2s; }
.cube-4 { top: 8px; right: 48px; transform: rotate(-14deg); animation-delay: 1.8s; }

@keyframes floatIce {
  0% { transform: translateY(0) rotate(10deg); }
  100% { transform: translateY(-6px) rotate(-5deg); }
}

/* Foam / Macchiato Layer */
.cup-foam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF4E6 100%);
  z-index: 3;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.4);
  transition: height var(--transition-smooth), opacity var(--transition-smooth);
}

/* Toppings Layer */
.cup-toppings {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  padding: 6px;
  gap: 3px;
  transition: all var(--transition-smooth);
}

/* Realistic Boba Pearl in CSS */
.boba-pearl {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4D3328 0%, #20130E 65%, #0D0705 100%);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: jigglePearl 2s infinite ease-in-out;
  display: inline-block;
  margin: 1px;
}

.boba-pearl.popping-boba {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, #FF884B 40%, #E04000 100%);
  box-shadow: inset 1px 1px 3px #FFF, 0 2px 5px rgba(255, 120, 0, 0.4);
}

.boba-pearl.jelly-topping {
  width: 18px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.9);
}

@keyframes jigglePearl {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Feature Strip */
.feature-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 36px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.strip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.strip-icon {
  font-size: 2rem;
  background: var(--bg-surface-soft);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.strip-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.strip-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Section Header Shared */
.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================================================
   INTERACTIVE BOBA LAB SECTION (MAIN FEATURE)
   ========================================================================== */

.boba-lab-section {
  padding: 90px 0;
  background: #FFFBF7;
}

.lab-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 40px;
  align-items: start;
}

/* Controls Panel */
.lab-controls-panel {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

/* Customizer Wizard Tabs */
.customizer-tabs {
  display: flex;
  background: var(--bg-surface-soft);
  padding: 6px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  gap: 6px;
}

.tab-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  color: var(--text-main);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.step-header h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.step-header p {
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 26px;
}

.group-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

/* Option Cards (Radio & Checkbox) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.option-card {
  position: relative;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-inner {
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-soft);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  height: 100%;
}

.option-card input:checked + .card-inner {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(255, 107, 139, 0.15);
  transform: translateY(-2px);
}

.card-inner:hover {
  border-color: var(--primary);
}

.option-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.option-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.option-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Size Selector */
.size-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.size-card {
  cursor: pointer;
  position: relative;
}

.size-card input {
  position: absolute;
  opacity: 0;
}

.size-info {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-soft);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.size-card input:checked + .size-info {
  border-color: var(--primary);
  background: var(--primary-light);
}

.size-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.size-vol {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.size-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 6px;
}

/* Flavor Filter Chips */
.flavor-filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chip.active, .chip:hover {
  background: var(--text-main);
  color: #FFF;
  border-color: var(--text-main);
}

.flavor-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Custom Scrollbar */
.flavor-cards-grid::-webkit-scrollbar,
.cart-drawer-body::-webkit-scrollbar {
  width: 6px;
}

.flavor-cards-grid::-webkit-scrollbar-thumb,
.cart-drawer-body::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 4px;
}

.flavor-swatch-card {
  cursor: pointer;
  position: relative;
}

.flavor-swatch-card input {
  position: absolute;
  opacity: 0;
}

.flavor-inner {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-soft);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  align-items: center;
  text-align: center;
}

.flavor-color-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  border: 2px solid #FFF;
}

.flavor-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.flavor-swatch-card input:checked + .flavor-inner {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.03);
}

/* Toppings Grid */
.toppings-selection-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-soft);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.toppings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.topping-card {
  position: relative;
  cursor: pointer;
}

.topping-card input {
  position: absolute;
  opacity: 0;
}

.topping-inner {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-soft);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.topping-card input:checked + .topping-inner {
  border-color: var(--primary);
  background: var(--primary-light);
}

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

.topping-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.topping-price {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
}

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

/* Precision & Levels */
.slider-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.level-btn {
  cursor: pointer;
  position: relative;
}

.level-btn input {
  position: absolute;
  opacity: 0;
}

.level-btn span {
  display: block;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.level-btn input:checked + span {
  background: var(--text-main);
  color: #FFF;
  border-color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-soft);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-group-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

/* Sticky Preview Panel */
.preview-card-sticky {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

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

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-matcha);
  background: #E8F5E9;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.dot-blink {
  width: 6px;
  height: 6px;
  background: var(--accent-matcha);
  border-radius: 50%;
  animation: blinkDot 1s infinite;
}

.random-btn {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--secondary);
  background: var(--secondary-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.random-btn:hover {
  background: var(--secondary);
  color: #FFF;
  transform: rotate(5deg);
}

.cup-canvas-wrapper {
  background: radial-gradient(circle at center, #FFF4E6 0%, #FFFDF9 70%);
  border-radius: var(--radius-md);
  padding: 24px 0 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Receipt / Summary */
.recipe-card {
  border-top: 1px dashed var(--border-soft);
  padding-top: 16px;
}

.recipe-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.recipe-title-row h4 {
  font-size: 1.25rem;
  color: var(--text-main);
}

.recipe-price {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.recipe-specs {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.recipe-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-specs li::before {
  content: '•';
  color: var(--primary);
  font-weight: 800;
}

/* Flavor Meters */
.flavor-profile-meters {
  background: var(--bg-surface-soft);
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.meter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-bar {
  width: 120px;
  height: 6px;
  background: var(--border-soft);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.recipe-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   SIGNATURE COMBINATIONS
   ========================================================================== */

.signatures-section {
  padding: 90px 0;
  background: var(--bg-surface);
}

.signatures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.sig-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.sig-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.sig-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-fire { background: #FFE8E8; color: #E53935; }
.badge-top { background: #E8F5E9; color: #2E7D32; }
.badge-new { background: #EDE7F6; color: #512DA8; }

.sig-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.sig-visual-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.sig-info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.sig-formula {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.sig-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sig-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.sig-price {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   MEGA FLAVOR ENCYCLOPEDIA (24 SABORES)
   ========================================================================== */

.flavors-showcase-section {
  padding: 90px 0;
  background: var(--bg-surface-soft);
}

.flavor-catalog-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.catalog-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.catalog-tab-btn.active, .catalog-tab-btn:hover {
  background: var(--primary);
  color: #FFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-colored);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.catalog-item-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-soft);
  transition: all var(--transition-fast);
  display: flex;
  gap: 16px;
  align-items: center;
}

.catalog-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cat-color-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.cat-details h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.cat-origin {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.cat-notes {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   MATHEMATICAL COMBINATIONS & CALCULATOR
   ========================================================================== */

.calculator-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.math-card {
  background: linear-gradient(135deg, #1E1712 0%, #2E2219 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.math-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 107, 139, 0.3), transparent 70%);
  border-radius: 50%;
}

.math-header h2 {
  color: #FFF;
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.math-header p {
  color: #D3C5BC;
  max-width: 600px;
  margin: 0 auto 36px;
}

.math-badge {
  display: inline-block;
  background: rgba(255, 107, 139, 0.2);
  color: #FF8DA1;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.math-multiplication-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.math-factor {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 120px;
}

.factor-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFB200;
  display: block;
}

.factor-label {
  font-size: 0.8rem;
  color: #E2D7D0;
  font-weight: 600;
}

.math-operator {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FF6B8B;
}

.math-result-banner {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  border: 1px dashed rgba(255, 107, 139, 0.5);
}

.result-number {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #FF6B8B;
  letter-spacing: -1px;
}

.result-text {
  font-size: 1.05rem;
  color: #FFF;
  font-weight: 600;
}

/* ==========================================================================
   PHILOSOPHY & RITUAL
   ========================================================================== */

.philosophy-section {
  padding: 90px 0;
  background: var(--bg-surface);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.phil-card {
  padding: 28px;
  background: var(--bg-surface-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  transition: transform var(--transition-fast);
}

.phil-card:hover {
  transform: translateY(-4px);
}

.phil-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.phil-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.phil-card p {
  font-size: 0.875rem;
}

/* Ritual Section */
.ritual-section {
  padding: 60px 0 90px;
}

.ritual-box {
  background: linear-gradient(135deg, #FFF0F3 0%, #F5E6FF 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  border: 1px solid #FFE0E6;
}

.ritual-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.r-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.r-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.r-step strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.r-step p {
  font-size: 0.875rem;
}

.ritual-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.boba-fun-graphic {
  text-align: center;
}

.fun-emoji {
  font-size: 5rem;
  display: block;
  animation: floatFun 3s infinite ease-in-out;
}

@keyframes floatFun {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

.fun-quote {
  font-style: italic;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 12px;
}

/* ==========================================================================
   REVIEWS & TESTIMONIALS
   ========================================================================== */

.reviews-section {
  padding: 90px 0;
  background: var(--bg-surface);
}

.reviews-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--bg-surface-soft);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #FFB200;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 20px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.reviewer-info strong {
  display: block;
  font-size: 0.9rem;
}

.reviewer-info small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LOCATION & FAQ
   ========================================================================== */

.locations-section {
  padding: 80px 0;
  background: var(--bg-main);
}

.location-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0;
}

.info-item {
  display: flex;
  gap: 14px;
}

.info-icon {
  font-size: 1.5rem;
}

.info-item strong {
  display: block;
  font-size: 0.95rem;
}

.info-item p {
  font-size: 0.875rem;
}

.map-art {
  height: 100%;
  min-height: 280px;
  background: #E8EEF5;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px dashed #B4C6D8;
}

.pin {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFF;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
}

.pin.pulse {
  animation: pulsePin 2s infinite;
}

@keyframes pulsePin {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 139, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(255, 107, 139, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 107, 139, 0); }
}

.map-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #FFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* FAQ */
.faq-section {
  padding: 80px 0;
  background: var(--bg-surface);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all var(--transition-fast);
}

.faq-item[open] {
  background: #FFF;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-arrow {
  transform: rotate(45deg);
}

.faq-answer {
  padding-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Newsletter */
.newsletter-section {
  padding: 80px 0;
  background: radial-gradient(circle at bottom, #FFEBF0 0%, #FFFDF9 80%);
}

.newsletter-card {
  max-width: 600px;
  margin: 0 auto;
}

.news-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.newsletter-card h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.newsletter-card p {
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 12px;
}

.news-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-soft);
  font-size: 0.95rem;
  font-family: inherit;
}

.news-input:focus {
  outline: none;
  border-color: var(--primary);
}

.news-disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: #FFF;
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.brand-col p {
  color: #A3968F;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.copyright {
  font-size: 0.75rem;
  color: #6E635C !important;
}

.footer-col h4 {
  color: #FFF;
  font-size: 1rem;
  margin-bottom: 16px;
}

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

.footer-col a {
  color: #A3968F;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

.footer-col p {
  color: #A3968F;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.social-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-pill {
  font-size: 0.8rem;
  color: #FF8DA1;
  font-weight: 600;
}

/* ==========================================================================
   CART DRAWER & MODAL
   ========================================================================== */

.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #FFF;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.close-drawer-btn {
  font-size: 1.8rem;
  color: var(--text-light);
  line-height: 1;
}

.close-drawer-btn:hover {
  color: var(--text-main);
}

.cart-drawer-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.empty-cart-state {
  text-align: center;
  padding: 40px 10px;
}

.empty-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
}

.cart-item-row {
  background: var(--bg-surface-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--border-soft);
}

.item-left h5 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.item-left p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.item-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.item-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
}

.remove-item-btn {
  font-size: 0.75rem;
  color: #E53935;
  text-decoration: underline;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-surface-soft);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.free-tag {
  color: var(--accent-matcha);
  font-weight: 700;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-soft);
  color: var(--text-main);
}

.checkout-btn {
  margin-top: 16px;
}

/* Modal Dialog */
.checkout-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 440px;
  margin: auto;
  box-shadow: var(--shadow-lg);
  background: transparent;
}

.checkout-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-box {
  background: #FFF;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.modal-success-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.modal-box h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.modal-box p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.estimated-time {
  background: var(--bg-surface-soft);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.estimated-time strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 2px;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #2A201A;
  color: #FFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE / TABLET)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pill-tag {
    margin: 0 auto 20px;
  }

  .hero-description {
    margin: 0 auto 32px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 20px;
  }

  .lab-layout {
    grid-template-columns: 1fr;
  }

  .preview-card-sticky {
    position: static;
  }

  .ritual-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .r-step {
    text-align: left;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .customizer-tabs {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
  }

  .tab-btn {
    flex: 1 1 45%;
    font-size: 0.8rem;
  }

  .math-card {
    padding: 30px 20px;
  }

  .math-multiplication-grid {
    gap: 8px;
  }

  .math-factor {
    min-width: 90px;
    padding: 10px;
  }

  .factor-num {
    font-size: 1.6rem;
  }

  .math-operator {
    font-size: 1.2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }
}
