/* ===================================================
   AMERICAN DINER PANAMÁ - DIGITAL MENU WEBAPP STYLES
   Retro Diner Aesthetic | Mobile App First | Light & Clean
   =================================================== */

:root {
  --brand-teal: #1998AA;
  --brand-teal-dark: #127988;
  --brand-teal-light: #EBF8FA;
  --brand-teal-soft: #D4F1F4;
  --brand-red: #E52229;
  --brand-red-dark: #C8151C;
  --brand-red-light: #FDE8E9;
  --brand-yellow: #FBBF24;
  --brand-cream: #FDFBF7;
  
  --bg-body: #F7FAFA;
  --bg-card: #FFFFFF;
  --bg-surface: #FFFFFF;
  
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-light: #E8ECEF;
  --border-brand: #C8EAF0;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-nav: 0 10px 25px -5px rgba(25, 152, 170, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-floating: 0 12px 24px -6px rgba(229, 34, 41, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-diner: 'Impact', 'Trebuchet MS', -apple-system, sans-serif;
}

/* RESET & BASE */
*, *::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-body);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* DESKTOP QR SCREEN (Displays on >= 768px) */
#desktop-qr-view {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, #E6F7FA 0%, #FFFFFF 60%, #FFF5F5 100%);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.desktop-card {
  max-width: 860px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(25, 152, 170, 0.15), 0 0 0 1px var(--border-brand);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.desktop-left {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #F9FEFF 0%, #FFFFFF 100%);
  border-right: 1px solid var(--border-light);
}

.desktop-logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.desktop-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(25, 152, 170, 0.2);
  border: 3px solid #FFFFFF;
}

.desktop-brand-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-teal-dark);
  line-height: 1.1;
}

.desktop-brand-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.desktop-headline {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 12px;
}

.desktop-headline span {
  color: var(--brand-red);
}

.desktop-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.desktop-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.desktop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-teal-light);
  color: var(--brand-teal-dark);
  border: 1px solid var(--border-brand);
}

.desktop-right {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FFFFFF;
}

.qr-box-container {
  padding: 20px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 2px dashed var(--brand-teal);
  margin-bottom: 20px;
  position: relative;
}

#qr-code-target {
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-code-target svg {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.qr-instruction {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-teal-dark);
  margin-bottom: 6px;
}

.qr-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #F8FAFC;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-link:hover {
  background: var(--brand-teal-light);
  border-color: var(--brand-teal);
  color: var(--brand-teal-dark);
}

.desktop-test-pill {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-light);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

/* ===================================================
   MOBILE APP VIEW (< 768px)
   =================================================== */
#mobile-app-view {
  display: none;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-body);
  position: relative;
  padding-bottom: 120px; /* Space for floating bottom nav */
}

/* Breakpoint to switch between Desktop QR and Mobile App */
@media (max-width: 767px) {
  #desktop-qr-view {
    display: none !important;
  }
  #mobile-app-view {
    display: block !important;
  }
}

/* When forced simulation mode is enabled on desktop */
body.force-mobile #desktop-qr-view {
  display: none !important;
}
body.force-mobile #mobile-app-view {
  display: block !important;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
}

/* MOBILE APP HEADER */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

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

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

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

.header-title-block h1 {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-teal-dark);
  line-height: 1.1;
}

.header-title-block p {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.3px;
}

/* Service Mode Pill (Mesa vs Domicilio) */
.order-mode-toggle {
  display: flex;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border-light);
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-btn.active {
  background: #FFFFFF;
  color: var(--brand-teal-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-btn.active.domicilio {
  color: var(--brand-red);
}

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

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: #FFFFFF;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(25, 152, 170, 0.12);
}

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

/* Info Bar (Sede & Mesa/Domicilio Active Info) */
.active-context-bar {
  background: var(--brand-teal-light);
  border-bottom: 1px solid var(--border-brand);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.context-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand-teal-dark);
}

.context-right-btn {
  background: none;
  border: none;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

/* CATEGORIES HORIZONTAL BAR */
.categories-nav {
  position: sticky;
  top: 110px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--border-light);
}

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

.cat-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cat-chip .cat-icon {
  font-size: 15px;
}

.cat-chip:hover {
  background: #F8FAFC;
}

.cat-chip.active {
  background: var(--brand-teal);
  color: #FFFFFF;
  border-color: var(--brand-teal);
  box-shadow: 0 3px 8px rgba(25, 152, 170, 0.25);
}

/* HERO WELCOME BANNER */
.hero-welcome {
  margin: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1DA7B8 0%, #137785 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-welcome::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.4;
}

/* PROMOTIONAL BANNERS BETWEEN CATEGORIES */
.category-promo-banner {
  margin: 20px 16px;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

.category-promo-banner.theme-red {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEB 100%);
  border-color: #FECACA;
}

.category-promo-banner.theme-teal {
  background: linear-gradient(135deg, #F0FDF4 0%, #E6F7FA 100%);
  border-color: var(--border-brand);
}

.category-promo-banner.theme-gold {
  background: linear-gradient(135deg, #FEFCE8 0%, #FEF9C3 100%);
  border-color: #FDE047;
}

.promo-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--brand-red);
  color: #FFFFFF;
}

.category-promo-banner.theme-teal .promo-tag {
  background: var(--brand-teal);
}

.promo-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.promo-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* SECTION HEADERS */
.category-section {
  padding: 0 16px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brand-teal-light);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.section-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-teal-dark);
  background: var(--brand-teal-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* DISH CARDS GRID */
.dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dish-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 12px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.dish-card:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-md);
}

.dish-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dish-header-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

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

.dish-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--brand-red-light);
  color: var(--brand-red);
  margin-bottom: 4px;
}

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

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

.dish-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-red);
}

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

/* Image column */
.dish-media {
  position: relative;
  width: 108px;
  height: 96px;
  border-radius: var(--radius-sm);
  background: #FDFBF7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #F1EFEA;
}

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

.dish-card:hover .dish-img {
  transform: scale(1.05);
}

/* If dish has no image (e.g. drinks), render clean graphic typography card */
.dish-no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F0FDF4 0%, #E6F7FA 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  font-size: 32px;
}

/* Favorite Heart Button */
.btn-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  z-index: 2;
}

.btn-fav.active {
  color: var(--brand-red);
  background: #FFFFFF;
}

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

/* Quick Add button */
.btn-quick-add {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(25, 152, 170, 0.3);
  transition: all 0.2s ease;
}

.btn-quick-add:active {
  transform: scale(0.9);
  background: var(--brand-teal-dark);
}

/* ===================================================
   FLOATING CART QUICK BAR (Like McDonald's / KFC app)
   =================================================== */
.floating-cart-pill {
  position: fixed;
  bottom: 84px; /* Sits right above floating bottom nav */
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 32px);
  max-width: 468px;
  background: linear-gradient(135deg, var(--brand-red) 0%, #D4151C 100%);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-floating);
  z-index: 50;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-pill.visible {
  transform: translateX(-50%) translateY(0);
}

.cart-pill-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-pill-count {
  background: #FFFFFF;
  color: var(--brand-red);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.cart-pill-text {
  font-size: 14px;
  font-weight: 700;
}

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

/* ===================================================
   FLOATING APP-STYLE BOTTOM NAVIGATION BAR
   (McDonald's, KFC, Burger King Inspired)
   =================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 472px;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--shadow-nav);
  border: 1px solid var(--border-brand);
  z-index: 60;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-tab-btn {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 18px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #64748B;
  flex: 1;
}

.nav-tab-btn .tab-icon {
  font-size: 20px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.nav-tab-btn .tab-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-tab-btn.active {
  color: var(--brand-teal-dark);
}

.nav-tab-btn.active .tab-icon {
  transform: translateY(-2px) scale(1.1);
  color: var(--brand-teal);
}

/* Active indicator pill */
.nav-tab-btn.active::before {
  content: '';
  position: absolute;
  top: 4px;
  width: 24px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--brand-red);
}

/* Dynamic counter badge on Mi Pedido or Favoritos */
.nav-badge {
  position: absolute;
  top: 2px;
  right: 18px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  border: 2px solid #FFFFFF;
  line-height: 1.2;
}

/* ===================================================
   MODALS (Dish Customization & Cart Checkout)
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

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

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

.drawer-grabber {
  width: 44px;
  height: 5px;
  background: #CBD5E1;
  border-radius: var(--radius-full);
  margin: 10px auto 4px;
}

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

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

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

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 16px 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* Modal Dish Details */
.modal-dish-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #FFFDF9;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.modal-dish-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

/* Option Groups */
.option-group {
  margin-bottom: 18px;
  background: #F8FAFC;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

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

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

.choice-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-label input {
  accent-color: var(--brand-teal);
  margin-right: 8px;
}

.choice-label.selected {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
  color: var(--brand-teal-dark);
}

/* Quantity controls in drawer */
.qty-footer-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-counter {
  display: flex;
  align-items: center;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  padding: 4px;
}

.btn-qty {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-num {
  width: 32px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.btn-add-to-order {
  flex: 1;
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(229, 34, 41, 0.3);
}

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

/* ===================================================
   CHECKOUT & WHATSAPP CONFIRMATION FORM
   =================================================== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

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

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

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

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

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-red);
  margin-left: 10px;
}

.cart-item-delete {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  margin-left: 8px;
  padding: 4px;
}

.cart-item-delete:hover {
  color: var(--brand-red);
}

/* Checkout Form Fields */
.checkout-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 16px;
  margin-bottom: 10px;
}

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

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

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: #FFFFFF;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(25, 152, 170, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

/* Price summary */
.price-breakdown {
  margin-top: 16px;
  padding: 14px;
  background: var(--brand-teal-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-brand);
}

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

.price-row.total-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-brand);
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-teal-dark);
}

.total-row span:last-child {
  color: var(--brand-red);
  font-size: 18px;
}

.btn-confirm-whatsapp {
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  margin-top: 12px;
}

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

/* TOAST NOTIFICATION */
.toast-notice {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--text-main);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 150;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

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

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

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

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

.empty-state-desc {
  font-size: 13px;
}
