/* ========================================================
   EGUIS FOOD - MENÚ DIGITAL MÓVIL ESTILO APP
   Brand Colors: Primary Red (#E52521), Amber/Yellow (#FFB703)
   Light Theme Only - Fast Food App UX (McDonald's / Burger King / KFC style)
======================================================== */

:root {
  --primary: #E52521;
  --primary-dark: #C41613;
  --primary-light: #FFECEB;
  --primary-gradient: linear-gradient(135deg, #E52521 0%, #D81B18 100%);
  --secondary: #FFB703;
  --secondary-dark: #FB8500;
  --secondary-light: #FFF8E7;
  --bg-app: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-brand: 0 8px 20px rgba(229, 37, 33, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

*, *::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-main);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* ========================================================
   DESKTOP QR GATE - SHOWN EXCLUSIVELY ON SCREENS > 768px
======================================================== */
#desktop-qr-screen {
  display: none;
}

@media (min-width: 769px) {
  body:not(.force-mobile-view) #desktop-qr-screen {
    display: flex;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 50%, #FFFBEB 100%);
    padding: 24px;
  }

  body:not(.force-mobile-view) #mobile-app-root {
    display: none !important;
  }
}

.qr-card-container {
  max-width: 460px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(229, 37, 33, 0.1), 0 2px 10px rgba(0,0,0,0.04);
  border: 1px solid rgba(229, 37, 33, 0.12);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qr-card-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.desktop-logo-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-brand);
  margin: 0 auto 16px;
  overflow: hidden;
  display: block;
}

.desktop-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.desktop-title span {
  color: var(--primary);
}

.desktop-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}

.qr-code-box {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border: 2px dashed #E2E8F0;
  margin-bottom: 20px;
  position: relative;
}

.qr-code-box svg, .qr-code-box canvas {
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.qr-instruction {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.desktop-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.desktop-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border-radius: 20px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-test-toggle {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  transition: color 0.2s;
}

.desktop-test-toggle:hover {
  color: var(--primary);
}

/* ========================================================
   MOBILE APP WRAPPER (MAX-WIDTH 480px FOR CLEAN MOBILE FEEL)
======================================================== */
#mobile-app-root {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-surface);
  box-shadow: 0 0 35px rgba(0,0,0,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 110px; /* Space for floating bottom nav */
}

/* Simulated mobile frame on desktop when toggled */
body.force-mobile-view {
  background: #E2E8F0;
  padding: 20px 0;
}

body.force-mobile-view #mobile-app-root {
  border-radius: 36px;
  overflow: hidden;
  border: 8px solid #1E293B;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.desktop-preview-banner {
  display: none;
  background: #1E293B;
  color: #F8FAFC;
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.force-mobile-view .desktop-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-exit-preview {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* ========================================================
   TOP BRAND HEADER
======================================================== */
.app-header {
  background: #FFFFFF;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

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

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

.header-logo-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 3px 10px rgba(229, 37, 33, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.header-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.brand-text h1 span {
  color: var(--primary);
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Service Mode Selector: Domicilio / Mesa */
.service-toggle-container {
  background: var(--bg-subtle);
  border-radius: 14px;
  padding: 4px;
  display: flex;
  gap: 4px;
}

.service-toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-toggle-btn .badge-mode {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Location / Info Bar */
.location-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #FFFDF9;
  border-bottom: 1px solid #FEF3C7;
  font-size: 12px;
  color: #92400E;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.delivery-time {
  font-weight: 700;
  background: #FEF3C7;
  padding: 3px 8px;
  border-radius: 12px;
}

/* Stories / Highlights Carousel */
.stories-container {
  padding: 12px 16px 8px;
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  gap: 12px;
  scrollbar-width: none;
}
.stories-container::-webkit-scrollbar { display: none; }

.story-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, border-color 0.15s;
}

.story-pill:hover, .story-pill:active {
  transform: scale(0.97);
  border-color: var(--primary);
}

.story-pill .icon {
  font-size: 14px;
}

.story-pill.highlight {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: #FECDD3;
}

/* ========================================================
   STICKY CATEGORY TABS (WITH CORRESPONDING ICONS)
======================================================== */
.category-nav-wrapper {
  position: sticky;
  top: 93px;
  background: #FFFFFF;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.category-nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 16px;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }

.category-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 24px;
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.category-tab .tab-icon {
  font-size: 16px;
}

.category-tab.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(229, 37, 33, 0.3);
  border-color: var(--primary);
}

/* ========================================================
   SECTIONS & PRODUCT CARDS
======================================================== */
.menu-container {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.section-title .sec-icon {
  font-size: 20px;
}

.section-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 10px;
}

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

/* Fast-food App Product Card */
.product-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 16px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  overflow: hidden;
}

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

.product-card.featured {
  border-color: rgba(229, 37, 33, 0.3);
  box-shadow: 0 4px 14px rgba(229, 37, 33, 0.08);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.badge-tag.smash {
  background: #FEF3C7;
  color: #B45309;
}

.badge-tag.popular {
  background: #FEE2E2;
  color: #B91C1C;
}

.badge-tag.combo {
  background: #E0E7FF;
  color: #4338CA;
}

.badge-tag.promo {
  background: #DCFCE7;
  color: #15803D;
}

/* Favorite Heart Button */
.btn-favorite {
  background: #FFFFFF;
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #94A3B8;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}

.btn-favorite.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: #FECDD3;
  transform: scale(1.08);
}

.product-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.product-ingredients-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.ingredient-chip {
  font-size: 11px;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  color: #475569;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}

/* Bottom Row of Card: Price & CTA */
.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px dashed var(--border-light);
  padding-top: 12px;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.price-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* Variant Selector Pills inside Card (Single / Double) */
.variants-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.variant-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  color: var(--text-main);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.variant-btn.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.variant-btn .v-price {
  font-size: 11px;
  opacity: 0.85;
  display: block;
  font-weight: 600;
}

/* Add to Cart Action Buttons */
.btn-add-cart {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(229, 37, 33, 0.25);
  transition: all 0.15s ease;
}

.btn-add-cart:active {
  transform: scale(0.96);
  background: var(--primary-dark);
}

.btn-add-cart.customizer-trigger {
  background: #FFF1F2;
  color: var(--primary-dark);
  border: 1px solid #FECDD3;
  box-shadow: none;
}

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

/* ========================================================
   SECTION PROMO BANNERS (BETWEEN CATEGORIES)
======================================================== */
.promo-banner {
  border-radius: 20px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid;
}

/* Banner 1: Combos Banner */
.promo-banner.banner-combos {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 40%, #FEF3C7 100%);
  border-color: #FECDD3;
}

/* Banner 2: Bebidas / Extras Banner */
.promo-banner.banner-drinks {
  background: linear-gradient(135deg, #EFF6FF 0%, #FEF3C7 60%, #FFF1F2 100%);
  border-color: #BFDBFE;
}

.banner-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.banner-combos .banner-badge {
  background: var(--primary);
  color: #FFFFFF;
}

.banner-drinks .banner-badge {
  background: #2563EB;
  color: #FFFFFF;
}

.banner-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.banner-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

.banner-cta-btn {
  align-self: flex-start;
  margin-top: 4px;
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid rgba(0,0,0,0.08);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}

.banner-cta-btn:active {
  transform: scale(0.96);
}

/* ========================================================
   FLOATING BOTTOM NAVIGATION BAR (APP STYLE)
======================================================== */
.floating-bottom-nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 16px var(--safe-bottom);
}

.floating-bottom-nav {
  pointer-events: auto;
  max-width: 440px;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 26px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(229, 37, 33, 0.15);
}

.nav-item-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 16px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 60px;
}

.nav-item-btn .nav-icon {
  font-size: 20px;
  line-height: 1;
}

.nav-item-btn.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Badge for Cart and Favorites in Nav */
.nav-badge {
  position: absolute;
  top: 2px;
  right: 10px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 5px rgba(229, 37, 33, 0.4);
  border: 1.5px solid #FFFFFF;
}

.nav-badge.hidden {
  display: none;
}

/* Highlighted Cart Pill in Navigation */
.nav-cart-highlight {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  border-radius: 18px;
  padding: 8px 16px;
  box-shadow: var(--shadow-brand);
}

.nav-cart-highlight .nav-badge {
  background: #FFFFFF;
  color: var(--primary);
  border-color: var(--primary);
}

.nav-cart-highlight.active {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
}

/* ========================================================
   MODALS / BOTTOM SHEETS (CUSTOMIZER & CHECKOUT)
======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.open .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  margin: 12px auto 6px;
  flex-shrink: 0;
}

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

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

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

.sheet-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sheet-footer {
  padding: 16px 20px var(--safe-bottom);
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Customizer Form Elements */
.custom-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-section-title span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.option-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.15s;
}

.option-checkbox-row:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.option-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

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

.custom-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
  resize: none;
  height: 70px;
  outline: none;
}
.custom-textarea:focus {
  border-color: var(--primary);
}

/* Quantity Control */
.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 4px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #FFFFFF;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.stepper-btn:active {
  background: var(--primary-light);
  color: var(--primary);
}

.stepper-val {
  font-size: 16px;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

/* Submit Modal Button */
.btn-submit-action {
  flex: 1;
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
}

.btn-submit-action:active {
  transform: scale(0.98);
}

/* ========================================================
   CHECKOUT DRAWER / ORDER FORM
======================================================== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #FFFFFF;
}

.cart-item-info h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.cart-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-extras {
  font-size: 11px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: 2px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.cart-item-delete {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

/* Checkout Form Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

.form-input, .form-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s;
}

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

/* Mesa Selector Quick Chips */
.mesa-chips-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mesa-chip {
  padding: 8px 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1.5px solid transparent;
  cursor: pointer;
}

.mesa-chip.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* Price Summary Table */
.summary-table {
  background: #F8FAFC;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-light);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

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

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

/* WhatsApp Order Button */
.btn-whatsapp-confirm {
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  padding: 15px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.15s;
}

.btn-whatsapp-confirm:active {
  transform: scale(0.98);
  background: #1EBE5D;
}

/* ========================================================
   FAVORITES VIEW & EMPTY STATES
======================================================== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 4px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.4;
}

/* Toast Notification */
.app-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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