@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #241a14;
  --paper: #fbf5ee;
  --muted: #7a6a5c;
  --line: #e8ddd0;
  --accent: #b3461f;
  --gold: #c9822a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3, .brand { font-family: 'Fraunces', serif; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; border-bottom: 1px solid var(--line);
  background: var(--paper); position: sticky; top: 0; z-index: 20;
}
.brand { font-size: 1.4rem; font-weight: 700; }
.nav-links { display: flex; gap: 26px; font-size: 0.9rem; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform 0.15s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 16px; }
.cart-link { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.cart-badge { background: var(--accent); color: #fff; font-size: 0.7rem; padding: 1px 7px; border-radius: 20px; }

.menu-toggle {
  display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  font-size: 1.15rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 4px; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 12px 24px 18px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .menu-toggle { display: flex; }
}

@media (min-width: 1024px) {
  .site-header { padding: 20px 48px; }
  .container { max-width: 1200px; }
}

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-title { font-size: 1.8rem; padding: 32px 0 8px; }
.page-subtitle { color: var(--muted); font-size: 0.9rem; padding-bottom: 24px; }
.section-title { font-size: 1.3rem; padding: 40px 0 18px; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 24px; }
.filter-chip { border: 1px solid var(--line); background: #fff; padding: 7px 16px; border-radius: 30px; font-size: 0.82rem; cursor: pointer; }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Menu grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 16px; padding-bottom: 60px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform 0.15s ease; }
.product-card:hover { transform: translateY(-3px); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--line); }
.product-card-body { padding: 12px 14px 16px; }
.product-card-category { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.product-card-name { font-size: 0.98rem; margin: 4px 0 6px; }
.product-card-price { font-weight: 600; color: var(--accent); }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }

/* Meal detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px 0 60px; }
@media (max-width: 720px) { .product-detail { grid-template-columns: 1fr; gap: 20px; } }
.product-detail img { width: 100%; border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; background: var(--line); }
.product-detail-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; }
.product-detail h1 { font-size: 1.9rem; margin: 8px 0 10px; }
.product-detail-price { font-size: 1.3rem; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.product-detail-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }

.option-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; display: block; }
.addon-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.addon-row label { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; cursor: pointer; }
.addon-price { font-size: 0.85rem; color: var(--muted); }

.qty-row { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.qty-btn { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 4px; font-size: 1rem; cursor: pointer; }
.qty-value { font-size: 1rem; min-width: 20px; text-align: center; }

.btn-primary { background: var(--ink); color: #fff; border: none; padding: 14px 28px; border-radius: 4px; font-size: 0.92rem; cursor: pointer; width: 100%; }
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; }
.btn-primary:hover:not(:disabled) { background: var(--accent); }

.add-confirm { margin-top: 12px; font-size: 0.85rem; color: var(--accent); display: none; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; text-align: center; font-size: 0.78rem; color: var(--muted); }
