:root {
  --ink: #241c17;
  --paper: #fffaf3;
  --rust: #b5482b;
  --rust-dark: #8f3720;
  --line: #eee0cd;
  --muted: #6f6155;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  padding-bottom: 70px;
}

h1, h2 { margin: 0 0 0.4em; }
p { margin: 0 0 1em; color: var(--muted); }

.section-inner { max-width: 900px; margin: 0 auto; padding: 0 24px; }

.demo-banner {
  background: var(--ink);
  color: white;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 12px;
}

.nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }

.hero {
  text-align: center;
  padding: 110px 24px 90px;
  background:
    linear-gradient(180deg, rgba(20,14,10,0.55), rgba(20,14,10,0.65)),
    url("https://images.unsplash.com/photo-1744561249162-c597c1670032?w=1600&q=75&auto=format&fit=crop") center/cover no-repeat;
  color: white;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: white; }
.hero p { max-width: 480px; margin: 0 auto 28px; font-size: 1.1rem; color: rgba(255,255,255,0.85); }

/* Category nav */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.category-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.pill {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.pill.active {
  background: var(--rust);
  border-color: var(--rust);
  color: white;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
}
.btn-primary { background: var(--rust); color: white; }
.btn-primary:hover { background: var(--rust-dark); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }

.menu { padding: 50px 0 60px; }
.category { scroll-margin-top: 76px; }
.category h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid var(--rust);
  display: inline-block;
  padding-bottom: 4px;
  margin-top: 56px;
}
.category:first-child h2 { margin-top: 0; }

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.item-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--line);
}
.item-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.item-info h3 { margin: 0 0 4px; font-size: 1.05rem; }
.item-info p { margin: 0; font-size: 0.88rem; min-height: 2.6em; }
.item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.item-price { font-weight: 700; }
.add-btn {
  background: var(--rust);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.add-btn:hover { background: var(--rust-dark); }

.hours { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 50px 0; }
.hours-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.footer { padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }

/* Cart */
.cart {
  display: none;
  position: fixed;
  bottom: 0;
  right: 24px;
  width: 320px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
  z-index: 20;
}
.cart.has-items { display: block; }
.cart-header {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}
.cart-body { padding: 0 18px 18px; border-top: 1px solid var(--line); max-height: 40vh; overflow-y: auto; }
.cart.collapsed .cart-body { display: none; }
.cart-empty { font-size: 0.9rem; margin-top: 12px; }
.cart-line { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cart-line button { background: none; border: none; color: var(--rust); cursor: pointer; font-size: 0.85rem; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; padding: 12px 0; }
.cart-checkout { width: 100%; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 30;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  border-radius: 14px;
  padding: 28px;
  width: 90%;
  max-width: 380px;
}
.modal-sub { font-size: 0.85rem; }
#checkout-form { display: grid; gap: 14px; }
#checkout-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; }
#checkout-form input[type="text"], #checkout-form input[type="tel"] {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
}
.fulfillment { display: flex; gap: 16px; font-weight: 500; }
.radio { flex-direction: row !important; align-items: center; gap: 6px !important; }

@media (max-width: 640px) {
  .hours-inner { grid-template-columns: 1fr; }
  .cart { right: 12px; left: 12px; width: auto; }
}
