/* ==========================================================
   LUSCIOUS — PREMIUM MENU LANDING
   Full-screen guided flow: Welcome → Menu → Drawer
   ========================================================== */

:root {
  /* Slate Dark Palette (Welcome & Sidebar) */
  --slate-dark: #1b1b1d;
  --slate-dark-2: #242426;
  --slate-surface: #2b2b2f;
  --slate-border: rgba(255, 255, 255, 0.12);
  --text-slate-muted: #9c9993;
  --text-slate-light: #d6d3cc;

  /* Accent Colors */
  --coral: #ea6045;
  --coral-hover: #f3735a;
  --gold: #d69733;
  --gold-hover: #e4a746;
  --caramel: #c98539;

  /* White & Cream Palette (Menu Main Panel) */
  --pure-white: #ffffff;
  --cream-bg: #f5f0e9;
  --cream-card: #fcfbfa;
  --text-dark: #1e1d1b;
  --text-dark-muted: #75716b;

  /* Geometry & Transitions */
  --sidebar-w: 84px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --view-transition: 0.8s var(--ease-soft);

  /* Spacing scale — coherent rhythm across the template */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 14px;
  --space-lg: 22px;
  --space-xl: 32px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Content width on large screens (keeps cards elegant, not stretched) */
  --content-max: 720px;

  /* Minimum touch target for interactive elements */
  --tap-min: 44px;

  /* Safe area insets (notches / home indicator) */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Card surface (light) */
  --card-bg: #faf8f5;
  --card-border: rgba(0, 0, 0, 0.04);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 10px 26px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--t2-font-body, 'Poppins'), sans-serif;
  color: var(--text-dark);
  background-color: var(--slate-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(201, 133, 57, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(234, 96, 69, 0.04) 0%, transparent 40%),
    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='%236e5d4e' fill-opacity='0.035'%3E%3Cpath d='M38 28c-6.6 0-12 5.4-12 12 0 7.8 7 13.5 12 18 5-4.5 12-10.2 12-18 0-6.6-5.4-12-12-12zm-1 5c1.5 3.5 1.5 8.5 0 12-1-3.5-1-8.5 0-12z'/%3E%3Cpath d='M124 114c-5.5 0-10 4.5-10 10 0 6.5 6 11.5 10 15 4-3.5 10-8.5 10-15 0-5.5-4.5-10-10-10zm-1 4c1.2 3 1.2 7 0 10-1-3-1-7 0-10z'/%3E%3Cpath d='M118 36c-4.4 0-8 3.6-8 8 0 5.2 4.8 9.2 8 12 3.2-2.8 8-6.8 8-12 0-4.4-3.6-8-8-8z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Typography Defaults */
h1, h2, h3, h4 {
  font-family: var(--t2-font-body, 'Poppins'), sans-serif;
  font-weight: 700;
}

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

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

/* Accessible focus ring — keyboard navigation only */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* ==========================================================
   VIEW SYSTEM — Full-screen sections with smooth transitions
   ========================================================== */
.view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition:
    opacity var(--view-transition),
    transform var(--view-transition),
    visibility 0s linear 0.8s;
  z-index: 1;
}

.view.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
  transition-delay: 0s;
}

/* Welcome view exits upward with a soft lift */
.view-welcome.leaving {
  transform: translateY(-6%) scale(0.98);
  opacity: 0;
}

/* Menu view enters from below with a soft rise */
.view-menu {
  transform: translateY(6%) scale(0.98);
}
.view-menu.active {
  transform: translateY(0) scale(1);
}
.view-menu.leaving {
  transform: translateY(6%) scale(0.98);
  opacity: 0;
}

/* ==========================================================
   VIEW 1: WELCOME / HERO
   ========================================================== */
.view-welcome {
  background: var(--slate-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  color: #fff;
  user-select: none;
}

.welcome-header-img {
  position: relative;
  width: 100%;
  height: 42vh;
  min-height: 240px;
  max-height: 420px;
  flex-shrink: 0;
  overflow: hidden;
}

.welcome-bg-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.08) translateY(-1.5%); }
}

.welcome-header-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(27, 27, 29, 0) 0%, var(--slate-dark) 100%);
  pointer-events: none;
}

.welcome-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px 5vh;
  gap: 22px;
  z-index: 2;
}

.welcome-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: riseIn 1s var(--ease-soft) 0.2s both;
}

.welcome-eyebrow {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #ffffff;
  opacity: 0.95;
  text-transform: lowercase;
}

.welcome-brand {
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  margin: 0;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.welcome-tagline {
  font-size: clamp(0.82rem, 2.4vw, 1rem);
  font-weight: 400;
  color: var(--text-slate-muted);
  letter-spacing: 1px;
}

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

/* Slider Button (Slide to see menu) */
.menu-slider-wrap {
  width: 100%;
  max-width: 340px;
  display: flex;
  justify-content: center;
  margin-top: 6px;
  animation: riseIn 1s var(--ease-soft) 0.5s both;
}

.menu-slider {
  position: relative;
  width: 100%;
  height: 56px;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  overflow: hidden;
  touch-action: pan-y;
}

.slider-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(234, 96, 69, 0.55);
  cursor: grab;
  z-index: 3;
  transition: background 0.25s, box-shadow 0.25s;
}

.slider-thumb:active { cursor: grabbing; }

.slider-track-text {
  width: 100%;
  text-align: center;
  padding-left: 44px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--caramel);
  letter-spacing: 0.4px;
  user-select: none;
  pointer-events: none;
}

/* Contact Footer in Welcome */
.welcome-contact, .drawer-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: riseIn 1s var(--ease-soft) 0.7s both;
}

.contact-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-slate-muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(234, 96, 69, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}

.contact-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 22px rgba(234, 96, 69, 0.65);
  background: var(--coral-hover);
}
.contact-btn.whatsapp { background: #25d366; box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45); }
.contact-btn.whatsapp:hover { background: #20bd5a; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.65); }
.contact-btn.facebook { background: #1877f2; box-shadow: 0 4px 16px rgba(24, 119, 242, 0.45); }
.contact-btn.facebook:hover { background: #1463d6; box-shadow: 0 8px 22px rgba(24, 119, 242, 0.65); }
.contact-btn.tiktok { background: #000000; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45); }
.contact-btn.tiktok:hover { background: #1a1a1a; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65); }
.contact-btn.reservation { background: var(--gold); box-shadow: 0 4px 16px rgba(214, 151, 51, 0.45); }
.contact-btn.reservation:hover { background: var(--gold-hover); box-shadow: 0 8px 22px rgba(214, 151, 51, 0.65); }

/* ==========================================================
   VIEW 2: MENU & PRODUCTS
   ========================================================== */
.view-menu {
  display: flex;
  background: var(--pure-white);
}

/* Category Sidebar (Dark Slate Column) */
.cat-sidebar {
  width: var(--sidebar-w);
  height: 100%;
  background: var(--slate-dark);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 18px;
  position: relative;
  z-index: 10;
}

/* MORE Button */
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 22px;
  transition: all 0.25s var(--ease);
}

.more-btn i { font-size: 0.72rem; }

.more-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* Category Navigation Items */
.cat-nav {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-item {
  width: 100%;
  min-height: 44px;
  padding: 10px 4px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #a39f99;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
  transition: color 0.3s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
}

.cat-item i {
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
}

.cat-item:hover { color: #ffffff; }
.cat-item:hover i { transform: translateY(-2px); }
.cat-item:active { transform: scale(0.96); }

/* ACTIVE CATEGORY: Concave notch tab */
.cat-item.active {
  background: var(--pure-white);
  color: var(--gold);
  border-radius: 22px 0 0 22px;
  margin-left: 12px;
  width: calc(100% - 12px);
  position: relative;
  z-index: 5;
}

.cat-item.active i {
  color: var(--gold);
  transform: scale(1.12);
}

/* Top Concave Curve */
.cat-item.active::before {
  content: '';
  position: absolute;
  top: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  background: transparent;
  border-bottom-right-radius: 20px;
  box-shadow: 8px 8px 0 8px var(--pure-white);
  pointer-events: none;
}

/* Bottom Concave Curve */
.cat-item.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 20px;
  height: 20px;
  background: transparent;
  border-top-right-radius: 20px;
  box-shadow: 8px -8px 0 8px var(--pure-white);
  pointer-events: none;
}

/* Right Content Area (Products Panel) */
.menu-main {
  flex: 1;
  height: 100%;
  background: var(--pure-white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Menu Header with Vintage Circular Badge */
.menu-header {
  padding: calc(20px + var(--safe-top)) 18px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.vintage-badge-wrap {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-spring);
  filter: drop-shadow(0 6px 14px rgba(201, 133, 57, 0.25));
}

.vintage-badge-wrap:hover {
  transform: scale(1.08);
}

.vintage-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.menu-title-row {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-heading {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1.2;
}

.category-item-count {
  font-size: 0.72rem;
  color: var(--text-dark-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Product Cards Container */
.products-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 18px calc(96px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}
.products-container::-webkit-scrollbar { width: 6px; }
.products-container::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: 6px; }

/* Centered, width-capped content column on larger screens */
.products-container > .product-card,
.products-container > .t2-empty-state {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Product Card */
.product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: cardEnter 0.55s var(--ease-spring) forwards;
  opacity: 0;
}

.product-card:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(0, 0, 0, 0.06);
}

.product-card:active {
  transform: translateY(0) scale(0.997);
}

.product-img-box {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-spring);
}

.product-card:hover .product-img-box img {
  transform: scale(1.08) rotate(-2deg);
}

.product-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.product-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--coral);
  margin-top: 4px;
  line-height: 1.2;
}

.product-add-mini-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  box-shadow: 0 3px 10px rgba(214, 151, 51, 0.45);
  transition: transform 0.25s var(--ease-spring), background 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}

.product-add-mini-btn:hover {
  transform: scale(1.12) rotate(90deg);
  background: var(--gold-hover);
  box-shadow: 0 6px 16px rgba(214, 151, 51, 0.55);
}

.product-add-mini-btn:active {
  transform: scale(0.94);
}

.product-add-mini-btn .product-add-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(234, 96, 69, 0.5);
  border: 2px solid var(--pure-white);
  line-height: 1;
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring);
}

/* Keep badge circular for multi-digit quantities */
.product-add-mini-btn .product-add-badge.multi-digit {
  font-size: 0.54rem;
}

/* Product name row — title + inline favorite (text mode) */
.product-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-name-row .product-name {
  flex: 1;
  min-width: 0;
}

/* Inline favorite button (used in text mode, no image box) */
.product-fav-btn-inline {
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), color 0.2s;
}
.product-fav-btn-inline:hover {
  transform: scale(1.2);
  background: rgba(0,0,0,0.05);
}
.product-fav-btn-inline.fav-active {
  color: var(--coral);
}

/* Text mode — no image, card uses full width */
.product-card-text-mode {
  padding: 14px 16px;
}
.product-card-text-mode .product-details {
  flex: 1;
}
.product-card-text-mode .product-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

/* Floating Action Cart Button (FAB) */
.fab-cart-btn {
  position: absolute;
  right: calc(22px + var(--safe-right));
  bottom: calc(24px + var(--safe-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(214, 151, 51, 0.55);
  z-index: 20;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.fab-cart-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 30px rgba(214, 151, 51, 0.7);
}

.fab-cart-btn:active {
  transform: scale(0.95);
}

.fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--coral);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pure-white);
}

/* Back to home button */
.back-home-btn {
  position: absolute;
  left: calc(22px + var(--safe-left));
  bottom: calc(24px + var(--safe-bottom));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--slate-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  z-index: 20;
  transition: transform 0.3s var(--ease-spring), background 0.25s;
}

.back-home-btn:hover {
  transform: scale(1.1) translateX(-2px);
  background: var(--slate-dark-2);
}

.back-home-btn:active {
  transform: scale(0.94);
}

/* ==========================================================
   MARKETPLACE BACK BUTTON — link to the restaurants directory
   ========================================================== */

.mkt-back-btn {
  position: absolute;
  top: calc(18px + var(--safe-top, 0px));
  left: calc(18px + var(--safe-left, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--coral);
  color: #ffffff;
  font-family: var(--t2-font-body, 'Poppins'), sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.mkt-back-btn:hover {
  background: var(--coral-hover);
  transform: translateX(-3px);
}

/* Circular variant inside the dark sidebar (menu view) */
.mkt-back-btn-side {
  position: static;
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
  gap: 0;
  border-radius: 50%;
  margin-bottom: 14px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mkt-back-btn-side:hover { transform: scale(1.08); }

/* ==========================================================
   SIDE NAVIGATION DRAWER (overlay)
   ========================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(380px, 86vw);
  background: var(--slate-dark);
  z-index: 101;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 26px 24px;
  color: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-spring);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.25s var(--ease);
}

.close-pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.drawer-badge {
  width: 42px;
  height: 42px;
}

.drawer-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Drawer Navigation Links */
.drawer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

.drawer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
}

.drawer-link {
  font-family: var(--t2-font-body, 'Poppins'), sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1px;
  transition: color 0.25s, transform 0.25s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.drawer-link-icon {
  font-size: 1rem;
  color: var(--gold);
  width: 22px;
  text-align: center;
  transition: color 0.25s, transform 0.25s;
}

.drawer-link:hover .drawer-link-icon {
  color: var(--coral);
  transform: scale(1.15);
}

.drawer-link.active .drawer-link-icon {
  color: var(--coral);
}

.drawer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.3s var(--ease);
}

.drawer-link:hover {
  color: var(--coral);
  transform: translateX(4px);
}

.drawer-link:hover::after { width: 100%; }

.drawer-link.active { color: var(--coral); }
.drawer-link.active::after { width: 100%; }

.drawer-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.drawer-footer .contact-icons {
  justify-content: flex-start;
}

.drawer-address {
  font-size: 0.72rem;
  color: var(--text-slate-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* ==========================================================
   CART & ORDER MODAL
   ========================================================== */
.cart-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
}

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

.cart-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(440px, 92vw);
  max-height: 85vh;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-spring);
}

.cart-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.cart-modal-header {
  padding: 18px 22px;
  background: var(--slate-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-modal-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-modal-close {
  color: #ffffff;
  font-size: 1.15rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.25s, transform 0.25s;
}

.cart-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.cart-modal-body {
  padding: 18px 22px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 50vh;
}

.cart-empty-state {
  text-align: center;
  padding: 36px 12px;
  color: var(--text-dark-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cart-empty-state i {
  font-size: 2.6rem;
  color: var(--gold);
  opacity: 0.7;
}

.cart-empty-state p { font-weight: 600; color: var(--text-dark); }
.cart-empty-state span { font-size: 0.82rem; }

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  animation: fadeInCard 0.3s var(--ease) forwards;
}

.cart-item-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-surface, #f0ebe5);
  color: var(--coral);
  font-size: 1.1rem;
  opacity: .6;
}

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

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

.cart-item-unit-price {
  font-size: 0.76rem;
  color: var(--coral);
  font-weight: 600;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f3f0;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s, background 0.2s;
}

.qty-btn:hover { background: #faf8f5; }
.qty-btn:active { transform: scale(0.88); }

.qty-num {
  font-size: 0.86rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-modal-footer {
  padding: 18px 22px calc(18px + var(--safe-bottom));
  background: #faf8f5;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.1rem;
}

.cart-total-row strong {
  color: var(--coral);
  font-size: 1.3rem;
}

.cart-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clear-cart-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #ece9e3;
  color: #7a756e;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.clear-cart-btn:hover {
  background: #e0dbd3;
  color: #d93829;
  transform: translateY(-1px);
}

.clear-cart-btn:active { transform: scale(0.95); }

.whatsapp-checkout-btn {
  flex: 1;
  min-height: 48px;
  border-radius: var(--radius-sm);
  background: #25d366;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.whatsapp-checkout-btn:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.5);
}

.whatsapp-checkout-btn:active { transform: translateY(0) scale(0.99); }

.whatsapp-checkout-btn:disabled {
  background: #bfe9cc;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================
   TOAST NOTIFICATION
   ========================================================== */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 70px);
  background: var(--slate-dark);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease-spring);
}

.toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-notification i {
  color: #25d366;
  font-size: 1.05rem;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Beautiful staggered card entrance: slide from right + fade + subtle scale */
@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: translateX(28px) scale(0.94);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Category header smooth swap */
.category-heading, .category-item-count {
  display: inline-block;
  animation: headingSwap 0.5s var(--ease-spring);
}
@keyframes headingSwap {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   PRODUCT ATTRIBUTES
   ========================================================== */

/* Tags row (Popular / New / Featured / Veg / Spicy) */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.5;
  white-space: nowrap;
}

.product-tag i { font-size: 0.62rem; }

.product-tag.tag-popular  { background: rgba(234, 96, 69, 0.14); color: var(--coral); }
.product-tag.tag-new      { background: rgba(37, 211, 102, 0.16); color: #1a9d52; }
.product-tag.tag-featured { background: rgba(214, 151, 51, 0.18); color: #a9741f; }
.product-tag.tag-veg      { background: rgba(67, 160, 71, 0.16); color: #2e8b46; }
.product-tag.tag-spicy    { background: rgba(229, 57, 53, 0.14); color: #c62828; }
.product-tag.tag-chef     { background: rgba(27, 27, 29, 0.1); color: var(--slate-dark); }

/* Rating row (stars + review count) */
.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--text-dark-muted);
}

.product-rating .stars {
  color: #f5b301;
  letter-spacing: 1px;
  font-size: 0.72rem;
}

.product-rating .review-count {
  font-weight: 500;
}

.product-rating.no-rating {
  color: rgba(0,0,0,.25);
  font-style: italic;
  font-size: 0.65rem;
}
.product-rating.no-rating .no-rating-text {
  font-weight: 400;
}

/* Allergens row */
.product-allergens {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}

.allergen-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f0ece4;
  color: #8a6f3b;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid rgba(138, 111, 59, 0.18);
}

.allergen-chip i { font-size: 0.62rem; }

/* Allergens row with label */
.allergen-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.allergen-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #8a6f3b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Meta row (calories, prep time) */
.product-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.66rem;
  color: var(--text-dark-muted);
}

.product-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-meta .meta-item i {
  font-size: 0.7rem;
  color: var(--caramel);
}

/* Product details layout adjustment to fit attributes */
.product-details {
  gap: 4px;
}

/* ==========================================================
   RESPONSIVE — Mobile first refinement
   ========================================================== */

/* ---- Large desktop: cap content width, keep elegant composition ---- */
@media (min-width: 1280px) {
  :root { --sidebar-w: 92px; }
  .menu-header { padding-top: calc(28px + var(--safe-top)); }
  .vintage-badge-wrap { width: 84px; height: 84px; }
  .products-container { gap: 14px; padding-left: 32px; padding-right: 32px; }
  .product-card { padding: 14px 18px; gap: 16px; }
  .product-img-box { width: 80px; height: 80px; }
}

@media (min-width: 1440px) {
  :root { --content-max: 760px; }
}

/* ---- Tablet & small desktop ---- */
@media (max-width: 1024px) {
  .menu-title-row { max-width: 100%; }
}

@media (max-width: 768px) {
  .welcome-header-img {
    height: 38vh;
    min-height: 200px;
  }
  .welcome-body { padding: 0 20px 4vh; gap: 18px; }
  .menu-slider { height: 52px; }
  .slider-thumb { width: 44px; height: 44px; }
}

/* ---- Phones: 430px and below ---- */
@media (max-width: 480px) {
  :root { --sidebar-w: 72px; }

  .cat-item { font-size: 0.56rem; padding: 9px 4px; }
  .cat-item i { font-size: 1rem; }

  .menu-header { padding: 16px 14px 4px; }
  .vintage-badge-wrap { width: 66px; height: 66px; margin-bottom: 10px; }

  .products-container { padding: 12px 14px calc(92px + var(--safe-bottom)); gap: 10px; }
  .product-card { padding: 10px 12px; gap: 11px; }
  .product-img-box { width: 64px; height: 64px; }
  .product-name { font-size: 0.88rem; }
  .product-desc { font-size: 0.7rem; }
  .product-price { font-size: 0.88rem; }
  .product-tag { font-size: 0.56rem; padding: 1px 6px; }
  .allergen-chip { font-size: 0.54rem; padding: 1px 6px; }
  .product-meta { gap: 8px; font-size: 0.62rem; }
  .product-add-mini-btn { width: 34px; height: 34px; font-size: 0.78rem; }

  .fab-cart-btn { right: calc(16px + var(--safe-right)); bottom: calc(18px + var(--safe-bottom)); width: 52px; height: 52px; }
  .back-home-btn { left: calc(16px + var(--safe-left)); bottom: calc(18px + var(--safe-bottom)); width: 44px; height: 44px; }

  .drawer-links ul { gap: 18px; }
  .drawer-link { font-size: 1.25rem; }
}

/* ---- Very small phones: 360px and below ---- */
@media (max-width: 360px) {
  :root { --sidebar-w: 64px; }
  .cat-item { font-size: 0.5rem; padding: 8px 2px; }
  .menu-header { padding: 14px 12px 4px; }
  .vintage-badge-wrap { width: 60px; height: 60px; }
  .products-container { padding: 10px 12px calc(90px + var(--safe-bottom)); }
  .product-card { padding: 9px 10px; gap: 9px; }
  .product-img-box { width: 58px; height: 58px; }
  .product-name { font-size: 0.84rem; }
  .product-desc { font-size: 0.68rem; }
  .product-add-mini-btn { width: 32px; height: 32px; }
  .fab-cart-btn { width: 48px; height: 48px; right: calc(12px + var(--safe-right)); bottom: calc(14px + var(--safe-bottom)); }
  .back-home-btn { width: 42px; height: 42px; left: calc(12px + var(--safe-left)); bottom: calc(14px + var(--safe-bottom)); }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15s !important;
  }
  .welcome-bg-art { animation: none; }
}

/* ==========================================================
   FAVORITES BUTTON
   ========================================================== */
.product-fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.product-fav-btn:hover { transform: scale(1.2); }
.product-fav-btn.fav-active { color: var(--coral); background: rgba(255,255,255,0.95); }
.product-fav-btn.fav-active i { animation: heartPop 0.3s var(--ease-spring); }

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

/* ==========================================================
   DARK MODE — variant of the same template (never forced)
   ========================================================== */
body.dark-mode {
  --pure-white: #1a1a1c;
  --cream-bg: var(--color-bg, #18181a);
  --cream-card: var(--color-card, #242426);
  --text-dark: var(--color-text, #e4e1da);
  --text-dark-muted: var(--color-text-secondary, #9c9993);
  --slate-dark: var(--color-header, #0d0d0f);
  --slate-dark-2: var(--color-header, #161618);
  --slate-surface: var(--color-nav, #1e1e22);
  --slate-border: rgba(255,255,255,0.08);
  --card-bg: var(--color-card, #242426);
  --card-border: rgba(255,255,255,0.08);
  --card-shadow: 0 1px 2px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 10px 26px rgba(0,0,0,0.45);
}

body.dark-mode .view-menu {
  background-color: var(--cream-bg);
}

body.dark-mode .product-card {
  background: var(--cream-card);
  border-color: var(--slate-border);
}

body.dark-mode .product-card:hover {
  background: #2a2a2e;
}

body.dark-mode .product-img-box {
  background: rgba(255,255,255,0.04);
}

body.dark-mode .menu-title-row {
  border-bottom-color: var(--slate-border);
}

body.dark-mode .cart-modal-footer {
  background: #1c1c1e;
  border-top-color: var(--slate-border);
}

body.dark-mode .cart-qty-ctrl {
  background: var(--slate-surface);
}
body.dark-mode .qty-btn {
  background: var(--slate-surface);
  color: var(--text-dark);
}
body.dark-mode .qty-btn:hover { background: #2a2a2e; }

body.dark-mode .clear-cart-btn {
  background: var(--slate-surface);
  color: var(--text-dark-muted);
}
body.dark-mode .clear-cart-btn:hover { background: #2a2a2e; color: var(--coral); }

body.dark-mode .cat-sidebar {
  background: var(--slate-dark);
}

body.dark-mode .cat-item {
  color: var(--text-dark-muted);
}
body.dark-mode .cat-item.active {
  background: var(--slate-surface);
  color: var(--coral);
}

body.dark-mode .menu-header {
  background: var(--cream-bg);
  border-bottom-color: var(--slate-border);
}

body.dark-mode .current-category-heading {
  color: var(--text-dark);
}

body.dark-mode .cart-modal {
  background: var(--slate-dark);
  color: var(--text-dark);
}

body.dark-mode .cart-modal-header {
  border-bottom-color: var(--slate-border);
}

body.dark-mode .cart-item {
  border-bottom-color: var(--slate-border);
}

body.dark-mode .cart-item-name { color: var(--text-dark); }
body.dark-mode .cart-item-price { color: var(--text-dark-muted); }
body.dark-mode .cart-modal-total { color: var(--coral); }

body.dark-mode .side-drawer {
  background: var(--slate-dark);
}

body.dark-mode .drawer-link { color: var(--text-slate-light); }
body.dark-mode .drawer-link.active { color: var(--coral); }

body.dark-mode .toast-notification {
  background: var(--slate-surface);
  color: var(--text-dark);
}

body.dark-mode .product-tag {
  background: var(--slate-surface);
}

body.dark-mode .allergen-chip {
  background: var(--slate-surface);
  color: var(--text-dark-muted);
}

/* Dark mode for secondary pages (pedido, reservar, comprobantes, producto) */
body.dark-mode .t2-page { background: var(--cream-bg); }
body.dark-mode .t2-page-header { background: var(--slate-dark); }
body.dark-mode .t2-card,
body.dark-mode .t2-product-card,
body.dark-mode .t2-receipt-card,
body.dark-mode .t2-receipt-detail,
body.dark-mode .t2-content-section,
body.dark-mode .t2-review-item,
body.dark-mode .t2-review-form,
body.dark-mode .t2-rating-summary {
  background: var(--cream-card);
  border-color: var(--slate-border);
}
body.dark-mode .t2-product-name,
body.dark-mode .t2-page-title h1,
body.dark-mode .t2-content-title,
body.dark-mode .t2-reviews-title,
body.dark-mode .t2-receipt-code,
body.dark-mode .t2-review-author {
  color: var(--text-dark);
}
body.dark-mode .t2-product-desc,
body.dark-mode .t2-product-cat,
body.dark-mode .t2-page-title p,
body.dark-mode .t2-review-comment,
body.dark-mode .t2-review-date,
body.dark-mode .t2-rating-count,
body.dark-mode .t2-receipt-meta .meta-row,
body.dark-mode .t2-content-list li,
body.dark-mode .formGroup label {
  color: var(--text-dark-muted);
}
body.dark-mode .formGroup input,
body.dark-mode .formGroup select,
body.dark-mode .formGroup textarea {
  background: var(--slate-surface);
  border-color: var(--slate-border);
  color: var(--text-dark);
}
body.dark-mode .t2-back-btn { background: var(--coral); }
body.dark-mode .t2-empty p { color: var(--text-dark-muted); }

/* Dark mode toggle button */
.dark-mode-toggle {
  background: transparent;
  border: none;
  color: var(--text-slate-light);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.dark-mode-toggle:hover {
  background: var(--slate-surface);
  color: var(--coral);
}

/* ============================================================
   DARK MODE — complete coverage for all sections
   Ensures every section adapts when dark mode is toggled.
   ============================================================ */

/* Welcome / hero section */
body.dark-mode .view-welcome {
  background: var(--slate-dark);
}
body.dark-mode .welcome-header-img,
body.dark-mode .welcome-header-fade {
  background: var(--slate-dark-2);
}
body.dark-mode .welcome-eyebrow { color: var(--text-dark-muted); }
body.dark-mode .welcome-brand { color: var(--text-dark); }
body.dark-mode .welcome-tagline { color: var(--text-dark-muted); }
body.dark-mode .welcome-contact { color: var(--text-dark-muted); }
body.dark-mode .welcome-contact a { color: var(--text-dark); }

/* MORE button */
body.dark-mode .more-btn {
  background: var(--slate-surface);
  color: var(--text-dark);
  border-color: var(--slate-border);
}
body.dark-mode .more-btn:hover {
  background: var(--coral);
  color: #fff;
}

/* Category navigation rail */
body.dark-mode .cat-nav {
  background: transparent;
}

/* Vintage badge */
body.dark-mode .vintage-badge-wrap {
  background: var(--slate-surface);
  border-color: var(--slate-border);
}

/* Category heading + item count */
body.dark-mode .category-heading { color: var(--text-dark); }
body.dark-mode .category-item-count { color: var(--text-dark-muted); }

/* FAB cart button */
body.dark-mode .fab-cart-btn {
  background: var(--coral);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
body.dark-mode .fab-cart-btn:hover {
  background: var(--coral-hover, var(--coral));
}

/* Back home button */
body.dark-mode .back-home-btn {
  background: var(--slate-surface);
  color: var(--text-dark);
  border-color: var(--slate-border);
}
body.dark-mode .back-home-btn:hover {
  background: var(--coral);
  color: #fff;
}

/* Side drawer — header, badge, footer, close */
body.dark-mode .drawer-header {
  background: var(--slate-dark-2);
  border-bottom-color: var(--slate-border);
}
body.dark-mode .close-pill-btn {
  background: var(--slate-surface);
  color: var(--text-dark);
  border-color: var(--slate-border);
}
body.dark-mode .drawer-footer {
  background: var(--slate-dark-2);
  border-top-color: var(--slate-border);
  color: var(--text-dark-muted);
}
body.dark-mode .drawer-address { color: var(--text-dark-muted); }

/* Cart modal — body, title, close */
body.dark-mode .cart-modal-body { background: var(--slate-dark); }
body.dark-mode .cart-modal-title { color: var(--text-dark); }
body.dark-mode .cart-modal-close {
  background: var(--slate-surface);
  color: var(--text-dark);
}
body.dark-mode .cart-modal-close:hover {
  background: var(--coral);
  color: #fff;
}

/* Empty cart state */
body.dark-mode .empty-cart-state,
body.dark-mode .cart-empty-state {
  color: var(--text-dark-muted);
}

/* Products container background */
body.dark-mode .products-container { background: transparent; }
body.dark-mode .menu-main { background: var(--cream-bg); }

/* Dark mode toggle in dark mode */
body.dark-mode .dark-mode-toggle { color: var(--text-dark); }
body.dark-mode .dark-mode-toggle:hover { color: var(--coral); }

/* Drawer overlay */
body.dark-mode .drawer-overlay { background: rgba(0,0,0,0.6); }
body.dark-mode .cart-modal-backdrop { background: rgba(0,0,0,0.6); }

/* ============================================================
   RESTAURANT BRANDING LAYER (template-agnostic)
   Maps the canonical tenant palette to template2's own variables.
   ============================================================ */
:root {
  /* Page / surface / card backgrounds */
  --slate-dark:     var(--color-header, #1b1b1d);
  --slate-dark-2:   var(--color-header, #242426);
  --slate-surface:  var(--color-nav, #2b2b2f);
  --pure-white:     var(--color-surface, #ffffff);
  --cream-bg:       var(--color-bg, #f5f0e9);
  --cream-card:     var(--color-card, #fcfbfa);

  /* Typography */
  --text-dark:        var(--color-text, #1e1d1b);
  --text-dark-muted:  var(--color-text-secondary, #75716b);
  --text-slate-light: var(--color-header-text, #d6d3cc);
  --text-slate-muted: var(--color-text-secondary, #9c9993);

  /* Brand accents */
  --coral:       var(--color-primary, #ea6045);
  --coral-hover: var(--color-primary-hover, #f3735a);
  --gold:        var(--color-secondary, #d69733);
  --gold-hover:  var(--color-secondary, #e4a746);
  --caramel:     var(--color-accent, #c98539);
}

/* ==========================================================
   PREMIUM REFINEMENTS — Mobile-first polish layer
   Enhances the existing template without replacing it.
   ========================================================== */

/* --- Header: more compact, less vertical waste --- */
@media (max-width: 480px) {
  .menu-header {
    padding: 10px 14px 2px;
  }
  .vintage-badge-wrap {
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
  }
  .menu-title-row {
    padding: 6px 2px 8px;
  }
  .category-heading {
    font-size: 0.92rem;
    letter-spacing: 1px;
  }
  .category-item-count {
    font-size: 0.66rem;
  }
}

/* --- Product cards: cleaner, better hierarchy --- */
.product-card {
  padding: 10px 12px;
  gap: 12px;
  border-radius: 14px;
}

.product-img-box {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 1px;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 6px;
}

/* --- Add button: bigger touch target, clearer --- */
.product-add-mini-btn {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(var(--color-primary-rgb, 214, 151, 51), 0.4);
}

.product-add-mini-btn .product-add-badge {
  width: 18px;
  height: 18px;
  font-size: 0.62rem;
  top: -6px;
  right: -6px;
}

/* --- Stepper: − / qty / + shown when qty > 0 --- */
.product-stepper {
  display: none;
  align-items: center;
  gap: 0;
  background: rgba(var(--color-primary-rgb, 214, 151, 51), 0.1);
  border-radius: 12px;
  padding: 3px;
  flex-shrink: 0;
  height: 40px;
}

.product-stepper.active {
  display: flex;
}

.product-stepper .step-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--gold);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s;
  flex-shrink: 0;
}

.product-stepper .step-btn:active {
  transform: scale(0.9);
}

.product-stepper .step-btn.minus {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.product-stepper .step-count {
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  padding: 0 2px;
}

/* Hide the + button when stepper is active */
.product-add-mini-btn.hidden-by-stepper {
  display: none;
}

/* --- Products container: tighter spacing on mobile --- */
@media (max-width: 480px) {
  .products-container {
    padding: 10px 12px calc(88px + var(--safe-bottom));
    gap: 8px;
  }
  .product-card {
    padding: 9px 11px;
    gap: 10px;
  }
  .product-img-box {
    width: 62px;
    height: 62px;
  }
  .product-name {
    font-size: 0.86rem;
  }
  .product-desc {
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .product-price {
    font-size: 0.9rem;
  }
  .product-add-mini-btn {
    width: 38px;
    height: 38px;
  }
  .product-stepper {
    height: 38px;
  }
  .product-stepper .step-btn {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 360px) {
  .products-container {
    padding: 8px 10px calc(84px + var(--safe-bottom));
    gap: 7px;
  }
  .product-card {
    padding: 8px 10px;
    gap: 8px;
  }
  .product-img-box {
    width: 56px;
    height: 56px;
  }
  .product-name {
    font-size: 0.82rem;
  }
  .product-desc {
    font-size: 0.66rem;
  }
  .product-add-mini-btn {
    width: 36px;
    height: 36px;
  }
  .product-stepper {
    height: 36px;
  }
  .product-stepper .step-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

/* --- Category sidebar: cleaner icons --- */
.cat-item {
  padding: 8px 4px;
  gap: 4px;
}

.cat-item i {
  font-size: 1.05rem;
}

.cat-item span {
  font-size: 0.52rem;
  letter-spacing: 0.3px;
}

/* --- FAB: slightly more refined --- */
.fab-cart-btn {
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb, 214, 151, 51), 0.45);
}

/* --- Cart modal: better hierarchy --- */
.cart-modal {
  border-radius: 22px;
}

.cart-modal-header {
  padding: 16px 20px;
}

.cart-modal-title h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.cart-modal-body {
  padding: 14px 18px;
  gap: 10px;
}

.cart-item-row {
  padding: 10px 0;
  gap: 10px;
}

.cart-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.cart-item-name {
  font-size: 0.86rem;
}

.cart-item-unit-price {
  font-size: 0.74rem;
}

.cart-qty-ctrl {
  gap: 6px;
  padding: 3px 6px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  font-size: 0.82rem;
}

.cart-modal-footer {
  padding: 14px 18px calc(14px + var(--safe-bottom));
  gap: 12px;
}

.cart-total-row {
  font-size: 1rem;
}

.cart-total-row strong {
  font-size: 1.25rem;
}

.whatsapp-checkout-btn {
  min-height: 46px;
  font-size: 0.88rem;
  border-radius: 12px;
}

.clear-cart-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

/* --- Dark mode stepper --- */
body.dark-mode .product-stepper {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .product-stepper .step-btn.minus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dark);
}

body.dark-mode .product-stepper .step-count {
  color: var(--text-dark);
}

/* --- Dark mode card fix: ensure tenant theme doesn't override dark cards --- */
body.dark-mode {
  --cream-card: var(--color-card, #242426);
  --card-bg: var(--color-card, #242426);
  --pure-white: #1a1a1c;
  --cream-bg: var(--color-bg, #18181a);
}

body.dark-mode .product-card {
  background: var(--cream-card, #242426);
}

body.dark-mode .product-card:hover {
  background: var(--slate-surface, #2a2a2e);
}

/* --- Dark mode cart refinements --- */
body.dark-mode .cart-modal {
  background: var(--slate-dark);
}

body.dark-mode .cart-modal-footer {
  background: var(--slate-dark-2);
}

body.dark-mode .cart-qty-ctrl {
  background: var(--slate-surface);
}

/* --- Recommendations: more compact, less dominant --- */
.t2-pre-products {
  margin-bottom: 4px;
}

/* --- Desktop: keep elegant proportions --- */
@media (min-width: 768px) {
  .product-card {
    padding: 14px 16px;
    gap: 16px;
  }
  .product-img-box {
    width: 80px;
    height: 80px;
    border-radius: 14px;
  }
  .product-name {
    font-size: 1rem;
  }
  .product-desc {
    font-size: 0.78rem;
  }
  .product-price {
    font-size: 1rem;
  }
  .product-add-mini-btn {
    width: 44px;
    height: 44px;
  }
  .product-stepper {
    height: 44px;
  }
  .product-stepper .step-btn {
    width: 38px;
    height: 38px;
  }
}

/* --- Smooth scroll for products container --- */
.products-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* --- Better focus states for accessibility --- */
.product-add-mini-btn:focus-visible,
.product-stepper .step-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* ==========================================================
   VISUAL POLISH LAYER — Professional refinement of template2
   Keeps the same identity, structure, and functions.
   Only improves spacing, hierarchy, and responsive behavior.
   ========================================================== */

/* ------ 1. MOBILE: Horizontal category bar (replaces vertical sidebar) ------ */
@media (max-width: 768px) {
  /* Convert sidebar to horizontal bar at top of menu */
  .view-menu {
    flex-direction: column;
  }

  .cat-sidebar {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: var(--slate-dark);
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 0;
  }

  /* MORE button: smaller, inline */
  .cat-sidebar .more-btn {
    margin: 0;
    margin-left: auto;
    padding: 6px 10px;
    font-size: 0.6rem;
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    flex-shrink: 0;
    height: 100%;
    min-height: 52px;
  }

  .cat-nav {
    width: auto;
    flex: 1;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0;
    padding: 0;
    height: 52px;
  }

  .cat-item {
    width: auto;
    min-width: 64px;
    min-height: 52px;
    padding: 6px 10px;
    flex-direction: row;
    gap: 6px;
    border-radius: 0;
    font-size: 0.62rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cat-item i {
    font-size: 0.95rem;
  }

  .cat-item span {
    font-size: 0.62rem;
  }

  /* Active category: bottom border accent instead of side notch */
  .cat-item.active {
    background: transparent;
    color: var(--gold);
    border-radius: 0;
    margin-left: 0;
    width: auto;
    border-bottom: 2.5px solid var(--gold);
    padding-bottom: 4px;
  }

  .cat-item.active::before,
  .cat-item.active::after {
    display: none !important;
  }

  .cat-item.active i {
    color: var(--gold);
    transform: scale(1.1);
  }

  /* Products container takes full width */
  .products-container {
    width: 100%;
    padding-top: 10px;
  }
}

/* ------ 2. Recommendations: compact, secondary ------ */
.t2-recs-section {
  margin: 0 0 12px;
  padding: 0 14px;
}

.t2-recs-header {
  margin-bottom: 10px;
  text-align: left;
}

.t2-recs-eyebrow {
  font-size: 0.62rem;
  margin-bottom: 2px;
  letter-spacing: 0.14em;
}

.t2-recs-title {
  font-size: 1.05rem;
  margin: 0;
}

.t2-recs-track {
  gap: 10px;
}

.t2-rec-card {
  flex: 0 0 220px;
  border-radius: 14px;
}

.t2-rec-card-img-wrap {
  height: 110px;
}

.t2-rec-card-body {
  padding: 10px 12px 12px;
}

.t2-rec-card-rec-title {
  font-size: 0.58rem;
  margin-bottom: 3px;
}

.t2-rec-card-name {
  font-size: 0.88rem;
  margin: 0 0 3px;
}

.t2-rec-card-desc {
  font-size: 0.7rem;
  margin: 0 0 8px;
}

.t2-rec-card-price {
  font-size: 0.82rem;
}

.t2-rec-card-cta {
  padding: 5px 12px;
  font-size: 0.66rem;
}

.t2-rec-card-multi {
  flex: 0 0 260px;
}

.t2-rec-card-products {
  gap: 6px;
  padding: 0 10px 10px;
}

.t2-rec-product-img-wrap {
  height: 55px;
}

@media (max-width: 480px) {
  .t2-recs-section {
    margin: 0 0 10px;
    padding: 0 12px;
  }
  .t2-rec-card {
    flex: 0 0 190px;
  }
  .t2-rec-card-img-wrap {
    height: 90px;
  }
  .t2-rec-card-multi {
    flex: 0 0 220px;
  }
}

/* ------ 3. Product cards: better hierarchy, less wasted space ------ */
.product-card {
  align-items: flex-start;
  padding: 10px 12px;
  gap: 10px;
  border-radius: 12px;
}

.product-img-box {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  flex-shrink: 0;
}

.product-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.product-desc {
  font-size: 0.7rem;
  line-height: 1.3;
  margin: 1px 0 0;
  color: var(--text-dark-muted, #7F8C8D);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 4px 0 0;
  color: var(--gold, #D4AF37);
}

/* Add button / stepper: aligned right, vertically centered */
.product-add-mini-btn,
.product-stepper {
  align-self: center;
}

/* ------ 4. Products without image: text-mode card ------ */
.product-card-text-mode {
  padding: 12px 14px;
}

.product-card-text-mode .product-details {
  gap: 3px;
}

.product-card-text-mode .product-name {
  font-size: 0.92rem;
}

.product-card-text-mode .product-desc {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Elegant icon placeholder for text-mode cards */
.product-card-text-mode::before {
  content: "\f2e7";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.2rem;
  color: rgba(214,151,51,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(214,151,51,0.06) 0%, rgba(155,89,182,0.04) 100%);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

body.dark-mode .product-card-text-mode::before {
  color: rgba(214,151,51,0.4);
  background: linear-gradient(135deg, rgba(214,151,51,0.1) 0%, rgba(155,89,182,0.06) 100%);
}

/* ------ 5. Header: more compact ------ */
.menu-header {
  padding: 8px 14px 4px;
}

.vintage-badge-wrap {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}

.menu-title-row {
  padding: 4px 2px 6px;
  gap: 6px;
}

.category-heading {
  font-size: 0.82rem;
  letter-spacing: 0.8px;
}

.category-item-count {
  font-size: 0.62rem;
}

/* ------ 6. Item count integration ------ */
.menu-title-row .category-item-count {
  color: var(--text-dark-muted, #7F8C8D);
  font-weight: 500;
}

/* ------ 7. Mobile spacing reductions ------ */
@media (max-width: 480px) {
  .menu-header {
    padding: 6px 12px 2px;
  }
  .vintage-badge-wrap {
    width: 44px;
    height: 44px;
    margin-bottom: 2px;
  }
  .menu-title-row {
    padding: 2px 2px 4px;
  }
  .category-heading {
    font-size: 0.78rem;
  }
  .category-item-count {
    font-size: 0.58rem;
  }

  .products-container {
    padding: 8px 12px calc(80px + var(--safe-bottom));
    gap: 7px;
  }
  .product-card {
    padding: 8px 10px;
    gap: 9px;
  }
  .product-img-box {
    width: 54px;
    height: 54px;
  }
  .product-name {
    font-size: 0.84rem;
  }
  .product-desc {
    font-size: 0.66rem;
  }
  .product-price {
    font-size: 0.86rem;
    margin-top: 3px;
  }
  .product-add-mini-btn {
    width: 36px;
    height: 36px;
  }
  .product-stepper {
    height: 36px;
  }
  .product-stepper .step-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .products-container {
    padding: 6px 10px calc(76px + var(--safe-bottom));
    gap: 6px;
  }
  .product-card {
    padding: 7px 9px;
    gap: 8px;
  }
  .product-img-box {
    width: 50px;
    height: 50px;
  }
  .product-name {
    font-size: 0.8rem;
  }
  .product-desc {
    font-size: 0.64rem;
  }
  .product-add-mini-btn {
    width: 34px;
    height: 34px;
  }
}

/* ------ 8. Desktop: better content width ------ */
@media (min-width: 769px) {
  .products-container {
    max-width: var(--content-max, 680px);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }
  .product-card {
    padding: 12px 16px;
    gap: 14px;
  }
  .product-img-box {
    width: 72px;
    height: 72px;
  }
  .product-name {
    font-size: 0.94rem;
  }
  .product-desc {
    font-size: 0.74rem;
  }
  .product-price {
    font-size: 0.96rem;
  }
}

@media (min-width: 1280px) {
  .products-container {
    max-width: var(--content-max, 760px);
  }
}

/* ------ 9. Dark mode: ensure no white surfaces ------ */
body.dark-mode .cat-sidebar {
  background: var(--slate-dark);
}

body.dark-mode .cat-item {
  color: rgba(255,255,255,0.5);
}

body.dark-mode .cat-item.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

body.dark-mode .t2-rec-card {
  background: #1c1814;
  border-color: rgba(214,151,51,0.12);
}

body.dark-mode .t2-recs-title {
  color: #e8dfd4;
}

body.dark-mode .t2-rec-card-name {
  color: #e8dfd4;
}

body.dark-mode .t2-rec-card-desc {
  color: #9a8d80;
}

/* ------ 10. FAB: refined, doesn't cover content ------ */
.fab-cart-btn {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  bottom: calc(16px + var(--safe-bottom));
  right: calc(16px + var(--safe-right));
}

@media (max-width: 480px) {
  .fab-cart-btn {
    width: 46px;
    height: 46px;
    bottom: calc(14px + var(--safe-bottom));
    right: calc(14px + var(--safe-right));
  }
}

/* ------ 11. Cart modal: cleaner ------ */
.cart-modal {
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
}

.cart-modal-header {
  padding: 14px 18px 10px;
}

.cart-modal-title h3 {
  font-size: 1rem;
}

.cart-modal-body {
  padding: 8px 18px;
  gap: 8px;
}

.cart-item-row {
  padding: 8px 0;
  gap: 10px;
}

.cart-item-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.cart-item-name {
  font-size: 0.84rem;
}

.cart-item-unit-price {
  font-size: 0.7rem;
}

.cart-qty-ctrl {
  gap: 4px;
  padding: 3px 5px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
}

.cart-modal-footer {
  padding: 12px 18px calc(12px + var(--safe-bottom));
}

.cart-total-row {
  font-size: 0.92rem;
}

.cart-total-row strong {
  font-size: 1.15rem;
}

.whatsapp-checkout-btn {
  min-height: 44px;
  font-size: 0.84rem;
  border-radius: 11px;
}

.clear-cart-btn {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

/* ------ 12. Drawer: refined ------ */
.side-drawer {
  padding: 24px 22px 20px;
}

.drawer-links ul {
  gap: 14px;
}

.drawer-link {
  font-size: 1.15rem;
}

/* ------ 13. Welcome/Hero: reduce vertical space ------ */
.welcome-body {
  gap: 14px;
  padding: 0 20px 3vh;
}

.welcome-header-img {
  height: 32vh;
  min-height: 180px;
}

@media (max-width: 480px) {
  .welcome-header-img {
    height: 28vh;
    min-height: 160px;
  }
  .welcome-body {
    gap: 12px;
    padding: 0 18px 2vh;
  }
}

/* ============================================================
   COMPREHENSIVE DARK MODE — covers ALL remaining hardcoded colors
   Ensures every section adapts when dark mode is toggled.
   ============================================================ */

/* Welcome / hero slider button */
body.dark-mode .menu-slider {
  background: var(--slate-surface, #2b2b2f);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
body.dark-mode .slider-thumb {
  background: var(--coral);
}

/* Category items */
body.dark-mode .cat-item { color: rgba(255,255,255,0.5); }
body.dark-mode .cat-item:hover { color: #ffffff; }
body.dark-mode .cat-item.active {
  background: var(--slate-surface, #2b2b2f);
  color: var(--gold);
}
body.dark-mode .cat-item.active::before {
  box-shadow: 8px 8px 0 8px var(--slate-surface, #2b2b2f);
}
body.dark-mode .cat-item.active::after {
  box-shadow: 8px -8px 0 8px var(--slate-surface, #2b2b2f);
}

/* Menu main + header */
body.dark-mode .menu-main { background: var(--cream-bg, #18181a); }
body.dark-mode .menu-header {
  background: var(--cream-bg, #18181a);
  border-bottom-color: var(--slate-border, rgba(255,255,255,.08));
}
body.dark-mode .menu-title-row {
  border-bottom-color: var(--slate-border, rgba(255,255,255,.08));
}

/* Product cards */
body.dark-mode .product-card {
  background: var(--cream-card, #242426);
  border-color: var(--slate-border, rgba(255,255,255,.08));
}
body.dark-mode .product-card:hover {
  background: #2a2a2e;
  border-color: var(--slate-border, rgba(255,255,255,.12));
}
body.dark-mode .product-img-box {
  background: rgba(255,255,255,.04);
}
body.dark-mode .product-name { color: var(--text-dark, #e4e1da); }
body.dark-mode .product-desc { color: var(--text-dark-muted, #9c9993); }
body.dark-mode .product-fav-btn-inline { color: var(--text-dark-muted, #9c9993); }
body.dark-mode .product-fav-btn-inline:hover { background: rgba(255,255,255,.08); }
body.dark-mode .product-fav-btn-inline.fav-active { color: var(--coral); }

/* Product rating */
body.dark-mode .product-rating { color: var(--text-dark-muted, #9c9993); }
body.dark-mode .product-rating.no-rating { color: rgba(255,255,255,.25); }

/* Product tags — lighten colors for dark backgrounds */
body.dark-mode .product-tag.tag-new { color: #4ade80; }
body.dark-mode .product-tag.tag-featured { color: #fbbf24; }
body.dark-mode .product-tag.tag-veg { color: #86efac; }
body.dark-mode .product-tag.tag-spicy { color: #fca5a5; }
body.dark-mode .product-tag.tag-chef { color: var(--text-dark, #e4e1da); }

/* Allergens */
body.dark-mode .allergen-chip {
  background: var(--slate-surface, #1e1e22);
  color: #c9a961;
  border-color: rgba(201, 169, 97, 0.18);
}
body.dark-mode .allergen-label { color: #c9a961; }

/* Products container scrollbar */
body.dark-mode .products-container {
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
body.dark-mode .products-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
}

/* Cart modal */
body.dark-mode .cart-modal {
  background: var(--slate-dark, #0d0d0f);
}
body.dark-mode .cart-modal-header {
  background: var(--slate-dark, #0d0d0f);
  border-bottom-color: var(--slate-border, rgba(255,255,255,.08));
}
body.dark-mode .cart-modal-body { background: var(--slate-dark, #0d0d0f); }
body.dark-mode .cart-modal-footer {
  background: var(--slate-dark-2, #161618);
  border-top-color: var(--slate-border, rgba(255,255,255,.08));
}
body.dark-mode .cart-item-row {
  border-bottom-color: var(--slate-border, rgba(255,255,255,.06));
}
body.dark-mode .cart-item-name { color: var(--text-dark, #e4e1da); }
body.dark-mode .cart-item-unit-price { color: var(--coral); }
body.dark-mode .cart-empty-state { color: var(--text-dark-muted, #9c9993); }
body.dark-mode .cart-empty-state p { color: var(--text-dark, #e4e1da); }
body.dark-mode .cart-total-row strong { color: var(--coral); }

/* Cart quantity controls */
body.dark-mode .cart-qty-ctrl { background: var(--slate-surface, #1e1e22); }
body.dark-mode .qty-btn {
  background: var(--slate-surface, #2a2a2e);
  color: var(--text-dark, #e4e1da);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
body.dark-mode .qty-btn:hover { background: #3a3a3e; }
body.dark-mode .qty-num { color: var(--text-dark, #e4e1da); }

/* Clear cart button */
body.dark-mode .clear-cart-btn {
  background: var(--slate-surface, #1e1e22);
  color: var(--text-dark-muted, #9c9993);
}
body.dark-mode .clear-cart-btn:hover {
  background: #2a2a2e;
  color: #ff6b6b;
}

/* WhatsApp checkout button — keep green but slightly darker */
body.dark-mode .whatsapp-checkout-btn {
  background: #25d366;
}
body.dark-mode .whatsapp-checkout-btn:disabled {
  background: #1a6b3d;
}

/* Side drawer */
body.dark-mode .side-drawer {
  background: var(--slate-dark, #0d0d0f);
  color: #ffffff;
}
body.dark-mode .drawer-header {
  background: transparent;
}
body.dark-mode .close-pill-btn {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #ffffff;
}
body.dark-mode .close-pill-btn:hover {
  background: rgba(255,255,255,.15);
}
body.dark-mode .drawer-link { color: #ffffff; }
body.dark-mode .drawer-link:hover { color: var(--coral); }
body.dark-mode .drawer-link.active { color: var(--coral); }
body.dark-mode .drawer-footer {
  background: transparent;
  color: var(--text-slate-muted, #9c9993);
}
body.dark-mode .drawer-address { color: var(--text-slate-muted, #9c9993); }

/* Toast notification */
body.dark-mode .toast-notification {
  background: var(--slate-surface, #1e1e22);
  color: var(--text-dark, #e4e1da);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}

/* FAB cart button */
body.dark-mode .fab-cart-btn {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
body.dark-mode .fab-badge {
  background: var(--coral);
  border-color: var(--slate-dark, #0d0d0f);
}

/* Back home button */
body.dark-mode .back-home-btn {
  background: var(--slate-surface, #2b2b2f);
  color: #ffffff;
}
body.dark-mode .back-home-btn:hover {
  background: var(--coral);
}

/* MORE button */
body.dark-mode .more-btn {
  background: transparent;
  color: rgba(255,255,255,.7);
  border-left-color: rgba(255,255,255,.1);
}
body.dark-mode .more-btn:hover {
  background: rgba(255,255,255,.08);
  color: #ffffff;
}

/* Contact buttons — keep brand colors but adjust shadows */
body.dark-mode .contact-btn.whatsapp { box-shadow: 0 4px 16px rgba(0,0,0,.4); }
body.dark-mode .contact-btn.facebook { box-shadow: 0 4px 16px rgba(0,0,0,.4); }
body.dark-mode .contact-btn.tiktok { box-shadow: 0 4px 16px rgba(0,0,0,.4); }

/* Dark mode toggle button */
body.dark-mode .dark-mode-toggle { color: var(--text-dark, #e4e1da); }
body.dark-mode .dark-mode-toggle:hover { color: var(--coral); }

/* Overlays */
body.dark-mode .drawer-overlay { background: rgba(0,0,0,.7); }
body.dark-mode .cart-modal-backdrop { background: rgba(0,0,0,.7); }
