
.widget_product_categories,
.widget_price_filter,
.widget_layered_nav,
.widget_layered_nav_filters,
.widget_rating_filter {
    border: 1px solid $widget-border-color;
    border-radius: $border-thick;
    background: $widget-bg-color;
    margin-bottom: 1.0714em;
    margin-top: 0;
    position: relative;

    > ul,
    > div > ul,
    > * {
        padding: .7143em 1.0714em;
        border-width: 0;
        margin: 0;
    }

    > select {
        margin: 1.0714em 5%;
        width: 90%;
        padding: 0.4em;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.3) inset;
    }

    .widget-title {
        background: $widget-title-bg-color;
        border-bottom: 1px solid $widget-border-color;
        border-radius: $border-medium $border-medium 0 0;
        font-size: 1.06em;
		color: #21293c;
		font-weight: $font-weight-semibold;
        line-height: 1.4;
        padding: .7143em  1.0714em;
        margin: 0;
        text-transform: uppercase;
        position: relative;
        @include transition($transition);

        .toggle {
            display: inline-block;
            width: 1.8571em;
            height: 1.8571em;
            line-height: 1.7572em;
            color: if-light($input-border-color, #999);
            border-radius: $border-thin;
            position: absolute;
            #{$right}: 6px;
            top: 1px; bottom: 0;
            margin: auto;
            padding: 0;
            cursor: pointer;
            font-family: "FontAwesome";
            text-align: center;
            @include transition($transition);

            &:before {
                font-family: 'porto';
				content: "\e81b";
				color: #21293c;
				font-size: 17px;
            }
        }
    }

    &.closed {
        .widget-title {
            border-bottom-width: 0;
            border-radius: $border-medium;
            .toggle {
                &:before {
                    content: "\e81c";
                }
            }
        }
    }

    ul, ol {
        li {
            position: relative;
            border-width: 0;
            padding: 0;
            > a {
                text-decoration: none;
                display: inline-block;
                padding: 4px 0;
            }

            .toggle {
                cursor: pointer;
                display: inline-block;
                text-align: center;
                position: absolute;
                #{$right}: -5px;
                top: 4px;
                margin: 0;
                padding: 0;
                width: 24px;
                height: 24px;
                font-family: "FontAwesome";

                &:before {
                    content: $fa-var-plus-square;
                    font-size: 1.2em;
                }
            }

            &.open,
            &.current {
                > .toggle {
                    &:before {
                        content: $fa-var-minus-square;
                    }
                }
            }

            &.closed {
                > .toggle {
                    &:before {
                        content: $fa-var-plus-square;
                    }
                }
            }

            &.current {
                > ul,
                > ol {
                    &.children {
                        display: block;
                    }
                }
            }

            .small,
            small {
                float: $right;
                font-size: 1em;
            }
        }

        ul, ol {
            padding-#{$left}: 1.0714em;
            margin: 0;

            &.children {
                margin: 0;
                display: none;
            }
        }
    }
}

.widget_layered_nav {
    ul {
        li {
            > a {
                padding-#{$right}: 25px;
            }
            .count {
                position: absolute;
                top: 0;
                #{$right}: 0;
                padding-top: 4px;
            }
        }
    }
}

// Woocommerce price slider
.widget_price_filter {
    .price_slider_wrapper {
        margin-bottom: .3571em;
    }
    .price_slider {
        background: $price-slide-bg-color;
        margin-top: 1.4286em;
        margin-bottom: 2.1428em;
        border-width: 0;
        border-radius: 0;
    }
    .price_slider_amount {
        text-align: $right;
        line-height: 2.4em;
        font-size: .8751em;
        .button {
            display: block !important;
            padding: .2143em .7143em;
            text-transform: uppercase;
            float: $left;
        }
    }
    .ui-slider {
        position: relative;
        text-align: $left;
    }
    .ui-slider .ui-slider-handle {
        position: absolute;
        z-index: 2;
        width: .9286em;
        height: 1.2857em;
        cursor: pointer;
        outline: none;
        top: -.40715em;
        border-radius: $border-thin;
        border-width: 0;
        background-image: none;
        box-shadow: 0 1px 2px rgba(0,0,0,.3);

        &:last-child {
            margin-left: -.9286em;
        }
    }
    .ui-slider .ui-slider-range {
        position:absolute;
        z-index: 1;
        font-size: .7em;
        display:block;
        border: 0;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .38) inset;
        background-image: none;
    }
    #min_price,
    #max_price {
        width: 45%;
        margin-#{$right}: 4%;
        margin-top: 0.3571em;
        margin-bottom: 1.2857em;
    }
    .ui-slider-horizontal {
        height: .5em;
    }
    .ui-slider-horizontal .ui-slider-range {
        top: 0;
        height: 100%;
    }
    .ui-slider-horizontal .ui-slider-range-min {
        #{$left}: -1px;
    }
    .ui-slider-horizontal .ui-slider-range-max {
        #{$right}: -1px;
    }
}

// Woocommerce product categories widget

// Woocommerce active filters widget
.widget_layered_nav_filters {
    ul {
        @include clearfix;
        li {
            float: $left;
            a {
                margin-right: .8571em;
                &:before {
                    font-family: "FontAwesome";
                    content: $fa-var-times-circle;
                    margin-#{$right}: .3571em;
                }
            }
        }
    }
}

// Woocommerce yith widgets
.yith-woo-ajax-reset-navigation {
    background: transparent;
    border-width: 0;
    border-radius: 0;
    > * {
        padding: 0;
    }
}

.widget_layered_nav .yit-wcan-select-open {
    text-decoration: none;
}

.widget_layered_nav .yith-wcan-select-wrapper {
    border-width: 1px;
    border-color: $widget-border-color;
    border-radius: $border-thick;
    padding: 10px 0;
    ul.yith-wcan-select.yith-wcan {
        padding-top: 0;
        padding-bottom: 0;
        li {
            padding: 5px;
            border-width: 0;
            &:hover,
            &.chosen {
                box-shadow: none;
                border-width: 0;
            }
            &.chosen {
                a {
                    background-image: none;
                    position: relative;
                    &:before {
                        content: $fa-var-close;
                        font-family: "FontAwesome";
                        font-size: 0.9em;
                        position: absolute;
                        top: 0.1em;
                        left: -3px;
                    }
                }
            }
            a {
                padding: 0 12px;
                border-width: 0;
            }
        }
    }
}

.woocommerce,
.woocommerce-page {
    .yith-woo-ajax-navigation {
        ul.yith-wcan-group {
            padding: 11px;
        }
        ul.yith-wcan-color {
            li {
                width: 14.2857%;
                min-width: 34px;
                max-width: 35px;
                text-align: center;
                float: $left;
                a, a:hover,
                span, span:hover {
                    border-radius: $border-base;
                    @include if-dark {
                        border-color: #ccc;
                    }
                }
                a,
                span {
                    border-color: transparent;
                    width: 26px;//2em;//1.3846em;
                    height: 26px;//1.2308em;
                    margin: 4px;
                    box-shadow: 1px 1px 0 rgba(0,0,0,.35);
                }
                &.chosen {
                    a, a:hover,
                    span, span:hover {
                        border-radius: $border-base;
                        @include if-dark {
                            border-color: #ccc;
                        }
                    }
                }

            }
        }
        ul.yith-wcan-label {
            li {
                float: $left;
                a {
                    border-radius: $border-base;
                    min-width: 2em;
                    text-align: center;
                    margin: .3846em;
                    border: if-light(1px solid $input-border-color, 1px solid $color-dark);
                    background: if-light(#efefef, $color-dark);
                    padding: .3846em;
                    line-height: 1.2;
                }
                &.chosen a,
                a:hover {
                    border-radius: $border-base;
                    color: $color-white;
                }
            }
        }
    }
}

// Woocommerce products widget
ul.product_list_widget,
.widget ul.product_list_widget {
    list-style: none outside;
    padding: 0;
    margin: 0;
    border-width: 0 !important;
    li {
        border-width: 0;
        position: relative;
        padding: side-values(.5714em 0 .5714em 108px);
        margin: 0;
        list-style: none;
        @include clearfix;

        &:first-child {
            padding-top: 0;
        }

        &:last-child {
            padding-bottom: 0;
        }

        .product-image {
            float: $left;
            width: 96px;
            padding: $widget-product-image-padding;
            border-radius: $border-normal;
            margin-#{$left}: -108px;

            img {
                width: 100%;
                height: auto;
                border-radius: $border-thin;
            }

            /*.img-effect {
                img {
                    position: relative;
                    left: 0;
                }

                .hover-image {
                    margin-right: -100%;
                }
            }

            &:hover {
                .img-effect {
                    img {
                        left: -100%;
                    }
                }
            }*/
            .img-effect {
                img {
                    position: relative;
                    opacity: 1;
                }

                .hover-image {
                    position: absolute;
                    left: 0; right: 0; top: 0; bottom: 0;
                    margin: auto;
                    opacity: 0;
                }
            }

            &:hover {
                .img-effect {
                    img {
                        opacity: 0;
                    }
                    .hover-image {
                        opacity: 1;
                    }
                }
            }
        }

        .product-details {
            position: relative;
            padding-top: 3px;
            a {
                display: block;
                text-decoration: none;
            }
            .amount {
                color: $color-price;
                font-size: 1.0714em;
                font-weight: $font-weight-semibold;
                line-height: 1;
                vertical-align: middle;
                .currency,
                .decimal {
                    font-size: .75em;
                    font-weight: $font-weight-normal;
                }
                .currency {
                    .decimal {
                        font-size: 1em;
                    }
                }
            }
            ins {
                text-decoration: none;
                vertical-align: baseline;
            }
            del,
            .from {
                color: $color-old-price;
                font-size: .8em;
                margin-#{$right}: 3px;
                vertical-align: baseline;
                .amount {
                    color: $color-old-price;
                }
            }
        }
        dl {
            margin: 0;
            padding-#{$left}: 1em;
            border-#{$left}: 2px solid rgba(0, 0, 0, 0.1);
            @include clearfix;

            dt, dd {
                display: inline-block;
                float: $left;
                margin-bottom: 1em;
            }
            dt {
                font-weight: $font-weight-bold;
                padding: 0 0 .25em 0;
                margin: side-values(0 4px 0 0);
                clear: $left;
            }
            dd {
                padding: 0 0 .25em 0;
                p:last-child {
                    margin-bottom:0;
                }
            }
        }
        .star-rating {
            //font-size: 0.8571em;
            margin: 7px 0 5px;
        }
        .ajax-loading {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            @include if-dark {
                background: $color-dark-3 url(../images/ajax-loader@2x.gif) no-repeat scroll center center / 16px 16px;
            }
            @include if-light {
                background: #fff url(../images/ajax-loader@2x.gif) no-repeat scroll center center / 16px 16px;
            }
            opacity: .6;
        }
    }
}

ul.cart_list{
    li {
        &.empty {
            padding-#{$left}: 0;
        }
        .quantity {
            vertical-align: baseline;
            .amount {
                vertical-align: baseline;
            }
        }
        dl {
            margin: 8px 0;
            border: none;
            padding-#{$left}: 5px;
            display: table;
            dt,
            dd {
                padding: 3px;
                margin: 0;
                line-height: 1.2;
                p {
                    line-height: 1.2;
                }
            }
        }
    }
}

.hide_cart_widget_if_empty {
    .empty {
        display: none;
    }
}

.widget_recent_reviews,
.widget.widget_recent_reviews {
    .product_list_widget {
        @include clearfix;
        margin-top: -.5714em;
        margin-bottom: -.5714em;
        li {
            width: 49%;
            padding: .5714em 1%;
            float: $left;
            padding-#{$left}: 0;
            text-align: center;
            &:first-child {
                padding-top: .5714em;
            }
            &:last-child {
                padding-bottom: .5714em;
            }
            a {
                float: none;
                display: block;
                position: relative;
            }
            img {
                width: 96px;
                height: auto;
                background: if-light(#fff, $color-dark-3);
                border: if-light($product-image-border-width solid $image-border-color, $product-image-border-width solid $color-dark-3);
                border-radius: $border-normal;
                padding: $widget-product-image-padding;
                display: block;
                margin: 0 auto 10px;
            }
            .star-rating {
                margin: 5px auto 0;
            }
            .reviewer {
                font-size: .8571em;
            }

            &:nth-child(2n+1) {
                clear: both;
            }
        }
    }
}

// Woocommerce shopping cart
.widget_shopping_cart {
    .total {
        padding: .7143em 0;
        margin: 0;
        text-align: center;

        .amount {
            font-size: 1.4286em;
            font-weight: $font-weight-semibold;
            .currency,
            .decimal {
                font-size: .75em;
                font-weight: $font-weight-normal;
            }
            .currency {
                .decimal {
                    font-size: 1em;
                }
            }
        }
    }
    .buttons {
        margin-bottom: 0;
        @include clearfix;

        .wc-forward {
            float: $left;
            width: 49%;
        }
        .checkout {
            float: $right;
            width: 49%;
        }
        .mobile-sidebar & {
            .wc-forward {
                float: none;
                width: 100%;
                + .wc-forward {
                    margin-top: 8px;
                }
            }
        }
        @media #{$screen-medium} {
            .wc-forward {
                float: none;
                width: 100%;
                + .wc-forward {
                    margin-top: 8px;
                }
            }
        }
    }
    .product-details {
        a {
            padding-#{$right}: 15px;
        }
        .remove-product {
            padding: 0;
            position: absolute;
            top: 3px;
            #{$right}: 0;
            text-align: $right;
            width: 25px;
            height: 25px;
            text-decoration: none;
            &:before {
                content: $fa-var-close;
                font-family: "FontAwesome";
            }
        }
    }
}

// Woocommerce brands widget
.widget .brand-thumbnails,
.brand-thumbnails {
    list-style: none;
    margin: 0;
    padding: 0;
}

// Woocommerce products slider
.products-slider {
    &.products {
        li.product {
            clear: none;

            .add-links {
                margin-bottom: 5px;
            }
        }
    }
    &.show-nav-title {
        .owl-nav {
            margin-top: -52px;
        }
    }
    .slick-dots li {
        clear: none !important;
        width: 20px !important;
        margin-bottom: 0;
        button {
            box-shadow: none !important;
        }
    }
    &.slick-initialized .product {
        display: block;
    }
    &.owl-carousel {
        margin: 0 !important;
        .product {
            width: 100%;
            margin-bottom: 0;
        }
        .owl-stage-outer {
            padding-top: 10px;
            margin-top: -10px;
        }
        .owl-dots {
            margin-top: 20px;
        }
    }
}

.product-carousel {
    &.products {
        li.product {
            clear: none;

            .add-links {
                margin-bottom: 5px;
            }
        }
    }
    &.owl-carousel {
        margin: 0 !important;
        .product {
            width: auto !important;
            padding: 0;
            margin: 0 ($grid-gutter-width / 2);
        }
        .owl-stage-outer {
            padding-top: 10px;
            margin-top: -10px;
        }
        .owl-dots {
            margin-top: 20px;
        }
    }
}

.yith-woo-ajax-navigation,
.yith-wcan-list-price-filter {
    &.loading {
        position: relative;
        &:after {
            content: " ";
            display: block;
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            z-index: 10000;
        }
    }
}

.yith-wcan-list-price-filter {
    &.loading {
        form {
            input[type="text"] {
                opacity: 0;
            }
        }
    }
}

/* search form */
.woocommerce-product-search {
    label {
        display: none;
    }
    .search-field {
        margin-bottom: 8px;
        vertical-align: top;
    }
}

/* rating filter */
.widget_rating_filter {
    .star-rating {
        display: block;
        float: $left;
        margin-top: 0.15em;
    }
    .wc-layered-nav-rating a {
        display: block;
        @include clearfix();
        text-align: $right;
    }
}