:root {
  --bg: #1b1210;
  --surface: #2a1c18;
  --accent: #e07a2c;
  --accent-light: #f4a95e;
  --text: #f5ece4;
  --text-muted: #c9b8ae;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  gap: 0.75rem;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--accent-light);
}

.open-badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.open-badge.open { background: #2e7d32; color: white; }
.open-badge.closed { background: #6b6b6b; color: white; }

#cart-toggle {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}

.menu-group h2 {
  color: var(--accent-light);
  border-bottom: 1px solid #4a3630;
  padding-bottom: 0.4rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.menu-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-card-image {
  position: relative;
  height: 160px;
  background: #3a2a24;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-photo-label {
  display: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.menu-card-image.no-photo .no-photo-label {
  display: block;
}

.menu-card-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.menu-card-body h3 { margin: 0; }
.menu-card-body p { margin: 0; color: var(--text-muted); font-size: 0.9rem; flex: 1; }

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-card-price { font-weight: 700; color: var(--accent-light); }

button {
  font-family: inherit;
}

.menu-card-footer button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}

#cart-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: var(--surface);
  box-shadow: -4px 0 16px rgba(0,0,0,0.4);
  padding: 1.2rem;
  overflow-y: auto;
  transition: right 0.25s ease;
  z-index: 20;
}

#cart-panel.open { right: 0; }

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #4a3630;
  font-size: 0.9rem;
}

.cart-row-qty button {
  background: #4a3630;
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-row-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.cart-empty { color: var(--text-muted); }

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

#cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin: 0.6rem 0 1rem;
  font-size: 1.1rem;
  border-top: 1px solid #4a3630;
  padding-top: 0.5rem;
}

#checkout-notice {
  background: #4a3630;
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

#delivery-form {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#delivery-form input,
#delivery-form textarea {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #4a3630;
  background: #1b1210;
  color: var(--text);
  font-family: inherit;
}

.radius-confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

#delivery-radius-notice {
  font-size: 0.85rem;
  color: var(--accent-light);
}

#paypal-button-container {
  display: none;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a { color: var(--accent-light); }
