/* Devansh AI Store — extends /assets/style.css (same light theme, colours and buttons). */
.stg-banner{background:#ffb020;color:#1a1200;text-align:center;font:700 13px/1.4 Arial,sans-serif;padding:6px 12px}
.store-main{min-height:60vh}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.center{text-align:center}
.container.narrow{max-width:760px}
.nav-cart{position:relative}
.cart-badge{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#2958e8;color:#fff;font-size:12px;font-weight:700;margin-left:3px}
.flash{border:1px solid var(--border,#dfe5ee);border-radius:10px;padding:12px 16px;margin:18px 0;background:#f5f7fc}
.flash-ok{border-color:#9fd9b7;background:#e9f7ef}
.flash-bad{border-color:#f0b4b4;background:#fdecec}
.flash-warn{border-color:#f0d58a;background:#fff6e0}
.text-link{color:var(--blue,#2958e8);text-decoration:underline;text-underline-offset:3px}
.text-button{background:none;border:0;color:var(--muted,#627087);cursor:pointer;text-decoration:underline;font:inherit;padding:4px}
.note,.hint,.fine{color:var(--muted,#627087);font-size:14px}
.fine{font-size:13px;margin-top:14px}
.field-err{color:#b3261e;font-size:14px;margin:4px 0 0}

/* Books listing */
.book-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 26px}
.book-filters input,.book-filters select{flex:1 1 200px;min-height:44px;padding:9px 12px;border-radius:9px;border:1px solid var(--border,#dfe5ee);background:#fafbfe;color:#142347;font:inherit}
.book-filters select{flex:0 1 180px}
.book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:26px}
.book-card{display:flex;flex-direction:column;background:var(--panel,#fff);border:1px solid var(--border,#dfe5ee);border-radius:16px;overflow:hidden;transition:transform .2s,border-color .2s}
.book-card:hover{transform:translateY(-3px);border-color:#c5d2ea;box-shadow:0 12px 32px #1839760f}
.book-cover{display:block;background:#f5f7fc;padding:22px 22px 0;text-align:center}
.book-cover img{width:100%;max-width:220px;height:auto;aspect-ratio:300/424;object-fit:cover;border-radius:6px;box-shadow:0 12px 28px #14203b33}
.book-info{display:flex;flex-direction:column;gap:6px;padding:18px 20px 22px;flex:1}
.book-info h2{font-size:20px;margin:4px 0 0;line-height:1.3}
.book-info h2 a{color:inherit;text-decoration:none}
.book-sub{margin:0;color:var(--muted,#627087);font-size:15px}
.book-meta{margin:0;color:var(--muted,#627087);font-size:13px}
.book-price,.bd-price{font-size:26px;font-weight:700;margin:6px 0}
.book-price s,.bd-price s{font-size:16px;color:var(--muted,#627087);font-weight:400}
.book-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}
.book-actions form{margin:0}
.book-actions .button{min-height:46px}
.store-trust{color:var(--muted,#627087);font-size:14px;margin-top:22px}
.empty-box{text-align:center;padding:48px 20px;border:1px dashed var(--border,#dfe5ee);border-radius:16px}

/* Book detail */
.crumbs{font-size:14px;color:var(--muted,#627087);margin-bottom:18px}
.crumbs a{color:var(--muted,#627087)}
.bd-grid{display:grid;grid-template-columns:minmax(220px,380px) 1fr;gap:44px;align-items:start}
.bd-cover img{width:100%;height:auto;border-radius:8px;box-shadow:0 18px 44px #14203b40}
.bd-info h1{font-size:clamp(28px,4vw,42px);margin:8px 0}
.bd-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;margin:20px 0;padding:16px 0;border-top:1px solid var(--border,#dfe5ee);border-bottom:1px solid var(--border,#dfe5ee)}
.bd-facts dt{color:var(--muted,#627087);font-size:13px}
.bd-facts dd{margin:0;font-weight:700}
.bd-desc{margin-top:40px}
@media (max-width:760px){.bd-grid{grid-template-columns:1fr;gap:26px}.bd-cover{max-width:280px;margin:0 auto}}

/* Cart & checkout */
.cart-list{padding:8px 20px}
.cart-row{display:grid;grid-template-columns:56px 1fr auto auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border,#dfe5ee)}
.cart-row img{border-radius:4px;object-fit:cover}
.cart-name span{display:block;color:var(--muted,#627087);font-size:13px}
.cart-price{font-weight:700}
.cart-total{display:flex;justify-content:space-between;padding:16px 0;font-size:20px}
.cart-actions{display:flex;justify-content:space-between;gap:12px;margin-top:22px;flex-wrap:wrap}
.checkout-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:28px;align-items:start}
.co-form label{display:block;margin:14px 0 6px;font-weight:700}
.co-form input:not([type=checkbox]){width:100%;box-sizing:border-box;min-height:46px}
.co-form .check{display:flex;gap:10px;align-items:flex-start;font-weight:400;margin-top:18px}
.co-form .check input{margin-top:5px;width:18px;height:18px}
.co-pay-btn{width:100%;margin-top:20px;min-height:52px;font-size:17px}
.co-summary .sum-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border,#dfe5ee)}
.co-summary .sum-total{font-size:19px;border-bottom:0}
@media (max-width:820px){.checkout-grid{grid-template-columns:1fr}.co-summary{order:-1}.cart-row{grid-template-columns:44px 1fr auto}.cart-row form{grid-column:2}}

/* Order / thank-you */
.ty-card{padding:34px clamp(18px,4vw,40px)}
.ty-card h1{font-size:clamp(26px,4vw,36px);margin:12px 0 8px}
.ty-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;font-size:30px;background:#e1f5ea;color:#18794e;margin-bottom:14px}
.ty-icon.wait{background:#fff3d6;color:#8a5a00}.ty-icon.bad{background:#fde3e3;color:#b3261e}
.ty-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin:22px 0;padding:18px;background:#f5f7fc;border-radius:12px;border:1px solid var(--border,#dfe5ee)}
.ty-facts dt{color:var(--muted,#627087);font-size:13px}.ty-facts dd{margin:0;font-weight:700;word-break:break-word}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace}
.ty-h{font-size:18px;margin:24px 0 10px}
.ty-items,.ty-dl{list-style:none;padding:0;margin:0}
.ty-items li,.ty-dl li{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 0;border-bottom:1px solid var(--border,#dfe5ee)}
.ty-dl small{flex-basis:100%;color:var(--muted,#627087)}
.ty-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.ty-actions form{margin:0}
.ty-support{margin-top:26px;color:var(--muted,#627087);font-size:14px}
.note-box{margin-top:20px;padding:14px 16px;border-radius:10px;background:#e9f7ef;border:1px solid #9fd9b7}
.st-chip{display:inline-block;padding:4px 11px;border-radius:20px;font-size:13px;font-weight:700}
.st-ok{background:#e1f5ea;color:#18794e}.st-wait{background:#fff3d6;color:#8a5a00}.st-bad{background:#fde3e3;color:#b3261e}.st-muted{background:#eceff4;color:#555}
@media (max-width:560px){.ty-facts{grid-template-columns:1fr}}

/* Policies */
.policy h2{font-size:20px;margin-top:26px}
.policy li{margin:6px 0}

.book-filters input:focus,.book-filters select:focus{outline:2px solid #2958e8;outline-offset:1px}
.store-main .card{background:#fff}
