/* =====================================================
   MOONPIZE — main.css
   Brand colours: #D32F2F | #FFF8DC | #4CAF50
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --red:      #D32F2F;
  --red-dark: #B71C1C;
  --red-light:#FFEBEE;
  --cream:    #FFF8DC;
  --green:    #4CAF50;
  --green-dk: #388E3C;
  --white:    #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-400: #BDBDBD;
  --gray-600: #757575;
  --gray-800: #424242;
  --black:    #1A1A1A;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.18);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: .3s ease;
  --font: 'Poppins', sans-serif;
  --max-w: 1440px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  font-size: 16px;
}
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 70px; /* nav height */
}

/* iOS safe area */
body { padding-bottom: env(safe-area-inset-bottom); }

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); font-size: 16px; /* prevent iOS zoom */ }

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--red);
  z-index: 9999;
  transition: width .1s linear;
}

/* ── Scroll-to-top Button ── */
#scroll-top {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  right: 20px;
  width: 48px; height: 48px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-md);
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ── Live Chat Button ── */
#live-chat {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: 20px;
  width: 56px; height: 56px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform var(--transition), background var(--transition);
}
#live-chat:hover { background: var(--red-dark); transform: scale(1.1); }

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: env(safe-area-inset-bottom);
  left: 0; right: 0;
  background: var(--black);
  color: var(--white);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  z-index: 2000;
  font-size: clamp(13px, 1.5vw, 15px);
}
#cookie-banner a { color: var(--cream); text-decoration: underline; }
#cookie-banner .cookie-actions { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; }

/* ── NAVIGATION ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 900;
  transition: transform var(--transition), box-shadow var(--transition);
  padding-top: env(safe-area-inset-top);
}
#nav.hidden { transform: translateY(-100%); }
#nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 70px;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--black); }

.nav-links {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 32px);
}
.nav-links a {
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  color: var(--gray-800);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-cart {
  position: relative;
  background: var(--red);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition), transform var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.btn-cart:hover { background: var(--red-dark); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.cart-count.visible { opacity: 1; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block; width: 100%; height: 2px;
  background: var(--black);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  padding: 20px clamp(16px, 4vw, 32px);
  flex-direction: column; gap: 4px;
  z-index: 850;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 0;
  font-size: 16px; font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--red); }
.nav-mobile a:last-child { border-bottom: none; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: clamp(14px, 1.5vw, 16px); transition: all var(--transition); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(211,47,47,.35); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); transform: translateY(-2px); }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dk); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 40px; font-size: clamp(16px, 1.8vw, 18px); }

/* ── SECTION LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { padding: clamp(48px, 6vw, 96px) 0; }
.section-alt { background: var(--gray-100); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--black); color: var(--white); }

.section-header { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.section-tag { display: inline-block; background: var(--red-light); color: var(--red); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 4vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.section-subtitle { font-size: clamp(15px, 1.8vw, 18px); color: var(--gray-600); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex; align-items: center;
  overflow: hidden;
  background: #1A0A0A;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?w=1920&q=85');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.4) 100%); }
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px);
  padding-top: calc(clamp(32px, 6vw, 80px) + env(safe-area-inset-top));
}
.hero-tag { display: inline-block; background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 8px 18px; border-radius: 50px; margin-bottom: 20px; }
.hero-title { font-size: clamp(32px, 6vw, 72px); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 20px; max-width: 750px; }
.hero-title span { color: #FF6B6B; }
.hero-sub { font-size: clamp(15px, 2vw, 20px); color: rgba(255,255,255,.85); margin-bottom: 36px; max-width: 550px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: clamp(22px, 3vw, 36px); font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: clamp(11px, 1.2vw, 13px); color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--red); color: var(--white); padding: 20px 0; }
.trust-inner { display: flex; align-items: center; justify-content: space-around; gap: 16px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon { font-size: 24px; }
.trust-text strong { display: block; font-size: clamp(14px, 1.5vw, 16px); font-weight: 700; }
.trust-text span { font-size: clamp(11px, 1.2vw, 13px); opacity: .85; }

/* ── PIZZA CAROUSEL ── */
.carousel-section { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 24px;
  scrollbar-width: none;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}
.carousel-track::-webkit-scrollbar { display: none; }

.pizza-card {
  flex: 0 0 clamp(240px, 28vw, 320px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.pizza-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pizza-card-img { position: relative; height: 180px; overflow: hidden; }
.pizza-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pizza-card:hover .pizza-card-img img { transform: scale(1.08); }
.pizza-badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px; text-transform: uppercase; }
.pizza-badge.vegan { background: var(--green); }
.pizza-badge.new { background: #FF9800; }
.pizza-card-body { padding: 16px; }
.pizza-card-name { font-size: clamp(14px, 1.5vw, 16px); font-weight: 700; margin-bottom: 6px; }
.pizza-card-desc { font-size: clamp(12px, 1.2vw, 13px); color: var(--gray-600); margin-bottom: 12px; line-height: 1.5; }
.pizza-card-footer { display: flex; align-items: center; justify-content: space-between; }
.pizza-price { font-size: clamp(16px, 1.8vw, 18px); font-weight: 800; color: var(--red); }
.pizza-price-old { font-size: 13px; color: var(--gray-400); text-decoration: line-through; margin-left: 6px; }
.btn-add { width: 36px; height: 36px; background: var(--red); color: var(--white); border-radius: 50%; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background var(--transition), transform var(--transition); }
.btn-add:hover { background: var(--red-dark); transform: scale(1.15); }

/* ── PROMO BANNER ── */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.promo-card {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.promo-card::before { content: '🍕'; position: absolute; right: -10px; bottom: -10px; font-size: 100px; opacity: .12; }
.promo-card:nth-child(2) { background: linear-gradient(135deg, var(--green) 0%, var(--green-dk) 100%); }
.promo-card:nth-child(2)::before { content: '👨‍👩‍👧‍👦'; }
.promo-card:nth-child(3) { background: linear-gradient(135deg, #FF6B35 0%, #E64A19 100%); }
.promo-card:nth-child(3)::before { content: '🎉'; }
.promo-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }
.promo-title { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; margin-bottom: 8px; }
.promo-desc { font-size: clamp(13px, 1.5vw, 15px); opacity: .9; margin-bottom: 16px; line-height: 1.5; }

/* ── REVIEWS ── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: clamp(20px, 2.5vw, 32px); transition: box-shadow var(--transition); }
.review-card:hover { box-shadow: var(--shadow-md); }
.review-stars { color: #FFC107; font-size: 18px; margin-bottom: 12px; }
.review-text { font-size: clamp(13px, 1.4vw, 15px); color: var(--gray-800); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--red-light); display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-weight: 700; font-size: 14px; }
.review-city { font-size: 12px; color: var(--gray-600); }

/* ── NEWSLETTER ── */
.newsletter { background: linear-gradient(135deg, var(--black) 0%, #3D1A1A 100%); color: var(--white); text-align: center; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 28px auto 0; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1; min-width: 220px;
  padding: 14px 20px; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: var(--white); font-size: 15px;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--red); }

/* ── LOCATION MAP ── */
.map-search { display: flex; gap: 12px; max-width: 480px; margin: 0 auto 32px; flex-wrap: wrap; }
.map-search input { flex: 1; min-width: 200px; padding: 12px 18px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 16px; transition: border-color var(--transition); }
.map-search input:focus { outline: none; border-color: var(--red); }
#map-container { width: 100%; height: clamp(300px, 45vw, 500px); border-radius: var(--radius-md); overflow: hidden; background: var(--gray-200); border: 2px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gray-600); position: relative; }

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(40px, 5vw, 80px) 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); }
.footer-brand-logo { font-size: clamp(22px, 2.5vw, 28px); font-weight: 800; color: var(--red); margin-bottom: 16px; }
.footer-brand-desc { font-size: clamp(13px, 1.4vw, 15px); color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social { width: 38px; height: 38px; background: rgba(255,255,255,.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background var(--transition); }
.footer-social:hover { background: var(--red); }
.footer-col h4 { font-size: clamp(13px, 1.4vw, 15px); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: rgba(255,255,255,.9); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: clamp(13px, 1.4vw, 14px); color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--red); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: clamp(13px, 1.4vw, 14px); color: rgba(255,255,255,.6); }
.footer-contact-item span:first-child { font-size: 16px; margin-top: 1px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: clamp(12px, 1.2vw, 13px); color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { font-size: clamp(12px, 1.2vw, 13px); color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-legal a:hover { color: var(--red); }

/* ── ALLERGEN BADGE COLOURS ── */
.allergen-yes { color: var(--red); font-weight: 700; }
.allergen-may { color: #FF9800; font-weight: 600; }
.allergen-no  { color: var(--green); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--gray-800); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--black);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--red); }
.form-group input.error,
.form-group textarea.error { border-color: var(--red); }
.form-error { font-size: 13px; color: var(--red); margin-top: 4px; display: none; }
.form-group.has-error .form-error { display: block; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--black) 0%, #3D1A1A 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px);
  padding-top: calc(clamp(48px, 7vw, 96px) + env(safe-area-inset-top));
}
.page-header h1 { font-size: clamp(28px, 5vw, 56px); font-weight: 900; margin-bottom: 12px; }
.page-header p { font-size: clamp(14px, 1.8vw, 18px); color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 14px 0; font-size: 13px; color: var(--gray-600); display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--red); }
.breadcrumb-sep { opacity: .4; }

/* ── ACCORDION / FAQ ── */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: clamp(14px, 1.5vw, 16px); transition: color var(--transition); }
.faq-question:hover { color: var(--red); }
.faq-icon { font-size: 20px; transition: transform var(--transition); color: var(--red); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer p { padding: 0 0 18px; font-size: clamp(13px, 1.4vw, 15px); color: var(--gray-600); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── TABS ── */
.tabs-nav { display: flex; gap: 4px; background: var(--gray-100); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn { padding: 10px 20px; border-radius: calc(var(--radius-sm) - 2px); font-size: clamp(13px, 1.4vw, 15px); font-weight: 600; color: var(--gray-600); transition: all var(--transition); white-space: nowrap; }
.tab-btn.active { background: var(--white); color: var(--red); box-shadow: var(--shadow-sm); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── CART SIDEBAR ── */
#cart-sidebar {
  position: fixed; top: 0; right: -420px; width: min(420px, 100vw);
  height: 100vh; background: var(--white);
  box-shadow: var(--shadow-lg); z-index: 1500;
  transition: right var(--transition);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
#cart-sidebar.open { right: 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1400; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.cart-overlay.visible { opacity: 1; pointer-events: all; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--gray-200); }
.cart-header h3 { font-size: 18px; font-weight: 700; }
.cart-close { font-size: 24px; color: var(--gray-600); transition: color var(--transition); }
.cart-close:hover { color: var(--red); }
.cart-items { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item-price { font-size: 14px; color: var(--red); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 28px; height: 28px; background: var(--gray-100); border-radius: var(--radius-sm); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.qty-btn:hover { background: var(--red); color: var(--white); }
.qty-num { font-weight: 600; font-size: 14px; min-width: 20px; text-align: center; }
.cart-remove { color: var(--gray-400); font-size: 18px; transition: color var(--transition); margin-left: auto; align-self: flex-start; }
.cart-remove:hover { color: var(--red); }
.cart-footer { padding: 16px; border-top: 2px solid var(--gray-200); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.cart-promo { display: flex; gap: 8px; margin-bottom: 16px; }
.cart-promo input { flex: 1; }
.cart-empty { text-align: center; padding: 48px 16px; color: var(--gray-400); }
.cart-empty-icon { font-size: 56px; margin-bottom: 12px; }

/* ── MENU FILTERS ── */
.filter-bar {
  position: sticky; top: 70px; z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  padding: 12px 0;
}
.filter-inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 clamp(16px, 4vw, 48px); }
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn { padding: 8px 18px; border: 2px solid var(--gray-200); border-radius: 50px; font-size: 14px; font-weight: 600; color: var(--gray-600); white-space: nowrap; background: var(--white); transition: all var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

.menu-section-title { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; margin: 40px 0 20px; display: flex; align-items: center; gap: 10px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 25vw, 300px), 1fr)); gap: 20px; }
.menu-item {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.menu-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.menu-item.hidden { display: none; }
.menu-item-img { height: 180px; overflow: hidden; position: relative; }
.menu-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.menu-item:hover .menu-item-img img { transform: scale(1.06); }
.menu-item-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.menu-item-tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.menu-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 50px; text-transform: uppercase; }
.menu-tag-vegan { background: #E8F5E9; color: var(--green-dk); }
.menu-tag-gluten { background: #FFF3E0; color: #E65100; }
.menu-tag-new { background: var(--red-light); color: var(--red); }
.menu-item-name { font-size: clamp(15px, 1.6vw, 17px); font-weight: 700; margin-bottom: 6px; }
.menu-item-desc { font-size: clamp(12px, 1.3vw, 13px); color: var(--gray-600); line-height: 1.6; flex: 1; margin-bottom: 12px; }
.menu-item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.menu-item-price { font-size: clamp(17px, 2vw, 20px); font-weight: 800; color: var(--red); }

/* ── ORDER TYPE SELECTOR ── */
.order-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 3vw, 32px);
  max-width: 800px;
  margin: 0 auto 48px;
}

/* ── ORDER TRACKER ── */
.order-tracker { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: nowrap; overflow-x: auto; padding: 8px; }
.tracker-step { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 80px; }
.tracker-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 22px; transition: background var(--transition); }
.tracker-step.active .tracker-icon { background: var(--red); }
.tracker-step.done .tracker-icon { background: var(--green); }
.tracker-label { font-size: 12px; font-weight: 600; color: var(--gray-400); text-align: center; }
.tracker-step.active .tracker-label,
.tracker-step.done .tracker-label { color: var(--black); }
.tracker-line { flex: 1; height: 3px; background: var(--gray-200); min-width: 30px; align-self: start; margin-top: 25px; }
.tracker-line.done { background: var(--green); }

/* ── LOCATION CARDS ── */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.location-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px; transition: box-shadow var(--transition); }
.location-card:hover { box-shadow: var(--shadow-md); }
.location-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.location-open { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.location-open.closed { background: var(--red); }
.location-address { font-size: 13px; color: var(--gray-600); margin-bottom: 10px; line-height: 1.5; }
.location-meta { display: flex; gap: 10px; font-size: 12px; font-weight: 600; flex-wrap: wrap; }
.location-badge { background: var(--gray-100); color: var(--gray-600); padding: 4px 10px; border-radius: 50px; }

/* ── ACCOUNT ── */
.account-grid { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.account-sidebar { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 24px; height: fit-content; }
.account-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--red-light); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 16px; }
.account-name { text-align: center; font-weight: 700; font-size: 18px; }
.account-email { text-align: center; font-size: 13px; color: var(--gray-600); margin-bottom: 20px; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--gray-600); transition: all var(--transition); display: flex; align-items: center; gap: 10px; }
.account-nav a:hover, .account-nav a.active { background: var(--red-light); color: var(--red); }
.account-points { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); color: var(--white); border-radius: var(--radius-md); padding: 20px; text-align: center; margin-top: 20px; }
.account-points-num { font-size: 36px; font-weight: 900; }
.account-points-label { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }

/* ── ORDER HISTORY ── */
.order-history-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; transition: box-shadow var(--transition); }
.order-history-item:hover { box-shadow: var(--shadow-sm); }
.order-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.order-id { font-size: 13px; color: var(--gray-600); }
.order-date { font-size: 13px; color: var(--gray-600); }
.order-status { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.order-status.delivered { background: #E8F5E9; color: var(--green-dk); }
.order-status.processing { background: var(--red-light); color: var(--red); }
.order-items-list { font-size: 14px; color: var(--gray-800); margin-bottom: 12px; }
.order-footer { display: flex; align-items: center; justify-content: space-between; }
.order-total { font-weight: 700; font-size: 16px; }

/* ── LEGAL PAGES ── */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h2 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; margin: 32px 0 12px; color: var(--black); }
.legal-content h3 { font-size: clamp(15px, 1.8vw, 18px); font-weight: 600; margin: 24px 0 10px; color: var(--gray-800); }
.legal-content p { font-size: clamp(13px, 1.5vw, 15px); line-height: 1.8; color: var(--gray-800); margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 20px; }
.legal-content ul li { font-size: clamp(13px, 1.5vw, 15px); line-height: 1.8; color: var(--gray-800); margin-bottom: 6px; list-style: disc; }

/* ── ALLERGEN TABLE ── */
.allergen-table { width: 100%; border-collapse: collapse; font-size: clamp(11px, 1.2vw, 14px); overflow-x: auto; display: block; }
.allergen-table th, .allergen-table td { border: 1px solid var(--gray-200); padding: 8px 12px; text-align: center; white-space: nowrap; }
.allergen-table th { background: var(--red); color: var(--white); font-weight: 700; }
.allergen-table th:first-child { text-align: left; }
.allergen-table td:first-child { text-align: left; font-weight: 600; background: var(--gray-100); }
.allergen-table tr:nth-child(even) td:not(:first-child) { background: var(--gray-100); }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.fw-700 { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
