.woocommerce .content-area .site-main {
    max-width: 100%;
}

.woocommerce .content-area {
    margin: unset;
}

.all-products {
    padding-top: 126px;
}

.all-products-heading {
    padding-bottom: 50px;
    text-align: center;
    font-size: 48px;
    line-height: 64px;
    font-family: basier-circle-b;
    color: #243d4c;
}

.all-products .container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

#filter-products {
    flex-shrink: 0;
    height: max-content;
    border-radius: 8px;
    background-color: #ebeae7;
    padding: 12px 15px;
    position: relative;
}

#products-wrapper {
    flex-grow: 1;
    margin-left: 20px;
    position: relative;
    padding-bottom: 90px;
    min-height: 100vh;
}
/*
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.product-grid-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
*/
.product-grid {

    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    justify-content: space-between; /* Distribute cards evenly */
}
.product-grid-four {

    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between cards */
    justify-content: space-between; /* Distribute cards evenly */
}
.product-card { position: relative;
    flex: 1 1 calc(33.333% - 20px); /* Each card takes 1/3 of the row minus the gap */
    box-sizing: border-box; /* Include padding and border in width calculation */
    max-width: calc(33.333% - 20px); /* Ensure cards don’t exceed 1/3 width */
}
.product-grid-four .product-card {
    flex: 1 1 calc(25% - 20px); /* Each card takes 1/3 of the row minus the gap */
    box-sizing: border-box; /* Include padding and border in width calculation */
    max-width: calc(25% - 20px); /* Ensure cards don’t exceed 1/3 width */
}

@media only screen and (min-width: 666px) and (max-width: 820px) {
    .product-card {
        flex: 1 1 calc(50% - 20px); /* Display two cards per row on smaller screens */
        max-width: calc(50% - 20px);
    }
    .product-grid-four .product-card {
        flex: 1 1 calc(50% - 20px); /* Display two cards per row on smaller screens */
        max-width: calc(50% - 20px);
    }
}

@media only screen and (min-width: 0px) and (max-width: 666px) {
    .product-card {
        flex: 1 1 100%; /* Full width for small screens */
        max-width: 100%;
    }
    .product-grid-four .product-card {
        flex: 1 1 100%; /* Full width for small screens */
        max-width: 100%;
    }

}


.hidden-cards {
    display: unset !important;
    opacity: 0.5
}
.product-card .buy-online {
    position: absolute;
    top: 6px;
    left: 6px;
    border-radius: 8px;
    background-color: #EA6B05;
    font-size: 16px;
    padding: 6px 15px;
    color: #fff;
    clear: both;
    z-index: 1;
}

.product-card-image-wrapper {
    width: 100%;
    height: 270px;
    border: 1px solid #dddcd7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card-image-wrapper img {
    max-width: 99%;
    height: auto;
    max-height: 260px;
}

.product-name {
    text-decoration: none;
    font-family: basier-circle-b;
    font-size: 20px;
    color: #243d4c;
    margin: 10px 0
}

.product-brand {
    text-decoration: none;
    font-size: 14px;
    color: #506470;
    cursor:pointer;
}

.product-brand a {
    text-decoration: none;
    font-size: 14px;
    color: #506470
}

.small-text {
    font-size: 12px;
    line-height: 16px;
    text-align: left;
    color: #999;
}

#filter-products .products-search-form-text {
    font-family: basier-circle-b;
    font-size: 18px;
    letter-spacing: -.3px;
    padding-left: 2px;
    color: #506470;
    position: relative;
    padding-bottom: 10px
}

.products-search-form-text:after {
    content: "";
    display: block;
    height: 1px;
    background-color: #ccc;
    position: absolute;
    bottom: -11px;
    left: -15px;
    right: -15px;
}

#filter-products .filters-wrapper {
    padding-top: 12px;
}

#filter-products h4 {
    font-family: basier-circle-m;
    font-size: 16px;
    line-height: 24px;
    color: #506470;
    letter-spacing: -.2px;
    font-weight: 400;
    position: relative;
    padding: 10px 0 10px 28px;
    cursor: pointer;
}

#filter-products h4 {
    clear: both;
    margin: 0;
}

#filter-products {
    position: relative;
    margin-bottom: 20px;
}

#filter-products h4 {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

.facet-group.active h4:before {
    transform: translateY(-50%) rotate(90deg) !important;
}

#filter-products h4:before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    background-image: url('../img/search-heading.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}


#filter-products h4:after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    position: absolute;
    bottom: 0;
    left: 0
}

#filter-products .facetwp-checkbox {
    padding: 0;
    margin: 0;
    margin-bottom: 5px;
    list-style: none;
    display: block;
}

#filter-products .facetwp-display-value, #filter-products .facetwp-counter {
    font-size: 14px;
    position: relative;
}

#filter-products .facet-content {
    display: none;
    padding: 10px 0px;
    border-radius: 4px;
    margin-top: 5px;
}

#filter-products .facet-header {
    cursor: pointer;
    padding: 10px;
    background: #ebeae7;
    border-radius: 4px;
    margin-bottom: 5px;
    padding-left: 25px;
}


.facet-group.active > .facet-content {
    display: block !important;
    padding-left: 5px;
}


#always-visible-facet {
    padding: 5px 0px;
    margin-top: 20px;
}

#always-visible-facet .facet-content {
    display: block;

}

#always-visible-facet .products-search-form-text {

    padding-bottom: 0px;
}

#always-visible-facet .facetwp-facet {
    margin-top: 5px !important;
}

#filter-products .facet-content .facetwp-hidden {
    display: block;
}

#filter-products .facet-content .facetwp-toggle {
    display: none;
}

#filter-products .facetwp-facet {
    margin-top: 10px;
    max-height: 300px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #c5c3be #fcf7f7;
    margin-bottom: 0px !important;
}

#filter-products .facetwp-checkbox {
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    /* display: flex; */
    align-items: center;
}

#filter-products .facetwp-checkbox::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #a7b1b7;
    width: 20px;
    height: 20px;
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

#filter-products .facetwp-checkbox.checked::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23737b7f' d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
}

#filter-products .facetwp-checkbox.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#filter-products .facetwp-display-value {
    /* padding-left: 5px; */
}

#filter-products .facetwp-checkbox.checked,
#filter-products .facetwp-checkbox {
    background-image: none !important;
    padding-right: 5px;
}

#facet-search input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

#facet-search .facetwp-input-wrap {
    display: inline-block;
    position: relative;
    width: 100%;
}

#facet-search .facetwp-facet {
    margin-bottom: 5px;
}


.facetwp-result-count {
    font-size: 16px;

    color: #506470;
}

.facetwp-facet {
    margin-bottom: 10px;
}

.facetwp-pagination {
    margin-top: 20px;
    text-align: center;
}

.facetwp-pagination a {
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #506470;
}

.facetwp-pagination a:hover {
    background-color: #ebeae7;
}

.facetwp-pagination .facetwp-page-active {
    background-color: #506470;
    color: #fff;
}

.top-sort {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
}

.reset-filter {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 14px;
    text-decoration: none;
    color: #506470;
}

#facet-sorting {
    position: relative;
    font-size: 16px;
    color: #506470;
}

#facet-sorting select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    max-width: 200px;
    width: 180px;
    font-size: 16px;
    color: #506470;
    background: #fff url('../img/sort-icon.png') no-repeat right 10px center; /* Add your custom icon */
    background-size: 16px;
    border: none;
    border-radius: 0;
    padding: 8px 10px;
    cursor: pointer;
    outline: none;
}

/* Hover and focus states */
#facet-sorting select:hover {
    background-color: #f9f9f9;
}

#facet-sorting select:focus {
    background-color: #f0f0f0;
    outline: none;
}

/* Placeholder styling (Sort by text) */
#facet-sorting select option[value=""] {
    color: #aaa;
}

/* Dropdown options */
#facet-sorting select option {
    background: #fff;
    color: #506470;
    padding: 5px;
    font-size: 16px;
}

/* Active option styling */
#facet-sorting select option:checked {
    background: #ebeae7;
    color: #243d4c;
}

.facetwp-facet a {
    text-decoration: none;
}

.mobile-search-btn, .close-search-window-btn, #loading-div, .filters-wrapper-mobile {
    display: none
}

@media only screen and (max-width: 768px) {
    .woocommerce .content-area {
        margin: 0px;
    }

    .all-products .container {
        display: block;
    }

    .mobile-search-btn {
        cursor: pointer;
        margin-bottom: 30px;
        width: 200px;
        height: 37px;
        background-color: #fff;
        border-radius: 6px;
        border: 1px solid #243d4c;
        font-family: basier-circle-m;
        font-size: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #243d4c
    }

    #filter-products {
        display: none;
    }

    .close-search-window-btn {
        display: flex;
        width: 20px;
        height: 20px;
        background-image: url('../img/close-seatch-icon.svg');
        background-position: 50%;
        background-size: contain;
        position: absolute;
        top: 15px;
        right: 10px;
        cursor: pointer;
    }


    #filter-products {
        flex-direction: column;
        width: auto;
        border-radius: 0px;
        background-color: #ebeae7;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 12px;
        position: fixed;
        top: 0px;
        z-index: 999999999;
        height: 100%;
        left: 0;
        right: 0;
        overflow: auto;
    }

    .products-search-form-text:after {
        display: none
    }

    .mobile-filter-head {
        border-bottom: 1px solid #ccc;
        display: flex;
    }

    .products-search-form-text {
        width: 70%;
    }

    .reset-filter {
        width: 20%;
    }

    .filter-button-center {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .loading-icon {
        opacity: 0.5;
    }


    #loading-div {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        font-size: 20px;
        padding: 15px 30px;
        border-radius: 5px;
        z-index: 1000;
    }

    /* Animated dots */
    #loading-div .dots span {
        animation: dots 1.5s infinite;
    }

    #loading-div .dots span:nth-child(2) {
        animation-delay: 0.3s;
    }

    #loading-div .dots span:nth-child(3) {
        animation-delay: 0.6s;
    }

    @keyframes dots {
        0%, 20% {
            opacity: 0;
        }
        50% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }

    .filters-wrapper-mobile {
        display: unset;
    }
}

.top-content {
    width: 100%;
    position: relative;
    padding: 25px 0 10px;
    color: #333;
    line-height: 32px;
    font-size: 18px;
    letter-spacing: -.014em;
    display: flex
;
    flex-direction: column;
}

.top-content .excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.top-content .excerpt.expanded {
    -webkit-line-clamp: inherit;
}
.products-heading{margin:10px 0px 25px 0px;}

.no-results{
    color: #666;
    margin-bottom: 15px;
    margin-top: 40px;
    display: block;
    width: 100%;
    text-align: center;
}
.no-results h3{
    color: #666!important;

}