:root {
  --orange: #ff5722;
  --orange-dark: #e64a19;
  --bg: #fff5ef;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --content-width: clamp(1100px, 80vw, 1800px);
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  text-align: center;
  padding: 0;
}
.hero-banner {
  display: block;
  width: 100%;
  max-width: var(--content-width);
  height: auto;
  margin: 0 auto;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* --- Menu toolbar: search + category chips --- */
.menu-toolbar {
  max-width: var(--content-width);
  margin: 20px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.search-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  margin-bottom: 14px;
}
.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.chip {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #f0d9cc;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.chip.active, .chip:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.no-results { text-align: center; color: var(--muted); padding: 30px 0; }
.no-results.hidden { display: none; }
.menu.hidden { display: none; }
.menu-item.hidden { display: none; }

main { max-width: var(--content-width); margin: 0 auto; padding: 40px 20px; }

h2 {
  color: var(--orange-dark);
  margin-bottom: 16px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
  padding-bottom: 4px;
}

.about { margin-bottom: 40px; }
.about p { max-width: 760px; color: var(--muted); }

.menu { margin-bottom: 40px; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.menu-item {
  background: #fff;
  border: 1px solid #f0d9cc;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.menu-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.menu-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fde9dd;
  font-size: 2.2rem;
}
.menu-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.menu-item .desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; min-height: 36px; }
.menu-item .price { font-weight: bold; color: var(--orange-dark); font-size: 1.05rem; }

.contact { color: var(--muted); }

footer {
  background: #2b2b2b;
  color: #eee;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.9rem;
}
footer p { margin: 4px 0; }
footer .admin-link a { color: #999; font-size: 0.8rem; text-decoration: none; }
footer .admin-link a:hover { color: #fff; }

/* --- Admin pages --- */
.admin-body { background: #f3f3f3; }

.login-box {
  max-width: 380px;
  margin: 80px auto;
  background: #fff;
  padding: 36px 30px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: center;
}
.login-box .logo { font-size: 36px; margin-bottom: 8px; }
.login-box h1 { font-size: 1.3rem; margin-bottom: 20px; color: var(--orange-dark); }
.login-box form { text-align: left; }
.login-box label { display: block; margin: 12px 0 4px; font-size: 0.88rem; color: var(--muted); }
.login-box input {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem;
}
.login-box button {
  width: 100%; margin-top: 20px; padding: 11px; background: var(--orange); color: #fff;
  border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.95rem;
}
.login-box button:hover { background: var(--orange-dark); }
.login-box .error { color: #c62828; font-size: 0.88rem; margin-bottom: 10px; }
.login-box .back-link { margin-top: 16px; font-size: 0.85rem; }
.login-box .back-link a { color: var(--muted); }

.admin-header {
  background: #2b2b2b;
  color: #fff;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-header h1 { font-size: 1.1rem; }
.admin-header span { margin-right: 12px; font-size: 0.9rem; }
.btn-logout {
  background: transparent; color: #fff; border: 1px solid #666; padding: 6px 14px;
  border-radius: 6px; cursor: pointer;
}

.admin-main { max-width: 1000px; margin: 30px auto; padding: 0 20px; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 20px; }
.btn-primary, .btn-secondary {
  padding: 10px 18px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; font-weight: 600;
  display: inline-block; border: none; cursor: pointer;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: #e0e0e0; color: #333; }

.admin-table {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.admin-table th { background: #fafafa; color: var(--muted); }
.thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.thumb.placeholder {
  display: inline-flex; align-items: center; justify-content: center; background: #fde9dd; font-size: 1.3rem;
}
.actions a { color: var(--orange-dark); margin-right: 10px; text-decoration: none; font-size: 0.85rem; }
.btn-delete { background: none; border: none; color: #c62828; cursor: pointer; font-size: 0.85rem; padding: 0; }

.product-form { background: #fff; padding: 24px; border-radius: 10px; max-width: 520px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.product-form label { display: block; margin: 14px 0 4px; font-size: 0.88rem; color: var(--muted); }
.product-form input, .product-form textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.92rem; font-family: inherit;
}
.form-actions { margin-top: 20px; display: flex; gap: 10px; }
.error { color: #c62828; margin-bottom: 10px; }
.success { color: #2e7d32; margin-bottom: 10px; background: #e8f5e9; padding: 10px 14px; border-radius: 8px; }

/* --- Cart / ordering --- */
.order-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.qty-input {
  width: 55px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
}
.btn-add-cart {
  flex: 1;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-add-cart:hover { background: var(--orange-dark); }

.cart-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--orange-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 50;
}

.cart-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}
.cart-panel.hidden { display: none; }
.cart-panel-inner {
  background: #fff;
  width: 100%;
  max-width: 420px;
  height: 100%;
  padding: 26px 22px;
  overflow-y: auto;
  position: relative;
}
.cart-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 1.6rem; cursor: pointer; color: var(--muted);
}
.cart-panel-inner h2 { color: var(--orange-dark); margin-bottom: 16px; border: none; }
.cart-empty { color: var(--muted); font-size: 0.9rem; }

.cart-row {
  display: grid;
  grid-template-columns: 1fr 55px 90px 24px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.86rem;
}
.cart-row-qty { width: 50px; padding: 4px; border: 1px solid #ddd; border-radius: 4px; text-align: center; }
.cart-row-remove { background: none; border: none; color: #c62828; font-size: 1.1rem; cursor: pointer; }

#checkout-form label { display: block; margin: 12px 0 4px; font-size: 0.85rem; color: var(--muted); }
#checkout-form input, #checkout-form textarea {
  width: 100%; padding: 9px 10px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit;
}
.cart-total-row { margin: 16px 0; font-size: 1.05rem; }
#checkout-btn { width: 100%; margin-top: 4px; }
#checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Order confirmation --- */
.order-summary { max-width: 650px; margin: 0 auto; background: #fff; padding: 26px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.order-summary h2 { border: none; }
.status-badge { background: #fde9dd; color: var(--orange-dark); padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.order-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.order-table th, .order-table td { padding: 8px 6px; border-bottom: 1px solid #eee; font-size: 0.88rem; text-align: left; }
.order-table tfoot td { border-top: 2px solid #ddd; border-bottom: none; }
.order-summary .note { color: var(--muted); font-size: 0.85rem; margin: 14px 0; }

/* --- Admin orders --- */
.order-card { background: #fff; border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.order-date { color: var(--muted); font-size: 0.78rem; }
.order-notes { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; font-style: italic; }
.order-total { text-align: right; margin-top: 8px; }
.order-card-head select { padding: 6px 10px; border-radius: 6px; border: 1px solid #ddd; }

