



.tax-product_cat #main-content .container{
    width: 100% !important;
    max-width: 100%;
}
.tax-product_cat .flex-container{
    width: 98% !important;
    display: flex;
    align-items: flex-start; 
    overflow: visible !important;
    justify-content: center;
    margin: 0 auto;
}


header{
    position: relative;
    width: 100%;
}
header .woocommerce-products-header__title {
    padding-bottom: 20px;
    text-align: center;
    transition: top 0.3s ease-in-out, background 0.3s ease-in-out;
}

.category-image,
.woocommerce-breadcrumb{
    width: 80%;
    margin: 0 auto !important;
}



.woocommerce-pagination{
    display: flex;
    justify-content: space-evenly;
    margin: 20px 0;
}

.meta-container {
    align-self: flex-start; 
    position: relative;
    background-color: #fff;
}


.custom-product-filters label {
    font-weight: bold;
}

.category-list {
    margin-left: 0;
    padding-left: 0;
}

.category-section {
    margin: 0 7px;
}


.custom-product-filters {
    position: relative;
    margin-bottom: 20px;
    width: 25%;
    min-width: 250px;
    transition: top 0.3s ease-in-out;
}


.category-section.level-0 .md-checkbox {
    /* width: 150px; */
}

/* .category-section.level-0 .level-1{
    width: 150px;
} */

.category-section.level-0 .level-1 {
    width: 230px;
}
.category-section.level-0 .level-2 {
    width: 150px;
}

.category-section .category-children {
    margin-left: 20px;
    display: none;
}

.category-section .toggle-children {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background-color: #2196F3;
    color: #fff;
    font-weight: bold;
}
.category-section .toggle-children.expanded {
    background-color: #293c62;
}

.category-section .toggle-children.collapsed:after {
    content: '+';
}

.category-section .toggle-children.expanded:after {
    content: '-';
}

/* Category Thumbnail Styling */
.category-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Improved Layout for Category Items */
.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.category-item input[type="checkbox"] {
    margin: 0;
}

.category-item:hover {
    background-color: #f9f9f9;
}

/* Nested Category Children */
.category-children {
    margin-left: 20px;
    display: none;
}


.productcats {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.md-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.md-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.md-checkbox .md-checkbox-label {
    position: relative;
    padding-left: 25px;
    display: inline-block;
    color: #333;
    font-size: 14px;
}

.md-checkbox .md-checkbox-label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #2196F3;
    border-radius: 2px;
    background-color: transparent;
    transition: background-color 0.3s, border-color 0.3s;
}

.md-checkbox input[type="checkbox"]:checked + .md-checkbox-label:before {
    background-color: #263f67;
    border-color: #20313f;
}

.md-checkbox input[type="checkbox"]:checked + .md-checkbox-label:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.parent-category {
    margin-bottom: 10px;
}

.parent-category a {
    font-weight: bold;
    text-decoration: none;
    color: #2196F3;
}

.parent-category a:hover {
    text-decoration: underline;
}

/* Category Catalog Icon */
.category-info-content{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.category-catalog {
    margin-left: auto;
}

.category-catalog .catalog-icon {
    font-size: 13px;
    margin: 10px;
    transition: color 0.3s ease;
    background: #233d65;
    color: white;
    padding: 1em;
    text-transform: uppercase;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Child categories are hidden by default */
.category-children {
    display: none;
    position: absolute;
    top: 0;
    left: 220px;
    background: #fff;
    z-index: 10;
    border: 1px solid #ddd;
    padding: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styles for the toggle button */
.toggle-children {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #2196F3;
    margin-left: 5px;
}

.toggle-children.collapsed:after {
    content: '+';
}

.toggle-children.expanded:after {
    content: '-';
}

#left-area header{
    clear: both;
    margin-top: 25px;
}

.more-options {
    right: 0;
    float: right;
    background: #233d65;
    padding: 1em;
    position: relative;
    z-index: 9;
}

.category-shop-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.category-pdf{
    background: #233d65;
    position: relative;
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
    /* max-width: 33%; */
    text-align: center;
}
.category-pdf a,
.more-options a {
    color: white;
    padding: 1em;
    text-transform: uppercase;
    font-weight: bold;
}

.category-image img {
    width: 100%;
    height: 250px !important;
    object-fit: cover;
}

.woocommerce nav.woocommerce-pagination {
    text-align: center;
    display: flex !important;
}

.woocommerce-ordering .orderby {
    display: none;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
    margin: 10px !important;
}



.filter-wrapper{
    min-width: 250px;
    max-width: 250px;
}

.filter-header{
    display: flex;
    justify-content: space-between;
    padding: 7px;
    cursor: pointer;
}
.filter-header:hover{
    background-color: #f9f9f9;
}
.filter-header span{
    font-size: 14px;
    font-weight: bold;
    word-wrap: break-word;
}


.top-fixed{
    position: fixed;
    /* top: 0; */
    z-index: 999;
    background: white;
    transition: all 0.3s ease-in-out;
}


.top-fixed #custom-filters-form{
    display: none;
}
.top-fixed.open #custom-filters-form {
    display: block;
}
.top-fixed .md-checkbox{
    align-items: flex-start;
}



/* General Styles for Mobile Devices */
@media (max-width: 768px) {

    .tax-product_cat .flex-container{
        flex-wrap: wrap;
    }
    .category-section {
        position: relative;
    }

    .custom-product-filters {
        display: flex;
        flex-direction: column;
        width: 98%;
        min-width: 250px;
    }

    #filter-expand{
        display: block;
    }

    
   

    .productcats{
        flex-direction: row;
        flex-wrap: wrap;
    }

    .category-item {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;
    }

    .toggle-children {
        margin-left: auto;
    }

    .toggle-children.expanded:after {
        content: '-';
    }

    .category-children {
        display: none;
        position: static;
        margin-left: 10px;
        padding-left: 2px;
        border-left: 2px solid #ddd;
    }

    .category-section .category-children.expanded {
        display: block;
    }


    .category-thumbnail img {
        object-fit: contain;
    }

    .md-checkbox .md-checkbox-label {
        font-size: 14px;
        word-wrap: break-word;
    }
}

/* For Extra Small Devices */
@media (max-width: 480px) {

    .category-thumbnail {
        width: 40px;
        height: 40px;
    }

    .md-checkbox .md-checkbox-label {
        font-size: 13px;
    }
}

@media (max-width: 479px) {

    #left-area .woocommerce-page ul.products li.product:nth-child(n) {
        margin: 0 0 5% !important;
        width: 49% !important;
    }
}

/* */

#top-menu li li {
    padding: 0;
    margin: 0;
}



