/*
  Cuisine type: Cafetería de especialidad con jardín (brunch + café + repostería casera)
  Palette: brand-derived - pared turquesa del arco de entrada + hojas verdes y sol del menú impreso
    primary #1B8A7C (teal) · accent #F2A33A (sol) · leaf #8CC152 · bg #FBFAF4 · dark #0F2C28
  Fonts: Libre Baskerville (headings, italic accents) + DM Sans (body)
  Mood: sombra, jardín, calma, ritual del café, mañana de fin de semana
  Design style: E Clean SaaS structure + color-rich bands (teal dark / mint / warm white)
  Header H10 Split · Mobile menu M10 Card Grid · Sticky CTA S8 Bottom Dock
  Hero: custom LY2 + PT6 offset mosaic + CT3 + CT1
  Techniques: T1 noise (dark bands), T7/T22 cascade stagger, T9 dot grid, T23 stat sandwich,
  radial-gradient blobs (no filter: blur for iOS performance)
*/

:root {
  --color-primary: #1B8A7C;
  --color-primary-dark: #126B60;
  --color-primary-light: #3FB4A4;
  --color-accent: #F2A33A;
  --color-accent-dark: #D98A1F;
  --color-leaf: #8CC152;
  --color-lime: #E9E36B;
  --color-bg: #FBFAF4;
  --color-bg-card: #FFFFFF;
  --color-bg-alt: #EAF4EF;
  --color-dark: #0F2C28;
  --color-dark-2: #163C36;
  --color-text: #16211F;
  --color-text-muted: #5E6D69;
  --color-border: #DCE5E1;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on;
}
img { max-width: 100%; }
button, [role="button"], .cursor-pointer { cursor: pointer; }
::selection { background: rgba(27, 138, 124, 0.25); }

/* ---------- Typography ---------- */
.font-heading { letter-spacing: -0.01em; }
.h-hero {
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h-section {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
  border-radius: 2px;
}
.italic-accent { font-style: italic; font-weight: 400; }

/* ---------- Buttons (Type 2 rect flat for primary, ghost for secondary) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 28px;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms var(--ease-out-expo);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform 300ms var(--ease-out-expo); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-accent { background: var(--color-accent); color: #1F1608; }
.btn-accent:hover { background: var(--color-accent-dark); }
.btn-accent:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-ghost-light { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); }
.btn-white { background: #fff; color: var(--color-dark); }
.btn-white:hover { background: var(--color-bg-alt); }
.btn-white:hover svg { transform: translateX(4px); }
.btn-sm { padding: 12px 20px; font-size: 0.95rem; border-radius: 10px; }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }

/* ---------- Header (H10 split) ---------- */
#header {
  background: rgba(251, 250, 244, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
#header.header-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 2px rgba(15, 44, 40, 0.04), 0 6px 20px rgba(15, 44, 40, 0.06);
}
.nav-pill { background: rgba(27, 138, 124, 0.07); border: 1px solid rgba(27, 138, 124, 0.12); }
.nav-pill a { transition: background-color 200ms ease, color 200ms ease; }
.nav-pill a:hover { background: rgba(27, 138, 124, 0.12); color: var(--color-primary-dark); }
.logo-mark { transition: transform 400ms var(--ease-out-expo); }
a:hover .logo-mark { transform: rotate(-12deg); }

/* ---------- Mobile menu (M10 card grid) ---------- */
#mobile-menu { transition: opacity 320ms ease; }
#mobile-menu .menu-card { transition: transform 380ms var(--ease-out-expo), opacity 320ms ease; }
#mobile-menu.is-open .menu-card { transform: scale(1) translateY(0); opacity: 1; }
#mobile-menu .menu-card { transform: scale(0.94) translateY(12px); opacity: 0; }
.menu-tile { transition: background-color 200ms ease, color 200ms ease; }
.menu-tile:hover { background: rgba(27, 138, 124, 0.1); }

/* ---------- Sticky dock (S8) ---------- */
#sticky-cta { transition: transform 360ms var(--ease-out-expo), opacity 300ms ease; }
#sticky-cta.dock-hidden { transform: translate(-50%, 120%); opacity: 0; pointer-events: none; }
#sticky-cta.dock-visible { transform: translate(-50%, 0); opacity: 1; }
.dock {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(15, 44, 40, 0.06), 0 12px 32px rgba(15, 44, 40, 0.16);
  border: 1px solid rgba(15, 44, 40, 0.08);
}

/* ---------- Backgrounds and textures ---------- */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.dot-grid {
  background-image: radial-gradient(circle, rgba(27, 138, 124, 0.22) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}
.leaf-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%231B8A7C' stroke-width='1.2' stroke-linecap='round' opacity='0.35'%3E%3Cpath d='M30 60c0-18 12-30 30-30 0 18-12 30-30 30z'/%3E%3Cpath d='M30 60l22-22'/%3E%3Cpath d='M110 130c0-18 12-30 30-30 0 18-12 30-30 30z'/%3E%3Cpath d='M110 130l22-22'/%3E%3Cpath d='M120 40c-18 0-30-12-30-30 18 0 30 12 30 30z'/%3E%3Cpath d='M120 40L98 18'/%3E%3Cpath d='M50 140c-18 0-30-12-30-30 18 0 30 12 30 30z'/%3E%3Cpath d='M50 140l-22-22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.leaf-pattern-light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round' opacity='0.16'%3E%3Cpath d='M30 60c0-18 12-30 30-30 0 18-12 30-30 30z'/%3E%3Cpath d='M30 60l22-22'/%3E%3Cpath d='M110 130c0-18 12-30 30-30 0 18-12 30-30 30z'/%3E%3Cpath d='M110 130l22-22'/%3E%3Cpath d='M120 40c-18 0-30-12-30-30 18 0 30 12 30 30z'/%3E%3Cpath d='M120 40L98 18'/%3E%3Cpath d='M50 140c-18 0-30-12-30-30 18 0 30 12 30 30z'/%3E%3Cpath d='M50 140l-22-22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob-mint { background: radial-gradient(circle, rgba(63, 180, 164, 0.32) 0%, rgba(63, 180, 164, 0) 68%); }
.blob-sun { background: radial-gradient(circle, rgba(242, 163, 58, 0.30) 0%, rgba(242, 163, 58, 0) 68%); }
.blob-leaf { background: radial-gradient(circle, rgba(140, 193, 82, 0.28) 0%, rgba(140, 193, 82, 0) 68%); }
.glow-teal { background: radial-gradient(circle, rgba(63, 180, 164, 0.28) 0%, rgba(63, 180, 164, 0) 65%); }
.glow-sun { background: radial-gradient(circle, rgba(242, 163, 58, 0.22) 0%, rgba(242, 163, 58, 0) 65%); }

.bg-dark-gradient { background: linear-gradient(160deg, #0F2C28 0%, #163C36 55%, #0F2C28 100%); }
.bg-mint-gradient { background: linear-gradient(180deg, #EAF4EF 0%, #F3F8F4 60%, #FBFAF4 100%); }

/* ---------- Hero ---------- */
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-mosaic .col { display: flex; flex-direction: column; gap: 14px; }
.hero-mosaic .col-offset { padding-top: 56px; }
.hero-tile {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--color-bg-alt);
  box-shadow: 0 1px 1px rgba(15,44,40,0.04), 0 2px 4px rgba(15,44,40,0.04), 0 8px 16px rgba(15,44,40,0.05), 0 16px 32px rgba(15,44,40,0.05);
}
.hero-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out-expo); }
.hero-tile:hover img { transform: scale(1.04); }
.hero-tile.tall { aspect-ratio: 3 / 4; }
.hero-tile.square { aspect-ratio: 1 / 1; }
.float-badge {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(15,44,40,0.06), 0 12px 30px rgba(15,44,40,0.14);
  animation: float-y 5s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.rating-stars { color: var(--color-accent); letter-spacing: 1px; }

/* ---------- Reveal animations (IntersectionObserver + anime) ---------- */
.reveal { opacity: 0; transform: translateY(24px); will-change: transform, opacity; }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 700ms var(--ease-enter), transform 800ms var(--ease-enter); will-change: auto; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; transition: opacity 600ms var(--ease-enter), transform 700ms var(--ease-enter); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 640ms; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 720ms; }
@keyframes cascade-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.cascade-item { opacity: 0; animation: cascade-in 900ms var(--ease-out-expo) forwards; }
.cascade-item:nth-child(1) { animation-delay: 60ms; }
.cascade-item:nth-child(2) { animation-delay: 160ms; }
.cascade-item:nth-child(3) { animation-delay: 260ms; }
.cascade-item:nth-child(4) { animation-delay: 360ms; }
.cascade-item:nth-child(5) { animation-delay: 460ms; }
.cascade-item:nth-child(6) { animation-delay: 560ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .cascade-item { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Cards ---------- */
.card-soft {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15,44,40,0.03), 0 4px 12px rgba(15,44,40,0.05);
  transition: box-shadow 300ms ease, border-color 300ms ease;
}
.card-soft:hover {
  border-color: rgba(27,138,124,0.35);
  box-shadow: 0 2px 4px rgba(15,44,40,0.05), 0 12px 28px rgba(15,44,40,0.10);
}
.card-photo { overflow: hidden; }
.card-photo img { transition: transform 900ms var(--ease-out-expo); }
.card-soft:hover .card-photo img, .card-link:hover .card-photo img { transform: scale(1.05); }
.card-link { transition: transform 300ms var(--ease-out-expo), box-shadow 300ms ease, border-color 300ms ease; }
.card-link:hover { transform: translateY(-4px); }
.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 2px rgba(0,0,0,0.4);
  transition: background-color 250ms ease, border-color 250ms ease;
}
.card-dark:hover { background: rgba(255,255,255,0.07); border-color: rgba(63,180,164,0.45); }
.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Stats (T23 stat sandwich) ---------- */
.stat-value {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---------- Gallery ---------- */
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: var(--color-bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 900ms var(--ease-out-expo); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,44,40,0.55), rgba(15,44,40,0));
  opacity: 0;
  transition: opacity 300ms ease;
}
.gallery-item .zoom-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms var(--ease-out-expo);
  z-index: 2;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after, .gallery-item:hover .zoom-icon { opacity: 1; }
.gallery-item:hover .zoom-icon { transform: translateY(0); }
.glightbox-clean .gslide-media { max-width: 92vw !important; max-height: 90vh !important; }
.glightbox-clean .gslide-image img { max-width: 100%; max-height: 90vh; object-fit: contain; width: auto; height: auto; }

/* ---------- Reviews ---------- */
.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { scroll-snap-align: start; flex: 0 0 min(88vw, 400px); }
.review-quote { font-family: 'Libre Baskerville', Georgia, serif; font-size: 5rem; line-height: 0.6; color: var(--color-primary); opacity: 0.35; }
.author-link { text-decoration: none; }
.author-link:hover .author-name { color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hours table ---------- */
.hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hours-row:last-child { border-bottom: 0; }
.hours-row span:last-child { text-align: right; }
.hours-row.is-today { color: var(--color-lime); font-weight: 600; }
.hours-row.is-closed span:last-child { color: rgba(255,255,255,0.45); }

/* ---------- Divider wave ---------- */
.wave-divider { display: block; width: 100%; height: 60px; }

/* =====================================================
   MENU PAGE
   ===================================================== */
.menu-header {
  background: rgba(251, 250, 244, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
}
#cat-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 62px;
  z-index: 40;
  background: rgba(251, 250, 244, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.cat-nav-inner { display: flex; gap: 8px; flex-wrap: wrap; overflow: visible; padding: 12px 0; }
@media (max-width: 640px) {
  .cat-nav-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
  .cat-nav-inner::-webkit-scrollbar { display: none; }
}
.cat-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.cat-link:hover { color: var(--color-primary-dark); background: rgba(27,138,124,0.08); }
.cat-link.is-active { background: var(--color-primary); color: #fff; }
.menu-section { scroll-margin-top: 140px; }

.dish-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15,44,40,0.03), 0 4px 12px rgba(15,44,40,0.05);
  transition: box-shadow 300ms ease, border-color 300ms ease;
}
.dish-card:hover { box-shadow: 0 2px 4px rgba(15,44,40,0.05), 0 12px 28px rgba(15,44,40,0.10); border-color: rgba(27,138,124,0.3); }
.dish-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-alt); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 900ms var(--ease-out-expo); }
.dish-card:hover .dish-photo img { transform: scale(1.05); }
.dish-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1F1608;
  background: var(--color-accent);
  box-shadow: 0 2px 8px rgba(15,44,40,0.18);
}
.dish-badge.badge-new { background: var(--color-leaf); color: #12240A; }
.dish-badge.badge-chef { background: var(--color-dark); color: #fff; }
.dish-price { color: var(--color-primary-dark); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }

/* Fixed-height cart slot: "Agregar" and [-] n [+] share the exact same height -> no layout shift */
.cart-slot { height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; }
.add-btn {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  transition: background-color 200ms ease, transform 200ms var(--ease-out-expo);
}
.add-btn:hover { background: var(--color-primary-dark); }
.add-btn:active { transform: scale(0.97); }
.qty-controls {
  height: 100%;
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-alt);
  border: 1px solid rgba(27,138,124,0.25);
  border-radius: 12px;
  overflow: hidden;
  animation: pop-in 260ms var(--ease-out-expo);
}
@keyframes pop-in { from { transform: scale(0.9); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
.qty-btn {
  width: 40px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--color-primary-dark);
  transition: background-color 150ms ease;
}
.qty-btn:hover { background: rgba(27,138,124,0.12); }
.qty-btn svg { width: 16px; height: 16px; }
.qty-value { min-width: 28px; text-align: center; font-weight: 700; color: var(--color-text); }

/* Floating cart button */
#floating-cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 420ms var(--ease-out-expo), opacity 300ms ease;
}
#floating-cart.is-visible { transform: translateY(0); opacity: 1; }
#floating-cart.pulse .cart-pill { animation: cart-pulse 700ms ease; }
@keyframes cart-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  background: var(--color-dark);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(15,44,40,0.15), 0 14px 32px rgba(15,44,40,0.28);
  transition: background-color 200ms ease;
}
.cart-pill:hover { background: var(--color-primary-dark); }
.cart-count {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #1F1608;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #1F1608;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* =====================================================
   CART PAGE
   ===================================================== */
.cart-item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
@media (min-width: 640px) { .cart-item { grid-template-columns: 104px 1fr auto; align-items: center; } }
.cart-thumb { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: var(--color-bg-alt); }
@media (min-width: 640px) { .cart-thumb { width: 104px; height: 104px; } }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.remove-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 1px solid transparent;
  transition: color 200ms ease, background-color 200ms ease;
}
.remove-btn:hover { color: #B42318; background: rgba(180,35,24,0.08); }
#qr-modal { transition: opacity 280ms ease; }
#qr-modal .qr-card { transition: transform 380ms var(--ease-out-expo); transform: translateY(20px) scale(0.97); }
#qr-modal.is-open .qr-card { transform: none; }
.qr-frame { background: #fff; border-radius: 20px; padding: 14px; display: inline-block; box-shadow: inset 0 0 0 1px var(--color-border); }
.qr-frame canvas { display: block; border-radius: 8px; }
.wa-btn { background: #25D366; color: #fff; }
.wa-btn:hover { background: #1EBE5A; }
.inline-confirm { animation: pop-in 260ms var(--ease-out-expo); }

/* =====================================================
   ORDER PAGE (waiter view)
   ===================================================== */
.receipt { max-width: 560px; margin: 0 auto; }
.receipt-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; padding: 16px 0; border-top: 1px solid var(--color-border); align-items: baseline; }
.receipt-line:first-child { border-top: 0; }
.receipt-total { border-top: 2px solid var(--color-dark); }
@media print {
  body { background: #fff !important; }
  .no-print { display: none !important; }
  .receipt { max-width: none; }
  .receipt-card { box-shadow: none !important; border: 0 !important; }
}

/* Alternating menu sections */
.section-alt { background: linear-gradient(180deg, #F1F7F3 0%, #FBFAF4 100%); }
