:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fff7ed;
  --green: #16a34a;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);

  --hero-height: 190px;        /* height of your hero banner */
  --tabs-height: 56px;
  --bottom-nav-height: 45px;
}

/* Body padding for bottom nav */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* ===== Site Header (Sticky) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  /* Important: do NOT set a fixed height here */
  height: auto;
}

/* Remove or simplify header-inner if it is constraining the hero */
.header-inner {
  width: 100%;
  max-width: none;          /* allow full width */
  margin: 0;
  padding: 0;               /* remove padding so hero is full-bleed */
  display: block;           /* change from flex if it was causing issues */
}

.top-navbar {
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ===== Hero Banner ===== */
/* ===== Hero Banner ===== */
#hero-banner {
  height: 210px;                 /* slightly taller for better impact */
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #eb8a51;
}

/* Logo – always on top */
.hero-logo {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 20;
}

.hero-logo img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  background: white;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-profile {
  position: absolute;
  top: 14px;
  right: 25px;
  z-index: 20;
  color: #eb8a51;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  padding: 3px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero-profile.is-logged-in {
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: large;
  font-weight: 700;
}

.hero-profile-initial {
  line-height: 1;
  text-transform: uppercase;
}

.hero-profile i {
  font-size: 1.1rem;
}

/* Slides */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Dark overlay for better text readability */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 90%;
}

.slide-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 6px;
}

.slide-content h1,
.slide-content h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.slide-sub {
  font-size: 0.9rem;
  opacity: 0.92;
  margin: 0;
}

/* Strong CTA button */
.cta-btn {
  display: inline-block;
  margin-top: 16px;
  background: #ffc600;
  color: #111;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s, background 0.2s;
}

.cta-btn:hover {
  background: #ffb700;
  transform: scale(1.05);
}

/* Backgrounds */
#slide1 { background-color: #ffb700; }
#slide2 { background-image: url('../images/ogbono-soup-bg.jpg'); }
#slide3 { background-image: url('../images/jollof-classes.jpg'); }
#slide4 { background-image: url('../images/meal-programs/sub-img-20.jpg'); }

/* Mobile adjustments */
@media (max-width: 480px) {
  #hero-banner {
    height: 200px;
  }
  .hero-logo img {
    height: 36px;
  }
  .slide-content h1,
  .slide-content h2 {
    font-size: 1.35rem;
  }
}

#orderNow {
  margin-top: 14px;
  background: #ffc600;
  color: #000;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 50px;
  display: inline-block;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
}

/* Cart button */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  border-radius: 10px;
  transition: background 0.2s;
}

.cart-btn:hover,
.cart-btn:focus-visible {
  background: var(--orange-light);
  outline: none;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Responsive */
@media (min-width: 480px) {
  .logo-tagline {
    max-width: 280px;
  }
}

@media (min-width: 640px) {
  .location-badge {
    display: flex;
  }
  .logo img {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding: 12px 20px;
  }
  .logo-tagline {
    font-size: 0.72rem;
  }
}

/* === Category Scroll Section === */
.category-section {
  position: relative;
  z-index: 10;              /* much lower */
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

/* .category-scroll {
  position: relative;
  z-index: 10;              
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background-color: #fff;
} */

.category-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0; 
  padding-right: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background-color: #fff;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

/* Make the first item (containing the logo) sticky */
.category-scroll > .category-item:first-child {
  position: sticky;
  left: 0;                   /* Sticks to the left edge during scroll */
  z-index: 20;               /* Stays above scrolling items */
  background-color: #fff;    /* Prevents items from being visible under the logo */
  padding-right: 12px;       /* Adds spacing between logo and scrolling items */
  padding-left: 0;          /* Aligns logo flush with the left edge */
  /* box-shadow: 6px 0 8px -4px rgba(0, 0, 0, 0.1);  */
  align-items: flex-start;
}

/* Brand Logo */
.category-scroll .eat-club-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* margin-right: 40px; */
  padding-left: 0;          /* Aligns logo flush with the left edge */
}

.category-scroll .eat-club-logo img {
  height: auto;
  width: 100px; /* Matches navbar height */
  border-radius: 50%;
  object-fit: contain;
  margin-right: 8px;
}

.category-scroll .category-label {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--text);
  text-align: center;
  margin-top: 4px;
}

/* Category Items */
.category-item {
  flex: 0 0 auto;
  width: 97px;
  text-align: center;
  scroll-snap-align: start;
  font-size: 11px;
  /* color: #333; */
}

.category-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

.category-item.active .category-icon {
  border-bottom: 2px solid #ff5722;
  font-weight: 1500;
}

.category-item img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}


/* Explore Section */
.explore-more {
  padding: 1rem;
  background: #fff;
  padding-top: 10px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.explore-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.explore-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.explore-card {
  flex: 0 0 auto;
  width: 140px;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  background: #f5f5f5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.explore-card:hover {
  transform: scale(1.05);
}

.explore-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.explore-card span {
  display: block;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .explore-card {
    width: 120px;
  }
}

/* Large screens: distribute 7 cards evenly */ 
@media (min-width: 1024px) { 
  .explore-scroll { 
    justify-content: space-between; /* spread cards evenly */ 
  } 
  
  .explore-card { 
    flex: 1; /* allow cards to grow */ 
    width: calc(100% / 7); /* each card takes 1/7 of screen */ 
    max-width: none; /* remove fixed limit */ 
  } 

  .explore-card img { 
    height: 150px; /* adjust image height for larger cards */ 
  } 

  .explore-card span { 
    font-size: 1rem; /* slightly larger text */ 
  } 
}

/* ===== Category Tabs (Fully Mobile Optimized) ===== */
.category-tabs {
  position: sticky;
  top: 210px;                  /* must match the hero height */
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  height: 60px;
  padding-top: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Scrollable tabs area */
.tabs-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  height: 100%;
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.tabs-scroll::-webkit-scrollbar {
  display: none;                   /* Chrome/Safari */
}

/* Individual tab */
.tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 36px;
  line-height: 1;
}

.tab i {
  font-size: 0.85rem;
  opacity: 0.85;
}

.tab:hover {
  border-color: #fdba74;
  color: var(--orange);
  background: var(--orange-light);
}

.tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.tab.active i {
  opacity: 1;
}

/* Cart button – pinned right */
.category-tabs .cart-btn {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 100%;
  background: var(--white);
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.category-tabs .cart-btn:hover,
.category-tabs .cart-btn:focus-visible {
  background: var(--orange-light);
  color: var(--orange);
  outline: none;
}

.category-tabs .cart-btn i {
  font-size: 1.15rem;
}

.category-tabs .cart-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--orange);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ========== Responsive Breakpoints ========== */

/* Very small phones (≤360px) */
@media (max-width: 360px) {
  .tab {
    padding: 7px 11px;
    font-size: 0.75rem;
    gap: 4px;
  }
  .tab i {
    font-size: 0.8rem;
  }
  .category-tabs .cart-btn {
    width: 44px;
  }
}

/* Small phones (361–480px) */
@media (min-width: 361px) and (max-width: 480px) {
  .tab {
    padding: 8px 13px;
    font-size: 0.8rem;
  }
}

/* Tablets and up – slightly larger tabs */
@media (min-width: 768px) {
  .category-tabs {
    height: 58px;
  }
  .tabs-scroll {
    padding: 0 16px;
    gap: 10px;
  }
  .tab {
    padding: 8px 16px;
    font-size: 0.875rem;
    height: 38px;
  }
  .tab i {
    font-size: 0.9rem;
  }
  .category-tabs .cart-btn {
    width: 56px;
  }
  .category-tabs .cart-btn i {
    font-size: 1.2rem;
  }
}

/* Large screens – center content, more padding */
@media (min-width: 1024px) {
  .tabs-scroll {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* ===== Menu Grid ===== */
.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* ===== Redesigned Menu Cards (v2) ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.menu-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Card Image */
.card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.menu-card:hover .card-image {
  transform: scale(1.05);
}

.card-image-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.card-image-scroll::-webkit-scrollbar {
  display: none;
}

.card-image-scroll .card-image {
  flex: 0 0 100%;
  width: 100%;
  height: 200px;          /* match your current card image height */
  object-fit: cover;
  scroll-snap-align: start;
  display: block;
}

.card-image-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.card-image-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.card-image-dots .dot.active {
  background: #fff;
  transform: scale(1.15);
}

/* Menu Badge (top-right of image) */
.menu-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: max-content; /* Forces the background to match the text length */
  max-width: calc(100% - 70px); /* Prevents it from colliding with the share button */
  background: var(--orange);
  color: white;
  font-size: 0.7rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Individual badge colors ===== */
.badge-spicy {
  background: #ef4444;          /* Red */
}

.badge-vegan {
  background: #16a34a;          /* Green */
}

.badge-new {
  background: #3b82f6;          /* Blue */
}

.badge-popular {
  background: #f59e0b;          /* Amber */
}

.badge-organic {
  background: #10b981;          /* Emerald */
}

.badge-sweet {
  background: #9B111E;          /* Ruby Red */
}

.badge-weekend-special,
.badge-winter-special,
.badge-christmas-special {
  background: #8b5cf6;          /* Purple */
}

/* Default fallback (if badge name doesn't match any above) */
.menu-badge:not([class*="badge-"]) {
  background: var(--orange);
}

/* Share button (far top-right) */
.share-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.93);
  border: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--orange);
  color: white;
  transform: scale(1.08);
}

.share-btn i {
  font-size: 0.9rem;
}

/* Body */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Title + Prep time on same row */
.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
  flex: 1;
  min-width: 0;
}

.prep-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

.prep-time i {
  font-size: 0.78rem;
  color: var(--orange);
}

/* Description */
.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Price row + Discount badge beside price */
.card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.price-current.na {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Discount badge now sits beside the price */
.discount-badge {
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* Actions */
.card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.add-btn {
  background: var(--green);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.add-btn:hover {
  background: #15803d;
}

.add-btn:active {
  transform: scale(0.97);
}

.customizable-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--orange);
  padding-left: 2px;
}

/* Responsive */
@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card-image-wrap {
    height: 190px;
  }
  .menu-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    right: 48px;
  }
}

@media (min-width: 768px) {
  .card-image-wrap {
    height: 210px;
  }
}

/* ===== Unavailable Menu Cards ===== */
.menu-card.unavailable {
  filter: grayscale(100%);
  opacity: 0.72;
  pointer-events: none; /* optional – removes all interaction */
}

.menu-card.unavailable .add-btn {
  background: #9ca3af !important;
  cursor: not-allowed;
  pointer-events: auto; /* keep the button visible */
}

.menu-card.unavailable .share-btn,
.menu-card.unavailable .menu-badge {
  pointer-events: auto; /* still allow share even if unavailable */
}

/* Make sure the card itself can still be shared */
.menu-card.unavailable {
  pointer-events: auto;
}
.menu-card.unavailable .card-body,
.menu-card.unavailable .card-image-wrap {
  pointer-events: none;
}
.menu-card.unavailable .share-btn {
  pointer-events: auto;
}

/* ===== Unavailable Ribbon ===== */
.unavailable-ribbon {
  position: absolute;
  top: 18px;
  left: -32px;
  background: #6b7280;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 40px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 4;
  pointer-events: none;
}

/* Keep the rest of the unavailable styles */
.menu-card.unavailable {
  filter: grayscale(100%);
  opacity: 0.75;
}

.menu-card.unavailable .add-btn {
  background: #9ca3af !important;
  cursor: not-allowed;
}

.menu-card.unavailable .share-btn {
  pointer-events: auto; /* still allow sharing */
}

/* ===== Empty state banner ===== */
.empty-deals-banner {
  box-sizing: border-box;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 480px;
  margin: 16px auto;
  padding: 20px 14px 18px;
  text-align: center;
  background: #fff;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.08);
  overflow: hidden; /* keep children inside rounded box */
}

.empty-deals-visual {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffedd5;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.12);
}

.empty-deals-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.empty-hot-deals .empty-deals-visual {
  border-radius: 16px;
  background: #fff7ed;
}

.empty-hot-deals .empty-deals-visual img {
  object-fit: cover;
  padding: 8px;
}

.empty-deals-title {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 4.5vw, 1.25rem);
  font-weight: 800;
  color: #9a3412;
  line-height: 1.3;
  padding: 0 4px;
  word-wrap: break-word;
}

.empty-deals-text {
  margin: 0 auto 14px;
  max-width: 100%;
  font-size: clamp(0.82rem, 3.6vw, 0.92rem);
  line-height: 1.5;
  color: #57534e;
  padding: 0 2px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.empty-deals-cta-label {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #c2410c;
}

/* Buttons: stack on narrow screens, never overflow */
.empty-deals-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.empty-deals-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 44px; /* touch target */
  padding: 12px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(0.8rem, 3.5vw, 0.9rem);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: normal; /* allow wrap instead of overflow */
  word-break: break-word;
}

.empty-deals-btn.primary {
  background: #ea580c;
  color: #fff;
}

.empty-deals-btn.secondary {
  background: #fff;
  color: #9a3412;
  border: 1.5px solid #fdba74;
}

/* Very small phones */
@media (max-width: 360px) {
  .empty-deals-banner {
    margin: 12px 0;
    padding: 16px 10px 14px;
    border-radius: 14px;
  }

  .empty-deals-visual {
    width: 84px;
    height: 84px;
  }

  .empty-deals-btn {
    padding: 11px 12px;
    font-size: 0.8rem;
  }
}

/* Phones with a bit more room — side-by-side buttons only if they fit */
@media (min-width: 400px) {
  .empty-deals-banner {
    margin: 20px auto;
    padding: 24px 18px 22px;
  }

  .empty-deals-visual {
    width: 112px;
    height: 112px;
  }

  .empty-deals-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .empty-deals-btn {
    width: auto;
    min-width: min(100%, 160px);
    flex: 1 1 auto;
    max-width: 100%;
  }
}

/* Tablets / desktop */
@media (min-width: 768px) {
  .empty-deals-banner {
    margin: 32px auto;
    padding: 32px 28px 28px;
    border-radius: 20px;
  }

  .empty-deals-visual {
    width: 128px;
    height: 128px;
  }

  .empty-deals-actions {
    flex-direction: row;
    justify-content: center;
  }

  .empty-deals-btn {
    width: auto;
    flex: 0 1 auto;
    min-width: 170px;
    padding: 12px 20px;
  }
}

/* ===== That's all we've got / Suggest a dish ===== */
.end-suggest {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 8px;
}

.end-suggest-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.end-suggest-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* .end-suggest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28, 25, 23, 0.82) 0%,
    rgba(154, 52, 18, 0.75) 50%,
    rgba(28, 25, 23, 0.88) 100%
  );
} */

.end-suggest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.end-suggest-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 40px 18px calc(40px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.end-suggest-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdba74;
  margin: 0 0 8px;
}

.end-suggest h2 {
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.2;
  color: #fff;
}

.end-suggest-text {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.92;
  margin: 0 0 22px;
}

.suggest-form {
  width: 100%;
}

.suggest-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggest-row input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.96);
  color: #1c1917;
  outline: none;
}

.suggest-row input::placeholder {
  color: #78716c;
  font-size: 0.88rem;
}

.suggest-row input:focus {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.45);
}

.suggest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.suggest-btn:hover {
  background: #1ebe57;
  transform: scale(1.02);
}

.suggest-hint {
  margin: 12px 0 0;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* Screen-reader only label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet+: input + button on one row */
@media (min-width: 560px) {
  .end-suggest {
    min-height: 360px;
  }

  .suggest-row {
    flex-direction: row;
    align-items: stretch;
  }

  .suggest-row input {
    flex: 1;
    border-radius: 14px 0 0 14px;
  }

  .suggest-btn {
    width: auto;
    min-width: 130px;
    border-radius: 0 14px 14px 0;
  }
}

@media (min-width: 768px) {
  .end-suggest-content {
    padding: 56px 24px;
  }
}

/* Respect reduced motion: pause video feel via CSS not required; JS can pause */
@media (prefers-reduced-motion: reduce) {
  .end-suggest-video video {
    display: none;
  }
  .end-suggest-video {
    background: #1c1917 url("../images/mama-chizzys-logo.jpg") center / cover no-repeat;
  }
}

/* ==================== Bottom Navigation ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex !important;          /* force visible on all screens */
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom); /* iPhone safe area */
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #eb8a51;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.2s ease;
  height: 100%;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
}

.nav-item.active,
.nav-item:hover {
  color: #c74d06;
}

/* Desktop / large screens */
@media (min-width: 768px) {
  .bottom-nav {
    height: 50px;
  }
  .nav-item {
    font-size: 12px;
  }
  .nav-item i {
    font-size: 22px;
  }
  /* Prevent content from being hidden behind the nav */
  body {
    padding-bottom: 110px !important;
  }
}

@media (min-width: 480px) {
    .bottom-nav {
        height: 50px;
    }
    .nav-item {
        font-size: 11px;
    }
    .nav-item i {
        font-size: 20px;
    }
    body {
        padding-bottom: 90px !important;
    }
}

/* ===== Modal Overlay ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* .modal-scroll {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
} */
 /* ===== Hide scrollbar in modal but keep scrolling ===== */
.modal-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;        /* IE and Edge */
}

.modal-scroll::-webkit-scrollbar {
  display: none;                   /* Chrome, Safari, Opera */
}
.modal-image-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  background: #f3f4f6;
}
.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-image-wrap .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}
/*.modal-badges {*/
/*  position: absolute;*/
/*  top: 14px;*/
/*  left: 14px;*/
/*  display: flex;*/
/*  gap: 8px;*/
/*}*/
.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}
/*.badge.spicy { background: var(--orange); }*/
/*.badge.regular { background: var(--green); }*/
.modal-actions {
  position: absolute;
  bottom: 25px;
  right: 14px;
  display: flex;
  gap: 8px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--orange);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.modal-body {
  padding: 20px 20px 8px;
}
.modal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Option Sections */
.option-section {
  margin-bottom: 24px;
}
.option-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.section-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  gap: 10px;
}
.option-item:hover { border-color: #fdba74; }
.option-item.selected {
  border-color: var(--orange);
  background: var(--orange-light);
}
.option-item .left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.option-item .name {
  font-weight: 500;
  font-size: 0.9rem;
}
.option-item .status {
  font-size: 0.75rem;
  font-weight: 500;
}
.option-item .status.included { color: var(--green); }
.option-item .status.not-included { color: var(--orange); }
.option-item .price {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.option-item .action {
  flex-shrink: 0;
}
.option-item .add-plus {
  background: var(--orange);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.option-item .qty-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: white;
  border-radius: 6px;
  padding: 4px 6px;
  font-weight: 600;
  font-size: 0.85rem;
}
.option-item .qty-mini button {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-item input[type="checkbox"],
.option-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}

/* Cooking Notes */
#cookingNotes {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
}
#cookingNotes:focus {
  outline: none;
  border-color: var(--orange);
}
.char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--white);
  margin-bottom: calc(10px + env(safe-area-inset-bottom));
}

/* Very small phones (iPhone SE, small Android) */
@media (max-width: 380px) {
  .modal-footer {
    padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px) + 16px) !important;
  }
  .cart-footer {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px) + 18px) !important;
  }
  .cart-empty {
    padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px) + 90px) !important;
  }
}

/* Standard phones */
@media (min-width: 381px) and (max-width: 480px) {
  .modal-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 14px) !important;
  }
  .cart-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 16px) !important;
  }
  .cart-empty {
    padding-bottom: calc(45px + env(safe-area-inset-bottom, 0px) + 85px) !important;
  }
}

/* Larger phones (Pro Max, etc.) */
@media (min-width: 481px) and (max-width: 767px) {
  .modal-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 12px) !important;
  }
  .cart-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 14px) !important;
  }
  .cart-empty {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px) + 80px) !important;
  }
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 6px 10px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: white;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.qty-btn:active { transform: scale(0.95); }
#qtyValue {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.add-to-cart-btn {
  flex: 1;
  background: var(--orange);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.add-to-cart-btn:hover { background: var(--orange-dark); }

/* =========================================================
   CART DRAWER – optimized
   ========================================================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100%;
  background: var(--white, #fff);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden; /* children handle scroll */
}

.cart-overlay.open .cart-drawer {
  transform: translateX(0);
}

/* ----- Header (fixed) ----- */
.cart-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.cart-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

/* ----- Scrollable body ----- */
.cart-scroll {
  flex: 1;
  min-height: 0; /* critical for flex scroll */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 20px;
}

/* Items list – NO overflow here */
.cart-items {
  display: block;
}

/* ----- Cart item ----- */
.cart-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cart-item-name {
  font-weight: 600;
  font-size: 1rem;
}

.cart-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cart-item-actions button {
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-edit {
  color: var(--orange, #f97316);
  background: var(--orange-light, #fff7ed);
}

.btn-edit:hover {
  background: #ffedd5;
}

.btn-remove {
  color: #ef4444;
}

.btn-remove:hover {
  background: #fef2f2;
}

.cart-item-details {
  font-size: 0.82rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.45;
  white-space: pre-line;
}

/* Breakdown */
.cart-breakdown {
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  font-size: 0.84rem;
}

.breakdown-group {
  margin-bottom: 10px;
}

.breakdown-group:last-child {
  margin-bottom: 0;
}

.breakdown-group strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted, #6b7280);
  margin-bottom: 4px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--text, #1f2937);
}

.breakdown-notes {
  color: var(--text, #1f2937);
  font-style: italic;
  margin-top: 2px;
}

.cart-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border, #e5e7eb);
}

.cart-item-qty {
  font-size: 0.88rem;
  color: var(--text-muted, #6b7280);
}

.cart-item-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--orange, #f97316);
}

/* ----- Checkout fields (inside scroll) ----- */
.cart-checkout-fields {
  margin-top: 8px;
  padding-top: 8px;
}

.delivery-method {
  margin-bottom: 16px;
}

.delivery-method h4 {
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.method-options {
  display: flex;
  gap: 12px;
}

.method-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.method-option:has(input:checked) {
  border-color: var(--orange, #f97316);
  background: var(--orange-light, #fff7ed);
}

.method-option input {
  accent-color: var(--orange, #f97316);
}

.customer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.customer-info input,
.customer-info textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
}

.customer-info input:focus,
.customer-info textarea:focus {
  outline: none;
  border-color: var(--orange, #f97316);
}

.pickup-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #166534;
}

.pickup-box small {
  display: block;
  margin-top: 6px;
  color: #15803d;
}

.delivery-note-box {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #78350f;
}

.delivery-note-box small {
  display: block;
  margin-top: 6px;
  color: #92400e;
}

/* ----- Coupon ----- */
.coupon-box {
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 14px;
  border: 1.5px dashed #fdba74;
  border-radius: 12px;
  background: #fff7ed;
}

.coupon-box h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #9a3412;
}

.coupon-row {
  display: flex;
  gap: 8px;
}

.coupon-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-sizing: border-box;
}

.coupon-apply-btn {
  border: none;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.coupon-apply-btn:hover {
  background: #ea580c;
}

.coupon-msg {
  margin: 8px 0 0;
  font-size: 0.8rem;
  min-height: 1.1em;
}

.coupon-msg.error { color: #dc2626; }
.coupon-msg.success { color: #16a34a; }

.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  background: #ecfdf5;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 600;
}

.coupon-remove-btn {
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* ----- Empty cart (inside scroll) ----- */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 8px 32px;
}

.empty-cart-illustration {
  margin-bottom: 16px;
}

.empty-cart-illustration img {
  width: 140px;
  height: auto;
  opacity: 0.95;
}

.cart-empty h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text, #1f2937);
  margin: 0 0 6px;
}

.empty-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
  margin: 0 0 24px;
}

.order-steps {
  width: 100%;
  max-width: 320px;
  text-align: left;
  margin-bottom: 24px;
}

.order-steps h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  text-align: center;
}

.order-steps ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--orange, #f97316);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-steps li strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text, #1f2937);
  margin-bottom: 2px;
}

.order-steps li small {
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.4;
}

.start-ordering-btn {
  background: var(--orange, #f97316);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  transition: background 0.2s, transform 0.15s;
}

.start-ordering-btn:hover {
  background: var(--orange-dark, #ea580c);
  transform: translateY(-1px);
}

/* ----- Fixed footer: totals + WhatsApp only ----- */
.cart-footer {
  flex-shrink: 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border, #e5e7eb);
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

.cart-totals {
  margin-bottom: 10px;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.cart-discount-line span:last-child {
  color: #16a34a;
  font-weight: 600;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  margin-top: 6px;
}

.cart-total-row strong {
  font-size: 1.2rem;
  color: var(--orange, #ea580c);
}

.whatsapp-btn {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
  margin-bottom: calc(45px + env(safe-area-inset-bottom, 0px));
}

.whatsapp-btn:hover {
  background: #1da851;
}

.whatsapp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 400;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Desktop tweaks ===== */
@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }
  .modal {
    border-radius: 16px;
    max-height: 90vh;
  }
  .bottom-nav {
    display: none;
  }
  body {
    padding-bottom: 20px;
  }
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* ===== PWA Install Banner ===== */
.pwa-banner {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 5px);
  max-width: 620px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
  z-index: 9999;
  animation: slideUpBanner 0.4s ease;
  overflow: hidden;
}

@keyframes slideUpBanner {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.pwa-banner-icon img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: white;
  padding: 3px;
  object-fit: contain;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.pwa-banner-text small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.92;
  line-height: 1.35;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-install-btn {
  background: white;
  color: #ea580c;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.pwa-install-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pwa-close-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.pwa-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* iOS Instructions */
.pwa-banner .ios-instructions {
  align-items: flex-start;
}

.pwa-banner .ios-steps {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.pwa-banner .ios-steps .step {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
}

.pwa-banner .share-icon {
  display: inline-block;
  padding: 0 4px;
  font-weight: 700;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .pwa-banner {
    bottom: 16px;
    width: calc(100% - 24px);
  }
  .pwa-banner-content {
    padding: 12px 14px;
  }
  .pwa-banner-text strong {
    font-size: 0.9rem;
  }
  .pwa-banner-text small {
    font-size: 0.68rem;
  }
}

/* ===== Fun Grayscale Background Icons ===== */
.bg-icons {
  position: fixed;
  inset: 0;
  z-index: -1;               /* stays behind everything */
  pointer-events: none;      /* never blocks clicks */
  overflow: hidden;
}

.bg-icon {
  position: absolute;
  opacity: 0.35;             /* very subtle */
  filter: grayscale(100%);   /* full grayscale */
  object-fit: contain;
  user-select: none;
}

/* Different sizes & positions for a natural scattered look */
.bg-icon:nth-child(1)  { width: 110px; top: 8%;  left: 4%;  transform: rotate(-15deg); }
.bg-icon:nth-child(2)  { width: 90px;  top: 18%; right: 6%; transform: rotate(20deg); }
.bg-icon:nth-child(3)  { width: 130px; top: 35%; left: 2%;  transform: rotate(-8deg); }
.bg-icon:nth-child(4)  { width: 100px; top: 55%; right: 5%; transform: rotate(12deg); }
.bg-icon:nth-child(5)  { width: 120px; top: 70%; left: 8%;  transform: rotate(-22deg); }
.bg-icon:nth-child(6)  { width: 95px;  top: 12%; left: 45%; transform: rotate(7deg); }
.bg-icon:nth-child(7)  { width: 140px; top: 42%; right: 12%; transform: rotate(-18deg); }
.bg-icon:nth-child(8)  { width: 85px;  top: 78%; right: 20%; transform: rotate(25deg); }
.bg-icon:nth-child(9)  { width: 115px; top: 25%; left: 70%; transform: rotate(-5deg); }
/* .bg-icon:nth-child(10) { width: 105px; top: 60%; left: 55%; transform: rotate(15deg); }
.bg-icon:nth-child(11) { width: 125px; top: 85%; left: 30%; transform: rotate(-12deg); } */

/* Optional: very gentle floating animation */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

.bg-icon {
  --rot: 0deg;
  animation: gentleFloat 9s ease-in-out infinite;
}

.bg-icon:nth-child(1)  { --rot: -15deg; animation-delay: 0s; }
.bg-icon:nth-child(2)  { --rot: 20deg;  animation-delay: 1.2s; }
.bg-icon:nth-child(3)  { --rot: -8deg;  animation-delay: 0.6s; }
.bg-icon:nth-child(4)  { --rot: 12deg;  animation-delay: 2.1s; }
.bg-icon:nth-child(5)  { --rot: -22deg; animation-delay: 1.8s; }
.bg-icon:nth-child(6)  { --rot: 7deg;   animation-delay: 0.9s; }
.bg-icon:nth-child(7)  { --rot: -18deg; animation-delay: 2.5s; }
.bg-icon:nth-child(8)  { --rot: 25deg;  animation-delay: 1.5s; }
.bg-icon:nth-child(9)  { --rot: -5deg;  animation-delay: 0.3s; }
.bg-icon:nth-child(10) { --rot: 15deg;  animation-delay: 2.8s; }
.bg-icon:nth-child(11) { --rot: -12deg; animation-delay: 1.1s; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .bg-icon {
    animation: none;
  }
}

/* On very small screens, hide some icons so it doesn’t feel crowded */
@media (max-width: 480px) {
  .bg-icon:nth-child(n+7) {
    display: none;
  }
  .bg-icon {
    opacity: 0.05;
  }
}