@font-face {
    font-family: "Noto Naskh Arabic";
    src: url("../fonts/ebook/NotoNaskhArabic.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Noto Nastaliq Urdu";
    src: url("../fonts/ebook/NotoNastaliqUrdu.woff2") format("woff2");
    font-display: swap;
}

:root {
    --ink: #06262d;
    --muted: #695e4c;
    --paper: #fff8e9;
    --wash: #efe4cf;
    --green: #073238;
    --gold: #c99b42;
    --line: rgba(96, 70, 30, .16);
    --shadow: 0 28px 70px rgba(40, 28, 10, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        linear-gradient(rgba(255, 248, 233, .9), rgba(255, 248, 233, .96)),
        repeating-linear-gradient(45deg, rgba(201, 155, 66, .075) 0 1px, transparent 1px 26px),
        var(--wash);
    color: var(--ink);
    direction: rtl;
    text-align: right;
    font-family: "Noto Naskh Arabic", "Noto Nastaliq Urdu", Tahoma, Arial, sans-serif;
}

a,
a:hover {
    color: inherit;
    text-decoration: none;
}

.store-page {
    min-height: 100vh;
    overflow: hidden;
}

.store-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(96, 70, 30, .12);
    background: rgba(255, 248, 233, .92);
    backdrop-filter: blur(16px);
}

.nav-inner,
.store-wrap {
    width: min(1180px, calc(100% - 42px));
    margin: 0 auto;
}

.nav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(145deg, #f7d88c, #b97b24);
    color: #06262d;
    box-shadow: 0 15px 34px rgba(62, 39, 10, .2);
    font-size: 1.35rem;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.5;
}

.brand span {
    color: #8b6727;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.4;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #24453d;
    font-size: .98rem;
    font-weight: 800;
}

.nav-links a {
    padding: 9px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    border-bottom-color: var(--gold);
}

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(460px, 1.18fr);
    align-items: center;
    gap: clamp(36px, 5vw, 72px);
    padding: clamp(34px, 5vw, 66px) 0 56px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 36px -60px 42px;
    border: 1px solid rgba(201, 155, 66, .18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 20%, rgba(201, 155, 66, .16), transparent 17rem),
        linear-gradient(90deg, rgba(255, 253, 247, .84), rgba(255, 248, 233, .46));
    box-shadow: var(--shadow);
    z-index: -1;
}

.hero-copy {
    padding: 20px 0;
}

.hero-copy h1 {
    max-width: 560px;
    margin: 0 0 18px;
    color: #06262d;
    font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
    font-size: clamp(2.15rem, 3.7vw, 4.05rem);
    font-weight: 700;
    line-height: 1.72;
}

.hero-copy p {
    max-width: 560px;
    margin: 0;
    color: #4c4639;
    font-size: clamp(1.04rem, 1.2vw, 1.18rem);
    font-weight: 600;
    line-height: 2.25;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.store-action {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.store-action:hover {
    transform: translateY(-2px);
}

.primary-action {
    background: linear-gradient(135deg, #073238, #0d5a4f);
    color: #fff8e6;
    box-shadow: 0 20px 42px rgba(7, 50, 56, .23);
}

.soft-action {
    border-color: rgba(153, 102, 26, .28);
    background: rgba(255, 253, 247, .74);
    color: #173932;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 560px;
    margin-top: 34px;
}

.hero-point {
    min-height: 80px;
    padding: 12px 14px;
    border-right: 1px solid rgba(201, 155, 66, .28);
    color: #6b5422;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.8;
}

.hero-point i {
    display: block;
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 1.2rem;
}

.cover-stage {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.2vw, 28px);
    direction: ltr;
}

.cover-stage::before {
    content: "";
    position: absolute;
    right: 1%;
    bottom: 50px;
    width: 86%;
    height: 92px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(116, 78, 25, .18), rgba(82, 52, 15, .08)),
        repeating-linear-gradient(90deg, rgba(201, 155, 66, .2) 0 1px, transparent 1px 22px);
    box-shadow: 0 25px 45px rgba(55, 34, 8, .16);
}

.hero-cover {
    position: relative;
    width: min(245px, 34%);
    aspect-ratio: .66;
    border-radius: 8px;
    background: #fbf0d9;
    box-shadow: 0 34px 62px rgba(38, 24, 8, .28);
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease;
}

.hero-cover:first-child {
    margin-top: 58px;
}

.hero-cover:nth-child(2) {
    width: min(270px, 38%);
    margin-bottom: 44px;
    z-index: 2;
}

.hero-cover:hover {
    transform: translateY(-8px);
    box-shadow: 0 42px 74px rgba(38, 24, 8, .34);
}

.cover-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.book-section {
    position: relative;
    padding: 42px 0 76px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
    font-size: clamp(1.85rem, 2.8vw, 3rem);
    font-weight: 700;
    line-height: 1.7;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 2;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.book-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 16px;
    border: 1px solid rgba(96, 70, 30, .14);
    border-radius: 8px;
    background: rgba(255, 253, 247, .78);
    color: var(--ink);
    box-shadow: 0 18px 44px rgba(45, 31, 11, .1);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.book-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 155, 66, .38);
    box-shadow: 0 28px 58px rgba(45, 31, 11, .16);
}

.book-cover {
    width: 100%;
    aspect-ratio: .66;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #fbf0d9;
    box-shadow: 0 18px 34px rgba(35, 23, 8, .17);
}

.book-card h3 {
    margin: 18px 0 6px;
    color: #082b31;
    font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.65;
}

.book-card p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.95;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.meta-row b {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid rgba(201, 155, 66, .22);
    border-radius: 8px;
    background: #fbf0d7;
    color: #6a4a16;
    font-size: .8rem;
    font-weight: 800;
}

.card-action {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    background: var(--green);
    color: #fff8e6;
    font-size: .94rem;
}

@media (max-width: 1020px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cover-stage {
        min-height: 440px;
    }

    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .store-nav {
        display: none;
    }

    .nav-inner,
    .store-wrap {
        width: min(100% - 28px, 1180px);
    }

    .nav-inner {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        font-size: .9rem;
    }

    .hero::before {
        inset: 20px -12px 28px;
    }

    .hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px 0 30px;
    }

    .cover-stage {
        order: -1;
        min-height: 230px;
        width: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 12px;
        padding: 4px 10px 0;
    }

    .cover-stage::before {
        right: 4%;
        bottom: 2px;
        width: 92%;
        height: 46px;
    }

    .hero-cover {
        width: 132px;
        max-width: 42%;
        box-shadow: 0 18px 30px rgba(38, 24, 8, .22);
    }

    .hero-cover:first-child {
        margin-top: 0;
        transform: rotate(-2deg);
    }

    .hero-cover:nth-child(2) {
        width: 150px;
        max-width: 47%;
        margin-bottom: 8px;
    }

    .hero-copy {
        padding: 0 4px;
    }

    .hero-copy h1 {
        margin-bottom: 10px;
    }

    .hero-copy p {
        line-height: 2;
    }

    .hero-copy h1 {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .store-action {
        width: 100%;
    }

    .hero-points {
        display: none;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }
}
