﻿

/*body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    height: 100vh;
}*/
/* Banner */
:root {
    --primary-color: #305eff;
    --secondary-color: #305dffef;
    --base-font-size: 16px;
}

.books-banner {
    width: 100%;
    height: 320px;
    /*background-image: url('/image/BookBanner.jpg');*/
    background-size: cover; /* or 'contain' */
    background-position: center;
    background-repeat: no-repeat;
    border: none;
}
.books-banner img{
    width: 100%;
    height: 100%;
    object-fit:fill;
}
/* Description */
.books-description {
    text-align: center;
    margin: 20px;
    font-size: 18px;
    color: #444;
    line-height: 1.5em;
}
/* Filters */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 10px;
}
.filters select {
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: 5px;
}
.filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    margin: 20px auto;
    width: 100vw;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.filter select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
/* Books grid */
.books-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, max-content));*/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100vw;
    margin: 20px auto;
    padding: 0 15px;
    align-items: start;
    justify-content: center;
}

.book-card {
    /* width: 200px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: transform 0.2s;*/
    width: 100vw;
    display: contents;
    /*display:flex;*/
    flex-direction: row;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
    flex-wrap: wrap;
    /*height: 100vh;*/
    gap: 20px;
    padding: 7px;
    justify-content: center;
}
.book-card a{
    text-decoration: none !important;
}

.books-grid .book-card a img {
    width: 150px;
    height: 200px;
}

.book-image {
    width: 100%;
    height: 250px; /* fixed height */
    object-fit: cover; /* crops correctly */
    display: block; /* removes inline gap */
}

.book-details {
    width: 230px;
    height: 420px;
    padding: 5px 0px;
    background: #fff;
    margin: 5px;
    align-items: center;
    align-self: center;
    text-align: center;
    box-shadow: 0 7px 7px 0 rgba(0, 0, 0, 0.54), 0 10px 20px 1px rgba(0, 0, 0, 0.10);
}

    .book-details a {
        text-decoration: none;
    }

.book-title {
    font-size: 1.1rem;
    font-weight: bold;
    /*margin-bottom: 5px;*/
    text-align: center;
    align-content: center;
    padding: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    height: 3.5em;
    /*width: 200px;*/
}

.book-rating {
    color: #f39c12;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.book-price {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.book-p .priceClass {
    font-size: 20px;
}

.original-price {
    text-decoration: line-through;
    font-size: 0.9rem;
    color: #888;
}

.discount-percent {
    color: #388e3c;
    display:block;
    font-size:0.95em;
}

.add-cart {
    margin-top: 10px;
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

    .add-cart:hover {
        background: #2980b9;
    }

.pagination {
    margin: 20px 0;
    text-align: center;
    justify-content: center;
}
.pagination {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.pagination a {
    color: black;
    float: left;
    font-size: 1.5rem;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
}

.pagination a:hover:not(.active) {
    background-color: #fdfdfd;
    border-radius: 5px;
}

.page-btn {
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #444;
    background: #fff;
    cursor: pointer;
}

    .page-btn.active {
        background: #444;
        color: #fff;
    }

    .page-btn:hover {
        background: #3498db;
        color: #fff;
        border-color: #3498db;
    }

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.filters select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 4px rgba(52,152,219,0.5);
}
.filter select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 4px rgba(52,152,219,0.5);
}

@media(max-width:991px) {

    .books-description {
        font-size: 1.1rem;
        line-height: 22px;
    }

    .book-title {
        margin-bottom: 3px;
        font-size: 1rem;
    }

    .book-rating {
        font-size: 14px;
        margin-bottom: 5px
    }

    .add-cart {
        font-size: 15px;
    }

    .book-image {
        height: 210px;
    }

    .book-details {
        padding: 13px;
    }
}

@media(max-width:768px) {

    .books-description {
        font-size: 1rem;
        line-height: 20px;
        padding: 14px;
    }

    .book-image {
        height: 180px;
    }

    .book-title {
        font-size: 14px;
    }

    .book-rating {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .add-cart {
        font-size: 13px;
    }

    .book-price {
        font-size: 14px;
    }

    .original-price {
        font-size: 12px;
    }

    .discount-percent {
        font-size: 12px;
    }

    .filters label {
        font-size: 14px;
    }

    .filters select {
        font-size: 14px;
        padding: 5px;
    }
    .filter label {
        font-size: 14px;
    }

    .filter select {
        font-size: 14px;
        padding: 5px;
    }
}

@media(max-width:576px) {

    .books-banner {
        font-size: 24px;
    }

    .books-description {
        font-size: 14px;
        padding: 15px;
        line-height: 18px;
    }

    .book-image {
        height: 170px;
    }

    .discount-percent {
        font-size: 11px;
    }
    .Load-More-btn {
        position: relative !important;
        left: 0 !important;
        z-index: 1000 !important;
        float: inline-end;
    }
}

@media(max-width:342px) {

    .books-description {
        font-size: 12px;
        padding: 10px;
    }

    .Load-More-btn {
        width: 90px !important;
        height: 25px !important;
        font-size: 12px;
        position: relative !important;
        left: 0 !important;
        z-index: 1000 !important;
    }
}




/* Product Details Page start here.....*/

/*.Product-Container {
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    margin: auto;
}*/
.Product-Details-Page{
    width:100%;
}
.Product-Container {
    gap: 8px;
    padding: 15px;
    width: 90%;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.Image-container {
    display: flex;
    gap: 50px;
}

.product-IMAGE {
    /*position: relative;*/
    width: 480px;
    height: 520px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    /*cursor: pointer;*/
    align-content: center;
    text-align: center;
}

.product-IMAGE img {
    width: 470px;
    height: 510px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    padding: 10px;
}

.Product-Details {
    flex: 1;
    position: relative;
}

    .Product-Details p {
        font-size: 14px;
    }

    .Product-Details h2 {
        margin: 0 0 10px;
        font-size: 24px;
        color: #333;
    }

    .Product-Details p {
        margin-bottom: 15px;
        color: #555;
        line-height: 1.6;
    }

.rating-section {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.rating {
    color: #00c400;
    font-size: 1.4rem;
}

.offer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    font-weight: 550;
}

.product-code {
    font-size: 11px;
}

.SocialIcon_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.SocialIcon_container {
    width: 150px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.buy-btn {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .buy-btn button {
        width: 200px;
        background: rgba(48, 94, 255, 1);
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 16px;
        cursor: pointer;
        transition: background 0.3s;
    }

        .buy-btn button:hover {
            background: #0056b3;
        }

.Image {
    display: flex;
    gap: 10px;
    align-self: center;
}

.Zoom {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 350px; /* fixed height */
    overflow-y: auto; /* vertical scrollbar */
    padding-right: 5px;
    scrollbar-width: none;
}

    .product-thumbnails img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 6px;
        transition: 0.3s;
    }

        .product-thumbnails img:hover {
            border-color: #333;
        }

    /* Custom scrollbar (optional, looks cleaner) */
    .product-thumbnails::-webkit-scrollbar {
        width: 6px;
    }

    .product-thumbnails::-webkit-scrollbar-thumb {
        background: #888;
        /* border-radius: 3px; */
    }

        .product-thumbnails::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.lens {
    position: absolute;
    border: 2px solid #000;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.4;
    background: rgba(255, 255, 255, 0.3);
    display: none;
    pointer-events: none;
}


.magnifier {
    display: none;
    position: absolute;
    top: 0;
    right: 23px;
    width: 600px;
    height: 550px;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.product-IMAGE:hover + .Product-Details .magnifier {
    display: block;
}


.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 120px; /* Adjust as needed */
    padding: 5px 10px;
    border: 2px solid #2f60ff;
    border-radius: 25px; /* Rounded corners */
    background-color: #FFFACD; /* Light yellow background, adjust if needed */
    margin-bottom: 10px;
}

.quantity {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 10px;
}

.icon-button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: black; /* Or a dark grey */
    padding: 0;
    line-height: 1;
}


/* Description-container */
.Description-container {
    width: 100%;
    margin-bottom: 50px;
}

.dec-header {
    font-weight: 600;
    color: #333;
    font-size: 2rem;
    padding-bottom: 5px;
}

.Description_li li span {
    font-weight: 600;
    padding-right: 5px;
}

.Description_li li {
    color: gray;
    list-style: none;
    padding-bottom: 3px;
}


/* Review Section */
.Review_container {
    max-width: 750px;
}

.review-section {
    margin-top: 40px;
}

    .review-section h3 {
        margin-bottom: 15px;
        font-size: 22px;
    }

/* Star Rating */
.star-rating {
    color: #f4b400; /* golden color */
    font-size: 22px;
    margin-bottom: 15px;
}

.review-form {
    display: flex;
    flex-direction: column;
}

    .review-form input,
    .review-form textarea {
        width: 100%;
        padding: 10px;
        margin: 8px 0;
        border-radius: 8px;
        border: 1px solid #ccc;
    }

.reviews-list {
    margin-top: 20px;
    position: relative;
}

.Load-More-btn {
    position: absolute;
    bottom: 0;
    left: 300px;
    z-index: 100;
    width: 120px;
    height: 30px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
}

.gredient {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(180deg,#ffffff00, #f4f8ff);
    height: 150px;
    z-index: 50;
}

.review {
    background: #f9f9f9;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 5px solid #1d3557;
}

    .review strong {
        color: #1d3557;
    }

/* Product Details Page end here.....*/
