/* Store (/products/) — master-detail. Matches the site design system but runs
   calmer than the practice tools: tighter radii, quieter color, fewer "candy"
   elements. This page asks people to spend money — it should read composed. */
:root { --ink:#1c1917; --muted:#6b6560; --line:#e7e5e4; --bg:#fbfbfa; --card:#fff;
    --accent:#0d9488; --accent-dark:#0b7c72; --accent-soft:#f0fdfa; --amber:#b45309;
    --frame:#f5f4f2; }
body.dark-mode { --ink:#f5f5f4; --muted:#a8a29e; --line:#3a3633; --bg:#1a1817; --card:#242120;
    --accent:#2dd4bf; --accent-dark:#5eead4; --accent-soft:#132a27; --amber:#d9a066;
    --frame:#1f1d1c; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); line-height:1.55;
    font-family:Inter,-apple-system,system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; }
.shop-wrap { max-width:1060px; margin:0 auto; padding:0 24px; }
.serif { font-family:Fraunces,Georgia,serif; }

.shop-intro { padding:34px 0 4px; }
.shop-intro h1 { font-size:clamp(26px,4vw,34px); margin:0 0 8px; letter-spacing:-.02em; font-weight:700; }
.shop-intro p { color:var(--muted); font-size:15.5px; max-width:640px; margin:0; }

/* Product detail pane */
.product { display:grid; grid-template-columns:1.05fr 1fr; gap:36px; padding:4px 0 8px; align-items:start; }

/* Gallery — fixed 4:3 letterbox frame; images are CONTAINED, never stretched,
   so portrait covers and landscape ranges both present correctly. */
.gallery .main-frame { display:flex; align-items:center; justify-content:center;
    aspect-ratio:4/3; background:var(--frame); border:1px solid var(--line); border-radius:8px;
    padding:16px; overflow:hidden; }
.gallery .main-img { max-width:100%; max-height:100%; width:auto; height:auto;
    border-radius:3px; box-shadow:0 1px 8px rgba(0,0,0,.10); }
.gallery .thumbs { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.gallery .thumb { padding:0; border:1px solid var(--line); border-radius:6px; cursor:pointer;
    background:var(--frame); line-height:0; overflow:hidden; }
.gallery .thumb:hover { border-color:var(--accent); }
.gallery .thumb.on { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.gallery .thumb img { width:64px; height:64px; object-fit:cover; display:block; }

.buybox .tag { display:inline-block; color:var(--muted); font-weight:700; font-size:11.5px;
    text-transform:uppercase; letter-spacing:.08em; }
.buybox .ptitle { font-size:clamp(22px,3vw,29px); margin:6px 0 8px; letter-spacing:-.015em;
    font-weight:700; line-height:1.2; }
/* Curriculum subtitle — mirrors the line typeset on the PDF cover. */
.buybox .psubtitle { color:var(--muted); font-size:13px; font-weight:600; margin:-4px 0 10px;
    letter-spacing:.02em; }
.buybox .lead { color:var(--muted); font-size:15px; margin:0 0 16px; }
.price-row { display:flex; align-items:baseline; gap:10px; margin-bottom:16px; }
.price-row .price { font-size:26px; font-weight:700; }
.price-row .compare { color:var(--muted); text-decoration:line-through; font-size:15.5px; }
.price-row .save { color:var(--amber); font-weight:700; font-size:12.5px; }
.buy-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px;
    background:var(--accent-dark); color:#fff; font-weight:700; font-size:15.5px;
    padding:13px 28px; border-radius:8px; text-decoration:none; transition:background .15s; }
body.dark-mode .buy-btn { background:var(--accent); color:#0d2622; }
.buy-btn:hover { background:var(--accent); }
body.dark-mode .buy-btn:hover { background:var(--accent-dark); }
.features { list-style:none; padding:0; margin:16px 0 0; }
.features li { display:flex; align-items:center; gap:9px; font-size:14px; padding:3px 0; color:var(--ink); }
.features li::before { content:"✓"; color:var(--accent); font-weight:700; }
.buybox .secure { font-size:12.5px; color:var(--muted); margin-top:12px; }

.about { padding:16px 0 8px; max-width:720px; }
.about h2 { font-size:18px; margin:22px 0 8px; font-weight:700; }
.about p { color:var(--muted); margin:0 0 10px; font-size:14.5px; }
.about .free-cta { display:inline-block; margin-top:6px; color:var(--accent); font-weight:700;
    font-size:14.5px; text-decoration:none; }
.about .free-cta:hover { text-decoration:underline; }

.includes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 20px;
    list-style:none; padding:0; margin:14px 0 0; }
.includes li { display:flex; align-items:baseline; gap:9px; font-size:14px; }
.includes li::before { content:"✓"; color:var(--accent); font-weight:700; }

/* Credential / trust block — the authority signal under the product list. */
.store-trust { border:1px solid var(--line); border-radius:8px; background:var(--card);
    padding:16px 18px; font-size:13px; color:var(--muted); line-height:1.6; }
.store-trust strong { color:var(--ink); }
.store-trust .tr-list { list-style:none; margin:10px 0 0; padding:10px 0 0;
    border-top:1px solid var(--line); }
.store-trust .tr-list li { display:flex; align-items:baseline; gap:8px; padding:2px 0; }
.store-trust .tr-list li::before { content:"✓"; color:var(--accent); font-weight:700; }

@media (max-width:760px){
    .product { grid-template-columns:1fr; }
    .includes { grid-template-columns:1fr; }
}
