/* Bloxy's Tech Touch — public catalogue. Brand: hot magenta, light pink, deep purple, periwinkle, navy, white. */
:root {
  --navy: #12122a; --purple: #5b2a86; --magenta: #ff2e93; --pink: #ffb8da; --peri: #8ea2ff;
  --bg: #fff1f8; --surface: #ffffff; --text: #12122a; --muted: #5b5880; --line: #12122a;
  --good: #0b8a55; --wa: #128c4a; --rule: #f1d9e8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12122a; --surface: #1c1b3a; --text: #f4f2ff; --muted: #b3b0d6; --line: #050512; --good: #3ddc97; --rule: #2b2950; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
.hero { display: flex; align-items: center; gap: 14px; padding: calc(18px + env(safe-area-inset-top)) 16px 18px; background: var(--purple); color: #fff; border-bottom: 4px solid var(--line); }
.hero img { border-radius: 50%; border: 4px solid #fff; background: #fff; flex: none; }
.hero h1 { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: .01em; text-shadow: 2px 2px 0 var(--line); }
.hero p { margin: 2px 0 0; color: var(--pink); font-weight: 700; }
main { max-width: 980px; margin: 0 auto; padding: 14px 16px 8px; }
.updated { margin: 0 0 12px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 3px solid var(--peri); border-radius: 18px; box-shadow: 4px 4px 0 var(--line); padding: 16px; scroll-margin-top: 12px; }
.card.sold-out { opacity: .75; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.card h2 { margin: -6px 0 0; font-size: 1.3rem; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.brand { margin: 0; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.badge { flex: none; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; border: 2px solid var(--line); background: var(--pink); color: var(--navy); white-space: nowrap; }
.badge.in-stock { background: #3ddc97; color: #062016; }
.badge.pre-order { background: var(--peri); color: var(--navy); }
.badge.sold-out { background: #cfcde0; color: var(--navy); }
.price { margin: 0; font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
/* specs are what tells one card from another now, so they read as content, not small print */
.specs { list-style: none; margin: 0; padding: 12px 0 0; border-top: 2px solid var(--rule); display: grid; gap: 7px; font-size: .97rem; }
.specs li { position: relative; padding-left: 20px; line-height: 1.35; }
.specs li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--magenta); transform: rotate(45deg); }
/* price + button footer: pushed to the bottom so rows line up on wider screens */
.buy { margin-top: auto; display: grid; gap: 10px; padding-top: 4px; }
/* no specs: keep the divider and let the price take the space the specs would have (no hole beside fuller cards) */
.card.nospecs .buy { flex: 1; margin-top: 0; grid-template-rows: 1fr auto; padding-top: 12px; border-top: 2px solid var(--rule); }
.card.nospecs .price { align-self: center; }
.wa { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 16px; border-radius: 14px; background: var(--wa); color: #fff; font-weight: 800; text-decoration: none; border: 3px solid var(--line); box-shadow: 3px 3px 0 var(--line); text-align: center; }
.wa:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.wa:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
.wa.big { max-width: 520px; margin: 0 auto; }
footer { max-width: 980px; margin: 0 auto; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: .88rem; }
footer p { margin: 14px 0 0; }
.loading { color: var(--muted); text-align: center; padding: 24px 0; }
