:root {
  --green: #0b6b3a;
  --green-dark: #063f23;
  --green-soft: #e6f1ea;
  --gold: #f2c230;
  --gold-dark: #8a6a0a;
  --cream: #faf6ec;
  --card: #ffffff;
  --ink: #17261d;
  --muted: #5a6a60;
  --line: #dcd6c6;
  --red: #a3261c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: 1.35rem; margin-bottom: 16px; }
a { color: var(--green); }
small { color: var(--muted); font-size: .85rem; }
main { max-width: 880px; margin: 0 auto; padding: 0 16px 40px; }
body.admin main { max-width: 1180px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--green-dark); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.brand img { display: block; height: 40px; width: auto; }
.langs { display: flex; gap: 4px; }
.langs a { color: #d5e6db; text-decoration: none; padding: 6px 10px; border-radius: 999px; font-size: .9rem; }
.langs a[aria-current] { background: #fff; color: var(--green-dark); font-weight: 600; }

.hero {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  margin: 0 -16px 24px; padding: 36px 28px 30px;
  background: radial-gradient(120% 140% at 85% 0%, #128a4c 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #fff;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
.kicker { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold); }
.lead { margin: 14px 0 0; max-width: 46ch; color: #e3efe7; }
.deadline { display: inline-block; margin: 18px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--gold); color: #2b2100; font-weight: 700; font-size: .92rem; }
.hero-art { display: flex; align-items: flex-start; }
.hero-art .ball { width: 170px; height: auto; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); }
.hero-art .ballbox + .ballbox .ball { width: 128px; margin: 44px 0 0 -30px; }
@media (min-width: 912px) { .hero { margin: 24px 0; border-radius: var(--radius); } }
@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; padding: 28px 20px 24px; }
  .hero-art { display: none; }
}

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 20px; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-content: start; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700;
}
.steps b { font-family: Georgia, serif; font-size: 1.05rem; }
.steps span { grid-column: 2; color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.note { color: var(--muted); font-size: .88rem; margin: 14px 0 0; }
.center { text-align: center; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .products { grid-template-columns: repeat(2, 1fr); } }
.product { border: 2px solid var(--line); border-radius: 12px; padding: 12px 10px 14px; text-align: center; transition: border-color .15s, background .15s; }
.product.chosen { border-color: var(--green); background: var(--green-soft); }
.ballbox { display: block; }
.product .ballbox { display: flex; align-items: flex-end; justify-content: center; height: 150px; margin-bottom: 8px; }
.product .ball { width: auto; height: 150px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.product .ball.size6 { height: 120px; }
.product h3 { font-size: 1.05rem; }
.price { margin: 4px 0 2px; font-weight: 700; color: var(--green); }
.stock { margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.stock.low { color: var(--red); font-weight: 600; }
.product.soldout .ball { filter: grayscale(.7) opacity(.55); }
.product.soldout .stepper { opacity: .45; }
.stepper button:disabled { cursor: not-allowed; }
.stockrow input { width: 76px; padding: 6px 8px; font: inherit; text-align: right; border: 1px solid #b9b3a2; border-radius: 8px; }
td.warn { color: var(--red); font-weight: 700; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid #b9b3a2; border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 44px; min-height: 44px; border: 0; background: #f1ede1; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: #e4dfcf; }
.stepper input { width: 48px; border: 0; text-align: center; font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; background: #fff; color: var(--ink); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pickups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .pickups { grid-template-columns: 1fr; } }
.pickup { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; }
.pickup:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.pickup.disabled { opacity: .6; cursor: not-allowed; background: #f4f1e8; }
.pickup input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.pickup span span, .pickup small { display: block; }
.pickup span span { color: var(--muted); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields .wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .95rem; }
.fields input, .fields textarea, .login input {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit; color: var(--ink);
  border: 1px solid #b9b3a2; border-radius: 10px; background: #fff;
}
.fields small { display: block; margin-top: 4px; font-weight: 400; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.checkout { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: sticky; bottom: 8px; box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.sum > span { display: block; color: var(--muted); font-size: .85rem; }
.sum strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; font-family: Georgia, serif; }
.sum small { margin-left: 8px; }
.go { text-align: right; }
.go small { display: block; margin-top: 6px; max-width: 34ch; }
button.primary {
  border: 0; border-radius: 999px; padding: 14px 28px; font: inherit; font-weight: 700; font-size: 1.05rem;
  background: var(--green); color: #fff; cursor: pointer;
}
button.primary:hover { background: var(--green-dark); }
@media (max-width: 520px) {
  .checkout { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .sum strong { font-size: 1.45rem; }
  .sum small { display: block; margin: 0; }
  .go small { display: none; }
  button.primary { padding: 13px 20px; font-size: 1rem; }
}
.privacy { color: var(--muted); font-size: .85rem; text-align: center; margin: 0 auto; max-width: 60ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.errors { background: #fbeceb; border: 1px solid #e3b1ac; color: var(--red); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.checkout .errors { width: 100%; margin-bottom: 0; }
.errors ul { margin: 0; padding-left: 18px; }

.closed, .thanks { text-align: center; }
.thanks { margin-top: 24px; }
.thanks .kicker { color: var(--gold-dark); }
.thanks h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin-bottom: 8px; }
.thanks p:last-child { margin-bottom: 0; }
.pay { border: 2px solid var(--green); }
.pay dl { display: grid; grid-template-columns: repeat(4, auto); gap: 12px 24px; margin: 0; justify-content: start; }
.pay dt { color: var(--muted); font-size: .85rem; }
.pay dd { margin: 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .pay dl { grid-template-columns: 1fr 1fr; } }
.paid { color: var(--green); font-weight: 700; margin-top: 0; }
.lines { border-collapse: collapse; width: 100%; max-width: 420px; margin-bottom: 22px; }
.lines td { padding: 6px 12px 6px 0; }
.lines .total td { border-top: 1px solid var(--line); font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.login { max-width: 380px; margin: 40px auto; }
.login h1 { margin-bottom: 16px; }
.login button { margin-top: 16px; width: 100%; }

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 24px 0 16px; }
.actions { display: flex; gap: 8px; align-items: center; }
.actions button, .button { font: inherit; padding: 9px 16px; border-radius: 999px; border: 1px solid #b9b3a2; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.button { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 620px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpis div { background: var(--green-soft); border-radius: 10px; padding: 12px 14px; }
.kpis span { display: block; color: var(--muted); font-size: .85rem; }
.kpis strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.grid { border-collapse: collapse; width: 100%; font-size: .93rem; }
.grid th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 6px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.grid th.num { text-align: right; }
.grid td { padding: 9px 10px; border-bottom: 1px solid #ebe6d8; vertical-align: top; }
.grid .total td { font-weight: 700; border-bottom: 0; }
.orders tr.cancelled td { color: #9a9a92; text-decoration: line-through; }
.orders tr.cancelled td:last-child, .orders tr.cancelled button { text-decoration: none; }
.orders tr:target td { background: #fff8dc; }
.msg { font-style: italic; }
.warn { color: var(--red); }
.toggle { font: inherit; font-size: .88rem; padding: 7px 12px; border-radius: 999px; border: 1px solid #b9b3a2; background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.toggle.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.toggle:disabled { opacity: .4; cursor: default; }
button.link { border: 0; background: none; color: var(--red); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; padding: 7px 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; }
.filters a[aria-current] { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 8px 16px 32px; }
