@media (min-width: 992px) {
    .sidebar-shop.col-lg-3 {
        -ms-flex: 0 0 20%;
        flex: 0 0 20%;
        max-width: 20%;
        .toggle-sidebar-shop {
            display: none;
        }
    }
    .shop-container.col-lg-9 {
        -ms-flex: 0 0 80%;
        flex: 0 0 80%;
        max-width: 80%;
    }
}

.sidebar-shop {
    .widget {
        @include box();
        border-radius: 0;
        padding: 10px;
        .header {
            text-align: inherit;
            border-bottom: 1px solid #F2F2F2;
            line-height: 20px;
            cursor: pointer;
            transition: $transition;
            &:before {
                display: none;
            }
            h3 {
                font-size: 14px;
                position: relative;
                &:after {
                    font-family: IRANKala;
                    content: "\E0B1\00FE0E";
                    position: absolute;
                    right: 0;
                    top: -1px;
                    color: #A3A3A3;
                    transform: rotate(180deg);
                    transition: $transition;
                }
            }
            &.collapse {
                border-bottom: none;
                margin-bottom: 0;
                padding-bottom: 0;
                h3:after {
                    top: 2px;
                    transform: rotate(0deg);
                }
            }
        }
        .checkbox:checked:before {
            top: -3px;
        }
    }
}

.woocommerce .widget_layered_nav,
.woocommerce .widget_rating_filter {
    > ul {
        margin-right: -10px;
        margin-left: -10px;
        max-height: 256px;
        overflow-y: auto;
        .wc-layered-nav-rating,
        .woocommerce-widget-layered-nav-list__item {
            transition: $transition;
            padding-right: 10px;
            padding-left: 10px;
            position: relative;
            &:hover {
                background: #F9F9F9;
            }
            a {
                display: block;
            }
            .count {
                position: absolute;
                right: 10px;
                top: 0;
            }
        }
        .chosen,
        .woocommerce-widget-layered-nav-list__item--chosen {
            a::before {
                display: none;
            }
        }
    }
}

.widget_layered_nav_filters {
    li.chosen {
        padding-bottom: 5px !important;
        a {
            border: 1px solid #EEE;
            border-radius: 10px;
            padding: 0 10px;
            position: relative;
            &:before {
                display: none;
            }
            &:after {
                font-family: IRANKala;
                content: "\E0E0\00FE0E";
                top: 1px;
                font-size: 11px;
                position: relative;
                margin-left: 7px;
                margin-right: 7px;
            }
        }
    }
}

.woocommerce .widget_price_filter {
    .price_slider_wrapper {
        .ui-widget-content {
            height: 1px;
            background-color: #C6C6C6;
            margin-top: 10px;
        }
        .ui-slider {
            .ui-slider-range {
                background-color: $primary;
            }
            .ui-slider-handle {
                box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .2);
                background: #FFF;
                width: 16px;
                height: 16px;
                top: -7px;
            }
            .ui-slider-handle:before {
                position: absolute;
                font-family: IRANKala;
                font-size: 18px;
                top: -5px;
                left: -2px;
                color: #858585;

            }
            .ui-slider-handle:nth-of-type(1):before {
                content: "\E08C\00FE0E";
            }
            .ui-slider-handle:nth-of-type(2):before {
                content: "\E08B\00FE0E";
            }
        }
        .price_slider_amount {
            font-size: 12px;
            color: #858585;
            text-align: center;
            .price_label {
                border-top: 1px solid #F5F5F5;
                border-bottom: 1px solid #F5F5F5;
                margin: 20px 0;
                .label {
                    display: none;
                }
                .dash {
                    display: none;
                }
                .from-wrapper, .to-wrapper {
                    width: 49%;
                    display: inline-block;
                    padding: 15px 0;
                    .from, .to {
                        background: #FCFCFC;
                        border-radius: $border-radius;
                        padding: 2px 10px;
                    }
                }
                .from-wrapper {
                    border-right: 1px solid #F5F5F5;
                }
            }
            .button {
                width: 100%;
                background: $primary;
                border-color: darken($primary, 10%);
                &:hover {
                    opacity: 0.95;
                }
                .icon:before {
                    font-family: IRANKala;
                    content: "\E118\00FE0E";
                    color: #FFF;
                    font-style: normal;
                    margin-right: 7px;
                }
            }
        }
    }
}

.widget_product_categories {
    .product-categories {
        .cat-item {
            position: relative;
            a {
                padding-left: 14px;
            }
            a:hover {
                color: $primary;
            }
            .count {
                color: #AFB6BC;
            }
            &:before {
                font-family: IRANKala;
                font-size: 10px;
                color: #828282;
                position: absolute;
                top: 2px;
            }
        }
        > .cat-item {
            &:before {
                content: "\E0B7\00FE0E";
            }
            > .children > .cat-item {
                &:before {
                    content: "\E0B1\00FE0E";
                }
            }
        }
        .current-cat {
            > a {
                font-weight: bold;
            }
        }
    }
    .showmore-button {
        text-align: center;
        background-color: #FCFCFC;
        border-top: 1px solid #F2F2F2;
        color: #828282;
        cursor: pointer;
        position: relative;
        margin-right: -10px;
        margin-left: -10px;
        margin-bottom: -10px;
        &:after {
            font-family: IRANKala;
            content: "\E0B0\00FE0E";
            position: absolute;
            top: 2px;
            margin-left: 5px;
            font-size: 6px;
        }
        &.show:after {
            top: 0;
            transform: rotate(180deg);
        }
    }
}

@media (max-width: 992px) {
    .sidebar-shop {
        display: none;
        position: fixed !important;
        z-index: 101;
        background-color: #F4F4F4;
        left: 0;
        top: 0;
        width: 100%;
        right: 0;
        height: 100vh;
        padding: 10px;
        overflow: auto !important;
        .toggle-sidebar-shop {
            background-color: #e9e9e9;
            width: calc(100% + 20px);
            padding-top: 10px;
            padding-left: 10px;
            margin: -10px -10px 10px -10px;
            &:before {
                font-family: IRANKala;
                content: "\E08D\00FE0E";
                font-size: 26px;
            }
        }
        .widget {
            -webkit-box-shadow: none;
            box-shadow: none;
            border-radius: $border-radius;
            border-color: #C8C7CC;
            padding-top: 15px;
            padding-bottom: 15px;
            .header h3:after {
                content: "\E0D9\00FE0E";
                font-weight: normal;
                font-size: 20px;
                transition: none;
                transform: none !important;
                top: 3px !important;
            }
        }
        .widget.widget-instock-filter,
        .widget.widget-fake-filter {
            .switcher-slider {
                width: 45px;
                height: 28px;
                border: none;
                span {
                    height: 24px;
                    width: 24px;
                    border: none;
                    -webkit-box-shadow: 0 4px 14px 4px rgba(0, 0, 0, .08), 0 3px 3px 0 rgba(0, 0, 0, .1), 0 0 2px 1px rgba(0, 0, 0, .11), 0 1px 2px 0 rgba(0, 0, 0, .07);
                    box-shadow: 0 4px 14px 4px rgba(0, 0, 0, .08), 0 3px 3px 0 rgba(0, 0, 0, .1), 0 0 2px 1px rgba(0, 0, 0, .11), 0 1px 2px 0 rgba(0, 0, 0, .07);
                }
            }
            #instock-filter,
            #fake-filter {
                &:checked + label .switcher-slider {
                    background-color: $success;
                    border-color: $success;
                    span {
                        left: 21px;
                    }
                }
            }
        }
    }
    .woocommerce .widget_price_filter {
        .price_slider_wrapper {
            .ui-widget-content {
                height: 4px;
            }
            .ui-slider {
                .ui-slider-range {
                    background-color: $success;
                }
                .ui-slider-handle {
                    box-shadow: none;
                    background: $success;
                    width: 20px;
                    height: 20px;
                    top: -9px;
                    &:before {
                        display: none;
                    }
                }
            }
        }
    }
    body.show-sidebar-shop {
        .sidebar-shop {
            display: block;
        }
    }
}