.active_filters {
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
    padding-bottom: 10px;
}
.active_filters .active-filter-title {
    color: #444;
    margin: 0 0 0.5rem;
    font-family: Roboto, Tahoma;
}
.active_filters ul {
    display: inline;
}
.filter-block a {
    display: inline-block;
}
.active_filters .filter-block svg {
    width: 12px;
    height: 12px;
    margin-left: 6px;
}
.active_filters .filter-block {
    margin-right: 0.625rem;
    margin-bottom: 0.625rem;
    display: inline-block;
    font-size: 0.8125rem;
    line-height: 1em;
    padding: 10px 20px 10px 0;
    border: none;
}
.active_filters .filter-block .close {
    color: #414141;
    font-size: 0.9375rem;
    opacity: 1;
    margin-top: 0.1875rem;
    margin-left: 0.3125rem;
}
#search_filters .custom-radio input[type='radio'] + span,
#search_filters .custom-checkbox input[type='checkbox'] + span {
    margin-top: -2px;
}
body #search_filters .facet .facet-label .custom-checkbox,
body #search_filters .facet .facet-label .custom-radio {
    top: 0;
}
#search_filters .clear-all-wrapper,
#search_filters .facet .collapse,
#search_filters_wrapper:empty,
#js-active-search-filters.hide {
    display: none;
}
#search_filters .facet .collapse.in,
.active_filters + #search_filters .clear-all-wrapper {
    display: block;
}
body #search_filters .facet .pkcolor.pkradio:not(.collapse),
body #search_filters .facet .pkradio.pkcolor.collapse.in {
    display: flex;
}
#search_filters .facet .pkradio {
    max-height: 350px;
    overflow: auto;
}
#search_filters .module-title {
    margin-bottom: 30px;
}
body #search_filters .facet .pkcolor.pkradio {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-top: 3px;
    overflow: hidden;
}
#search_filters .facet .pkcolor.pkradio > li {
    width: 25px;
    height: 25px;
    padding: 0;
    background-size: contain;
    position: relative;
    margin: 0 10px 10px 0;
}
#search_filters .facet .pkcolor.pkradio > li * {
    height: 100%;
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
}
#search_filters .facet .pkcolor.pkradio > li .facet-label {
    cursor: pointer;
    position: relative;
    border: none;
    border-radius: 50%;
}
#search_filters .facet .pkcolor.pkradio > li input[type='checkbox']:checked + span {
    opacity: 1;
}
#search_filters .facet .pkcolor.pkradio > li .facet-label .custom-checkbox .color svg {
    color: #000;
    position: absolute;
    display: block;
    z-index: 9;
    width: 60%;
    height: 60%;
    top: 50%;
    left: 50%;
    padding: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%);
}
#search_filters .custom-radio input[type='radio'] + span > svg {
    opacity: 0;
}
#search_filters .custom-radio input[type='radio']:checked + span > svg {
    opacity: 1;
}
#search_filters .facet .pkcolor.pkradio > li .search-link {
    visibility: hidden;
}
#search_filters .facet .pkcolor.pkradio > li .color-tooltip {
    top: 0;
    left: 0;
    opacity: 1;
    position: absolute;
    border-radius: 50%;
    background-size: cover;
}
#search_filters .facet .pkcolor.pkradio > li .color-tooltip[style='background-color:#ffffff'] {
    border: 1px solid #ccc;
}
#search_filters .custom-radio input[type='radio'] + span,
#search_filters .custom-checkbox input[type='checkbox'] + span {
    width: 14px;
    height: 14px;
}
#search_filters .custom-radio input[type='radio'] + span svg,
#search_filters .custom-checkbox input[type='checkbox'] + span svg {
    width: 8px;
    height: 8px;
    color: #454545;
}
#search_filters .ui-slider-horizontal {
    border: none;
    background: #eee;
    border-radius: 0;
    height: 4px;
    position: relative;
}
#search_filters .ui-slider-range,
#search_filters .ui-slider .ui-slider-handle {
    background: #444;
}
#search_filters .ui-slider .ui-slider-handle {
    display: block;
    position: absolute;
    border-radius: 0;
    top: 0;
    width: 10px;
    height: 17px;
    border: none;
    margin: 0;
    transform: translate(-50%, 4px);
    clip-path: polygon(50% 0%, 100% 38%, 100% 100%, 0 100%, 0% 38%);
}
#search_filters .ui-slider-range {
    border-radius: 0;
    border: none;
    position: absolute;
    top: 0;
    height: 100%;
}
.faceted-slider > li > p {
    font-size: 14px;
    color: #333;
}
.sidebar .facet {
    color: #3a3a3a;
    font-size: 15px;
}
.sidebar .facet > ul {
    transition: all 0.2s linear;
}
.sidebar .facet ul li {
    border: none;
    padding-left: 0;
    padding-right: 0;
}
.sidebar .facet .collapse.in,
.sidebar .facet .collapsing {
    margin-bottom: 70px;
}
.sidebar .facet-title > .title {
    width: 30px;
    text-align: center;
    flex-grow: 0;
}
.facet .navbar-toggler {
    padding: 0;
    display: inline-block;
    width: 100%;
    cursor: pointer;
}
.facets-title {
    color: #414141;
}
#search_filters .facet > ul li {
    padding-top: 0;
    padding-bottom: 13px;
}
.facet > ul li:first-child {
    margin-top: 0;
}
.facet .magnitude {
    color: #c1c1c1;
    font-size: 0.75em;
    vertical-align: middle;
}
.facet .tooltip {
    position: absolute;
    top: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    left: 0;
    margin: 0.3125rem;
}
.facet .facet-label {
    position: relative;
}
.facet-dropdown {
    border: 1px solid #ccc;
    padding: 5px 0;
    cursor: pointer;
}
.facet-dropdown > a {
    display: block;
    text-indent: 20px;
}
.facet-dropdown .dropdown-menu {
    padding: 0;
    max-height: 300px;
    overflow: auto;
}
.facet-dropdown .dropdown-menu .select-list {
    padding: 10px 20px;
}
.facet-dropdown .dropdown-menu .select-list:hover {
    background: #eee;
}
.facet-label {
    font-size: 0.938rem;
}
.facet-label:hover .color-tooltip,
.facet-label.active .color-tooltip,
.facet .facet-label a:hover ~ .tooltip {
    opacity: 1;
}

.product-list-container {
    margin-bottom: 40px;
    .elementor.col-xl-4 {
        width: 100%;
    }
}

body:has(.pk-sidebar-open) {
    overflow: hidden;
    header {
        filter: blur(2px);
    }
}
.content-wrapper {
    transition: all 0.5s ease-out;
}
.sidebar-toggler {
    display: none;
}
#main-content:after {
    opacity: 0;
    background: #000;
    transition: all 0.5s ease-out;
}
#main-content:has(.pk-sidebar-open) {
    overflow: hidden;
    height: 100%;
    max-height: 100%;
    .content-wrapper {
        filter: blur(2px);
        pointer-events: none;
    }
    &:after {
        opacity: 0.6;
        content: '';
        width: 100%;
        height: 100%;
        display: block;
        position: absolute;
        z-index: 1;
        top: 0;
        pointer-events: none;
    }
}
.listing_view {
    gap: 10px;
    .svgic {
        width: 22px;
        color: #999;
    }
    & > div {
        width: 34px;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid transparent;
        cursor: pointer;
        &:focus {
            outline: none;
        }
        &.active,
        &:hover {
            border-color: #444;
        }
        &.active .svgic,
        &:hover .svgic {
            color: #444;
        }
    }
}
.brands-list {
    ul {
        list-style: none;
        flex-wrap: wrap;
        li {
            width: 250px;
            text-align: center;
            margin-bottom: 30px;
        }
    }
    h3 {
        margin: 0;
    }
    .brand-products a {
        color: #bbb;
        font-size: 13px;
        &:nth-child(2) {
            display: none;
        }
    }
}
@media (min-width: 1600px) {
    .products-selection {
        gap: 60px;
    }
}
@media (max-width: 800px) {
    .pksidebar {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        background: #fff;
        padding: 42px 25px 25px;
        box-sizing: border-box;
        z-index: 100;
        width: 100%;
        max-width: 400px;
        max-height: 100%;
        &:has(.pk-sidebar-open) {
            transform: translateX(0);
            overflow: auto;
            height: 100%;
            .sidebar-toggler {
                top: 0;
                right: 0;
                left: auto;
                border-color: transparent;
                transform: translateY(0%);
            }
        }
        .sidebar-toggler {
            position: absolute;
            top: 50%;
            left: -49px;
            width: 50px;
            height: 50px;
            background: #fff;
            transform: translateY(-50%);
            border: 1px solid #333;
            z-index: 9;
            cursor: pointer;
            opacity: 0.5;
            display: flex;
            justify-content: center;
            align-items: center;
            &:hover {
                opacity: 1;
            }
        }
    }
    div.products-selection {
        margin-bottom: 20px;
        flex-direction: row;
        gap: 15px;
        .col-md-6 {
            width: 100%;
            margin: 0;
            padding: 0;
        }
        .pk-filter-button {
            order: 0;
        }
        .compare-form {
            order: 1;
        }
        .sort-by-row {
            order: 2;
        }
        > .products-sort-order {
            order: 3;
        }
        > .sort-by-row,
        > .products-sort-order,
        > .sort-by-row > .products-sort-order,
        .products-sort-order .dropdown-menu {
            width: 100%;
        }
        .select-title {
            max-width: 100%;
            width: 100% !important;
        }
    }
    body .view_list .product-thumbnail {
        min-width: 180px;
    }

    body #main-content .view_list .product-miniature {
        margin-bottom: 30px;
    }
    #main-content #products.view_grid .product_list .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    }
}
.pagination {
    .pagination-info {
        line-height: 2.5rem;
        font-size: 14px;
    }
    .page-list {
        gap: 5px;
        li {
            &.current a {
                color: #585858;
                border: 2px solid #585858;
            }
        }
        a,
        .spacer {
            display: flex;
            line-height: 34px;
            width: 34px;
            height: 34px;
            border: 1px solid #dfdfdf;
            text-align: center;
            justify-content: center;
            align-items: center;
            color: #585858;
            font-size: 0.75em;
            &:hover {
                border-width: 2px;
            }
        }
        svg {
            width: 8px;
        }
    }
}

.perpage-selector {
    max-width: 150px;
}

.products-selection {
    gap: 30px;
    margin-bottom: 50px;
    > :last-child {
        margin-left: auto;
    }
    &.dropdown:after {
        pointer-events: none;
        top: 0;
    }
    .title {
        color: #878787;
    }
    .filter-button .btn-secondary,
    .filter-button .btn-tertiary {
        padding: 0.75rem 0.5rem 0.6875rem;
    }
    .compare-form {
        order: 9;
        margin-right: 0;
    }
    .sort-by {
        margin-right: 10px;
        display: none;
    }
}

.products-sort-order {
    color: #878787;
    .select-title {
        width: 100%;
        color: #414141;
        background: #fff;
        padding: 4px 44px 4px 15px;
        font-size: 0.875rem;
        line-height: 1.5rem;
        border: 1px solid #dfdfdf;
        min-height: 32px;
    }
    .select-list {
        color: #414141;
        padding: 0.625rem 1.25rem;
        &:hover {
            background: #313537;
            color: #fff;
        }
    }
    .dropdown-menu {
        left: auto;
        width: 16.875rem;
        background: #f6f6f6;
        border: none;
        margin: 0;
        padding: 0;
        box-shadow: 1px 5px 5px rgba(0, 0, 0, 0.13);
    }
}

.view_grid .product_list .grid-container > article,
.view_list .grid-container > article {
    width: 100%;
    margin-right: 0;
}

.view_grid .product_list .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    column-gap: 40px;
    grid-auto-flow: dense;
}

.product-grid-2 .view_grid .product_list .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.product-grid-3 .view_grid .product_list .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.product-grid-4 .view_grid .product_list .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.product-grid-5 .view_grid .product_list .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.product-grid-6 .view_grid .product_list .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

#main-content #products.view_grid2 .product_list #js-product-list .grid-container {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
}

#main-content #products.view_grid3 .product_list #js-product-list .grid-container {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
}

#main-content #products.view_grid4 .product_list #js-product-list .grid-container {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
}

#main-content #products.view_grid5 .product_list #js-product-list .grid-container {
    grid-template-columns: repeat(5, minmax(100px, 1fr));
}

#main-content #products.view_grid6 .product_list #js-product-list .grid-container {
    grid-template-columns: repeat(6, minmax(100px, 1fr));
}

#products {
    .up {
        margin-bottom: 1rem;
        .btn-secondary,
        .btn-tertiary {
            color: #acaaa6;
            text-transform: inherit;
        }
    }
    .products {
        justify-content: space-around;
    }
}

#products.view_grid .pm_desk_false {
    display: none;
}
@media (max-width: 1600px) {
    #view_grid6 {
        display: none;
    }
}
@media (max-width: 1300px) {
    #view_grid5 {
        display: none;
    }
}
@media (min-width: 1300px) {
    #view_grid2 {
        display: none;
    }
}
