:root {
  --ink: #1c1430;
  --muted: #5c5470;
  --paper: #fffdf8;
  --card: #ffffff;
  --line: #efe6f4;
  --magenta: #ff2f86;
  --orange: #ff7a18;
  --yellow: #ffc400;
  --lime: #6eae2f;
  --cyan: #14b8e6;
  --blue: #2f6bff;
  --purple: #7a3ff2;
  --shadow: 0 18px 40px rgba(28, 20, 48, 0.08);
  font-family: Outfit, "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: Fredoka, Outfit, sans-serif; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 0.2rem 0; }
p { line-height: 1.55; }

.site-header, .site-footer, main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: Fredoka, sans-serif; font-weight: 650; }
.brand img, .side-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.site-nav { display: flex; gap: 18px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 650; }
.preview-banner, .flash { width: min(1120px, calc(100% - 32px)); margin: 0 auto 16px; padding: 12px 14px; border-radius: 14px; }
.preview-banner { background: #fff4cc; }
.flash-ok { background: #e7f8d8; }
.flash-err, .warn { background: #ffe3ef; color: #8d1248; }
.flash-err { padding: 10px 12px; border-radius: 12px; }

.hero { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; padding: 12px 0 28px; }
.logo-orb { border-radius: 50%; padding: 8px; background: conic-gradient(var(--magenta), var(--orange), var(--yellow), var(--lime), var(--cyan), var(--blue), var(--purple), var(--magenta)); }
.logo-orb img { width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; background: white; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--magenta); margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); }
.hero-actions, .card-row, .section-head, .filters, .buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn, button.btn { background: var(--ink); color: white; text-decoration: none; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; display: inline-block; }
.btn-ghost, button.btn.btn-ghost, a.btn.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.focus-grid, .cards { display: grid; gap: 14px; }
.focus-grid { grid-template-columns: repeat(6, 1fr); margin-bottom: 28px; }
.focus-tile { color: white; text-decoration: none; border-radius: 18px; padding: 16px 12px; font-weight: 700; min-height: 92px; }
.focus-fine-motor { background: var(--cyan); }
.focus-grip { background: var(--orange); }
.focus-bilateral { background: var(--purple); }
.focus-sensory { background: var(--lime); color: #16300a; }
.focus-visual-motor { background: var(--blue); }
.focus-coordination { background: var(--magenta); }
.cards { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.card-media { position: relative; display: block; background: #f6f1fb; }
.card-media img, .product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pill { position: absolute; left: 12px; bottom: 12px; background: white; border-radius: 999px; padding: 4px 10px; font-size: 0.85rem; }
.card-body { padding: 14px 16px 16px; }
.card-body h2 { font-size: 1.35rem; margin: 0 0 6px; }
.card-body h2 a { color: inherit; text-decoration: none; }
.card-body p { margin: 0; color: var(--muted); }
.page-head { margin: 10px 0 18px; }
.page-head p, .meta { color: var(--muted); }
.filters a { text-decoration: none; color: var(--ink); border-radius: 999px; padding: 8px 12px; background: white; }
.filters { margin-bottom: 18px; }
.filters .is-on { background: var(--ink); color: white; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-media { background: white; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.price { font-family: Fredoka, sans-serif; font-size: 2rem; margin: 0; }
.buy input, .stack input, .stack textarea, .stack select, .lines input, .gate input { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid #ddd4ea; width: 100%; }
.buy input { width: 90px; }
.split, .checkout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 22px; margin: 22px 0 40px; }
.note, .summary, .panel { background: white; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.plain { padding-left: 18px; }
.plain li { margin: 8px 0; }
.lines, table { width: 100%; border-collapse: collapse; }
.lines th, .lines td, table th, table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.totals { display: grid; gap: 8px; max-width: 320px; }
.totals div { display: flex; justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.narrow { max-width: 460px; }
.account-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.account-actions form { margin: 0; }
.account-password { margin: 28px 0 40px; }
.account-password h2 { margin-top: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 650; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 28px 0 40px; color: var(--muted); }
.site-footer a { display: block; color: var(--ink); text-decoration: none; margin: 4px 0; }
.empty { padding: 12px 0 28px; }
.legal { max-width: 740px; padding-bottom: 48px; }
.legal h2 { font-size: 1.45rem; margin: 1.6rem 0 0.4rem; }
.legal li { margin: 0.35rem 0; }
label.check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
label.check-row input { width: auto; margin-top: 4px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.shop-tools { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.shop-tools input, .shop-tools select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid #ddd4ea; }
.shop-tools input[type="search"] { flex: 1; min-width: 180px; }
.line-option { display: block; color: var(--muted); font-weight: 500; }
.related { margin: 28px 0 40px; }
fieldset.stack { border: 0; padding: 0; margin: 0; }
fieldset.stack legend { font-weight: 700; margin-bottom: 6px; }
.receipt-body { background: white; }
.receipt { width: min(760px, calc(100% - 32px)); margin: 24px auto 48px; }
.receipt h1 { font-size: 2.4rem; }
@media print {
  .no-print { display: none; }
  .receipt { margin: 0; width: auto; }
}
.cf-turnstile { margin: 4px 0 8px; }

@media (max-width: 860px) {
  .hero, .product, .split, .checkout, .cards, .focus-grid { grid-template-columns: 1fr 1fr; }
  .hero, .product, .split, .checkout { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-header, .site-footer { flex-direction: column; align-items: flex-start; }
}
