/* ===========================
   ROOT & RESET
   - All CSS custom properties in :root for single-source theming
   - box-sizing inherited (faster than universal selector with both pseudos)
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #FF5722;
  --primary-dark:   #E64A19;
  --primary-light:  #FFF3E0;
  --accent:         #FFD54F;
  --text-dark:      #1A1A2E;
  --text-mid:       #444;
  --text-light:     #888;
  --bg:             #FAFAFA;
  --white:          #FFFFFF;
  --card-bg:        #FFFFFF;
  --border:         #EBEBEB;
  --whatsapp:       #25D366;

  /* Shadows consolidated to fewest needed */
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
  --shadow-md:   0 4px 20px rgba(0,0,0,.1);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --nav-h:     68px;

  --font:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /*
    Single easing for transitions – avoids browser recalculating
    multiple cubic-bezier values on each animated element.
    Use will-change sparingly (added only where GPU compositing truly helps).
  */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  0.2s;
  --dur-base:  0.25s;
  --dur-slow:  0.35s;
}

/* ===========================
   BASE
=========================== */
html {
  scroll-behavior: smooth;
  /* Prevents text size bump on orientation change (iOS Safari) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: var(--font); }
ul { list-style: none; }

/* Touch targets: at least 44 × 44 px (Apple HIG / WCAG 2.5.5) */
button, a, [role="button"] { min-height: 44px; min-width: 44px; touch-action: manipulation; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===========================
   SCROLLBAR (desktop only – not worth the overhead on mobile)
=========================== */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: #f1f1f1; }
  ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
}

/* ===========================
   FLOATING BUTTONS
   GPU-accelerated expand using max-width + opacity on transform layer.
   Overflow hidden set once on .fab, not repeated.
=========================== */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Own stacking context so it doesn't dirty the main paint layer */
  will-change: transform;
}

.fab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  overflow: hidden;
  /* max-width animation avoids width reflow; GPU-composited */
  max-width: 52px;
  transition: max-width var(--dur-slow) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  min-height: 48px;
  min-width: 48px;
}

@media (hover: hover) and (pointer: fine) {
  .fab:hover, .fab:focus-visible {
    max-width: 160px;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
  }
  .fab:hover span, .fab:focus-visible span { opacity: 1; }
}

.fab svg { flex-shrink: 0; }

.fab-whatsapp { background: var(--whatsapp); }
.fab-call     { background: var(--primary); }

.fab span {
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
  white-space: nowrap;
}

/* ===========================
   NAVBAR
   backdrop-filter is expensive; limit to Chromium where it's GPU-composited.
   On Safari it's also composited, but we add contain:strict to reduce layout cost.
=========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  height: var(--nav-h);
  /* contain: layout prevents navbar scroll from triggering full-page layout */
  contain: layout style;
  transition: box-shadow var(--dur-base) var(--ease);
}

.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.1); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 70px;
  width: 70px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav-title { display: flex; flex-direction: column; }

.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -.3px;
}

.brand-tagline {
  font-size: 10px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Cart button */
.cart-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  /* Only animate properties that trigger compositing (no layout) */
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .cart-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255,87,34,.4);
  }
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  /* Use transform (GPU) not scale on the element itself to avoid stacking context churn */
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease);
  pointer-events: none;
}

.cart-count.visible  { transform: scale(1); }
.cart-count.bump     { animation: bump .3s var(--ease); }

@keyframes bump {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.5); }
}

/* ===========================
   HERO
   will-change on .hero-img causes it to be composited separately
   (saves repainting when overlay is animated or page scrolls).
=========================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Compositor hint – costs ~4 MB VRAM but worth it for the LCP image */
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,46,.92) 0%,
    rgba(26,26,46,.75) 50%,
    rgba(255,87,34,.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 16px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,213,79,.2);
  border: 1px solid rgba(255,213,79,.4);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: fadeInDown .5s var(--ease) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp .6s var(--ease) .08s both;
}

.hero-title span { color: var(--primary); }

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin-bottom: 32px;
  animation: fadeInUp .6s var(--ease) .16s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp .6s var(--ease) .24s both;
}

/* Buttons: transitions only on composited properties */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(255,87,34,.5);
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,87,34,.6);
  }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .btn-secondary:hover {
    background: rgba(255,255,255,.25);
    transform: translateY(-2px);
  }
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp .6s var(--ease) .32s both;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  /* contain: strict prevents counter animation from causing layout shifts */
  contain: size layout;
  min-width: 3ch;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.25);
}

/* ===========================
   SEARCH SECTION
=========================== */
.search-section {
  background: var(--white);
  padding: 48px 0 20px;
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.section-sub {
  font-size: 15px;
  color: var(--text-light);
  margin-top: 6px;
}

.search-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 13px 44px 13px 42px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px; /* ≥16px: prevents iOS auto-zoom */
  color: var(--text-dark);
  background: var(--bg);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  /* Avoid tap-delay on mobile */
  touch-action: manipulation;
  /* Suppress native search decorations */
  -webkit-appearance: none;
  appearance: none;
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,87,34,.1);
}

.search-input::placeholder { color: var(--text-light); }

.clear-search {
  position: absolute;
  right: 8px;
  font-size: 13px;
  color: var(--text-light);
  padding: 6px 8px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 32px;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.clear-search.visible { display: flex; }

@media (hover: hover) {
  .clear-search:hover { background: var(--border); color: var(--text-dark); }
}

.filter-select {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg);
  outline: none;
  cursor: pointer;
  min-width: 150px;
  touch-action: manipulation;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,87,34,.1);
}

.filter-pills {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-mid);
  background: var(--white);
  min-height: 36px;
  touch-action: manipulation;
  transition: border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .pill:hover { border-color: var(--primary); color: var(--primary); }
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,87,34,.35);
}

/* ===========================
   FOOD SECTION
=========================== */
.food-section {
  padding: 32px 0 60px;
  background: var(--bg);
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  /* contain: layout so grid changes don't dirty ancestor layout */
  contain: layout;
}

/* Food Card
   - Hover: transform only (GPU, no layout)
   - Removed box-shadow transition (expensive composite) on card; only on hover
*/
.food-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  /* 
    animation-fill-mode:both + animation-delay for stagger.
    contain: layout prevents card reflows from propagating up.
  */
  animation: cardIn .35s var(--ease) both;
  contain: layout style;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .food-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,87,34,.2);
  }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.food-img-wrap {
  position: relative;
  overflow: hidden;
  height: 190px;
  background: linear-gradient(135deg, #FFE0B2, #FFF3E0);
  /* Hint browser to composite this layer independently */
  will-change: transform;
}

.food-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Scale on transform (GPU) not width/height (layout) */
  transition: transform .45s var(--ease);
  /* Prevents image from bleeding during card animation */
  backface-visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .food-card:hover .food-img-wrap img { transform: scale(1.08); }
}

.food-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,.95);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  /* Separate compositing layer for blur */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.food-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.food-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

/* .food-desc removed from HTML – rule kept as no-op in case of future use */
.food-desc { display: none; }

.food-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.food-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.food-price span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  margin-right: 2px;
}

.add-to-cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(255,87,34,.4);
  }
}

.add-to-cart-btn.added { background: #2ecc71; }
.add-to-cart-btn.added:active { animation: addedPop .35s var(--ease); }

@keyframes addedPop {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(.92); }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; font-weight: 700; color: var(--text-mid); margin-bottom: 8px; }
.empty-state p  { font-size: 15px; }

/* ===========================
   CART SIDEBAR
   transform: translateX (GPU) instead of right/left position changes.
=========================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--white);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 48px rgba(0,0,0,.15);
  /* Use transform for slide-in (GPU composited, no layout) */
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  /* Smooth scroll inside sidebar */
  overscroll-behavior: contain;
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-header h2 { font-size: 20px; font-weight: 800; color: var(--text-dark); }

.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 16px;
  color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
@media (hover: hover) { .cart-close:hover { background: #FFE0B2; color: var(--primary); } }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  /* Smooth scrolling on iOS without laggy behaviour */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.cart-empty-icon { font-size: 56px; margin-bottom: 12px; }
.cart-empty p { font-size: 17px; font-weight: 700; color: var(--text-mid); margin-bottom: 4px; }
.cart-empty span { font-size: 14px; }

.cart-items-list { display: flex; flex-direction: column; gap: 12px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  animation: slideInRight .25s var(--ease);
  contain: layout style;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .cart-item:hover { border-color: rgba(255,87,34,.2); background: #FFF9F7; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.cart-item-img {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 14px; font-weight: 700; color: var(--text-dark);
  line-height: 1.3; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 14px; font-weight: 800; color: var(--primary); margin-bottom: 8px;
}

.cart-qty { display: flex; align-items: center; gap: 8px; }

.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  font-size: 16px; font-weight: 700; color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; min-width: 36px;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  line-height: 1;
}

@media (hover: hover) {
  .qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
}

.qty-num { font-size: 15px; font-weight: 800; color: var(--text-dark); min-width: 20px; text-align: center; }

.cart-remove {
  font-size: 18px; color: #ccc;
  padding: 4px;
  min-height: 36px; min-width: 36px;
  display: flex; align-items: center; justify-content: center;
  align-self: flex-start;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .cart-remove:hover { color: #f44336; transform: scale(1.2); }
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}

.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 700; color: var(--text-dark);
  margin-bottom: 14px;
}

.btn-order {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 800;
  padding: 16px; border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(255,87,34,.4);
  min-height: 52px;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .btn-order:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(255,87,34,.5);
  }
}

/* ===========================
   ORDER MODAL
   align-items:flex-end → bottom sheet on mobile.
   translateY(100%) → GPU, no reflow.
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  width: 100%;
  max-width: 600px;
  max-height: 92dvh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .38s var(--ease);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h2 { font-size: 20px; font-weight: 800; color: var(--text-dark); }

.modal-close {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg);
  font-size: 16px; color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
@media (hover: hover) { .modal-close:hover { background: #FFE0B2; color: var(--primary); } }

.modal-body {
  flex: 1; overflow-y: auto; padding: 20px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-section { margin-bottom: 28px; }

.modal-section-title {
  font-size: 15px; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text-mid); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  /* 16px prevents iOS auto-zoom */
  font-size: 16px; color: var(--text-dark); background: var(--bg);
  outline: none; resize: vertical;
  touch-action: manipulation;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,87,34,.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #f44336;
  box-shadow: 0 0 0 4px rgba(244,67,54,.1);
}

.order-summary-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.order-summary-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-dark);
  padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm);
}

.order-summary-item span:first-child { font-weight: 600; }
.order-summary-item span:last-child  { font-weight: 700; color: var(--primary); }

.order-totals { background: var(--primary-light); border-radius: var(--radius-md); overflow: hidden; }

.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; font-size: 14px; color: var(--text-mid);
  border-bottom: 1px solid rgba(255,87,34,.1);
}
.total-row:last-child { border-bottom: none; }

.total-final { font-size: 17px; font-weight: 800; color: var(--text-dark); background: rgba(255,87,34,.1); }
.total-final span:last-child { color: var(--primary); font-size: 20px; }

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}

.btn-confirm {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--whatsapp); color: #fff;
  font-size: 16px; font-weight: 800;
  padding: 16px; border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  min-height: 52px;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .btn-confirm:hover {
    background: #1EBE5A;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(37,211,102,.5);
  }
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.8);
  padding: 40px 0 32px;
  text-align: center;
}

.footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 8px;
}
.footer-brand span { font-size: 20px; font-weight: 800; color: #fff; }
.footer-tag { font-size: 14px; margin-bottom: 20px; opacity: .7; }

.footer-links {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 20px; flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85);
  padding: 8px 16px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,.2);
  min-height: 40px; display: flex; align-items: center;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

@media (hover: hover) {
  .footer-links a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
}

/* ===========================
   ANIMATIONS
   Defined once, reused by class additions.
=========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   TOAST
   Fixed position, pointer-events:none → no layout impact on page.
=========================== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  transition: opacity var(--dur-fast) ease,
              transform var(--dur-fast) ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  /* Stay on its own compositor layer */
  will-change: transform, opacity;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Prevent body scroll when overlay is open (desktop).
   iOS Safari scroll-lock is handled entirely in JS via
   scroll-position save/restore — no position:fixed needed here. */
body.no-scroll { overflow: hidden; }

/* ===========================
   REDUCED MOTION (global override — must stay in style.css, not responsive.css)
=========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 8px 32px rgba(46,204,113,.45);
  padding: 14px 26px;
  font-size: 15px;
}

.toast-check {
  flex-shrink: 0;
  animation: checkPop .4s var(--ease) .1s both;
}

@keyframes checkPop {
  0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(0deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}