/* agency-divi-products.css */

/* Main Container */
.divi-custom-product-filter {
    font-family: inherit; /* Inherits Divi's global font */
}

/* Sidebar Styling */
.divi-custom-product-filter .filter-sidebar {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Checkbox Labels */
.divi-custom-product-filter .cat-checkbox {
    margin-right: 8px;
    accent-color: #005baa; /* Brand primary color */
}

.divi-custom-product-filter .l1-group > label {
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.divi-custom-product-filter .l2-group label {
    color: #666;
    transition: color 0.3s ease;
}

.divi-custom-product-filter .l2-group label:hover {
    color: #005baa;
}

/* Pagination Buttons */
.divi-custom-product-filter .pagination-controls .page-btn {
    transition: all 0.3s ease;
}

.divi-custom-product-filter .pagination-controls .page-btn:hover {
    background: #005baa !important;
    color: #fff !important;
    border-color: #005baa !important;
}

/* Mobile Adjustments */
@media screen and (max-width: 767px) {
    .divi-custom-product-filter {
        flex-direction: column;
    }
    
    .divi-custom-product-filter .filter-sidebar {
        max-width: 100% !important;
        width: 100%;
        margin-bottom: 20px;
    }
}

.product_filter_row .et_pb_main_blurb_image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.product_filter_row .et_pb_main_blurb_image::before {
    content: '';
    display: block;
    padding-top: 66.66%;
}

.product_filter_row .et_pb_main_blurb_image .product_image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    border-radius: 0px;
    overflow: hidden;
    background-size: cover;
}

.post_related_products .image_wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.post_related_products .image_wrapper::before {
    content: '';
    display: block;
    padding-top: 66.66%;
}

.post_related_products .product_image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    border-radius: 0px;
    overflow: hidden;
    background-size: cover;
}