/* ==========================================================================
   BURGER INC - Digital Menu WebApp Styles
   Light theme, minimalist premium mobile app design
   ========================================================================== */

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

:root {
  --brand-primary: #F59E0B;
  --brand-primary-dark: #D97706;
  --brand-primary-light: #FEF3C7;
  --brand-accent: #B45309;
  --brand-dark: #1F2937;
  --brand-text: #111827;
  --brand-text-secondary: #4B5563;
  --brand-muted: #9CA3AF;
  --brand-bg: #F9FAFB;
  --brand-card: #FFFFFF;
  --brand-border: #F3F4F6;
  --brand-border-dark: #E5E7EB;
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #1EBE5D;
  --danger: #EF4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px 0 rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.09);
  --shadow-brand: 0 8px 20px -4px rgba(245, 158, 11, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-menu-title: 'Rye', 'Bebas Neue', cursive, sans-serif;
  --font-menu-dish: 'Bebas Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-body);
  background-color: var(--brand-bg);
  color: var(--brand-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   DESKTOP BLOCKER / QR VIEW
   Requirement: "no debe abrir desde una version desktop solo desde el smartPhone,
   no crees un simulador en version desktop, solo un QR que redirija a la version movile"
   ========================================================================== */
#desktop-blocker {
  display: none;
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #FFFBEB 0%, #F9FAFB 50%, #FEF3C7 100%);
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
}

.desktop-card {
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.1);
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(245, 158, 11, 0.15);
  position: relative;
}

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

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

.desktop-card h1 {
  font-family: var(--font-menu-dish);
  font-size: 2.2rem;
  letter-spacing: 1px;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.desktop-card .desktop-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.desktop-qr-container {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: inset 0 0 0 1px #E5E7EB, var(--shadow-sm);
  margin-bottom: 20px;
  position: relative;
}

#desktop-qr-canvas {
  display: block;
  border-radius: 12px;
}

.desktop-card p.desktop-instruction {
  font-size: 0.95rem;
  color: var(--brand-text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.desktop-card .desktop-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
}

.desktop-card .desktop-features span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-location-info {
  border-top: 1px solid var(--brand-border-dark);
  padding-top: 16px;
  font-size: 0.8rem;
  color: var(--brand-muted);
  line-height: 1.4;
}

.desktop-preview-btn {
  margin-top: 14px;
  background: transparent;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary-dark);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.desktop-preview-btn:hover {
  background: var(--brand-primary-light);
}

/* ==========================================================================
   MOBILE WEBAPP CONTAINER
   ========================================================================== */
#mobile-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--brand-bg);
  padding-bottom: 110px; /* Space for bottom nav */
}

/* TOP APP BAR */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.app-brand-text h1 {
  font-family: var(--font-menu-dish);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--brand-dark);
}

.app-brand-text .app-location-pill {
  font-size: 0.72rem;
  color: var(--brand-accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

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

/* ==========================================================================
   HERO BANNER
   Requirement: "crea un banner que haga referencia a los platos al inicio del menu"
   ========================================================================== */
.hero-banner {
  margin: 16px 16px 20px 16px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEB 60%, #FEF3C7 100%);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-banner-content {
  flex: 1;
  z-index: 2;
  padding-right: 12px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-menu-dish);
  font-size: 1.8rem;
  line-height: 1.05;
  color: var(--brand-dark);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 0.8rem;
  color: var(--brand-text-secondary);
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 12px;
}

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

.hero-pill {
  background: #FFFFFF;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.hero-image-wrap {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
  animation: floatDish 4s ease-in-out infinite;
}

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

/* ==========================================================================
   CATEGORY BAR WITH ICONS
   Requirement: "las categorias deben ser a traves de iconos"
   ========================================================================== */
.category-nav-wrapper {
  position: sticky;
  top: 66px;
  z-index: 95;
  background: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid var(--brand-border-dark);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.category-tab .tab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.category-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}

/* ==========================================================================
   INTERMEDIATE CATEGORY BANNERS
   Requirement: "usa un banner entre cada categoria que haga referencia a esa categoria"
   ========================================================================== */
.category-banner {
  margin: 28px 16px 16px 16px;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-banner.banner-perros {
  background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%);
  border-color: rgba(234, 88, 12, 0.2);
}

.category-banner.banner-picadas {
  background: linear-gradient(135deg, #FEF2F2 0%, #FECACA 100%);
  border-color: rgba(239, 68, 68, 0.2);
}

.category-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-banner-text {
  flex: 1;
}

.category-banner-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-dark);
  display: inline-block;
  margin-bottom: 4px;
}

.category-banner-title {
  font-family: var(--font-menu-dish);
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

.category-banner-desc {
  font-size: 0.76rem;
  color: var(--brand-text-secondary);
  font-weight: 500;
  line-height: 1.35;
}

.category-banner-icon {
  font-size: 2.4rem;
  margin-left: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   MENU SECTIONS & DISH CARDS
   Clean white background for dish images, menu typography
   ========================================================================== */
.menu-section {
  padding: 16px 16px 8px 16px;
}

.menu-section-header {
  margin-bottom: 14px;
  padding-left: 4px;
}

.menu-section-title {
  font-family: var(--font-menu-title);
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.dish-card {
  background: var(--brand-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.dish-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 158, 11, 0.25);
}

/* Dish Image Container - PURE CLEAN WHITE BACKGROUND */
.dish-image-container {
  width: 100%;
  height: 200px;
  background-color: #FFFFFF; /* Pure clean white */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #F3F4F6;
}

.dish-image-container img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.dish-card:hover .dish-image-container img {
  transform: scale(1.04);
}

.dish-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(31, 41, 55, 0.9);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

/* Favorite Heart Button */
.dish-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--brand-border-dark);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9CA3AF;
  font-size: 1.1rem;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

.dish-fav-btn.is-favorite {
  color: #EF4444;
  border-color: #FCA5A5;
  background: #FEF2F2;
  transform: scale(1.05);
}

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

/* Dish Info */
.dish-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.dish-name {
  font-family: var(--font-menu-dish);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--brand-dark);
  letter-spacing: 0.5px;
}

.dish-subname {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.dish-description {
  font-size: 0.82rem;
  color: var(--brand-text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.dish-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--brand-border-dark);
}

/* Price Brush Style inspired by menu */
.dish-price-wrap {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #FDE68A 0%, #FCD34D 100%);
  padding: 4px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
  transform: rotate(-1deg);
}

.dish-price {
  font-family: var(--font-menu-dish);
  font-size: 1.35rem;
  line-height: 1;
  color: #1F2937;
  letter-spacing: 0.5px;
}

.add-to-cart-btn {
  background: var(--brand-primary);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

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

/* ==========================================================================
   FAVORITES EMPTY STATE & VIEW
   ========================================================================== */
.empty-favorites {
  text-align: center;
  padding: 48px 24px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--brand-border-dark);
  margin: 16px 0;
}

.empty-favorites .empty-icon {
  font-size: 3rem;
  color: #D1D5DB;
  margin-bottom: 12px;
}

.empty-favorites h3 {
  font-size: 1.1rem;
  color: var(--brand-dark);
  margin-bottom: 6px;
}

.empty-favorites p {
  font-size: 0.85rem;
  color: var(--brand-text-secondary);
}

/* ==========================================================================
   BUSINESS LOCATION CARD
   Requirement: "Usa los datos de ubicacion del negocio"
   ========================================================================== */
.location-section {
  margin: 24px 16px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
}

.location-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.location-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary-light);
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.location-header-text h3 {
  font-family: var(--font-menu-dish);
  font-size: 1.35rem;
  color: var(--brand-dark);
  line-height: 1;
}

.location-header-text span {
  font-size: 0.75rem;
  color: var(--brand-text-secondary);
  font-weight: 600;
}

.location-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.location-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--brand-dark);
  line-height: 1.4;
}

.location-detail-item .icon {
  font-size: 1rem;
  color: var(--brand-primary-dark);
  margin-top: 1px;
}

.location-actions {
  display: flex;
  gap: 10px;
}

.location-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.location-btn.btn-maps {
  background: #F3F4F6;
  color: var(--brand-dark);
}

.location-btn.btn-maps:hover {
  background: #E5E7EB;
}

.location-btn.btn-instagram {
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
  color: #FFFFFF;
}

/* ==========================================================================
   BOTTOM APP NAVIGATION BAR
   Requirements:
   - "añade un menu estilo app que vaya de acuerdo a los colores de la marca en la parte inferior"
   - "la barra de menu inferior debe tener bordes redondeados"
   - "a medida que voy seleccionando un item del menu debe encerrarse en un circulo del color de la marca"
   ========================================================================== */
.bottom-nav-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px;
  pointer-events: none;
}

.bottom-nav-bar {
  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: 40px; /* BORDES REDONDEADOS */
  box-shadow: 0 12px 35px -6px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 12px;
  position: relative;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 4px;
  transition: all 0.25s ease;
  min-width: 60px;
}

.nav-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--brand-muted);
}

.nav-icon-wrapper svg,
.nav-icon-wrapper .icon-glyph {
  font-size: 1.25rem;
  transition: all 0.25s ease;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand-muted);
  margin-top: 2px;
  transition: all 0.25s ease;
}

/* REQUIREMENT: "a medida que voy seleccionando un item del menu debe encerrarse en un circulo del color de la marca" */
.nav-item.active .nav-icon-wrapper {
  background: var(--brand-primary); /* CÍRCULO DEL COLOR DE LA MARCA */
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
  transform: translateY(-4px) scale(1.08);
}

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

/* Badge for cart & favorites */
.nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 0.65rem;
  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(239, 68, 68, 0.4);
}

/* ==========================================================================
   ORDER MODAL / CART DRAWER
   Requirements:
   - "pedidos en dos modalidades en la mesa y a domiclio"
   - "confirmacion a WS"
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

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

.modal-overlay.active .cart-drawer {
  transform: translateY(0);
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--brand-border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.drawer-drag-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
}

.drawer-title {
  font-family: var(--font-menu-dish);
  font-size: 1.5rem;
  color: var(--brand-dark);
  letter-spacing: 0.5px;
}

.drawer-close-btn {
  background: #F3F4F6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--brand-dark);
  font-size: 1.1rem;
}

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

/* Modality Selector (En Mesa vs A Domicilio) */
.modality-selector-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.modality-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: var(--radius-md);
}

.modality-btn {
  background: transparent;
  border: none;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.modality-btn.active {
  background: #FFFFFF;
  color: var(--brand-primary-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Modality Specific Input Forms */
.order-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--brand-border-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--brand-dark);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Cart Items List */
.cart-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  background: #F9FAFB;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border);
}

.cart-item-img {
  width: 50px;
  height: 50px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid #E5E7EB;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-family: var(--font-menu-dish);
  font-size: 1.1rem;
  color: var(--brand-dark);
  line-height: 1.1;
}

.cart-item-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--brand-border-dark);
  background: #FFFFFF;
  color: var(--brand-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn:active {
  background: #E5E7EB;
}

.qty-display {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

/* Drawer Footer */
.drawer-footer {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)) 20px;
  border-top: 1px solid var(--brand-border-dark);
  background: #FFFFFF;
}

.drawer-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.drawer-total-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-text-secondary);
}

.drawer-total-amount {
  font-family: var(--font-menu-dish);
  font-size: 1.6rem;
  color: var(--brand-dark);
  letter-spacing: 0.5px;
}

.whatsapp-order-btn {
  width: 100%;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  border: none;
  padding: 14px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.whatsapp-order-btn:hover {
  background: var(--whatsapp-green-dark);
}

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

.whatsapp-icon-svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  pointer-events: none;
}

.toast {
  background: rgba(31, 41, 55, 0.95);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastFade 2.5s forwards ease;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translateY(-10px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}
