.hsra-cart-button{position:relative;min-width:48px}.hsra-cart-count{position:absolute;right:-6px;top:-9px;min-width:20px;height:20px;padding:0 5px;border-radius:20px;display:grid;place-items:center;background:#9d244b;color:#fff;font-size:10px;font-weight:950;border:2px solid #fff}

/* Full-page public bookstore */
#shopModal.books-page{position:fixed;inset:0;z-index:10000;background:#f4f7fb;display:none;overflow:hidden}
#shopModal.books-page.open{display:block}
.shop-page-shell{width:100vw;height:100dvh;background:#fff;display:flex;flex-direction:column;overflow:hidden}
.shop-head{min-height:104px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 34px;background:linear-gradient(118deg,#071d38,#123a66 58%,#7d2747);color:#fff;border-bottom:1px solid rgba(255,255,255,.14);box-shadow:0 10px 28px rgba(7,29,56,.16);z-index:2}
.shop-brand{display:flex;align-items:center;gap:18px}.shop-brand-mark{width:58px;height:58px;border-radius:14px;display:grid;place-items:center;background:#fff;color:#0b2847;font-family:Georgia,serif;font-weight:900;font-size:18px;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.shop-head small{display:block;color:#f7d88c;font-size:11px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}.shop-head h2{margin:4px 0 5px;font:700 32px Georgia,serif;color:#fff}.shop-head span{color:#eaf1f9;font-size:13px}.shop-head-actions{display:flex;gap:10px;align-items:center}.shop-home-link{border:1px solid rgba(255,255,255,.42);background:rgba(255,255,255,.10);color:#fff;border-radius:11px;padding:10px 15px;font-weight:850;cursor:pointer;backdrop-filter:blur(10px)}
.shop-body{display:grid;grid-template-columns:minmax(0,1fr) 360px;flex:1;min-height:0;background:#f8fafc}.shop-catalog{padding:24px 30px;overflow:auto;min-width:0}.shop-cart{border-left:1px solid #e2e7ee;padding:22px;background:#fbfaf7;overflow:auto}.shop-cart-title{display:flex;align-items:center;justify-content:space-between}.shop-cart-title h3{margin:0 0 13px;color:#112742}.shop-cart-title .hsra-cart-count{position:static;border:0;background:#0d335c;width:auto;height:auto;min-width:28px;padding:4px 8px}
.shop-step{display:none}.shop-step.active{display:block}.shop-body.product-view{grid-template-columns:1fr}.shop-body.product-view .shop-cart{display:none}.shop-body.product-view .shop-catalog{padding:0;overflow:auto;background:#fff}

/* Browse */
.shop-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 230px auto;gap:12px;margin-bottom:22px;position:sticky;top:-24px;z-index:3;padding:18px 0 12px;background:linear-gradient(#f8fafc 72%,rgba(248,250,252,.92),transparent)}
.shop-toolbar input,.shop-toolbar select{padding:13px 15px;border:1px solid #d6dee9;border-radius:12px;background:#fff;color:#122742;font-size:14px}.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding-bottom:30px}.shop-book{border:1px solid #e2e7ed;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 28px rgba(8,25,48,.07);display:flex;flex-direction:column;cursor:pointer;transition:.2s ease;outline:none}.shop-book:hover,.shop-book:focus{transform:translateY(-4px);box-shadow:0 18px 38px rgba(8,25,48,.12);border-color:#c7d6e8}.shop-cover-wrap{background:linear-gradient(180deg,#f4f2ed,#fff);padding:18px 26px 10px;display:grid;place-items:center}.shop-book img{width:100%;height:315px;object-fit:contain;aspect-ratio:11/17}.shop-book-copy{padding:15px 16px 17px;display:flex;flex-direction:column;flex:1}.shop-book-copy small{color:#8d6618;font-weight:900;font-size:10px}.shop-book-copy h3{font-size:17px;line-height:1.28;margin:7px 0;color:#122742}.shop-book-copy p{font-size:11px;color:#687386;margin:0 0 14px}.shop-book-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}.shop-book-bottom b{font-size:18px;color:#102541}.shop-view{border:1px solid #c8d5e5;border-radius:10px;padding:9px 11px;background:#f8fbff;color:#11355f;font-weight:900;cursor:pointer}.shop-book-unavailable{opacity:.86}.shop-empty{padding:32px 12px;text-align:center;color:#7b8492}

/* Amazon-style single book page */
.product-breadcrumb{max-width:1450px;margin:0 auto;padding:18px 28px 0;display:flex;gap:14px;align-items:center;color:#6b7788;font-size:12px}.product-breadcrumb button{border:0;background:none;color:#1b5e9e;font-weight:800;cursor:pointer;padding:7px 0}.shop-product-page{max-width:1450px;margin:0 auto;padding:28px 30px 48px;display:grid;grid-template-columns:minmax(280px,390px) minmax(0,1fr) 320px;gap:42px;align-items:start}.product-gallery{position:sticky;top:22px}.product-main-cover{min-height:510px;border-radius:18px;background:linear-gradient(180deg,#f5f3ee,#fff);display:grid;place-items:center;padding:28px;box-shadow:inset 0 0 0 1px #e8e5dd}.product-main-cover img{max-width:100%;max-height:470px;object-fit:contain;filter:drop-shadow(0 18px 18px rgba(14,31,52,.18))}.product-thumb-row{display:flex;gap:10px;margin-top:12px}.product-thumb-row img{width:64px;height:92px;object-fit:contain;border:1px solid #d9e0e8;border-radius:8px;background:#fff;padding:4px}.product-category{color:#8f2148;text-transform:uppercase;font-size:11px;font-weight:900;letter-spacing:.12em}.product-information h1{font:700 clamp(30px,3vw,45px)/1.09 Georgia,serif;color:#102641;margin:9px 0 10px}.product-author{font-size:15px;color:#4e6178}.product-author b{color:#1d5f96}.product-rule{height:1px;background:#e4e7eb;margin:21px 0}.product-price-line{display:flex;align-items:baseline;gap:16px}.product-price-line span{color:#6d7988;font-size:13px}.product-price-line b{font-size:31px;color:#a21f3f}.product-assurance{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.product-assurance span{padding:8px 11px;border-radius:999px;background:#eef7f4;color:#17694d;font-size:11px;font-weight:800}.product-description,.product-details{border-top:1px solid #e4e8ee;margin-top:24px;padding-top:20px}.product-description h3,.product-details h3{font:700 22px Georgia,serif;color:#102641;margin:0 0 10px}.product-description p{font-size:14px;line-height:1.75;color:#526274;white-space:pre-line}.product-details dl{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.product-details dl div{display:grid;grid-template-columns:100px 1fr;padding:10px 0;border-bottom:1px solid #edf0f4}.product-details dt{font-weight:800;color:#5c6879}.product-details dd{margin:0;color:#172b44}.product-buybox{position:sticky;top:22px;border:1px solid #dfe4e8;border-radius:18px;padding:22px;background:#fff;box-shadow:0 16px 36px rgba(11,31,55,.10)}.product-buybox>small{color:#677587}.product-buy-price{font-size:30px;font-weight:900;color:#a21f3f;margin:8px 0}.product-delivery{font-size:13px;color:#3b5068;margin-bottom:10px}.product-stock{font-size:16px;font-weight:900;margin:8px 0 18px}.product-stock.in{color:#168146}.product-stock.out{color:#b53b3b}.product-buybox label{display:block;font-size:11px;font-weight:800;color:#495a70}.product-buybox select{width:100%;margin-top:6px;padding:11px;border:1px solid #d6dce4;border-radius:10px;background:#fff}.product-add-cart,.product-buy-now{width:100%;border:0;border-radius:999px;padding:13px;margin-top:12px;font-weight:900;cursor:pointer}.product-add-cart{background:#ffd814;color:#1f2731}.product-buy-now{background:#ffa41c;color:#1f2731}.product-add-cart:disabled,.product-buy-now:disabled{opacity:.45;cursor:not-allowed}.product-secure{text-align:center;margin-top:14px;color:#607188;font-size:11px}

/* Cart & checkout */
.shop-cart-item{display:grid;grid-template-columns:48px 1fr auto;gap:9px;padding:10px 0;border-bottom:1px solid #e5e1d8}.shop-cart-item img{width:48px;height:74px;object-fit:contain;background:#f4f1ea;padding:3px;border-radius:4px}.shop-cart-item b{display:block;font-size:11px}.shop-cart-item small{font-size:9px;color:#707a89}.shop-qty{display:flex;align-items:center;gap:5px}.shop-qty button{width:25px;height:25px;border:1px solid #d6dce5;border-radius:7px;background:#fff}.shop-totals{margin-top:15px;padding:13px;border-radius:13px;background:#fff;border:1px solid #e3ded2}.shop-total-row{display:flex;justify-content:space-between;margin:7px 0;font-size:11px}.shop-total-row.grand{padding-top:9px;border-top:1px solid #ddd4c2;font-size:14px;font-weight:950}.shop-checkout-button{width:100%;margin-top:13px;border:0;border-radius:14px;padding:15px;background:linear-gradient(120deg,#8f2148,#d1a238);color:#fff;font-weight:950;cursor:pointer;box-shadow:0 14px 30px rgba(143,33,72,.22)}.shop-checkout-button:disabled{opacity:.7;cursor:progress}.checkout-title-wrap{margin:10px 0 18px}.checkout-title-wrap h3{margin:0 0 6px;font:700 32px Georgia,serif;color:#0b2341}.checkout-title-wrap p{margin:0;color:#667487;font-size:14px}.shop-checkout-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px;border:1px solid #e4e8ef;border-radius:18px;background:#fff;box-shadow:0 16px 34px rgba(10,28,48,.05)}.shop-checkout-form label{font-size:11px;font-weight:850;color:#33425a}.shop-checkout-form input,.shop-checkout-form select,.shop-checkout-form textarea{width:100%;padding:12px;border:1px solid #d9dfe7;border-radius:11px;margin-top:6px;background:#f9fbfe}.shop-checkout-form textarea{min-height:110px;resize:vertical}.shop-checkout-form .full{grid-column:1/-1}.shop-success{text-align:center;padding:36px}.shop-success span{font-size:52px}.shop-track-result{padding:13px;border-radius:12px;background:#eef8f5;margin-top:12px;font-size:11px}
.release-card .shop-add-mini{margin-top:8px;border:0;border-radius:8px;padding:7px 10px;background:#9d244b;color:#fff;font-size:9px;font-weight:900;cursor:pointer}.cover-ai-actions{display:flex;gap:8px;flex-wrap:wrap}.chatgpt-cover-button{background:linear-gradient(120deg,#146b66,#8c3cc2)!important}.chatgpt-cover-note{display:block;color:#69768a;font-size:9px;line-height:1.5;margin-top:7px}

@media(max-width:1250px){.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-body{grid-template-columns:minmax(0,1fr) 320px}.shop-product-page{grid-template-columns:300px minmax(0,1fr) 285px;gap:28px}.product-main-cover{min-height:430px}.product-main-cover img{max-height:390px}}
@media(max-width:950px){.shop-head{padding:16px 20px}.shop-brand-mark{display:none}.shop-head h2{font-size:25px}.shop-body{grid-template-columns:1fr}.shop-cart{display:none}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-toolbar{grid-template-columns:1fr 180px}.shop-toolbar .btn{grid-column:1/-1}.shop-product-page{grid-template-columns:260px 1fr}.product-buybox{position:static;grid-column:1/-1}.product-gallery{position:static}}
@media(max-width:650px){.shop-head{align-items:flex-start}.shop-head span{display:none}.shop-home-link{padding:9px 11px}.shop-catalog{padding:15px}.shop-toolbar{grid-template-columns:1fr;top:-15px}.shop-grid{grid-template-columns:1fr}.shop-book img{height:340px}.shop-product-page{grid-template-columns:1fr;padding:18px}.product-main-cover{min-height:420px}.product-information h1{font-size:30px}.product-details dl{grid-template-columns:1fr}.product-breadcrumb{padding:14px 18px 0}.shop-checkout-form{grid-template-columns:1fr}.shop-checkout-form .full{grid-column:auto}.header-actions .btn-ghost{display:none}}

/* HSRA 1.4.75: Razorpay UPI-only checkout */
.shop-upi-only{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:1px solid #cfe6dd;border-radius:14px;background:#f1fbf7;color:#123f32}
.shop-upi-only b{font-size:14px}.shop-upi-only span{font-size:12px;line-height:1.45;color:#526b63}


/* HSRA 1.4.76: production Razorpay Standard Checkout */
.shop-secure-payment{display:flex;flex-direction:column;gap:7px;padding:15px 16px;border:1px solid #cbdbea;border-radius:14px;background:linear-gradient(135deg,#f6fbff,#f4fbf8);color:#12334e}
.shop-secure-payment b{font-size:14px}.shop-secure-payment span{font-size:12px;line-height:1.5;color:#566b7f}.shop-payment-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:3px}.shop-payment-badges i{font-style:normal;font-size:10px;font-weight:900;padding:5px 8px;border-radius:999px;background:#fff;border:1px solid #d9e4ec;color:#27445e}
#shopCheckoutStatus{margin-top:12px;min-height:22px;color:#445a70;font-size:12px;font-weight:700}
