:root { --bg:#fff; --fg:#1a1a1a; --muted:#666; --line:#e5e5e5; --accent:#111; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#111; --fg:#f2f2f2; --muted:#999; --line:#2a2a2a; --accent:#f2f2f2; }
}
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, sans-serif; background:var(--bg); color:var(--fg); }
header { display:flex; justify-content:space-between; align-items:center; padding:16px 24px; border-bottom:1px solid var(--line); }
header h1 { margin:0; font-size:1.4rem; letter-spacing:.1em; }
main { padding:24px; max-width:1000px; margin:0 auto; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:20px; }
.card { border:1px solid var(--line); border-radius:8px; padding:16px; display:flex; flex-direction:column; gap:8px; }
.card .img { aspect-ratio:1; background:var(--line); border-radius:6px; background-size:cover; background-position:center; }
.card p { margin:0; color:var(--muted); font-size:.9rem; }
button { background:var(--accent); color:var(--bg); border:0; border-radius:6px; padding:10px 14px; font:inherit; cursor:pointer; }
button:disabled { opacity:.4; cursor:default; }
#cart { position:fixed; top:0; right:0; width:min(340px,100%); height:100%; background:var(--bg); border-left:1px solid var(--line); padding:20px; overflow:auto; }
#cart ul { list-style:none; padding:0; }
#cart li { display:flex; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); }
#notice { background:var(--line); padding:12px; border-radius:6px; }
