:root {
  --navy: #1b2a6b;
  --navy-deep: #121c49;
  --red: #e61d2b;
  --gold: #ffc20e;
  --gold-deep: #f0ad00;
  --cream: #fff6ee;
  --ink: #221e1a;
  --muted: #6f675e;
  --line: #f0e4d8;
  --card: #fff;
  --shadow: 0 10px 30px rgba(27, 42, 107, .08);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 280px at 90% -40px, rgba(255, 194, 14, .35), transparent 60%),
    radial-gradient(700px 240px at -10% 80px, rgba(230, 29, 43, .14), transparent 55%),
    var(--cream);
  font-family: Outfit, "Trebuchet MS", sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 210px;
}
.brand img { background: #fff; border-radius: 50%; }
.brand strong, .brand em { display: block; font-style: normal; line-height: 1; }
.brand strong { font-family: Fraunces, Georgia, serif; font-size: 1.25rem; }
.brand em { color: var(--gold); font-weight: 800; letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; }
.tag { margin: 0 auto; color: rgba(255,255,255,.78); font-size: .92rem; }
.cart-link, .btn, .ghost, .plus, .chip {
  font: inherit;
  cursor: pointer;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px 8px 14px;
  font-weight: 700;
}
.cart-link b {
  background: var(--red);
  color: #fff;
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: .85rem;
}
main { width: min(1120px, calc(100% - 32px)); margin: 28px auto 80px; }
.hero {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
  margin-bottom: 22px;
}
.hero-copy, .hero-card, .panel, .product, .slip {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy { padding: 28px; }
.kicker {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: .72rem;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; letter-spacing: -.02em; margin: 10px 0; }
h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: .95; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 46ch; }
.hero-card {
  padding: 22px;
  background: linear-gradient(160deg, var(--red), #b10f1b 55%, var(--navy));
  color: #fff;
}
.hero-card ol { margin: 12px 0 0; padding-left: 18px; }
.hero-card li { margin: 8px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.chip, .search {
  border: 2px solid transparent;
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow);
}
.chip.active, .chip:hover { background: var(--navy); color: #fff; }
.search { min-width: 180px; outline: none; }
.search:focus { border-color: var(--gold); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.product { padding: 14px; display: flex; flex-direction: column; min-height: 280px; }
.art {
  height: 124px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f7f1ea;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.product h2 { font-family: Outfit, sans-serif; font-size: 1.05rem; margin: 0 0 4px; }
.meta { color: var(--muted); font-size: .86rem; min-height: 1.2em; }
.row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { color: var(--red); font-weight: 800; font-size: 1.25rem; }
.plus {
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep); font-size: 1.6rem; font-weight: 800;
}
.plus:hover { background: var(--gold-deep); }
.plus:disabled { background: #e7e0d8; color: #9a9288; cursor: not-allowed; }
.low { color: var(--red); font-weight: 700; }
.sold { position: absolute; inset: auto 10px 10px auto; background: var(--navy); color: #fff; border-radius: 999px; font-size: .75rem; padding: 4px 8px; font-weight: 700; }
.winners { margin: 0 0 12px; padding-left: 18px; }
.winners li { margin: 6px 0; }
.promo-band {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
}
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
}
.bid-card {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 18px;
  margin: 0 0 22px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #3a1020, var(--navy) 55%, #1b2a6b);
  color: #fff;
  box-shadow: var(--shadow);
}
.bid-card .lede, .bid-card .total { color: #fff; }
.bid-card-small {
  grid-template-columns: 92px 1fr;
  gap: 12px;
  margin: 22px 0 0;
  padding: 14px;
  max-width: 760px;
}
.bid-card-small h2 { margin: 0 0 4px; font-size: 1.15rem; }
.bid-card-small .lede, .bid-card-small .total { font-size: .92rem; }
.bid-card-small .bid-art, .bid-card-small .bid-art .photo { min-height: 92px; height: 92px; }
.bid-card-small label { margin: 8px 0 4px; }
.bid-art { background: rgba(255,255,255,.08); border-radius: 16px; min-height: 180px; display: grid; place-items: center; }
.bid-art .photo { height: 220px; }
@media (max-width: 760px) {
  .bid-card { grid-template-columns: 1fr; }
}
.photo { width: 100%; height: 124px; object-fit: contain; }
.thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; vertical-align: middle; margin-right: 8px; }
.theme-toggle {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 10px;
}
html[data-theme="dark"] {
  --cream: #12141c;
  --ink: #f6f1ea;
  --muted: #b7aea3;
  --line: #2c3144;
  --card: #1c2233;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(900px 280px at 90% -40px, rgba(255, 194, 14, .16), transparent 60%),
    radial-gradient(700px 240px at -10% 80px, rgba(230, 29, 43, .18), transparent 55%),
    var(--cream);
}
html[data-theme="dark"] .chip,
html[data-theme="dark"] .search,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #151a28;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .chip { color: #fff; }
html[data-theme="dark"] .chip.active,
html[data-theme="dark"] .chip:hover { background: var(--gold); color: var(--navy-deep); }
html[data-theme="dark"] .art,
html[data-theme="dark"] .qty button { background: #121722; }
html[data-theme="dark"] .alert { background: #3d3418; color: #fff4cc; }
html[data-theme="dark"] .alert.bad { background: #4a2024; color: #ffd7db; }
html[data-theme="dark"] .pill { background: #2a3148; color: #fff; }
html[data-theme="dark"] .slip h1 { color: #fff; }
.thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; vertical-align: middle; margin-right: 8px; }
.can { width: 46px; height: 78px; border-radius: 8px; background: #e61d2b; box-shadow: inset -8px 0 0 rgba(0,0,0,.08); }
.can i { position: absolute; left: 6px; right: 6px; top: 24px; height: 18px; background: #fff; }
.can b { position: absolute; left: 10px; right: 10px; top: 30px; height: 6px; background: #e61d2b; border-radius: 2px; }
.tone-diet { background: #c9cdd3; } .tone-diet b { background: #6d737c; }
.tone-zero { background: #1b1b1b; } .tone-zero b { background: #e61d2b; }
.tone-redbull { background: #1b2a6b; } .tone-redbull i { background: #f4f6f8; } .tone-redbull b { background: #e61d2b; width: 16px; left: 15px; }
.tone-irn { background: #f08a12; } .tone-irn b { background: #1b2a6b; }
.tone-water { background: #d7eef8; } .tone-water i { background: transparent; border-top: 8px solid #8fd0ea; } .tone-water b { display: none; }
.packet { width: 70px; height: 86px; background: #e10600; clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%); }
.packet i { position: absolute; left: 14px; right: 14px; top: 28px; height: 22px; background: #ffc20e; border-radius: 3px; }
.bar { width: 78px; height: 36px; border-radius: 6px; background: #5b3418; box-shadow: inset 0 -8px 0 #3d2412; }
.bar:before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 8px; background: #d7a15e; border-radius: 3px; }
.sweetbag { width: 62px; height: 74px; background: #ff4f6d; border-radius: 8px 8px 16px 16px; }
.sweetbag:before { content: ""; position: absolute; left: 18px; right: 18px; top: -8px; height: 14px; background: #ffd1da; border-radius: 6px; }
.biscuit { width: 70px; height: 42px; background: #e2b56a; border-radius: 20px; box-shadow: 0 8px 0 #c8923d; }
.wafer { width: 74px; height: 28px; background: #f3d48a; border-radius: 4px; box-shadow: 0 7px 0 #c0392b, 0 14px 0 #f3d48a, 0 21px 0 #c0392b; }
.teacake { width: 58px; height: 58px; border-radius: 50%; background: #f6e7c1; box-shadow: inset 0 -16px 0 #e7c9e8; }
.panel { padding: 22px; }
.basket-line, .admin-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.qty { display: flex; align-items: center; gap: 6px; }
.qty button, .ghost, .btn {
  border: 0; border-radius: 999px; padding: 8px 12px; font-weight: 800;
}
.qty button { background: #f6efe8; }
.btn { background: var(--red); color: #fff; padding: 12px 18px; text-decoration: none; display: inline-block; }
.btn.navy { background: var(--navy); }
.btn.gold { background: var(--gold); color: var(--navy-deep); }
.ghost { background: transparent; color: var(--muted); }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff;
}
textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { color: var(--muted); }
.alert { background: #fff4cc; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.alert.bad { background: #ffe1e3; }
.slip { padding: 28px; }
.slip h1 { color: var(--navy); }
.total { font-size: 1.6rem; color: var(--red); font-weight: 800; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 8px; font-size: .78rem; font-weight: 800; background: #efe7dc; }
.pill.ready { background: #d9f5df; }
.pill.collected { background: #e7eefc; }
.pill.cancelled { background: #ffe1e3; }
.foot {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  width: min(1120px, calc(100% - 32px)); margin: 0 auto 28px; color: var(--muted); font-size: .92rem;
}
.foot a { color: var(--navy); font-weight: 700; }
.admin-top { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { padding: 28px; text-align: center; }
@media (max-width: 760px) {
  .tag { display: none; }
  .hero, .form-grid, .basket-line { grid-template-columns: 1fr; }
  .top { padding: 12px; }
  main { width: min(1120px, calc(100% - 20px)); }
}
