
/* Global Visual Scrollbar Removal (Keep functional, hide visual bar) */
:root, html, body, * {
  scrollbar-width: none !important;
  scrollbar-color: transparent transparent !important;
  -ms-overflow-style: none !important;
}

::-webkit-scrollbar,
*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
  -webkit-appearance: none !important;
}

/* MER-RAMU (Me-Racik Aneka Makanan dan Minuman)
 * Style System: Minimalist Modern Clean (Daggo Style), Warm Earthy Surface, Floating Pills, & Smooth Magnetic Snapping
 */
/* Google Fonts: Fraunces (Retro Artisan Display Serif) and Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Official MER-RAMU Brand Palette (Enhanced Contrast & Warm Readability) */
  --bg: #F5F0E8;            /* Putih Hangat / Cream Canvas */
  --surface: #FFFFFF;       /* Crisp White Card Core */
  --surface-warm: #FAF7F2;  /* Soft Warm Cream Card Accent */
  --surface-muted: #EDE6DC; /* Muted Pill Background */
  
  --border: #C8BDB0;        /* Outline tipis cokelat hangat terdefinisi */
  --border-warm: #BCAFA2;   /* Cokelat hangat kartu, simulator, & navigasi */
  --border-subtle: rgba(74, 48, 40, 0.18);
  --border-strong: #4A3028; /* Cokelat Furnitur Crisp Border */
  --border-active: #B9654B; /* Terakota Utama */
  
  --text: #4A3028;          /* Cokelat Furnitur - Deep Warm Authority */
  --text2: #543D35;         /* Teks isi cokelat hangat dengan kontras tinggi */
  --text-label: #5C443B;    /* Teks label & info produk mudah dibaca */
  --muted: #8C7B74;         /* Taupe lembut khusus untuk informasi sekunder/catatan kaki */
  
  --accent: #B9654B;        /* Terakota Utama */
  --accent-light: #D99A7B;  /* Terakota Muda */
  --accent-red: #A9252B;    /* Merah Aksen */
  --accent-soft: rgba(185, 101, 75, 0.10);
  
  --success: #B9654B;
  --warning: #D9822B;
  
  --shadow-card: 0 4px 18px rgba(74, 48, 40, 0.07), 0 1px 3px rgba(74, 48, 40, 0.04);
  --shadow-floating: 0 12px 32px rgba(74, 48, 40, 0.12), 0 2px 6px rgba(74, 48, 40, 0.06);
  --shadow-popover: 0 20px 48px rgba(74, 48, 40, 0.16);

  /* ----------------------------------------------------
     STANDARISASI SISTEM TIPOGRAFI (TEPAT 3 TIPE UKURAN FONT)
     Aturan: Semua font memakai Fraunces KECUALI caption dan micro.
     1. Title   : clamp(2rem, 4vw, 3.25rem) ~ 32px - 52px (Fraunces Serif)
     2. Body    : 1rem / 16px (Fraunces Serif: Judul Kartu, Deskripsi, Tombol, Form, Harga)
     3. Caption : 0.75rem / 12px (Plus Jakarta Sans: Eyebrow, Label Mikro, Tag, Status)
  ---------------------------------------------------- */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Fraunces', Georgia, serif;
  --font-body: 'Fraunces', Georgia, serif;
  --font-caption: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --text-title: clamp(2rem, 4vw, 3.25rem);
  --text-body: 1rem;
  --text-caption: 0.75rem;
  --text-subtitle: 1rem; /* Aliased to Body */

  --lh-title: 1.08;
  --lh-body: 1.55;
  --lh-caption: 1.4;

  /* ----------------------------------------------------
     STANDARISASI SISTEM SPACING & GAP (HANYA 3 UKURAN)
     1. Small (sm) : 8px  / 0.5rem (Micro gap, item badge, tightly grouped elements)
     2. Medium (md): 16px / 1rem   (Card padding, form gap, standard grid gap)
     3. Large (lg) : 32px / 2rem   (Section gap, container spacing, slide padding)
  ---------------------------------------------------- */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 2rem;     /* 32px */

  --gap-sm: var(--space-sm);
  --gap-md: var(--space-md);
  --gap-lg: var(--space-lg);

  /* ----------------------------------------------------
     STANDARISASI UKURAN TOMBOL (HANYA 3 UKURAN)
     1. Large (btn-lg)  : Height 48px, Padding 0 24px, Font Body (14px)
     2. Medium (btn-md) : Height 40px, Padding 0 16px, Font Body (14px)
     3. Small (btn-sm)  : Height 32px, Padding 0 12px, Font Caption (12px)
  ---------------------------------------------------- */
  --btn-h-lg: 48px;
  --btn-h-md: 40px;
  --btn-h-sm: 32px;
}

* {
  box-sizing: border-box;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.no-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Standar: Semua heading, paragraf, tombol, form default memakai Fraunces */
h1, h2, h3, h4, h5, h6, p, button, input, textarea, select {
  font-family: var(--font-serif);
}

/* Typographic Family Helpers */
.font-serif, .font-fraunces, .font-editorial {
  font-family: var(--font-serif) !important;
}

/* KECUALI Caption & Micro -> Menggunakan Plus Jakarta Sans */
.font-sans,
.type-body,
.type-body-sm {
  font-family: var(--font-serif) !important;
}

.font-caption,
.font-micro,
.type-caption,
.type-eyebrow,
.eyebrow-badge,
.taste-pill,
.caption,
.text-caption,
.admin-label,
[class*="text-[8px]"],
[class*="text-[9px]"],
[class*="text-[10px]"] {
  font-family: var(--font-caption) !important;
}

/* 3 Standard Typographic Classes */
.type-title, .type-hero, .type-section-title {
  font-family: var(--font-serif);
  font-size: var(--text-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: var(--lh-title);
  color: var(--text);
}

.type-subtitle, .type-card-title {
  font-family: var(--font-serif);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: var(--lh-body);
  color: var(--text);
}

.type-price {
  font-family: var(--font-serif);
  font-size: var(--text-body);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--lh-body);
  color: var(--accent);
}

.type-body {
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--text2);
}

.type-caption, .type-body-sm, .type-eyebrow {
  font-family: var(--font-sans) !important;
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  color: var(--text-label);
}

/* Eyebrows & Micro Badges (Normalized to Size 3: Caption 12px, Plus Jakarta Sans) */
.eyebrow-badge {
  font-family: var(--font-sans) !important;
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  line-height: 1.2;
}

/* 3 Standard Button Helper Classes */
.btn-lg {
  height: var(--btn-h-lg);
  padding: 0 1.5rem;
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.2s ease;
}

.btn-md {
  height: var(--btn-h-md);
  padding: 0 1rem;
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.2s ease;
}

.btn-sm {
  height: var(--btn-h-sm);
  padding: 0 0.75rem;
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.2s ease;
}

/* Zero-cost ambient radial gradients (Smooth 60/120 FPS, no GPU blur lag) */
.dots-bg {
  position: fixed;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image: radial-gradient(circle at center, #D6D0C4 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
}

.glow-ambient-1 {
  position: fixed;
  top: -120px;
  left: 15%;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 101, 75, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glow-ambient-2 {
  position: fixed;
  bottom: -120px;
  right: 10%;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 208, 196, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Floating Navigation (Rectangle Round) */
.brand-pill, .pillbar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  box-shadow: 0 4px 20px -2px rgba(45, 35, 25, 0.08);
  transition: all 0.2s ease;
}

.brand-pill {
  padding: 0 1.25rem;
  color: var(--accent);
  font-size: var(--text-caption);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-pill:hover {
  border-color: var(--border-active);
  background: var(--surface);
}

.pillbar {
  padding: 4px;
}

.navbtn {
  height: var(--btn-h-md);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 0 1rem;
  font-size: var(--text-caption);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbtn:hover {
  color: var(--text);
  background: rgba(235, 230, 220, 0.7);
}

.navbtn.active {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border-active);
  box-shadow: 0 2px 8px rgba(45, 35, 25, 0.06);
}

/* Surface Card Component */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.surface-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-floating);
}

/* Appetite & High-Contrast Visual Helpers */
.promo-banner {
  background: linear-gradient(90deg, #4A3028 0%, #B9654B 50%, #A9252B 100%);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  position: relative;
  z-index: 45;
}

.promo-banner a {
  text-decoration: underline;
  color: #F5F0E8;
  font-weight: 800;
}

.taste-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #FAF7F2;
  border: 1px solid var(--border-warm);
  color: var(--text);
}

.receipt-ticket {
  background: #FFFFFF;
  border: 1.5px dashed var(--border-warm);
  border-radius: 12px;
}

.glass-caption {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(216, 208, 196, 0.9);
  border-radius: 14px;
}

/* Product Image Zoom */
.product-image {
  transition: transform 0.5s ease;
}

.surface-card:hover .product-image {
  transform: scale(1.04);
}

/* Gentle Magnetic Scroll Snapping (Full-Stage Focused Slide ala Daggo) */
@media (min-width: 768px) {
  html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
  }
  
  .magnetic-slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 5.5rem;
    min-height: calc(100vh - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
}

/* Daggo-style Right Vertical Magnetic Pill Dock */
.magnetic-dock {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--text);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(45, 42, 38, 0.14);
}

.dock-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background-color: var(--border);
  transition: all 0.25s ease;
  cursor: pointer;
}

.dock-dot:hover {
  background-color: var(--text2);
  transform: scale(1.2);
}

.dock-dot.active {
  height: 18px;
  background-color: var(--accent);
  box-shadow: 0 2px 6px rgba(185, 101, 75, 0.4);
}

.dock-arrow {
  color: var(--text2);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-arrow:hover {
  color: var(--accent);
  transform: scale(1.15);
}

/* Drawer & Modal Transitions (CRITICAL: pointer-events: none prevents screen freezing!) */
.drawer-backdrop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Modals Overlay (CRITICAL: pointer-events: none prevents invisible screen blocking) */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

/* Toast */
.toast-box {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-box.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Floating WhatsApp Pulse */
@keyframes soft-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-pulse {
  animation: soft-pulse 2.2s infinite;
}

/* Badge Bounce */
@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.badge-bump {
  animation: bump 0.3s ease-in-out;
}

/* Daggo-style Gentle Mascot Float */
@keyframes mascot-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.mascot-gentle-float {
  animation: mascot-float 3.5s ease-in-out infinite;
}

/* Global Custom Styled Dropdown / Select */
select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238C7B74' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  padding-right: 2.25rem !important;
  cursor: pointer !important;
  border-radius: 0.5rem !important;
  transition: all 0.15s ease !important;
}
select:focus {
  border-color: #B9654B !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23B9654B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}


/* MICRO-INTERACTIONS & POLISH */
.taste-pill {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.taste-pill:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #B9654B;
  background-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(74, 48, 40, 0.08);
}

.brand-pill:hover {
  transform: translateY(-1px);
}

.booth-pkg-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.25s ease;
}
.booth-pkg-card:hover {
  transform: translateY(-3px);
}


/* Daggo Perched Mascot Exact Grounding: soles firmly touch card border */
.mascot-grounded {
  transform: translateY(16px) !important;
}
