/* =========================================================
   INK & ARCHIVE — BOOK DETAILS PAGE
   File: css/pages/book-details.css

   Brand Palette:
   Navy       #1F2544
   Periwinkle #474F7A
   Purple     #81689D
   Pink       #FFD0EC

   All styles are scoped to .book-details-page.
   Shared navbar and footer remain untouched.
========================================================= */


/* =========================================================
   1. PAGE FOUNDATION
========================================================= */

.book-details-page {
    --book-navy: #1F2544;
    --book-periwinkle: #474F7A;
    --book-purple: #81689D;
    --book-pink: #FFD0EC;

    --book-soft-pink: #FFF0F8;
    --book-lavender: #F0ECF7;
    --book-light-lavender: #E8E1F0;
    --book-cream: #FBF6F0;

    --book-text: #34334A;
    --book-muted: #716F82;
    --book-border: #E5DCEB;

    width: 100%;
    max-width: 100%;
    overflow-x: clip;

    color: var(--book-text);
    background: var(--book-cream);

    font-family: "Poppins", sans-serif;
}

.book-details-page *,
.book-details-page *::before,
.book-details-page *::after {
    box-sizing: border-box;
}

.book-details-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.book-details-page img {
    display: block;
    max-width: 100%;
}

.book-details-page button,
.book-details-page input {
    font: inherit;
}

.book-details-page a {
    -webkit-tap-highlight-color: transparent;
}

.book-details-page button:focus-visible,
.book-details-page a:focus-visible {
    outline: 2px solid var(--book-purple);
    outline-offset: 4px;
}


/* =========================================================
   2. BREADCRUMB NAVIGATION
========================================================= */

.book-details-page .book-breadcrumb-section {
    padding: 17px 0;
    background: #F1EBF4;
    border-bottom: 1px solid var(--book-border);
}

.book-details-page .book-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;

    color: var(--book-muted);
    font-size: 11px;
}

.book-details-page .book-breadcrumb a {
    color: var(--book-periwinkle);
    text-decoration: none;
    transition: color 0.25s ease;
}

.book-details-page .book-breadcrumb a:hover {
    color: var(--book-purple);
}

.book-details-page .book-breadcrumb-current {
    color: var(--book-navy);
    font-weight: 600;
}


/* =========================================================
   3. MAIN BOOK SHOWCASE
========================================================= */

.book-details-page .book-showcase-section {
    position: relative;
    padding: 65px 0 75px;

    background:
        radial-gradient(circle at 8% 12%,
            rgba(255, 208, 236, 0.38),
            transparent 29%),
        radial-gradient(circle at 94% 85%,
            rgba(129, 104, 157, 0.10),
            transparent 28%),
        linear-gradient(120deg, #FBF6F0, #F3EDF7);
}

.book-details-page .book-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 65px;
}


/* ---------- BOOK GALLERY ---------- */

.book-details-page .book-gallery {
    min-width: 0;
    text-align: center;
}

.book-details-page .book-main-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 500px;
    padding: 35px;

    overflow: hidden;

    border: 1px solid rgba(129, 104, 157, 0.18);
    border-radius: 24px;

    background:
        radial-gradient(ellipse at center,
            #FFFFFF 0%,
            #F9EAF4 55%,
            #EAE3F1 100%);

    box-shadow:
        0 22px 48px rgba(31, 37, 68, 0.09),
        inset 0 0 35px rgba(255, 255, 255, 0.55);
}

.book-details-page .book-main-image img {
    width: 270px;
    height: 405px;

    object-fit: contain;

    filter: drop-shadow(12px 17px 13px rgba(31, 37, 68, 0.23));

    transition: transform 0.4s ease;
}

.book-details-page .book-main-image:hover img {
    transform: translateY(-7px) rotate(-1deg);
}

.book-details-page .book-detail-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 1;

    padding: 8px 15px;

    border: 1px solid rgba(31, 37, 68, 0.06);
    border-radius: 30px;

    color: var(--book-navy);
    background: var(--book-pink);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.book-details-page .book-image-caption {
    margin-top: 18px;

    color: var(--book-muted);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.book-details-page .book-thumbnail-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;

    margin-top: 23px;
}

.book-details-page .book-thumbnail {
    width: 78px;
    height: 88px;
    padding: 6px;

    overflow: hidden;

    border: 1px solid var(--book-border);
    border-radius: 11px;

    background: #FFFFFF;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.book-details-page .book-thumbnail:hover,
.book-details-page .book-thumbnail-active {
    border: 2px solid var(--book-purple);

    transform: translateY(-3px);

    box-shadow: 0 7px 15px rgba(31, 37, 68, 0.09);
}

.book-details-page .book-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.book-details-page .book-gallery-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 17px;

    color: var(--book-muted);
    font-size: 11px;
}

.book-details-page .book-gallery-note span {
    color: var(--book-purple);
}


/* ---------- PURCHASE INFORMATION ---------- */

.book-details-page .book-purchase-details {
    min-width: 0;
}

.book-details-page .book-detail-category {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 18px;

    color: var(--book-purple);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1.7;
}

.book-details-page .book-detail-category-line {
    display: inline-block;
    width: 28px;
    height: 1px;

    flex-shrink: 0;

    background: var(--book-purple);
}

.book-details-page .book-purchase-details h1 {
    margin: 0 0 13px;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.12;
}

.book-details-page .book-purchase-details h1 span {
    display: block;
    color: var(--book-purple);
}

.book-details-page .book-detail-author {
    margin: 0 0 19px;

    color: var(--book-muted);
    font-size: 13px;
}

.book-details-page .book-detail-author a {
    color: var(--book-purple);
    font-weight: 600;
    text-decoration: none;
}

.book-details-page .book-detail-author a:hover {
    color: var(--book-navy);
}


/* ---------- RATING ---------- */

.book-details-page .book-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 23px;
}

.book-details-page .book-rating-stars {
    color: #D49A37;

    font-size: 16px;
    letter-spacing: 2px;
}

.book-details-page .book-rating span {
    color: var(--book-navy);
    font-size: 12px;
    font-weight: 600;
}

.book-details-page .book-rating a {
    color: var(--book-muted);
    font-size: 11px;
    text-decoration: none;
}

.book-details-page .book-rating a:hover {
    color: var(--book-purple);
}


/* ---------- DESCRIPTION ---------- */

.book-details-page .book-short-description {
    max-width: 540px;

    margin: 0 0 23px;

    color: #626075;

    font-size: 12px;
    line-height: 2;
}

.book-details-page .book-highlight-list {
    display: grid;
    gap: 12px;

    margin-bottom: 27px;
}

.book-details-page .book-highlight {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--book-text);
    font-size: 11px;
    line-height: 1.7;
}

.book-details-page .book-highlight-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    border-radius: 50%;

    color: var(--book-purple);
    background: var(--book-lavender);

    font-size: 12px;
}


/* ---------- PRICE ---------- */

.book-details-page .book-price-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 7px;
}

.book-details-page .book-current-price {
    color: var(--book-navy);

    font-size: 31px;
    font-weight: 700;
}

.book-details-page .book-original-price {
    color: #8E8A9D;
    font-size: 14px;
    text-decoration: line-through;
}

.book-details-page .book-discount {
    padding: 6px 11px;

    border-radius: 5px;

    color: #276447;
    background: #E4F2E8;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.book-details-page .book-tax-note {
    margin: 0 0 20px;

    color: var(--book-muted);
    font-size: 10px;
}


/* ---------- STOCK STATUS ---------- */

.book-details-page .book-stock-status {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 23px;

    color: #26724A;

    font-size: 11px;
    font-weight: 600;
}

.book-details-page .book-stock-indicator {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #43A66E;

    box-shadow: 0 0 0 4px rgba(67, 166, 110, 0.12);
}


/* ---------- QUANTITY SELECTOR ---------- */

.book-details-page .book-quantity-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 17px;

    margin-bottom: 23px;
}

.book-details-page .book-quantity-section>label {
    color: var(--book-navy);

    font-size: 11px;
    font-weight: 600;
}

.book-details-page .book-quantity-control {
    display: flex;
    align-items: center;

    height: 42px;

    overflow: hidden;

    border: 1px solid #DCD3E2;
    border-radius: 7px;

    background: #FFFFFF;
}

.book-details-page .book-quantity-control button {
    width: 39px;
    height: 100%;

    border: none;

    color: var(--book-navy);
    background: transparent;

    font-size: 17px;
    cursor: pointer;

    transition: background 0.2s ease;
}

.book-details-page .book-quantity-control button:hover {
    background: var(--book-lavender);
}

.book-details-page .book-quantity-control input {
    width: 40px;
    height: 100%;
    padding: 0;

    border: none;
    outline: none;

    color: var(--book-navy);
    background: transparent;

    text-align: center;
    font-size: 12px;
    font-weight: 600;
}


/* ---------- PURCHASE BUTTONS ---------- */

.book-details-page .book-purchase-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-bottom: 24px;
}

.book-details-page .book-add-to-cart,
.book-details-page .book-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 0;
    min-height: 51px;
    padding: 12px 16px;

    border: 1px solid var(--book-navy);
    border-radius: 7px;

    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.book-details-page .book-add-to-cart {
    color: #FFFFFF;
    background: var(--book-navy);
}

.book-details-page .book-add-to-cart:hover {
    border-color: var(--book-purple);
    background: var(--book-purple);

    transform: translateY(-2px);
}

.book-details-page .book-buy-now {
    color: var(--book-navy);
    background: var(--book-pink);
    border-color: var(--book-pink);
}

.book-details-page .book-buy-now:hover {
    color: #FFFFFF;
    background: var(--book-purple);
    border-color: var(--book-purple);

    transform: translateY(-2px);
}


/* ---------- DELIVERY INFORMATION ---------- */

.book-details-page .book-delivery-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    padding: 17px;

    border: 1px solid var(--book-border);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.65);
}

.book-details-page .book-delivery-item {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;

    color: var(--book-muted);

    font-size: 10px;
    line-height: 1.6;
}

.book-details-page .book-delivery-icon {
    flex-shrink: 0;

    color: var(--book-purple);
    font-size: 19px;
}

.book-details-page .book-delivery-item strong {
    display: block;
    margin-bottom: 4px;

    color: var(--book-navy);
    font-size: 10px;
}

.book-details-page .book-delivery-item p {
    margin: 0;

    color: var(--book-muted);
    font-size: 9px;
    line-height: 1.6;
}

.book-details-page .book-product-code {
    margin-top: 18px;

    color: #858195;
    font-size: 9px;
    letter-spacing: 0.7px;
}

.book-details-page .book-product-code strong {
    margin-left: 5px;
    color: var(--book-navy);
}


/* =========================================================
   4. BOOK STORY / DESCRIPTION SECTION
========================================================= */

.book-details-page .book-story-section {
    padding: 82px 0;

    background:
        radial-gradient(circle at 100% 20%,
            rgba(255, 208, 236, 0.19),
            transparent 28%),
        #FBF7FC;
}

.book-details-page .book-story-heading {
    margin-bottom: 43px;
    text-align: center;
}

.book-details-page .book-details-eyebrow {
    display: block;
    margin-bottom: 12px;

    color: var(--book-purple);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.book-details-page .book-story-heading h2,
.book-details-page .book-reasons-heading h2,
.book-details-page .book-specifications-intro h2,
.book-details-page .book-reviews-heading h2,
.book-details-page .book-related-heading h2 {
    margin: 0;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.25;
}

.book-details-page .book-story-heading h2 span {
    display: block;
    color: var(--book-purple);
}

.book-details-page .book-story-heading p {
    margin: 13px 0 0;

    color: var(--book-muted);
    font-size: 12px;
    line-height: 1.8;
}

.book-details-page .book-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 60px;
}

.book-details-page .book-story-content {
    min-width: 0;
}

.book-details-page .book-story-label {
    display: block;
    margin-bottom: 13px;

    color: var(--book-purple);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.book-details-page .book-story-content h3 {
    margin: 0 0 20px;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: 25px;
    line-height: 1.4;
}

.book-details-page .book-story-content p {
    margin: 0 0 16px;

    color: #626075;

    font-size: 12px;
    line-height: 2;
}

.book-details-page .book-story-quote {
    position: relative;

    margin: 27px 0 10px;
    padding: 22px 24px;

    border-left: 3px solid var(--book-purple);
    border-radius: 0 11px 11px 0;

    color: var(--book-navy);
    background: linear-gradient(120deg, #F0EAF6, #FCEFF6);

    font-family: "Playfair Display", serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
}

.book-details-page .book-story-quote>span:first-child {
    display: block;

    color: var(--book-purple);

    font-size: 32px;
    line-height: 1;
}

.book-details-page .book-quote-credit {
    display: block;
    margin: 12px 0 0 25px;

    color: var(--book-muted);

    font-family: "Poppins", sans-serif;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.book-details-page .book-story-image {
    position: relative;
    min-width: 0;

    padding: 14px;

    border: 1px solid rgba(129, 104, 157, 0.12);
    border-radius: 18px;

    background: linear-gradient(145deg, #F7DDED, #EAE3F3);

    box-shadow: 0 15px 35px rgba(31, 37, 68, 0.07);
}

.book-details-page .book-story-image img {
    width: 100%;
    height: 390px;

    border-radius: 12px;

    object-fit: cover;
}

.book-details-page .book-story-image-caption {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;

    padding: 14px 4px 3px;

    color: var(--book-muted);
    font-size: 10px;
    letter-spacing: 1.3px;
}

.book-details-page .book-story-image-caption strong {
    color: var(--book-navy);
}


/* ---------- REASONS TO READ ---------- */

.book-details-page .book-reasons-section {
    margin-top: 75px;
}

.book-details-page .book-reasons-heading {
    margin-bottom: 28px;
    text-align: center;
}

.book-details-page .book-reasons-heading h3 {
    margin: 0;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: 27px;
}

.book-details-page .book-reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.book-details-page .book-reason-card {
    min-width: 0;
    padding: 26px 23px;

    border: 1px solid #E7DDEA;
    border-radius: 14px;

    background: linear-gradient(145deg, #FFF8FC, #F0EBF7);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.book-details-page .book-reason-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 14px 28px rgba(31, 37, 68, 0.08);
}

.book-details-page .book-reason-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 37px;
    height: 37px;
    margin-bottom: 16px;

    border-radius: 50%;

    color: var(--book-navy);
    background: var(--book-pink);

    font-family: "Playfair Display", serif;
    font-size: 15px;
}

.book-details-page .book-reason-card h4 {
    margin: 0 0 10px;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: 18px;
}

.book-details-page .book-reason-card p {
    margin: 0;

    color: var(--book-muted);

    font-size: 11px;
    line-height: 1.9;
}


/* =========================================================
   5. BOOK SPECIFICATIONS
========================================================= */

.book-details-page .book-specifications-section {
    padding: 82px 0;

    background:
        radial-gradient(circle at 5% 90%,
            rgba(255, 208, 236, 0.30),
            transparent 30%),
        linear-gradient(120deg, #EDE8F4, #F5EDF5);
}

.book-details-page .book-specifications-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 65px;
}

.book-details-page .book-specifications-intro {
    min-width: 0;
}

.book-details-page .book-specifications-intro h2 {
    margin: 0 0 17px;
}

.book-details-page .book-specifications-intro h2 span {
    display: block;
    color: var(--book-purple);
}

.book-details-page .book-specifications-intro>p {
    margin: 0;

    color: #626075;

    font-size: 12px;
    line-height: 1.9;
}

.book-details-page .book-specifications-image {
    margin-top: 27px;

    overflow: hidden;

    border: 5px solid rgba(255, 255, 255, 0.65);
    border-radius: 15px;

    background: #FFFFFF;

    box-shadow: 0 13px 30px rgba(31, 37, 68, 0.09);
}

.book-details-page .book-specifications-image img {
    width: 100%;
    height: 235px;

    object-fit: cover;
}

.book-details-page .book-specifications-content {
    min-width: 0;
    padding: 30px;

    border: 1px solid rgba(129, 104, 157, 0.18);
    border-radius: 16px;

    background: #FBF9FC;

    box-shadow: 0 15px 35px rgba(31, 37, 68, 0.06);
}

.book-details-page .book-specifications-content h3 {
    margin: 0 0 15px;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: 24px;
}

.book-details-page .book-specification-list {
    display: grid;
}

.book-details-page .book-specification-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    padding: 14px 0;

    border-bottom: 1px solid #EAE3EE;

    font-size: 11px;
    line-height: 1.7;
}

.book-details-page .book-specification-row:last-child {
    border-bottom: none;
}

.book-details-page .book-specification-row span:first-child {
    color: var(--book-muted);
    flex: 0 0 40%;
}

.book-details-page .book-specification-row strong {
    color: var(--book-navy);
    font-weight: 600;
    text-align: right;
}

.book-details-page .book-specification-row .book-specification-stock {
    color: #26724A;
}

.book-details-page .book-specification-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 17px;
    padding: 13px 15px;

    border: 1px solid #EADBEA;
    border-radius: 8px;

    color: var(--book-muted);
    background: var(--book-soft-pink);

    font-size: 10px;
    line-height: 1.7;
}

.book-details-page .book-specification-note>span {
    flex-shrink: 0;
    color: var(--book-purple);
}

.book-details-page .book-specification-note p {
    margin: 0;
}


/* =========================================================
   6. ABOUT THE AUTHOR
========================================================= */

.book-details-page .book-author-section {
    padding: 82px 0;

    background:
        radial-gradient(circle at 95% 15%,
            rgba(240, 236, 247, 0.9),
            transparent 30%),
        #FBF7FC;
}

.book-details-page .book-author-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 65px;
}

.book-details-page .book-author-image {
    position: relative;
    min-width: 0;

    padding: 15px;

    border: 1px solid rgba(129, 104, 157, 0.15);
    border-radius: 18px;

    background: linear-gradient(145deg, #F7DDED, #E9E1F2);

    box-shadow: 0 15px 35px rgba(31, 37, 68, 0.07);
}

.book-details-page .book-author-image img {
    width: 100%;
    height: 365px;

    border-radius: 12px;

    object-fit: cover;
    object-position: center top;
}

.book-details-page .book-author-image-caption {
    padding: 13px 3px 1px;

    color: var(--book-muted);

    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-align: center;
}

.book-details-page .book-author-content {
    min-width: 0;
}

.book-details-page .book-author-content h2 {
    margin: 0 0 9px;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 3vw, 43px);
}

.book-details-page .book-author-subtitle {
    display: block;
    margin-bottom: 22px;

    color: var(--book-purple);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.book-details-page .book-author-content p {
    margin: 0 0 16px;

    color: #626075;

    font-size: 12px;
    line-height: 2;
}

.book-details-page .book-author-highlight {
    margin: 23px 0;
    padding: 17px 20px;

    border-left: 3px solid var(--book-purple);
    border-radius: 0 9px 9px 0;

    color: var(--book-navy);
    background: linear-gradient(120deg, #F0EAF6, #FCEFF6);
}

.book-details-page .book-author-highlight>span {
    display: block;
    margin-bottom: 7px;

    color: var(--book-purple);

    font-family: "Poppins", sans-serif;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.book-details-page .book-author-highlight strong {
    display: block;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
}

.book-details-page .book-author-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--book-purple);

    font-size: 11px;
    font-weight: 700;
    text-decoration: none;

    transition: gap 0.25s ease;
}

.book-details-page .book-author-link:hover {
    gap: 14px;
    color: var(--book-navy);
}


/* =========================================================
   7. READER REVIEWS
========================================================= */

.book-details-page .book-reviews-section {
    padding: 82px 0;

    background:
        radial-gradient(circle at 0% 100%,
            rgba(255, 208, 236, 0.25),
            transparent 28%),
        linear-gradient(135deg, #F0EAF5, #FFF3F8);
}

.book-details-page .book-reviews-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;

    margin-bottom: 38px;
}

.book-details-page .book-reviews-heading h2 {
    margin-top: 8px;
}

.book-details-page .book-reviews-heading p {
    margin: 11px 0 0;

    color: var(--book-muted);

    font-size: 11px;
    line-height: 1.8;
}

.book-details-page .book-review-link {
    flex-shrink: 0;

    color: var(--book-purple);

    font-size: 11px;
    font-weight: 700;
    text-decoration: none;

    transition: color 0.25s ease;
}

.book-details-page .book-review-link:hover {
    color: var(--book-navy);
}

.book-details-page .book-reviews-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: 32px;
}


/* ---------- RATING SUMMARY ---------- */

.book-details-page .book-rating-summary {
    padding: 29px;

    border: 1px solid #E5D9EA;
    border-radius: 15px;

    background: #FBF9FC;

    text-align: center;

    box-shadow: 0 10px 25px rgba(31, 37, 68, 0.04);
}

.book-details-page .book-rating-label {
    color: var(--book-muted);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.book-details-page .book-rating-average {
    display: block;
    margin: 13px 0 7px;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: 55px;
    line-height: 1;
}

.book-details-page .book-rating-average span {
    color: var(--book-muted);
    font-size: 19px;
}

.book-details-page .book-rating-summary-stars {
    margin-bottom: 8px;

    color: #D49A37;

    font-size: 19px;
    letter-spacing: 3px;
}

.book-details-page .book-rating-summary>p {
    margin: 0;

    color: var(--book-muted);
    font-size: 10px;
}

.book-details-page .book-rating-breakdown {
    display: grid;
    gap: 12px;

    margin-top: 25px;

    text-align: left;
}

.book-details-page .book-rating-bar-row {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 9px;

    color: var(--book-muted);
    font-size: 9px;
}

.book-details-page .book-rating-bar {
    height: 7px;

    overflow: hidden;

    border-radius: 10px;

    background: #EAE5EE;
}

.book-details-page .book-rating-bar span {
    display: block;
    height: 100%;

    border-radius: inherit;

    background: linear-gradient(90deg,
            var(--book-purple),
            #D99FC4);
}


/* ---------- REVIEW CARDS ---------- */

.book-details-page .book-review-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.book-details-page .book-review-card {
    min-width: 0;
    padding: 23px;

    border: 1px solid #E8DEEB;
    border-radius: 13px;

    background: #FBF9FC;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.book-details-page .book-review-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 28px rgba(31, 37, 68, 0.07);
}

.book-details-page .book-review-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 15px;
}

.book-details-page .book-review-avatar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    color: var(--book-navy);
    background: var(--book-pink);

    font-size: 12px;
    font-weight: 700;
}

.book-details-page .book-avatar-purple {
    color: #FFFFFF;
    background: var(--book-purple);
}

.book-details-page .book-review-top h3 {
    margin: 0 0 3px;

    color: var(--book-navy);
    font-size: 11px;
    font-weight: 700;
}

.book-details-page .book-review-top>div:nth-child(2) span {
    color: var(--book-muted);
    font-size: 9px;
}

.book-details-page .book-review-stars {
    margin-left: auto;

    color: #D49A37;

    font-size: 12px;
    letter-spacing: 1px;
}

.book-details-page .book-review-card h4 {
    margin: 0 0 10px;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: 16px;
    line-height: 1.5;
}

.book-details-page .book-review-card p {
    margin: 0;

    color: #666477;

    font-size: 10px;
    line-height: 1.9;
}

.book-details-page .book-review-date {
    display: block;
    margin-top: 14px;

    color: #8C889A;
    font-size: 9px;
}


/* =========================================================
   8. RELATED BOOKS
========================================================= */

.book-details-page .book-related-section {
    padding: 82px 0;

    background:
        radial-gradient(circle at 100% 0%,
            rgba(240, 236, 247, 0.9),
            transparent 30%),
        #FBF7FC;
}

.book-details-page .book-related-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;

    margin-bottom: 36px;
}

.book-details-page .book-related-heading h2 {
    margin-top: 8px;
}

.book-details-page .book-related-heading p {
    margin: 11px 0 0;

    color: var(--book-muted);

    font-size: 11px;
    line-height: 1.8;
}

.book-details-page .book-related-link {
    flex-shrink: 0;

    color: var(--book-purple);

    font-size: 11px;
    font-weight: 700;
    text-decoration: none;

    transition: color 0.25s ease;
}

.book-details-page .book-related-link:hover {
    color: var(--book-navy);
}

.book-details-page .book-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 21px;
}

.book-details-page .book-related-card {
    min-width: 0;
    overflow: hidden;

    border: 1px solid #E8DEEB;
    border-radius: 13px;

    background: #FBF9FC;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.book-details-page .book-related-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 15px 30px rgba(31, 37, 68, 0.09);
}


/* ---------- RELATED BOOK COVER ---------- */

.book-details-page .book-related-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    height: 240px;
    padding: 22px;

    overflow: hidden;

    background:
        radial-gradient(circle at center,
            #FFFFFF,
            #F6EAF4 65%,
            #EAE4F1);

    text-decoration: none;
}

.book-details-page .book-related-image img {
    width: 138px;
    height: 195px;

    object-fit: contain;

    filter: drop-shadow(7px 10px 8px rgba(31, 37, 68, 0.18));

    transition: transform 0.35s ease;
}

.book-details-page .book-related-card:hover .book-related-image img {
    transform: scale(1.06) rotate(-1deg);
}

.book-details-page .book-related-image>span {
    position: absolute;
    top: 12px;
    left: 12px;

    padding: 6px 9px;

    border-radius: 20px;

    color: var(--book-navy);
    background: var(--book-pink);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.7px;
}


/* ---------- RELATED BOOK INFORMATION ---------- */

.book-details-page .book-related-info {
    padding: 17px;
}

.book-details-page .book-related-info h3 {
    margin: 0 0 6px;

    color: var(--book-navy);

    font-family: "Playfair Display", serif;
    font-size: 16px;
    line-height: 1.4;
}

.book-details-page .book-related-info p {
    margin: 0 0 12px;

    color: var(--book-muted);
    font-size: 10px;
}

.book-details-page .book-related-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 13px;

    color: var(--book-purple);
    font-size: 13px;
    font-weight: 700;
}

.book-details-page .book-related-price del {
    color: #9994A4;
    font-size: 10px;
    font-weight: 400;
}

.book-details-page .book-related-info>a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--book-purple);

    font-size: 10px;
    font-weight: 700;
    text-decoration: none;

    transition: gap 0.25s ease;
}

.book-details-page .book-related-info>a:hover {
    gap: 11px;
    color: var(--book-navy);
}


/* =========================================================
   9. CLOSING READING BANNER
========================================================= */

.book-details-page .book-closing-section {
    position: relative;

    padding: 70px 24px;

    overflow: hidden;

    background:
        radial-gradient(circle at 90% 15%,
            rgba(255, 208, 236, 0.22),
            transparent 29%),
        radial-gradient(circle at 5% 100%,
            rgba(129, 104, 157, 0.28),
            transparent 30%),
        linear-gradient(120deg, #1F2544, #474F7A);
}

.book-details-page .book-closing-section::before,
.book-details-page .book-closing-section::after {
    position: absolute;

    width: 180px;
    height: 180px;

    border: 1px solid rgba(255, 208, 236, 0.19);
    border-radius: 50%;

    content: "";
    pointer-events: none;
}

.book-details-page .book-closing-section::before {
    top: -90px;
    left: 8%;
}

.book-details-page .book-closing-section::after {
    right: 7%;
    bottom: -110px;

    width: 230px;
    height: 230px;
}

.book-details-page .book-closing-content {
    position: relative;
    z-index: 1;

    max-width: 690px;
    margin: 0 auto;

    text-align: center;
}

.book-details-page .book-closing-content .book-details-eyebrow {
    color: var(--book-pink);
}

.book-details-page .book-closing-content h2 {
    margin: 0 0 15px;

    color: #FFFFFF;

    font-family: "Playfair Display", serif;
    font-size: clamp(31px, 4vw, 45px);
    line-height: 1.25;
}

.book-details-page .book-closing-content h2 span {
    display: block;
    color: var(--book-pink);
}

.book-details-page .book-closing-content p {
    margin: 0 0 25px;

    color: #E8E4F0;

    font-size: 11px;
    line-height: 1.9;
}

.book-details-page .book-closing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 47px;
    padding: 12px 25px;

    border: 1px solid var(--book-pink);
    border-radius: 6px;

    color: var(--book-navy);
    background: var(--book-pink);

    font-size: 10px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.book-details-page .book-closing-btn:hover {
    color: #FFFFFF;
    background: transparent;

    transform: translateY(-3px);
}


/* =========================================================
   10. RESPONSIVE DESIGN — TABLET
========================================================= */

@media (max-width: 1024px) {

    .book-details-page .book-showcase-grid {
        gap: 38px;
    }

    .book-details-page .book-main-image {
        min-height: 430px;
    }

    .book-details-page .book-main-image img {
        width: 235px;
        height: 355px;
    }

    .book-details-page .book-story-grid,
    .book-details-page .book-specifications-grid,
    .book-details-page .book-author-grid {
        gap: 38px;
    }

    .book-details-page .book-related-grid {
        gap: 14px;
    }

    .book-details-page .book-related-image {
        height: 210px;
    }

    .book-details-page .book-related-image img {
        width: 115px;
        height: 165px;
    }

    .book-details-page .book-related-info {
        padding: 14px;
    }

    .book-details-page .book-related-info h3 {
        font-size: 14px;
    }
}


/* =========================================================
   11. RESPONSIVE DESIGN — SMALL TABLET
========================================================= */

@media (max-width: 768px) {

    .book-details-page .book-details-container {
        width: min(calc(100% - 36px), 620px);
    }

    .book-details-page .book-showcase-section {
        padding: 42px 0 55px;
    }

    .book-details-page .book-showcase-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 39px;
    }

    .book-details-page .book-gallery {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .book-details-page .book-main-image {
        min-height: 440px;
    }

    .book-details-page .book-main-image img {
        width: 235px;
        height: 355px;
    }

    .book-details-page .book-purchase-details {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .book-details-page .book-purchase-details h1 {
        font-size: 42px;
    }

    .book-details-page .book-story-section,
    .book-details-page .book-specifications-section,
    .book-details-page .book-author-section,
    .book-details-page .book-reviews-section,
    .book-details-page .book-related-section {
        padding: 62px 0;
    }

    .book-details-page .book-story-grid,
    .book-details-page .book-specifications-grid,
    .book-details-page .book-author-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 31px;
    }

    .book-details-page .book-story-image {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .book-details-page .book-story-image img {
        height: 330px;
    }

    .book-details-page .book-specifications-image {
        max-width: 520px;
    }

    .book-details-page .book-author-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .book-details-page .book-author-image img {
        height: 340px;
    }

    .book-details-page .book-reviews-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .book-details-page .book-rating-summary {
        width: 100%;
    }

    .book-details-page .book-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .book-details-page .book-related-image {
        height: 235px;
    }

    .book-details-page .book-related-image img {
        width: 130px;
        height: 185px;
    }
}


/* =========================================================
   12. RESPONSIVE DESIGN — MOBILE
========================================================= */

@media (max-width: 480px) {

    .book-details-page .book-details-container {
        width: calc(100% - 28px);
    }

    .book-details-page .book-breadcrumb-section {
        padding: 14px 0;
    }

    .book-details-page .book-breadcrumb {
        gap: 7px;
        font-size: 9px;
    }

    .book-details-page .book-showcase-section {
        padding: 29px 0 43px;
    }

    .book-details-page .book-showcase-grid {
        gap: 31px;
    }

    .book-details-page .book-main-image {
        min-height: 355px;
        padding: 20px;

        border-radius: 17px;
    }

    .book-details-page .book-main-image img {
        width: 195px;
        height: 290px;
    }

    .book-details-page .book-detail-badge {
        top: 14px;
        left: 14px;

        padding: 7px 11px;
        font-size: 8px;
    }

    .book-details-page .book-image-caption {
        font-size: 9px;
    }

    .book-details-page .book-thumbnail {
        width: 64px;
        height: 73px;
    }

    .book-details-page .book-purchase-details h1 {
        font-size: 35px;
    }

    .book-details-page .book-detail-category {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .book-details-page .book-short-description {
        font-size: 11px;
    }

    .book-details-page .book-highlight {
        font-size: 10px;
    }

    .book-details-page .book-current-price {
        font-size: 27px;
    }

    .book-details-page .book-purchase-actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .book-details-page .book-delivery-info {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .book-details-page .book-story-section,
    .book-details-page .book-specifications-section,
    .book-details-page .book-author-section,
    .book-details-page .book-reviews-section,
    .book-details-page .book-related-section {
        padding: 49px 0;
    }

    .book-details-page .book-story-heading {
        margin-bottom: 29px;
    }

    .book-details-page .book-story-heading h2,
    .book-details-page .book-reasons-heading h2,
    .book-details-page .book-specifications-intro h2,
    .book-details-page .book-reviews-heading h2,
    .book-details-page .book-related-heading h2 {
        font-size: 29px;
    }

    .book-details-page .book-story-content h3 {
        font-size: 22px;
    }

    .book-details-page .book-story-content p {
        font-size: 11px;
    }

    .book-details-page .book-story-quote {
        padding: 18px;
        font-size: 16px;
    }

    .book-details-page .book-story-image {
        padding: 10px;
    }

    .book-details-page .book-story-image img {
        height: 265px;
    }

    .book-details-page .book-reasons-section {
        margin-top: 49px;
    }

    .book-details-page .book-reasons-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .book-details-page .book-reason-card {
        padding: 21px;
    }

    .book-details-page .book-specifications-content {
        padding: 20px 17px;
    }

    .book-details-page .book-specifications-content h3 {
        font-size: 21px;
    }

    .book-details-page .book-specification-row {
        gap: 10px;
        font-size: 10px;
    }

    .book-details-page .book-specification-row span:first-child {
        flex-basis: 38%;
    }

    .book-details-page .book-specifications-image img {
        height: 205px;
    }

    .book-details-page .book-author-image {
        padding: 10px;
    }

    .book-details-page .book-author-image img {
        height: 295px;
    }

    .book-details-page .book-author-content h2 {
        font-size: 33px;
    }

    .book-details-page .book-author-content p {
        font-size: 11px;
    }

    .book-details-page .book-reviews-heading,
    .book-details-page .book-related-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .book-details-page .book-rating-summary {
        padding: 24px 17px;
    }

    .book-details-page .book-review-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .book-details-page .book-review-card {
        padding: 20px;
    }

    .book-details-page .book-related-grid {
        gap: 12px;
    }

    .book-details-page .book-related-image {
        height: 180px;
        padding: 13px;
    }

    .book-details-page .book-related-image img {
        width: 105px;
        height: 150px;
    }

    .book-details-page .book-related-info {
        padding: 12px;
    }

    .book-details-page .book-related-info h3 {
        font-size: 13px;
    }

    .book-details-page .book-related-info p {
        font-size: 9px;
    }

    .book-details-page .book-related-price {
        font-size: 11px;
    }

    .book-details-page .book-closing-section {
        padding: 51px 20px;
    }

    .book-details-page .book-closing-content h2 {
        font-size: 30px;
    }
}


/* =========================================================
   13. EXTRA SMALL SCREENS
========================================================= */

@media (max-width: 350px) {

    .book-details-page .book-details-container {
        width: calc(100% - 24px);
    }

    .book-details-page .book-purchase-details h1 {
        font-size: 30px;
    }

    .book-details-page .book-main-image {
        min-height: 315px;
    }

    .book-details-page .book-main-image img {
        width: 170px;
        height: 255px;
    }

    .book-details-page .book-related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .book-details-page .book-related-image {
        height: 225px;
    }

    .book-details-page .book-related-image img {
        width: 125px;
        height: 180px;
    }

    .book-details-page .book-quantity-section {
        gap: 10px;
    }

    .book-details-page .book-delivery-info {
        padding: 14px;
    }

    .book-details-page .book-rating-average {
        font-size: 48px;
    }
}


/* =========================================================
   14. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .book-details-page *,
    .book-details-page *::before,
    .book-details-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}