.st-body[data-st-tpl="ebooks"]{--eb-ink:#121826;--eb-sh:0 1px 2px rgba(18,24,38,.08);--eb-book:0 18px 30px -16px rgba(18,24,38,.55),0 2px 6px rgba(18,24,38,.12);--eb-spine:linear-gradient(90deg,rgba(0,0,0,.22),rgba(255,255,255,.25) 40%,transparent)}
html[dir="rtl"] .st-body[data-st-tpl="ebooks"]{--eb-spine:linear-gradient(270deg,rgba(0,0,0,.22),rgba(255,255,255,.25) 40%,transparent)}
.st-body[data-st-tpl="ebooks"] :is(.st-sh-t,.st-pp-related .st-h,.st-sheet-panel>h2){font-family:var(--st-h);font-weight:400;font-size:26px}
.st-body[data-st-tpl="ebooks"] .st-top-name{font-family:var(--st-h);font-weight:400;font-size:20px}
.st-body[data-st-tpl="ebooks"] .st-hero2.is-spotlight .st-hero2-in{gap:20px}
.st-body[data-st-tpl="ebooks"] .st-hero2-eyebrow{padding:5px 12px;border-radius:999px;background:color-mix(in srgb,var(--st-accent) 12%,#fff);font-size:12.5px}
.st-body[data-st-tpl="ebooks"] .st-hero2.is-spotlight h1{font-size:calc(clamp(34px,9vw,60px) * var(--st-scale,1));font-weight:400;line-height:1.15}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot{background:var(--eb-ink)!important;color:#fff;border-radius:26px;box-shadow:0 30px 60px -30px rgba(18,24,38,.8);overflow:hidden;padding:0}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot .st-card-img{margin:0;aspect-ratio:5/4;box-shadow:none;border-radius:0!important;background:radial-gradient(80% 80% at 50% 40%,color-mix(in srgb,var(--st-accent) 35%,var(--eb-ink)),var(--eb-ink))}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot .st-card-img::after{display:none}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot .st-card-img img{width:auto;height:84%;margin:8% auto 0;aspect-ratio:3/4;object-fit:cover;border-radius:4px 10px 10px 4px;box-shadow:0 20px 40px -10px rgba(0,0,0,.6)}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot .st-noimg{width:auto;height:84%;aspect-ratio:3/4;margin:8% auto 0;border-radius:4px 10px 10px 4px}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot .st-img-blur{opacity:.25}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot .st-card-body{padding:16px 18px 6px!important}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot .st-card-body h2{color:#fff;font-family:var(--st-h);font-weight:400;font-size:26px}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot :is(.st-card-desc,.st-card-cat){color:#a7b0c3}
.st-body[data-st-tpl="ebooks"] .st-card.is-spot .st-price b{color:#fff;font-size:22px}
.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot .st-add{margin:10px 18px 18px!important;background:var(--st-accent);height:48px}
.st-body[data-st-tpl="ebooks"] .st-catsec .st-sh{display:none}
.st-body[data-st-tpl="ebooks"] .st-catsec.is-chips button{height:38px;border:0;background:#fff;box-shadow:var(--eb-sh)}
.st-body[data-st-tpl="ebooks"] .st-catsec.is-chips button.is-on{background:var(--eb-ink);color:#fff}
.st-body[data-st-tpl="ebooks"] .st-search{border-radius:999px;border:0;background:#fff;box-shadow:var(--eb-sh)}
.st-body[data-st-tpl="ebooks"] .st-grid.is-grid{gap:26px 16px}
.st-body[data-st-tpl="ebooks"] .st-card{background:transparent!important;box-shadow:none!important;overflow:visible}
.st-body[data-st-tpl="ebooks"] :is(.st-card-img,.st-pp-img,.st-pp-mini-img){border-radius:4px 12px 12px 4px!important;box-shadow:var(--eb-book)}
html[dir="rtl"] .st-body[data-st-tpl="ebooks"] :is(.st-card-img,.st-pp-img,.st-pp-mini-img){border-radius:12px 4px 4px 12px!important}
.st-body[data-st-tpl="ebooks"] :is(.st-card-img,.st-pp-img,.st-pp-mini-img)::after{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:14px;background:var(--eb-spine);pointer-events:none;z-index:2}
.st-body[data-st-tpl="ebooks"] .st-card:nth-child(3n+1) .st-noimg{background:linear-gradient(160deg,#ff3d6e,#ff8a3d)}
.st-body[data-st-tpl="ebooks"] .st-card:nth-child(3n+2) .st-noimg{background:linear-gradient(160deg,#3d5afe,#00c2ff)}
.st-body[data-st-tpl="ebooks"] :is(:is(.st-card:nth-child(3n+3),.st-pp-img) .st-noimg,.st-pp-mini-img:empty){background:linear-gradient(160deg,#121826,#3b4763)}
.st-body[data-st-tpl="ebooks"] .st-noimg b{font-family:var(--st-h);font-weight:400;color:#fff;font-size:60px}
.st-body[data-st-tpl="ebooks"] .st-card-body{padding:12px 2px 0!important;gap:3px}
.st-body[data-st-tpl="ebooks"] .st-card-body h2{font-size:14.5px;font-weight:800;min-height:0}
.st-body[data-st-tpl="ebooks"] .st-card-cat{color:#7a8193}
.st-body[data-st-tpl="ebooks"] .st-price b{color:var(--st-ink)}
.st-body[data-st-tpl="ebooks"] .st-add{margin:10px 0 0!important;height:38px;border-radius:999px;background:var(--eb-ink);color:#fff}
.st-body[data-st-tpl="ebooks"] .st-add:hover,.st-body[data-st-tpl="ebooks"] .st-card.in-cart .st-add{background:var(--st-accent);color:#fff}
.st-body[data-st-tpl="ebooks"] .st-feats.is-strip .st-feats-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:0;overflow:visible}
.st-body[data-st-tpl="ebooks"] .st-feats.is-strip li{flex-direction:column;align-items:center;text-align:center;gap:8px;padding:16px 8px;border:0;border-radius:16px;background:#fff;box-shadow:var(--eb-sh);min-width:0}
.st-body[data-st-tpl="ebooks"] .st-feats.is-strip b{font-size:13px}
.st-body[data-st-tpl="ebooks"] .st-feats-ic{border-radius:50%;background:color-mix(in srgb,var(--st-accent) 12%,#fff);color:var(--st-accent)}
.st-body[data-st-tpl="ebooks"] .st-banner.is-accent{background:linear-gradient(120deg,var(--st-accent),#ff8a3d);border-radius:26px}
.st-body[data-st-tpl="ebooks"] .st-banner.is-accent .st-banner-deco{inset:auto;inset-block:0;inset-inline-end:18px;width:110px;background:linear-gradient(#fff,#fff) 15% 100%/30px 78% no-repeat,linear-gradient(#121826,#121826) 50% 100%/26px 62% no-repeat,linear-gradient(#ffd166,#ffd166) 85% 100%/24px 70% no-repeat}
.st-body[data-st-tpl="ebooks"] .st-banner.is-accent .st-banner-copy{padding-inline-end:120px}
.st-body[data-st-tpl="ebooks"] .st-banner.is-accent .st-btn{background:#fff;color:var(--eb-ink)}
.st-body[data-st-tpl="ebooks"] .st-faq.is-boxed details{border:0;border-radius:16px;box-shadow:var(--eb-sh);background:#fff}
.st-body[data-st-tpl="ebooks"] .st-pp-media{padding:22px;border-radius:28px;background:radial-gradient(70% 70% at 50% 35%,color-mix(in srgb,var(--st-accent) 14%,#fff),#eceef4)}
.st-body[data-st-tpl="ebooks"] .st-pp-img{width:min(78%,360px);aspect-ratio:3/4;justify-self:center;border:0;background:#fff}
.st-body[data-st-tpl="ebooks"] .st-pp-img img{object-fit:cover}
.st-body[data-st-tpl="ebooks"] .st-pp-img .st-noimg b{font-size:90px}
.st-body[data-st-tpl="ebooks"] .st-pp-body h1{font-family:var(--st-h);font-weight:400;font-size:clamp(28px,4vw,40px);line-height:1.25}
.st-body[data-st-tpl="ebooks"] .st-price.is-lg b{font-size:28px;color:var(--eb-ink)}
.st-body[data-st-tpl="ebooks"] .st-opt{background:#fff;border-color:#e6e8ef;border-radius:14px}
.st-body[data-st-tpl="ebooks"] .st-pd-buy{display:grid;grid-template-columns:auto minmax(0,1fr)}
.st-body[data-st-tpl="ebooks"] .st-pd-buy .st-btn{padding:0 14px;white-space:nowrap;overflow:hidden;background:var(--eb-ink);color:#fff}
.st-body[data-st-tpl="ebooks"] .st-qty{background:#fff;border-radius:999px;box-shadow:var(--eb-sh)}
.st-body[data-st-tpl="ebooks"] .st-qty button{border-radius:50%;background:#f1f2f6}
.st-body[data-st-tpl="ebooks"] .st-pp-actions .st-chip-btn{background:#fff;border:0;box-shadow:var(--eb-sh)}
.st-body[data-st-tpl="ebooks"] .st-pp-desc{border:0;padding:18px;border-radius:20px;background:#fff;box-shadow:var(--eb-sh);font-size:15.5px}
.st-body[data-st-tpl="ebooks"] .st-pp-mini{background:transparent;border:0;padding:0;gap:6px}
.st-body[data-st-tpl="ebooks"] .st-pp-mini-img{position:relative;aspect-ratio:3/4;margin-bottom:6px}
.st-body[data-st-tpl="ebooks"] .st-pp-mini small{color:var(--st-ink);font-weight:800}
.st-body[data-st-tpl="ebooks"] .st-line-img{border-radius:3px 8px 8px 3px;aspect-ratio:3/4;height:auto}
.st-body[data-st-tpl="ebooks"] :is(.st-lines li,.st-sum){padding:10px 14px;border:0;border-radius:16px;background:#f6f6f9}
.st-body[data-st-tpl="ebooks"] .st-input{border-radius:14px;background:#f6f6f9;border-color:transparent}
.st-body[data-st-tpl="ebooks"] .st-cartbar{background:var(--eb-ink);color:#fff}
.st-body[data-st-tpl="ebooks"] .st-foot{background:#fff;border-top:0}
.st-body[data-st-tpl="ebooks"] .st-foot-brand b{font-family:var(--st-h);font-weight:400;font-size:18px}
@media (min-width:640px){.st-body[data-st-tpl="ebooks"] .st-grid.is-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:34px 24px}}
@media (min-width:980px){.st-body[data-st-tpl="ebooks"] .st-grid.is-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.st-body[data-st-tpl="ebooks"] .st-hero2-spot .st-card.is-spot .st-card-img{aspect-ratio:16/10}.st-body[data-st-tpl="ebooks"] .st-pp-related-row{grid-template-columns:repeat(5,minmax(0,1fr))}}
.st-body[data-st-tpl="ebooks"] .st-catsec.is-rings .st-catsec-pic img{width:100%;height:100%;object-fit:cover}
/* The profile opening (views/store_sections/hero.php): no name in the top bar, its links in a menu. */
.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-top{border-bottom:0;background:color-mix(in srgb,var(--st-bg) 88%,transparent)}
.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-top-brand,.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-nav{display:none}
.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-top-menu{display:block;position:relative}
.st-body[data-st-tpl="ebooks"] .st-top-menu summary{list-style:none;width:44px;height:44px;border-radius:14px;border:1px solid var(--st-line);background:var(--st-surface);color:var(--st-ink);display:grid;place-items:center;cursor:pointer}
.st-body[data-st-tpl="ebooks"] .st-top-menu summary::-webkit-details-marker{display:none}
.st-body[data-st-tpl="ebooks"] .st-top-menu summary svg{width:20px;height:20px}
.st-body[data-st-tpl="ebooks"] .st-top-menu[open] summary{background:var(--eb-ink);border-color:var(--eb-ink);color:#fff}
.st-body[data-st-tpl="ebooks"] .st-top-menu nav{position:absolute;top:52px;inset-inline-start:0;z-index:20;min-width:210px;display:grid;gap:2px;padding:8px;border-radius:18px;background:var(--st-surface);box-shadow:0 22px 48px -20px rgba(18,24,38,.45),0 0 0 1px var(--st-line)}
.st-body[data-st-tpl="ebooks"] .st-top-menu nav a{display:flex;align-items:center;gap:10px;height:44px;padding:0 12px;border-radius:12px;color:var(--st-ink);font-size:14.5px;font-weight:600;text-decoration:none}
.st-body[data-st-tpl="ebooks"] .st-top-menu nav a svg{width:18px;height:18px;color:var(--st-accent)}
.st-body[data-st-tpl="ebooks"] .st-top-menu nav a:hover,.st-body[data-st-tpl="ebooks"] .st-top-menu nav a.is-on{background:color-mix(in srgb,var(--st-accent) 10%,var(--st-surface))}
.st-body[data-st-tpl="ebooks"] .st-ebh{margin:10px 0 0;display:flex;flex-direction:column;align-items:center;text-align:center}
.st-body[data-st-tpl="ebooks"] .st-ebh-cover{display:block;width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:26px;background:linear-gradient(135deg,var(--st-accent),var(--eb-ink))}
.st-body[data-st-tpl="ebooks"] .st-ebh-logo{margin-top:-48px;width:96px;height:96px;flex:none;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--st-accent);color:#fff;border:5px solid var(--st-bg);box-shadow:0 14px 26px -14px rgba(18,24,38,.65)}
.st-body[data-st-tpl="ebooks"] .st-ebh-logo img{width:100%;height:100%;object-fit:cover}
.st-body[data-st-tpl="ebooks"] .st-ebh-logo b{font-family:var(--st-h);font-weight:400;font-size:40px}
.st-body[data-st-tpl="ebooks"] .st-ebh h1{margin:12px 0 0;font-family:var(--st-h);font-weight:400;font-size:calc(clamp(24px,6.4vw,40px) * var(--st-scale,1));line-height:1.3;color:var(--st-ink);overflow-wrap:anywhere}
.st-body[data-st-tpl="ebooks"] .st-ebh p{margin:6px 0 0;max-width:34em;font-size:clamp(14px,1.6vw,16px);line-height:1.8;color:var(--st-muted,#5e5560)}
.st-body[data-st-tpl="ebooks"] .st-ebh-act{margin-top:18px;width:100%;max-width:520px;display:grid;gap:8px}
.st-body[data-st-tpl="ebooks"] .st-ebh-act.has-two{grid-template-columns:2fr 1fr}
.st-body[data-st-tpl="ebooks"] .st-ebh-btn{justify-content:center;height:50px;border-radius:999px;background:var(--st-accent);color:#fff;font-weight:700;box-shadow:0 12px 24px -16px var(--st-accent)}
.st-body[data-st-tpl="ebooks"] .st-ebh-btn2{display:flex;align-items:center;justify-content:center;height:50px;padding:0 14px;border-radius:999px;border:1px solid var(--st-line);background:var(--st-surface);color:var(--st-ink);font-size:14.5px;font-weight:700;text-decoration:none}
.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-catsec.is-rings{margin-top:24px;padding:16px;border-radius:22px;background:var(--st-surface);box-shadow:var(--eb-sh)}
.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-catsec.is-rings .st-catsec-list{gap:6px;justify-content:space-around;overflow-x:auto;scrollbar-width:none}
.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-catsec.is-rings .st-catsec-pic{width:58px;height:58px;border:0;box-shadow:none}
.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-catsec.is-rings .st-catsec-pic.is-all{background:var(--st-accent);color:#fff}
.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-catsec.is-rings button.is-on .st-catsec-pic{box-shadow:0 0 0 2.5px var(--st-surface),0 0 0 4.5px var(--st-accent)}
.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-catsec.is-rings button{width:74px;flex:none}
@media (min-width:640px){.st-body[data-st-tpl="ebooks"] .st-ebh-cover{aspect-ratio:auto;height:clamp(240px,34vw,340px)}.st-body[data-st-tpl="ebooks"] .st-ebh-logo{margin-top:-62px;width:124px;height:124px;border-width:6px}}
@media (min-width:980px){.st-body[data-st-tpl="ebooks"] .st-ebh-cover{height:clamp(300px,28vw,400px);border-radius:30px}.st-body[data-st-tpl="ebooks"] .st-ebh-logo{margin-top:-70px;width:140px;height:140px}.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-catsec.is-rings .st-catsec-pic{width:68px;height:68px}.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-catsec.is-rings button{width:92px}.st-body[data-st-tpl="ebooks"]:has(.st-ebh) .st-catsec.is-rings .st-catsec-list{justify-content:center;gap:22px}}
/* Books that look like books: a hard cover with its spine, the page block on the open side,
   a lift and a slight turn of the cover on hover/tap, and a fall into place on first view. */
.st-body[data-st-tpl="ebooks"] .st-grid.is-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px 18px}
.st-body[data-st-tpl="ebooks"] .st-card{perspective:1100px}
.st-body[data-st-tpl="ebooks"] .st-card .st-card-img{aspect-ratio:3/4;overflow:visible;background:#f3efe9;transform-origin:left center;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.2,.8,.2,1),box-shadow .6s cubic-bezier(.2,.8,.2,1);box-shadow:1px 1px 0 #fff,3px 3px 0 #e9e3da,4px 4px 0 #fff,6px 6px 0 #e3dcd2,7px 7px 0 #fff,9px 9px 0 #ddd5ca,0 22px 32px -18px rgba(18,24,38,.55)}
html[dir="rtl"] .st-body[data-st-tpl="ebooks"] .st-card .st-card-img{transform-origin:right center;box-shadow:-1px 1px 0 #fff,-3px 3px 0 #e9e3da,-4px 4px 0 #fff,-6px 6px 0 #e3dcd2,-7px 7px 0 #fff,-9px 9px 0 #ddd5ca,0 22px 32px -18px rgba(18,24,38,.55)}
.st-body[data-st-tpl="ebooks"] .st-card .st-card-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.st-body[data-st-tpl="ebooks"] .st-card .st-img-blur{display:none}
.st-body[data-st-tpl="ebooks"] .st-card .st-card-img::before{content:"";position:absolute;inset:0;z-index:3;border-radius:inherit;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.38) 48%,transparent 60%);background-size:250% 100%;background-position:120% 0;transition:background-position .9s ease}
.st-body[data-st-tpl="ebooks"] .st-card .st-card-img::after{z-index:3;width:16px;background:linear-gradient(90deg,rgba(0,0,0,.28),rgba(255,255,255,.3) 35%,rgba(0,0,0,.08) 60%,transparent)}
html[dir="rtl"] .st-body[data-st-tpl="ebooks"] .st-card .st-card-img::after{background:linear-gradient(270deg,rgba(0,0,0,.28),rgba(255,255,255,.3) 35%,rgba(0,0,0,.08) 60%,transparent)}
.st-body[data-st-tpl="ebooks"] .st-card .st-badges{z-index:4}
.st-body[data-st-tpl="ebooks"] .st-card .st-badge.is-count{display:none}
.st-body[data-st-tpl="ebooks"] .st-card .st-badge.is-digital{z-index:4}
@media (hover:hover){.st-body[data-st-tpl="ebooks"] .st-card:hover .st-card-img{transform:translateY(-6px) rotateY(-16deg)}html[dir="rtl"] .st-body[data-st-tpl="ebooks"] .st-card:hover .st-card-img{transform:translateY(-6px) rotateY(16deg)}.st-body[data-st-tpl="ebooks"] .st-card:hover .st-card-img::before{background-position:-30% 0}.st-body[data-st-tpl="ebooks"] .st-card:hover .st-card-img img{transform:none}}
.st-body[data-st-tpl="ebooks"] .st-card .st-card-img:active{transform:scale(.97)}
.st-body[data-st-tpl="ebooks"][data-st-anim="on"] .st-card.st-reveal{opacity:0;transform:translateY(26px)}
.st-body[data-st-tpl="ebooks"][data-st-anim="on"] .st-card.st-reveal .st-card-img{transform:rotateY(-28deg)}
html[dir="rtl"] .st-body[data-st-tpl="ebooks"][data-st-anim="on"] .st-card.st-reveal .st-card-img{transform:rotateY(28deg)}
.st-body[data-st-tpl="ebooks"][data-st-anim="on"] .st-card.st-reveal.is-in{opacity:1;transform:none}
.st-body[data-st-tpl="ebooks"][data-st-anim="on"] .st-card.st-reveal.is-in .st-card-img{transform:none;transition:transform .9s cubic-bezier(.2,.8,.2,1) calc(var(--i,0) * 70ms + .15s),box-shadow .6s}
.st-body[data-st-tpl="ebooks"] .st-card-body h2{font-size:14.5px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.st-body[data-st-tpl="ebooks"] .st-card-body{padding-top:16px!important}
@media (min-width:640px){.st-body[data-st-tpl="ebooks"] .st-grid.is-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:40px 28px}}
@media (min-width:980px){.st-body[data-st-tpl="ebooks"] .st-grid.is-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (prefers-reduced-motion:reduce){.st-body[data-st-tpl="ebooks"] .st-card .st-card-img,.st-body[data-st-tpl="ebooks"] .st-card .st-card-img::before{transition:none!important;transform:none!important}}
