@charset "UTF-8";

html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;

    font-family: 'Poppins', sans-serif;
    background-color: #F9ECD9;
    color: #3d2b1f;
}
/* =========================================================
   FIX HEADER OVERLAP
   ========================================================= */

.book-banner {
    margin-top: 76px;
}
.active-link {
    color: #ffffff !important;
    border-bottom: 2px solid #e2691f;
    padding-bottom: 4px;
}


/* ==========================================================================
   PAGE BANNER
   ========================================================================== */

.book-banner {
    background-image: url("../IMG/bookmain4.png");
    min-height: 75vh; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 45px 0 45px;

    border-bottom: 4px solid #5c3a22;
}

.book-banner-inner {
    width: 90%;
    max-width: 1000px;
	
    margin: 100px auto;

    padding: 0 30px;

    text-align: center;
}

.book-banner-inner h1 {
    font-family: 'Playfair Display', serif;

    font-size: 40px;
    font-weight: 700;

    color: #f9ecd9;

    margin-bottom: 12px;
}

.book-banner-inner > p {
    font-size: 16px;

    color: #f9ecd9;

    margin-bottom: 28px;
}


/* ==========================================================================
   BOOK SEARCH BAR
   ========================================================================== */

.book-search-bar {
    background-color: #fdfaf4;

    border: 1px solid #d9c9ae;

    border-radius: 12px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 11px 11px 20px;

    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.10);
}

.book-search-bar i {
    color: #a08a6f;

    font-size: 17px;

    flex-shrink: 0;
}

.book-search-bar input {
    border: none;

    outline: none;

    background: transparent;

    font-family: 'Poppins', sans-serif;

    font-size: 15px;

    width: 100%;

    color: #3d2b1f;
}

.book-search-bar input::placeholder {
    color: #a08a6f;
}

.book-search-bar .btn-primary {
    padding: 11px 25px;

    font-size: 14px;

    white-space: nowrap;

    border: none;

    border-radius: 8px;

    background-color: #cd5c10;

    color: #ffffff;

    cursor: pointer;

    transition: all 0.3s ease;
}

.book-search-bar .btn-primary:hover {
    background-color: #a94708;

    transform: translateY(-1px);
}


/* ==========================================================================
   BOOK FILTERS SECTION
   ========================================================================== */

.book-filters-section {
    padding: 25px 0;

    background: #fff8ef;

    border-top: 1px solid #e6d5c3;

    border-bottom: 1px solid #e6d5c3;
}

.book-filters-inner {
    width: 92%;

    max-width: 1400px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    flex-wrap: wrap;
}


/* ==========================================================================
   GENRE PILLS
   ========================================================================== */

.genre-pills {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.genre-pill {
    text-decoration: none;

    color: #5c3a22;

    background: #f7e5d1;

    border: 2px solid #d8b892;

    padding: 10px 20px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 600;

    transition: all 0.3s ease;

    cursor: pointer;
}

.genre-pill:hover {
    background: #b45f06;

    border-color: #b45f06;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 5px 10px rgba(180, 95, 6, 0.20);
}

.genre-pill.active {
    background: #5c3a22;

    color: #ffffff;

    border-color: #5c3a22;

    box-shadow:
        0 4px 10px rgba(92, 58, 34, 0.20);
}


/* ==========================================================================
   SORT DROPDOWN
   ========================================================================== */

.sort-control {
    display: flex;

    align-items: center;

    gap: 12px;
}

.sort-control label {
    font-size: 15px;

    font-weight: 600;

    color: #5c3a22;
}

.sort-control select {
    padding: 10px 18px;

    border: 2px solid #d8b892;

    border-radius: 10px;

    background: #ffffff;

    color: #5c3a22;

    font-size: 14px;

    font-weight: 500;

    cursor: pointer;

    outline: none;

    transition: all 0.3s ease;
}

.sort-control select:hover,
.sort-control select:focus {
    border-color: #b45f06;

    box-shadow:
        0 0 8px rgba(180, 95, 6, 0.20);
}

/* =========================================================
   SHABDSETU — PREMIUM BOOK CARD
   ========================================================= */

.books-grid-inner {
    width: 92%;
    max-width: 1380px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}


/* =========================
   CARD
   ========================= */

.book-card {
    position: relative;
    width: 100%;
    min-width: 0;

    background: #fffdf9;
    border: 1px solid rgba(91, 61, 38, 0.10);
    border-radius: 20px;

    padding: 12px;

    overflow: hidden;
    cursor: pointer;

    box-shadow:
        0 5px 18px rgba(54, 37, 25, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.book-card:hover {
    transform: translateY(-7px);

    border-color: rgba(133, 83, 39, 0.22);

    box-shadow:
        0 18px 40px rgba(54, 37, 25, 0.14);
}


/* =========================
   COVER
   ========================= */

.book-cover {
    position: relative;

    width: 100%;
    aspect-ratio: 3 / 4;

    overflow: hidden;

    border-radius: 15px;

    background: #eee4d7;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.12);
}

.book-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.55s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.035);
}


/* =========================
   COVER BOTTOM SHADOW
   ========================= */

.book-cover::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 30%;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.22),
        transparent
    );

    pointer-events: none;
}


/* =========================
   WISHLIST
   ========================= */

.fav-icon {
    position: absolute;

    top: 14px;
    right: 14px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(90, 60, 40, 0.08);

    border-radius: 50%;

    color: #87513c;

    font-size: 16px;

    z-index: 5;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.14);

    transition:
        all 0.25s ease;
}

.fav-icon:hover {
    background: #6c4229;
    color: #ffffff;

    transform: scale(1.08);
}

.fav-icon i {
    pointer-events: none;
}


/* =========================
   CONTENT
   ========================= */

.book-card-content {
    padding: 17px 5px 7px;
}


/* =========================
   TITLE
   ========================= */

.book-title {
    margin: 0;

    font-family: "Playfair Display", serif;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.3;

    color: #2e2118;

    min-height: 49px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    transition: color 0.25s ease;
}

.book-card:hover .book-title {
    color: #8b542d;
}


/* =========================
   AUTHOR
   ========================= */

.book-author {
    display: flex;
    align-items: center;

    gap: 6px;

    margin: 6px 0 15px;

    color: #9a8875;

    font-family: "Poppins", sans-serif;

    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-author i {
    color: #b0845d;
    font-size: 10px;
}


/* =========================
   RATING
   ========================= */

.book-rating {
    display: flex;
    align-items: center;

    gap: 7px;

    padding-top: 12px;

    border-top: 1px solid rgba(87, 57, 35, 0.09);

    font-family: "Poppins", sans-serif;
    font-size: 11.5px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.book-rating i {
    color: #c98b2e;
    font-size: 10px;
}

.rating-number {
    color: #4b3525;
    font-weight: 700;
}

.review-count {
    color: #a09284;
    font-size: 11px;
}


/* =========================
   GENRE
   ========================= */

.genre-tag {
    display: inline-flex;
    align-items: center;

    margin-top: 11px;

    padding: 5px 11px;

    border-radius: 30px;

    background: #f5eadc;

    color: #795536;

    font-family: "Poppins", sans-serif;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.2px;
}


/* =========================
   CARD HOVER LINE
   ========================= */

.book-card::before {
    content: "";

    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 0;

    height: 2px;

    background: #9a6339;

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.3s ease;
}

.book-card:hover::before {
    transform: scaleX(1);
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 1100px) {

    .books-grid-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}


/* =========================
   SMALL TABLET
   ========================= */

@media (max-width: 800px) {

    .books-grid-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 520px) {

    .books-grid-inner {
        width: 90%;

        grid-template-columns: 1fr;

        gap: 22px;
    }

    .book-card {
        padding: 13px;
    }

    .book-title {
        font-size: 20px;
    }
}
/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 45px;
}

.page-arrow,
.page-num {
    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    border: 1px solid #e5d8bc;

    background-color: #fdfaf4;

    color: #5a4632;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.25s ease;
}

.page-num:hover,
.page-arrow:hover {
    background-color: #f0dfc2;

    border-color: #d3b58d;

    transform: translateY(-2px);
}

.page-num.active {
    background-color: #cd5c10;

    border-color: #cd5c10;

    color: #ffffff;
}

.page-dots {
    color: #9a8a76;

    padding: 0 4px;
}


/* ==========================================================================
   SEARCH RESULT INFO
   ========================================================================== */

.search-result-info {
    width: 90%;

    max-width: 1200px;

    margin: 0 auto 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 14px 18px;

    background: #fffaf3;

    border: 1px solid #e5d8bc;

    border-radius: 10px;

    color: #5c3a22;

    font-size: 14px;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.04);
}

.search-result-info strong {
    color: #b45f06;
}

.search-result-info button {
    border: none;

    background: #5c3a22;

    color: #ffffff;

    padding: 8px 15px;

    border-radius: 7px;

    font-size: 12px;

    cursor: pointer;

    transition: all 0.3s ease;
}

.search-result-info button:hover {
    background: #b45f06;

    transform: translateY(-1px);
}


/* ==========================================================================
   SEARCH NO RESULTS
   ========================================================================== */

.search-no-results {
    grid-column: 1 / -1;

    text-align: center;

    padding: 80px 20px;

    color: #5c3a22;
}

.search-no-results i {
    font-size: 48px;

    color: #c98b52;

    margin-bottom: 18px;
}

.search-no-results h3 {
    margin: 0 0 10px;

    font-family: 'Playfair Display', serif;

    font-size: 26px;

    color: #3d2b1f;
}

.search-no-results p {
    margin-bottom: 22px;

    color: #8b7967;

    font-size: 14px;
}

.search-no-results button {
    border: none;

    background: #cd5c10;

    color: #ffffff;

    padding: 11px 22px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 13px;

    transition: all 0.3s ease;
}

.search-no-results button:hover {
    background: #9f4308;

    transform: translateY(-2px);
}


/* ==========================================================================
   BOOK LOADING
   ========================================================================== */

.books-loading {
    grid-column: 1 / -1;

    text-align: center;

    padding: 70px 20px;

    color: #7c6856;

    font-size: 15px;
}

.books-loading i {
    margin-right: 8px;

    color: #cd5c10;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background:
        linear-gradient(
            180deg,
            #6e3c18,
            #3b1e0e
        );

    color: #ffffff;
}

.footer-container {
    width: 92%;

    max-width: 1300px;

    margin: auto;

    padding: 60px 30px 40px;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 2fr;

    gap: 45px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;

    font-size: 32px;

    color: #ffd27a;

    margin-bottom: 15px;
}

.footer-logo i {
    margin-right: 8px;
}

.footer-about {
    color: #dddddd;

    line-height: 1.8;

    margin-bottom: 25px;
}

.footer-column h3 {
    color: #ffd27a;

    margin-bottom: 20px;

    font-size: 20px;
}

.footer-column ul {
    list-style: none;

    padding: 0;

    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #dddddd;

    text-decoration: none;

    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffd27a;

    padding-left: 6px;
}


/* ==========================================================================
   SOCIAL ICONS
   ========================================================================== */

.social-icons {
    display: flex;

    gap: 12px;
}

.social-icons a {
    width: 42px;

    height: 42px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.1);

    display: flex;

    justify-content: center;

    align-items: center;

    color: #ffffff;

    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #ffd27a;

    color: #3b1e0e;

    transform: translateY(-5px);
}


/* ==========================================================================
   NEWSLETTER
   ========================================================================== */

.newsletter {
    display: flex;

    margin-top: 20px;
}

.newsletter input {
    flex: 1;

    padding: 14px;

    border: none;

    outline: none;

    border-radius: 8px 0 0 8px;
}

.newsletter button {
    padding: 14px 24px;

    border: none;

    background: #ffd27a;

    color: #3b1e0e;

    font-weight: 600;

    cursor: pointer;

    border-radius: 0 8px 8px 0;

    transition: all 0.3s ease;
}

.newsletter button:hover {
    background: #f4b942;
}


/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */

.footer-bottom {
    border-top:
        1px solid rgba(255, 255, 255, 0.15);

    text-align: center;

    padding: 22px;

    color: #dddddd;
}


/* ==========================================================================
   RESPONSIVE - 1200px
   ========================================================================== */

@media (max-width: 1200px) {

    .books-grid-inner {
        grid-template-columns:
            repeat(3, minmax(200px, 1fr));

        gap: 25px;
    }

    .book-cover img {
        height: 270px;
    }

    .footer-container {
        grid-template-columns:
            2fr 1fr 1fr;

        gap: 35px;
    }
}


/* ==========================================================================
   RESPONSIVE - 900px
   ========================================================================== */

@media (max-width: 900px) {

    .books-grid-inner {
        grid-template-columns:
            repeat(2, minmax(200px, 1fr));

        gap: 22px;
    }

    .book-filters-inner {
        flex-direction: column;

        align-items: flex-start;
    }

    .sort-control {
        width: 100%;

        justify-content: space-between;
    }

    .sort-control select {
        width: 200px;
    }

    .book-cover img {
        height: 280px;
    }

    .footer-container {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* ==========================================================================
   RESPONSIVE - 650px
   ========================================================================== */

@media (max-width: 650px) {

    .book-banner {
        padding: 40px 0 35px;
    }

    .book-banner-inner {
        width: 95%;

        padding: 0 15px;
    }

    .book-banner-inner h1 {
        font-size: 29px;
    }

    .book-banner-inner > p {
        font-size: 14px;
    }

    .book-search-bar {
        flex-wrap: wrap;

        padding: 12px;
    }

    .book-search-bar input {
        min-width: 150px;
    }

    .book-search-bar .btn-primary {
        width: 100%;
    }

    .books-grid-inner {
        width: 95%;

        padding: 0 10px;

        grid-template-columns:
            repeat(2, minmax(150px, 1fr));

        gap: 16px;
    }

    .book-card {
        min-width: 0;

        padding: 13px;

        border-radius: 12px;
    }

    .book-cover img {
        height: 220px;
    }

    .book-title {
        font-size: 14px;
    }

    .book-author {
        font-size: 12px;
    }

    .book-rating {
        font-size: 12px;
    }

    .genre-tag {
        font-size: 11px;

        padding: 4px 10px;
    }

    .search-result-info {
        flex-direction: column;

        align-items: flex-start;
    }

    .search-result-info button {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;

        padding:
            45px 20px 30px;

        gap: 30px;
    }
}


/* ==========================================================================
   RESPONSIVE - 420px
   ========================================================================== */

@media (max-width: 420px) {

    .books-grid-inner {
        grid-template-columns: 1fr;

        width: 90%;
    }

    .book-cover img {
        height: 320px;
    }

    .book-title {
        font-size: 16px;
    }

    .book-author {
        font-size: 13px;
    }

    .book-rating {
        font-size: 13px;
    }

    .genre-tag {
        font-size: 12px;
    }

    .sort-control {
        flex-direction: column;

        align-items: flex-start;
    }

    .sort-control select {
        width: 100%;
    }
}
/* =========================================================
   PREMIUM SHABDSETU BOOK CARDS
   ========================================================= */

.books-grid-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
}


/* =========================
   CARD
   ========================= */

.book-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(93, 62, 38, 0.08);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(45, 31, 20, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;

    animation: cardAppear 0.5s ease both;
}


.book-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 22px 45px rgba(45, 31, 20, 0.16);

    border-color: rgba(128, 82, 42, 0.18);
}


/* =========================
   COVER
   ========================= */

.book-cover {
    position: relative;
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: #eee7df;
}


.book-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s cubic-bezier(.2,.7,.2,1);
}


.book-card:hover .book-cover img {
    transform: scale(1.07);
}


/* =========================
   COVER GRADIENT
   ========================= */

.cover-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(20, 13, 8, 0.68),
            rgba(20, 13, 8, 0.12) 45%,
            transparent 70%
        );

    opacity: 0.65;

    transition: opacity 0.35s ease;

    pointer-events: none;
}


.book-card:hover .cover-overlay {
    opacity: 0.85;
}


/* =========================
   WISHLIST
   ========================= */

.fav-icon {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.94);

    backdrop-filter: blur(8px);

    border-radius: 50%;

    color: #9b3f3f;

    font-size: 17px;

    box-shadow:
        0 5px 18px rgba(0,0,0,0.16);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;

    z-index: 5;
}


.fav-icon:hover {
    transform: scale(1.12);

    background: #9b3f3f;

    color: #ffffff;
}


.fav-icon i {
    pointer-events: none;
}


/* =========================
   GENRE ON COVER
   ========================= */

.cover-genre {
    position: absolute;

    left: 18px;
    bottom: 18px;

    padding: 7px 13px;

    border-radius: 30px;

    background: rgba(255,255,255,0.92);

    backdrop-filter: blur(8px);

    color: #513522;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;

    z-index: 3;
}


/* =========================
   VIEW BOOK
   ========================= */

.book-quick-view {
    position: absolute;

    left: 50%;
    bottom: 58px;

    transform: translate(-50%, 15px);

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 11px 18px;

    border-radius: 30px;

    background: rgba(255,255,255,0.95);

    color: #432918;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    z-index: 4;
}


.book-card:hover .book-quick-view {
    opacity: 1;

    transform: translate(-50%, 0);
}


.book-quick-view i {
    font-size: 13px;
}


/* =========================
   CARD CONTENT
   ========================= */

.book-card-content {
    padding: 20px 19px 22px;
}


/* =========================
   TITLE
   ========================= */

.book-title {
    margin: 0 0 7px;

    font-family: 'Playfair Display', serif;

    font-size: 19px;

    font-weight: 700;

    line-height: 1.3;

    color: #2b1c10;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

    min-height: 49px;

    transition: color 0.25s ease;
}


.book-card:hover .book-title {
    color: #80532f;
}


/* =========================
   AUTHOR
   ========================= */

.book-author {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0 0 14px;

    color: #8d7965;

    font-size: 12.5px;

    font-weight: 500;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.book-author i {
    font-size: 11px;

    color: #a27b58;
}


/* =========================
   RATING
   ========================= */

.book-rating {
    display: flex;

    align-items: center;

    gap: 6px;

    padding-top: 13px;

    border-top: 1px solid rgba(80, 50, 30, 0.08);

    font-size: 12px;
}


.rating-stars {
    display: inline-flex;

    gap: 2px;
}


.book-rating i {
    color: #d99a32;

    font-size: 11px;
}


.rating-number {
    font-weight: 700;

    color: #493021;
}


.review-count {
    color: #9c8c7c;
}


/* =========================
   ANIMATION
   ========================= */

@keyframes cardAppear {

    from {
        opacity: 0;

        transform: translateY(15px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {

    .books-grid-inner {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 850px) {

    .books-grid-inner {
        grid-template-columns: repeat(2, 1fr);

        gap: 22px;
    }

    .book-cover {
        height: 350px;
    }

}


@media (max-width: 550px) {

    .books-grid-inner {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .book-cover {
        height: 420px;
    }

}

/* =========================================================
   FINAL FIX — SHABDSETU BOOK GRID
   Fixes nested .books-grid-inner issue
   ========================================================= */


/* OUTER CONTAINER
   This must NOT behave like a grid.
*/
.books-grid-section > .books-grid-inner {
    display: block !important;

    width: 100% !important;
    max-width: 1400px !important;

    margin: 0 auto !important;

    padding: 0 !important;
}


/* ACTUAL BOOK GRID
   Only #booksGrid should be a grid.
*/
#booksGrid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 28px !important;

    width: 92% !important;
    max-width: 1380px !important;

    margin: 0 auto !important;

    padding: 0 !important;
}


/* =========================================================
   PREMIUM CARD
   ========================================================= */

#booksGrid .book-card {

    width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box;

    background: #fffdf9;

    border: 1px solid rgba(91, 61, 38, 0.10);

    border-radius: 20px;

    padding: 12px;

    overflow: hidden;

    cursor: pointer;

    box-shadow:
        0 6px 20px rgba(54, 37, 25, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


#booksGrid .book-card:hover {

    transform: translateY(-7px);

    border-color: rgba(139, 84, 45, 0.25);

    box-shadow:
        0 18px 40px rgba(54, 37, 25, 0.15);
}


/* =========================================================
   BOOK COVER
   ========================================================= */

#booksGrid .book-cover {

    position: relative;

    width: 100% !important;

    height: auto !important;

    aspect-ratio: 3 / 4;

    overflow: hidden;

    border-radius: 15px;

    background: #eee4d7;

    margin: 0 0 16px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.12);
}


#booksGrid .book-cover img {

    width: 100% !important;
    height: 100% !important;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


#booksGrid .book-card:hover .book-cover img {

    transform: scale(1.04);
}


/* =========================================================
   HEART
   ========================================================= */

#booksGrid .fav-icon {

    position: absolute;

    top: 13px;
    right: 13px;

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.95);

    border-radius: 50%;

    color: #a34c45;

    z-index: 10;

    box-shadow:
        0 5px 15px rgba(0,0,0,0.15);

    transition:
        all 0.25s ease;
}


#booksGrid .fav-icon:hover {

    background: #6b4128;

    color: white;

    transform: scale(1.08);
}


/* =========================================================
   CONTENT
   ========================================================= */

#booksGrid .book-card-content {

    padding: 3px 5px 6px;
}


/* =========================================================
   TITLE
   ========================================================= */

#booksGrid .book-title {

    margin: 0 0 7px;

    font-family: "Playfair Display", serif;

    font-size: 19px;

    line-height: 1.3;

    font-weight: 700;

    color: #2e2118;

    min-height: 49px;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


#booksGrid .book-card:hover .book-title {

    color: #8b542d;
}


/* =========================================================
   AUTHOR
   ========================================================= */

#booksGrid .book-author {

    display: flex;

    align-items: center;

    gap: 6px;

    margin: 0 0 14px;

    color: #948170;

    font-family: "Poppins", sans-serif;

    font-size: 12px;

    font-weight: 500;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   RATING
   ========================================================= */

#booksGrid .book-rating {

    display: flex;

    align-items: center;

    gap: 6px;

    padding-top: 12px;

    border-top:
        1px solid rgba(91, 61, 38, 0.09);

    font-size: 12px;
}


#booksGrid .book-rating i {

    color: #d4972c;

    font-size: 11px;
}


#booksGrid .rating-number {

    color: #4c3524;

    font-weight: 700;
}


#booksGrid .review-count {

    color: #a09284;

    font-size: 11px;
}


/* =========================================================
   GENRE
   ========================================================= */

#booksGrid .genre-tag {

    display: inline-block;

    margin-top: 10px;

    padding: 5px 11px;

    border-radius: 20px;

    background: #f4e6d4;

    color: #755034;

    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1201px) {

    #booksGrid {

        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap: 30px !important;
    }

}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

    #booksGrid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 25px !important;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    #booksGrid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 20px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 550px) {

    #booksGrid {

        width: 90% !important;

        grid-template-columns:
            1fr !important;

        gap: 22px !important;
    }

}
/* =========================================================
   SHABDSETU — 5 BOOKS PER ROW
   ========================================================= */

#booksGrid {
    width: 94% !important;
    max-width: 1450px !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 22px !important;
}


/* PREMIUM COMPACT CARD */

#booksGrid .book-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;

    padding: 10px !important;

    border-radius: 17px !important;

    background: #fffdf9;

    box-shadow:
        0 5px 18px rgba(54, 37, 25, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#booksGrid .book-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 30px rgba(54, 37, 25, 0.14);
}


/* SMALLER COVER */

#booksGrid .book-cover {
    width: 100% !important;

    height: 280px !important;

    aspect-ratio: auto !important;

    margin-bottom: 12px !important;

    border-radius: 12px !important;

    overflow: hidden;
}


#booksGrid .book-cover img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
}


/* HEART */

#booksGrid .fav-icon {
    width: 34px !important;
    height: 34px !important;

    top: 10px !important;
    right: 10px !important;

    font-size: 14px !important;
}


/* CONTENT */

#booksGrid .book-card-content {
    padding: 2px 4px 5px !important;
}


/* TITLE */

#booksGrid .book-title {
    font-size: 17px !important;

    line-height: 1.25 !important;

    min-height: 43px !important;

    margin-bottom: 5px !important;
}


/* AUTHOR */

#booksGrid .book-author {
    font-size: 11px !important;

    margin-bottom: 10px !important;
}


/* RATING */

#booksGrid .book-rating {
    padding-top: 9px !important;

    gap: 5px !important;

    font-size: 10.5px !important;
}


#booksGrid .book-rating i {
    font-size: 9px !important;
}


/* GENRE */

#booksGrid .genre-tag {
    font-size: 9px !important;

    padding: 4px 9px !important;

    margin-top: 7px !important;
}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

    #booksGrid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;

        gap: 20px !important;
    }

    #booksGrid .book-cover {
        height: 270px !important;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    #booksGrid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

    #booksGrid .book-cover {
        height: 260px !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    #booksGrid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 15px !important;
    }

    #booksGrid .book-cover {
        height: 230px !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    #booksGrid {
        grid-template-columns: 1fr !important;
    }

    #booksGrid .book-cover {
        height: 350px !important;
    }
}
/* =========================================================
   SHABDSETU — 6 BOOKS PER ROW
   COMPACT PREMIUM CARDS
   ========================================================= */

#booksGrid {
    width: 96% !important;
    max-width: 1500px !important;

    margin: 0 auto !important;

    display: grid !important;

    grid-template-columns:
        repeat(6, minmax(0, 1fr)) !important;

    gap: 18px !important;
}


/* CARD */

#booksGrid .book-card {
    width: 100% !important;
    min-width: 0 !important;

    padding: 8px !important;

    border-radius: 15px !important;

    box-sizing: border-box;

    background: #fffdf9;

    box-shadow:
        0 4px 14px rgba(54, 37, 25, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

#booksGrid .book-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 25px rgba(54, 37, 25, 0.14);
}


/* =========================================================
   SMALL COVER
   ========================================================= */

#booksGrid .book-cover {

    width: 100% !important;

    height: 230px !important;

    aspect-ratio: auto !important;

    margin-bottom: 10px !important;

    border-radius: 10px !important;

    overflow: hidden;
}


#booksGrid .book-cover img {

    width: 100% !important;

    height: 100% !important;

    object-fit: cover !important;
}


/* =========================================================
   HEART
   ========================================================= */

#booksGrid .fav-icon {

    width: 30px !important;
    height: 30px !important;

    top: 8px !important;
    right: 8px !important;

    font-size: 12px !important;
}


/* =========================================================
   CONTENT
   ========================================================= */

#booksGrid .book-card-content {

    padding: 1px 3px 4px !important;
}


/* =========================================================
   TITLE
   ========================================================= */

#booksGrid .book-title {

    font-size: 15px !important;

    line-height: 1.25 !important;

    min-height: 38px !important;

    margin: 0 0 4px !important;
}


/* =========================================================
   AUTHOR
   ========================================================= */

#booksGrid .book-author {

    font-size: 10px !important;

    margin: 0 0 8px !important;

    gap: 4px !important;
}


/* =========================================================
   RATING
   ========================================================= */

#booksGrid .book-rating {

    padding-top: 7px !important;

    gap: 4px !important;

    font-size: 9px !important;
}


#booksGrid .book-rating i {

    font-size: 8px !important;
}


#booksGrid .review-count {

    font-size: 9px !important;
}


/* =========================================================
   GENRE
   ========================================================= */

#booksGrid .genre-tag {

    font-size: 8px !important;

    padding: 3px 7px !important;

    margin-top: 5px !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    #booksGrid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;

        gap: 16px !important;
    }

    #booksGrid .book-cover {
        height: 225px !important;
    }
}


@media (max-width: 1050px) {

    #booksGrid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }

    #booksGrid .book-cover {
        height: 220px !important;
    }
}


@media (max-width: 800px) {

    #booksGrid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 15px !important;
    }

    #booksGrid .book-cover {
        height: 210px !important;
    }
}


@media (max-width: 600px) {

    #booksGrid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 14px !important;
    }

    #booksGrid .book-cover {
        height: 230px !important;
    }
}


@media (max-width: 380px) {

    #booksGrid {
        grid-template-columns: 1fr !important;
    }

    #booksGrid .book-cover {
        height: 330px !important;
    }
}