:root {
  --brand: #c8ff4d; --brand-ink: #0a0a0f; --ink: #12121a; --muted: #6b6878; --line: #e7e4ee; --bg: #f7f6fb; --card: #fff;
  --ok: #2f8a00; --bad: #c4321f; --radius: 18px; --display: 'Bricolage Grotesque', system-ui, sans-serif; --sans: 'Inter', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #f4f1e8; --muted: #a29fb0; --line: #2a2835; --bg: #0b0b12; --card: #15141d; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.spacer { flex: 1; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px var(--display); letter-spacing: -.02em; text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.cart-btn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px; }
.cart-btn svg { width: 18px; height: 18px; }
.cart-btn b { background: var(--brand); color: var(--brand-ink); border-radius: 999px; min-width: 22px; padding: 0 6px; font-size: 12px; line-height: 22px; text-align: center; }

.hero { padding: clamp(36px, 7vw, 80px) clamp(16px, 4vw, 48px) 24px; background: radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.hero h1 { font: 800 clamp(36px, 7vw, 68px)/1 var(--display); letter-spacing: -.045em; margin: 0 0 16px; max-width: 14ch; }
.lead { color: var(--muted); font-size: 17px; max-width: 56ch; margin: 0; }

#notice { padding: 0 clamp(16px, 4vw, 48px); }
.banner { border-radius: 14px; padding: 12px 16px; margin: 8px 0; background: color-mix(in srgb, var(--brand) 18%, var(--card)); border: 1px solid var(--line); }
.banner.bad { background: color-mix(in srgb, var(--bad) 12%, var(--card)); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px clamp(16px, 4vw, 48px) 0; }
.filters button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; }
.filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding: 20px clamp(16px, 4vw, 48px) 60px; }
.empty { grid-column: 1/-1; color: var(--muted); padding: 40px 0; text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(20, 10, 60, .35); }
.shot { aspect-ratio: 4/3; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, var(--card)), var(--card)); display: grid; place-items: center; border: 0; padding: 0; width: 100%; }
.shot img { max-width: 78%; max-height: 82%; object-fit: contain; }
.shot svg { width: 64px; height: 64px; opacity: .45; }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kind { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.name { font: 700 18px var(--display); letter-spacing: -.02em; margin: 0; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; }
.price b { font: 800 22px var(--display); }
.price s { color: var(--muted); font-size: 14px; }
.stock { font-size: 12.5px; color: var(--bad); font-weight: 600; }
.add { margin-top: 10px; border: 0; border-radius: 12px; padding: 11px; background: var(--ink); color: var(--bg); font-weight: 700; }
.add:disabled { opacity: .4; cursor: not-allowed; }
.primary { border: 0; border-radius: 14px; padding: 14px 18px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 15.5px; width: 100%; }
.primary:disabled { opacity: .5; cursor: progress; }

.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(8, 6, 20, .45); display: flex; justify-content: flex-end; }
.sheet-panel { width: min(460px, 100%); height: 100%; overflow: auto; background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 14px; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: .5; } }
.sheet h2 { font: 800 26px var(--display); letter-spacing: -.03em; margin: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.close { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: var(--card); color: var(--ink); width: 30px; height: 28px; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font: 800 20px var(--display); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
form.co { display: grid; gap: 10px; }
form.co label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
form.co input { font: inherit; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
form.co .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
form.co .three { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 10px; }
.err { color: var(--bad); font-weight: 600; font-size: 13.5px; min-height: 1em; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.foot { padding: 24px clamp(16px, 4vw, 48px) 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 30; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@media (max-width: 520px) { form.co .three, form.co .two { grid-template-columns: 1fr; } }
form.co label { min-width: 0; }
form.co input { width: 100%; min-width: 0; }
.sheet-panel > * { min-width: 0; }
.line .qty { justify-self: start; }
