.sidebar-wrap {
    background: #fff;
    border: 1px solid #F2F2F2;
    max-width: 100%;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.sidebar-wrap .widget-title.widget-title.main-widget {
    background: var(--color2);
    display: flex;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 17px;
    color: #fff;
    margin: 10px;
}

.widget-side .widget-title {
    display: flex;
    align-items: center;
    line-height: 30px;
    margin-bottom: 0.75rem;
    position: relative;
    text-transform: capitalize;
}

.widget.widget-side.widget_product_categories li.cat-item .cat-title {
    position: relative;
}

.widget.widget-side.widget_product_categories li.cat-item .cat-title .caticon {
    font-size: 0.75rem;
    width: 28px;
    height: 28px;
    color: var(--color2);
}

.widget.widget-side.widget_product_categories li.cat-item {
    padding: 0.25rem;
}

.widget-side.widget_product_categories ul.product-categories {
    padding-bottom: 1rem;
}

.price_slider_wrapper .ui-slider .ui-slider-handle:before {
    content: '\e916';
    font-family: icomoon;
    font-size: 8px;
    color: #fff;
}

.price_slider_wrapper .ui-slider .ui-slider-handle:last-child::before {
    transform: rotate(-180deg);
}

.price_slider_wrapper .ui-slider .ui-slider-handle:hover {
    background: var(--color2);
}

.price_slider_wrapper {
    position: relative;
    margin-top: 32px;
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    position: relative;
    height: 8px;
    margin: 18px 18px 65px 5px;
    background: #EFE6C2;
}

.woocommerce .widget_price_filter .ui-slider-horizontal {
    height: 8px;
    background-color: var(--color1);
}

.woocommerce .widget_price_filter .ui-slider-horizontal .ui-slider-range {
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--color1);
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    border-radius: 1em;
}

.price_slider_amount .button {
    background-color: var(--color1);
    border: 1px solid transparent;
    color: #fff;
    padding: 0.25rem 2rem;
    font-family: var(--main_font);
    font-size: 1rem;
}

.price_slider_amount .button::before {
    display: none;
}

.price_slider_amount .button:hover {
    border: 1px solid var(--color1);
    background-color: transparent;
    color: var(--color1);
}

.price_slider_wrapper .ui-slider .ui-slider-handle {
    z-index: 2;
    width: 20px;
    height: 20px;
    cursor: ew-resize;
    outline: 0;
    top: -6px;
    margin-left: -5px;
    background: var(--color1);
    border-radius: 50%;
    position: absolute;
    transition: all 0.4s;
    left: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

#sidebar-shop .widget.woocommerce-widget-layered-nav ul li a,
#sidebar-shop .widget.widget_layered_nav_filters ul li a {
    color: var(--color3);
    position: relative;
    display: flex;
    font-size: 16px;
    line-height: 1;
    padding: 12px 0;
    align-items: center;
    width: 100%;
    position: relative;
}

#sidebar-shop .widget.woocommerce-widget-layered-nav ul li a:hover,
#sidebar-shop .widget.widget_layered_nav_filters ul li a:hover {
    color: var(--color2);
}

.price_label .from,
.price_label .to {
    position: absolute;
    color: #252525;
    font-size: 12px;
    top: 34px;
    visibility: visible;
    line-height: 12px;
}

.price_label .to {
    right: 0;
}

.price_label .from {
    left: 0;
}

.price_slider_amount {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 14px;
}

.price_input_amount_wrap .input--wrapper {
    position: relative;
    max-height: 40px;
}

.price_input_amount_wrap {
    margin-top: 12px;
}

.price_input_amount_wrap .input--wrapper:before {
    content: 'تومان';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    align-items: center;
    color: #8E8E8E;
}

input#min_price,
input#max_price {
    display: block !important;
    border: 1px solid #4D4E5066;
    background: #fff;
    min-height: 52px;
    padding: 7px 12px 0;
    color: #272829;
    width: 100%;
    margin-bottom: 20px;
    font-size: 14px;

}

.price_slider_amount label {
    display: block;
    color: #34353699;
    font-size: 14px;
    line-height: 32px;
    margin-bottom: 5px;
}


.price_slider_amount>button {
    margin: 6px auto 0;
}

.price_slider_amount .row-btn {
    margin-top: 12px;
}

#max_price:focus,
#min_price:focus {
    border: 1px solid var(--color2);
}

.woocommerce-widget-layered-nav a:before {
    content: "\e92a";
    font-family: 'icomoon';
    color: transparent;
    border: 1px solid #CECECE;
    background-color: #fff;
    line-height: 1;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    right: 0;
    transition: 0.3s;
}

li.woocommerce-widget-layered-nav-list__item a:hover:before,
li.woocommerce-widget-layered-nav-list__item.chosen a:before {
    color: var(--color1);
    border: 1px solid var(--color1);
}

.woocommerce-widget-layered-nav .widget-title {
    position: relative;
    color: var(--color3);
}

.widget-title .caticon {
    color: #939896;
    font-size: 8px;
    right: 0px;
    top: auto;
}

.sidebar-inner .widget_product_categories .widget-title {
    padding-top: 0;
    position: relative;
    color: var(--color3);
    transition: 0.3s;
}

.sidebar-inner .widget-title.active,
.widget-title.active .caticon {
    color: var(--color1) !important;
}

form.woocommerce-ordering .orderby-list button.selected,
.widget.widget-side.widget_ordering button:hover,
.widget.widget-side.widget_ordering button.selected {
    color: var(--color1);
}

.term-item {
    border: 1px solid #EBEBEB;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    position: relative;
}

.term-item::before {
    content: '';
    width: 24px;
    height: 24px;
    background: #2DB67E1A;
    border-radius: 50px;
    position: absolute;
    bottom: 21px;
    right: 12px;
}

.term-item img {
    max-width: 36px;
    max-height: 36px;
}

.term-title {
    color: #313131;
    font-size: 16px;
    font-family: var(--main_font);
    line-height: 28px;
    min-height: 56px;
    display: flex;
    align-items: center;
}

.orderby__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px 5px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.widget-title.main-widget i {
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.widget-title.main-widget .caticon {
    left: 16px;
}

.widgetArrow {
    cursor: pointer;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    left: -4px;
    top: 8px;
    transition: 0.4s ease;
    width: 20px;
    height: 20px;
    font-size: 9px;
    transform: rotate(90deg);
    color: #272829;
}

.cat-item .widgetArrow {
    top: 11px;
}

.widgetArrow:hover {
    color: var(--color2);
}

.widgetArrow:before {
    content: '\e92c';
    font-family: icomoon;
    transform: rotate(-90deg);
    display: inline-block;
}

.widgetArrow.active {
    transform: rotate(-90deg);
    color: var(--color1);
}

.sidebar-inner {
    padding: 24px 16px 24px;
}

.sidebar-inner .widget-title h4 {
    font-family: var(--main_font);
}

.widget-title .title {
    pointer-events: none;
}

form.woocommerce-order-form {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 4px;
    font-size: 16px;
}

.checkbox {
    font-size: 16px;
    font-family: var(--main_font);
    line-height: 32px;
    color: #252525;
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-inner .widget-side.widget_product_categories {
    padding-bottom: 0;
}

.sidebar-btn {
    color: #fff;
    padding: 10px 0;
    cursor: pointer;
    background: var(--color2);
    width: 72px;
    height: 66px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 12px;
}

.sidebar-btn i {
    font-size: 22px;
}

.woocommerce-ordering-mobile {
    position: relative;
    width: calc(100% - 80px);
}

.navigation-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.woocommerce-ordering-mobile .orderby {
    display: block;
    width: 100%;
    height: 66px;
    color: #212121;
    font-family: inherit;
    appearance: none;
    -moz-appearance: none;
    background: rgb(255 196 54 / 22%);
    padding: 18px 70px 18px 30px;
    border: none;
}

.stuck-switch-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-ordering-mobile i {
    position: absolute;
    color: #212121;
    font-size: 23px;
    top: 14px;
    right: 14px;
    pointer-events: none;
    z-index: 1;
    clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%);
    width: 42px;
    height: 38px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-ordering-mobile::after {
    content: '\e916';
    font-family: icomoon;
    transform: rotate(0deg);
    font-size: 13px;
    display: inline-block;
    z-index: 0;
    transition: 0.4s;
    position: absolute;
    left: 17px;
    top: 19px;
    pointer-events: none;
    color: var(--color1)
}

#sidebar-shop.active {
    right: 0;
    z-index: 99999;
}

#sidebar-shop .widget.woocommerce-widget-layered-nav ul,
#sidebar-shop .widget.widget_layered_nav_filters ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#sidebar-shop .widget.woocommerce-widget-layered-nav ul li,
#sidebar-shop .widget.widget_layered_nav_filters ul li {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sidebar-shop .widget.woocommerce-widget-layered-nav ul li.chosen a,
#sidebar-shop .widget.woocommerce-widget-layered-nav ul li:hover a,
#sidebar-shop .widget.widget_layered_nav_filters ul li.chosen a,
#sidebar-shop .widget.widget_layered_nav_filters ul li:hover a {
    color: var(--color3);
}

#sidebar-shop .widget.woocommerce-widget-layered-nav ul li.chosen a:after,
#sidebar-shop .widget.woocommerce-widget-layered-nav ul li:hover a:after,
#sidebar-shop .widget.widget_layered_nav_filters ul li.chosen a:after,
#sidebar-shop .widget.widget_layered_nav_filters ul li:hover a:after {
    opacity: 1;
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
}

#sidebar-shop .widget.woocommerce-widget-layered-nav ul li.chosen a:before,
#sidebar-shop .widget.woocommerce-widget-layered-nav ul li:hover a:before,
#sidebar-shop .widget.widget_layered_nav_filters ul li.chosen a:before,
#sidebar-shop .widget.widget_layered_nav_filters ul li:hover a:before {
    opacity: 0;
    transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
}

.price_slider_amount>.price_label {
    font-size: 0;
}

.sidebar-banner {
    display: block;
    text-align: center;
    overflow: hidden;
    transition: 0.4s ease;
}

.sidebar-banner img {
    width: 100%;
}

@media screen and (max-width: 62em) {
    .sidebar.sidebar-shop {
        box-shadow: 0px 6.31px 37.84px 0px #99999933;
        margin: 0 36px;
    }

    .sidebar-close {
        color: #ff0e0e;
        display: flex;
        width: 40px;
        max-width: fit-content;
        min-width: 35px;
        height: 35px;
        align-items: center;
        justify-content: center;
        margin: 15px auto 15px 30px;
        cursor: pointer;
        transition: 0.4s ease;
        font-size: 22px;
    }

    .sidebar-close:hover {
        color: darkred;
    }

    .sidebar-inner {
        overflow: auto;
        max-height: calc(95vh - 100px);

    }
}

@media screen and (max-width: 23.75em) {
    .sidebar.sidebar-shop {
        margin: 0;
    }
}

@media screen and (min-width: 48em) {

    .sidebar-wrap {
        margin-bottom: 24px;
        overflow: hidden;
    }

    .archive-content,
    .archive-faq {
        margin: 80px 0;
    }
}

@media screen and (min-width: 62em) {
    #sidebar-shop.active {
        box-shadow: none;
    }

    #sidebar-shop {
        padding: 0;
        width: unset;
        max-width: unset;
    }

    .sidebar-btn {
        display: none;
    }

    #sidebar-shop {
        position: unset;
        right: auto;
        overflow-y: unset;
        background: transparent;
        box-shadow: none;
    }

    #sidebar-shop .sidebar-close {
        display: none;
    }

    .sidebar-btn {
        display: none;
    }

    #sidebar {
        position: unset;
        right: auto;
        overflow-y: unset;
        background: transparent;
    }

    #sidebar .sidebar-close {
        display: none;
    }
}

#sidebar-shop .widget.woocommerce-widget-layered-nav ul li .count,
#sidebar-shop .widget.widget_layered_nav_filters ul li .count {
    display: none !important;
}

.form-check.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0 2rem;
    width: 100%;
}

.widget_price_filter .widget-title {
    padding-bottom: 0;
}

.form-check.custom-checkbox .form-check-label {
    color: var(--color3);
    font-size: 18px;
    line-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    width: 100%;
}

.form-check.custom-checkbox .form-check-input {
    display: none;
}

.form-check.custom-checkbox span.checkmark {
    width: 40px;
    height: 20px;
    background-color: #EFE6C2;
    cursor: pointer;
    position: relative;
    border-radius: 100px;
}

.form-check.custom-checkbox span.checkmark::after {
    content: '';
    width: 1rem;
    height: 1rem;
    display: block;
    background-color: #fff;
    border-radius: 50%;
    top: auto;
    bottom: 50%;
    position: absolute;
    transform: translateY(50%);
}

.form-check.custom-checkbox span.checkmark.checked {
    background-color: #D0D0F0;
}

.form-check.custom-checkbox span.checkmark.checked::after {
    background-color: var(--color1);
    right: 4px;
}

.form-check.custom-checkbox span.checkmark:not(.checked)::after {
    left: 4px;
}

.sidebar-mobile-filter {
    left: -100%;
    width: 20vw;
    max-width: 400px;
    min-width: 320px;
    height: 100vh;
    top: 0;
    bottom: 0;
    right: auto;
    z-index: 99999;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    transition: left 0.3s;
    overflow-y: auto;
    padding: 1rem;
    position: fixed;
    display: block;
}

.sidebar-mobile-filter.active {
    left: 0;
}

/* sidebar mobile */
#sidebar-0 {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -100%;
    background: #fff;
    z-index: 999;
    transition: 0.3s;
    width: 100%;
    border-top: 8px solid #CDF4F0;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
}

#sidebar-0.active {
    right: 0;
}

form.woocommerce-ordering .orderby-list button,
.widget.widget-side.widget_ordering button {
    background: transparent;
    border: none;
    font-family: inherit;
    padding: 0.25rem;
    font-size: 14px;
    width: 100%;
    text-align: right;
    transition: 0.3s
}

.sidebar-mobile-filsor .woocommerce-ordering {
    display: block;
    background: #fff;
    right: 0;
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: 0.4s ease;
    width: 100%;
    top: 60px;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    z-index: 2;
    max-height: 290px;
    overflow: auto;
    margin: 0 0 0 -1px;
    left: 0;
    border: 1px solid var(--color1);
    padding: 10px;
}

.orderby-form:hover .woocommerce-ordering {
    visibility: visible;
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.sidebar-mobile-filter .widget.widget-side.woocommerce {
    margin-bottom: 2rem;
}

@media screen and (max-width:1199.99px) {
    .sidebar-shop-mobile {
        width: 100%;
        /* margin-bottom: 1rem; */
        padding-left: 10px;
        padding-right: 10px;
    }

    .sidebar-mobile-filter .widget-title.active {
        padding-bottom: 0.5rem;
    }

    .sidebar-mobile-filsor .woocommerce-ordering button {
        text-align: left !important;
    }



    .sidebar-mobile-filsor {
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: space-between;
    }

    .sidebar-mobile-filsor span {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color3);
        background-color: #F5F5F5;
        width: 100%;
        cursor: pointer;
        position: relative;
        gap: 0.5rem;
        height: 60px;
        font-family: var(--main_bold);
    }

    .sidebar-mobile-filsor span#sidebar_mobile_filter {
        background-color: var(--color2);
        color: #fff;
    }

    .sidebar-mobile-filsor span i {
        color: var(--color3);
    }

    .sidebar-mobile-filsor span i.icon-arrow-down {
        font-size: 0.5rem;
    }

    .sidebar-mobile-filsor span#sidebar_mobile_filter i {
        color: #fff;
    }


    .mobile-filter-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--color2);
        color: #fff;
        font-size: 1.125rem;
        width: 100%;
        padding: 1rem;
    }

    .sidebar-shop-mobile .widget-title {
        position: relative;
    }
}

.woocommerce-widget-layered-nav-list li {
    position: relative;
    margin-bottom: 0.5rem;
}

.sidebar-mobile-filter .widget.widget-side.woocommerce ul {
    margin-left: 12px;
}

.woocommerce-widget-layered-nav-list li a {
    color: #939896;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem
}

.woocommerce-widget-layered-nav-list li:hover a {
    color: var(--color1);
}

@media screen and (max-width:767.99px) {
    .sidebar-mobile-filter {
        max-width: 100% !important;
    }
}

@media screen and (min-width:992px) {
    .shop_ordering {
        align-items: center;
        margin-bottom: 1.25rem;
        gap: 1.5rem;
        height: 76px;
        background-color: #F5F5F5;
        padding: 0 1rem;
        position: relative;
    }

    form.woocommerce-ordering ul.orderby-list {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .order-title h4 {
        font-size: 0.9rem;
    }
}

@media screen and (min-width:1200px) {
    .shop_ordering {
        gap: 2.5rem;
        padding: 0 1.5rem;
    }

    form.woocommerce-ordering ul.orderby-list {
        gap: 1.25rem;
    }

    .order-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .order-title i {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 1.125rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    form.woocommerce-ordering ul.orderby-list li button:hover {
        color: var(--color1);
    }

    .shop_ordering .product-count {
        position: absolute;
        right: 1.5rem;
        top: auto;
        bottom: 50%;
        transform: translateY(50%);
        color: var(--color3);
        font-size: 0.875rem;
    }

    .sidebar-inner .widget-title {
        padding-bottom: 0;
    }

    .sidebar-inner .widget.widget-side.woocommerce:not(:last-child) {
        margin-bottom: 2rem;
    }

    .form-check.custom-checkbox .form-check-label {
        font-family: var(--main_font);
    }

    .sidebar-inner {
        padding: 2rem 1.5rem;
    }

    .sidebar-inner .widget-title.active {
        padding-bottom: 0.5rem;
    }
}


.sidebar-filter-btn {
    display: none;
    background: var(--color2);
    color: #fff;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-filter-btn i {
    margin-left: 8px;
}

@media (min-width: 992px) {
    .sidebar-filter-btn {
        display: flex;
        justify-content: center;
    }

    #close_filter {
        font-size: 11px;
        color: #fff;
        transition: 0.3s;
        cursor: pointer;
    }

    #close_filter:hover {
        color: var(--color1);
    }

    #sidebar-shop {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .sidebar-mobile-filter {
        left: -100%;
        width: 100vw;
        max-width: 320px;
        padding: 1rem;
    }

    .sidebar-mobile-filter.active {
        left: 0;
    }
}

@media (min-width: 992px) {
    .mobile-filter-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--color2);
        padding: 0.875rem 1rem;
        color: #fff;
        margin-bottom: 2rem;
    }

    .desktop-filter {
        padding: 9px 0.75rem;
        border: 1px solid #E2E2E2;
    }
}

@media (min-width: 1200px) {
    .shop-cards {
        display: flex;
        flex-wrap: wrap;
        gap: 24px 0;
    }

    .shop-cards>* {
        flex: 0 0 20%;
        max-width: 20%;
        box-sizing: border-box;
    }
}

.mask-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99998;
    transition: opacity 0.3s;
    opacity: 1;
    display: block;
}

.mask-filter-overlay.hide {
    opacity: 0;
    pointer-events: none;
    display: none;
}

@media (max-width: 991.98px) {

    .sticky-mobile-top {
        position: sticky;
        top: 40px;
        z-index: 50;
        transition: z-index 0.3s ease;
        background-color: #fff;
        padding-bottom: 0;
    }

    .sticky-mobile-top.header-hidden {
        z-index: 1000;
    }
}

@media screen and (max-width: 991.99px) {

    body.tax-product_cat .site-main,
    body.tax-product_tag .site-main,
    body.woocommerce-shop .site-main {
        margin-top: 110px;
    }

    .sidebar-mobile-filsor span,
    .sidebar-mobile-filsor span#sidebar_mobile_filter {
        max-height: 50px;
    }
}