@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #F6F1E7;
  --card: #FFFFFF;
  --text: #2A2420;
  --text-dim: #786f63;
  --accent: #96382A;
  --accent-soft: #F3E1DA;
  --line: rgba(42, 36, 32, 0.09);
  --shadow: rgba(80, 65, 40, 0.10);
  --radius: 20px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: 110px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--bg);
  padding: 18px 18px 8px;
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.brand-mark { flex: 1; min-width: 0; }

.brand-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.02;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 2px 0 0;
}

.brand-name span { color: var(--accent); }

.brand-location {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-location svg { flex-shrink: 0; color: var(--accent); }

.cart-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  min-width: 78px;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cart-pill:active {
  transform: scale(0.95);
}

.cart-pill .cart-icon { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.cart-pill-text { display: flex; flex-direction: column; line-height: 1.1; }
.cart-count { font-weight: 700; font-size: 13px; color: var(--text); }
.cart-total { font-size: 11px; color: var(--text-dim); }

/* ---------- Diet Filters ---------- */
.diet-toggles {
  display: flex;
  gap: 12px;
  padding: 16px 4px 0px;
}

.diet-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diet-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.diet-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.5px solid;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}

.diet-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.diet-icon.veg { border-color: #3b8e46; }
.diet-icon.veg::after { background: #3b8e46; }

.diet-icon.non-veg { border-color: #b0432b; }
.diet-icon.non-veg::after { background: #b0432b; }

/* ---------- Category rail ---------- */
.category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 2px 4px;
  scrollbar-width: none;
}
.category-rail::-webkit-scrollbar { display: none; }

.category-chip {
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.category-chip.active, .category-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Menu body ---------- */
.menu-wrap {
  padding: 22px 18px 0;
  max-width: 720px;
  margin: 0 auto;
}

.category-section {
  margin-bottom: 40px;
  scroll-margin-top: 140px;
}

.category-heading { margin-bottom: 16px; }

.category-heading .eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.category-heading h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--text);
  margin: 0;
  line-height: 1.15;
}

/* ---------- Featured photo cards (alternating) ---------- */
.item-list { display: flex; flex-direction: column; gap: 14px; }

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px var(--shadow);
  display: flex;
  overflow: hidden;
  min-height: 128px;
}

.feature-card.reverse { flex-direction: row-reverse; }

.feature-card .feature-img {
  width: 128px;
  flex-shrink: 0;
  position: relative;
}

.feature-card .feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card .feature-body {
  flex: 1;
  min-width: 0;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.feature-card .feature-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  line-height: 1.2;
}

.feature-card .feature-tag {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.feature-card .feature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 10px;
}

.feature-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.feature-price::before { content: '\20B9'; margin-right: 1px; }

/* ---------- Plain rows for the long tail ---------- */
.plain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.plain-row:last-child { border-bottom: none; }

.plain-row .row-info { min-width: 0; }

.plain-row .row-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.plain-row .row-price {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}
.plain-row .row-price::before { content: '\20B9'; margin-right: 1px; }

/* ---------- Shared Add / qty controls ---------- */
.add-btn {
  flex-shrink: 0;
  background: var(--accent-soft);
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 68px;
}

.feature-footer .add-btn {
  background: var(--accent);
  color: #fff;
}

.add-btn.in-cart { background: var(--accent); color: #fff; }
.add-btn:active { transform: scale(0.94); }

.qty-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.qty-value { font-weight: 700; font-size: 13px; min-width: 14px; text-align: center; }

/* ---------- Mascot ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mascot-wrap {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  animation: float 4s ease-in-out infinite;
}

.mascot-bubble {
  position: absolute;
  bottom: 66px;
  left: 4px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 600;
  max-width: 190px;
  box-shadow: 0 6px 16px var(--shadow);
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  transform-origin: bottom left;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: var(--text);
  border-bottom: 0;
}

.mascot-bubble.visible { opacity: 1; transform: translateY(0) scale(1); }

.mascot-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--card);
  border: 2.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px var(--shadow);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease-out;
}

.mascot-avatar:active { transform: scale(0.94); }

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) translateY(-5px); }
}
.mascot-avatar.bounce {
  animation: bounce 0.3s ease;
}

.sparkle {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  font-size: 20px;
  animation: sparkleFloat 1s forwards ease-out;
}
@keyframes sparkleFloat {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(1.5); }
}

/* ---------- WhatsApp CTA ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  background: #2fae5b;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.whatsapp-btn.visible { transform: translateY(0); opacity: 1; }
.whatsapp-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.whatsapp-btn:active { transform: scale(0.96); }

/* ---------- Footer ---------- */
.menu-footer-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  padding: 26px 20px 10px;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .feature-card .feature-img { width: 150px; }
}

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg);
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  padding: 26px 22px 28px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.25s ease;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}

.modal-overlay.visible .modal-card { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 4px;
  color: var(--text);
}

.modal-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.modal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  margin-top: 14px;
}

.modal-label:first-of-type { margin-top: 0; }

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
}

.modal-input:focus {
  border-color: var(--accent);
}

.modal-submit {
  width: 100%;
  margin-top: 22px;
  background: #2fae5b;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.modal-submit svg { width: 18px; height: 18px; flex-shrink: 0; }
.modal-submit:active { transform: scale(0.98); }

.modal-chip-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-chip {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.modal-error {
  font-size: 12px;
  color: #b0432b;
  margin: 8px 0 0;
  min-height: 14px;
}

.delivery-notice {
  font-size: 12.5px;
  line-height: 1.4;
  margin: 10px 0 2px;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
  font-weight: 500;
}

.delivery-notice.free {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
  display: block;
}

.delivery-notice.away {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #feefc3;
  display: block;
}

