/* ==========================================================================
   38 GRADOS - MENÚ DIGITAL & PEDIDOS MÓVILES
   Valle de la Pascua, Guárico, Venezuela
   Estilo: Clean Light Modern Mobile App
   ========================================================================== */

:root {
  /* Brand Palette - Clean Light with Warm Flame Accents */
  --color-primary: #E65100;
  --color-primary-light: #FF7043;
  --color-primary-dark: #BF360C;
  --color-primary-bg: #FFF3E0;
  --color-accent: #FFA000;
  --color-accent-light: #FFD54F;
  --color-gold: #D4AF37;

  /* Neutrals (Strict Light Mode) */
  --bg-app: #F8F8F5;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F3F3EE;
  --bg-muted: #EBEBE5;

  /* Typography Colors */
  --text-main: #191716;
  --text-body: #4A4643;
  --text-muted: #827C75;
  --text-light: #A39E98;
  --text-white: #FFFFFF;

  /* Status */
  --status-open: #10B981;
  --status-open-bg: #ECFDF5;
  --color-heart: #E53935;
  --color-heart-bg: #FFEBEE;

  /* Borders & Shadows */
  --border-subtle: #EFEFEA;
  --border-card: #E8E7E0;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-active: 0 4px 14px rgba(230, 81, 0, 0.35);

  --font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
  --safe-top: env(safe-area-inset-top, 0px);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hide scrollbars for slick mobile app look */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   DESKTOP QR GATE / VIEWPORT BLOCKER
   Shown on screen width >= 769px unless mobile simulator is toggled
   ========================================================================== */

#desktop-gate {
  display: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, #FFFDF7 0%, #F5F3EC 60%, #E8E5DA 100%);
  z-index: 999999;
  overflow-y: auto;
  padding: 40px 24px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  body:not(.simulate-mobile) #desktop-gate {
    display: flex;
  }
  body:not(.simulate-mobile) #app-shell {
    display: none;
  }
  /* When desktop user toggles mobile preview */
  body.simulate-mobile {
    background-color: #1A1A1A;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
  }
  body.simulate-mobile #desktop-gate {
    display: none;
  }
  body.simulate-mobile #app-shell {
    display: block;
    width: 412px;
    height: 890px;
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 10px #2D2D2D, 0 0 0 12px #444444;
    overflow-y: auto;
    position: relative;
    background: var(--bg-app);
  }
  body.simulate-mobile .simulator-exit-btn {
    display: flex !important;
  }
}

.simulator-exit-btn {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  z-index: 1000000;
  box-shadow: var(--shadow-md);
  align-items: center;
  gap: 8px;
}

.gate-card {
  background: var(--bg-surface);
  max-width: 500px;
  width: 100%;
  border-radius: 32px;
  padding: 40px 36px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(230, 81, 0, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gate-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #E65100, #FFA000, #FFD54F, #E65100);
}

.gate-logo-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #FFA000, #E65100);
  box-shadow: 0 8px 24px rgba(230, 81, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #FFF;
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.gate-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.gate-subtitle {
  font-size: 15px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.gate-qr-box {
  background: #FFFFFF;
  border: 2px dashed #E5E1D8;
  border-radius: 24px;
  padding: 20px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}

#gate-qrcode-canvas {
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

.gate-instructions {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 24px;
  padding: 0 10px;
}

.gate-instructions strong {
  color: var(--text-main);
}

.gate-meta-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.gate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.gate-simulate-btn {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gate-simulate-btn:hover {
  background: var(--bg-subtle);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
}

/* ==========================================================================
   MOBILE APP SHELL
   ========================================================================== */

#app-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-app);
  position: relative;
  padding-bottom: 110px; /* space for floating bottom nav */
}

/* Top App Bar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  transition: box-shadow 0.2s ease;
}

.app-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-mini {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.brand-location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--status-open-bg);
  color: var(--status-open);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--status-open);
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Modality Segmented Pill */
.modality-container {
  padding: 0 16px 12px;
}

.modality-switch {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-full);
  position: relative;
  border: 1px solid var(--border-subtle);
}

.modality-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
}

.modality-tab.active {
  background: #FFFFFF;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Search Bar */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 40px;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.search-input:focus {
  background: #FFFFFF;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  display: none;
}

.search-clear-btn.visible {
  display: block;
}

/* ==========================================================================
   PROMOTIONAL HERO CAROUSEL
   ========================================================================== */

.hero-section {
  padding: 14px 16px 6px;
}

.hero-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.hero-slide {
  flex: 0 0 88%;
  scroll-snap-align: center;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBF5 100%);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-slide:active {
  transform: scale(0.98);
}

.hero-slide-info {
  flex: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}

.hero-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}

.hero-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.hero-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
}

.hero-action-btn {
  background: var(--color-primary);
  color: #FFF;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3);
}

.hero-image-wrap {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   CATEGORY HORIZONTAL SCROLL PILLS
   ========================================================================== */

.categories-section {
  position: sticky;
  top: 112px;
  z-index: 90;
  background: rgba(248, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px;
  margin-bottom: 8px;
}

.categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 0;
}

.category-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.category-chip:active {
  transform: scale(0.96);
}

.category-chip.active {
  background: linear-gradient(135deg, #FF6F00, #E65100);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-active);
}

.category-icon {
  font-size: 15px;
}

/* ==========================================================================
   MENU LIST & DISH CARDS
   ========================================================================== */

.menu-section {
  padding: 8px 16px 24px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.section-counter {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dish-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 12px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dish-card:active {
  transform: scale(0.99);
}

.dish-media {
  width: 105px;
  height: 105px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--bg-subtle);
}

.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dish-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(230, 81, 0, 0.92);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Favorite Heart Button */
.fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-light);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fav-btn.favorited {
  color: var(--color-heart);
  background: #FFF;
  transform: scale(1.1);
}

.fav-btn:active {
  transform: scale(0.85);
}

.dish-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.dish-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
}

.dish-description {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dish-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.3px;
}

.dish-price-prefix {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.add-dish-btn {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border: 1px solid rgba(230, 81, 0, 0.2);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-dish-btn:hover,
.add-dish-btn:active {
  background: var(--color-primary);
  color: #FFFFFF;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-surface);
  border-radius: 24px;
  border: 1px dashed var(--border-card);
}

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

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto 16px;
}

.empty-btn {
  background: var(--color-primary);
  color: #FFF;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* ==========================================================================
   ROUNDED FLOATING BOTTOM NAVIGATION BAR
   With active circular indicator
   ========================================================================== */

.bottom-nav-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding-bottom: calc(var(--safe-bottom) + 8px);
}

.bottom-nav-dock {
  pointer-events: auto;
  width: 92%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 34px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.nav-icon-wrap {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  transition: transform 0.25s ease;
}

/* Active tab enclosed in circular brand indicator */
.nav-item.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-item.active .nav-icon-wrap {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #FF6F00, #E65100);
  border-radius: 50%;
  color: #FFFFFF;
  box-shadow: var(--shadow-active);
  transform: translateY(-4px) scale(1.08);
}

.nav-item.active .nav-label {
  font-weight: 700;
  color: var(--color-primary);
}

.nav-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--color-primary);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFF;
}

.nav-item.active .nav-badge {
  top: -2px;
  right: -2px;
  background: #FFF;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ==========================================================================
   MODAL / BOTTOM SHEET (Options & Customizations)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2100;
  background: #FFFFFF;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  margin: 0 auto;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.modal-sheet.open {
  transform: translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  margin: 10px auto 4px;
}

.sheet-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.sheet-close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
}

.sheet-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.sheet-dish-hero {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.sheet-dish-img {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  object-fit: cover;
}

.sheet-dish-meta {
  flex: 1;
}

.sheet-dish-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sheet-dish-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.sheet-dish-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}

/* Option Groups */
.option-group {
  margin-bottom: 18px;
  background: var(--bg-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
}

.option-group-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.option-required-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item.selected {
  border-color: var(--color-primary);
  background: #FFFBF5;
}

.option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.option-item.selected .radio-circle {
  border-color: var(--color-primary);
}

.option-item.selected .radio-circle::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--color-primary);
  border-radius: 50%;
}

.option-price-diff {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

/* Special Instructions */
.notes-input {
  width: 100%;
  min-height: 60px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  resize: none;
  margin-top: 6px;
}

.notes-input:focus {
  border-color: var(--color-primary-light);
}

/* Quantity Stepper & Sheet Footer */
.sheet-footer {
  padding: 14px 20px calc(var(--safe-bottom) + 14px);
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.qty-btn:active {
  transform: scale(0.92);
}

.qty-value {
  width: 32px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.sheet-add-btn {
  flex: 1;
  background: linear-gradient(135deg, #FF6F00, #E65100);
  color: #FFFFFF;
  border: none;
  padding: 14px 18px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-active);
  transition: transform 0.2s ease;
}

.sheet-add-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   CART DRAWER & ORDER CONFIRMATION
   ========================================================================== */

#cart-sheet {
  max-height: 92vh;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #FFF;
}

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

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cart-item-details {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 2px;
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.cart-qty-btn:active {
  transform: scale(0.9);
}

.cart-qty-btn.cart-del-btn {
  color: var(--color-heart);
  font-size: 13px;
}

/* Floating Quick Cart Bar */
.floating-cart-bar {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: 92%;
  max-width: 430px;
  background: linear-gradient(135deg, #FF6F00, #E65100);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(230, 81, 0, 0.45);
  z-index: 995;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.floating-cart-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-cart-bar:active {
  transform: translateX(-50%) translateY(2px) scale(0.99);
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}

.floating-cart-badge {
  background: #FFFFFF;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.floating-cart-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
}

/* Modality Specific Form Fields */
.order-form-box {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.form-box-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-field {
  margin-bottom: 12px;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 5px;
}

.form-label span.req {
  color: var(--color-primary);
}

.form-input, .form-select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
  background: #FFFFFF;
  border-color: var(--color-primary);
}

.cart-summary {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-body);
  margin-bottom: 6px;
}

.summary-row.total-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-card);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.summary-row.total-row .total-amount {
  color: var(--color-primary);
}

/* WhatsApp Dispatch Button */
.whatsapp-checkout-btn {
  width: 100%;
  background: #25D366;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF;
  border: none;
  padding: 16px 20px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}

.whatsapp-checkout-btn:active {
  transform: scale(0.98);
}

.whatsapp-icon {
  font-size: 20px;
}

/* Floating WhatsApp Quick Action on main screen */
.floating-whatsapp-pill {
  position: fixed;
  bottom: 84px;
  right: 16px;
  z-index: 990;
  background: #25D366;
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}

.floating-whatsapp-pill:active {
  transform: scale(0.95);
}

/* Toast Notifications */
.app-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #1C1917;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  z-index: 99999;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  white-space: nowrap;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
