/* ==========================================================================
   Global Books Portal — Bookshop Design System
   Warm paper palette, deep emerald brand, gold accents.
   Shared by index.html, cart.html and checkout.html.
   ========================================================================== */

:root {
    /* Surfaces */
    --paper:        #FAF6EF;
    --paper-2:      #F3ECE0;
    --surface:      #FFFFFF;

    /* Text */
    --ink:          #191512;
    --ink-2:        #4B423B;
    --muted:        #7C6F64;

    /* Lines */
    --line:         #E7DDCE;
    --line-2:       #D8CBB6;

    /* Brand — deep emerald */
    --brand:        #14543C;
    --brand-dark:   #0D3B29;
    --brand-soft:   #E9F1EC;

    /* Accent — warm gold */
    --accent:       #A9762A;
    --accent-soft:  #FBF0DA;

    /* Status */
    --ok:           #1B7F4E;
    --ok-soft:      #E4F3EA;
    --info:         #1F5F8B;
    --info-soft:    #E4EEF6;
    --danger:       #A32A22;

    /* Shape */
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(25,21,18,.05), 0 1px 3px rgba(25,21,18,.05);
    --shadow:    0 2px 6px rgba(25,21,18,.05), 0 10px 24px rgba(25,21,18,.06);
    --shadow-lg: 0 8px 20px rgba(25,21,18,.08), 0 24px 60px rgba(25,21,18,.12);

    --wrap: 1200px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--ink);
}

p { margin: 0; }

::selection { background: var(--brand); color: #fff; }

.urdu {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    line-height: 2;
    direction: rtl;
}

/* --- Layout --------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}
.wrap-narrow { max-width: 860px; }

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--brand-dark); color: #F3EFE8; }
.section-ink h2, .section-ink h3 { color: #fff; }

.hidden { display: none !important; }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-ink .eyebrow { color: #D9B978; }

h2.title { font-size: clamp(28px, 4vw, 42px); }
h3.title { font-size: clamp(22px, 2.6vw, 28px); }

.lede {
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}
.section-ink .lede { color: rgba(255,255,255,.72); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--brand); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); }

.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--paper-2); }

.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #17853F; }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.btn:disabled,
.btn[disabled] {
    background: var(--paper-2);
    color: var(--muted);
    border-color: var(--line);
    cursor: not-allowed;
    box-shadow: none;
}

/* --- Tags & badges -------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--paper-2);
    color: var(--ink-2);
}
.tag-ok     { background: var(--ok-soft);     color: var(--ok); }
.tag-info   { background: var(--info-soft);   color: var(--info); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }
.tag-muted  { background: var(--paper-2);     color: var(--muted); }

/* --- Announcement bar ----------------------------------------------------- */
.topbar {
    background: var(--brand-dark);
    color: rgba(255,255,255,.86);
    font-size: 12.5px;
    letter-spacing: .02em;
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 38px;
    flex-wrap: wrap;
    text-align: center;
}
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a { text-decoration: underline; text-underline-offset: 3px; }
.topbar .dot { color: #D9B978; font-style: normal; font-size: 7px; line-height: 1; }

/* --- Header --------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(250,246,239,.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 600;
    flex-shrink: 0;
}
.brand-name {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.1;
}
.brand-sub {
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .16s, border-color .16s;
}
.nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background .18s;
}
.cart-btn:hover { background: var(--brand-dark); }
.cart-btn svg { width: 17px; height: 17px; }
.cart-btn .count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 11.5px;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
}

/* --- Shop hero (books first) ---------------------------------------------- */
.shop {
    padding: 52px 0 64px;
    background:
        radial-gradient(1000px 420px at 82% -10%, rgba(20,84,60,.07), transparent 62%),
        radial-gradient(760px 360px at 8% 0%,  rgba(169,118,42,.09), transparent 60%);
}
.shop-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.shop-head h1 {
    font-size: clamp(30px, 4.4vw, 46px);
    max-width: 15ch;
}
.shop-head .lede { max-width: 46ch; }

.shop-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* --- Book grid ------------------------------------------------------------ */
.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.book-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.book-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
    box-shadow: var(--shadow-lg);
}
.book-card.is-soon { opacity: .82; }
.book-card.is-soon:hover { transform: none; box-shadow: var(--shadow-sm); }

.book-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(160deg, var(--paper-2), #E6DAC7);
    overflow: hidden;
}
.book-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.book-card:hover .book-media img { transform: scale(1.04); }

.book-flags {
    position: absolute;
    inset: 12px 12px auto 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}
.book-flags .tag { background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.book-flags .tag-ok     { background: var(--ok);     color: #fff; }
.book-flags .tag-info   { background: var(--info);   color: #fff; }
.book-flags .tag-accent { background: var(--accent); color: #fff; }

.book-soon {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 6px;
    background: rgba(13,59,41,.62);
    color: #fff;
    backdrop-filter: blur(2px);
}
.book-soon strong { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.book-soon span   { font-size: 13px; color: rgba(255,255,255,.8); }

.book-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    gap: 10px;
}
.book-kicker {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}
.book-title { font-size: 20px; }
.book-title.urdu { font-size: 22px; }
.book-sub { font-size: 14px; color: var(--muted); }

.book-specs {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
    display: grid;
    gap: 3px;
}

.book-foot { margin-top: auto; padding-top: 14px; display: grid; gap: 12px; }

.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
}
.price-was {
    font-size: 14px;
    color: var(--muted);
    text-decoration: line-through;
}
.price-off {
    font-size: 12px;
    font-weight: 700;
    color: var(--ok);
}
.price-tba { font-family: 'Fraunces', serif; font-size: 22px; color: var(--muted); }

/* --- Assurance strip ------------------------------------------------------ */
.assurance {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.assurance div { display: flex; align-items: flex-start; gap: 12px; }
.assurance svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.assurance strong { display: block; font-size: 14px; }
.assurance span   { font-size: 13px; color: var(--muted); }

/* --- Spotlight ------------------------------------------------------------ */
.spotlight {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}
.spotlight-art {
    position: relative;
    padding: 26px;
    display: grid;
    place-items: center;
}
.spotlight-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brand-soft);
    border-radius: var(--r-lg);
    transform: rotate(-2.5deg);
}
.spotlight-art img {
    position: relative;
    width: 100%;
    max-width: 340px;
    border-radius: 4px 10px 10px 4px;
    box-shadow: var(--shadow-lg), -6px 0 0 0 #DCCDB2, -8px 0 0 0 var(--line-2);
}

.fact-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
.fact-grid div { background: var(--paper); padding: 16px 18px; }
.fact-grid dt { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact-grid dd { margin: 4px 0 0; font-family: 'Fraunces', serif; font-size: 18px; }

.spotlight-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Contents / parts ----------------------------------------------------- */
.parts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.part {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px;
    transition: transform .2s, box-shadow .2s;
}
.part:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.part-num {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    color: var(--accent);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.part h3 { margin: 10px 0 6px; font-size: 24px; }
.part .urdu-sub { font-size: 15px; color: var(--muted); margin-bottom: 12px; text-align: left; }
.part p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.part ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 13.5px;
    color: var(--muted);
}
.part li { padding-left: 20px; position: relative; }
.part li::before {
    content: '';
    position: absolute;
    left: 4px; top: 9px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* --- Quote ---------------------------------------------------------------- */
.pullquote { text-align: center; max-width: 800px; margin: 0 auto; }
.pullquote p {
    font-family: 'Fraunces', serif;
    font-size: clamp(22px, 3.1vw, 34px);
    line-height: 1.4;
    color: #fff;
}
.pullquote footer {
    margin-top: 26px;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #D9B978;
}

/* --- Reviews -------------------------------------------------------------- */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.review {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.stars { color: var(--accent); font-size: 14px; letter-spacing: 3px; }
.review p { font-size: 15px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.review cite {
    display: block;
    font-style: normal;
    font-size: 13px;
    color: var(--muted);
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.review cite strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }

/* --- Author --------------------------------------------------------------- */
.author-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 44px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 40px;
}
.author-portrait {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper-2);
    border: 6px solid var(--paper-2);
}
.author-portrait img { width: 100%; height: 100%; object-fit: cover; }
.author-card p { color: var(--ink-2); line-height: 1.75; }
.author-card p + p { margin-top: 14px; }
.creds { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Order / contact ------------------------------------------------------ */
.order-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
}
.order-panel > div { padding: 44px; }
.order-panel .order-cta { background: var(--brand); color: #fff; }
.order-panel .order-cta h2 { color: #fff; }
.order-panel .order-cta p { color: rgba(255,255,255,.78); margin-top: 12px; }
.order-actions { margin-top: 28px; display: grid; gap: 12px; }

.contact-list { margin-top: 22px; display: grid; gap: 16px; }
.contact-list div { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.contact-list dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; }
.contact-list dd a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255,255,255,.72);
    padding: 56px 0 0;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 44px;
}
.site-footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #D9B978;
    margin-bottom: 16px;
}
.site-footer .brand-mark { background: rgba(255,255,255,.12); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub  { color: rgba(255,255,255,.5); }
.site-footer p { line-height: 1.7; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    display: grid; place-items: center;
    transition: background .18s, color .18s;
}
.socials a:hover { background: #D9B978; color: var(--brand-dark); }
.socials svg { width: 17px; height: 17px; }

.footer-bar {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: rgba(255,255,255,.55);
}
.footer-bar a { color: #D9B978; }
.footer-bar a:hover { text-decoration: underline; }

/* --- Toast ---------------------------------------------------------------- */
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    width: min(340px, calc(100vw - 40px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--ok);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    padding: 18px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.2,.8,.3,1), opacity .28s;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast-head { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.toast-head svg { width: 19px; height: 19px; color: var(--ok); }
.toast p { margin: 6px 0 14px; font-size: 13.5px; color: var(--muted); }
.toast-actions { display: flex; gap: 10px; }
.toast-actions .btn { flex: 1; padding: 10px 12px; font-size: 13px; }

/* --- Page header (cart / checkout) ---------------------------------------- */
.page-head {
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 44px 0;
}
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-head .lede { margin-top: 8px; }

.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--brand); }

/* --- Panels & forms ------------------------------------------------------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 21px; margin-bottom: 20px; }
.panel h3 { font-size: 17px; }

.field { display: block; margin-bottom: 0; }
.field label,
label.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 7px;
}
.input, input[type="text"], input[type="tel"], input[type="email"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    font-size: 15px;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(20,84,60,.12);
}
input::placeholder, textarea::placeholder { color: #A79B8F; }
select option { background: #fff; color: var(--ink); }

.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.field-full { grid-column: 1 / -1; }
.field-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* Radio cards */
.choice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    cursor: pointer;
    transition: border-color .16s, background .16s;
}
.choice:hover { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.choice > span { flex: 1; }
.choice strong { display: block; font-size: 15px; color: var(--ink); }
.choice strong + span { display: block; font-size: 13.5px; color: var(--muted); }
.choices { display: grid; gap: 12px; }

.callout {
    padding: 20px;
    background: var(--accent-soft);
    border: 1px solid #EBD9AF;
    border-radius: var(--r);
}
.callout h3 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.callout dl { display: grid; gap: 10px; margin: 0; font-size: 14px; }
.callout dl > div { display: flex; justify-content: space-between; gap: 16px; }
.callout dt { color: var(--muted); }
.callout dd { margin: 0; font-weight: 600; }
.callout .note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* --- Cart / order layout -------------------------------------------------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.sticky-col { position: sticky; top: 92px; }

.cart-lines { display: grid; gap: 16px; }
.cart-line {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px;
}
.cart-line-media {
    aspect-ratio: 3/4;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--paper-2);
}
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h3 { font-size: 18px; }
.cart-line h3.urdu { text-align: left; font-size: 19px; }
.cart-line .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cart-line-side { display: grid; gap: 12px; justify-items: end; }
.cart-line .price { font-size: 20px; }

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--paper);
}
.qty button {
    width: 34px; height: 34px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 17px;
    color: var(--ink-2);
    transition: background .15s, color .15s;
}
.qty button:hover { background: var(--brand); color: #fff; }
.qty span { min-width: 40px; text-align: center; font-weight: 600; font-size: 14px; }

.link-danger {
    background: none; border: 0; padding: 0;
    font-size: 13px; color: var(--danger);
    cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.summary { display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); }
.summary-row .free { color: var(--ok); font-weight: 600; }
.summary-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
}

.mini-lines { display: grid; gap: 14px; max-height: 320px; overflow-y: auto; }
.mini-line { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; }
.mini-line .thumb { aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.mini-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-line strong { display: block; font-size: 13.5px; line-height: 1.4; }
.mini-line span { font-size: 12.5px; color: var(--muted); }
.mini-line .amt { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.empty-state { text-align: center; padding: 72px 24px; }
.empty-state .icon {
    width: 72px; height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: grid; place-items: center;
}
.empty-state .icon svg { width: 32px; height: 32px; color: var(--brand); }
.empty-state h2 { font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

.trust-note { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.trust-note div { display: flex; gap: 10px; align-items: flex-start; }
.trust-note svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; margin-top: 3px; }

/* --- Success -------------------------------------------------------------- */
.success { max-width: 640px; margin: 0 auto; text-align: center; }
.success .check {
    width: 76px; height: 76px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--ok-soft);
    display: grid; place-items: center;
}
.success .check svg { width: 36px; height: 36px; color: var(--ok); }
.order-number {
    margin: 26px 0;
    padding: 22px;
    background: var(--brand-soft);
    border: 1px solid #CFE0D5;
    border-radius: var(--r);
}
.order-number span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.order-number strong {
    display: block;
    margin-top: 6px;
    font-family: 'Fraunces', serif;
    font-size: 30px;
    color: var(--brand);
    letter-spacing: .04em;
}

/* --- Reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
    .book-grid   { grid-template-columns: repeat(2, 1fr); }
    .assurance   { grid-template-columns: repeat(2, 1fr); }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .sticky-col  { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .spotlight   { grid-template-columns: 1fr; gap: 36px; }
    .parts       { grid-template-columns: 1fr; }
    .reviews     { grid-template-columns: 1fr; }
    .order-panel { grid-template-columns: 1fr; }
    .author-card { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
    .author-portrait { max-width: 180px; margin: 0 auto; }
    .creds { justify-content: center; }
    .nav { display: none; }
}

@media (max-width: 720px) {
    .section { padding: 52px 0; }
    .wrap { padding: 0 18px; }

    /* Get the books above the fold: tighten the intro, keep one topbar line */
    .shop { padding: 24px 0 44px; }
    .shop-head { margin-bottom: 22px; }
    .shop-head h1 { font-size: 28px; max-width: none; }
    .shop-head .lede { font-size: 15px; margin-top: 10px; }
    .shop-meta { display: none; }
    .eyebrow { font-size: 11px; margin-bottom: 8px; }

    .topbar .wrap {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
    }
    .topbar .wrap::-webkit-scrollbar { display: none; }
    .topbar span { flex: 0 0 auto; }
    .book-grid { grid-template-columns: 1fr; gap: 20px; }
    .field-grid, .field-grid-3 { grid-template-columns: 1fr; }
    .fact-grid { grid-template-columns: 1fr; }
    .panel { padding: 22px; }
    .order-panel > div { padding: 30px 24px; }
    .cart-line { grid-template-columns: 80px 1fr; }
    .cart-line-side { grid-column: 1 / -1; justify-items: stretch; }
    .cart-line-side .price { text-align: left; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .topbar .wrap { gap: 14px; font-size: 11.5px; }
    .toast { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

@media (max-width: 420px) {
    .book-grid { grid-template-columns: 1fr; }
    .brand-name { font-size: 15px; }
    .cart-btn { padding: 9px 13px; }
}
