/* Halden Coffee Supply: a plain store, deliberately not styled like Sitebound itself. */
:root {
  color-scheme: light dark;
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #1d1a17;
  --muted: #6b645c;
  --line: #e4ddd2;
  --brand: #7a3e1d;
  --brand-ink: #ffffff;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151311;
    --surface: #1e1b18;
    --ink: #f2eee9;
    --muted: #a59d93;
    --line: #2f2a25;
    --brand: #e0915e;
    --brand-ink: #1a0d05;
  }
}
@media (prefers-color-scheme: dark) { .swatch { filter: brightness(0.82); } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--font); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-size: 0.85em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }

.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(16px, (100% - 1100px) / 2); border-bottom: 1px solid var(--line); background: var(--surface);
}
.logo { font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 1.15rem; }
.logo span { font-weight: 400; color: var(--muted); }
.cart-link { text-decoration: none; color: var(--muted); }
.cart-link span {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px;
  border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-size: 0.8rem; font-weight: 600;
}

main.wrap { display: grid; gap: 32px; padding: 32px 0 48px; }
h1 { font-size: 1.9rem; letter-spacing: -0.03em; }
.lede { color: var(--muted); margin-top: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: 0 6px 20px rgba(29, 26, 23, 0.06); }
.swatch {
  aspect-ratio: 4 / 3; border-radius: 8px; margin-bottom: 6px; background: var(--c);
  background-image: radial-gradient(120% 90% at 28% 18%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(to top, rgba(0, 0, 0, 0.06), transparent 40%);
}
.card h2 { font-size: 1rem; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.row b::after { content: " USDT"; font-weight: 400; color: var(--muted); font-size: 0.85em; }
.row button {
  padding: 6px 16px; border: 1px solid var(--brand); border-radius: 8px; background: transparent; color: var(--brand); font-weight: 600;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.row button:active { transform: scale(0.96); }
.row button:hover { background: var(--brand); color: var(--brand-ink); }

.cart { align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cart h2 { font-size: 1.1rem; margin-bottom: 10px; }
.lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 4px; background: transparent; line-height: 1; }
.muted { color: var(--muted); font-size: 0.9rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; }
.total b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.btn { width: 100%; height: 44px; border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; transition: filter 0.15s, transform 0.15s; }
.btn:not(:disabled):hover { filter: brightness(1.08); }
.btn:not(:disabled):active { transform: scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pay { display: grid; gap: 10px; }
.fine { color: var(--muted); font-size: 0.8rem; }
.done { display: grid; gap: 6px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.done h3 { color: var(--brand); }
.quiet { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--muted); text-decoration: underline; }

.foot { padding: 20px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

@media (min-width: 860px) {
  main.wrap { grid-template-columns: 1fr 340px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .swatch { aspect-ratio: 16 / 9; }
  .cart { position: sticky; top: 16px; }
}
