/* WooCommerce scss */
.elementor-element .woocommerce ul.products.carousel li{
    &.first{
        clear: none !important;
    }
    &.slick-slide{
        margin:15px
    }
}
.cafe-head-product-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;

    &.has-border {
        padding-bottom: 15px;
        margin-bottom: 30px;
        border-bottom: 1px solid #ebebeb;
        position: relative;
        &:after {
            content: '';
            width: 90px;
            height: 3px;
            background: $black_text;
            position: absolute;
            bottom: 0;
            left: 0;
            z-index: 1;
        }
    }

    h3 {
        margin-bottom: 0;
    }

    ul {
        margin: 0;
        display: flex;
        align-items: center;

        li {
            list-style-type: none;
            padding-left: 25px;
            &:first-child {
                padding-left: 0;
            }
            a {
                white-space: nowrap;
            }

            a:hover {
                color: $black_text;
            }

            a.active {
                color: $black_text;
            }

        }

    }
}

/*Heading style*/
.heading-type-1, .heading-type-4 {
    .cafe-head-product-filter {
        text-align: center;
        flex-wrap: wrap;
        margin-bottom: 20px;
        .cafe-wrap-header-title {
            width: 100%;
            margin-bottom: 10px;
        }
        ul {
            width: 100%;
            justify-content: center;
            a {
                font-weight: 600;
                &:hover, &.active, &:focus {
                    color: var(--accent-color);
                }
            }
        }
    }
}

.heading-type-2 {
    .cafe-head-product-filter {
        padding-bottom: 15px;
        margin-bottom: 30px;
        border-bottom: 1px solid #ebebeb;
        position: relative;
        &:after {
            content: '';
            width: 90px;
            height: 3px;
            background: $black_text;
            position: absolute;
            bottom: 0;
            left: 0;
            z-index: 1;
        }
    }
}

.heading-type-3 {
    .cafe-head-product-filter {
        flex-wrap: wrap;
        border-bottom: 1px solid #ebebeb;
        margin-bottom: 10px;
        padding-bottom: 10px;
        .cafe-wrap-header-title {
            width: 100%;
            margin-bottom: 10px;
        }
        ul {
            width: calc(100% - 100px);
        }
    }
    .carousel {
        .cafe-carousel-btn {
            bottom: calc(100% + 10px);
            border-radius: 0;
            border: none;
            background: $light_gray;
            color: $black_text;
            &:hover {
                color: $white_text;
                background: $black_text;
            }
        }
    }
}

.heading-type-4 {
    .cafe-head-product-filter {
        ul {
            a {
                border-bottom: 2px solid;
            }
        }
    }
}

.heading-type-1, .heading-type-2 {
    .carousel {
        .cafe-carousel-btn {
            top: 50%;
            &.prev-item {
                left: 30px;
                right: auto;
            }
            &.next-item {
                right: 30px;
                left: auto;
            }
        }
    }
}
.heading-type-4 {
    .carousel {
        .cafe-carousel-btn {
            bottom: calc(100% + 10px);
            border: none;
            width: auto;
            padding-left: 0;
            padding-right: 0;
            font-size: 22px;
            color: $black_text;
            &.prev-item {
                left: 15px;
                right: auto;
                i:before{
                    content: '\c138';
                }
            }
            &.next-item {
                right: 15px;
                left: auto;
                i:before{
                    content: '\c139';
                }
            }
        }
    }
}

/*End heading style*/
.cafe-carousel {
    .cafe-carousel-btn {
        position: absolute;
        top: 50%;
        z-index: 1;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);

        &.prev-item {
            left: 15px;
        }

        &.next-item {
            right: 15px;
        }

    }

    ul.slick-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 30px 0;
        width: 100%;

        li {
            width: 10px;
            height: 10px;
            margin: 0 3px;
            border-radius: 5px;
            transition: 450ms;
            -webkit-transition: 450ms;
            -moz-transition: 450ms;
            -o-transition: 450ms;
            -ms-transition: 450ms;
            background: #ccc;
            border: 0;
            cursor: pointer;

            &.slick-active {
                width: 30px;
                background: $black_text;
            }

            button {
                display: none;
            }

        }

    }

}

/* List Tags */
.tag-item {
    background: $black_text;
    color: $white_text;
    text-align: center;
    margin: 0 15px;
}

/* End List Tags */

/* List Categories */
.cafe-product-categories-list {
    .slick-dots {
        position: static;
    }
}

// Layout sub-cate
.wrap-category-item {
    list-style: none;
    .product-category-heading {
        text-transform: uppercase;
        margin-bottom: 10px;
        font-size: 1rem;
        font-weight: bold;
    }
}

.wrap-content-category-item {
    width: 100%;
    display: flex;
}

.sub_cate {
    .category-item {
        margin: 0;
        a {
            color: $gray-color;
            &:hover {
                color: $black_text;
            }
        }
    }
    .wrap-category-item {
        display: flex;
        .view-more {
            margin-top: 10px;
            display: inline-block;
            white-space: nowrap;
            i {
                font-size: 60%;
            }
        }
        .category-content {
            -webkit-box-flex: 1;
            -webkit-flex-grow: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;
        }
    }
    &.top{
        .category-image {
            margin-bottom: 20px;
        }
    }
    &.left{
        .category-image {
            margin-right: 20px;
        }
    }
    &.right{
        .category-image {
            margin-left: 20px;
        }
    }
}

// Layout list-cate

/* End List Categories */
/* Product Categories*/
.cafe-product-categories-nav {
    .cafe-title {
        font-size: 18px;
        margin: 0;
    }
    .cafe-wrap-product-categories-nav {
        margin: 0;
        li {
            list-style: none;
        }
    }
    & > ul > li {
        padding-left: 0;
    }
    .cafe-cat-item {
        position: relative;
    }
    .cafe-sub-cat {
        position: absolute;
        width: 250px;
        left: 100%;
        top: 30px;
        background: none;
        margin: 0;
        transition: all 300ms;
        opacity: 0;
        visibility: hidden;
        z-index: 1;
        box-shadow: 0 0 20px -5px $black_transparent_2;
        li {
            padding: 5px 15px;
            background: $white_text;
        }
    }
    li:hover > ul.cafe-sub-cat {
        opacity: 1;
        visibility: visible;
        top: 0
    }
    &.cafe-accordion {
        .cafe-sub-cat {
            width: 100%;
            position: static;
            margin: 0;
            display: none;
            opacity: 1;
            visibility: visible;
            transition: none;
            padding: 0;
        }
        .cafe-cat-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            & > a {
                max-width: calc(100% - 30px);
            }
            &.activated {
                & > .cafe-btn-accordion {
                    transform: rotateX(180deg);
                }
            }
        }
        .cafe-btn-accordion {
            width: 30px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            display: block;
            cursor: pointer;
        }
    }
}

/* End Product Categories*/
/* Banner and Tabs */
.cafe-product-banner-and-tabs {

    .cafe-head-product-filter {
        .cafe-cat-item {
            position: relative;
            padding: 0;
        }
        .cafe-sub-cat {
            position: absolute;
            width: 250px;
            left: 100%;
            top: 30px;
            padding: 5px;
            background: none;
            margin: 0;
            transition: all 300ms;
            opacity: 0;
            visibility: hidden;
            z-index: 1;
            li {
                padding: 0 0 0 15px;
                background: $white_text;
            }
        }
        a {
            padding: 5px 0;
            color: inherit;
            display: block;
        }
        li:hover > ul.cafe-sub-cat {
            opacity: 1;
            visibility: visible;
            top: 0
        }
        .cafe-accordion {
            .cafe-sub-cat {
                width: 100%;
                position: static;
                margin: 0;
                display: none;
                opacity: 1;
                visibility: visible;
                transition: none;
                padding: 0;
            }
            .cafe-cat-item {
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-wrap: wrap;
                & > a {
                    max-width: calc(100% - 30px);
                }
                &.activated {
                    & > .cafe-btn-accordion {
                        transform: rotateX(180deg);
                    }
                }
            }
            .cafe-btn-accordion {
                width: 30px;
                height: 30px;
                text-align: center;
                line-height: 30px;
                display: block;
                cursor: pointer;
            }
        }
    }
    .cafe-product-banner {
        position: relative;
        background-repeat: no-repeat;
        background-size: cover;
        overflow: hidden;
        .wrap-content {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
            width: 100%;
            height: 100%;
            .button {
                position: absolute;
                top: 0;
                left: 0;
                z-index: 1;
                white-space: nowrap;
            }
        }
    }
}

.cafe-product-banner-and-tabs.style-1 {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: space-between;
    .cafe-head-product-filter {
        display: block;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        .cafe-title {
            padding: 0 15px;
        }

        .cafe-ajax-load {
            display: block;
            padding: 15px 0;
            .shop-now-button {
                position: absolute;
                bottom: 30px;
                z-index: 1;
            }
        }
        &:after {
            content: none;
        }
    }
    .products {
        margin: 0 !important;
        flex-grow: 1;
    }
}

.cafe-product-banner-and-tabs.style-2 {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    .cafe-head-product-filter {
        width: 100%;
    }
    .products {
        margin: 0 !important;
        flex-grow: 1;
    }
}

/* End Banner and Tabs */

/* Deal */
.sold-bar {
    margin-bottom: 35px;

    .sold-label {
        display: block;
        font-size: 16px;
        text-align: center;
        color: #000;
        margin: 15px 0;
    }

    .sold-percent {
        height: 10px;
        display: block;
        background: #ebebeb;
        border-radius: 10px;

        span {
            height: 10px;
            display: block;
            border-radius: 10px;
            background: $black_text;
        }

    }

    .sold-bar-count {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
    }

    & > span {
        font-size: 15px;
        font-weight: 300;
        margin-top: 12px;
        color: #959595;
        display: none;
    }

}

.product .cafe-countdown-block {
    width: auto;
    margin-bottom: 0;
    display: flex !important;
    align-items: center;
    padding-left: 20px;
    padding-right: 10px;
    color: #fff;
    font-weight: bold;
    height: 30px;
    background: $black_text;
    border-radius: 4px;

    .countdown-block {
        .countdown-times {
            display: flex;
            align-items: center;
            margin: 0;

            & > div {
                margin: 0 5px !important;
                font-size: 0;
                display: flex;
                align-items: center;
                position: relative;

                &.day {
                    b:after {
                        content: ":" !important;
                    }

                    b:before {
                        content: "d" !important;
                    }

                }

                &.hours {
                    b:after {
                        content: ":" !important;
                    }

                    b:before {
                        content: "h" !important;
                    }

                }

                &.minutes {
                    b:after {
                        content: ":" !important;
                    }

                    b:before {
                        content: "m" !important;
                    }

                }

                &.seconds {
                    b:before {
                        content: "s" !important;
                    }

                }

                b {
                    display: block;
                    font-size: 16px;
                    background: none;
                    margin: 0;
                    color: #fff;
                    position: relative;
                    width: 50px;

                    &:before {
                        text-transform: lowercase;
                        color: #fff !important;
                        position: absolute;
                        top: 50%;
                        right: 0px;
                        z-index: 1;
                        -webkit-transform: translateY(-50%);
                        transform: translateY(-50%);
                    }

                    &:after {
                        color: #fff !important;
                        position: absolute;
                        top: 50%;
                        right: -20px;
                        z-index: 1;
                        -webkit-transform: translateY(-50%);
                        transform: translateY(-50%);
                    }

                }

            }

        }

    }

}

.layout-1 {
    .sold-bar {
        .sold-label {
            display: none;
        }

    }

}

.layout-2 {
    .product {
        .zoo-countdown {
            position: relative;
        }

    }

}

/* End Deal */

/* Deal and Tabs */
.cafe-deal-wrap {
    display: flex;
    justify-content: space-between;

    .cafe-module-1 {
        width: calc(35% - 10px);
        padding: 20px;
        border: 2px solid $black_text;

        .product {
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
            max-width: 100%;
            width: 100%;

            .zoo-countdown {
                position: relative;
            }

        }

    }

    .cafe-module-2 {
        width: calc(65% - 10px);
    }

}

/* End Deal and Tabs */


.pagination-ajax .cafe-pagination{
    display: none;
}
.elementor-widget-clever-product-list-with-tags{
    --btn-bg:#C76C83;
    --btn-color:#fff;
    --btn-hover-bg:#C76C83;
    --btn-hover-color:#fff;
    ul.products{
        margin:0 !important;
        width: 100%;
    }
    .products .product{
        width: 100%;
        list-style: none;
        padding:0;
        margin:0 0 10px;
        &:last-child{
            margin:0 !important;
        }
    }
    .product-title{
        margin:0;
        padding-right: 20px;
        a{
            text-transform: uppercase;
            font-size: 1rem;
        }
    }
    .price{
        color:#000;
        font-size: 18px;
    }
    .cafe-list-tag{
        color: #959595;
        span{
            padding:0 3px;
        }
        a{
            text-transform: capitalize;
            color: inherit;
            &:hover{
                color: #000;
            }
        }
    }
    .product-item-row{
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        &.bottom-product-item{
            flex-wrap: wrap;
        }
    }
    .bottom-product-item{
       a.cafe-btn-cart {
           display: inline-flex;
           position: relative;
           i, span {
               background: var(--btn-bg);
               color: var(--btn-color);
               font-size: 11px;
               line-height: 1.19;
               -webkit-border-radius: 2px;
               -moz-border-radius: 2px;
               border-radius: 2px;
               transition: all 300ms;
           }
           span{
               text-transform: uppercase;
               padding: 2px 3px;
               opacity: 0;
               transform: translateX(-10px);
               transition: all 300ms;
           }
           &:hover{
               span{
                   opacity: 1;
                   transform: translateX(0);
               }
               i, span {
                   background: var(--btn-hover-bg);
                   color: var(--btn-hover-color);
               }
           }
           i{
               padding:2px;
               width: 18px;
               height: 18px;
               display: inline-flex;
               margin-left: 5px;
               white-space: nowrap;
               justify-content: center;
           }
       }
    }
}
@media(min-width: 556.98px){
    .elementor-widget-clever-product-list-with-tags{
        .product-item-row{
            &.bottom-product-item{
                flex-wrap: nowrap;
            }
        }
    }
}