:root {
  --red: #d01012;
  --dark: #1c1c1c;
  --bg: #f7f5f2;
  --card: #ffffff;
  --muted: #777;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
}
header {
  background: var(--red);
  color: #fff;
  padding: 24px 20px;
  text-align: center;
}
.logo { font-size: 2rem; font-weight: 800; letter-spacing: .5px; }
.site-logo {
  width: 76px; height: 76px; border-radius: 14px;
  object-fit: cover; margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.tagline { margin: 6px 0 0; opacity: .9; }
.controls {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 16px 20px; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.controls input, .controls select {
  padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px;
  font-size: .95rem; background: #fff;
}
.controls input { flex: 1; min-width: 180px; }
.count { color: var(--muted); font-size: .9rem; }
.grid {
  display: grid; gap: 16px; padding: 8px 20px 40px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  max-width: 1200px; margin: 0 auto;
}
.card {
  background: var(--card); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.12); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.card .thumb {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  background: #e9e5df; display: block;
}
.card .ph {
  width: 100%; aspect-ratio: 4/3; display: flex; align-items: center;
  justify-content: center; background: #e9e5df; font-size: 2.4rem;
}
.card .body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card h3 { margin: 0; font-size: 1rem; }
.card .meta { font-size: .82rem; color: var(--muted); }
.badge {
  align-self: flex-start; font-size: .72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; color: #fff;
}
.badge.D { background: #0a7d33; }
.badge.B { background: #b26a00; }
.badge.A { background: #0a7d33; } /* seasonal sets show as Display */
.badge.N { background: #888; }
footer { text-align: center; padding: 24px; color: var(--muted); font-size: .85rem; }
.modal-close {
  position: absolute; top: 10px; right: 12px; border: none;
  background: none; font-size: 1.2rem; cursor: pointer;
}
dialog {
  border: none; border-radius: 14px; padding: 24px; max-width: 420px;
  width: calc(100% - 40px); box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
dialog::backdrop { background: rgba(0,0,0,.45); }
#modal-body img { width: 100%; border-radius: 10px; }
#modal-body h2 { margin: 12px 0 4px; }
#modal-body .meta { color: var(--muted); margin: 2px 0; }

/* ---------- Booking / cart / admin ---------- */
.hidden { display: none !important; }
.hint { color: var(--muted); font-size: .85rem; }
.booking {
  max-width: 560px; margin: 24px auto 48px; padding: 0 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.booking h2 { margin: 18px 0 4px; color: var(--red); }
.booking label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
.booking input, .booking select {
  padding: 9px 10px; border: 1px solid #ccc; border-radius: 8px;
  font-size: .95rem; font-weight: 400; background: #fff;
}
.row { display: flex; gap: 12px; }
.row label, .row > * { flex: 1; }
button, .booking .totals button {
  background: var(--red); color: #fff; border: none; border-radius: 8px;
  padding: 10px 14px; font-size: .95rem; font-weight: 700; cursor: pointer;
}
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .6; cursor: default; }
.totals { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.totals #total-line { flex: 1; font-weight: 700; }
.cart-list { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 6px; }
.cart-list li {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #e5e0d8; border-radius: 8px; padding: 8px 10px;
}
.remove-set { padding: 4px 10px !important; background: #d33 !important; }
.add-cart {
  margin-top: 8px; padding: 7px 10px !important; font-size: .82rem !important;
  background: #0a7d33 !important;
}
.add-cart:disabled { background: #0a5a26 !important; opacity: .85; }
.booking-result {
  max-width: 560px; margin: 24px auto; padding: 20px; background: #fff;
  border: 2px solid #0a7d33; border-radius: 12px; text-align: center;
}
.booking-result h2 { color: #0a7d33; margin-top: 0; }
.cart-btn { position: relative; }
.badge-count {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 50%; background: #0a7d33; color: #fff; font-size: .72rem;
  display: flex; align-items: center; justify-content: center;
}
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .88rem; }
.admin-table th, .admin-table td { padding: 8px 10px; border-bottom: 1px solid #eee; text-align: left; }
.admin-table tr.pending td { background: #fff8e6; }
.admin-table tr.approved td { background: #eefaf0; }
.anchor-admin { margin-top: 36px; padding: 18px; background: #fff; border: 1px solid #e5e0da; border-radius: 14px; }
.anchor-admin h2 { margin: 0 0 6px; }
.anchor-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.anchor-row:hover { background: #faf6f1; }
.anchor-row input { width: 18px; height: 18px; cursor: pointer; }
.add-set-form { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.add-set-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
.add-set-form input, .add-set-form select {
  padding: 9px 10px; border: 1px solid #ccc; border-radius: 8px;
  font-size: .95rem; font-weight: 400; background: #fff;
}
.admin-table tr.declined td { background: #fdecec; color: #999; }
