/* ─── Variables ───────────────────────────────────────────────────────────── */
:root {
  --primary: #C8502A;
  --primary-dark: #9E3B1A;
  --accent: #FFD700;
  --bg: #F7F5F2;
  --border: #E8E4DF;
  --text: #1a1a1a;
  --text-muted: #777;
  --white: #fff;
  --radius: 14px;
  --header-h: 98px;
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Hero Banner ─────────────────────────────────────────────────────────── */
.hero-banner {
  position: relative;
  height: 260px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.62) 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px 32px;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-logo-box {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.hero-text h1 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
  line-height: 1.1;
}
.hero-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  margin-top: 5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ─── Sticky 2-Row Header ────────────────────────────────────────────────── */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

/* Row 1 — Brand (centered) + Icons (right) */
.brand-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.brand-center {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
#client-logo {
  height: 32px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  border-radius: 6px;
}
#client-name-short {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.brand-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: all;
}
.brand-contact-link {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.brand-contact-link:hover { color: var(--primary); }
.brand-sep { font-size: 0.65rem; color: var(--border); }

/* Tab icons — top-right */
.tab-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.tab-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 52px;
  height: 44px;
  border: none;
  background: transparent;
  color: #4b5563;
  border-radius: 10px;
  position: relative;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.tab-icon:hover { background: #f5f5f5; color: var(--primary); }
.tab-icon.active { background: #fdf3ef; color: var(--primary); }
.tab-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.tab-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.cart-badge {
  position: absolute;
  top: 4px; right: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
  border-radius: 50%;
  width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff;
}

/* Row 2 — Category chip nav (full width, sticky with header) */
.cat-row {
  height: 44px;
  display: flex;
  align-items: center;
  background: var(--white);
}
#category-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
  height: 100%;
  scrollbar-width: none;
}
#category-nav::-webkit-scrollbar { display: none; }
.cat-chip {
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: #555;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); background: #fdf3ef; }
.cat-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ─── Promotions — Pill Scroll ───────────────────────────────────────────── */
#promotions-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.promos-scroll {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 24px 4px;
  scrollbar-width: none;
}
.promos-scroll::-webkit-scrollbar { display: none; }
.promo-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border-radius: 50px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.promo-pill:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(200,80,42,0.15); }
.promo-pill-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.promo-pill-img-placeholder {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.promo-pill-title { font-size: 0.85rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.promo-pill-sub { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; margin-top: 1px; }

/* ─── Main Content ────────────────────────────────────────────────────────── */
#view-menu > main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}
.loading { color: var(--text-muted); padding: 40px; text-align: center; }

/* ─── Fan Favorites ───────────────────────────────────────────────────────── */
.section-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#fan-favorites-scroll {
  display: flex;
  justify-content: center;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
#fan-favorites-scroll::-webkit-scrollbar { display: none; }
.fav-card {
  flex-shrink: 0;
  width: 190px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.fav-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.fav-img-wrap { width: 100%; height: 130px; overflow: hidden; }
.fav-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.fav-card:hover .fav-img { transform: scale(1.06); }
.fav-img-placeholder {
  width: 100%; height: 130px;
  background: linear-gradient(135deg, #f7f3ef, #ede8e2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.fav-star {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.55);
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
}
.fav-name { padding: 10px 13px 4px; font-size: 0.85rem; font-weight: 700; }
.fav-price { padding: 0 13px 10px; font-size: 0.8rem; color: var(--primary); font-weight: 600; }

/* ─── Menu Sections ───────────────────────────────────────────────────────── */
.category-section { margin-bottom: 8px; }
.category-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 28px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.category-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── Item Cards ──────────────────────────────────────────────────────────── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.item-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  transition: transform 0.2s, box-shadow 0.2s;
}
.item-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.1); }
.item-img-wrap { width: 110px; flex-shrink: 0; overflow: hidden; }
.item-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.item-card:hover .item-img { transform: scale(1.06); }
.item-img-placeholder {
  width: 110px; min-height: 120px; height: 100%;
  background: linear-gradient(135deg, #f7f3ef, #ede8e2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.item-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.item-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 5px; line-height: 1.3; }
.item-desc {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.item-price { font-weight: 800; color: var(--text); font-size: 0.95rem; }
.add-btn {
  width: 30px; height: 30px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-weight: 300;
  transition: background 0.15s, transform 0.15s;
}
.add-btn:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ─── Modifier Modal ──────────────────────────────────────────────────────── */
#modifier-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(2px); z-index: 200;
}
#modifier-modal {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white); border-radius: 20px 20px 0 0;
  padding: 0 0 32px; z-index: 201;
  max-height: 85vh; overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}
@media (min-width: 600px) {
  #modifier-modal {
    top: 50%; bottom: auto; left: 50%; right: auto;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 520px;
    border-radius: 20px; max-height: 88vh;
  }
}
.modal-img-wrap {
  width: 100%; height: 180px; overflow: hidden;
  border-radius: 20px 20px 0 0; flex-shrink: 0; position: relative;
}
.modal-img-wrap.no-photo {
  height: 90px;
}
.modal-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.modal-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #f5ede8 0%, #ede0d8 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 8px; padding: 20px 24px 0;
}
.modal-header h2 { font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.close-btn {
  background: rgba(0,0,0,0.08); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 0.85rem; color: #555; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.close-btn:hover { background: #eee; }
.item-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; padding: 0 24px; }
.modifier-group { margin-bottom: 20px; padding: 0 24px; }
.modifier-group-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.modifier-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  cursor: pointer; margin-bottom: 8px; transition: border-color 0.15s, background 0.15s;
}
.modifier-option:hover { border-color: var(--primary); }
.modifier-option.selected { border-color: var(--primary); background: #fdf3ef; }
.modifier-option input { display: none; }
.mod-option-name { font-size: 0.88rem; }
.mod-option-price { font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.modifier-footer {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; padding: 16px 24px 0; border-top: 1px solid var(--border);
}
.qty-control {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.qty-control button {
  width: 36px; height: 40px; border: none; background: transparent;
  font-size: 1.2rem; color: var(--text); transition: background 0.15s;
}
.qty-control button:hover { background: var(--bg); }
.qty-control span {
  width: 36px; text-align: center; font-weight: 700; font-size: 0.95rem;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border); line-height: 40px;
}
.add-to-cart-btn {
  flex: 1; background: var(--primary); color: #fff; border: none;
  border-radius: 10px; padding: 12px 20px; font-size: 0.95rem; font-weight: 700;
  transition: background 0.15s;
}
.add-to-cart-btn:hover { background: var(--primary-dark); }

/* ─── Info Tab ────────────────────────────────────────────────────────────── */
.info-page { max-width: 900px; margin: 0 auto; padding: 28px 24px; }
.info-map-wrap { margin-bottom: 24px; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.info-card { background: var(--white); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); }
.info-card-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.info-fee-row { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.info-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0; }
.info-sep { color: var(--border); }
.info-hours-row { display: flex; justify-content: space-between; font-size: 0.87rem; padding: 4px 0; border-bottom: 1px solid var(--border); }
.info-hours-row:last-child { border-bottom: none; }
.info-hours-time { font-weight: 600; }
.info-pm-row { font-size: 0.87rem; padding: 3px 0; color: var(--text-muted); }
.info-contact-row { font-size: 0.87rem; padding: 4px 0; }
.info-contact-row a { color: var(--primary); }

/* ─── Checkout ────────────────────────────────────────────────────────────── */
.checkout-page {
  max-width: 1100px; margin: 0 auto; padding: 28px 24px;
  display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start;
}
.checkout-section {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; border: 1px solid var(--border);
}
.cs-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: #555; }
.form-group input, .form-group select {
  padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 0.9rem; font-family: inherit; outline: none; transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--primary); }
.co-textarea {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border);
  border-radius: 9px; font-size: 0.9rem; font-family: inherit; resize: none; outline: none;
}
.co-textarea:focus { border-color: var(--primary); }
.order-type-btns { display: flex; gap: 10px; }
.ot-btn {
  flex: 1; padding: 10px; border: 1.5px solid var(--border);
  background: transparent; border-radius: 9px; font-size: 0.88rem; font-weight: 600;
  transition: all 0.15s; color: #555;
}
.ot-btn.active { border-color: var(--primary); background: #fdf3ef; color: var(--primary); }
.time-btn {
  width: 100%; padding: 11px 16px; border: 1.5px solid var(--border);
  background: var(--bg); border-radius: 9px; font-size: 0.88rem; text-align: left; color: var(--text);
}
.tip-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tip-btn {
  flex: 1; min-width: 60px; padding: 8px 10px; border: 1.5px solid var(--border);
  background: transparent; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  color: #555; transition: all 0.15s;
}
.tip-btn.active { border-color: var(--primary); background: #fdf3ef; color: var(--primary); }
.tip-amount-label { font-size: 0.82rem; color: var(--primary); font-weight: 600; }
#card-container { padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 9px; background: var(--white); }
#payment-status { margin-top: 10px; font-size: 0.85rem; }
#payment-status.error { color: #dc2626; }
.checkout-right {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px; position: sticky; top: calc(var(--header-h) + 16px);
}
.co-summary-header { font-weight: 800; font-size: 1rem; margin-bottom: 16px; }
.co-empty { text-align: center; padding: 20px 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.8; }
.co-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.co-item-left { display: flex; align-items: flex-start; gap: 12px; }
.co-qty-ctrl { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.co-qty-ctrl button { width: 28px; height: 28px; border: none; background: transparent; font-size: 1rem; color: var(--text-muted); }
.co-qty-ctrl button:hover { background: var(--bg); }
.co-qty-ctrl span { width: 28px; text-align: center; font-size: 0.85rem; font-weight: 600; border-left: 1px solid var(--border); border-right: 1px solid var(--border); line-height: 28px; }
.co-item-name { font-weight: 600; font-size: 0.88rem; }
.co-item-mods { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.co-item-price { font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.co-totals { margin-top: 14px; }
.co-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 6px 0; color: var(--text-muted); }
.co-total-row { font-weight: 800; font-size: 1rem; color: var(--text); border-top: 2px solid var(--border); padding-top: 10px; margin-top: 4px; }
.pay-btn {
  width: 100%; margin-top: 16px; padding: 14px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 700; transition: background 0.15s;
}
.pay-btn:hover { background: var(--primary-dark); }
.pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.co-legal { font-size: 0.72rem; color: var(--text-muted); margin-top: 10px; text-align: center; line-height: 1.5; }

/* ─── Toast ───────────────────────────────────────────────────────────────── */
.cart-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1a1a1a; color: #fff;
  padding: 12px 22px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 600;
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
  pointer-events: none; z-index: 300;
  white-space: nowrap; max-width: 90vw;
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Customer Auth Modal ──────────────────────────────────────────────────── */
#auth-modal-overlay { display: flex; }
#auth-modal-overlay[style*="none"] { display: none !important; }
.auth-modal-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
  animation: authModalIn .18s ease;
}
@keyframes authModalIn {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.auth-email-field {
  width: 100%; padding: 13px 16px;
  border: 2px solid #e5e7eb; border-radius: 10px;
  font-size: 16px; margin-bottom: 8px;
  box-sizing: border-box; outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.auth-email-field:focus { border-color: var(--primary); }
.auth-primary-btn {
  width: 100%; padding: 14px;
  background: var(--primary); color: #fff;
  border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; margin-bottom: 10px;
  font-family: inherit; transition: opacity .15s;
}
.auth-primary-btn:hover { opacity: .9; }
.auth-primary-btn:disabled { opacity: .6; cursor: not-allowed; }
.auth-guest-btn {
  width: 100%; padding: 12px;
  background: none; border: 2px solid #e5e7eb;
  border-radius: 10px; font-size: 14px;
  color: #6b7280; cursor: pointer;
  font-family: inherit; transition: border-color .15s, color .15s;
}
.auth-guest-btn:hover { border-color: #9ca3af; color: #374151; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--white); border-top: 1px solid var(--border);
  text-align: center; padding: 18px 24px;
  font-size: 0.78rem; color: var(--text-muted); margin-top: 40px;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .checkout-page { grid-template-columns: 1fr; }
  .checkout-right { position: static; }
}

@media (max-width: 640px) {
  /* Hero */
  .hero-banner { height: 190px; }
  .hero-text h1 { font-size: 1.3rem; }
  .hero-overlay { padding: 18px 16px; }
  .hero-logo-box { width: 50px; height: 50px; border-radius: 12px; }

  /* ── Sticky header — clean mobile layout ── */
  #site-header { --header-h: 90px; }

  /* Brand row: logo+name LEFT, icons RIGHT — no absolute centering */
  .brand-row {
    height: 52px;
    padding: 0 10px 0 14px;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
  }
  .brand-center {
    position: static;
    transform: none;
    pointer-events: all;
    flex: 1;
    justify-content: flex-start;
    min-width: 0;
  }
  #client-logo {
    height: 28px;
    max-width: 72px;
    flex-shrink: 0;
  }
  #client-name-short {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }
  /* Hide contact info — JS sets inline style so need !important */
  .brand-contact { display: none !important; }

  /* Tab icons — compact, right-aligned */
  .tab-icons { gap: 2px; margin-left: 8px; flex-shrink: 0; }
  .tab-icon { width: 44px; height: 40px; border-radius: 8px; }
  .tab-icon svg { width: 18px; height: 18px; }
  .tab-label { font-size: 0.55rem; }

  /* Category row */
  .cat-row { height: 40px; }
  #category-nav { padding: 0 10px; gap: 6px; }
  .cat-chip { padding: 5px 12px; font-size: 0.76rem; border-radius: 16px; }

  /* Menu content */
  .promos-scroll { padding: 2px 14px 4px; }
  #view-menu > main { padding: 16px 14px 100px; }
  .items-grid { grid-template-columns: 1fr; }

  /* Fan favorites */
  .fav-card { width: 148px; }
  .fav-img-wrap { height: 100px; }

  /* Checkout */
  .form-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }

  /* Dashboard responsive */
  #dashboard-login { padding: 24px 16px !important; }
  #dashboard-login > div:first-child { font-size: 36px !important; margin-bottom: 12px !important; }
  #dashboard-login h2 { font-size: 20px !important; margin-bottom: 6px !important; }
  #dashboard-login p { font-size: 13px !important; margin-bottom: 16px !important; }
  #dashboard-login > div:last-child { max-width: none !important; padding: 16px !important; }
  #dashboard-login input { font-size: 14px !important; padding: 8px 10px !important; }
  #dashboard-login button { font-size: 13px !important; padding: 8px !important; }
  #dashboard-content { padding: 16px !important; }
  #dashboard-content > div { padding: 0 !important; }
  #dashboard-content h2 { font-size: 18px !important; }
  #dashboard-content > div > div:first-child { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; margin-bottom: 16px !important; }
  #dashboard-content > div > div:first-child button { padding: 6px 12px !important; font-size: 12px !important; }
}
