
/* =================================
   BOOKSTORE MAIN
================================= */

.bookstore-page {
    background: #000;
    color: #fff;
    /*padding: 40px 20px;*/
}

.bookstore-container {
   
    width: 100%;
    margin: 0 auto;
}
.featured-book-container, .bookstore-category-container{
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
}



/* Category header */

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
}

.category-heading {
    max-width: 650px;
}

.collection-label {
    display: inline-block;
    color: #BC9942;
    border: 1px solid #BC9942;
    padding: 7px 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.category-heading h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px;
}

.category-heading p {
    color: #ccc;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

.book-count {
    color: #BC9942;
    border: 1px solid #BC9942;
    padding: 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* Book list */

.book-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Book cards */

.book-card {
    display: grid;
    grid-template-columns: 29% 71%;
    background: #151616;
    border: 1px solid #363636;
    border-radius: 9px;
    overflow: hidden;
    min-height: 190px;
}

.book-card:hover {
    border-color: #BC9942;
}

.book-cover {
    background: #101111;
    border-right: 1px solid #363636;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    min-height: 190px;
}

.book-cover img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 155px;
    object-fit: contain;
}

.book-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    min-width: 0;
}

.book-category {
    color: #BC9942;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
section.bookstore-category {
    border-bottom: 1px solid #2D2B28;
}

.book-content h3 {
    color: #fff;
    font-size: 21px;
    margin: 0 0 7px;
}

.book-content h4 {
    color: #BC9942;
    font-size: 12px;
    margin: 0 0 9px;
}

.book-content > p {
    color: #ddd;
    font-size: 12px;
    line-height: 1.7;
    margin: 0 0 17px;
}

.book-footer,
.book-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.book-type {
    color: #aaa;
    font-size: 10px;
}

.btn-view,
.btn-buy {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    padding: 0 17px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
}

.btn-view {
    background: transparent;
    color: #fff;
    border: 1px solid #BC9942;
}

.btn-view:hover {
    background: #BC9942;
    color: #111;
}

.btn-buy {
    background: #BC9942;
    color: #080909;
    border: 1px solid #BC9942;
}

.btn-buy:hover {
    background: transparent;
    color: #BC9942;
}

.btn-demo {
    cursor: default;
    opacity: .65;
}

/* =================================
   QUICK VIEW MODAL
================================= */

.book-modal {
    width: min(1000px, calc(100% - 40px));
    max-width: 1000px;
    max-height: 90vh;
    padding: 0;
    border: 1px solid #725d2e;
    border-radius: 16px;
    background: #131515;
    color: #f5f3ef;
    overflow: auto;
}

.book-modal::backdrop {
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(7px);
}

.modal-header {
    min-height: 78px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #39352b;
}

.modal-header > span {
    color: #BC9942;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid #725d2e;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.modal-body {
    display: grid;
    grid-template-columns: 32% 68%;
    gap: 20px;
    padding: 34px;
}

.modal-cover {
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #0b0d0d;
    border-radius: 12px;
}

.modal-cover img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 390px;
    object-fit: contain;
}

.modal-content {
    min-width: 0;
}

.modal-category {
    display: block;
    color: #BC9942;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.modal-content h2 {
    color: #f5f3ef;
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 18px;
}

.modal-description,
.modal-section p {
    color: #d0ceca;
    font-size: 14px;
    line-height: 1.9;
}

.modal-section {
    padding: 17px 0 14px;
    border-top: 1px solid #403b31;
}

.modal-section h3 {
    color: #BC9942;
    font-size: 14px;
    margin: 0 0 8px;
}

.modal-section p {
    font-size: 13px;
    margin: 0;
}

.modal-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 22px;
    margin-top: 12px;
    border-top: 1px solid #403b31;
}

.modal-buy-btn {
    min-width: 185px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #BC9942;
    color: #080909;
    border: 1px solid #BC9942;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.modal-buy-btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.modal-footer p {
    color: #aaa69e;
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}

.modal-extra-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.modal-extra-links a {
    color: #BC9942;
    font-size: 12px;
}

/* Mobile */

@media (max-width: 768px) {

    .book-card {
        grid-template-columns: 30% 70%;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .modal-cover {
        min-height: 260px;
    }

    .modal-cover img {
        max-height: 230px;
    }

    .modal-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 550px) {

    .bookstore-page {
        padding: 25px 15px;
    }

    .category-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .book-card {
        grid-template-columns: 1fr;
    }

    .book-cover {
        min-height: 210px;
        border-right: 0;
        border-bottom: 1px solid #363636;
    }

    .book-cover img {
        max-height: 170px;
    }

    .book-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .book-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .book-modal {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border: 0;
    }

    .modal-header {
        min-height: 65px;
        padding: 0 18px;
    }

    .modal-body {
        padding: 18px;
    }

    .modal-cover {
        min-height: 220px;
    }

    .modal-cover img {
        max-height: 190px;
    }

    .modal-content h2 {
        font-size: 25px;
    }

    .modal-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal-buy-btn {
        width: 100%;
    }
}
