/************* filtres **************/
.flex {
    display: flex;
    position: relative;
    gap: 30px;
}

.flex .product-list {
    flex-grow: 1;
}

.flex .product-sidebar {
    font-size: 15px;
    width: 275px;
    background: #fff;
    flex-shrink: 0;
    flex-grow: 0;
    transition: all 0.5s ease-in-out;
}

.flex .product-sidebar form {
    border: 1px solid #333;
}

.flex .product-sidebar .header {
    font-weight: bold;
    background: #282828;
    color: #fff;
    padding: 5px;
    text-align: center;
    font-size: 18px;
}

.flex .product-sidebar .filters {
    margin: 1em;
}

.flex .product-sidebar .header i.pe-icons-filter {
    margin-right: 5px;
}

.flex .product-sidebar .header i.pe-icons-times {
    float: right;
    display: none;
}

.flex .product-sidebar .filter-section-label {
    margin-top: 1em;
    padding-top: 1em;
    font-weight: bold;
    font-size: 17px;
    cursor: pointer;
}

.flex .product-sidebar .filter-section-label:nth-child(n+3) {
    border-top: 1px solid #ccc;
}

.flex .product-sidebar .filter-section-label i {
    float: right;
}

.flex .product-sidebar .filter-section-box {
    margin: 1em 0;
}

.flex .product-sidebar .filter-section-box > label {
    display: block;
    line-height: 18px;
    margin-bottom: 4px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flex .product-sidebar .filter-section-box input[type="checkbox"] {
    margin: 4px 8px 0 0;
    width: 16px;
    height: 16px;
    vertical-align: bottom;
}

.flex .product-sidebar .filter-section-box input[type="text"] {
    border: 1px solid #333;
    height: 2em;
    min-width: 3em;
    flex: 1;
    display: block;
    margin: 0;
    padding: 0.5em;
}

.flex .product-sidebar .filter-section-box button.btn-apply {
    background: transparent;
    color: #333;
    height: 2em;
    display: block;
}

.flex .product-sidebar .filter-section-box.buttons {
    display: none;
}

.flex .product-filter-toggle {
    display: none;
}

.flex .product-filter-toggle button {
    background: #0f0f0f;
    color: white;
    padding: 14px 8px;
    font-size: 16px;
    line-height: 1.42;
    border: 0;
}

.flex .product-filter-toggle button i {
    margin-right: 5px;
    vertical-align: middle;
    font-size: 20px;
}

.flex .product-sidebar .filter-section-box.buttons > button {
    background: black;
    color: white;
    border: 0;
    margin: 5px;
    flex-grow: 1;
    position: relative;
    padding: 8px 12px 8px 35px;
}

.flex .product-sidebar .filter-section-box.buttons > button > i {
    position: absolute;
    left: 10px;
    top: 50%;
    margin-top: -10px;
}

.flex .product-sidebar .filter-section-box.buttons > button.remove-filter {
    background: grey;
}

@media (max-width: 1200px) {

    .flex {
        display: block;
    }

    .flex .product-sidebar {
        position: absolute;
        left: 0;
        max-width: 300px;
        width: 100%;
        z-index: 101;
        border: 1px solid #4c4c4c;
        box-shadow: 1px 1px 12px black;
    }

    .flex .product-sidebar.not-active {
        opacity: 0;
        transform: translateX(-200px);
    }

    .flex .product-filter-toggle {
        display: block;
    }

    .flex .product-sidebar .header i.pe-icons-times {
        display: block;
        font-size: 1.25em;
    }

    .flex .product-sidebar .filter-section-box.buttons {
        display: flex;
        flex-wrap: wrap;
        padding: 1em 0;
    }
}