.books-page .books-hero .hero h1,
.books-page .books-hero h1 {
    max-width: 11ch;
}

.books-page .books-hero p {
    color: rgba(244, 241, 234, 0.78);
}

.books-hero-preview img {
    object-fit: cover;
}

.books-grid .book-card {
    display: flex;
    flex-direction: column;
}

.book-cover-wrap {
    background: rgba(10, 12, 16, 0.82);
}

.book-cover-wrap img {
    object-fit: cover;
}

.book-card .card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.book-card h3 {
    margin-bottom: 14px;
}

.book-price-panel {
    margin-bottom: 0;
}

.book-card-bottom {
    margin-top: auto;
}

.book-buy-button {
    gap: 8px;
}

.book-buy-button .whatsapp-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 760px) {
    .book-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .book-buy-button {
        width: 100%;
    }
}


.books-grid {
    align-items: stretch;
}

.books-grid .book-card {
    min-height: 100%;
}

.book-cover-wrap a {
    display: block;
    height: 100%;
}

.book-author {
    color: var(--muted);
    font-size: 0.9rem;
    margin: -8px 0 14px;
}

.book-now-inline {
    align-items: center;
    background: linear-gradient(135deg, rgba(244, 221, 150, 0.98), rgba(212, 175, 55, 0.95) 48%, rgba(142, 111, 43, 0.98));
    border: 1px solid rgba(255, 236, 176, 0.58);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    color: #17110a;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 900;
    gap: 7px;
    justify-content: center;
    letter-spacing: 0.03em;
    padding: 10px 14px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.book-now-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.30), 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.book-now-inline .whatsapp-icon,
.whatsapp-book-button .whatsapp-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.book-more-link {
    margin-left: auto;
    padding-inline: 18px;
}

.is-arabic .book-more-link {
    margin-left: 0;
    margin-right: auto;
}

.book-card-bottom {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
}

.book-card-bottom .book-price-panel {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
}

.book-detail-title {
    color: var(--cream);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 0.95;
    margin: 0 0 18px;
}

.book-detail-cover {
    align-items: center;
    background: radial-gradient(circle at top, rgba(218, 184, 111, 0.22), rgba(4, 5, 7, 0.96));
    cursor: default;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    min-height: 520px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 46px);
    padding-bottom: clamp(24px, 4vw, 46px);
}

.book-detail-cover img {
    aspect-ratio: auto;
    background: transparent;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    height: auto;
    max-height: 620px;
    max-width: min(380px, 86%);
    object-fit: contain;
    width: 100%;
}

.book-detail-shell .gallery-panel {
    align-self: start;
}

.book-preview-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.book-preview-item {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 20px;
    margin: 0;
    overflow: hidden;
    padding: 10px;
}

.book-preview-item img {
    aspect-ratio: 3 / 4;
    background: #050608;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    height: auto;
    object-fit: contain;
    width: 100%;
}

.book-preview-item figcaption {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding-top: 9px;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .book-price-panel {
        align-items: flex-start;
        gap: 12px;
    }

    .book-card-bottom .book-price-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .book-now-inline {
        width: 100%;
    }

    .book-more-link,
    .is-arabic .book-more-link {
        margin: 0;
        width: 100%;
    }

    .book-detail-cover {
        min-height: auto;
    }

    .book-detail-cover img {
        height: auto;
        width: 100%;
    }

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


.book-card .book-card-footer,
.book-card .book-more-link {
    display: none !important;
}

@media (max-width: 520px) {
    .book-preview-grid {
        grid-template-columns: 1fr;
    }
}

.clickable-book-card {
    cursor: pointer;
    position: relative;
}

.clickable-book-card:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.72);
    outline-offset: 5px;
}

.clickable-book-card .card-body h3 {
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.clickable-book-card:hover .card-body h3 {
    color: #f4dd96;
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.24);
}

.book-detail-shell .villa-story-card-compact {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(212, 175, 55, 0.075) 45%, rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.book-detail-shell .villa-story-card-compact::after {
    background: radial-gradient(circle, rgba(244, 221, 150, 0.22), transparent 62%);
    content: "";
    height: 180px;
    inset: -80px -70px auto auto;
    pointer-events: none;
    position: absolute;
    width: 180px;
}

.book-detail-title {
    color: #fff8e2;
    font-size: clamp(2.35rem, 4.8vw, 4.75rem);
    letter-spacing: -0.035em;
    line-height: 0.94;
    margin-bottom: 22px;
    max-width: 9.5ch;
    position: relative;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 34px rgba(212, 175, 55, 0.12);
}

.book-detail-title::after {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.95), rgba(244, 221, 150, 0.50), transparent);
    border-radius: 999px;
    content: "";
    display: block;
    height: 2px;
    margin-top: 18px;
    width: min(180px, 68%);
}

.book-detail-shell .villa-story-card-compact p {
    color: rgba(244, 241, 234, 0.86);
    font-size: clamp(1rem, 1.18vw, 1.15rem);
    letter-spacing: 0.01em;
    line-height: 1.9;
    margin: 0;
    max-width: 58ch;
    position: relative;
}

.book-detail-shell .subtitle {
    color: #d4af37;
    letter-spacing: 0.18em;
}

.book-detail-shell .gallery-note {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.11), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(212, 175, 55, 0.20);
    border-radius: 22px;
    color: rgba(244, 241, 234, 0.84);
    font-size: 1rem;
    line-height: 1.75;
    padding: 18px 20px;
}

.is-arabic .book-detail-title {
    letter-spacing: 0;
    line-height: 1.18;
    max-width: 11ch;
}

.is-arabic .book-detail-title::after {
    background: linear-gradient(270deg, rgba(212, 175, 55, 0.95), rgba(244, 221, 150, 0.50), transparent);
}

@media (max-width: 760px) {
    .book-detail-title {
        max-width: 100%;
    }
}


/* Selected books collection update */
.selected-books-page .books-grid {
    align-items: stretch;
}
.selected-books-page .book-card {
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.selected-books-page .book-card:hover {
    transform: translateY(-7px);
    border-color: rgba(215, 181, 109, 0.78);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}
.selected-books-page .book-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.selected-books-page .book-card-bottom {
    margin-top: auto;
}
.gold-book-buy {
    background: linear-gradient(135deg, #b78932, #f1d587 48%, #9d7429);
    color: #17100a !important;
    border: 1px solid rgba(255, 238, 180, 0.8);
    box-shadow: 0 12px 30px rgba(183, 137, 50, 0.26);
    font-weight: 800;
}

.gold-book-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(183, 137, 50, 0.36);
}

.gold-detail-buy {
    background: #d4af37;
    color: #17100a !important;
    border: 1px solid rgba(255, 238, 180, 0.8);
    box-shadow: 0 12px 30px rgba(183, 137, 50, 0.26);
    font-weight: 800;
}

.gold-detail-buy:hover {
    background: #f1d587;
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(183, 137, 50, 0.36);
}

.selected-book-detail .selected-book-title-card {
    padding: 30px;
    border: 1px solid rgba(215, 181, 109, 0.32);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.selected-book-detail .book-detail-title {
    font-family: "Playfair Display", "Inter", serif;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.08;
    color: #fff4d0;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
    margin-bottom: 18px;
}
.selected-book-detail .selected-book-title-card p,
.selected-book-detail .selected-book-description p {
    color: rgba(255, 248, 226, 0.86);
    font-size: 1.05rem;
    line-height: 1.9;
}
.selected-book-detail .book-detail-cover {
    min-height: 520px;
    padding: 24px;
    background: rgba(9, 10, 14, 0.94);
    border: 1px solid rgba(215, 181, 109, 0.32);
}
.selected-book-detail .book-detail-cover img {
    max-height: 620px;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.38));
}
.selected-book-detail .selected-book-description {
    margin-top: 24px;
    padding: 32px;
    border: 1px solid rgba(215, 181, 109, 0.26);
    background: rgba(13, 14, 18, 0.94);
}
.selected-book-detail .selected-book-description h2 {
    color: #f5df9e;
    font-family: "Playfair Display", "Inter", serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    margin-bottom: 14px;
}
.selected-book-detail .book-preview-section {
    margin-top: 28px;
}
.selected-book-detail .book-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.selected-book-detail .book-preview-item {
    border-color: rgba(215, 181, 109, 0.35);
    background: rgba(255, 255, 255, 0.055);
}
.selected-book-detail .book-preview-item img {
    object-fit: contain;
    background: #0b0c10;
}
.is-arabic .selected-book-detail .fact-list .fact span:first-child::before {
    content: "";
}
@media (max-width: 850px) {
    .selected-book-detail .book-detail-cover {
        min-height: 390px;
    }
    .selected-book-detail .book-preview-grid {
        grid-template-columns: 1fr;
    }
}


.selected-books-page .books-hero h1 {
    font-size: clamp(2.35rem, 4.3vw, 4.55rem);
    max-width: 12ch;
}

.selected-books-page .books-hero .amatic-tagline {
    font-size: clamp(2.05rem, 3.4vw, 3.15rem);
    line-height: 1.02;
}

.selected-books-page .gold-book-buy {
    background: #d4af37;
    border: 1px solid rgba(255, 238, 180, 0.8);
    box-shadow: 0 12px 30px rgba(183, 137, 50, 0.26);
    color: #17100a !important;
}

.selected-books-page .gold-book-buy:hover {
    background: #f1d587;
    border-color: rgba(255, 238, 180, 0.8);
    box-shadow: 0 18px 42px rgba(183, 137, 50, 0.36);
}

.selected-book-detail .book-preview-item {
    cursor: zoom-in;
    position: relative;
}

.selected-book-detail .book-preview-item::after {
    align-items: center;
    background: rgba(8, 9, 12, 0.72);
    border: 1px solid rgba(240, 214, 142, 0.38);
    border-radius: 999px;
    color: #f0d68e;
    content: "View";
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    inset: 16px 16px auto auto;
    justify-content: center;
    letter-spacing: 0.08em;
    opacity: 0;
    padding: 8px 12px;
    position: absolute;
    text-transform: uppercase;
    transform: translateY(-6px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.is-arabic.selected-book-detail .book-preview-item::after {
    content: "عرض";
    inset: 16px auto auto 16px;
}

.selected-book-detail .book-preview-item:hover::after,
.selected-book-detail .book-preview-item:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.selected-book-detail .book-preview-item:focus-visible {
    outline: 2px solid rgba(240, 214, 142, 0.75);
    outline-offset: 5px;
}

@media (min-width: 1200px) {
    .selected-books-page .books-hero h1 {
        font-size: 4.2rem;
    }

    .selected-books-page .books-hero .amatic-tagline {
        font-size: 3rem;
    }
}

@media (max-width: 760px) {
    .selected-books-page .books-hero h1 {
        font-size: clamp(2.05rem, 12vw, 3.1rem);
    }

    .selected-books-page .books-hero .amatic-tagline {
        font-size: clamp(2rem, 11vw, 3rem);
    }
}


/* Books requested refinements */
.selected-book-detail .selected-book-side .actions {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.selected-book-detail .gold-detail-buy {
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    min-width: min(260px, 100%);
    text-align: center;
}

.selected-book-detail .selected-book-side {
    align-self: start;
}

@media (max-width: 850px) {
    .selected-book-detail .detail-grid {
        display: flex;
        flex-direction: column;
    }

    .selected-book-detail .selected-book-gallery {
        order: 1;
        width: 100%;
    }

    .selected-book-detail .selected-book-side {
        order: 2;
        width: 100%;
    }

    .selected-book-detail .book-detail-cover {
        order: 1;
    }

    .selected-book-detail .selected-book-description {
        order: 2;
    }

    .selected-book-detail .book-preview-section {
        order: 3;
    }

    .selected-book-detail .selected-book-gallery {
        display: flex;
        flex-direction: column;
    }
}


.book-cover-wrap {
    position: relative;
}

.book-favorite-button {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
}

.book-detail-cover {
    position: relative;
}

.book-detail-favorite-button {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
}

.book-detail-favorite-button:hover,
.book-detail-favorite-button:focus-visible {
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 760px) {
    .book-favorite-button {
        top: 12px;
        inset-inline-end: 12px;
    }

    .book-detail-favorite-button {
        top: 14px;
        inset-inline-end: 14px;
    }
}

/* Align selected book card tags tight above the price area */
.books-grid .book-card .card-body > p {
    margin-bottom: 16px;
}

.books-grid .book-card .card-specs {
    align-content: flex-end;
    gap: 7px;
    margin-top: auto;
    margin-bottom: 6px;
    min-height: 0;
}

.books-grid .book-card .book-card-bottom,
.selected-books-page .book-card-bottom {
    margin-top: 0;
    padding-top: 0;
}

.is-arabic.books-grid .book-card .card-specs {
    margin-bottom: 8px;
    min-height: 0;
}

@media (max-width: 760px) {
    .books-grid .book-card .card-specs,
    .is-arabic.books-grid .book-card .card-specs {
        margin-bottom: 8px;
        min-height: 0;
    }
}


/* Book detail title and moved tags */
.selected-book-detail .book-side-title {
    color: rgba(255, 255, 255, 0.96);
    font-family: var(--display-font);
    font-size: clamp(1.85rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 10px;
}

.selected-book-detail .book-detail-tags {
    margin-top: 14px;
    margin-bottom: 22px;
}

.selected-book-detail .book-detail-tags .feature-icon {
    border-color: rgba(212, 175, 55, 0.24);
    background: rgba(255, 255, 255, 0.045);
}

.is-arabic.selected-book-detail .book-side-title {
    letter-spacing: 0;
    line-height: 1.25;
}

/* Book main cards bottom price alignment */
.books-grid .book-card,
.selected-books-page .book-card {
    height: 100%;
}

.books-grid .book-card .card-body,
.selected-books-page .book-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.books-grid .book-card .book-card-bottom,
.selected-books-page .book-card-bottom {
    margin-top: auto;
    padding-top: 18px;
}

.books-grid .book-card .book-price-panel .home-price-copy,
.selected-books-page .book-price-panel .home-price-copy {
    align-items: center;
    display: flex;
}

.books-grid .book-card .book-price-panel .home-price-copy strong,
.selected-books-page .book-price-panel .home-price-copy strong {
    display: block;
}

.books-grid .book-card .book-price-panel .home-price-copy small,
.selected-books-page .book-price-panel .home-price-copy small {
    display: none;
}

.selected-book-detail .selected-book-side {
    background: rgba(16, 18, 24, 0.97);
    border-color: rgba(216, 177, 90, 0.32);
}

.selected-book-detail .book-side-title {
    font-family: "Playfair Display", "Aboreto", "Inter", serif;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.015em;
    margin-bottom: 12px;
    color: #f8df9c;
    background: none;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 24px 46px rgba(0, 0, 0, 0.38);
}

.selected-book-detail .selected-book-side .villa-region {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(216, 177, 90, 0.34);
    border-radius: 999px;
    color: #fff2c5;
    background: rgba(216, 177, 90, 0.11);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.selected-book-detail .book-detail-tags {
    gap: 9px;
    margin-top: 10px;
    margin-bottom: 24px;
}

.selected-book-detail .book-detail-tags .feature-icon {
    min-height: 46px;
    padding: 9px 11px;
    border-radius: 16px;
    border-color: rgba(216, 177, 90, 0.3);
    background: rgba(255, 246, 212, 0.08);
    color: rgba(255, 247, 226, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.selected-book-detail .book-detail-tags .feature-symbol {
    color: #d8b15a;
    filter: drop-shadow(0 0 8px rgba(216, 177, 90, 0.35));
}

.selected-book-detail .fact-list .fact span:first-child,
.selected-book-detail .price-header span,
.selected-book-detail .selected-book-description .kicker,
.selected-book-detail .book-preview-section .kicker {
    color: #d8b15a;
    letter-spacing: 0.16em;
}

.selected-book-detail .fact-list .fact span:last-child,
.selected-book-detail .price-row strong,
.selected-book-detail .price-row > span {
    color: #fff4d0;
}

.selected-book-detail .selected-book-description {
    background: rgba(13, 14, 18, 0.96);
    border-color: rgba(216, 177, 90, 0.3);
}

.selected-book-detail .selected-book-description h2,
.selected-book-detail .book-preview-section .section-title {
    font-family: "Playfair Display", "Aboreto", "Inter", serif;
    color: #f8df9c;
    background: none;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.is-arabic.selected-book-detail,
.is-arabic.selected-book-detail .side-panel,
.is-arabic.selected-book-detail .gallery-panel,
.is-arabic.selected-book-detail .fact-list,
.is-arabic.selected-book-detail .price-panel,
.is-arabic.selected-book-detail .selected-book-description,
.is-arabic.selected-book-detail .book-preview-section {
    font-family: "Noto Kufi Arabic", "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

.is-arabic.selected-book-detail .book-side-title,
.is-arabic.selected-book-detail .selected-book-description h2,
.is-arabic.selected-book-detail .book-preview-section .section-title {
    font-family: "Noto Kufi Arabic", "Tajawal", "Cairo", "Amiri", serif;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    line-height: 1.34;
    letter-spacing: 0;
    color: #f8df9c;
    background: none;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.is-arabic.selected-book-detail .selected-book-side .villa-region {
    font-family: "Noto Kufi Arabic", "Tajawal", "Cairo", "Segoe UI", sans-serif;
    letter-spacing: 0;
    color: #fff1c2;
}

.is-arabic.selected-book-detail .book-detail-tags .feature-icon,
.is-arabic.selected-book-detail .fact-list .fact,
.is-arabic.selected-book-detail .price-row,
.is-arabic.selected-book-detail .selected-book-description p,
.is-arabic.selected-book-detail .subtle,
.is-arabic.selected-book-detail figcaption {
    color: rgba(255, 247, 226, 0.9);
    letter-spacing: 0;
}

.is-arabic.selected-book-detail .fact-list .fact span:first-child,
.is-arabic.selected-book-detail .price-header span,
.is-arabic.selected-book-detail .selected-book-description .kicker,
.is-arabic.selected-book-detail .book-preview-section .kicker {
    color: #d8b15a;
    letter-spacing: 0.04em;
}

@media (max-width: 760px) {
    .selected-book-detail .book-side-title,
    .is-arabic.selected-book-detail .book-side-title {
        font-size: clamp(1.85rem, 9vw, 2.55rem);
    }

    .selected-book-detail .selected-book-side .villa-region {
        font-size: 0.94rem;
    }
}

/* Restore book detail author styling */
.selected-book-detail .selected-book-side .villa-region,
.is-arabic.selected-book-detail .selected-book-side .villa-region {
    display: block;
    width: auto;
    padding: 0;
    margin-bottom: 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0;
}


/* Book detail polish: spacing, alignment, tablet order, and image favourite placement */
.selected-book-detail .book-side-title {
    margin-bottom: 18px;
}

.selected-book-detail .selected-book-side .villa-region {
    margin-top: 2px;
    margin-bottom: 22px;
}

.selected-book-detail .selected-book-description h2 {
    margin-bottom: 16px;
}

.selected-book-detail .selected-book-description p:first-of-type {
    margin-top: 4px;
}

.is-english.selected-book-detail .fact-list .fact span:last-child {
    margin-inline-start: auto;
    text-align: right;
    max-width: 62%;
}

.book-favorite-button {
    top: auto;
    bottom: 14px;
    inset-inline-end: 14px;
}

.book-detail-favorite-button {
    top: auto;
    bottom: 16px;
    inset-inline-end: 16px;
}

@media (max-width: 1100px) {
    .selected-book-detail .detail-grid {
        display: flex;
        flex-direction: column;
    }

    .selected-book-detail .selected-book-gallery {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .selected-book-detail .selected-book-side {
        order: 2;
        width: 100%;
    }

    .selected-book-detail .book-detail-cover {
        order: 1;
    }

    .selected-book-detail .selected-book-description {
        order: 2;
    }

    .selected-book-detail .book-preview-section {
        order: 3;
    }
}

@media (max-width: 760px) {
    .book-favorite-button {
        top: auto;
        bottom: 12px;
        inset-inline-end: 12px;
    }

    .book-detail-favorite-button {
        top: auto;
        bottom: 14px;
        inset-inline-end: 14px;
    }
}


.book-favorite-button,
.book-detail-favorite-button {
    top: auto;
    right: 14px;
    left: auto;
    inset-inline-end: auto;
}

.book-detail-favorite-button {
    bottom: 16px;
}

.book-favorite-button {
    bottom: 14px;
}

@media (max-width: 760px) {
    .book-favorite-button,
    .book-detail-favorite-button {
        top: auto;
        right: 12px;
        left: auto;
        inset-inline-end: auto;
    }

    .book-detail-favorite-button {
        bottom: 14px;
    }

    .book-favorite-button {
        bottom: 12px;
    }
}

/* Final book favourite placement on image corners */
.book-cover-wrap {
    position: relative;
}

.book-cover-wrap .book-favorite-button {
    position: absolute;
    top: auto !important;
    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    inset-inline-end: auto !important;
    z-index: 7;
}

.book-cover-stage {
    position: relative;
    display: inline-flex;
    justify-content: center;
    max-width: min(380px, 86%);
    width: 100%;
}

.book-cover-stage img {
    max-width: 100% !important;
}

.book-cover-stage .book-detail-favorite-button {
    position: absolute;
    top: auto !important;
    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    inset-inline-end: auto !important;
    z-index: 7;
}

@media (max-width: 760px) {
    .book-cover-wrap .book-favorite-button,
    .book-cover-stage .book-detail-favorite-button {
        right: 12px !important;
        bottom: 12px !important;
    }
}


.selected-book-detail .book-detail-cover {
    position: relative !important;
}

.selected-book-detail .book-detail-cover .book-cover-stage {
    position: static !important;
}

.selected-book-detail .book-detail-cover .book-detail-favorite-button {
    position: absolute !important;
    top: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    left: auto !important;
    inset-inline-end: auto !important;
    z-index: 12 !important;
}

@media (max-width: 760px) {
    .selected-book-detail .book-detail-cover .book-detail-favorite-button {
        right: 12px !important;
        bottom: 12px !important;
    }
}

/* Book image polish: show full cover artwork and keep three preview pages clean. */
.book-cover-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.book-cover-wrap a {
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.book-cover-wrap img {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: contain !important;
    width: min(78%, 260px);
}

.selected-book-detail .book-cover-stage img {
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(212, 175, 55, 0.22);
    height: auto;
    object-fit: contain;
    width: min(100%, 420px);
}

.selected-book-detail .book-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selected-book-detail .book-preview-item img {
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

@media (max-width: 760px) {
    .selected-book-detail .book-preview-grid {
        grid-template-columns: 1fr;
    }

    .book-cover-wrap img {
        width: min(84%, 230px);
    }
}

.bookSummaryText,
.bookSummaryText p {
    text-align: justify;
}

.is-arabic.selected-book-detail .bookSummaryText {
    direction: rtl;
    text-align: justify;
}


/* Added spacing between book detail titles and description text */
.selected-book-detail .selected-book-description h2 {
    margin-bottom: 22px;
}

.selected-book-detail .selected-book-description > p,
.selected-book-detail .selected-book-description .bookSummaryText {
    margin-top: 8px;
}


/* Final title favorite heart placement for books */
.book-title-line,
.book-detail-title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.book-title-line {
    justify-content: flex-start;
    margin-bottom: 8px;
}

.book-title-line h3 {
    margin: 0;
    flex: 1 1 auto;
}

.book-detail-title-line {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.book-detail-title-line .book-side-title {
    flex: 1 1 auto;
    margin: 0;
}

.book-title-favorite-button,
.book-card-title-favorite-button,
.book-detail-title-favorite-button {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset-inline-end: auto !important;
    transform: none !important;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    font-size: 21px;
    z-index: 5;
}

.book-title-favorite-button:hover,
.book-title-favorite-button:focus-visible,
.book-card-title-favorite-button:hover,
.book-card-title-favorite-button:focus-visible,
.book-detail-title-favorite-button:hover,
.book-detail-title-favorite-button:focus-visible {
    transform: translateY(-2px) scale(1.04) !important;
}

.book-cover-wrap .book-title-favorite-button,
.book-detail-cover .book-title-favorite-button,
.book-cover-stage .book-title-favorite-button {
    position: static !important;
}

@media (max-width: 760px) {
    .book-title-line,
    .book-detail-title-line {
        gap: 8px;
    }

    .book-title-favorite-button,
    .book-card-title-favorite-button,
    .book-detail-title-favorite-button {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Keep book favorite heart on the first title line */
.book-title-line,
.book-detail-title-line {
    align-items: flex-start !important;
}

.book-title-line h3,
.book-detail-title-line .book-side-title {
    min-width: 0;
    line-height: 1.18;
}

.book-title-favorite-button,
.book-card-title-favorite-button,
.book-detail-title-favorite-button {
    margin-top: -2px !important;
}

@media (max-width: 760px) {
    .book-title-favorite-button,
    .book-card-title-favorite-button,
    .book-detail-title-favorite-button {
        margin-top: -1px !important;
    }
}

.book-title-line,
.book-detail-title-line {
    display: block !important;
    width: 100%;
}

.book-title-line::after,
.book-detail-title-line::after {
    clear: both;
    content: "";
    display: block;
}

.book-title-line h3,
.book-detail-title-line .book-side-title {
    display: block !important;
    flex: none !important;
    margin: 0;
    min-width: 0;
}

.book-title-favorite-button,
.book-card-title-favorite-button,
.book-detail-title-favorite-button {
    align-items: center;
    display: inline-flex !important;
    float: left;
    justify-content: center;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 8px !important;
    position: static !important;
    transform: none !important;
}

.is-arabic .book-title-favorite-button,
.is-arabic .book-card-title-favorite-button,
.is-arabic .book-detail-title-favorite-button {
    float: right;
    margin-left: 8px !important;
    margin-right: 0 !important;
}

.book-card-title-favorite-button {
    font-size: 16px;
    height: 26px;
    margin-top: 0.05em !important;
    width: 26px;
}

.book-detail-title-favorite-button {
    font-size: 19px;
    height: 32px;
    margin-top: 0.08em !important;
    width: 32px;
}

.selected-book-detail .book-side-title {
    font-size: clamp(1.75rem, 3vw, 2.62rem) !important;
    line-height: 1.1;
}

.selected-book-detail .selected-book-description h2 {
    font-size: clamp(1.32rem, 2.1vw, 1.92rem) !important;
    line-height: 1.16;
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .book-card-title-favorite-button {
        font-size: 15px;
        height: 25px;
        width: 25px;
    }

    .book-detail-title-favorite-button {
        font-size: 18px;
        height: 30px;
        width: 30px;
    }

    .selected-book-detail .book-side-title {
        font-size: clamp(1.58rem, 8vw, 2.24rem) !important;
    }

    .selected-book-detail .selected-book-description h2 {
        font-size: clamp(1.22rem, 5.8vw, 1.66rem) !important;
    }
}


/* Move book favourite hearts to the bottom right corner of book images */
.book-title-line,
.book-detail-title-line {
    display: block !important;
}

.book-cover-wrap,
.book-detail-cover .book-cover-stage {
    position: relative !important;
}

.book-cover-wrap .book-favorite-button,
.book-detail-cover .book-cover-stage .book-detail-favorite-button {
    align-items: center !important;
    display: inline-flex !important;
    float: none !important;
    justify-content: center !important;
    position: absolute !important;
    top: auto !important;
    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    inset-inline-end: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 20 !important;
}

.book-cover-wrap .book-favorite-button:hover,
.book-cover-wrap .book-favorite-button:focus-visible,
.book-detail-cover .book-cover-stage .book-detail-favorite-button:hover,
.book-detail-cover .book-cover-stage .book-detail-favorite-button:focus-visible {
    transform: translateY(-2px) scale(1.04) !important;
}

@media (max-width: 760px) {
    .book-cover-wrap .book-favorite-button,
    .book-detail-cover .book-cover-stage .book-detail-favorite-button {
        right: 12px !important;
        bottom: 12px !important;
    }
}

/* Final strict book favorite placement on the bottom right of book images */
.image-wrap.book-cover-wrap,
.book-cover-wrap,
.book-detail-cover,
.book-detail-cover .book-cover-stage {
    position: relative !important;
}

.image-wrap.book-cover-wrap .book-favorite-button,
.book-cover-wrap .book-favorite-button {
    position: absolute !important;
    top: auto !important;
    right: 14px !important;
    bottom: 14px !important;
    left: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 30 !important;
}

.book-detail-cover .book-detail-favorite-button,
.book-detail-cover .book-cover-stage .book-detail-favorite-button,
.selected-book-detail .book-detail-cover .book-detail-favorite-button,
.selected-book-detail .book-detail-cover .book-cover-stage .book-detail-favorite-button {
    position: absolute !important;
    top: auto !important;
    right: 18px !important;
    bottom: 18px !important;
    left: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 30 !important;
}

.image-wrap.book-cover-wrap .book-favorite-button:hover,
.image-wrap.book-cover-wrap .book-favorite-button:focus-visible,
.book-cover-wrap .book-favorite-button:hover,
.book-cover-wrap .book-favorite-button:focus-visible,
.book-detail-cover .book-detail-favorite-button:hover,
.book-detail-cover .book-detail-favorite-button:focus-visible {
    transform: translateY(-2px) scale(1.04) !important;
}

@media (max-width: 760px) {
    .image-wrap.book-cover-wrap .book-favorite-button,
    .book-cover-wrap .book-favorite-button {
        right: 12px !important;
        bottom: 12px !important;
    }

    .book-detail-cover .book-detail-favorite-button,
    .book-detail-cover .book-cover-stage .book-detail-favorite-button,
    .selected-book-detail .book-detail-cover .book-detail-favorite-button,
    .selected-book-detail .book-detail-cover .book-cover-stage .book-detail-favorite-button {
        right: 14px !important;
        bottom: 14px !important;
    }
}

/* Absolute final fix: keep book hearts on the visual bottom right of book image wrappers. */
.image-wrap.book-cover-wrap,
.book-cover-wrap,
.book-detail-cover,
.book-detail-cover .book-cover-stage {
    position: relative !important;
}

.image-wrap.book-cover-wrap > .book-favorite-button,
.book-cover-wrap > .book-favorite-button {
    position: absolute !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    inset: auto 14px 14px auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 100 !important;
}

.book-detail-cover .book-detail-favorite-button,
.book-detail-cover .book-cover-stage > .book-detail-favorite-button,
.selected-book-detail .book-detail-cover .book-detail-favorite-button,
.selected-book-detail .book-detail-cover .book-cover-stage > .book-detail-favorite-button {
    position: absolute !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    inset: auto 18px 18px auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 100 !important;
}

.image-wrap.book-cover-wrap > .book-favorite-button:hover,
.image-wrap.book-cover-wrap > .book-favorite-button:focus-visible,
.book-cover-wrap > .book-favorite-button:hover,
.book-cover-wrap > .book-favorite-button:focus-visible,
.book-detail-cover .book-detail-favorite-button:hover,
.book-detail-cover .book-detail-favorite-button:focus-visible {
    transform: translateY(-2px) scale(1.04) !important;
}

@media (max-width: 760px) {
    .image-wrap.book-cover-wrap > .book-favorite-button,
    .book-cover-wrap > .book-favorite-button {
        inset: auto 12px 12px auto !important;
    }

    .book-detail-cover .book-detail-favorite-button,
    .book-detail-cover .book-cover-stage > .book-detail-favorite-button,
    .selected-book-detail .book-detail-cover .book-detail-favorite-button,
    .selected-book-detail .book-detail-cover .book-cover-stage > .book-detail-favorite-button {
        inset: auto 14px 14px auto !important;
    }
}

.selected-books-page .book-price-panel,
.books-grid .book-card .book-price-panel {
    background: linear-gradient(135deg, rgba(216, 177, 90, 0.16), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(216, 177, 90, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.selected-books-page .book-price-panel .home-price-copy strong,
.books-grid .book-card .book-price-panel .home-price-copy strong {
    color: var(--gold);
    font-family: "Playfair Display", serif;
}

.selected-book-detail .price-panel,
.is-arabic.selected-book-detail .price-panel {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.selected-book-detail .price-header,
.is-arabic.selected-book-detail .price-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.selected-book-detail .price-header span,
.is-arabic.selected-book-detail .price-header span {
    color: var(--gold);
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0;
}

.selected-book-detail .price-row,
.is-arabic.selected-book-detail .price-row {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.selected-book-detail .price-row strong,
.is-arabic.selected-book-detail .price-row strong {
    color: rgba(244, 241, 234, 0.96);
}

.selected-book-detail .price-row small,
.is-arabic.selected-book-detail .price-row small {
    color: var(--muted);
}

.selected-book-detail .price-row > span,
.is-arabic.selected-book-detail .price-row > span {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.26);
    color: var(--gold);
    font-weight: 800;
}

.selected-book-detail .price-panel,
.is-arabic.selected-book-detail .price-panel {
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.selected-book-detail .price-header,
.is-arabic.selected-book-detail .price-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.selected-book-detail .price-header span,
.is-arabic.selected-book-detail .price-header span {
    color: var(--gold) !important;
    font-family: "Playfair Display", serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.selected-book-detail .price-row,
.is-arabic.selected-book-detail .price-row {
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.selected-book-detail .price-row strong,
.is-arabic.selected-book-detail .price-row strong {
    color: rgba(244, 241, 234, 0.96) !important;
}

.selected-book-detail .price-row small,
.is-arabic.selected-book-detail .price-row small {
    color: var(--muted) !important;
}

.selected-book-detail .price-row > span,
.is-arabic.selected-book-detail .price-row > span {
    background: rgba(212, 175, 55, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.26) !important;
    color: var(--gold) !important;
    font-weight: 800 !important;
}

.selected-book-detail .selected-book-side .price-panel,
.is-arabic.selected-book-detail .selected-book-side .price-panel {
    margin: 4px 0 22px !important;
    padding: 16px !important;
    border-radius: 22px !important;
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.selected-book-detail .selected-book-side .price-header,
.is-arabic.selected-book-detail .selected-book-side .price-header {
    display: grid !important;
    gap: 4px !important;
    padding-bottom: 12px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.selected-book-detail .selected-book-side .price-header span,
.is-arabic.selected-book-detail .selected-book-side .price-header span {
    color: var(--gold) !important;
    font-family: "Playfair Display", serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.selected-book-detail .selected-book-side .price-header small,
.is-arabic.selected-book-detail .selected-book-side .price-header small {
    color: var(--muted) !important;
    line-height: 1.45 !important;
}

.selected-book-detail .selected-book-side .price-list,
.is-arabic.selected-book-detail .selected-book-side .price-list {
    display: grid !important;
    gap: 8px !important;
}

.selected-book-detail .selected-book-side .price-row,
.is-arabic.selected-book-detail .selected-book-side .price-row,
.selected-book-detail .selected-book-side .delivery-price-row,
.is-arabic.selected-book-detail .selected-book-side .delivery-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: inherit !important;
    box-shadow: none !important;
}

.selected-book-detail .selected-book-side .price-row div,
.is-arabic.selected-book-detail .selected-book-side .price-row div {
    display: grid !important;
    gap: 3px !important;
}

.selected-book-detail .selected-book-side .price-row strong,
.is-arabic.selected-book-detail .selected-book-side .price-row strong,
.selected-book-detail .selected-book-side .delivery-price-row strong,
.is-arabic.selected-book-detail .selected-book-side .delivery-price-row strong {
    color: rgba(244, 241, 234, 0.96) !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.selected-book-detail .selected-book-side .price-row small,
.is-arabic.selected-book-detail .selected-book-side .price-row small {
    color: var(--muted) !important;
}

.selected-book-detail .selected-book-side .price-row > span,
.is-arabic.selected-book-detail .selected-book-side .price-row > span,
.selected-book-detail .selected-book-side .delivery-price-row > span,
.is-arabic.selected-book-detail .selected-book-side .delivery-price-row > span {
    flex: 0 0 auto !important;
    min-width: 74px !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    text-align: center !important;
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.26) !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.selected-book-detail .selected-book-side .price-panel,
.is-arabic.selected-book-detail .selected-book-side .price-panel,
.book-detail-page .selected-book-side .price-panel,
.book-detail-page .price-panel {
    margin: 4px 0 22px !important;
    padding: 16px !important;
    border-radius: 22px !important;
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.selected-book-detail .selected-book-side .price-header,
.is-arabic.selected-book-detail .selected-book-side .price-header,
.book-detail-page .selected-book-side .price-header,
.book-detail-page .price-header {
    display: grid !important;
    gap: 4px !important;
    padding-bottom: 12px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.selected-book-detail .selected-book-side .price-header span,
.is-arabic.selected-book-detail .selected-book-side .price-header span,
.book-detail-page .selected-book-side .price-header span,
.book-detail-page .price-header span {
    color: var(--gold) !important;
    font-family: "Playfair Display", serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--gold) !important;
    text-shadow: none !important;
}

.selected-book-detail .selected-book-side .price-header small,
.is-arabic.selected-book-detail .selected-book-side .price-header small,
.book-detail-page .selected-book-side .price-header small,
.book-detail-page .price-header small {
    color: var(--muted) !important;
    line-height: 1.45 !important;
}

.selected-book-detail .selected-book-side .price-list,
.is-arabic.selected-book-detail .selected-book-side .price-list,
.book-detail-page .selected-book-side .price-list,
.book-detail-page .price-list {
    display: grid !important;
    gap: 8px !important;
}

.selected-book-detail .selected-book-side .price-row,
.is-arabic.selected-book-detail .selected-book-side .price-row,
.book-detail-page .selected-book-side .price-row,
.book-detail-page .price-row,
.selected-book-detail .selected-book-side .delivery-price-row,
.is-arabic.selected-book-detail .selected-book-side .delivery-price-row,
.book-detail-page .selected-book-side .delivery-price-row,
.book-detail-page .delivery-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: inherit !important;
    box-shadow: none !important;
}

.selected-book-detail .selected-book-side .price-row div,
.is-arabic.selected-book-detail .selected-book-side .price-row div,
.book-detail-page .selected-book-side .price-row div,
.book-detail-page .price-row div,
.selected-book-detail .selected-book-side .delivery-price-row div,
.is-arabic.selected-book-detail .selected-book-side .delivery-price-row div,
.book-detail-page .selected-book-side .delivery-price-row div,
.book-detail-page .delivery-price-row div {
    display: grid !important;
    gap: 3px !important;
}

.selected-book-detail .selected-book-side .price-row strong,
.is-arabic.selected-book-detail .selected-book-side .price-row strong,
.book-detail-page .selected-book-side .price-row strong,
.book-detail-page .price-row strong,
.selected-book-detail .selected-book-side .delivery-price-row strong,
.is-arabic.selected-book-detail .selected-book-side .delivery-price-row strong,
.book-detail-page .selected-book-side .delivery-price-row strong,
.book-detail-page .delivery-price-row strong {
    color: rgba(244, 241, 234, 0.96) !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: rgba(244, 241, 234, 0.96) !important;
    text-shadow: none !important;
}

.selected-book-detail .selected-book-side .price-row small,
.is-arabic.selected-book-detail .selected-book-side .price-row small,
.book-detail-page .selected-book-side .price-row small,
.book-detail-page .price-row small,
.selected-book-detail .selected-book-side .delivery-price-row small,
.is-arabic.selected-book-detail .selected-book-side .delivery-price-row small,
.book-detail-page .selected-book-side .delivery-price-row small,
.book-detail-page .delivery-price-row small {
    color: var(--muted) !important;
}

.selected-book-detail .selected-book-side .price-row > span,
.is-arabic.selected-book-detail .selected-book-side .price-row > span,
.book-detail-page .selected-book-side .price-row > span,
.book-detail-page .price-row > span,
.selected-book-detail .selected-book-side .delivery-price-row > span,
.is-arabic.selected-book-detail .selected-book-side .delivery-price-row > span,
.book-detail-page .selected-book-side .delivery-price-row > span,
.book-detail-page .delivery-price-row > span {
    flex: 0 0 auto !important;
    min-width: 74px !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    text-align: center !important;
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.26) !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    -webkit-text-fill-color: var(--gold) !important;
    text-shadow: none !important;
}

.selected-books-page .book-price-panel,
.books-grid .book-card .book-price-panel {
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.selected-books-page .book-price-panel .home-price-copy small,
.books-grid .book-card .book-price-panel .home-price-copy small {
    color: var(--muted) !important;
}

.selected-books-page .book-price-panel .home-price-copy strong,
.books-grid .book-card .book-price-panel .home-price-copy strong {
    color: var(--gold) !important;
    font-family: "Playfair Display", serif !important;
    background: none !important;
    background-image: none !important;
    -webkit-text-fill-color: var(--gold) !important;
}

.selected-books-page .book-price-panel .home-price-duration,
.books-grid .book-card .book-price-panel .home-price-duration {
    color: rgba(244, 241, 234, 0.9) !important;
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}


/* Final book price color sync with chalet detail price panel */
.books-page .price-panel,
.books-page .selected-book-side .price-panel,
.books-page.book-detail-page .price-panel {
    margin: 4px 0 22px !important;
    padding: 16px !important;
    border-radius: 22px !important;
    background: rgba(212, 175, 55, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.books-page .price-header,
.books-page .selected-book-side .price-header,
.books-page.book-detail-page .price-header {
    display: grid !important;
    gap: 4px !important;
    padding-bottom: 12px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.books-page .price-header span,
.books-page .selected-book-side .price-header span,
.books-page.book-detail-page .price-header span {
    color: var(--gold) !important;
    font-family: "Playfair Display", serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    background: none !important;
    background-image: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--gold) !important;
    text-shadow: none !important;
}

.books-page .price-header small,
.books-page .selected-book-side .price-header small,
.books-page.book-detail-page .price-header small {
    color: var(--muted) !important;
    line-height: 1.45 !important;
}

.books-page .price-list,
.books-page .selected-book-side .price-list,
.books-page.book-detail-page .price-list {
    display: grid !important;
    gap: 8px !important;
}

.books-page .price-row,
.books-page .selected-book-side .price-row,
.books-page.book-detail-page .price-row,
.books-page .delivery-price-row,
.books-page .selected-book-side .delivery-price-row,
.books-page.book-detail-page .delivery-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
}

.books-page .price-row div,
.books-page .selected-book-side .price-row div,
.books-page.book-detail-page .price-row div,
.books-page .delivery-price-row div,
.books-page .selected-book-side .delivery-price-row div,
.books-page.book-detail-page .delivery-price-row div {
    display: grid !important;
    gap: 3px !important;
}

.books-page .price-row strong,
.books-page .selected-book-side .price-row strong,
.books-page.book-detail-page .price-row strong,
.books-page .delivery-price-row strong,
.books-page .selected-book-side .delivery-price-row strong,
.books-page.book-detail-page .delivery-price-row strong {
    color: rgba(244, 241, 234, 0.96) !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: none !important;
    background-image: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: rgba(244, 241, 234, 0.96) !important;
    text-shadow: none !important;
}

.books-page .price-row small,
.books-page .selected-book-side .price-row small,
.books-page.book-detail-page .price-row small,
.books-page .delivery-price-row small,
.books-page .selected-book-side .delivery-price-row small,
.books-page.book-detail-page .delivery-price-row small {
    color: var(--muted) !important;
}

.books-page .price-row > span,
.books-page .selected-book-side .price-row > span,
.books-page.book-detail-page .price-row > span,
.books-page .delivery-price-row > span,
.books-page .selected-book-side .delivery-price-row > span,
.books-page.book-detail-page .delivery-price-row > span {
    flex: 0 0 auto !important;
    min-width: 74px !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    text-align: center !important;
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.26) !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    background-image: none !important;
    -webkit-text-fill-color: var(--gold) !important;
    text-shadow: none !important;
}

.books-page .book-price-panel,
.selected-books-page .book-price-panel,
.books-grid .book-card .book-price-panel,
.book-card-bottom .book-price-panel {
    margin: 4px 0 0 !important;
    padding: 16px !important;
    border-radius: 22px !important;
    background: rgba(106, 90, 38, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    color: inherit !important;
}

.books-page .book-price-panel .home-price-copy strong,
.selected-books-page .book-price-panel .home-price-copy strong,
.books-grid .book-card .book-price-panel .home-price-copy strong,
.book-card-bottom .book-price-panel .home-price-copy strong {
    display: inline-block !important;
    min-width: 74px !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    text-align: center !important;
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.26) !important;
    font-family: "Inter", sans-serif !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
    background-image: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--gold) !important;
    text-shadow: none !important;
}

.books-page .book-price-panel .book-now-inline,
.selected-books-page .book-price-panel .book-now-inline,
.books-grid .book-card .book-price-panel .book-now-inline,
.book-card-bottom .book-price-panel .book-now-inline {
    color: #17100a !important;
    background: #d4af37 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 238, 180, 0.8) !important;
    box-shadow: 0 12px 30px rgba(183, 137, 50, 0.26) !important;
    -webkit-text-fill-color: #17100a !important;
}

.books-page .book-price-panel .book-now-inline:hover,
.selected-books-page .book-price-panel .book-now-inline:hover,
.books-grid .book-card .book-price-panel .book-now-inline:hover,
.book-card-bottom .book-price-panel .book-now-inline:hover {
    background: #f1d587 !important;
    border-color: rgba(255, 238, 180, 0.8) !important;
    box-shadow: 0 18px 42px rgba(183, 137, 50, 0.36) !important;
}


/* Book detail pages: remove gradient and linear background colors */
.books-page.book-detail-page .selected-book-side,
.books-page.book-detail-page .selected-book-title-card,
.books-page.book-detail-page .book-detail-cover,
.books-page.book-detail-page .selected-book-description,
.books-page.book-detail-page .book-preview-item,
.books-page.book-detail-page .book-detail-tags .feature-icon,
.books-page.book-detail-page .price-panel {
    background-image: none !important;
}

.books-page.book-detail-page .selected-book-side {
    background: rgba(16, 18, 24, 0.97) !important;
}

.books-page.book-detail-page .selected-book-title-card,
.books-page.book-detail-page .book-preview-item,
.books-page.book-detail-page .book-detail-tags .feature-icon {
    background: rgba(255, 255, 255, 0.055) !important;
}

.books-page.book-detail-page .book-detail-cover {
    background: rgba(9, 10, 14, 0.94) !important;
}

.books-page.book-detail-page .selected-book-description {
    background: rgba(13, 14, 18, 0.96) !important;
}

.books-page.book-detail-page .price-panel {
    background: rgba(212, 175, 55, 0.08) !important;
}

.books-page.book-detail-page .book-side-title,
.books-page.book-detail-page .selected-book-description h2,
.books-page.book-detail-page .book-preview-section .section-title {
    background: none !important;
    background-image: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #f8df9c !important;
}

.books-page.book-detail-page .price-header span {
    background: none !important;
    background-image: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--gold) !important;
}


/* Book detail novel characters section */
.books-page.book-detail-page .book-characters-section {
    background: rgba(13, 14, 18, 0.96) !important;
    background-image: none !important;
}

.books-page.book-detail-page .bookCharactersParagraphs {
    margin-top: 18px;
}

.books-page.book-detail-page .book-character-paragraph {
    margin: 0 0 16px;
    text-align: justify;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.84);
}

.books-page.book-detail-page .book-character-paragraph:last-child {
    margin-bottom: 0;
}

.books-page.book-detail-page .book-character-paragraph strong {
    color: #f8df9c;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.is-arabic.selected-book-detail .bookCharactersParagraphs,
.is-arabic.selected-book-detail .book-character-paragraph {
    direction: rtl;
}


/* Main books page buy buttons: use the exact detail page buy button theme */
.books-page.selected-books-page .book-card .book-now-inline.whatsapp-book-button.gold-detail-buy,
.books-page.selected-books-page .book-card .book-now-inline.gold-detail-buy,
.books-page.selected-books-page .book-card .book-price-panel .book-now-inline.whatsapp-book-button.gold-detail-buy,
.books-page.selected-books-page .book-card .book-price-panel .book-now-inline.gold-detail-buy {
    align-items: center !important;
    background: #d4af37 !important;
    background-image: none !important;
    border: 1px solid rgba(255, 238, 180, 0.8) !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 30px rgba(183, 137, 50, 0.26) !important;
    color: #17100a !important;
    display: inline-flex !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    gap: 10px !important;
    justify-content: center !important;
    letter-spacing: 0 !important;
    min-height: 52px !important;
    padding: 0 22px !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
    -webkit-text-fill-color: #17100a !important;
}

.books-page.selected-books-page .book-card .book-now-inline.whatsapp-book-button.gold-detail-buy:hover,
.books-page.selected-books-page .book-card .book-now-inline.gold-detail-buy:hover,
.books-page.selected-books-page .book-card .book-price-panel .book-now-inline.whatsapp-book-button.gold-detail-buy:hover,
.books-page.selected-books-page .book-card .book-price-panel .book-now-inline.gold-detail-buy:hover {
    background: #f1d587 !important;
    background-image: none !important;
    border-color: rgba(255, 238, 180, 0.8) !important;
    box-shadow: 0 18px 42px rgba(183, 137, 50, 0.36) !important;
    color: #17100a !important;
    transform: translateY(-2px) !important;
    -webkit-text-fill-color: #17100a !important;
}

.books-page.selected-books-page .book-card .book-now-inline.whatsapp-book-button.gold-detail-buy .whatsapp-icon,
.books-page.selected-books-page .book-card .book-now-inline.gold-detail-buy .whatsapp-icon {
    height: 22px !important;
    width: 22px !important;
}

.books-page.selected-books-page .book-card .book-now-inline.gold-book-buy,
.books-page.selected-books-page .book-card .book-price-panel .book-now-inline.gold-book-buy,
.selected-books-page .book-card .book-now-inline.gold-book-buy,
.selected-books-page .book-card .book-price-panel .book-now-inline.gold-book-buy {
    align-items: center !important;
    background: linear-gradient(135deg, #f0d68e, #bf8c2a) !important;
    background-image: linear-gradient(135deg, #f0d68e, #bf8c2a) !important;
    border: 1px solid rgba(240, 214, 142, 0.72) !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 34px rgba(191, 140, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
    color: #171717 !important;
    display: inline-flex !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    gap: 7px !important;
    justify-content: center !important;
    letter-spacing: 0.03em !important;
    min-height: auto !important;
    padding: 10px 14px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    -webkit-text-fill-color: #171717 !important;
}

.books-page.selected-books-page .book-card .book-now-inline.gold-book-buy:hover,
.books-page.selected-books-page .book-card .book-price-panel .book-now-inline.gold-book-buy:hover,
.selected-books-page .book-card .book-now-inline.gold-book-buy:hover,
.selected-books-page .book-card .book-price-panel .book-now-inline.gold-book-buy:hover {
    background: linear-gradient(135deg, #f6dfa1, #c99531) !important;
    background-image: linear-gradient(135deg, #f6dfa1, #c99531) !important;
    border-color: rgba(240, 214, 142, 0.92) !important;
    box-shadow: 0 18px 42px rgba(191, 140, 42, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
    color: #171717 !important;
    transform: translateY(-2px) !important;
    -webkit-text-fill-color: #171717 !important;
}

.books-page.selected-books-page .book-card .book-now-inline.gold-book-buy .whatsapp-icon,
.selected-books-page .book-card .book-now-inline.gold-book-buy .whatsapp-icon {
    height: 18px !important;
    width: 18px !important;
}

/* Main books page buy buttons: remove the default shadow only */
.books-page.selected-books-page .book-card .book-now-inline.whatsapp-book-button.gold-detail-buy,
.books-page.selected-books-page .book-card .book-now-inline.gold-detail-buy,
.books-page.selected-books-page .book-card .book-price-panel .book-now-inline.whatsapp-book-button.gold-detail-buy,
.books-page.selected-books-page .book-card .book-price-panel .book-now-inline.gold-detail-buy,
.books-page.selected-books-page .book-card .book-now-inline.gold-book-buy,
.books-page.selected-books-page .book-card .book-price-panel .book-now-inline.gold-book-buy,
.selected-books-page .book-card .book-now-inline.gold-book-buy,
.selected-books-page .book-card .book-price-panel .book-now-inline.gold-book-buy {
    box-shadow: none !important;
}

/* Book detail Buy button: match the main books page hover effect */
.books-page.book-detail-page .gold-detail-buy,
.selected-book-detail .gold-detail-buy {
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
}

.books-page.book-detail-page .gold-detail-buy:hover,
.books-page.book-detail-page .gold-detail-buy:focus-visible,
.selected-book-detail .gold-detail-buy:hover,
.selected-book-detail .gold-detail-buy:focus-visible {
    background: linear-gradient(135deg, #f6dfa1, #c99531) !important;
    background-image: linear-gradient(135deg, #f6dfa1, #c99531) !important;
    border-color: rgba(240, 214, 142, 0.92) !important;
    box-shadow: 0 18px 42px rgba(191, 140, 42, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
    color: #171717 !important;
    transform: translateY(-2px) !important;
    -webkit-text-fill-color: #171717 !important;
}
