/* ═══════════════════════════════════════════════════════════
   CHICKS & CHIPS — CUSTOMER STOREFRONT STYLESHEET
   ═══════════════════════════════════════════════════════════ */

/* ═══ 1. DESIGN TOKENS ═══ */
:root {
  --hero-bg: url("https://i.postimg.cc/MpDCL5DF/image.png");
  --y: #ffb800;
  --y-2: #ffcf40;
  --r: #e63946;
  --g: #2a9d4a;
  --b: #3b82f6;
  --ink: #17172a;
  --ink-2: #2a2a44;
  --bg: #fdfaf1;
  --panel: #ffffff;
  --panel-2: #fff7e0;
  --mut: #6a6a7a;
  --line: #efe6c8;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.04);
  --shadow: 0 10px 30px -12px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.05);
  --shadow-xl: 0 40px 80px -30px rgba(0,0,0,.3);
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13131d;
    --panel: #1e1e2c;
    --panel-2: #262635;
    --ink: #f8f5ea;
    --mut: #a8a6ba;
    --line: #2f2d40;
    --shadow: 0 10px 30px -12px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
    --shadow-xl: 0 40px 80px -30px rgba(0,0,0,.9);
  }
}

/* ═══ 2. RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
img, picture, svg, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══ 3. LAYOUT ═══ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }
section { padding: 60px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head p { color: var(--mut); margin-top: 4px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 8px;
}
.eyebrow-light { color: rgba(255,255,255,.85); }
.muted { color: var(--mut); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,184,0,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}
.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 1.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  line-height: 1;
}
.logo-badge { font-size: 1.4rem; }
.logo-dark { color: var(--ink); }
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
  transition: background 0.2s;
}
.nav a:hover, .nav a.on { background: rgba(0,0,0,.08); }
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--ink);
  padding: 8px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(23,23,42,.15);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}
.live-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g);
  animation: live-pulse 2s infinite;
  flex-shrink: 0;
}
.live-pill-lg {
  background: rgba(42,157,74,.12);
  color: var(--g);
  padding: 8px 16px;
  font-size: 0.8rem;
}

.user-btn, .cart-btn {
  position: relative;
  background: var(--ink);
  color: var(--y);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.user-btn:hover, .cart-btn:hover { transform: scale(1.08); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--r);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--y);
}

/* Location banner */
.location-banner {
  display: none;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.location-banner.on { display: flex; }
.location-actions { display: flex; gap: 8px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
  color: #fff;
  isolation: isolate;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg,
    rgba(23,23,42,.85) 0%,
    rgba(230,57,70,.45) 45%,
    rgba(255,184,0,.55) 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: #fff;
}
.hero h1 span { color: var(--y-2); }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
  color: #fff;
}
.hero p {
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 28px;
  opacity: 0.95;
  color: #fff;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  line-height: 1;
  color: #fff;
}
.hero-stat span { font-size: 0.82rem; opacity: 0.85; color: #fff; }
.hero-visual {
  display: grid;
  place-items: center;
  font-size: clamp(8rem, 18vw, 14rem);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
}
.hero-plate { display: inline-block; animation: float 5s ease-in-out infinite; }

/* Trust bar */
.trust {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.trust-inner {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--mut);
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item b { color: var(--ink); }
.trust-item .ico { font-size: 1.25rem; }

/* Live feed */
.live-section { padding: 40px 20px 60px; }
.live-feed {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.live-feed-head { margin-bottom: 24px; }
.live-feed-head h2 { margin: 12px 0 6px; }
.live-feed-list { display: flex; flex-direction: column; gap: 4px; }
.live-feed-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel-2);
  font-size: 0.92rem;
  animation: slide-in 0.4s ease;
}
.live-feed-list li .live-em { font-size: 1.6rem; }
.live-feed-list li .live-text { flex: 1; }
.live-feed-list li .live-time { font-size: 0.78rem; color: var(--mut); }

/* Footer */
footer {
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--mut);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--y); }
.footer-brand p { color: var(--mut); font-size: 0.9rem; margin-top: 12px; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.85rem;
}

/* ═══ 4. COMPONENTS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--r); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-red { background: var(--r); color: #fff; }
.btn-yellow { background: var(--y); color: var(--ink); }
.btn-blue { background: var(--b); color: #fff; }
.btn-green { background: var(--g); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light {
  border-color: rgba(255,255,255,.6);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-white { background: #fff; color: var(--ink); }
.btn-full { width: 100%; margin-top: 14px; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; min-height: 36px; }

.filter-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
  min-width: 200px;
}
.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 0.95rem;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--y);
  box-shadow: 0 0 0 4px rgba(255,184,0,.2);
}
.search-wrap::before {
  content: "🔍";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
}
.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 2px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--ink);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--y); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.food-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  position: relative;
}
.food-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--y);
}
.food-img {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  display: grid;
  place-items: center;
  font-size: 5rem;
  overflow: hidden;
}
.food-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}
.badge-new { background: var(--ink); }
.badge-sale { background: var(--r); }
.badge-hot { background: #ff6b00; }

.food-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.food-info h3 { font-size: 1.12rem; line-height: 1.25; }
.food-desc { font-size: 0.87rem; color: var(--mut); line-height: 1.45; flex: 1; }
.food-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.price-block { display: flex; flex-direction: column; gap: 2px; }
.price { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.price-old { font-size: 0.85rem; color: var(--mut); text-decoration: line-through; }
.price-new { color: var(--r); }
.save-tag {
  display: inline-block;
  background: rgba(230,57,70,.1);
  color: var(--r);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 2px;
  width: fit-content;
}
.add-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--y);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.add-btn:hover { background: var(--ink); color: var(--y); transform: scale(1.1); }
.add-btn:disabled { background: var(--line); color: var(--mut); cursor: not-allowed; }
.add-btn.added { background: var(--g); color: #fff; animation: pop 0.3s; }

.steps-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-card { align-items: center; text-align: center; padding: 32px 24px; }
.step-em { font-size: 3rem; margin-bottom: 12px; }

/* OFFERS */
.offers {
  background: linear-gradient(135deg, #17172a 0%, #2a2a44 55%, #3a2410 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: 40px 0;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.45);
  border: 1px solid rgba(255,184,0,.3);
}
.offers::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,184,0,.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(230,57,70,.12), transparent 45%);
  pointer-events: none;
}
.offers::after {
  content: "🎟️";
  position: absolute;
  right: -30px;
  bottom: -50px;
  font-size: 18rem;
  opacity: 0.07;
  transform: rotate(-15deg);
  pointer-events: none;
}
.offers-copy { position: relative; z-index: 1; }
.offers h2 { color: #ffffff; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.offers p { color: rgba(255,255,255,.9); margin-bottom: 24px; font-size: 1rem; line-height: 1.55; }
.offers .section-eyebrow.eyebrow-light { color: #ffcf40; font-weight: 800; opacity: 1; }
.offers .btn-white {
  background: #ffb800;
  color: #17172a;
  font-weight: 800;
  box-shadow: 0 8px 24px -8px rgba(255,184,0,.6);
}
.offers .btn-white:hover { background: #ffffff; color: #17172a; box-shadow: 0 10px 30px -8px rgba(255,255,255,.4); }

.offer-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.offer-card {
  background: rgba(255, 184, 0, 0.14);
  border: 2px dashed rgba(255, 184, 0, 0.55);
  border-radius: 16px;
  padding: 20px 18px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.offer-card:hover { background: rgba(255, 184, 0, 0.24); border-color: #ffb800; transform: translateY(-3px); box-shadow: 0 12px 28px -8px rgba(255,184,0,.5); }
.offer-code { font-family: "Bebas Neue", sans-serif; font-size: 1.75rem; letter-spacing: 2px; color: #ffb800; display: block; margin-bottom: 6px; text-shadow: 0 2px 6px rgba(0,0,0,.35); line-height: 1; }
.offer-desc { font-size: 0.9rem; color: #ffffff; line-height: 1.4; font-weight: 500; }
.offer-copy { position: absolute; top: 12px; right: 12px; font-size: 0.7rem; background: #ffb800; color: #17172a; padding: 3px 9px; border-radius: 999px; font-weight: 800; letter-spacing: 0.3px; opacity: 0; transition: opacity 0.2s; }
.offer-card:hover .offer-copy { opacity: 1; }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 200; backdrop-filter: blur(2px); }
.cart-overlay.on { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); z-index: 201; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -20px 0 60px rgba(0,0,0,.15); }
.cart-drawer.on { transform: translateX(0); }
.cart-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; font-size: 1.35rem; }
.cart-close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; }
.cart-close:hover { background: var(--panel-2); }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--mut); }
.cart-empty .em { font-size: 4rem; margin-bottom: 12px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item-img { width: 60px; height: 60px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font-size: 1.8rem; flex-shrink: 0; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-sm { font-size: 0.85rem; color: var(--mut); }
.qty-ctrl { display: flex; align-items: center; gap: 6px; background: var(--panel-2); border-radius: 999px; padding: 4px; }
.qty-ctrl button { width: 28px; height: 28px; border-radius: 50%; background: var(--panel); font-weight: 700; display: grid; place-items: center; }
.qty-ctrl button:hover { background: var(--y); }
.qty-ctrl span { font-weight: 700; min-width: 20px; text-align: center; font-size: 0.9rem; }

.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--panel-2); }
.cart-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.92rem; }
.cart-row.total { font-weight: 800; font-size: 1.15rem; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; }
.cart-row.discount { color: var(--g); }
.code-row { display: flex; gap: 8px; margin: 12px 0; }
.code-row input { flex: 1; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); font-size: 0.9rem; text-transform: uppercase; }
.code-row input:focus { outline: none; border-color: var(--y); }
.code-row button { padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.85rem; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 20px; z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(4px); }
.modal.on { opacity: 1; pointer-events: auto; }
.modal-card { background: var(--bg); border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 32px; box-shadow: var(--shadow-xl); transform: translateY(20px) scale(0.98); transition: transform 0.3s; }
.modal.on .modal-card { transform: translateY(0) scale(1); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.87rem; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); font-size: 0.95rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--y); box-shadow: 0 0 0 4px rgba(255,184,0,.2); }
.field textarea { resize: vertical; min-height: 70px; }

/* LOADING OVERLAY & TOAST */
#globalLoading { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: none; place-items: center; z-index: 400; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#globalLoading.on { display: grid; }
#globalLoading > div { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; background: var(--ink); padding: 28px 40px; border-radius: 20px; box-shadow: var(--shadow-xl); min-width: 200px; text-align: center; }
#globalLoading p { font-weight: 600; font-size: 0.95rem; margin: 0; }
.spinner { width: 48px; height: 48px; border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--y); border-radius: 50%; animation: spin 1s linear infinite; }
.live-toast { position: fixed; bottom: 24px; left: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px 12px 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 0.9rem; max-width: 340px; z-index: 90; transform: translateY(120%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.live-toast.on { transform: translateY(0); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--g); animation: live-pulse 2s infinite; flex-shrink: 0; }

.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--y); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow-lg); z-index: 80; opacity: 0; pointer-events: none; transition: all 0.3s; }
.scroll-top.on { opacity: 1; pointer-events: auto; }

/* ANIMATIONS */
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(42,157,74,.7); } 70% { box-shadow: 0 0 0 8px rgba(42,157,74,0); } 100% { box-shadow: 0 0 0 0 rgba(42,157,74,0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════
   EVENTS & PARTNERS
   ═══════════════════════════════════════════════════════════ */
.events-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.events-banner:hover {
  border-color: var(--y);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.events-banner-icon {
  font-size: 3rem;
  line-height: 1;
  background: rgba(255, 184, 0, 0.15);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.events-banner-content { flex: 1; }
.events-banner-content h2 { font-size: 1.4rem; margin-bottom: 4px; color: var(--ink); }
.events-banner-content p { color: var(--mut); font-size: 0.95rem; margin: 0; }
.events-banner-action { font-weight: 700; color: var(--y); white-space: nowrap; }

.events-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  visibility: hidden;
}
.events-screen.on {
  transform: translateY(0);
  visibility: visible;
}

.events-screen-head {
  background: var(--panel);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.events-screen-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px 0;
  -webkit-overflow-scrolling: touch;
}

.events-page-header {
  text-align: center;
  margin-bottom: 32px;
}
.events-page-header h2 { font-size: 2.4rem; margin-bottom: 8px; }

.events-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--y);
}

/* Force images to fill the 220px height cleanly without squishing */
.event-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  background-color: var(--panel-2);
}
.event-icon-lg {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  display: grid;
  place-items: center;
  font-size: 5rem;
}
.event-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--y);
}
.event-loc { color: var(--mut); }
.event-body h3 { font-size: 1.3rem; margin-bottom: 8px; line-height: 1.2; color: var(--ink); }
.event-body p { font-size: 0.95rem; line-height: 1.5; flex: 1; color: var(--mut); }

.event-card.past { opacity: 0.65; background: var(--panel-2); }
.event-card.past .event-meta { color: var(--mut); }

/* ═══════════════════════════════════════════════════════════
   EVENT DETAILS MODAL & QR CODE
   ═══════════════════════════════════════════════════════════ */
.event-detail-hero {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  background: var(--panel-2);
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--y);
}

.event-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 184, 0, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
}

.event-detail-title {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.1;
}

.event-detail-desc {
  color: var(--mut);
  line-height: 1.6;
  margin-bottom: 24px;
  white-space: pre-line;
}

/* The specific QR Code style requested */
.event-qr-wrapper {
  background: #0b8a76; /* The teal background from the image */
  padding: 24px;
  border-radius: 12px;
  display: inline-block;
  margin: 20px auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.event-qr-wrapper canvas {
  display: block;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
}

/* M-Pesa STK push mock layout */
.stk-push-box {
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
}
.stk-push-box input {
  width: 100%;
  max-width: 280px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 16px;
  text-align: center;
}
.stk-push-box input:focus {
  outline: none;
  border-color: var(--y);
  box-shadow: 0 0 0 4px rgba(255,184,0,0.18);
}

/* PARTNERS */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.partner-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--y);
}
.partner-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--panel-2);
}
.partner-icon-lg {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  display: grid;
  place-items: center;
  font-size: 5rem;
}
.partner-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.partner-body h3 { font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.partner-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--y);
}
.partner-desc { font-size: 0.92rem; color: var(--mut); line-height: 1.5; flex: 1; }
.partner-cta { font-weight: 700; color: var(--y); margin-top: 8px; }

.partner-detail-head {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.partner-detail-img {
  width: 120px; height: 120px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--panel-2);
}
.partner-detail-head h2 { margin: 0 0 6px; }
.back-btn {
  margin-bottom: 20px;
  display: inline-flex;
}
.product-price { font-weight: 800; color: var(--ink); }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE (Placed at bottom so overrides work perfectly)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .offers { grid-template-columns: 1fr; padding: 32px 24px; }
  .offer-codes { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { display: none; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: block; order: -1; margin-right: -8px; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--y); padding: 16px 20px; gap: 4px; box-shadow: var(--shadow-lg); z-index: 99; }
  .nav.open a { width: 100%; padding: 12px 16px; }

  .live-pill { display: none; }

  .hero { padding: 50px 0 60px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; gap: 20px; margin-top: 24px; }
  .hero-stat strong { font-size: 1.5rem; }
  .hero-copy { max-width: 100%; }

  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .location-banner { flex-direction: column; align-items: stretch; }
  .live-feed { padding: 24px; }
  .live-feed-list li { font-size: 0.85rem; padding: 10px 12px; gap: 10px; }
  .live-feed-list li .live-em { font-size: 1.3rem; }
  .live-feed-list li .live-time { font-size: 0.7rem; }
  .offers { padding: 28px 22px; }

  /* Events & Partners Mobile */
  .events-banner { flex-direction: column; text-align: center; padding: 24px 20px; gap: 14px; }
  .events-banner-action { margin-top: 10px; }
  .events-tabs { flex-direction: column; }
  .events-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .partner-detail-head { flex-direction: column; align-items: flex-start; }
  
  /* Event Details Modal Mobile */
  .event-detail-hero { height: 200px; }
  .event-detail-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
  .live-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .scroll-top { bottom: 80px; right: 12px; width: 42px; height: 42px; }
  .hero h1 { letter-spacing: 1px; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 1.35rem; }
  .hero-stat span { font-size: 0.75rem; }
  .modal-card { padding: 24px 20px; }
  .cart-head { padding: 16px 20px; }
  .cart-body { padding: 16px 20px; }
  .cart-foot { padding: 16px 20px 20px; }
  #globalLoading > div { padding: 24px 28px; }
}

@media (hover: none) and (pointer: coarse) {
  .btn, .chip, .add-btn, .cart-btn, .user-btn { min-height: 44px; }
  .add-btn, .cart-btn, .user-btn { min-width: 44px; }
  .qty-ctrl button { min-width: 44px; min-height: 44px; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
}