:root {
  --bg: #f4f2ee; --ink: #1b1d1f; --muted: #5d6166; --line: #d9d5cd;
  --card: #ffffff; --accent: #0b6e66; --accent-ink: #ffffff; --warn: #9a5b00; --ok: #1f7a3a;
  --radius: 6px;
  font-family: "Archivo", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121416; --ink: #ecebe7; --muted: #a3a7ab; --line: #2c3034; --card: #1a1d20; --accent: #3fb8ad; --accent-ink: #0b1312; --warn: #e3a54a; --ok: #5fc27c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-underline-offset: 3px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 32px 16px 64px; }
.wrap.narrow { max-width: 560px; }
header.site { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 32px; }
header.site h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.product h2 { margin: 0; font-size: 1.1rem; }
.product .price { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.3rem; }
.product p { margin: 0; color: var(--muted); flex: 1; }
.btn { appearance: none; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; padding: 10px 16px; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
aside.cart { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 16px; }
aside.cart h2 { margin: 0 0 12px; font-size: 1rem; }
.cart ul { list-style: none; padding: 0; margin: 0 0 12px; }
.cart li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cart .total { display: flex; justify-content: space-between; font-weight: 800; margin: 12px 0; font-variant-numeric: tabular-nums; }
.cart input { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); margin-bottom: 12px; }
.empty { color: var(--muted); margin: 0 0 12px; }
.err { color: var(--warn); }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; border: 1px solid currentColor; }
.status.pending { color: var(--warn); } .status.paid { color: var(--ok); }
.wall { margin-top: 24px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; background: var(--card); }
.wall.locked { text-align: center; }
.wall .unlock { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tag { font-weight: 700; color: var(--warn); font-size: .85rem; }
.addr { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 16px 0; word-break: break-all; }
.addr span { color: var(--muted); font-size: .85rem; }
