/* ==========================================================================
   SMASH BURGER - DIGITAL MENU WEBAPP STYLES
   Style: Mobile App (McDonald's / KFC / Burger King Inspired)
   Theme: Light / Warm Brand Colors (No Dark Theme)
   Palette: Smash Red (#D32323), Cheese Gold (#F59E0B), Cream (#FAF7F2), White (#FFF)
   ========================================================================== */

:root {
  --color-primary: #D32323;
  --color-primary-dark: #B91C1C;
  --color-primary-light: #FEE2E2;
  --color-accent: #F59E0B;
  --color-accent-light: #FEF3C7;
  --color-bg: #FAF7F2;
  --color-bg-card: #FFFFFF;
  --color-text-main: #1C1917;
  --color-text-muted: #78716C;
  --color-text-subtle: #A8A29E;
  --color-border: #EFE9DF;
  --color-border-dark: #E2D9CC;
  --color-success: #16A34A;
  --color-success-light: #DCFCE7;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Impact", "Arial Black", -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 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.04);
  --shadow-floating: 0 12px 28px -4px rgba(211, 35, 35, 0.25), 0 6px 12px -2px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   DESKTOP QR CODE SCREEN (Screen width > 768px)
   Per user instructions:
   "debe funcionar solamente en version movil, la version de escritorio
   debe tener un codigo QR para escanear y dirigir al menu, no debes crear
   un demo en la version desktop solo version movile"
   ========================================================================== */

#desktop-qr-container {
  display: none;
}

@media (min-width: 769px) {
  body:not(.preview-mode) #desktop-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2.5rem 1.5rem;
    background: radial-gradient(circle at 50% 20%, #FFFDF9 0%, #FAF5ED 60%, #F5ECE0 100%);
    text-align: center;
    position: relative;
    overflow-x: hidden;
  }

  body:not(.preview-mode) #mobile-app-container {
    display: none !important;
  }
}

.desktop-card {
  max-width: 480px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px -10px rgba(211, 35, 35, 0.12), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
  border: 2px solid #F3EAE0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.desktop-logo-wrap {
  width: 110px;
  height: 110px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  border: 4px solid #FAF7F2;
  overflow: hidden;
}

.desktop-logo-wrap img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.desktop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.desktop-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

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

.desktop-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.6rem;
  max-width: 380px;
}

.qr-code-box {
  background: #FFFFFF;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 2px dashed #E2D9CC;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code-svg-wrap {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-svg-wrap svg {
  width: 100%;
  height: 100%;
}

.qr-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.6rem;
}

.desktop-features {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.desktop-feat-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #44403C;
  background: #FAF5ED;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid #EFE8DE;
}

.desktop-preview-btn {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.desktop-preview-btn:hover {
  background: #FAF5ED;
  color: var(--color-text-main);
  border-color: var(--color-primary);
}

/* ==========================================================================
   MOBILE WEBAPP CONTAINER (Max 520px on mobile screens)
   ========================================================================== */

#mobile-app-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--color-bg);
  padding-bottom: 110px; /* Space for floating bottom nav */
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #FFFFFF;
  border: 2px solid var(--color-primary-light);
  padding: 2px;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.1;
}

.brand-text p {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* Order Mode Selector Pill */
.order-mode-toggle {
  display: flex;
  background: #F3ECE2;
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid #E5DC CE;
}

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

.mode-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(211, 35, 35, 0.3);
}

/* Order Mode Notice Bar */
.order-mode-notice {
  margin-top: 0.5rem;
  background: #FFF8E7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #92400E;
  font-weight: 600;
}

.notice-action-btn {
  background: #FFFFFF;
  border: 1px solid #F59E0B;
  color: #B45309;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* Search bar */
.search-container {
  padding: 0.75rem 1rem 0.25rem 1rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--color-text-subtle);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  padding: 0.65rem 0.9rem 0.65rem 2.4rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-text-main);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(211, 35, 35, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  background: #E5DC CE;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
}

/* Promo Hero Story / Carousel Banner */
.promo-hero-section {
  padding: 0.6rem 1rem;
}

.promo-card {
  background: linear-gradient(135deg, #D32323 0%, #A81B1B 100%);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px -4px rgba(211, 35, 35, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.promo-badge {
  display: inline-block;
  background: #F59E0B;
  color: #1C1917;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.promo-card h2 {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.promo-card p {
  font-size: 0.78rem;
  opacity: 0.92;
  margin-bottom: 0.6rem;
  max-width: 230px;
  line-height: 1.3;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FFFFFF;
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 800;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

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

.promo-thumb {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Category Horizontal Sticky Tabs with Icons */
.categories-nav-sticky {
  position: sticky;
  top: 61px;
  z-index: 90;
  background: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.categories-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

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

.cat-tab-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  color: var(--color-text-main);
  border: 1.5px solid var(--color-border);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.cat-tab-btn .cat-icon {
  font-size: 1rem;
  line-height: 1;
}

.cat-tab-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 3px 10px rgba(211, 35, 35, 0.3);
}

/* Category Section Banners (Between Each Category) */
.section-banner {
  margin: 1.75rem 1rem 0.85rem 1rem;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.section-banner-content {
  position: relative;
  z-index: 2;
}

.section-banner-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.3rem;
}

.section-banner-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.section-banner-desc {
  font-size: 0.8rem;
  opacity: 0.92;
  line-height: 1.35;
}

/* Category Header in Feed */
.category-header {
  padding: 0.8rem 1rem 0.4rem 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.category-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Product Grid / Feed */
.products-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.25rem 1rem;
}

/* Product Card - Clean White Style */
.product-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  padding: 0.9rem;
  display: flex;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.product-card:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.product-card.is-favorite {
  border-color: #FECACA;
}

/* Card Image Area (White Background) */
.product-img-wrap {
  width: 105px;
  height: 105px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  border: 1px solid #F5EFE6;
  overflow: hidden;
}

.product-img-wrap img {
  width: 95%;
  height: 95%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

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

/* Typography Badge when no photo */
.product-icon-wrap {
  width: 80px;
  height: 80px;
  background: #FFF9F2;
  border-radius: var(--radius-md);
  border: 1.5px dashed #EADDCE;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.2rem;
}

.product-icon-wrap .icon-glyph {
  font-size: 2rem;
  line-height: 1;
}

.product-icon-wrap .icon-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Card Info Area */
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.product-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.product-fav-btn {
  background: #FAF7F2;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A8A29E;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.product-fav-btn.active {
  color: #E11D48;
  background: #FFE4E6;
  transform: scale(1.1);
}

.product-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.product-slogan {
  font-size: 0.72rem;
  font-weight: 700;
  color: #B45309;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-desc {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

/* Card Bottom Row */
.product-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.price-solo {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.price-combo-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.add-btn {
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(211, 35, 35, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

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

/* Empty State (for Favorites / Search) */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
}

.empty-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--color-text-main);
}

.empty-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 280px;
  margin-bottom: 1.2rem;
}

.empty-btn {
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ==========================================================================
   FLOATING BOTTOM NAVIGATION BAR (McDonald's / KFC App Style)
   ========================================================================== */

.bottom-nav-floating {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px;
  box-shadow: var(--shadow-floating);
  border: 1.5px solid rgba(211, 35, 35, 0.18);
  padding: 0.45rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
}

.nav-tab-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  color: #78716C;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 68px;
}

.nav-tab-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-tab-item.active {
  color: var(--color-primary);
  background: #FFF1F1;
}

.nav-tab-item.active .nav-icon {
  transform: scale(1.15);
}

/* Floating Cart Badge */
.cart-badge {
  position: absolute;
  top: 1px;
  right: 12px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 5px rgba(211, 35, 35, 0.4);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge.has-items {
  transform: scale(1);
}

/* ==========================================================================
   PRODUCT CUSTOMIZATION BOTTOM SHEET / MODAL
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

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

.sheet-handle-bar {
  width: 44px;
  height: 5px;
  background: #E5DC CE;
  border-radius: var(--radius-full);
  margin: 0.65rem auto 0.25rem auto;
}

.sheet-header {
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.sheet-title-text {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-text-main);
}

.sheet-close-btn {
  background: #F5EFE6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
}

.sheet-content-scroll {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Modal Hero Image */
.sheet-hero-img-box {
  width: 100%;
  height: 180px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
}

.sheet-hero-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sheet-info-box h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-text-main);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.sheet-info-box .sheet-slogan {
  font-size: 0.8rem;
  font-weight: 700;
  color: #B45309;
  margin-bottom: 0.5rem;
}

.sheet-info-box p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Option Groups */
.option-group-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-group-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #F5EFE6;
  color: #78716C;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.option-cards-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-radio-card {
  border: 2px solid var(--color-border);
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-radio-card.selected {
  border-color: var(--color-primary);
  background: #FFF8F8;
}

.option-radio-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.custom-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D6CEBE;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-radio-card.selected .custom-radio {
  border-color: var(--color-primary);
}

.custom-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.option-radio-card.selected .custom-radio::after {
  opacity: 1;
  transform: scale(1);
}

.option-card-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.option-card-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.option-card-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Upgrade Card (Smash Friez reminder) */
.upgrade-promo-box {
  background: #FEF3C7;
  border: 1.5px dashed #F59E0B;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
}

.upgrade-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.upgrade-text strong {
  display: block;
  font-size: 0.82rem;
  color: #92400E;
}

.upgrade-text span {
  font-size: 0.72rem;
  color: #B45309;
}

/* Additions Checklist */
.additions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.addition-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAF7F2;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.addition-item-row.checked {
  background: #FFF5F5;
  border-color: #FECACA;
}

.addition-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #D6CEBE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #FFFFFF;
}

.addition-item-row.checked .custom-checkbox {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.addition-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.addition-price {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Notes Textarea */
.notes-input {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--color-text-main);
  resize: none;
  min-height: 60px;
  outline: none;
}

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

/* Modal Bottom Sticky CTA */
.sheet-footer {
  padding: 1rem 1.25rem calc(1rem + var(--safe-bottom)) 1.25rem;
  border-top: 1px solid var(--color-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #FAF7F2;
  overflow: hidden;
}

.qty-step-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
}

.sheet-add-cta {
  flex: 1;
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(211, 35, 35, 0.35);
  transition: transform 0.15s ease;
}

.sheet-add-cta:active {
  transform: scale(0.97);
}

/* ==========================================================================
   CART & CHECKOUT MODAL
   ========================================================================== */

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-item-card {
  background: #FAF7F2;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  display: flex;
  gap: 0.75rem;
}

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

.cart-item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.2rem;
}

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0 0 0.5rem;
}

.cart-item-meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

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

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Form Styles for Order Info (Mesa vs Domicilio) */
.order-form-box {
  background: #FFFDF9;
  border: 1.5px solid #F0E6D8;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.form-input, .form-select {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--color-text-main);
  background: #FFFFFF;
  outline: none;
}

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

/* Summary Box */
.summary-box {
  background: #FAF7F2;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

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

.summary-row.total-row {
  border-top: 1px dashed var(--color-border-dark);
  padding-top: 0.5rem;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--color-text-main);
}

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

/* WhatsApp Primary Button */
.whatsapp-submit-btn {
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.whatsapp-submit-btn:hover {
  background: #20BA5A;
}

.whatsapp-submit-btn:active {
  transform: scale(0.97);
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1C1917;
  color: #FFFFFF;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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