/* --------------------------------------------
  SINGLE PRODUCT INFO
-------------------------------------------- */

.woocommerce .single-product-image-wrap {
    #sync1 {
        overflow: hidden;

        &:hover {
            .owl-nav {
                opacity: 1;
            }
        }

        .owl-nav {
            opacity: 0;
            .transition(all 0.35s ease);

            >div {
                .translateY(-50%);
                top: 50%;
                position: absolute;
                line-height: 1;
                font-size: 30px;
                color: fade(@black, 15%);
                .transition(all 0.35s ease);

                &:hover {
                    color: var(--primary_color);
                }

                &.owl-next {
                    right: 30px;
                }

                &.owl-prev {
                    left: 30px;
                }
            }
        }
    }

    #sync2 {
        &:hover {
            .owl-nav {
                opacity: 1;
            }
        }

        .owl-nav {
            opacity: 0;
            .transition(all 0.35s ease);

            >div {
                .translateY(-50%);
                top: 50%;
                position: absolute;
                padding: 5px 10px;
                line-height: 1;
                font-size: 20px;
                background-color: fade(@black, 10%);
                color: @white;
                .transition(all 0.35s ease);

                &:hover {
                    background-color: var(--primary_color);
                }

                &.owl-next {
                    right: 0;
                }

                &.owl-prev {
                    left: 0;
                }
            }
        }

        .thumbnail-image {
            text-align: center;
        }

        .thumbnail-image a {
            margin: 20px 10px;
            display: block;
            position: relative;
            opacity: 0.5;

            &:before {
                left: 0;
                top: 0;
                content: "";
                width: 100%;
                height: 100%;
                position: absolute;
                z-index: 1;
                -webkit-box-shadow: inset 0 0 0 0px @white;
                -moz-box-shadow: inset 0 0 0 0px @white;
                box-shadow: inset 0 0 0 0px @white;
                .transition(all 0.35s ease);
                background-color: #f7f7f7;
                mix-blend-mode: darken;
            }
        }

        .thumbnail-image a:after {
            content: "";
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            z-index: 1;
        }

        .synced .thumbnail-image {
            a {
                opacity: 1;
            }
        }
    }
}

.woocommerce div.product {
    .single-product-info {

        @media (max-width: 768px) {
            flex-direction: column;
        }
    }

    .summary-product-wrap {
        @media (max-width: 768px) {
            margin-top: 30px;
        }

        margin-bottom: 50px;

        @media (max-width: 480px) {
            margin-bottom: 0;
        }

        .product_title {
            position: relative;
            margin-bottom: 5px;

            @media(max-width: 1199px) {
                font-size: 36px;
            }
        }

        .woocommerce-product-rating {
            margin-top: 10px;
            margin-bottom: 20px;
            vertical-align: middle;
            line-height: 20px;

            .woocommerce-review-link {
                font-size: 15px;
                line-height: 1.4;
                color: #878787;
                margin-left: 10px;
            }

            .star-rating {
                float: none;
                margin: 0;
                display: inline-block;
                font-size: 13px;
                height: 15px;
                vertical-align: middle;
            }
        }

        p.price {
            font-size: 30px;
            line-height: 1.2;
            color: var(--primary_color);
            padding-top: 25px;
            margin-bottom: 0;
            margin-top: 0;

            del {
                position: relative;
                font-size: 18px;
                color: @gray-light;
            }

            ins {
                text-decoration: none;
            }

            @media(max-width:479px) {
                font-size: 24px;
            }
        }

        .product-single-short-description {
            margin-bottom: 28px;

            p {
                margin-bottom: 0;
            }
        }

        form.cart {
            display: inline-block;
            margin-bottom: 30px;
            width: 100%;

            div.quantity {
                label {
                    display: none;
                }

                margin-right: 10px;

                input {
                    height: 50px;
                    font-size: 16px;
                    padding-right: 0px;
                    border: 1px solid var(--heading_color_fade_30);
                }
            }

            .button,
            .added_to_cart {
                min-width: 200px;
                background-color: var(--heading_color);
                color: @white;
                border-color: var(--heading_color);

                &:hover {
                    background-color: var(--primary_color);
                    border-color: var(--primary_color);
                }
            }

            .button.added {
                display: none;
            }

            .group_table {
                border: none;
                margin-bottom: 38px;

                td {
                    line-height: 50px;
                }

                td.label {
                    padding: 0 10px;
                }

                label {
                    color: var(--heading_color);
                    font-family: var(--heading_font);
                    font-weight: var(--heading_font_weight);
                    font-size: 17px;
                    margin: 0;
                    line-height: 50px;
                }

                td.woocommerce-grouped-product-list-item__price {
                    font-weight: 600;
                    line-height: 50px;
                    font-size: 17px;
                    color: var(--primary_color);

                    ins {
                        display: inline-block;
                        text-decoration: none;
                    }

                    del {
                        display: inline-block;
                        color: #a8a8a8;
                        font-size: var(--primary_font_size);
                        opacity: 1;
                        margin-right: 15px;
                    }

                    .out-of-stock {
                        display: inline-block;
                        margin-bottom: 0;
                        color: var(--primary_color_fade_50);
                        font-size: 11px;
                        margin-left: 3px;
                    }
                }
            }
        }

        .woocommerce-variation {
            margin: 20px 0;

            .woocommerce-variation-price {
                .price {
                    ins {
                        text-decoration: none;
                    }
                }
            }
        }

        form.variations_form {
            .variations {
                width: 100%;
                margin: 0;

                tr {
                    &:nth-child(3) {
                        td {
                            padding: 0;
                        }
                    }
                }
            }

            .variations td {
                display: table-cell;
                text-align: left;
                vertical-align: middle;
            }

            .variations td.label {
                padding: 0;
            }

            .variations select {
                background-color: @bg_color;
                border-radius: 3px;
            }

            .variations tr+tr td,
            .variations tr+tr td.label {
                padding: 10px 0 0 0;
            }

            .variations td.label label {
                margin-bottom: 0;
                letter-spacing: 0.15em;
                text-transform: uppercase;
                font-size: calc(var(--primary_font_size) - 2px);
                color: var(--heading_color);
                font-weight: var(--primary_font_weight);
            }

            .single_variation_wrap:after,
            .variations_button:after {
                content: "";
                display: block;
                clear: both;
            }

            .single_variation span.price {
                font-size: 24px !important;
                color: var(--primary_color);
                line-height: 1;
                margin-bottom: 20px;
            }

            .single_variation_wrap {
                .single_add_to_cart_button {
                    background-color: var(--primary_color);
                    border-color: var(--primary_color);

                    &:hover {
                        background-color: #222;
                        color: @white;
                    }
                }
            }
        }

        .yith-wcwl-add-to-wishlist {
            margin-left: 0px;
            display: inline-block;
            margin-top: 0;
            text-align: center;
            line-height: 48px;
            margin-bottom: 20px;
            display: none;

            .yith-wcwl-add-button {
                font-size: 0;
                width: 50px;
                height: 50px;
                border: 1px solid @border_color;

                a {
                    display: block;
                }

                img {
                    display: none !important;
                }
            }

            i {
                line-height: 48px;
                font-size: 18px;
                margin-right: 0;
            }
        }

        .single-product-function {
            display: none;
            margin-top: 20px;
            margin-bottom: 20px;

            .yith-wcwl-add-to-wishlist {
                margin: 0 15px 0 0;
                display: inline-block;
            }

            .yith-wcwl-wishlistaddedbrowse a,
            .yith-wcwl-wishlistexistsbrowse a,
            .yith-wcwl-add-button a.add_to_wishlist {
                font-size: 13px;
                color: #777;
                text-transform: uppercase;
                .transition(all 0.2s ease);

                &:hover {
                    &:before {
                        color: @white;
                    }
                }
            }

            .compare.added:before,
            .yith-wcwl-wishlistaddedbrowse a:before,
            .yith-wcwl-wishlistexistsbrowse a:before,
            .yith-wcwl-add-button a.add_to_wishlist:before {
                font-family: "Font Awesome 5 Pro";
                font-weight: 300;
                content: "\f004";
                font-style: normal;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                font-size: 11px;
                vertical-align: middle;
                width: 36px;
                height: 36px;
                background-color: #FAFAFA;
                line-height: 36px;
                text-align: center;
                border-radius: 100%;
                display: inline-block;
                color: #888888;
                margin-right: 10px;
                .transition(all 0.2s ease);
            }

            .compare.added:before {
                content: "\f012";
            }

            a.compare {
                font-size: 13px;
                color: #777;
                text-transform: uppercase;
                display: inline-block;
                .transition(all 0.2s ease);

                i {
                    font-size: 11px;
                    vertical-align: middle;
                    width: 36px;
                    height: 36px;
                    background-color: #FAFAFA;
                    line-height: 36px;
                    text-align: center;
                    border-radius: 100%;
                    display: inline-block;
                    color: #888888;
                    margin-right: 10px;
                    .transition(all 0.2s ease);
                }

                &:hover {
                    i {
                        color: @white;
                    }
                }
            }

            .feedback {
                display: none !important;
            }

            .fa-heart-o {
                display: none;
            }
        }

        .product_meta {
            >span {
                display: block;
                padding-bottom: 10px;
            }

            .yith-wcbr-brands-logo {
                padding: 0px;
                margin: 0px;
            }

            .yith-wcbr-brands {
                display: none;
            }

            label {
                margin-bottom: 0;
                font-weight: bold;
                letter-spacing: 0.1em;
                text-transform: uppercase;
                font-size: calc(var(--primary_font_size) - 2px);
                color: var(--heading_color);
            }
        }

        .stock {
            display: none;
        }

        .social-share-wrap label {
            font-weight: var(--heading_font_weight);
            font-family: var(--heading_font);
            color: var(--heading_color);
            letter-spacing: 1px;
            float: left;
            font-size: 18px;
            display: block;

            @media (max-width: 480px) {
                margin-right: 33px;
            }
        }

        .select_option {
            margin-right: 15px;

            span {
                font-weight: bold;
                color: var(--text_color_fade_70);
            }

            &.selected {
                span {
                    color: @black;
                }
            }
        }

        .social-share-wrap {
            padding: 0;
            width: 100%;

            justify-content: flex-start;

        }
    }

    .woocommerce-tabs {
        margin-top: 80px;

        ul.tabs {
            padding: 0;
            border-bottom: 1px solid darken(@bg_color, 10%);

            &:before {
                border: none;
            }

            li {
                position: relative;
                z-index: 1;
                display: inline-block;
                border: none;
                background-color: transparent;
                margin: 0;
                padding: 0;
                margin-right: 35px;

                &:before,
                &:after {
                    display: none;
                }

                a {
                    font-family: var(--heading_font);
                    font-weight: bold;
                    position: relative;
                    font-size: 20px;
                    color: var(--heading_color);
                    border-bottom: 0px solid transparent;
                    .transition(all 0.2s ease);
                    padding: 15px 0px;

                    @media (max-width: 991px) {
                        font-size: 20px;
                    }

                    @media (max-width: 768px) {
                        font-size: 18px;
                    }

                    &:before {
                        content: "";
                        bottom: 0;
                        left: 0;
                        width: 0px;
                        height: 2px;
                        position: absolute;
                        background-color: var(--primary_color);
                        .transition(all 0.2s ease);
                    }
                }

                &.active,
                &:hover {
                    a {
                        color: var(--primary_color);
                    }
                }

                &.active {
                    a:before {
                        width: 100%;
                    }
                }

            }
        }

        .panel {

            position: relative;
            overflow: hidden;
            margin: 0 auto;
            border: none;

            h2 {
                display: none !important;
            }

            .shop_attributes {
                th {
                    padding: 8px 8px 8px 30px;
                }

                .alt {

                    th,
                    td {
                        background-color: @white;
                    }
                }
            }
        }

        #tab-description {
            color: #777;
            line-height: 1.8;
            text-align: left;
            padding-top: 10px;

            .wc-content {
                >h2 {
                    display: none;
                }
            }
        }

        #tab-reviews {
            padding-top: 20px;
        }

        #tab-additional_information {
            padding-top: 40px;
        }
    }

    div.products {
        .widget-title {
            margin-top: 80px;
            margin-bottom: 25px;
            text-transform: capitalize;
            font-size: 32px;
        }

        .slider {
            margin: 0 -20px;

            @media (max-width: 1300px) {
                margin: 0 -10px;
            }

            .product-item-wrap {
                padding: 20px;
                margin-bottom: 0 !important;

                @media (max-width: 1300px) {
                    padding: 10px;
                }
            }
        }

    }
}

.woocommerce #reviews {
    .yolo-rating {
        display: none;
    }

    .yolo-stars {
        display: none;
    }

    .comment-form-rating {
        margin-top: 15px;
    }

    #comments ol.commentlist {
        padding: 0;

        li {
            img.avatar {
                width: 80px;
                border: none;
                border-radius: 50%;
                padding: 0;
            }

            .comment-text {
                margin-left: 100px;
                padding: 0;
                border: none;

                .star-rating {
                    float: right;
                    margin: 0px;
                    margin-top: 5px;
                }

                p.meta {
                    font-size: 16px;
                    margin-bottom: 10px;
                    font-family: var(--heading_font);
                    font-weight: var(--heading_font_weight);
                    color: var(--heading_color);

                    strong {
                        font-weight: bold;
                    }

                    time {
                        font-weight: 500;
                        color: var(--text_color);
                        margin-left: 5px;
                    }
                }
            }
        }
    }

    #respond textarea {
        height: 200px;
    }

    #respond {
        p {
            margin-bottom: 20px;

            &.comment-form-author {
                margin-right: 20px;
            }

            input#submit {
                margin-top: 20px;
            }

        }

        label {
            color: var(--heading_color);
            font-weight: 500;

            &[for="wp-comment-cookies-consent"] {
                text-transform: inherit;
            }
        }

    }

}

.woocommerce .single-product-info {
    .compare {
        opacity: 1;
        color: var(--text_color);
        font-weight: 600;
        font-size: 16px !important;
        display: none;

        &.added {
            padding-top: 0px;
        }

        &:hover {
            color: var(--text_color);
        }

        &:before {
            content: '\f2f9' !important;
            padding-right: 5px;
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
        }

        &:after {
            display: none;
        }
    }
}

.woocommerce {
    .site-content-single-product {
        &.col-md-9 {
            .single-product-info {
                @media (min-width: 768px) and (max-width: 991px) {
                    .col-md-6 {
                        flex: 0 0 100%;
                        max-width: 100%;
                    }
                }
            }
        }
    }

    .single-product-info {

        .single-product-image-wrap {
            .single-product-image {
                position: relative;

                // For Zoom style
                .woocommerce-product-gallery {
                    width: 100%;
                }

                .woocommerce-product-gallery__trigger {
                    width: 32px;
                    height: 32px;
                    top: 3px;
                    right: 3px;
                }

                .flex-control-thumbs.slick-slider {
                    height: auto;
                    margin: 20px auto;

                    &:hover {
                        .slick-arrow {
                            opacity: 1;
                        }
                    }

                    .slick-slide {
                        display: inline-block;
                        margin: 0 8px;
                        outline: none;
                        clear: none !important;
                        z-index: 6;
                        position: relative;

                        img {
                            width: 100%;
                            border: 2px solid transparent;
                            -webkit-transition: all 0.5s;
                            -moz-transition: all 0.5s;
                            -ms-transition: all 0.5s;
                            -o-transition: all 0.5s;
                            transition: all 0.5s;
                        }

                        &.slick-active {
                            .flex-active {
                                border-color: var(--primary_color);
                            }
                        }

                    }

                    .slick-arrow {
                        opacity: 0;
                        margin-top: 0;
                        z-index: 7;
                        font-size: 0;
                        line-height: 0;
                        position: absolute;
                        top: 50%;
                        display: block;
                        width: 26px;
                        height: 26px;
                        margin-top: -13px;
                        padding: 0;
                        cursor: pointer;
                        color: transparent;
                        border: none;
                        outline: none;
                        background-color: rgba(0, 0, 0, 0.3);
                        transition: all 0.35s ease;

                        &:hover {
                            background-color: var(--primary_color);
                        }

                        &:before {
                            font: normal normal normal 22px/1 FontAwesome;
                            color: @white;
                            width: 20px;
                            height: 20px;
                            font-weight: 400;
                        }
                    }

                    .slick-prev {
                        left: 0;

                        &:before {
                            content: '\f104';
                        }

                    }

                    .slick-next {
                        right: 0;

                        &:before {
                            content: '\f105';
                        }
                    }
                }

                // End zoom style
            }
        }

        &.custom-page-layout {
            padding: 0;

            .single-product-image-wrap {
                .product-flash-wrap {
                    left: 15px;
                }

                &.left {
                    .product-flash-wrap {
                        left: 25%;
                    }
                }
            }
        }

        position: relative;
        background-color: unset !important;

        @media (max-width: 480px) {
            padding-bottom: 0;
        }

        overflow: hidden;

        .single-product-image-wrap {
            .single-product-image {
                position: relative;

                .product-flash-wrap {
                    left: 30px;
                    top: 30px;
                    z-index: 2;

                    .on-new {
                        background-color: var(--primary_color);
                    }

                    .on-hot {
                        background-color: var(--primary_color);
                    }

                    .on-sold {
                        background-color: @Grey_3;
                    }

                    .on-sale {
                        background-color: #ff7d8a;
                    }

                    span.product-flash {
                        font-size: 13px;
                        font-weight: bold;
                        text-transform: uppercase;
                        line-height: 40px;
                        text-align: center;
                        color: @white;
                        width: 40px;
                        height: 40px;
                        border-radius: 50%;
                        margin-bottom: 5px;
                    }
                }

                .single-product-image-inner {
                    .owl-buttons div {
                        border-radius: 0;
                        position: absolute;
                        top: 50%;
                        opacity: 0;
                        .transform(translate(0, -50%));
                        .transition(all 0.3s ease);
                        background-color: fade(@black, 20%);

                        &:hover {
                            background-color: var(--primary_color);
                        }

                        &.owl-prev {
                            left: 0px;
                        }

                        &.owl-next {
                            right: 0px;
                        }
                    }

                    &:hover {
                        .owl-buttons div {
                            opacity: 1;
                        }
                    }
                }
            }

            .woocommerce-main-image {
                display: block;

                &:before {
                    left: 0;
                    top: 0;
                    content: "";
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    z-index: 1;
                    .transition(all 0.25s ease-in-out);
                    background-color: #f7f7f7;
                    mix-blend-mode: darken;
                }

                &:after {
                    left: 0;
                    top: 0;
                    content: "";
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    z-index: -1;
                    background-color: @white;
                    .transition(all 0.25s ease-in-out);
                }

                img {
                    .transition(all 0.25s ease-in-out);
                }
            }

            .owl-carousel .owl-wrapper-outer .owl-wrapper .owl-item {
                padding: 0;

                .attachment-shop_single {
                    width: 100%;
                }
            }

            .product-image-total-1,
            .product-thumb-disable {
                display: none;
            }

            .product-thumb-wrap {
                margin-left: -10px;
                margin-right: -10px;
            }
        }
    }

    &.modal {
        .single-product-info {
            .box-shadow(none);
            padding: 0;

            .single-product-image-wrap .single-product-image .product-flash-wrap {
                left: 50%;
                .translateX(-50%);
            }
        }
    }
}

.upsells,
.cross-sells {
    margin-top: 70px;
}

// Color select css
// Color select css
.variable-items-wrapper {
    &.color-variable-wrapper {
        display: flex;
        padding-left: 15px;
        list-style: none;
        margin-bottom: 0 !important;

        >li {
            cursor: pointer;
            position: relative;
            width: 20px !important;
            height: 20px !important;
            display: inline-flex;
            padding: 0;
            margin-right: 10px;
            -webkit-box-sizing: content-box;
            -moz-box-sizing: content-box;
            box-sizing: content-box;
            border: 1px solid fade(@black, 30%);
            cursor: pointer;
            position: relative;
            vertical-align: middle;

            &.selected {
                cursor: pointer;
                border-color: var(--primary_color);
            }
        }
    }

    &.label-variable-wrapper {
        padding-left: 15px;
        margin: 0;

        >li {
            cursor: pointer;
            position: relative;
            padding: 0px 10px;
            border: 1px solid #eee;
            margin-right: 5px;
            display: inline-block;

            &.selected {
                cursor: pointer;
                border-color: var(--primary_color);
            }
        }
    }
}

.single-product-inner {
    .woocommerce.slider {
        .owl-dots {
            display: none;
        }
    }
}