@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #F59E0B;
  --primary-hover: #D97706;
  --primary-light: #FEF3C7;
  --secondary: #851E28;
  --secondary-dark: #64121B;
  --bg-app: #FAF9F6;
  --surface: #FFFFFF;
  --surface-alt: #F4F3EE;
  --text-main: #1C1917;
  --text-muted: #78716C;
  --border-light: rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FAF9F6;
  color: var(--text-main);
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

.font-bebas {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}

/* -------------------------------------------------------------
   DESKTOP BLOCKER: Absolutely NO Simulator. Pure Mobile-Only Gateway
   ------------------------------------------------------------- */
@media (min-width: 641px) {
  body {
    background: radial-gradient(circle at 50% 30%, #FFF9F0 0%, #EDE9DE 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
  }

  #desktop-warning-overlay {
    display: flex !important;
  }

  #app-root {
    display: none !important;
  }
}

@media (max-width: 640px) {
  #desktop-warning-overlay {
    display: none !important;
  }
  
  #app-root {
    display: flex !important;
  }
}

/* App Canvas (Native Mobile) */
.mobile-app-wrapper {
  background-color: var(--bg-app);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 90px; /* Space for the bottom menu dock */
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* Horizontal Category Scroller */
.category-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 8px 16px;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}

/* -------------------------------------------------------------
   FLOATING ROUNDED BOTTOM NAVIGATION BAR
   Height: ~60px, bottom: 12px, z-index: 60
   ------------------------------------------------------------- */
.bottom-nav-dock {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 410px;
  height: 62px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 36px;
  padding: 6px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 60;
}

/* -------------------------------------------------------------
   CART & PRODUCT FLOATING CARD MODALS
   Positioned strictly ABOVE the bottom menu bar (bottom: 82px)
   so the WhatsApp button is 100% visible and the bottom menu dock
   is also 100% visible beneath it without any overlapping!
   ------------------------------------------------------------- */
.card-floating-modal {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 16px);
  max-width: 420px;
  max-height: calc(100dvh - 100px - env(safe-area-inset-bottom, 0px));
  background: #FFFFFF;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-floating-modal.open {
  transform: translateX(-50%) translateY(0);
}

/* Sticky Action Footer inside modals */
.modal-pinned-footer {
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 14px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

/* Banner Carousel */
.banner-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 24px;
  gap: 12px;
}
.banner-carousel::-webkit-scrollbar {
  display: none;
}
.banner-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* Quantity Button */
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.15s ease;
}
.qty-btn:active {
  transform: scale(0.92);
}

/* Card hover/tap */
.dish-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.dish-card:active {
  transform: scale(0.98);
}
