:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #fef1e6;
  --ink: #2c384a;
  --paper: #faf6ef;
}
body {
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: 7rem;
}
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); }
.card { border-radius: 0.85rem; border: none; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); }
.btn { border-radius: 0.6rem; font-weight: 600; }

/* --- customer menu "real menu" chrome shared by hero / nav / cards / action bar --- */

.menu-hero { padding: 1.75rem 0 1.1rem; text-align: center; }
.menu-hero-icon { font-size: 1.9rem; margin-bottom: 0.2rem; }
.restaurant-logo {
  max-width: 9rem;
  max-height: 4.5rem;
  object-fit: contain;
  margin-bottom: 0.6rem;
}
.restaurant-name {
  font-family: 'Playfair Display', 'Manrope', serif;
  font-weight: 700;
  font-size: 1.65rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.table-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.menu-hero-divider {
  width: 3rem;
  height: 3px;
  margin: 1.1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.category-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.7rem 0.1rem;
  margin: 0 -0.1rem 1rem;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(44, 56, 74, 0.08);
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a.pill {
  flex: 0 0 auto;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(44, 56, 74, 0.1);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.83rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.category-nav a.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.category-section { scroll-margin-top: 4.2rem; }
.category-title {
  font-family: 'Playfair Display', 'Manrope', serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--ink);
}
.category-section:first-of-type .category-title { margin-top: 0.25rem; }

.dish-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dish-card.in-cart {
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.16);
}
.dish-card.stoplisted { opacity: 0.55; }

.dish-photo, .dish-photo-placeholder {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
}
.dish-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-light), #ffe1c2);
}

.dish-body { flex: 1; min-width: 0; }
.dish-top { display: flex; align-items: baseline; gap: 0.4rem; }
.dish-name { font-weight: 700; }
.dish-leader {
  flex: 1 1 auto;
  min-width: 0.6rem;
  border-bottom: 1px dotted rgba(44, 56, 74, 0.28);
  transform: translateY(-0.3em);
}
.dish-price { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.dish-desc { font-size: 0.82rem; color: #6b7686; margin-top: 0.2rem; }
.dish-ingredients { font-size: 0.78rem; color: #8a94a3; font-style: italic; margin-top: 0.1rem; }
.dish-footer { display: flex; align-items: center; justify-content: flex-end; margin-top: 0.5rem; }

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.15rem;
}
.qty-stepper button {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}
.qty-stepper button:active { transform: scale(0.92); }
.qty-value { min-width: 1.4rem; text-align: center; font-weight: 700; }

.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ffffff;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.09);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  z-index: 20;
}
.cooldown-banner {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  border-radius: 0.6rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
}
.utility-buttons { display: flex; gap: 0.5rem; }
.utility-buttons .btn { border-radius: 999px; font-size: 0.85rem; padding: 0.5rem 0.75rem; }
#place-order-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, margin-top 0.25s ease;
}
#place-order-wrap.show { max-height: 4rem; margin-top: 0.5rem; }
#place-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
}
#place-order .cart-count-badge {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  margin-right: 0.5rem;
}

#toast {
  position: fixed;
  top: 1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  border-radius: 0.75rem;
}
