:root {
  --bg: #0d2818;
  --surface: #1a3a2a;
  --accent: #b8956a;
  --accent-light: #d4af84;
  --text: #ffffff;
  --text-muted: #a8a8a8;
  --radius: 8px;
}

* { 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-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 19;
}

#cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#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-payment-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.8rem;
}

#cart-close {
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0;
  margin-bottom: 0.6rem;
}

.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;
}

.payment-choice {
  border: 1px solid #4a3630;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.payment-choice legend {
  padding: 0 0.3rem;
  color: var(--accent-light);
  font-size: 0.85rem;
}

.payment-choice label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#cash-order-button {
  display: none;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  margin-top: 0.5rem;
}

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

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

.security-info {
  background: #2a3f2a;
  border-left: 4px solid #4caf50;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.security-info h3 {
  margin: 0 0 0.5rem 0;
  color: #81c784;
  font-size: 1rem;
}

.security-info p {
  margin: 0.3rem 0;
  color: var(--text);
}

.security-info strong { color: #81c784; }

.iban-label {
  display: block;
  font-weight: 600;
  color: #e07a2c;
  margin-bottom: 0.5rem;
  margin-top: 0.8rem;
}

.iban-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0.6rem 0;
  line-height: 1.4;
}

#iban {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 2px solid #e07a2c;
  background: #1b1210;
  color: var(--text);
  font-family: monospace;
  font-size: 0.9rem;
}

#iban:focus {
  outline: none;
  border-color: #f4a95e;
  box-shadow: 0 0 0 2px rgba(240, 170, 95, 0.2);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #2a1c18 0%, #1b1210 100%);
  border-bottom: 2px solid #e07a2c;
  margin-bottom: 2rem;
}

.hero-section h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  color: #f4a95e;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.1rem;
  color: #c9b8ae;
  margin: 0;
  font-style: italic;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  .hero-section h2 {
    font-size: 1.8rem;
  }
  .hero-tagline {
    font-size: 1rem;
  }
}
