:root { color-scheme: light dark; --fg: #1d1d1f; --bg: #fafafa; --card: #fff; --muted: #6b7280; --accent: #4f46e5; --line: #e5e7eb; }
@media (prefers-color-scheme: dark) { :root { --fg: #f3f4f6; --bg: #111214; --card: #1b1c20; --muted: #9ca3af; --accent: #818cf8; --line: #2d2f36; } }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top { display: flex; gap: 1rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
.search { flex: 1; min-width: 10rem; }
.search input { width: 100%; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); color: var(--fg); }
.cats { display: flex; gap: .75rem; padding: .5rem 1rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.cats a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.cats a.on { color: var(--accent); font-weight: 600; }
main { max-width: 64rem; margin: 0 auto; padding: 1rem; }
footer { text-align: center; color: var(--muted); padding: 2rem 1rem; font-size: .875rem; }
.flash { padding: .75rem 1rem; border-radius: .5rem; }
.notice { background: #dcfce7; color: #14532d; }
.alert { background: #fee2e2; color: #7f1d1d; }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .75rem; padding: .75rem; display: flex; flex-direction: column; gap: .25rem; }
.card a { text-decoration: none; color: var(--fg); }
.thumb { aspect-ratio: 4/3; border-radius: .5rem; display: grid; place-items: center; font-size: 2.5rem; font-weight: 700; color: #fff; background: hsl(var(--h) 60% 55%); margin-bottom: .5rem; }
.thumb.big { font-size: 5rem; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; }
@media (max-width: 40rem) { .product { grid-template-columns: 1fr; } }
.price { font-weight: 600; }
.oos, .muted { color: var(--muted); font-size: .875rem; }
.sale { color: #dc2626; font-weight: 700; }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: .5rem; padding: .6rem 1.1rem; font: inherit; cursor: pointer; text-decoration: none; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.add, .coupon { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
input[type=number] { width: 4.5rem; }
input { padding: .5rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); color: var(--fg); font: inherit; }
.lines { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.lines td { padding: .5rem; border-bottom: 1px solid var(--line); }
.lines .total td { font-weight: 700; }
.checkout { display: grid; gap: 1rem; max-width: 28rem; }
.checkout label { display: grid; gap: .25rem; }
.checkout label.check { display: flex; gap: .5rem; align-items: center; }
.pager { display: flex; justify-content: space-between; }
