:root{
  --sb-ink:#17212b; --sb-muted:#5b6773; --sb-line:#e2e6ea; --sb-bg:#f5f7f8;
  --sb-teal:#14606e; --sb-teal-d:#0e4753; --sb-sale:#b4411f;
}
body{background:var(--sb-bg);color:var(--sb-ink);}
.sb-serif,.sb-h{font-family:"Source Serif 4",Georgia,serif;letter-spacing:-.01em}
.sb-nav{background:#fff;border-bottom:1px solid var(--sb-line)}
.sb-brand{font-family:"Source Serif 4",Georgia,serif;font-weight:700;font-size:1.4rem;color:var(--sb-teal)!important}
.sb-search .form-control{border-radius:8px 0 0 8px}.sb-search .btn{border-radius:0 8px 8px 0}
.sb-cart-badge{font-size:.65rem}
.sb-hero{background:var(--sb-teal-d);color:#fff;border-radius:14px;padding:3rem 1.5rem}
.sb-hero h1{font-family:"Source Serif 4",Georgia,serif;font-weight:700;font-size:clamp(1.8rem,4vw,2.8rem);max-width:18ch}
.sb-hero p{color:#cfe3e8;max-width:52ch}
.sb-chip{display:inline-block;padding:.35rem .85rem;border:1px solid var(--sb-line);border-radius:999px;background:#fff;color:var(--sb-ink);text-decoration:none;font-size:.9rem}
.sb-chip:hover,.sb-chip.active{background:var(--sb-teal);border-color:var(--sb-teal);color:#fff}
.sb-card{background:#fff;border:1px solid var(--sb-line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}
.sb-cover{display:block;aspect-ratio:5/7;background:#e9eef0}
.sb-cover img{width:100%;height:100%;object-fit:cover}
.sb-body{padding:.8rem;display:flex;flex-direction:column;flex:1}
.sb-cat{font-size:.75rem;color:var(--sb-muted)}
.sb-title{font-family:"Source Serif 4",Georgia,serif;font-weight:600;color:var(--sb-ink);text-decoration:none;line-height:1.25;margin:.15rem 0 .6rem}
.sb-title:hover{color:var(--sb-teal)}
.sb-price{font-weight:700;color:var(--sb-ink)}
.sb-price-old{color:var(--sb-muted);text-decoration:line-through;font-size:.85rem}
.sb-sale{color:var(--sb-sale);font-weight:600}
.sb-section-title{font-family:"Source Serif 4",Georgia,serif;font-weight:700;font-size:1.5rem}
.sb-panel{background:#fff;border:1px solid var(--sb-line);border-radius:10px;padding:1.25rem}
.sb-detail-cover{width:100%;max-width:320px;border-radius:8px;border:1px solid var(--sb-line)}
.sb-desc p{max-width:70ch;line-height:1.7}
.sb-footer{background:#10202a;color:#b9c6cd;margin-top:3rem;padding:2rem 0}
.sb-footer a{color:#dbe6ea;text-decoration:none}.sb-footer a:hover{text-decoration:underline}
.sb-reader-wrap{background:#fff;border:1px solid var(--sb-line);border-radius:10px;overflow:hidden}
.sb-reader-bar{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;padding:.6rem .9rem;border-bottom:1px solid var(--sb-line);background:#fafbfc}
#sb-pdf{width:100%;height:calc(100vh - 190px);min-height:480px;border:0;display:block}
#sb-epub{width:100%;height:calc(100vh - 190px);min-height:480px;background:#fff}
#sb-epub.sb-dark{background:#111}
@media (max-width:575px){.sb-hero{padding:2rem 1rem}}
