html,
body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
    /* letter-spacing: 0.05rem; */
}

.include-header {
    padding-top: 6%;
}

.head-quick-links {
    width: 90%;
    margin: 0 auto;
    margin-top: 3%;
    margin-bottom: 2%;
}

.head-quick-links p {
    font-size: 0.8rem;
}

.section-1 {
    width: 100vw;
    height: auto;
    background: transparent linear-gradient(180deg, #F7DDE0 0%, #F5F5F5 100%) 0% 0% no-repeat padding-box;
    display: flex;
    flex-direction: column;
}

.headline {
    text-align: center;
    font-weight: 500;

}

.product-section {
    width: 80%;
    margin: 0 auto;
    /* height: 160vh; */
}

.bged {
    background-color: #ededed;
}

.img-card {

    padding: 12% 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ededed;
}


.img-card img {
    width: 300px;
    height: 350px;
    object-fit: contain;
}

.product-info {
    background-color: #F5F5F5;

}

.line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2%;
}

.line span {
    font-weight: 500;
}

.price-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-info p {
    font-weight: 500;
}

.badge {
    background-color: #ded7e5;
    color: #000;
}
@media (max-width: 1400px) {
    .product-section {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .include-header {
        padding-top: 20%;
    }

    .product-section {
        width: 100%;
        /* height: 130vh; */
    }

    .headline h2 {
        font-size: 1.5rem;
    }

    .headline p {
        font-size: 0.8rem;
    }

    .img-card {
        padding: 10% 6%;
    }

    .img-card img {
        height: 300px;
    }
}

/* Filter Sidebar Styles */
.filter-sidebar {
    padding: 25px;
    height: 100%;
}

#filter-count {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
}

.filter-group {
    margin-bottom: 1.75rem;
}

.filter-group h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
    color: #111;
}

.form-check-label {
    font-size: 1rem;
    color: #555;
}

.form-check-input {
    background-color: transparent;
    border: 1px solid #9f9f9f;
}

.form-check-input[type=checkbox] {
    border-radius: 0;
}

.form-check-input:checked {
    background-color: #E8364E;
    border-color: #E8364E;
}
.form-check {
    margin-bottom: 0.5rem;
}

/* Subject Sub-filter Styles */
.select-subject-label {
    font-weight: 600;
    margin-right: 15px;
    vertical-align: middle;
}

.subject-filter-btn {
    margin-right: 8px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 6px 15px;
    transition: all 0.2s ease-in-out;
}

.subject-filter-btn:hover {
    background-color: #efefef;
    border-color: #ccc;
    border-radius: 40px;
}

.subject-filter-btn.active {
    background-color: rgba(240, 89, 105, 0.1);
    color: #414042;
    border-radius: 40px;
}

/* Product Card Styles */
.product-card-wrapper {
    background-color: #ededed;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    position: relative;
    /* For badge positioning */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-card-link {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.img-card {
    padding: 10% 8%;
    background-color: #ededed;
    flex-grow: 1;
    /* Allows image card to take up space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-card img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    /* Control max image height */
    object-fit: contain;
}

.product-info {
    background-color: #f5f5f5;
    /* Match body background */
    border-top: 1px solid #e0e0e0;
}

.product-name {
    font-weight: 700;
    color: #111;
    font-size: 1rem;
}

.author-name,
.author-name a {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
}

.author-name a:hover {
    text-decoration: underline;
}

.price-info {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-current {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #000;
}

.price-original {
    text-decoration: line-through;
    margin-left: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Badge Styles */
.discount-badge {
    position: absolute;
    top: 15px;
    right: -1px;
    background-color: #F7475E;
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.badge-custom {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.badge-custom.badge-lectures {
    background-color: #E6E0F1;
    color: #5E4094;
}

.badge-custom.badge-book {
    background-color: #DDF0F1;
    color: #3A7A7F;
}

/* Add more specific badge styles as needed */
.badge-custom.badge-test_series {
    background-color: #F1E2DD;
    color: #7F5B3A;
}

.badge-custom.badge-pdf {
    background-color: #e2f1dd;
    color: #4b7f3a;
}

/* Mobile-only tweaks */
@media (max-width: 991.98px) {

    /* Panel background & shadow */
    #filterCollapse .filter-sidebar {
        background: #fff;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        padding: 25px 20px 30px;
        margin-top: 0;
    }

    /* Remove the desktop shadow & height so it collapses cleanly */
    #filterCollapse:not(.show) {
        display: none;
    }

    /* Animate smooth slide-down */
    #filterCollapse.collapsing {
        transition: height 0.35s ease;
    }

    .img-card img {
        max-height: 180px;
    }
    .product-name,.author-name,.text-muted {
        font-size: 0.9rem;
    }
    .price-current {
        font-size: 0.7rem;
    }
    .price-original {
        font-size: 0.7rem;
    }
}

/* Pagination styles */
.page-link {
    border-radius: 6px !important;
    font-weight: 400 !important;
    transition: background-color 0.2s, color 0.2s;
    color: gray !important;
    background-color: transparent !important;
    border: none !important;
}

.page-item.active .page-link {
    background-color: transparent !important;
    border-color: transparent !important;
    color: black !important;
    font-weight: 500 !important;
}
