/* Mobile-first commerce theme: dark green / charcoal */
:root {
  --bg: #101613;
  --surface: #182019;
  --surface-2: #1f2a21;
  --border: #2c3a2e;
  --text: #eef3ec;
  --muted: #9db09a;
  --green: #3fa34d;
  --green-dark: #2e7d3a;
  --gold: #d9a441;
  --red: #c0392b;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--green); }
.container { max-width: 960px; margin: 0 auto; padding: 1rem; }
.center { text-align: center; }
.tiny { font-size: 0.8rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9rem; }
.error {
  background: #3a1d18; border: 1px solid var(--red); color: #ffb4a6;
  padding: 0.75rem; border-radius: var(--radius);
}
.notice {
  background: #2a2413; border: 1px solid var(--gold); color: #f0d49a;
  padding: 0.75rem; border-radius: var(--radius); margin-bottom: 1rem;
}
.announcement {
  background: var(--green-dark); color: #fff; text-align: center;
  padding: 0.5rem 1rem; font-size: 0.9rem;
}
.promo-banner {
  background: linear-gradient(90deg, #3a2c07, #6b5210, #3a2c07);
  border: 1px solid var(--gold); color: #ffe9b0; text-align: center;
  padding: 0.8rem 1rem; font-size: 1.05rem; border-radius: var(--radius);
  margin-bottom: 1rem;
}
.test-banner {
  background: #3a2b12; border-bottom: 2px solid var(--gold); color: #ffd98a;
  padding: 0.75rem 1rem; font-size: 0.9rem; text-align: center;
}
.pay-banner {
  background: #3a2b12; border: 1px solid var(--gold); color: #ffd98a;
  padding: 0.75rem; border-radius: var(--radius); margin: 1rem 0;
}
/* Header */
.site-header, .admin-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.75rem 1rem; background: var(--surface);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10;
}
.brand { color: var(--text); font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.site-header nav, .admin-header nav { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.site-header nav a, .admin-header nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.certi5ied-link { color: var(--gold) !important; font-weight: 700; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.95rem; }
/* Hero */
.hero { text-align: center; padding: 1.5rem 0; }
.hero h1 { margin: 0.25rem 0; }
/* Filters */
.filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filters select, .filters input { flex: 1 1 120px; }
/* Product grid */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem; text-decoration: none; color: var(--text); display: block;
}
.product-card h3 { margin: 0.25rem 0; font-size: 1rem; }
.product-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green); }
.product-weight { font-size: 0.85rem; color: var(--muted); }
.product-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.price { font-weight: 800; color: var(--gold); font-size: 1.05rem; }
.stock { font-size: 0.8rem; color: var(--green); }
.stock.out { color: var(--red); }
.stock.low { color: #ff8c42; font-weight: 700; }
/* Cart reassurance strip */
.reassure-strip {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 1rem; margin: 0 0 1rem; font-size: 0.9rem;
}
.reassure-strip span { white-space: nowrap; }
/* Discount code form */
.discount-form { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.discount-form input { flex: 1; padding: 0.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-transform: uppercase; }
.discount-applied { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; font-size: 0.9rem; }
.discount-applied button { background: none; border: none; color: var(--red); cursor: pointer; font-size: 0.85rem; text-decoration: underline; }
.total-row.discount strong { color: var(--green); }
/* Product detail */
.product-detail { max-width: 640px; margin: 0 auto; }
.product-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.5rem; display: block; }
.product-img-lg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin: 0.5rem 0 1rem; display: block; }
.back { display: inline-block; margin-bottom: 0.5rem; }
.detail-price { font-size: 1.5rem; color: var(--gold); font-weight: 800; }
.coa { font-weight: 700; }
.add-form { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 1rem; }
/* Forms */
label { display: block; margin: 0.75rem 0; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"],
input[type="time"], input[type="url"], input[type="password"], input[type="search"],
select, textarea {
  width: 100%; padding: 0.65rem; margin-top: 0.25rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 1rem;
}
.check { display: flex; align-items: center; gap: 0.5rem; }
.check input { width: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hint { font-size: 0.85rem; color: var(--muted); margin-top: -0.4rem; }
.btn {
  display: inline-block; padding: 0.65rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  cursor: pointer; text-decoration: none; font-size: 1rem; text-align: center;
}
.btn-primary { background: var(--green); border-color: var(--green-dark); color: #fff; font-weight: 700; }
.btn-danger { border-color: var(--red); color: #ffb4a6; }
.btn-small { padding: 0.35rem 0.6rem; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; margin-top: 1rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 100px; }
/* Cart */
.cart-line {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem; margin-bottom: 0.75rem;
}
@media (min-width: 600px) { .cart-line { grid-template-columns: 2fr 2fr 1fr; align-items: center; } }
.cart-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cart-actions form { display: flex; gap: 0.35rem; align-items: center; }
.cart-actions input[type="number"] { width: 64px; margin-top: 0; }
.line-total { font-weight: 800; color: var(--gold); }
.totals { margin-top: 1rem; }
.total-row { display: flex; justify-content: space-between; padding: 0.35rem 0; }
.total-row.grand { font-size: 1.2rem; border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.75rem; }
/* Checkout */
.checkout-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .checkout-grid { grid-template-columns: 2fr 1fr; } }
.order-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; height: fit-content; }
.summary-line { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.95rem; }
.pay-note { background: var(--surface); border: 1px dashed var(--border); padding: 0.75rem; border-radius: var(--radius); }
/* Confirmation */
.confirm { max-width: 640px; margin: 0 auto; }
.order-num { font-size: 1.2rem; }
.confirm-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
/* Timeline */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; }
.timeline li { position: relative; padding: 0.6rem 0 0.6rem 2rem; color: var(--muted); }
.timeline .dot {
  position: absolute; left: 0.4rem; top: 0.9rem; width: 0.8rem; height: 0.8rem;
  border-radius: 50%; background: var(--border);
}
.timeline li.done { color: var(--text); font-weight: 700; }
.timeline li.done .dot { background: var(--green); }
.track-form { max-width: 420px; margin: 0 auto; }
/* Age gate */
.age-gate { max-width: 480px; margin: 2rem auto; text-align: center; }
.age-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-top: 1rem; }
.age-card form { text-align: left; }
/* Admin */
body.admin { background: #0d1110; }
.page-head { display: flex; justify-content: space-between; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1rem 0; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(5, 1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; text-decoration: none; color: var(--text); }
.stat-num { font-size: 1.8rem; font-weight: 800; }
.stat-label { font-size: 0.85rem; color: var(--muted); }
.traffic-bar { flex: 1 1 8rem; min-width: 6rem; height: 0.6rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.traffic-bar > span { display: block; height: 100%; background: var(--gold, #d4a017); border-radius: 999px; }
.order-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem; margin-bottom: 0.6rem;
}
.badge { font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.status-new { border-color: var(--gold); color: var(--gold); }
.status-preparing { border-color: #6aa8ff; color: #6aa8ff; }
.status-out_for_delivery { border-color: #c77dff; color: #c77dff; }
.status-delivered { border-color: var(--green); color: var(--green); }
.status-cancelled { border-color: var(--red); color: #ff9d8f; }
.pay-test_mode_pending { border-color: var(--gold); color: #ffd98a; }
.pay-payment_pending_manual { border-color: var(--gold); color: #ffd98a; }
.pay-paid { border-color: var(--green); color: var(--green); }
.pay-methods { display: grid; gap: 0.6rem; margin-bottom: 1rem; }
.pay-option { display: flex; gap: 0.6rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; cursor: pointer; }
.pay-option input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip { padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 0.9rem; }
.chip.active { background: var(--green-dark); border-color: var(--green); }
.detail-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
/* Footer */
.site-footer {
  margin-top: 3rem; padding: 1.5rem 1rem; border-top: 1px solid var(--border);
  background: var(--surface); text-align: center; font-size: 0.9rem; color: var(--muted);
}
.site-footer a { color: var(--gold); }
.tagline { color: var(--muted); }

/* Customer chat widget */
#chat-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1000;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--gold); border: 2px solid #8a6524; font-size: 1.5rem;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
#chat-panel {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1000;
  width: min(22rem, calc(100vw - 2rem)); height: 28rem; max-height: 70vh;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.55);
}
#chat-panel[hidden] { display: none; }
#chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.8rem; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
#chat-close { background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
#chat-log { flex: 1; overflow-y: auto; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cmsg { display: flex; }
.cmsg-cust { justify-content: flex-end; }
.cmsg-admin { justify-content: flex-start; }
.cmsg-bubble {
  max-width: 85%; padding: 0.5rem 0.7rem; border-radius: var(--radius);
  white-space: pre-wrap; word-break: break-word; font-size: 0.92rem;
}
.cmsg-cust .cmsg-bubble { background: var(--green-dark); color: #fff; }
.cmsg-admin .cmsg-bubble { background: var(--surface-2); border: 1px solid var(--border); }
#chat-form { padding: 0.6rem 0.75rem; border-top: 1px solid var(--border); }
#chat-name {
  width: 100%; margin-bottom: 0.5rem; padding: 0.45rem 0.6rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text);
}
#chat-input-row { display: flex; gap: 0.5rem; }
#chat-text {
  flex: 1; padding: 0.45rem 0.6rem; resize: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-family: inherit;
}
#chat-hint { margin: 0.4rem 0 0; }

/* Admin messages inbox */
.nav-badge {
  display: inline-block; background: var(--gold); color: #201503;
  font-size: 0.72rem; font-weight: 700; border-radius: 999px;
  padding: 0.05rem 0.45rem; margin-left: 0.25rem; vertical-align: middle;
}
.msg-list { display: flex; flex-direction: column; gap: 0.6rem; }
.msg-row {
  display: block; padding: 0.75rem 0.9rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
}
.msg-row-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.25rem; }
.msg-preview { color: var(--muted); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-unread { border-color: var(--gold); }
.chat-thread { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-admin { align-self: flex-end; align-items: flex-end; }
.chat-customer { align-self: flex-start; }
.chat-body {
  padding: 0.55rem 0.8rem; border-radius: var(--radius);
  white-space: pre-wrap; word-break: break-word;
}
.chat-admin .chat-body { background: var(--green-dark); color: #fff; }
.chat-customer .chat-body { background: var(--surface-2); border: 1px solid var(--border); }
.chat-meta { margin-top: 0.2rem; }
.chat-reply textarea {
  width: 100%; padding: 0.6rem; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; font-family: inherit; margin: 0.4rem 0 0.6rem;
}

/* Customer reviews */
.reviews-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.reviews-section h2 { text-align: center; margin-bottom: 0.5rem; }
.review-summary { text-align: center; color: var(--muted); margin-bottom: 1rem; }
.stars { color: var(--gold); letter-spacing: 0.1rem; }
.stars.big { font-size: 1.4rem; }
.review-list { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .review-list { grid-template-columns: 1fr 1fr; } }
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1rem;
}
.review-body { margin: 0.4rem 0; }
.review-name { color: var(--muted); font-size: 0.9rem; margin: 0; }
.review-form-wrap { margin-top: 1.25rem; text-align: center; }
.review-form-wrap summary { display: inline-block; cursor: pointer; }
.review-form {
  margin-top: 1rem; text-align: left; max-width: 520px; margin-left: auto; margin-right: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
}
.review-form label { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; }
.review-form input, .review-form select, .review-form textarea {
  width: 100%; margin-top: 0.3rem; padding: 0.55rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; font-family: inherit;
}
.review-admin {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 0.75rem;
}
.review-admin.pending { border-color: var(--gold); }
.review-admin-head { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.badge { font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.55rem; }
.badge.ok { background: var(--green-dark); color: #fff; }
.badge.warn { background: var(--gold); color: #201503; }
.review-admin-actions { margin-top: 0.5rem; display: flex; gap: 0.5rem; }
.small { font-size: 0.8rem; }

/* DJ booking page */
.dj-hero { text-align: center; margin: 1.5rem 0 1rem; }
.dj-kicker { color: var(--gold); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
.dj-hero h1 { margin: 0.4rem 0; font-size: 2.2rem; }
.dj-sub { color: var(--muted); max-width: 560px; margin: 0.5rem auto; }
.dj-rate { font-weight: 700; color: var(--gold); }
.dj-cal { max-width: 420px; margin: 0.5rem 0 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; }
.dj-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.dj-cal-head button { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 1.2rem; width: 2.2rem; height: 2.2rem; cursor: pointer; }
.dj-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.dj-dow { text-align: center; font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.dj-day { aspect-ratio: 1; border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 8px; cursor: pointer; font-family: inherit; }
.dj-day:hover:not(:disabled) { border-color: var(--gold); }
.dj-day.is-selected { background: var(--gold); color: #201503; font-weight: 700; border-color: var(--gold); }
.dj-day.is-blocked { text-decoration: line-through; opacity: 0.35; cursor: not-allowed; }
.dj-date-label { font-weight: 700; color: var(--gold); }
