/* ============================================================
   Pollería Chetos — Responsive Design System & PWA Styles
   Mobile-First • Tablet • Desktop • Standalone PWA Ready
   ============================================================ */

:root {
  --bg-dark: #120D0A;
  --bg-dark-2: #1B1410;
  --bg-dark-card: #241B15;
  --bg-dark-border: #352820;

  --surface: #FFFFFF;
  --surface-soft: #FAF6F2;
  --surface-muted: #F2EAE3;
  --border-light: #EAE0D8;

  --orange: #FF7A00;
  --orange-deep: #E85D04;
  --orange-light: #FFF1E5;
  --amber: #FFB800;

  --text-main: #1A130F;
  --text-sub: #6E5D53;
  --text-muted: #9C8A7F;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #BEB0A7;

  --success: #16A34A;
  --success-bg: #DCFCE7;
  --warning: #D97706;
  --warning-bg: #FEF3C7;
  --danger: #DC2626;
  --danger-bg: #FEE2E2;

  --yape: #742284;
  --yape-soft: #F5E8F8;
  --plin: #00BFA5;
  --plin-soft: #E0F7F4;
  --card-blue: #2563EB;
  --cash-green: #16A34A;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-sheet: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(18, 13, 10, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 13, 10, 0.10);
  --shadow-lg: 0 18px 44px rgba(18, 13, 10, 0.18);
  --shadow-orange: 0 8px 22px rgba(255, 122, 0, 0.34);

  --sidebar-width: 272px;
  --bottom-nav-h: 70px;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-script: 'Pacifico', 'Outfit', cursive;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ============================================================
   Offline Banner
   ============================================================ */
.offline-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #271C15;
  color: #FFE4C4;
  border-bottom: 1px solid rgba(255, 122, 0, 0.35);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulseDot 1.6s infinite;
}

/* ============================================================
   Brand Wordmark & Logo
   ============================================================ */
.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.brand-lockup.inline {
  flex-direction: row;
  text-align: left;
  gap: 12px;
}

.brand-mascot {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(255, 122, 0, 0.28);
  border: 3px solid rgba(255, 122, 0, 0.3);
}

.brand-mascot.sm {
  width: 48px;
  height: 48px;
  border-width: 2px;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.22);
}

.brand-mascot.md {
  width: 82px;
  height: 82px;
}

.brand-title-stack {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word-top {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.brand-word-bottom {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 34px;
  background: linear-gradient(180deg, #FFC933 0%, #FF7A00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  margin-top: -4px;
}

.brand-lockup.inline .brand-word-top {
  font-size: 17px;
}

.brand-lockup.inline .brand-word-bottom {
  font-size: 22px;
  margin-top: -2px;
}

/* ============================================================
   Screen 1: Splash Screen
   ============================================================ */
.splash-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 40%, #2C1A10 0%, #120D0A 68%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: #fff;
}

.splash-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: scaleFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.splash-tagline {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.splash-loader {
  width: 140px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 16px;
}

.splash-loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  border-radius: var(--radius-pill);
  animation: splashBar 1.5s ease-out forwards;
}

.splash-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
}

/* ============================================================
   Screen 2: Onboarding / Bienvenida
   ============================================================ */
.onboarding-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 20%, #2B190F 0%, #120D0A 72%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.onboarding-card {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.onboarding-card > * {
  min-width: 0;
  max-width: 100%;
}

.onboarding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}

.onboarding-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 122, 0, 0.16);
  color: var(--amber);
  border: 1px solid rgba(255, 184, 0, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
}

.onboarding-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  color: #fff;
}

.onboarding-sub {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 15.5px;
  max-width: 480px;
}

.onboarding-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0;
}

.onboarding-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  cursor: pointer;
}

.onboarding-dot.active {
  width: 28px;
  background: var(--orange);
}

.onboarding-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 122, 0, 0.25);
}

.onboarding-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.onboarding-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(18, 13, 10, 0.72) 100%);
  pointer-events: none;
}

.onboarding-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin-top: 4px;
}

/* ============================================================
   Screen 3: Auth (Login & Registration)
   ============================================================ */
.auth-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 20% 20%, #2C190E 0%, #120D0A 65%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 36px;
}

.auth-layout {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.auth-layout > * {
  min-width: 0;
}

.auth-showcase {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(29, 22, 18, 0.92);
  border: 1px solid var(--bg-dark-border);
  border-radius: 28px;
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #140F0C;
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-on-dark-muted);
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.input-group-dark {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group-dark .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-on-dark-muted);
  display: flex;
  pointer-events: none;
}

.input-dark {
  width: 100%;
  background: #16100D;
  border: 1.5px solid #352922;
  color: #fff;
  border-radius: 14px;
  padding: 13px 42px 13px 44px;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-dark::placeholder {
  color: #84746B;
}

.input-dark:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

.input-eye-btn {
  position: absolute;
  right: 12px;
  color: var(--text-on-dark-muted);
  padding: 6px;
  display: flex;
}

.auth-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #FCA5A5;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.auth-demo-hint {
  background: rgba(255, 184, 0, 0.1);
  border: 1px dashed rgba(255, 184, 0, 0.35);
  color: #FDE68A;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-demo-fill {
  color: var(--amber);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #8C7B71;
  font-size: 12.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #332720;
}

.social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 13.5px;
  transition: transform 0.15s, opacity 0.2s;
}

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

.btn-social.google {
  background: #FFFFFF;
  color: #1F2937;
}

.btn-social.facebook {
  background: #1877F2;
  color: #FFFFFF;
}

.auth-footer-note {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

.auth-link {
  color: var(--orange);
  font-weight: 700;
}

/* ============================================================
   Buttons & Reusable Controls
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}

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

.btn-primary {
  background: linear-gradient(135deg, #FF8A00 0%, #FF6600 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--surface-muted);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #E8DDD4;
}

.btn-outline-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.btn-outline-dark:hover {
  border-color: var(--orange);
  background: rgba(255, 122, 0, 0.12);
}

.btn-outline-danger {
  background: #FFF5F5;
  color: var(--danger);
  border: 1.5px solid #FECACA;
}

.btn-outline-danger:hover {
  background: #FEE2E2;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 11px;
}

.btn-block {
  width: 100%;
}

.btn-pwa-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.2), rgba(255, 184, 0, 0.18));
  border: 1px solid rgba(255, 145, 0, 0.55);
  color: #FFD18C;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-pwa-pill:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.btn-pwa-pill.installed {
  background: rgba(22, 163, 74, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #86EFAC;
}

/* ============================================================
   Main App Shell (Responsive Sidebar + Mobile Bottom Nav)
   ============================================================ */
.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  background: var(--bg-dark);
}

.desktop-sidebar {
  display: none;
}

.shell-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-dark);
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 24px rgba(18, 13, 10, 0.08);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  position: relative;
  transition: color 0.2s;
}

.nav-tab.active {
  color: var(--orange);
}

.nav-tab .nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 20px);
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}

/* Floating Mobile Cart Bar */
.floating-cart-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 85;
  background: linear-gradient(135deg, #1A130F, #2B1C14);
  color: #fff;
  border: 1px solid rgba(255, 122, 0, 0.45);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(18, 13, 10, 0.35);
  animation: slideUpFade 0.28s ease;
}

.floating-cart-bar.no-nav {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-cart-count {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Dark Header & Curved Sheet Pattern (Matches Mockup!)
   ============================================================ */
.page-header-dark {
  background: linear-gradient(180deg, #120D0A 0%, #1C130E 100%);
  color: #fff;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 20px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.top-bar-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  flex: 1;
  text-align: center;
}

.top-bar-title.left {
  text-align: left;
}

.icon-btn-dark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.icon-btn-dark:hover {
  background: rgba(255, 122, 0, 0.22);
}

.icon-btn-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.page-sheet {
  flex: 1;
  background: var(--surface-soft);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding: 22px 18px calc(96px + env(safe-area-inset-bottom, 0px));
  min-height: 60vh;
}

.page-sheet.compact-bottom {
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.content-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ============================================================
   Screen 4: Home (Inicio)
   ============================================================ */
.greeting-block {
  margin-bottom: 16px;
}

.greeting-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 2px;
  color: #fff;
}

.greeting-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-on-dark-muted);
}

.promo-hero-banner {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(125deg, #FFC226 0%, #FF8400 55%, #E85D04 100%);
  padding: 18px 18px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(255, 122, 0, 0.28);
  cursor: pointer;
  transition: transform 0.2s;
}

.promo-hero-banner:hover {
  transform: translateY(-2px);
}

.promo-hero-tag {
  display: inline-block;
  background: rgba(18, 13, 10, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.promo-hero-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #1A110C;
  margin: 0 0 4px;
  line-height: 1.12;
}

.promo-hero-desc {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(26, 17, 12, 0.8);
  margin: 0 0 10px;
}

.promo-hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: #1A110C;
  color: #FFB800;
  padding: 6px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

.promo-hero-price small {
  color: #A8968B;
  text-decoration: line-through;
  font-size: 12.5px;
  font-weight: 600;
}

.promo-hero-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 24px rgba(18, 13, 10, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.promo-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quick Categories */
.quick-cats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.quick-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 6px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.2s, box-shadow 0.2s;
}

.quick-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.quick-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.quick-cat-icon.c-pollos { background: #FFF0E0; color: #EA580C; }
.quick-cat-icon.c-combos { background: #FEF3C7; color: #D97706; }
.quick-cat-icon.c-extras { background: #FFEDD5; color: #C2410C; }
.quick-cat-icon.c-bebidas { background: #F3E8FF; color: #7E22CE; }
.quick-cat-icon.c-promos { background: #FEE2E2; color: #DC2626; }

.quick-cat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

/* Section Headers */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.section-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
}

/* Featured & Menu Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 122, 0, 0.35);
}

.product-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1B1410;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(18, 13, 10, 0.82);
  backdrop-filter: blur(6px);
  color: #FFB800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
}

.product-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(18, 13, 10, 0.62);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.2s;
}

.product-fav-btn.active {
  background: #fff;
  color: #EF4444;
}

.product-card-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 3px;
}

.product-card-sub {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0 0 10px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-now {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
}

.price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-quick-add {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
  transition: transform 0.15s;
}

.btn-quick-add:hover {
  transform: scale(1.07);
}

/* Horizontal list cards on mobile Menu (matches screen 5!) */
.menu-list-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
}

.menu-row-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.2s, box-shadow 0.2s;
}

.menu-row-card:hover {
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: var(--shadow-md);
}

.menu-row-img {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1B1410;
}

.menu-row-info {
  flex: 1;
  min-width: 0;
}

.menu-row-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 2px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-row-sub {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  padding: 2px 7px;
  border-radius: 8px;
}

/* Search & Category Pills */
.search-box-dark {
  position: relative;
  margin-bottom: 14px;
}

.search-box-dark input {
  width: 100%;
  background: #241B15;
  border: 1px solid #3A2C23;
  color: #fff;
  border-radius: 14px;
  padding: 11px 14px 11px 42px;
  font-size: 14px;
  outline: none;
}

.search-box-dark input:focus {
  border-color: var(--orange);
}

.search-box-dark .search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-on-dark-muted);
  display: flex;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

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

.cat-pill {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  background: #261C16;
  color: var(--text-on-dark-muted);
  border: 1px solid #382A22;
  transition: all 0.2s;
}

.cat-pill.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.32);
}

/* Coupons Strip & PWA Banner */
.coupons-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.coupon-card {
  background: #fff;
  border: 1.5px dashed rgba(255, 122, 0, 0.45);
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coupon-badge {
  background: var(--orange-light);
  color: var(--orange-deep);
  font-weight: 900;
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 4px;
}

.pwa-banner-card {
  background: linear-gradient(135deg, #1A130F 0%, #2C1B12 100%);
  color: #fff;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 122, 0, 0.35);
  margin-bottom: 8px;
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pwa-banner-left img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  flex-shrink: 0;
}

.pwa-banner-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  margin: 0 0 2px;
}

.pwa-banner-sub {
  font-size: 12.5px;
  color: var(--text-on-dark-muted);
  margin: 0;
}

/* ============================================================
   Screen 6: Product Detail
   ============================================================ */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.detail-hero {
  position: relative;
  height: 270px;
  background: #120D0A;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 13, 10, 0.55) 0%, transparent 45%, rgba(18, 13, 10, 0.5) 100%);
}

.detail-hero-nav {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-sheet {
  background: #fff;
  border-radius: 28px 28px 0 0;
  margin-top: -26px;
  position: relative;
  z-index: 4;
  padding: 24px 20px 36px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 6px;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-sub);
}

.detail-desc {
  color: var(--text-sub);
  margin: 0 0 16px;
  line-height: 1.55;
}

.detail-price-big {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--orange-deep);
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.option-block {
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

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

.option-heading h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
}

.option-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
  color: var(--text-sub);
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  padding: 8px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.16s;
}

.choice-chip.selected {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange-deep);
  font-weight: 700;
}

.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1.5px solid var(--border-light);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.16s;
}

.addon-row.selected {
  border-color: var(--orange);
  background: var(--orange-light);
}

.addon-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #C8B8AD;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.addon-row.selected .check-box {
  background: var(--orange);
  border-color: var(--orange);
}

.input-light, .textarea-light {
  width: 100%;
  background: var(--surface-soft);
  border: 1.5px solid var(--border-light);
  border-radius: 13px;
  padding: 11px 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.input-light:focus, .textarea-light:focus {
  border-color: var(--orange);
  background: #fff;
}

.detail-buy-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-muted);
  border-radius: 14px;
  padding: 5px 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.qty-btn.plus {
  background: var(--orange);
  color: #fff;
}

.qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}

/* ============================================================
   Screens 7, 8, 9: Cart, Delivery & Payment Checkout
   ============================================================ */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #8E7D73;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.step-pill.active {
  background: rgba(255, 122, 0, 0.2);
  color: var(--amber);
}

.step-pill.done {
  color: #86EFAC;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.cart-item-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 3px;
}

.cart-item-extras {
  font-size: 12px;
  color: var(--text-sub);
  margin: 0 0 6px;
}

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

.summary-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--text-sub);
}

.summary-row.discount {
  color: var(--success);
  font-weight: 700;
}

.summary-row.total {
  border-top: 1.5px dashed var(--border-light);
  margin-top: 8px;
  padding-top: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

/* Delivery & Payment Cards */
.select-card {
  background: #fff;
  border: 2px solid var(--border-light);
  border-radius: 18px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.18s;
}

.select-card.selected {
  border-color: var(--orange);
  background: #FFFBF7;
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.12);
}

.select-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 14px;
}

.select-card-icon.delivery { background: var(--orange-light); color: var(--orange-deep); }
.select-card-icon.pickup { background: #FEF3C7; color: #B45309; }
.select-card-icon.yape { background: var(--yape); color: #fff; font-family: var(--font-display); }
.select-card-icon.plin { background: linear-gradient(135deg, #00D2C6, #0082C8); color: #fff; font-family: var(--font-display); }
.select-card-icon.card { background: #EFF6FF; color: #1D4ED8; }
.select-card-icon.cash { background: #DCFCE7; color: #15803D; }

.select-card-body {
  flex: 1;
}

.select-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 2px;
}

.select-card-sub {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0;
}

.radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #C8B8AD;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.select-card.selected .radio-dot {
  border-color: var(--orange);
}

.select-card.selected .radio-dot::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
}

.payment-panel {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 16px;
  margin: -4px 0 14px;
  animation: fadeIn 0.22s ease;
}

.qr-sim-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qr-svg-frame {
  width: 112px;
  height: 112px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}

.sim-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #92400E;
  background: #FEF3C7;
  border-radius: 10px;
  padding: 6px 11px;
  margin-bottom: 14px;
}

/* ============================================================
   Screen 10: Real-Time Order Tracking
   ============================================================ */
.tracking-hero-card {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
  border: 1.5px solid rgba(255, 122, 0, 0.25);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tracking-timeline {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 18px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 22px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item.done:not(:last-child)::before {
  background: var(--success);
}

.timeline-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  font-weight: 800;
  transition: all 0.3s;
}

.timeline-item.done .timeline-node {
  background: var(--success);
  color: #fff;
}

.timeline-item.active .timeline-node {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.18);
  animation: pulseRing 1.6s infinite;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  margin: 0 0 2px;
  color: var(--text-main);
}

.timeline-item.pending .timeline-title {
  color: var(--text-muted);
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
}

.timeline-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  margin-top: 3px;
}

.delivery-map-card {
  background: #FFFBF7;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
  overflow: hidden;
}

.route-visual {
  width: 100%;
  height: 118px;
  position: relative;
}

.scooter-badge {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.42);
  transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1), top 0.8s ease;
  z-index: 3;
}

/* ============================================================
   Screen 11: My Orders (Mis Pedidos)
   ============================================================ */
.header-segment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 340px;
  margin: 0 auto;
}

.seg-btn {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  background: #271E18;
  color: var(--text-on-dark-muted);
  transition: all 0.2s;
}

.seg-btn.active {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.order-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.16s;
}

.order-card:hover {
  border-color: rgba(255, 122, 0, 0.4);
}

.order-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
}

.order-thumb {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
}

.status-pill.preparing { background: var(--warning-bg); color: #B45309; }
.status-pill.ontheway { background: #DBEAFE; color: #1D4ED8; }
.status-pill.delivered { background: var(--success-bg); color: #15803D; }

.order-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--surface-muted);
}

/* ============================================================
   Screen 12: Profile & Settings (Mi Perfil)
   ============================================================ */
.profile-user-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E1510, #3A271B);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 122, 0, 0.35);
}

.settings-list {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.settings-item {
  width: 100%;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--surface-muted);
  text-align: left;
  transition: background 0.16s;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:hover {
  background: var(--surface-soft);
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-main);
}

.settings-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toggle Switch */
.toggle-switch {
  width: 48px;
  height: 27px;
  border-radius: 99px;
  background: #D6CBC3;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-switch.on {
  background: var(--orange);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.toggle-switch.on::after {
  transform: translateX(21px);
}

/* ============================================================
   Empty States, Modals & Toasts
   ============================================================ */
.empty-state {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 36px 22px;
  text-align: center;
  max-width: 460px;
  margin: 12px auto;
}

.empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 8, 6, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 26px 26px 0 0;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
  animation: slideUpFade 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-container {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 420px;
  pointer-events: none;
}

.toast {
  background: #1B1410;
  color: #fff;
  border: 1px solid rgba(255, 122, 0, 0.45);
  border-radius: 14px;
  padding: 12px 15px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDownFade 0.24s ease;
}

.toast.success { border-color: rgba(34, 197, 94, 0.65); }
.toast.error { border-color: rgba(239, 68, 68, 0.65); }

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--orange-light);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 14px;
}

/* Digital Receipt */
.receipt-box {
  background: var(--surface-soft);
  border: 1.5px dashed #D1C4BA;
  border-radius: 16px;
  padding: 16px;
  font-size: 13.5px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

/* ============================================================
   Tablet & Desktop Responsive Breakpoints
   ============================================================ */
@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }

  .modal-dialog {
    border-radius: 26px;
    padding: 26px;
  }

  .menu-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-hero-banner {
    padding: 24px 26px;
  }

  .promo-hero-title {
    font-size: 26px;
  }
}

@media (min-width: 900px) {
  .onboarding-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 44px;
  }

  .onboarding-copy {
    align-items: flex-start;
    text-align: left;
  }

  .onboarding-dots {
    justify-content: flex-start;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .auth-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
  }

  .showcase-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .showcase-features li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 14px;
    color: #F3E9E2;
  }

  .showcase-check {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--orange);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .showcase-photo {
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 122, 0, 0.28);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  }

  .showcase-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .split-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: start;
  }

  .detail-hero {
    height: 440px;
    border-radius: 24px;
    position: sticky;
    top: 24px;
  }

  .detail-sheet {
    margin-top: 0;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }
}

@media (min-width: 1024px) {
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: #120D0A;
    border-right: 1px solid #2A1F19;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    color: #fff;
    z-index: 60;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
    flex: 1;
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text-on-dark-muted);
    font-weight: 700;
    font-size: 14.5px;
    transition: all 0.18s;
  }

  .sidebar-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .sidebar-link.active {
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    color: #fff;
    box-shadow: var(--shadow-orange);
  }

  .sidebar-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: var(--radius-pill);
    background: rgba(255, 122, 0, 0.2);
    color: var(--amber);
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-link.active .sidebar-badge {
    background: rgba(18, 13, 10, 0.28);
    color: #fff;
  }

  .sidebar-pwa-card {
    background: linear-gradient(145deg, #221812, #2D1C12);
    border: 1px solid rgba(255, 122, 0, 0.35);
    border-radius: 18px;
    padding: 14px;
    margin-top: 14px;
  }

  .sidebar-user {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #2A1F19;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-bottom-nav,
  .floating-cart-bar {
    display: none !important;
  }

  .page-header-dark {
    padding: 22px 32px 24px;
  }

  .page-sheet {
    padding: 28px 32px 48px;
    border-radius: 30px 0 0 0;
  }

  .menu-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes splashBar {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes scaleFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.45); }
  70% { box-shadow: 0 0 0 11px rgba(255, 122, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}
