/* =========================================================
   YalpDev.com — BUKU
   Page détail d'un livre
========================================================= */

:root {
    --orange: #ee812c;
    --orange-dark: #d96f20;
    --orange-light: #fff3e9;

    --navy: #0f172a;
    --navy-soft: #172033;

    --text: #18202f;
    --muted: #64748b;

    --white: #ffffff;
    --background: #f7f8fa;

    --border: #e5e7eb;

    --green: #16a34a;

    --shadow-sm:
        0 6px 20px rgba(15, 23, 42, .06);

    --shadow-md:
        0 14px 35px rgba(15, 23, 42, .10);

    --radius: 16px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--background);

    color: var(--text);

    font-family: "Inter", sans-serif;

    font-size: 16px;

    line-height: 1.65;

    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
}


/* =========================================================
   HEADER
========================================================= */

.main-navbar {
    position: sticky;
    top: 0;

    z-index: 1000;

    width: 100%;

    background:
        rgba(15, 23, 42, .98);

    border-bottom:
        1px solid rgba(255,255,255,.07);

    box-shadow:
        0 5px 22px rgba(0,0,0,.12);
}

.navbar-container {
    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    min-height: 76px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* LOGO */

.navbar-brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: #fff;

    font-size: 22px;

    font-weight: 800;

    letter-spacing: -.5px;

    white-space: nowrap;
}

.brand-logo {
    width: 38px;
    height: 38px;

    object-fit: contain;

    flex-shrink: 0;
}

.navbar-brand > span > span {
    color: var(--orange);
}


/* DESKTOP */

.desktop-navigation {
    display: flex;
    align-items: center;

    gap: 4px;
}

.desktop-link {
    position: relative;

    min-height: 44px;

    padding: 8px 13px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    border-radius: 9px;

    color:
        rgba(255,255,255,.76);

    font-size: 15.5px;

    font-weight: 600;

    transition:
        color .2s ease,
        background .2s ease;
}

.desktop-link i {
    font-size: 16px;
}

.desktop-link:hover {
    color: #fff;

    background:
        rgba(255,255,255,.06);
}

.desktop-link.active {
    color: #fff;
}

.desktop-link.active::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 1px;

    height: 3px;

    border-radius: 20px;

    background: var(--orange);
}


/* LOGIN */

.login-button {
    min-height: 44px;

    padding: 8px 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border:
        1px solid var(--orange);

    border-radius: 10px;

    background: var(--orange);

    color: #fff;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.login-button:hover {
    background:
        var(--orange-dark);

    color: #fff;

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(238,129,44,.25);
}


/* MOBILE BUTTON */

.mobile-menu-button {
    display: none;

    width: 45px;
    height: 45px;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255,255,255,.15);

    border-radius: 10px;

    background:
        rgba(255,255,255,.06);

    color: #fff;

    font-size: 24px;

    cursor: pointer;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-overlay {
    position: fixed;

    inset: 0;

    z-index: 1080;

    background:
        rgba(2,6,23,.62);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.mobile-side-menu {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 1090;

    width:
        min(
            390px,
            82vw
        );

    height: 100dvh;

    padding: 22px;

    background: #fff;

    box-shadow:
        -20px 0 50px
        rgba(0,0,0,.18);

    transform:
        translateX(105%);

    transition:
        transform .32s
        cubic-bezier(.22,.61,.36,1);

    overflow-y: auto;
}

body.menu-open
.mobile-menu-overlay {
    opacity: 1;

    visibility: visible;
}

body.menu-open
.mobile-side-menu {
    transform:
        translateX(0);
}


/* MOBILE HEADER */

.mobile-side-header {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 18px;

    border-bottom:
        1px solid var(--border);
}

.mobile-brand {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: var(--navy);

    font-size: 19px;

    font-weight: 800;
}

.mobile-brand img {
    width: 36px;
    height: 36px;

    object-fit: contain;
}

.mobile-brand > span > span {
    color: var(--orange);
}

.mobile-menu-close {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #fff;

    color: var(--navy);

    cursor: pointer;
}

.mobile-menu-close:hover {
    color: var(--orange);

    border-color:
        rgba(238,129,44,.4);
}


/* MOBILE NAV */

.mobile-navigation {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 24px 0;
}

.mobile-nav-link {
    min-height: 56px;

    display: grid;

    grid-template-columns:
        30px 1fr 18px;

    align-items: center;

    gap: 12px;

    padding: 10px 14px;

    border-radius: 12px;

    color: var(--text);

    font-size: 16px;

    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;
}

.mobile-nav-icon {
    width: 30px;

    display: flex;
    justify-content: center;

    color: var(--orange);

    font-size: 18px;
}

.mobile-nav-arrow {
    color: #94a3b8;

    font-size: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background:
        var(--orange-light);

    color:
        var(--orange-dark);
}

.mobile-login-area {
    padding-top: 15px;

    border-top:
        1px solid var(--border);
}

.mobile-login {
    width: 100%;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb-section {
    background: #fff;

    border-bottom:
        1px solid var(--border);
}

.custom-breadcrumb {
    min-height: 58px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    color: var(--muted);

    font-size: 14px;
}

.custom-breadcrumb a {
    color: var(--orange-dark);

    font-weight: 600;
}

.custom-breadcrumb i {
    color: #a5adba;

    font-size: 10px;
}

.custom-breadcrumb span {
    max-width: 400px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   BOOK SECTION
========================================================= */

.book-details-section {
    padding: 45px 0 55px;
}

.book-details-layout {
    display: grid;

    grid-template-columns:
        260px
        minmax(0, 1fr)
        310px;

    gap: 35px;

    align-items: start;
}


/* =========================================================
   COVER
========================================================= */

.book-left-column {
    min-width: 0;
}

.book-cover-container {
    position: relative;

    overflow: hidden;

    width: 100%;

    aspect-ratio: 3 / 4;

    border-radius: 17px;

    background: #e9edf2;

    box-shadow:
        0 18px 40px
        rgba(15,23,42,.14);
}

.book-cover-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.book-badge {
    position: absolute;

    z-index: 2;

    top: 13px;
    left: 13px;

    padding: 5px 10px;

    border-radius: 999px;

    background: var(--orange);

    color: #fff;

    font-size: 12px;

    font-weight: 800;
}


/* FAVORI */

.favorite-button {
    width: 100%;

    min-height: 48px;

    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #fff;

    color: var(--navy);

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.favorite-button:hover,
.favorite-button.active {
    background:
        var(--orange-light);

    border-color:
        rgba(238,129,44,.35);

    color:
        var(--orange-dark);
}


/* STATISTIQUES */

.book-statistics {
    margin-top: 18px;

    padding: 17px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background: #fff;

    box-shadow: var(--shadow-sm);
}

.stat-row {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 0;

    border-bottom:
        1px solid #eef0f3;
}

.stat-row:first-child {
    padding-top: 0;
}

.stat-row:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.stat-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        var(--orange-light);

    color:
        var(--orange);

    font-size: 16px;
}

.stat-row small {
    display: block;

    color: var(--muted);

    font-size: 12px;
}

.stat-row strong {
    display: block;

    margin-top: 2px;

    color: var(--navy);

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   MAIN BOOK
========================================================= */

.book-main-column {
    min-width: 0;
}

.book-category {
    display: inline-flex;

    margin-bottom: 9px;

    color:
        var(--orange-dark);

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .06em;
}

.book-title {
    margin: 0;

    color: var(--navy);

    font-size:
        clamp(
            30px,
            4vw,
            44px
        );

    line-height: 1.13;

    font-weight: 800;

    letter-spacing: -.8px;
}

.book-subtitle {
    margin: 12px 0 0;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.7;
}


/* AUTEUR */

.book-author {
    margin-top: 20px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    color: var(--muted);

    font-size: 14px;
}

.author-avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    object-fit: cover;

    border:
        2px solid #fff;

    box-shadow:
        0 0 0 1px var(--border);
}

.book-author strong {
    color: var(--navy);

    font-size: 15px;
}

.verified-icon {
    color: #1689e8;

    font-size: 15px;
}


/* RATING */

.book-rating {
    margin-top: 15px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    color: var(--muted);

    font-size: 14px;
}

.stars {
    display: inline-flex;

    gap: 2px;

    color: var(--orange);
}

.stars i {
    font-size: 16px;
}

.book-rating strong {
    color: var(--navy);

    font-size: 15px;
}

.rating-separator {
    color: #b5bcc7;
}


/* =========================================================
   ACTIONS
========================================================= */

.primary-actions {
    margin-top: 23px;

    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 9px;
}

.read-button,
.download-button {
    min-height: 48px;

    padding: 10px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 800;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.read-button {
    background: var(--navy);

    color: #fff;
}

.read-button:hover {
    background:
        var(--navy-soft);

    color: #fff;

    transform:
        translateY(-1px);
}

.download-button {
    background: var(--orange);

    color: #fff;
}

.download-button:hover {
    background:
        var(--orange-dark);

    color: #fff;

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 20px
        rgba(238,129,44,.2);
}

.icon-action {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #fff;

    color: var(--navy);

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.icon-action:hover,
.icon-action.active {
    color: var(--orange);

    background:
        var(--orange-light);

    border-color:
        rgba(238,129,44,.35);
}


/* =========================================================
   QUICK ACTIONS
========================================================= */

.quick-actions {
    margin-top: 25px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 9px;
}

.quick-action {
    min-width: 0;

    padding: 13px;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 5px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: #fff;

    text-align: left;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.quick-action:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(238,129,44,.3);

    box-shadow: var(--shadow-sm);
}

.quick-icon {
    width: 34px;
    height: 34px;

    margin-bottom: 4px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 15px;
}

.quick-icon.blue {
    background: #eaf4ff;

    color: #1689e8;
}

.quick-icon.orange {
    background:
        var(--orange-light);

    color: var(--orange);
}

.quick-icon.dark {
    background: #eef0f3;

    color: var(--navy);
}

.quick-action strong {
    color: var(--navy);

    font-size: 13px;

    line-height: 1.35;
}

.quick-action small {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.35;
}


/* =========================================================
   ABOUT
========================================================= */

.about-book-section {
    margin-top: 35px;

    padding-top: 28px;

    border-top:
        1px solid var(--border);
}

.about-book-section h2,
.reviews-section h2 {
    margin: 0 0 14px;

    color: var(--navy);

    font-size: 21px;

    font-weight: 800;
}

.book-description {
    color: #4b5563;

    font-size: 16px;

    line-height: 1.8;

    white-space: normal;
}

.empty-description {
    color: var(--muted);

    font-size: 15px;
}


/* TAGS */

.book-tags {
    margin-top: 20px;

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.book-tags span {
    padding: 5px 10px;

    border-radius: 999px;

    background:
        var(--orange-light);

    color:
        var(--orange-dark);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   REVIEWS
========================================================= */

.reviews-section {
    margin-top: 40px;

    padding-top: 30px;

    border-top:
        1px solid var(--border);
}

.rating-summary {
    padding: 23px;

    display: grid;

    grid-template-columns:
        140px
        1fr
        210px;

    gap: 25px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: #fff;

    box-shadow: var(--shadow-sm);
}


/* SCORE */

.rating-score {
    text-align: center;
}

.rating-score > strong {
    display: block;

    color: var(--navy);

    font-size: 38px;

    line-height: 1;

    font-weight: 800;
}

.large-stars {
    margin-top: 8px;

    color: var(--orange);

    font-size: 17px;

    letter-spacing: 2px;
}

.rating-score small {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}


/* BARS */

.rating-bars {
    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 7px;
}

.rating-line {
    display: grid;

    grid-template-columns:
        60px
        1fr
        25px;

    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 12px;
}

.rating-line .progress {
    height: 7px;

    overflow: hidden;

    border-radius: 999px;

    background: #edf0f3;
}

.rating-line .progress-bar {
    background: var(--orange);

    border-radius: 999px;
}

.rating-line small {
    text-align: right;
}


/* REVIEW BUTTON */

.review-action {
    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: stretch;
}

.review-button {
    min-height: 46px;

    border:
        1px solid var(--orange);

    border-radius: 9px;

    background:
        var(--orange);

    color: #fff;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;
}

.review-button:hover {
    background:
        var(--orange-dark);
}

.review-action p {
    margin: 9px 0 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   COMMENTS
========================================================= */

.comments-section {
    margin-top: 25px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 15px;
}

.comments-header h3 {
    margin: 0;

    color: var(--navy);

    font-size: 18px;

    font-weight: 800;
}

.comments-sort {
    min-height: 38px;

    padding: 5px 10px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: #fff;

    color: var(--muted);

    font-size: 13px;
}


/* COMMENT FORM */

.comment-form {
    margin-bottom: 22px;

    padding: 12px;

    display: flex;
    align-items: center;

    gap: 9px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: #fff;
}

.comment-avatar {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--orange-light);

    color:
        var(--orange-dark);

    font-size: 14px;

    font-weight: 800;
}

.comment-form input[type="text"] {
    min-width: 0;
    flex: 1;

    height: 42px;

    padding: 8px 11px;

    border:
        1px solid transparent;

    border-radius: 8px;

    outline: 0;

    background: #f7f8fa;

    color: var(--text);

    font-size: 14px;
}

.comment-form input[type="text"]:focus {
    border-color:
        rgba(238,129,44,.35);

    background: #fff;
}

.comment-form button {
    min-height: 42px;

    padding: 8px 15px;

    border: 0;

    border-radius: 8px;

    background: var(--orange);

    color: #fff;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;
}

.comment-form button:disabled {
    opacity: .6;

    cursor: not-allowed;
}


/* COMMENT */

.book-comment {
    display: flex;

    gap: 11px;

    padding: 17px 0;

    border-bottom:
        1px solid #edf0f3;
}

.comment-reply {
    margin-left: 48px;

    padding-left: 14px;

    border-left:
        2px solid #f2d0b5;
}

.comment-body {
    min-width: 0;

    flex: 1;
}

.comment-head {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}

.comment-head strong {
    color: var(--navy);

    font-size: 14px;
}

.comment-head time {
    color: #94a3b8;

    font-size: 12px;
}

.comment-text {
    margin: 5px 0 7px;

    color: #4b5563;

    font-size: 14px;

    line-height: 1.65;
}

.comment-actions button {
    padding: 0;

    border: 0;

    background: transparent;

    color: var(--muted);

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}

.comment-actions button:hover {
    color: var(--orange);
}

.more-comments {
    margin-top: 16px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--orange-dark);

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;
}


/* =========================================================
   SIDEBAR
========================================================= */

.book-sidebar {
    display: flex;

    flex-direction: column;

    gap: 17px;
}

.sidebar-card {
    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: #fff;

    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    margin: 0 0 16px;

    color: var(--navy);

    font-size: 17px;

    font-weight: 800;
}


/* DETAILS */

.detail-row {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    padding: 10px 0;

    border-bottom:
        1px solid #eef0f3;
}

.detail-row:first-of-type {
    padding-top: 0;
}

.detail-row:last-child {
    border-bottom: 0;

    padding-bottom: 0;
}

.detail-row span {
    color: var(--muted);

    font-size: 13px;
}

.detail-row strong {
    color: var(--navy);

    font-size: 13px;

    text-align: right;
}


/* AUTHOR */

.author-box {
    display: flex;

    align-items: flex-start;

    gap: 12px;
}

.author-box > img {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    border-radius: 50%;

    object-fit: cover;
}

.author-box strong {
    color: var(--navy);

    font-size: 14px;
}

.author-box p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.55;
}

.author-books-button {
    width: 100%;

    min-height: 40px;

    margin-top: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 9px;

    color: var(--navy);

    font-size: 13px;

    font-weight: 700;
}

.author-books-button:hover {
    color: var(--orange-dark);

    border-color:
        rgba(238,129,44,.4);

    background:
        var(--orange-light);
}


/* SHARE */

.share-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8px;
}

.share-button {
    min-height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 0;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;
}

.share-button.facebook {
    background: #edf4ff;
    color: #1877f2;
}

.share-button.twitter {
    background: #f1f3f5;
    color: #111827;
}

.share-button.whatsapp {
    background: #eafaf0;
    color: #16a34a;
}

.share-button.linkedin {
    background: #edf6ff;
    color: #0a66c2;
}

.copy-link-button {
    width: 100%;

    min-height: 40px;

    margin-top: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: #fff;

    color: var(--navy);

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

.copy-link-button:hover {
    border-color:
        rgba(238,129,44,.4);

    color: var(--orange-dark);
}


/* SIMILAR */

.similar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.similar-heading h3 {
    margin: 0;
}

.similar-heading a {
    color: var(--orange-dark);

    font-size: 12px;

    font-weight: 700;
}

.similar-book {
    padding: 11px 0;

    display: flex;

    gap: 10px;

    border-bottom:
        1px solid #eef0f3;
}

.similar-book:last-child {
    border-bottom: 0;

    padding-bottom: 0;
}

.similar-book img {
    width: 52px;
    height: 68px;

    flex: 0 0 52px;

    border-radius: 6px;

    object-fit: cover;
}

.similar-book strong {
    display: -webkit-box;

    overflow: hidden;

    color: var(--navy);

    font-size: 13px;

    line-height: 1.4;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.similar-book span {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}

.similar-book span i {
    color: var(--orange);
}

.empty-sidebar {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   DONATION
========================================================= */

.donation-section {
    padding: 10px 0 55px;
}

.donation-card {
    padding: 25px;

    display: flex;
    align-items: center;

    gap: 20px;

    border:
        1px solid #fed7aa;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fff7ed,
            #fff
        );

    box-shadow:
        0 14px 35px
        rgba(15,23,42,.07);
}

.donation-icon {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: #ffedd5;

    color: #ea580c;

    font-size: 24px;
}

.donation-content {
    flex: 1;
}

.donation-content > span {
    color: #c2410c;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .08em;
}

.donation-content h2 {
    margin: 5px 0 5px;

    color: var(--navy);

    font-size: 21px;

    font-weight: 800;
}

.donation-content p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.65;
}

.donation-actions {
    min-width: 220px;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.donation-actions a {
    min-height: 43px;

    padding: 9px 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 800;
}

.donation-small {
    background: var(--orange);

    color: #fff;
}

.donation-small:hover {
    background:
        var(--orange-dark);

    color: #fff;
}

.donation-more {
    border:
        1px solid #cbd5e1;

    background: #fff;

    color: var(--navy);
}

.donation-more:hover {
    color: var(--orange-dark);

    border-color:
        rgba(238,129,44,.4);
}


/* =========================================================
   MODALS
========================================================= */

.modal-content {
    border: 0;

    border-radius: 18px;

    overflow: hidden;
}

.modal-header {
    padding: 22px 25px 10px;

    border: 0;
}

.modal-header h2 {
    margin: 3px 0 0;

    color: var(--navy);

    font-size: 23px;

    font-weight: 800;
}

.modal-label {
    color: var(--orange);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .08em;
}

.modal-body {
    padding: 15px 25px 25px;
}


/* REVIEW */

.rating-selector {
    margin-bottom: 20px;

    text-align: center;
}

.rating-selector p {
    margin: 0 0 10px;

    color: var(--navy);

    font-size: 14px;

    font-weight: 700;
}

.rating-stars-input {
    display: flex;

    justify-content: center;

    gap: 5px;
}

.rating-star-button {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 0;

    background: transparent;

    color: #cbd5e1;

    font-size: 25px;

    cursor: pointer;
}

.rating-star-button:hover,
.rating-star-button.active {
    color: var(--orange);
}

.rating-label {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.form-group {
    margin-top: 16px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--navy);

    font-size: 13px;

    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 10px 12px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    outline: 0;

    color: var(--text);

    font-size: 14px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--orange);

    box-shadow:
        0 0 0 3px
        rgba(238,129,44,.1);
}

.modal-footer {
    padding: 15px 25px 22px;

    border: 0;
}

.modal-cancel,
.modal-submit {
    min-height: 43px;

    padding: 8px 15px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

.modal-cancel {
    border:
        1px solid var(--border);

    background: #fff;

    color: var(--navy);
}

.modal-submit {
    border:
        1px solid var(--orange);

    background: var(--orange);

    color: #fff;
}


/* LOGIN */

.login-modal .modal-body {
    padding: 5px 30px 30px;

    text-align: center;
}

.login-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 15px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--orange-light);

    color: var(--orange);

    font-size: 28px;
}

.login-modal h2 {
    margin: 0;

    color: var(--navy);

    font-size: 24px;

    font-weight: 800;
}

.login-description {
    margin: 8px 0 20px;

    color: var(--muted);

    font-size: 14px;
}

.social-login {
    min-height: 51px;

    margin-top: 9px;

    padding: 9px 13px;

    display: grid;

    grid-template-columns:
        25px
        1fr
        20px;

    align-items: center;

    gap: 10px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    color: var(--navy);

    font-size: 14px;

    font-weight: 600;

    text-align: left;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.social-login:hover {
    background: var(--orange-light);

    border-color:
        rgba(238,129,44,.35);
}

.social-icon {
    color: var(--orange);

    text-align: center;
}

.social-login .arrow {
    color: #94a3b8;
}

.login-footer {
    margin-top: 18px;

    color: #94a3b8;

    font-size: 12px;
}

.login-footer i {
    margin-right: 4px;

    color: #22a06b;
}


/* =========================================================
   TOAST
========================================================= */

.site-toast {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 2000;

    max-width: 340px;

    padding: 12px 16px;

    display: flex;
    align-items: center;

    gap: 9px;

    border-radius: 10px;

    background: var(--navy);

    color: #fff;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,.2);

    font-size: 13px;

    transform:
        translateY(20px);

    opacity: 0;

    visibility: hidden;

    transition:
        .25s ease;
}

.site-toast.show {
    transform:
        translateY(0);

    opacity: 1;

    visibility: visible;
}

.site-toast i {
    color: #4ade80;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding-top: 55px;

    background: var(--navy);

    color:
        rgba(255,255,255,.65);
}

.footer-container {
    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin: auto;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;

    gap: 45px;

    padding-bottom: 40px;
}

.footer-brand {
    max-width: 390px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #fff;

    font-size: 22px;

    font-weight: 800;
}

.footer-logo img {
    width: 36px;
    height: 36px;

    object-fit: contain;
}

.footer-logo span span {
    color: var(--orange);
}

.footer-brand > p {
    margin: 14px 0 0;

    color:
        rgba(255,255,255,.58);

    font-size: 15px;

    line-height: 1.7;
}

.footer-social {
    margin-top: 17px;

    display: flex;

    gap: 7px;
}

.footer-social a {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(255,255,255,.1);

    border-radius: 9px;

    color:
        rgba(255,255,255,.65);

    font-size: 15px;
}

.footer-social a:hover {
    background:
        rgba(238,129,44,.12);

    color: var(--orange);

    border-color:
        rgba(238,129,44,.3);
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.footer-column h3 {
    margin: 0 0 9px;

    color: #fff;

    font-size: 16px;

    font-weight: 800;
}

.footer-column a {
    color:
        rgba(255,255,255,.58);

    font-size: 14px;
}

.footer-column a:hover {
    color: var(--orange);
}

.footer-bottom {
    min-height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid
        rgba(255,255,255,.08);

    color:
        rgba(255,255,255,.42);

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1150px) {

    .book-details-layout {
        grid-template-columns:
            230px
            minmax(0, 1fr)
            285px;

        gap: 25px;
    }

}


@media (max-width: 1000px) {

    .desktop-link {
        padding-left: 9px;
        padding-right: 9px;
    }

    .desktop-link span {
        display: none;
    }

    .desktop-link i {
        font-size: 18px;
    }

    .book-details-layout {
        grid-template-columns:
            220px
            minmax(0, 1fr);
    }

    .book-sidebar {
        grid-column:
            1 / -1;

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);
    }

    .sidebar-card:last-child {
        grid-column:
            1 / -1;
    }

}


@media (max-width: 850px) {

    .desktop-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .navbar-container {
        min-height: 70px;
    }

    .book-details-layout {
        grid-template-columns:
            210px
            minmax(0, 1fr);
    }

    .quick-actions {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .rating-summary {
        grid-template-columns:
            110px
            1fr;
    }

    .review-action {
        grid-column:
            1 / -1;
    }

    .footer-grid {
        grid-template-columns:
            1fr 1fr;
    }

}


@media (max-width: 767px) {

    body {
        font-size: 15.5px;
    }

    .navbar-container {
        width:
            calc(100% - 28px);
    }

    .navbar-brand {
        font-size: 20px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .book-details-section {
        padding: 30px 0 40px;
    }

    .book-details-layout {
        display: flex;

        flex-direction: column;

        gap: 30px;
    }

    .book-left-column {
        width: min(
            100%,
            290px
        );

        margin: auto;
    }

    .book-main-column,
    .book-sidebar {
        width: 100%;
    }

    .book-title {
        font-size: 32px;
    }

    .book-subtitle {
        font-size: 16px;
    }

    .book-sidebar {
        display: flex;

        flex-direction: column;
    }

    .rating-summary {
        grid-template-columns:
            1fr;
    }

    .rating-score {
        text-align: left;
    }

    .rating-bars {
        width: 100%;
    }

    .review-action {
        grid-column: auto;
    }

    .donation-card {
        align-items: flex-start;

        flex-direction: column;
    }

    .donation-actions {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;

        flex-direction: column;

        padding: 20px 0;
    }

}


@media (max-width: 520px) {

    .mobile-side-menu {
        width: 82vw;

        padding: 18px;
    }

    .custom-breadcrumb {
        font-size: 13px;
    }

    .book-title {
        font-size: 30px;
    }

    .book-rating {
        font-size: 13px;
    }

    .primary-actions {
        display: grid;

        grid-template-columns:
            1fr 1fr
            48px
            48px;

        width: 100%;
    }

    .read-button,
    .download-button {
        width: 100%;

        padding-left: 8px;
        padding-right: 8px;

        font-size: 13px;
    }

    .quick-actions {
        grid-template-columns:
            1fr 1fr;
    }

    .comment-form {
        flex-wrap: wrap;
    }

    .comment-form input[type="text"] {
        order: 3;

        width: 100%;

        flex-basis: 100%;
    }

    .comment-form button {
        margin-left: auto;
    }

    .comment-reply {
        margin-left: 20px;

        padding-left: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

}