/* ===================================================================
   TATI SLIDER - DESIGN SYSTEM & STYLESHEET
   Light Theme Fast-Food Brand Aesthetics (McDonald's / Burger King App style)
   Brand Colors: Navy #00274E | Vibrant Red #E0141F | Light White/Cream
   =================================================================== */

:root {
  --brand-navy: #00274E;
  --brand-navy-light: #0A3A6F;
  --brand-navy-subtle: #EBF2FA;
  --brand-red: #E0141F;
  --brand-red-hover: #C60F19;
  --brand-red-subtle: #FEECEE;
  --brand-yellow: #FFB800;
  
  --bg-page: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F3F5;
  --border-light: #E9ECEF;
  --border-medium: #DEE2E6;

  --text-main: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #718096;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 2px 6px rgba(0, 39, 78, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 39, 78, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 39, 78, 0.12);
  --shadow-nav: 0 10px 30px rgba(0, 39, 78, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --bottom-nav-height: 80px;
  --header-offset: 165px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===================================================================
   RESPONSIVE VIEW SWITCHING (CRITICAL RULE: DESKTOP QR ONLY, NO SIMULATOR)
   =================================================================== */

/* By default (Desktop Screens > 768px): Show Desktop View, Hide Mobile View */
@media (min-width: 769px) {
  #mobile-view {
    display: none !important;
  }

  #desktop-view {
    display: flex !important;
  }
}

/* On Mobile Screens (<= 768px): Hide Desktop View, Show Mobile App */
@media (max-width: 768px) {
  #desktop-view {
    display: none !important;
  }

  #mobile-view {
    display: block !important;
  }
}

/* ===================================================================
   DESKTOP QR CODE LANDING PORTAL
   =================================================================== */
.desktop-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: radial-gradient(circle at 10% 20%, #F0F5FA 0%, #F8F9FA 90%);
}

.desktop-content-card {
  background: var(--bg-card);
  max-width: 900px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 48px;
  text-align: center;
}

.desktop-brand {
  margin-bottom: 36px;
}

.desktop-logo-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 4px;
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--brand-navy-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-tag {
  display: inline-block;
  background: var(--brand-red-subtle);
  color: var(--brand-red);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.desktop-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.highlight-red {
  color: var(--brand-red);
}

.desktop-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

.desktop-qr-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin: 40px 0;
  padding: 32px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.qr-frame {
  background: #FFFFFF;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--brand-red-subtle);
}

.qr-canvas-holder {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-canvas-holder img,
.qr-canvas-holder canvas {
  width: 200px !important;
  height: 200px !important;
  border-radius: 8px;
}

.qr-scan-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-red);
}

.desktop-features {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 360px;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feat-icon {
  font-size: 24px;
  background: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.feat-item strong {
  display: block;
  font-size: 15px;
  color: var(--brand-navy);
}

.feat-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

.desktop-footer {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.desktop-ws-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-ws-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ===================================================================
   MOBILE WEBAPP: HEADER & STICKY CONTROLS
   =================================================================== */
.mobile-app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-page);
  position: relative;
  padding-bottom: calc(var(--bottom-nav-height) + 30px);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 39, 78, 0.04);
  padding: 12px 16px 8px;
}

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

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

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-red-subtle);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.store-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Header Order Mode Toggle */
.mode-pill-toggle {
  display: flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.mode-btn.active {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(224, 20, 31, 0.35);
}

/* Search Bar */
.search-bar-wrap {
  margin-bottom: 10px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 0 14px;
  height: 40px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.search-input-box:focus-within {
  border-color: var(--brand-red);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(224, 20, 31, 0.12);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 8px;
}

.search-input-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
}

.clear-search-btn {
  border: none;
  background: #E2E8F0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

/* Categories Nav (Pill story scroller) */
.categories-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.cat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  color: var(--brand-navy);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cat-chip .cat-emoji {
  font-size: 16px;
}

.cat-chip:hover,
.cat-chip.active {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
  box-shadow: 0 3px 8px rgba(0, 39, 78, 0.2);
}

/* ===================================================================
   MAIN CONTENT & PROMOTIONAL HERO
   =================================================================== */
.app-content {
  padding: 16px;
}

.hero-promo-card {
  background: linear-gradient(135deg, #00274E 0%, #08386B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-promo-card::after {
  content: '🍔';
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 90px;
  opacity: 0.18;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

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

/* ===================================================================
   SECTION HEADERS & INTERMEDIATE BANNERS
   =================================================================== */
.section-wrapper {
  margin-bottom: 24px;
}

.section-title-row {
  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(--brand-navy);
}

.section-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-navy-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.section-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Promotional Banners Between Sections */
.category-promo-banner {
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 24px 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.category-promo-banner.banner-red {
  background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
  border-left: 5px solid var(--brand-red);
}

.category-promo-banner.banner-blue {
  background: linear-gradient(135deg, #EBF8FF 0%, #BEE3F8 100%);
  border-left: 5px solid var(--brand-navy);
}

.category-promo-banner.banner-yellow {
  background: linear-gradient(135deg, #FFFAF0 0%, #FEEBC8 100%);
  border-left: 5px solid var(--brand-yellow);
}

.banner-emoji {
  font-size: 32px;
  flex-shrink: 0;
}

.banner-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 2px;
}

.banner-text p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ===================================================================
   PRODUCT CARDS (CLEAN LIGHT DESIGN - NO FAKE IMAGES)
   =================================================================== */
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

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

.product-name-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.2;
}

.product-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--brand-red);
  background: var(--brand-red-subtle);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Favorite Heart Button */
.fav-btn {
  border: none;
  background: var(--bg-subtle);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

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

.fav-btn.favorited {
  background: #FEECEE;
  color: var(--brand-red);
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fav-btn.favorited svg {
  fill: var(--brand-red);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

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

/* Variant Selector (For Burgers Sencilla / Doble) */
.variant-selector-wrap {
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.variant-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.variant-btn.active {
  background: #FFFFFF;
  color: var(--brand-navy);
  box-shadow: var(--shadow-sm);
}

.variant-btn .v-price {
  color: var(--brand-red);
  font-weight: 800;
}

/* Card Bottom Row: Price & Action */
.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-light);
}

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

.price-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1;
}

.btn-add-item {
  border: none;
  background: var(--brand-red);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(224, 20, 31, 0.25);
  transition: all 0.15s ease;
}

.btn-add-item:active {
  background: var(--brand-red-hover);
  transform: scale(0.96);
}

/* Quantity Control in Card when added */
.card-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 4px 6px;
}

.btn-qty-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.qty-val-mini {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-navy);
  min-width: 18px;
  text-align: center;
}

/* ===================================================================
   FLOATING BOTTOM NAVIGATION BAR (MCDONALD'S / APP STYLE)
   Requirement: Floating bar with brand colors.
   "cada ves que el cliente se pare sobre un item del menu se debe 
    resaltar en un circulo con un fondo de relleno del color de la marca"
   =================================================================== */
.app-bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Allows clicks on sides */
  padding: 0 16px;
}

.bottom-nav-inner {
  pointer-events: auto;
  max-width: 440px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-nav);
  border: 1px solid rgba(0, 39, 78, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 12px;
}

.nav-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  outline: none;
}

/* Icon Container with Circular Highlight Effect */
.nav-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  transition: color 0.2s ease;
}

/* WHEN HOVERED OR ACTIVE: HIGHLIGHT IN CIRCLE FILLED WITH BRAND RED */
.nav-item:hover .nav-icon-circle,
.nav-item.active .nav-icon-circle {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(224, 20, 31, 0.4);
  transform: translateY(-3px) scale(1.06);
}

.nav-item:hover .nav-label,
.nav-item.active .nav-label {
  color: var(--brand-red);
  font-weight: 800;
}

/* Badge for Cart / Favorites inside Nav */
.nav-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #FFFFFF;
}

.nav-item.active .nav-badge {
  background: var(--brand-navy);
  color: #FFFFFF;
}

/* ===================================================================
   FLOATING CART NOTIFIER PILL (ABOVE BOTTOM NAV)
   =================================================================== */
.floating-cart-pill {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: var(--brand-navy);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 39, 78, 0.3);
  z-index: 850;
  cursor: pointer;
  animation: slidePillUp 0.3s ease;
}

@keyframes slidePillUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

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

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

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

.pill-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

/* ===================================================================
   CART & CHECKOUT MODAL (BOTTOM SHEET)
   =================================================================== */
.cart-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 39, 78, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cart-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -10px 40px rgba(0, 39, 78, 0.2);
  display: flex;
  flex-direction: column;
  animation: sheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle-bar {
  padding: 10px 0 4px;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--border-medium);
}

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

.sheet-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-title-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-navy);
}

.badge-red {
  background: var(--brand-red-subtle);
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.sheet-close-btn {
  border: none;
  background: var(--bg-subtle);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Cart Mode Switcher */
.cart-mode-selector {
  padding: 14px 20px;
  background: #FAFBFC;
  border-bottom: 1px solid var(--border-light);
}

.selector-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.mode-switch-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-card {
  position: relative;
  display: block;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-card input {
  position: absolute;
  opacity: 0;
}

.mode-card.active {
  border-color: var(--brand-red);
  background: #FFFBFB;
  box-shadow: 0 3px 10px rgba(224, 20, 31, 0.12);
}

.mode-card-content {
  display: flex;
  flex-direction: column;
}

.mode-emoji {
  font-size: 20px;
  margin-bottom: 2px;
}

.mode-card-content strong {
  font-size: 13px;
  color: var(--brand-navy);
}

.mode-card-content small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sheet Body Scrollable */
.sheet-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

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

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.cart-item-info {
  flex: 1;
  padding-right: 12px;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-navy);
}

.cart-item-variant {
  font-size: 11px;
  color: var(--brand-red);
  font-weight: 700;
}

.cart-item-unit-price {
  font-size: 12px;
  color: var(--text-muted);
}

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

.cart-qty-buttons {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  padding: 2px 4px;
}

.btn-cart-qty {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  color: var(--brand-navy);
}

.cart-qty-num {
  font-size: 13px;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

.cart-item-subtotal {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-navy);
  min-width: 55px;
  text-align: right;
}

/* Checkout Form */
.checkout-form {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.form-group input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: #FFFFFF;
}

.form-group input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(224, 20, 31, 0.12);
}

.table-quick-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.btn-table-chip {
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
}

.btn-table-chip.active {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
}

.payment-options {
  display: flex;
  gap: 12px;
}

.pay-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
}

.pay-option input {
  width: auto;
  height: auto;
}

/* Sheet Footer */
.sheet-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  background: #FAFBFC;
}

.total-breakdown {
  margin-bottom: 12px;
}

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

.total-row.highlight {
  font-size: 17px;
  color: var(--brand-navy);
  font-weight: 800;
  border-top: 1px dashed var(--border-medium);
  padding-top: 6px;
  margin-top: 6px;
}

.total-amount {
  color: var(--brand-red);
  font-size: 22px;
}

.btn-whatsapp-order {
  width: 100%;
  border: none;
  background: #25D366;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
}

.btn-whatsapp-order:hover {
  background: #20BA5A;
  transform: translateY(-2px);
}

/* ===================================================================
   SUBVIEWS (FAVORITOS & INFO)
   =================================================================== */
.subview {
  padding: 16px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.subview-header {
  margin-bottom: 18px;
}

.subview-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subview-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-navy);
}

.count-pill {
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.subview-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-medium);
}

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

.empty-state h3, .empty-state h4 {
  font-size: 17px;
  color: var(--brand-navy);
  font-weight: 800;
  margin-bottom: 6px;
}

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

.btn-primary {
  border: none;
  background: var(--brand-red);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(224, 20, 31, 0.25);
}

/* Info View Card */
.info-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.info-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-red-subtle);
}

.info-logo-row h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-navy);
}

.info-logo-row p {
  font-size: 13px;
  color: var(--text-secondary);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text strong {
  display: block;
  font-size: 14px;
  color: var(--brand-navy);
}

.info-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

.days-closed {
  display: inline-block;
  font-size: 11px;
  color: var(--brand-red);
  font-weight: 700;
  margin-top: 2px;
}

.ws-btn-inline {
  display: inline-block;
  margin-top: 6px;
  background: #25D366;
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

/* ===================================================================
   TOAST NOTIFICATION
   =================================================================== */
.toast-box {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--brand-navy);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0, 39, 78, 0.35);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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