/* ==========================================================================
   CABU MENU - PLANTILLA 3 MODERN UI STYLES
   Multi-tenant, light/dark theme, dynamic brand colors
   ========================================================================== */

/* --- CSS Variables & Theme Definition (Dark = default, matches template3 reference) --- */
:root {
  --bg-main: #0c0c10;
  --bg-surface: #14141a;
  --bg-card: #1c1c24;
  --bg-card-hover: #242430;
  --bg-input: #171720;
  --bg-pill: rgba(255, 255, 255, 0.06);

  --accent-primary: #FFB800;
  --accent-hover: #FFA000;
  --accent-glow: rgba(255, 184, 0, 0.35);
  --accent-text-dark: #0c0c10;

  --color-flame: #FF5722;
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5D;

  --text-primary: #FFFFFF;
  --text-secondary: #9E9EB2;
  --text-muted: #6C6C82;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 184, 0, 0.6);
  --border-card: #282836;

  --header-bg: rgba(12, 12, 16, 0.92);
  --nav-bg: rgba(16, 16, 22, 0.97);
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(28, 28, 36, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --promo-bg: linear-gradient(135deg, #2c1a06 0%, #1c1424 100%);
  --promo-border: rgba(255, 184, 0, 0.3);
  --detail-visual-bg: radial-gradient(circle at 50% 60%, rgba(255, 184, 0, 0.18) 0%, rgba(12, 12, 16, 0.95) 75%);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --hero-bg: linear-gradient(180deg, #141310 0%, #0c0c10 100%);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Theme --- */
html[data-theme="dark"],
.dark-mode {
  --bg-main: #0c0c10;
  --bg-surface: #14141a;
  --bg-card: #1c1c24;
  --bg-card-hover: #242430;
  --bg-input: #171720;
  --bg-pill: rgba(255, 255, 255, 0.06);

  --text-primary: #FFFFFF;
  --text-secondary: #9E9EB2;
  --text-muted: #6C6C82;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-card: #282836;

  --header-bg: rgba(12, 12, 16, 0.94);
  --nav-bg: rgba(16, 16, 22, 0.97);
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(28, 28, 36, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --promo-bg: linear-gradient(135deg, #2c1a06 0%, #1c1424 100%);
  --promo-border: rgba(255, 184, 0, 0.3);
  --detail-visual-bg: radial-gradient(circle at 50% 60%, rgba(255, 184, 0, 0.18) 0%, rgba(12, 12, 16, 0.95) 75%);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --hero-bg: linear-gradient(180deg, #141310 0%, #0c0c10 100%);
}

/* --- Light Theme --- */
html[data-theme="light"] {
  --bg-main: #f6f4f0;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0ede7;
  --bg-input: #f0ede8;
  --bg-pill: rgba(0, 0, 0, 0.05);

  --text-primary: #1c1c22;
  --text-secondary: #5f5f6b;
  --text-muted: #90909c;

  --border-light: rgba(0, 0, 0, 0.09);
  --border-card: #e9e6df;

  --header-bg: rgba(250, 248, 244, 0.94);
  --nav-bg: rgba(255, 255, 255, 0.97);
  --overlay-bg: rgba(20, 20, 26, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(0, 0, 0, 0.1);
  --promo-bg: linear-gradient(135deg, #fff3d4 0%, #ffe9cc 100%);
  --promo-border: rgba(255, 184, 0, 0.4);
  --detail-visual-bg: radial-gradient(circle at 50% 60%, rgba(255, 184, 0, 0.16) 0%, rgba(246, 244, 240, 0.95) 75%);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.16);
  --hero-bg: linear-gradient(180deg, #efeadf 0%, #f6f4f0 100%);
}

html[data-theme="light"] .hero-stepper-dots .dot { background: rgba(0, 0, 0, 0.18); }
html[data-theme="light"] .hero-bottom-sheet { box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15); }

/* --- Base & Reset --- */
*, *::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-main, #07070a);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; user-select: none; }
.text-accent { color: var(--accent-primary) !important; }
.text-success { color: var(--color-success) !important; }
.hidden { display: none !important; }

/* --- App Layout --- */
.app-layout {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  background: var(--bg-main);
}

.app-container {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-main);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .app-container { max-width: 100%; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
}

/* --- Screen Transitions --- */
.screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow-y: auto; overflow-x: hidden;
  background-color: var(--bg-main);
  opacity: 0; pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}
.screen.active { opacity: 1; pointer-events: auto; transform: translateX(0); z-index: 10; }
.screen.prev { opacity: 0; pointer-events: none; transform: translateX(-35%); z-index: 5; }

.screen::-webkit-scrollbar,
.cart-content-container::-webkit-scrollbar { width: 4px; }
.screen::-webkit-scrollbar-thumb,
.cart-content-container::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: var(--radius-full); }

/* --- Common Buttons --- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--accent-primary); color: var(--accent-text-dark);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  padding: 16px 24px; border-radius: var(--radius-full);
  box-shadow: 0 8px 25px var(--accent-glow);
  transition: var(--transition-smooth);
}
.btn-primary:hover, .btn-primary:active { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 28px var(--accent-glow); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-card); color: var(--text-primary);
  font-weight: 600; padding: 12px 20px; border-radius: var(--radius-full);
  border: 1px solid var(--border-light); transition: var(--transition-smooth);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--accent-primary); }

.icon-btn, .icon-btn-round {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-light);
  color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition-smooth); position: relative;
}
.icon-btn:active, .icon-btn-round:active { transform: scale(0.92); background: var(--bg-card-hover); }

/* ==========================================================================
   SCREEN 1: HERO / ONBOARDING
   ========================================================================== */
#screen-hero {
  padding-bottom: 0;
  background: var(--hero-bg);
  display: flex; flex-direction: column;
}
.hero-screen-content { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.hero-top-nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 20px 10px; z-index: 20; }

.hero-nav-left { display: flex; align-items: center; gap: 12px; }

.btn-back-marketplace {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--bg-pill); border: 1px solid var(--border-light);
  border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); text-decoration: none;
  transition: var(--transition-smooth); flex-shrink: 0;
}
.btn-back-marketplace i { font-size: 0.8rem; }
.btn-back-marketplace:hover { color: var(--text-primary); background: var(--bg-card); }

.brand-badge { display: flex; align-items: center; gap: 10px; }
.brand-icon-wrap {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
  display: flex; align-items: center; justify-content: center; color: #000;
  font-size: 1.2rem; box-shadow: 0 4px 15px var(--accent-glow); overflow: hidden;
}
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; }
.brand-icon-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.5px; }

.btn-skip {
  padding: 8px 16px; background: var(--bg-pill); border: 1px solid var(--border-light);
  border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px; transition: var(--transition-smooth);
}
.btn-skip:hover { color: var(--text-primary); background: var(--bg-card); }

/* Hero Visual */
.hero-visual-container { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; padding: 10px 0; margin-top: 10px; }
.hero-glow-halo { position: absolute; width: 260px; height: 260px; background: radial-gradient(circle, rgba(255, 184, 0, 0.22) 0%, rgba(255, 87, 34, 0.1) 50%, transparent 70%); filter: blur(25px); z-index: 1; }
.hero-image-wrapper {
  position: relative; z-index: 2; width: 270px; height: 270px;
  border-radius: 50%; padding: 8px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.15) 0%, transparent 80%);
  animation: heroFloat 4s ease-in-out infinite alternate;
}
.hero-burger-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7); display: block; }
@keyframes heroFloat { 0% { transform: translateY(0px) rotate(0deg); } 100% { transform: translateY(-10px) rotate(2deg); } }

/* Floating Badges */
.floating-badge {
  position: absolute; z-index: 5;
  background: rgba(28, 28, 36, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12); padding: 8px 14px; border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.badge-top-left { top: 10px; left: 20px; }
.badge-bottom-right { bottom: 15px; right: 20px; }
.animate-float-slow { animation: badgeFloat 3.5s ease-in-out infinite alternate; }
.animate-float-delayed { animation: badgeFloat 3.8s ease-in-out 0.8s infinite alternate; }
@keyframes badgeFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
/* Light variant — opt-in per restaurant via hero.badges_light */
.badges-light .floating-badge {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}
.badges-light .badge-text strong { color: #1c1c24; }
.badges-light .badge-text small { color: #5a5a66; }

.badge-icon { font-size: 1.25rem; }
.badge-text strong { display: block; font-size: 0.85rem; color: var(--text-primary); font-family: var(--font-heading); }
.badge-text small { font-size: 0.72rem; color: var(--text-secondary); }

/* Bottom Sheet */
.hero-bottom-sheet {
  background: var(--bg-surface); border-top-left-radius: 36px; border-top-right-radius: 36px;
  padding: 30px 24px 34px; border-top: 1px solid var(--border-light);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6); z-index: 10;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.sheet-pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 184, 0, 0.12); border: 1px solid rgba(255, 184, 0, 0.3);
  color: var(--text-primary); padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 700; margin-bottom: 14px;
}
.hero-headline { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px; }
.hero-description { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; max-width: 320px; margin-bottom: 10px; }
.hero-stepper-dots { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hero-stepper-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: var(--transition-smooth); }
.hero-stepper-dots .dot.active { width: 24px; border-radius: 12px; background: var(--accent-primary); }
.btn-hero-cta { width: 100%; justify-content: space-between; padding: 14px 18px 14px 28px; font-size: 1.1rem; }
.btn-icon-circle { width: 44px; height: 44px; background: #000; color: var(--accent-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: transform 0.2s ease; }
.btn-hero-cta:hover .btn-icon-circle { transform: translateX(4px); }

/* ==========================================================================
   SCREEN 2: MENU & PRODUCT CATALOG
   ========================================================================== */
.menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 20px 12px; position: sticky; top: 0;
  background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 30; border-bottom: 1px solid var(--border-light);
}
.user-greeting-box { display: flex; align-items: center; gap: 12px; }
.greeting-sub { font-size: 0.76rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.loc-arrow { font-size: 0.65rem; }
.user-location { font-family: var(--font-heading); font-size: 0.95rem; color: var(--text-primary); display: block; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-social-links { display: flex; gap: 4px; }
.header-social-links a {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.82rem; text-decoration: none; transition: color 0.2s;
}
.header-social-links a:hover { color: var(--accent-primary); }
.back-marketplace-btn { flex-shrink: 0; }

/* Restaurant Status Banner */
.restaurant-status-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; margin: 0 20px 8px;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--color-danger);
}
.restaurant-status-banner.closed { background: rgba(239, 68, 68, 0.1); }
.restaurant-status-banner.open { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: var(--color-success); }

/* Search Bar */
.search-section { display: flex; gap: 12px; padding: 12px 20px; }
.search-input-wrapper {
  flex: 1; position: relative; display: flex; align-items: center;
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-full); padding: 0 16px; transition: var(--transition-smooth);
}
.search-input-wrapper:focus-within { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-icon { color: var(--text-muted); font-size: 1rem; margin-right: 10px; }
.search-input-wrapper input { width: 100%; height: 46px; background: transparent; color: var(--text-primary); font-size: 0.92rem; }
.search-input-wrapper input::placeholder { color: var(--text-muted); }
.btn-clear-search { color: var(--text-secondary); padding: 4px; font-size: 0.9rem; }

/* Promo Banner — modern hero style with bg image + glass content */
.promo-banner {
  margin: 10px 20px 18px; border-radius: var(--radius-lg); padding: 0;
  position: relative; overflow: hidden; box-shadow: var(--shadow-md);
  min-height: 168px; isolation: isolate;
  background: var(--promo-bg);
}
.promo-banner .promo-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 0;
}
.promo-banner::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--color-primary, #C62828) 55%, #0c0c10) 0%, rgba(12,12,16,.82) 38%, rgba(12,12,16,.35) 70%, transparent 100%),
    linear-gradient(0deg, rgba(12,12,16,.45) 0%, transparent 50%);
}
.promo-banner-content {
  position: relative; z-index: 2; padding: 22px 22px 20px;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 168px; max-width: 78%; color: #fff;
}
.promo-tag {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; width: fit-content;
  padding: 5px 12px; border-radius: var(--radius-full); color: #fff;
  background: color-mix(in srgb, var(--color-primary, #C62828) 85%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary, #C62828) 45%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.promo-tag::before { content: '\1F525'; font-size: 0.7rem; }
.promo-title {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1.1;
  margin-bottom: 6px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.promo-desc {
  font-size: 0.82rem; color: rgba(255,255,255,.88); margin-bottom: 16px; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; line-clamp: 2; -webkit-line-clamp: 2; overflow: hidden;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.coupon-code-pill { background: var(--bg-pill); color: var(--text-primary); padding: 2px 6px; border-radius: 6px; font-weight: 700; letter-spacing: 0.5px; }
.btn-promo-claim {
  background: #fff; color: var(--color-primary, #C62828); font-size: 0.8rem; font-weight: 800;
  padding: 10px 20px; border-radius: var(--radius-full); transition: var(--transition-smooth);
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
}
.btn-promo-claim:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.btn-promo-claim::after { content: '\2192'; font-size: 0.9rem; transition: transform .2s; }
.btn-promo-claim:hover::after { transform: translateX(3px); }
.promo-banner-img-wrap { display: none; }
.promo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 380px) {
  .promo-banner { min-height: 150px; }
  .promo-banner-content { padding: 18px 18px 16px; max-width: 88%; min-height: 150px; }
  .promo-title { font-size: 1.2rem; }
  .promo-desc { font-size: 0.76rem; }
  .btn-promo-claim { padding: 9px 16px; font-size: 0.76rem; }
}
@media (min-width: 768px) {
  .promo-banner { min-height: 200px; }
  .promo-banner-content { padding: 30px 32px; min-height: 200px; max-width: 62%; }
  .promo-title { font-size: 1.9rem; }
  .promo-desc { font-size: 0.92rem; }
}

/* Categories Pills */
.categories-container { padding: 4px 20px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.categories-container::-webkit-scrollbar { display: none; }
.categories-track { display: flex; gap: 10px; width: max-content; }
.category-pill {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-full); color: var(--text-secondary);
  font-size: 0.88rem; font-weight: 600; white-space: nowrap; transition: var(--transition-smooth);
}
.category-pill .cat-icon { font-size: 1.1rem; }
.category-pill.active { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--accent-text-dark); font-weight: 700; box-shadow: 0 4px 16px var(--accent-glow); }
.category-pill:not(.active):hover { background: var(--bg-card); color: var(--text-primary); }

/* Section Title Row */
.section-title-row { display: flex; justify-content: space-between; align-items: flex-end; padding: 4px 20px 14px; }
.section-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.section-subtitle { font-size: 0.78rem; color: var(--text-secondary); }
.sort-chips { display: flex; gap: 6px; }
.sort-chip {
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--bg-pill); color: var(--text-secondary); border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}
.sort-chip.active { background: var(--accent-glow); border-color: var(--accent-primary); color: var(--accent-primary); }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 20px 24px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md);
  padding: 12px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; transition: var(--transition-smooth); cursor: pointer; box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent-primary); box-shadow: var(--shadow-md); }

.card-top-bar { display: flex; justify-content: space-between; align-items: center; position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; }
.card-rating-chip {
  background: var(--glass-bg); backdrop-filter: blur(8px); padding: 3px 7px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; gap: 4px;
  color: var(--accent-primary); border: 1px solid var(--glass-border);
}
.card-fav-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--glass-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); color: var(--text-secondary);
  font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition-smooth);
}
.card-fav-btn.active { color: var(--color-danger); }
.card-fav-btn.fav-active { color: var(--color-danger); }

.card-img-wrap { width: 100%; height: 120px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; background: var(--bg-input); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .card-img { transform: scale(1.08); }

.card-title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--text-primary); line-height: 1.25; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2;
  line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.35; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2;
  line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-bottom-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border-light); }
.card-price { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; color: var(--accent-primary); }
.btn-card-add {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-primary); color: var(--accent-text-dark);
  font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px var(--accent-glow); transition: var(--transition-smooth); position: relative; z-index: 10;
}
.btn-card-add:hover { background: var(--accent-hover); transform: scale(1.1); }
.btn-card-add:active { transform: scale(0.9); }
.btn-card-add.added { animation: addBounce 0.5s ease; }
.card-add-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; background: var(--color-success); color: #fff; font-size: 0.65rem; font-weight: 800; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
@keyframes addBounce { 0% { transform: scale(1); } 30% { transform: scale(1.35); background: var(--color-success); } 60% { transform: scale(0.85); } 100% { transform: scale(1); } }

/* Empty Search State */
.empty-search-state { text-align: center; padding: 40px 24px; }
.empty-icon-wrap { width: 70px; height: 70px; border-radius: 50%; background: var(--bg-pill); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--accent-primary); }
.empty-search-state h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 6px; }
.empty-search-state p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 18px; }

/* Spacer for bottom nav */
.dock-spacer { height: 20px; }

/* ==========================================================================
   SCREEN 3: PRODUCT DETAIL
   ========================================================================== */
#screen-detail { padding-bottom: 90px; background: var(--bg-main); }
.detail-header { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px; z-index: 30; }
.heart-btn { background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-border); transition: var(--transition-smooth); }
.heart-btn:active { transform: scale(0.88); }
.heart-btn.active { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.5); }
.heart-btn.active i { color: var(--color-danger); animation: heartPop 0.4s ease; }
@keyframes heartPop { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

.detail-visual-wrapper {
  position: relative; width: 100%; height: 310px;
  display: flex; align-items: center; justify-content: center;
  padding-top: 40px; background: var(--detail-visual-bg);
}
.detail-glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--accent-glow); filter: blur(40px); z-index: 1; }
.detail-product-img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); position: relative; z-index: 2; border: 4px solid var(--accent-glow); animation: heroFloat 5s ease-in-out infinite alternate; }
.detail-tags-overlay { position: absolute; bottom: 15px; left: 20px; right: 20px; display: flex; gap: 8px; z-index: 5; }
.detail-pill-badge { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; color: var(--text-primary); }

.detail-card-body { background: var(--bg-surface); border-top-left-radius: 32px; border-top-right-radius: 32px; padding: 24px 20px; border-top: 1px solid var(--border-light); margin-top: -10px; position: relative; z-index: 10; }
.detail-main-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; position: relative; z-index: 20; }
.detail-title-block { flex: 1; }
.detail-product-title { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.detail-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-rating-pill { color: var(--accent-primary); font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.rating-reviews { color: var(--text-muted); font-size: 0.76rem; font-weight: 400; }
.detail-calories-pill { color: var(--color-flame); font-size: 0.8rem; font-weight: 600; }

.detail-qty-stepper { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-full); padding: 4px; position: relative; z-index: 20; pointer-events: auto; flex-shrink: 0; }
.stepper-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-pill); color: var(--text-primary); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--transition-smooth); pointer-events: auto; cursor: pointer; }
.stepper-btn:hover { background: var(--accent-primary); color: var(--accent-text-dark); }
.stepper-value { padding: 0 12px; font-family: var(--font-heading); font-weight: 800; font-size: 1rem; }

.detail-section { margin-bottom: 22px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.detail-section-heading { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.required-chip { font-size: 0.68rem; font-weight: 700; color: var(--accent-primary); background: var(--accent-glow); padding: 2px 8px; border-radius: var(--radius-full); }
.optional-chip { font-size: 0.68rem; color: var(--text-muted); }
.detail-description-text { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; }

/* === Premium Observations Section === */
.detail-section:has(.textarea-wrap) {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 4px;
}
.detail-section:has(.textarea-wrap) .detail-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.detail-section:has(.textarea-wrap) .detail-section-heading::before {
  content: "\f075";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--accent-primary);
}
.textarea-wrap { position: relative; }
.textarea-wrap > i { display: none; }
#detail-obs-input {
  width: 100%;
  min-height: 90px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-input);
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#detail-obs-input::placeholder { color: var(--text-muted); font-size: 0.85rem; }
#detail-obs-input:hover { border-color: var(--text-muted); }
#detail-obs-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-surface);
}

/* Size Options */
.size-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.size-option-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 8px; text-align: center; cursor: pointer; transition: var(--transition-smooth); position: relative; }
.size-option-card input { position: absolute; opacity: 0; }
.size-option-card.active { border-color: var(--accent-primary); background: var(--accent-glow); box-shadow: 0 0 15px var(--accent-glow); }
.size-name { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 0.82rem; margin-bottom: 2px; }
.size-spec { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.size-extra-price { display: block; font-size: 0.76rem; font-weight: 700; color: var(--accent-primary); }

/* Extras List */
.extras-list { display: flex; flex-direction: column; gap: 8px; }
.extra-item-card { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; transition: var(--transition-smooth); }
.extra-item-card:hover { background: var(--bg-card-hover); }
.extra-item-card.active { border-color: var(--accent-primary); background: var(--accent-glow); }
.extra-info-wrap { display: flex; align-items: center; gap: 12px; }
.extra-checkbox { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: transparent; transition: var(--transition-smooth); }
.extra-item-card.active .extra-checkbox { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--accent-text-dark); }
.extra-name { font-size: 0.86rem; font-weight: 600; }
.extra-price { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; color: var(--accent-primary); }

/* Recommendations Scroll */
.recommendations-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.recommendations-scroll::-webkit-scrollbar { display: none; }
.mini-recom-card { width: 140px; flex-shrink: 0; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 8px; cursor: pointer; transition: var(--transition-smooth); }
.mini-recom-card:hover { border-color: var(--accent-primary); }
.mini-recom-img { width: 100%; height: 75px; border-radius: var(--radius-xs); object-fit: cover; margin-bottom: 6px; }
.mini-recom-title { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.mini-recom-bottom { display: flex; justify-content: space-between; align-items: center; }
.mini-recom-price { font-size: 0.78rem; font-weight: 700; color: var(--accent-primary); }
.btn-mini-add { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-primary); color: var(--accent-text-dark); font-size: 0.7rem; display: flex; align-items: center; justify-content: center; }

/* Detail Action Bar */
.detail-action-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.detail-price-preview { display: flex; flex-direction: column; }
.price-label { font-size: 0.75rem; color: var(--text-secondary); }
.price-amount { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--accent-primary); }
.btn-add-detail-cart { padding: 14px 28px; font-size: 0.98rem; flex: 1; }

@media (max-width: 767px) {
  .detail-action-bar { flex-direction: column; gap: 12px; align-items: stretch; }
  .detail-price-preview { flex-direction: row; justify-content: space-between; align-items: center; }
  .btn-add-detail-cart { width: 100%; flex: none; }
}

/* ==========================================================================
   SCREEN 4: CART
   ========================================================================== */
#screen-cart { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); background: var(--bg-main); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; position: sticky; top: 0; background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 25; border-bottom: 1px solid var(--border-light); }
.cart-header-title-wrap { text-align: center; }
.cart-header-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; }
.cart-items-count-badge { font-size: 0.75rem; color: var(--text-secondary); }
.btn-clear-cart { width: 40px; height: 40px; border-radius: 50%; color: var(--text-secondary); font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); }
.btn-clear-cart:hover { color: var(--color-danger); background: rgba(239, 68, 68, 0.1); }

.cart-content-container { padding: 14px 20px; display: flex; flex-direction: column; gap: 20px; width: 100%; }

/* Cart Items */
.cart-items-wrapper h3.cart-section-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.cart-items-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item-row { display: flex; gap: 12px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px; position: relative; }
.cart-item-img { width: 70px; height: 70px; border-radius: var(--radius-xs); object-fit: cover; flex-shrink: 0; background: var(--bg-input); }
.cart-item-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cart-item-name { font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700; }
.btn-remove-item { color: var(--text-muted); font-size: 0.85rem; padding: 2px 4px; transition: var(--transition-smooth); }
.btn-remove-item:hover { color: var(--color-danger); }
.cart-item-specs { font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 6px; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.cart-item-price { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800; color: var(--accent-primary); }
.cart-item-stepper { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-full); padding: 2px 6px; gap: 8px; }
.cart-stepper-btn { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; color: var(--text-primary); background: var(--bg-pill); }
.cart-stepper-btn:hover { background: var(--accent-primary); color: var(--accent-text-dark); }
.cart-stepper-val { font-size: 0.82rem; font-weight: 700; }

/* Empty Cart */
.empty-cart-state { text-align: center; padding: 30px 10px; }
.empty-cart-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--accent-glow); color: var(--accent-primary); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 16px; }
.empty-cart-state h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 6px; }
.empty-cart-state p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 20px; }
.btn-browse-menu { width: 100%; }

/* Summary Card */
.cart-section-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 18px; }
.summary-rows { display: flex; flex-direction: column; gap: 8px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; }
.summary-label { color: var(--text-secondary); }
.summary-value { font-weight: 700; }
.summary-divider { height: 1px; background: var(--border-light); margin: 6px 0; }
.total-row { font-size: 1.15rem; padding-top: 4px; }
.total-label { font-family: var(--font-heading); font-weight: 800; color: var(--text-primary); }
.total-value { font-family: var(--font-heading); font-weight: 800; color: var(--accent-primary); font-size: 1.3rem; }

/* Checkout Link Button */
.cart-checkout-action-wrap { margin-top: 8px; }
.btn-checkout-link {
  width: 100%; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
  color: var(--accent-text-dark); padding: 14px 18px; border-radius: var(--radius-full);
  box-shadow: 0 8px 25px var(--accent-glow); transition: var(--transition-smooth); gap: 14px;
}
.btn-checkout-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--accent-glow); }
.btn-checkout-link .whatsapp-icon-circle { width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.wa-btn-title { display: block; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.wa-btn-sub { font-size: 0.78rem; opacity: 0.9; }
.wa-arrow { font-size: 1.1rem; transition: transform 0.2s ease; }
.btn-checkout-link:hover .wa-arrow { transform: translateX(4px); }
.wa-security-note { text-align: center; font-size: 0.72rem; color: var(--text-muted); margin-top: 10px; }

/* ==========================================================================
   SCREEN 5: ORDER TRACKING
   ========================================================================== */
#screen-tracking { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); background: var(--bg-main); }
.tracking-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; position: sticky; top: 0; background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 25; border-bottom: 1px solid var(--border-light); }
.tracking-header-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; }
.tracking-scroll-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 20px; }

.tracking-visual-stage { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0; }
.tracking-glow-background { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--accent-glow); filter: blur(40px); z-index: 1; }
.tracking-arc-svg { position: absolute; width: 160px; height: 160px; z-index: 2; }
.arc-base { fill: none; stroke: var(--border-light); stroke-width: 4; }
.arc-running { fill: none; stroke: var(--accent-primary); stroke-width: 4; stroke-dasharray: 440; stroke-dashoffset: 440; animation: arcProgress 2s ease forwards; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
@keyframes arcProgress { to { stroke-dashoffset: 110; } }
.tracking-illustration-wrap { position: relative; z-index: 3; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.tracking-flame-icon { font-size: 2.5rem; color: var(--color-flame); }
.tracking-countdown-pill { position: relative; z-index: 4; margin-top: 10px; background: var(--bg-card); border: 1px solid var(--border-light); padding: 6px 16px; border-radius: var(--radius-full); font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; color: var(--accent-primary); }

/* Stepper */
.tracking-stepper { display: flex; justify-content: space-between; gap: 4px; }
.stepper-node { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.node-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--text-muted); transition: var(--transition-smooth); }
.stepper-node.completed .node-circle { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.stepper-node.active .node-circle { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--accent-text-dark); box-shadow: 0 0 15px var(--accent-glow); }
.stepper-node.active .node-circle.pulse { animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 0 8px transparent; } }
.node-text { font-size: 0.68rem; color: var(--text-secondary); text-align: center; font-weight: 600; }
.stepper-node.completed .node-text { color: var(--color-success); }
.stepper-node.active .node-text { color: var(--accent-primary); }

/* Tracking Summary Card */
.tracking-glass-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 18px; }
.card-summary-heading { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.summary-product-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.summary-thumb-box { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--accent-glow); display: flex; align-items: center; justify-content: center; color: var(--accent-primary); font-size: 1.2rem; flex-shrink: 0; }
.summary-details-box { flex: 1; min-width: 0; }
.summary-name { font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700; }
.summary-meta { font-size: 0.75rem; color: var(--text-secondary); }
.summary-price-box { text-align: right; }
.summary-price { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: var(--accent-primary); }
.summary-info-table { display: flex; flex-direction: column; gap: 8px; }
.info-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.info-label { color: var(--text-secondary); }
.info-value { font-weight: 700; color: var(--text-primary); }

.craving-banner-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; background: var(--accent-glow); border: 1px solid var(--accent-primary); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition-smooth); }
.craving-banner-row:hover { background: var(--accent-primary); }
.craving-banner-row:hover .craving-text { color: var(--accent-text-dark); }
.craving-flame-icon { color: var(--color-flame); font-size: 1.1rem; }
.craving-text { flex: 1; font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.craving-arrow { color: var(--text-muted); }

/* WhatsApp Track Button */
.tracking-whatsapp-action { margin-top: 8px; }
.btn-whatsapp-track {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--color-whatsapp) 0%, var(--color-whatsapp-dark) 100%);
  color: #fff; padding: 14px 18px; border-radius: var(--radius-full);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35); transition: var(--transition-smooth);
}
.btn-whatsapp-track:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5); }

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-around; align-items: center;
  padding-left: 4px; padding-right: 4px; padding-top: 6px;
  z-index: 40; box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-muted); font-size: 0.62rem; font-weight: 600;
  transition: var(--transition-smooth); padding: 6px 4px; min-width: 40px; min-height: 48px;
  border-radius: var(--radius-sm); flex: 1; -webkit-tap-highlight-color: transparent;
  position: relative;
}
.nav-item i { font-size: 1.1rem; transition: transform 0.2s ease; }
.nav-item:active i { transform: scale(0.85); }
.nav-item.active { color: var(--accent-primary); }
.nav-item.active i { transform: scale(1.1); }
.nav-cart-center { position: relative; top: -16px; flex: 0 0 auto; }
.cart-center-bubble {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
  color: var(--accent-text-dark); display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; box-shadow: 0 6px 20px var(--accent-glow); position: relative;
  transition: var(--transition-smooth); border: 3px solid var(--bg-main);
}
.cart-center-bubble:active { transform: scale(0.92); }
.bubble-count {
  position: absolute; top: -3px; right: -3px; background: var(--accent-text-dark);
  color: var(--accent-primary); font-size: 0.68rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent-primary); padding: 0 4px;
}
.nav-item.active::after { content: ''; position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-primary); }

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-popup {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-20px);
  z-index: 1000; background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); color: var(--text-primary);
  padding: 12px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; font-size: 0.88rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
  max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast-popup.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-popup i { color: var(--color-success); flex-shrink: 0; }

/* ==========================================================================
   MOBILE ADAPTATIONS — scroll + botón "Comenzar Pedido" visible
   ========================================================================== */
@media (max-width: 767px) {
  .app-container { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #screen-hero { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .hero-screen-content { min-height: auto; }
  .hero-visual-container { padding: 4px 0; margin-top: 4px; }
  .hero-image-wrapper { width: 250px; height: 250px; }
  .hero-glow-halo { width: 250px; height: 250px; }
  .hero-bottom-sheet { padding: 20px 20px 28px; }
  .sheet-pill-tag { margin-bottom: 10px; }
  .hero-headline { font-size: 1.6rem; margin-bottom: 8px; }
  .hero-description { margin-bottom: 8px; }
  .hero-stepper-dots { margin-bottom: 10px; }
  .btn-hero-cta { padding: 12px 16px 12px 24px; font-size: 1rem; }
  .btn-icon-circle { width: 40px; height: 40px; }
}

/* ==========================================================================
   DESKTOP ADAPTATIONS
   ========================================================================== */
@media (min-width: 768px) {
  .app-layout { background: radial-gradient(circle at 50% 20%, #1a160e 0%, #08080b 55%); padding: 0; }
  html[data-theme="light"] .app-layout { background: radial-gradient(circle at 50% 20%, #e8e2d6 0%, #f6f4f0 55%); }
  .app-container { max-width: 100%; width: 100%; height: 100vh; height: 100dvh; border-radius: 0; box-shadow: none; }
  .screen { padding-bottom: 90px; }
}

@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 32px 24px; }
  .card-img-wrap { height: 150px; }
  .menu-header, .search-section, .categories-container, .section-title-row { padding-left: 32px; padding-right: 32px; }
  .promo-banner { margin-left: 32px; margin-right: 32px; }
  .hero-top-nav { padding: 32px 48px 10px; }
  .hero-bottom-sheet { padding: 36px 48px 40px; }
  .hero-headline { font-size: 2.4rem; }
  .hero-visual-container { padding: 10px 0; }
  .hero-image-wrapper { width: 320px; height: 320px; }
  .hero-glow-halo { width: 320px; height: 320px; display: block; }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 40px 24px; }
  .menu-header, .search-section, .categories-container, .section-title-row { padding-left: 40px; padding-right: 40px; }
  .promo-banner { margin-left: 40px; margin-right: 40px; }
  .card-img-wrap { height: 170px; }
  .card-title { font-size: 1rem; }
  .card-desc { font-size: 0.8rem; }

  /* Hero: horizontal layout (image left, sheet right) */
  .hero-screen-content { flex-direction: row; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 60px; gap: 60px; }
  .hero-top-nav { position: absolute; top: 0; left: 0; right: 0; padding: 24px 60px; }
  .hero-visual-container { flex: 1; padding: 60px 0 0; }
  .hero-image-wrapper { width: 380px; height: 380px; }
  .hero-glow-halo { width: 380px; height: 380px; display: block; }
  .hero-bottom-sheet { flex: 1; border-radius: 32px; padding: 40px 48px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); border: 1px solid var(--border-light); margin-bottom: 40px; align-items: flex-start; text-align: left; }
  .hero-headline { font-size: 2.8rem; }
  .hero-description { max-width: 100%; font-size: 1rem; }
  .hero-stepper-dots { margin-bottom: 28px; }
  .btn-hero-cta { width: 100%; }

  /* Detail: two-column layout */
  #screen-detail { display: flex; flex-direction: row; overflow-y: hidden; }
  .detail-header { position: absolute; top: 0; left: 0; width: 45%; padding: 24px 40px; z-index: 30; }
  .detail-visual-wrapper { flex: 0 0 45%; height: 100%; padding-top: 80px; border-radius: 0; }
  .detail-product-img { width: 300px; height: 300px; }
  .detail-glow { width: 280px; height: 280px; }
  .detail-card-body { flex: 1; overflow-y: auto; border-top-left-radius: 0; border-top-right-radius: 0; padding: 32px 40px 40px; margin-top: 0; position: relative; z-index: 15; }
  .size-options-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  /* Cart: two-column layout */
  .cart-content-container { max-width: 1100px; margin: 0 auto; padding: 20px 40px; gap: 24px; }
  .cart-section-card { padding: 22px 24px; }

  /* Bottom nav: floating centered */
  .bottom-nav-bar {
    max-width: 560px; left: 50%; transform: translateX(-50%); right: auto;
    bottom: 20px; height: 64px; border-radius: var(--radius-full);
    padding: 6px 12px; box-shadow: var(--shadow-lg); gap: 4px;
  }
  .nav-item { font-size: 0.72rem; padding: 8px 12px; border-radius: var(--radius-full); }
  .nav-item:hover { background: var(--bg-pill); color: var(--text-primary); }
  .nav-item.active { background: var(--accent-glow); }
  .nav-item.active::after { display: none; }
  .nav-cart-center { top: -20px; }
  .cart-center-bubble { width: 56px; height: 56px; font-size: 1.4rem; }
  .cart-center-bubble:hover { transform: scale(1.08); }
  .bubble-count { min-width: 22px; height: 22px; font-size: 0.72rem; }

  /* Tracking: center content */
  .tracking-scroll-body { max-width: 600px; margin: 0 auto; }
}

@media (min-width: 1440px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); gap: 22px; padding: 0 60px 24px; }
  .menu-header, .search-section, .categories-container, .section-title-row { padding-left: 60px; padding-right: 60px; }
  .promo-banner { margin-left: 60px; margin-right: 60px; }
  .card-img-wrap { height: 190px; }
  .hero-screen-content { max-width: 1400px; padding: 0 80px; gap: 80px; }
  .hero-image-wrapper { width: 440px; height: 440px; }
  .hero-glow-halo { width: 440px; height: 440px; display: block; }
  .hero-headline { font-size: 3.2rem; }
  .hero-bottom-sheet { padding: 40px 56px 44px; }
  .detail-product-img { width: 360px; height: 360px; }
  .cart-content-container { max-width: 1280px; padding: 24px 60px; }
  .bottom-nav-bar { max-width: 560px; }
}

/* ==========================================================================
   NO-IMAGE CARD VARIANT
   ========================================================================== */
.product-card.no-img .card-img-wrap { display: none; }
.product-card.no-img { padding-top: 20px; }
.product-card.no-img .card-title { font-size: 1rem; }


/* ============================================================
   RESTAURANT BRANDING LAYER (template-agnostic)
   Maps ONLY the tenant's brand ACCENT colors to template4's
   accent variables. Dark backgrounds/text/borders are preserved
   from the :root block above so the dark UI is always kept,
   regardless of the restaurant's surface color settings.
   ============================================================ */
:root {
  /* Brand accents — mapped from tenant palette */
  --accent-primary: var(--color-primary, #FFB800);
  --accent-hover:   var(--color-primary-hover, #FFA000);
  --color-flame:    var(--color-secondary, #FF5722);
  --font-heading:   var(--font-family-heading, 'Outfit'), sans-serif;
  --font-body:      var(--font-family, 'Plus Jakarta Sans'), sans-serif;

  /* Accent adaptation to brand palette (dark-mode aware) */
  --accent-text-dark:  #0c0c10;
  --accent-glow:       color-mix(in srgb, var(--color-primary, #FFB800) 35%, transparent);
  --border-focus:      color-mix(in srgb, var(--color-primary, #FFB800) 60%, transparent);
  --promo-bg:          linear-gradient(135deg,
                          color-mix(in srgb, var(--color-primary, #FFB800) 14%, #14141a) 0%,
                          color-mix(in srgb, var(--color-primary, #FFB800) 8%, #0c0c10) 100%);
  --promo-border:      color-mix(in srgb, var(--color-primary, #FFB800) 30%, transparent);
  --hero-bg:           linear-gradient(180deg,
                          color-mix(in srgb, var(--color-primary, #FFB800) 12%, #14141a) 0%,
                          #0c0c10 100%);
  --detail-visual-bg:  radial-gradient(circle at 50% 60%,
                          color-mix(in srgb, var(--color-primary, #FFB800) 18%, transparent) 0%,
                          rgba(12, 12, 16, 0.95) 75%);
}

/* Granular UI accent colors from tenant palette */
:root {
  --accent-primary: var(--color-primary, #FFB800);
}
