﻿
/* Adjust gap between items */
/*.slick-slide {
    margin: 0 15px;*/ /* Horizontal gap between items */
/*}

.slick-list {
    margin: 0 -15px;*/ /* Ensure proper alignment with the gap */
/*}*/

.book-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 280px; /* Limit the max width of the card */
    width: 100%; /* Allow flexibility while maintaining the max width */
    margin: 0 auto; /* Center the cards */
    flex-shrink: 0; /* Prevent shrinking of the card */
}

    .book-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.book-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-title {
    font-size: 18px;
    font-weight: bold;
    color: #212529;
    margin-bottom: 5px;
}

.book-author {
    font-size: 14px;
    color: #555;
}

/* Customizing Slick Arrows */
.slick-prev,
.slick-next {
    background-color: black;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    z-index: 1000;
}

    .slick-prev:before,
    .slick-next:before {
        color: var(--lms-theme-green);
        font-size: 20px;
    }

    .slick-prev:hover,
    .slick-next:hover {
        background-color: black;
    }

.slick-prev {
    left: -10px;
}

.slick-next {
    right: -10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .book-card {
        max-width: 90%; /* Ensure the card doesn't stretch */
    }

    /*.slick-slide {
        margin: 0 10px;*/ /* Reduced gap on smaller screens */
    /*}

    .slick-prev,
    .slick-next {
        display: none !important;*/ /* Hide arrows on smaller screens */
    /*}

    .slick-list {
        margin-right: 0 !important;
    }*/
}

@media (max-width: 480px) {
    .book-card {
        max-width: 80%; /* Further limit the card width */

    }
}
@media (max-width: 410) {
    .book-card {
        margin-bottom:20px;
    }
}


/*Product datalist page start*/
#productlist-header {
    width: 100%;
    height: 60px;
    box-shadow: 5px 5px 15px #e8e8e8;
}

#pro {
    border: none;
    color: #333;
    font-weight: 700;
    padding-left: 0px;
    width: initial;
}

#filterbar {
    width: 30%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    float: left;
}

    #filterbar input[type="radio"] {
        visibility: hidden;
    }

        #filterbar input[type="radio"]:checked {
            background-color: #16c79a;
            border: none;
        }

    #filterbar .btn.btn-success {
        background-color: #ddd;
        color: #333;
        border: none;
        width: 115px;
    }

        #filterbar .btn.btn-success:hover {
            background-color: #aff1e1;
            color: #444;
        }

    #filterbar .btn-success:not(:disabled):not(.disabled).active,
    #filterbar .btn-success:not(:disabled):not(.disabled):active {
        background-color: #16c79a;
        color: #fff;
    }
/* label {
  cursor: pointer;
} */
.tick {
    display: block;
    position: relative;
    padding-left: 23px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0;
}

    .tick input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.check {
    position: absolute;
    top: 1px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.tick:hover input ~ .check {
    background-color: #f3f3f3;
}

.tick input:checked ~ .check {
    background-color: #ffffff;
}

.check:after {
    content: "";
    position: absolute;
    display: none;
}

.tick input:checked ~ .check:after {
    display: block;
    transform: rotate(45deg) scale(1);
}

.tick .check:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid rgb(0, 0, 0);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(2);
}

.box {
    padding: 10px;
}

.box-label {
    color: #11698e;
    font-size: 0.9rem;
    font-weight: 800;
}

.inner-box {
    max-height: 150px;
    overflow-y: auto;
}

    .inner-box::-webkit-scrollbar {
        width: 6px;
    }

    .inner-box::-webkit-scrollbar-track {
        background-color: #ddd;
        border-radius: 2px;
    }

    .inner-box::-webkit-scrollbar-thumb {
        background-color: #333;
        border-radius: 2px;
    }

@media (min-width: 1199.6px) {
    #filterbar {
        width: 25%;
    }
}

@media (max-width: 1199.5px) {
    #filterbar {
        width: 28%;
    }
}

@media (max-width: 991.5px) {
    #filterbar {
        width: 36%;
    }

    #sort {
        background-color: inherit;
        color: #fff;
        margin: 0;
        margin-bottom: 20px;
        width: 100%;
    }

        #sort option,
        #pro option {
            color: #000;
        }
}

@media (max-width: 767.5px) {
    #filterbar {
        width: 50%;
    }
}

@media (max-width: 525.5px) {
    #filterbar {
        float: none;
        width: 100%;
        margin-bottom: 20px;
        border-radius: 5px;
    }

    #content.my-5 {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
}
/*Product datalist page end*/
