.th-product {
    transition: all ease 0.4s;
    background: $white-color;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0px 4px 50px rgba(0, 0, 0, 0.06);

    @include xl {
        padding: 25px;
    }

    .product-title {
        font-size: 20px;
        margin: 2px 0 2px 0;
        font-weight: 600;

        @include xl {
            font-size: 18px;
        }

        a {
            color: inherit;

            &:hover {
                color: $theme-color;
            }
        }
    }

    .product-category {
        color: $body-color;
        margin-bottom: 0px;
        display: block;

        &:hover {
            color: $theme-color;
        }
    }

    .product-tag {
        font-size: 14px;
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: $theme-color;
        color: $white-color;
        padding: 0 12px;
        min-width: 60px;
        border-radius: 4px;
        z-index: 3;
        line-height: 24px;
    }

    .woocommerce-product-rating {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-top: 3px;
        margin-bottom: -0.4rem;
    }

    .product-content {
        margin-bottom: -0.4rem;
    }

    .star-rating {

        margin: 0 auto 0 auto;
        width: 93px;
    }

    .price {
        display: block;
        color: $theme-color;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 0;
        font-family: $body-font;

        del {
            margin-left: 10px;
            font-weight: 400;
            color: $body-color;
        }
    }

    .product-img {
        --space: 0px;
        background-color: $smoke-color;
        overflow: hidden;
        position: relative;
        margin: 0 0 20px 0;
        border-radius: 8px;
        text-align: center;
        z-index: 2;

        &:before {
            --space: 0px;
            content: '';
            height: calc(100% - var(--space)*2);
            width: calc(100% - var(--space)*2);
            border-radius: inherit;
            position: absolute;
            top: var(--space);
            left: var(--space);
            background-color: $title-color;
            z-index: 1;
            border-radius: 8px;
            transform: scaleX(0);
            visibility: hidden;
            opacity: 0;
            transition: 0.4s ease-in-out;
        }

        img {
            width: 100%;
            transition: all ease 0.4s;
            transform: scale(1);
        }
    }

    .actions {
        height: 100%;
        position: absolute;
        left: 0;
        top: 50%;
        right: 0;
        text-align: center;
        transform: translateY(-50%);
        z-index: 3;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;

        .icon-btn {
            --btn-size: 45px;
            line-height: 42px;
            font-size: 16px;
            border-radius: 50%;
            border-color: $white-color;
            background-color: $white-color;
            color: $title-color;
            transform: translateY(30px);

            &:hover {
                color: $white-color;
                background-color: $theme-color;
                border-color: $theme-color;
            }
        }

        >* {
            margin: 0 var(--icon-gap-x, 5px);

            >a {
                margin: 0;
            }
        }
    }



    .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt,
    .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt {
        width: 45px;
        height: 45px;
        line-height: 42px;
        display: inline-block;

        &::before {
            position: relative;
            top: 0;
            left: 0;
            line-height: inherit;
            margin: 0;
            font-size: 24px;
        }
    }

    .tinv-wishlist {
        a {
            display: inline-block;
            width: 40px;
            height: 40px;
            line-height: 40px;
            background-color: $white-color;
            color: $title-color;
            border-radius: 50%;

            &:hover {
                background-color: $theme-color;
                color: $white-color;
            }
        }
    }

    .add_to_cart_button {
        &.added {
            display: none;
        }
    }

    .added_to_cart {
        display: block;
        width: 45px;
        height: 45px;
        line-height: 42px;
        background-color: $theme-color;
        color: $white-color;
        font-size: 0;
        text-align: center;
        border-radius: 99px;
        border: none;

        &:after {
            content: "\f07a";
            position: relative;
            font-family: $icon-font;
            font-size: 16px;
            font-weight: 700;
        }

        &:hover {
            background-color: $theme-color;
            color: $white-color;
        }
    }

    .action-btn {
        background-color: $white-color;
        font-size: 14px;
        font-family: $title-font;
        text-transform: uppercase;
        font-weight: bold;
        display: inline-block;
        padding: 13px 25px;
    }

    .product-actions {
        position: absolute;
        left: 50%;
        bottom: -10%;
        transform: translate(-50%, -50%);
        opacity: 0;
        visibility: hidden;
        z-index: 2;
        transition: all 0.6s ease-in-out;

        .th-btn {
            padding: 13px 15px;
            transition: all 0.4s ease-in-out;

            &:hover {

                &:before {
                    background-color: $theme-color;
                }
            }
        }


    }

    &:hover {
        .product-img {
            img {
                transform: scale(1.1);
            }

            &:before {
                transform: scaleX(1);
                visibility: visible;
                opacity: 1;
            }
        }

        .product-actions {
            visibility: visible;
            opacity: 1;
            bottom: 35%;

            .th-btn {
                background: $white-color;

                &:before {
                    background: $theme-color;
                }
            }

        }

        .actions {
            margin-top: 0;
            opacity: 1;
            visibility: visible;

            .icon-btn {
                transform: translateY(0);
            }
        }


    }

    &.list-view {
        display: flex;
        gap: 15px;
        text-align: left;
        height: 100%;
        padding: 10px;

        @include md {
            gap: 10px;
        }

        .product-img {
            --space: 0px;
            width: 100%;
            width: 50%;
            margin: 0;

            // @include md {
            //     width: 87px;
            // }

            &:before {
                --space: 0px;
            }
        }

        .product-category {
            font-size: 13px;
            line-height: 23px;
            margin-top: -3px;
        }

        .star-rating {
            margin: 5px 0 0 0;
            width: 93px;
            font-size: 12px;
        }

        .product-content {
            flex: 1;
            display: flex;
            align-items: center;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            padding: 0 4px 0 13px;
        }

        .actions {
            --icon-gap-x: 2px;
            width: 100%;
            right: 0;
            text-align: center;
            justify-content: center;

            .icon-btn {
                --btn-size: 45px;
                --btn-font-size: 14px;
                background-color: $white-color;
                color: $title-color;
                border: none;

                &:hover {
                    background-color: $theme-color;
                    color: $white-color;
                }
            }
        }

        .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt,
        .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt {
            width: 35px;
            height: 35px;
            line-height: 35px;

            &::before {
                font-size: 20px;
            }
        }

        .tinv-wishlist {
            a {
                width: 35px;
                height: 35px;
                line-height: 35px;
            }
        }

        .added_to_cart {
            width: 35px;
            height: 35px;
            line-height: 35px;

            &:after {
                font-size: 16px;
            }
        }

        .tag {
            top: 8px;
            right: 8px;
            padding: 0px 15px;
        }
    }
}

.product-list-area {
    margin-bottom: -24px;
}

.swiper-slide {
    &.style2 {
        .th-product {
            box-shadow: 0px 2px 14px rgba(0, 0, 0, 0.06);
        }
    }
}

#productCarousel {
    .slick-arrow {
        top: 37.5%;
    }
}

// Product Lightbox
.mfp-content {
    margin: 1.5rem auto;

    .product-details-img {
        padding-top: 15px;
    }

    .product-about {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .container {
        position: relative;
    }

    .product-big-img {
        margin-top: 12px;
        margin-bottom: 12px;
    }
}

.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.15s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.4s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}

.woosq-popup {
    border-radius: 10px;

    .product_meta {
        >span {

            >a,
            >span {
                &:after {
                    display: none;
                }
            }
        }
    }
}

.woosq-product {
    >.product .summary {
        display: grid;
        align-content: center;
    }

    .thumbnails {
        .slick-list {
            display: block;
        }

        .slick-dots li button {
            width: 12px;
            height: 12px;
            border-radius: 50px;
            transform: scale(1);
            background-color: $theme-color;
            opacity: 0.4;

            &:before {
                display: none;
            }
        }

        .slick-dots li.slick-active {
            button {
                opacity: 1;
            }
        }
    }

    .tinv-wraper {
        display: none;
    }
}

.th-sort-bar {
    padding: 0;
    margin: 0 0 35px 0;
    background-color: transparent;
    border-radius: 0px;

    .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 15px;
    }

    select {
        height: 50px;
        border: 0;
        background-color: transparent;
        width: fit-content;
        max-width: 154px;
        font-size: 16px;
        padding: 0 8px;
        margin: 0;
        color: $title-color;
        background-position: right 0px center;
    }

    .woocommerce-result-count {
        padding-left: 0;
        margin-bottom: 0;
        color: $theme-color;
    }

    .sorting-filter-wrap {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .nav {
        border: 1px solid #E9F6F9;
        border-radius: 4px;
        padding: 4px;

        a {
            display: inline-block;
            height: 32px;
            width: 32px;
            line-height: 32px;
            border: 0;
            background-color: transparent;
            text-align: center;
            position: relative;
            font-family: $title-font;
            font-weight: 600;
            font-size: 16px;
            text-transform: capitalize;
            color: $body-color;
            border-radius: 5px;

            &.active {
                color: $white-color;
                background: $theme-color;
            }
        }
    }
}

.product-thumb-area {
    position: relative;
    margin-right: 10px;

    .product-thumb-tab {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.product-thumb-tab {
    --thumb: 120px;
    --gap: 10px;
    max-width: var(--thumb);
    margin-left: calc(0px - var(--thumb)/2);
    position: relative;
    z-index: 3;
    display: grid;
    align-content: center;
    height: 100%;

    .tab-btn {
        background-color: $white-color;
        cursor: pointer;
        height: var(--thumb);
        width: var(--thumb);
        padding: var(--gap);

        img {
            max-width: 100%;
        }

        &:not(:last-of-type) {
            margin-bottom: 20px;
        }
    }

    .indicator {
        position: absolute;
        top: calc(var(--pos-y) + var(--gap));
        left: calc(var(--pos-x) + var(--gap));
        width: calc(var(--width-set) - var(--gap)*2);
        height: calc(var(--height-set) - var(--gap)*2);
        border: 2px solid $theme-color;
        pointer-events: none;
        transition: 0.4s ease-in-out;
    }
}

.product-big-img {
    background-color: $smoke-color;
    text-align: center;
    overflow: hidden;
    border-radius: 16px;

    .img {
        width: 100%;
        border-radius: 16px;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 16px;
            transition: 0.4s ease-in-out;
        }
    }

    .slider-pagination {
        position: absolute;
        bottom: 40px;
        left: 0;
    }

    .slick-dots {
        margin: -11px 0 0 0 !important;
        transform: translateY(-30px);
        --border-color: #c0c0c0;
    }
}

.img-magnifier-container {
    position: relative;
}

.img-magnifier-glass {
    position: absolute;
    box-shadow: inset 0 10px 18px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: none;
    width: 200px;
    height: 200px;
}

.magnify {
    position: relative;
    cursor: none;

    .magnifier {
        height: 180px;
        width: 180px;
        position: absolute;
        z-index: 20;
        box-shadow: inset 0 10px 18px rgba(0, 0, 0, 0.2);
        border-radius: 50%;
        background-size: 700%;
        background-repeat: no-repeat;
        margin-left: -90px !important;
        margin-top: -90px !important;
        pointer-events: none;
        display: none;
    }

    .magnified {
        display: block;
        z-index: 10;
        margin: auto;
        width: 100%;
        height: 100%;
    }

    img {
        width: 100%;
        height: 100%;
    }
}

.quantity {
    position: relative;
    display: inline-flex;
    vertical-align: middle;

    >.screen-reader-text {
        display: inline-block;
        font-weight: 600;
        color: $title-color;
        font-family: $title-font;
        margin: 0;
        align-self: center;
        margin-right: 10px;
    }

    .qty-btn,
    .qty-input {
        display: inline-block;
        width: 50px;
        height: 50px;
        border: none;
        border-right: none;
        background-color: transparent;
        padding: 0;
        border-radius: 0;
        text-align: center;
        color: $body-color;
        font-size: 18px;
        font-weight: 600;

        &:last-child {
            border-right: none;
        }
    }

    .qty-btn {
        font-size: 16px;
    }
}

.product_meta {
    font-weight: 700;
    font-size: 16px;
    font-family: $body-font;
    margin: 35px 0 0 0;

    >span {
        display: block;
        margin-bottom: 5px;
        color: $title-color;
        font-weight: bold;

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

        a {
            color: inherit;

            &:hover {
                color: $theme-color;
            }
        }

        >a,
        >span {
            position: relative;
            color: $body-color;
            font-weight: 400;

            &:after {
                content: ",";
                margin-right: 5px;
            }

            &:last-child {
                &:after {
                    display: none;
                }
            }

            &:first-child {
                margin-left: 7px;
            }
        }
    }
}

.product-tab-style1 {
    border-bottom: 1px solid #e4e4e4;
    margin: 95px 0 40px 0;

    li {
        margin: 0 45px 0 0;

        &:last-child {
            margin-right: 0;
        }
    }

    a {
        font-family: $title-font;
        background-color: transparent;
        border-radius: 0;
        color: $title-color;
        font-size: 20px;
        font-weight: 600;
        display: inline-block;
        position: relative;
        line-height: 1;
        padding: 0 0 17px 0;
        text-transform: capitalize;

        &:before {
            content: "";
            position: absolute;
            left: 0;
            top: unset;
            bottom: -1px;
            height: 2px;
            width: 0;
            background-color: $theme-color;
            transition: all ease 0.4s;
        }

        &:hover,
        &.active {
            color: $title-color;

            &:before {
                width: 100%;
            }
        }
    }
}


.product-tab-style2 {
    border-bottom: 1px solid #e4e4e4;
    margin: 95px 0 40px 0;

    li {
        margin: 0 45px 0 0;

        &:last-child {
            margin-right: 0;
        }
    }

    a {
        font-family: $title-font;
        color: $title-color;
        font-size: 20px;
        font-weight: 600;
        display: inline-block;
        position: relative;
        line-height: 1;
        padding: 0 0 17px 0;
        text-transform: capitalize;

        &:before {
            content: "";
            position: absolute;
            left: 0;
            bottom: -1px;
            height: 1px;
            width: 0;
            background-color: $theme-color;
            transition: all ease 0.4s;
        }

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


#productTabContent {
    margin-bottom: -10px;
}

#additional_information {
    margin-bottom: 40px;
}

.product-inner-list {
    >ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

    li {
        position: relative;
        padding-left: 15px;

        &:before {
            content: "-";
            position: absolute;
            left: 0;
        }
    }
}

.share-title {
    font-size: 16px;
    font-weight: 600;
    color: $title-color;
    margin-bottom: 8px;

    i {
        color: $theme-color;
    }
}

.summary-content,
.product-about {
    .product-title {
        margin: 0 0 5px 0;
    }

    .product_title {
        margin-bottom: 20px !important;
    }

    >.price {
        font-family: $body-font;
        font-size: 20px;
        font-weight: 800;
        color: $theme-color;
        display: block;
        max-width: fit-content;
        margin-bottom: 5px;
        margin-top: -0.2em;

        del {
            color: $gray-color;
            font-weight: 500;
            margin-left: 15px;
        }
    }

    .woocommerce-product-rating,
    .product-rating {
        display: inline-flex;
        gap: 5px;
        align-items: center;
        position: relative;
        top: 2px;
        font-size: 16px;
        line-height: 20px;
        padding: 0 0 0 0;
        margin: 0 0 0 0;
        margin-bottom: 15px;

        .star-rating {
            width: 80px;
            font-size: 12px;
            margin-right: 8px;
        }
    }

    .woocommerce-review-link {
        color: $body-color;
    }

    .checklist {
        margin: 29px 0 29px 0;
    }

    .actions {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin: 35px 0 25px 0;

        .th-btn {
            padding: 17px 44.5px;

            .btn-icon {
                padding: 10.5px 15px 10.5px 15px;
            }
        }

        .icon-btn {
            --btn-size: 60px;
            border-color: $theme-color;
            background-color: $theme-color;
            color: $white-color;
            border-radius: 99px;

            &:hover {
                background-color: $title-color;
                border-color: $title-color;
            }
        }
    }

    .share {
        margin-top: 25px;
    }

    .th-social a {
        --icon-size: 40px;
        line-height: 38px;
        font-size: 14px;
        border: 1px solid $border-color;
        border-radius: 0;

        &:hover {
            border-color: $theme-color;
        }
    }

    .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart-plus.no-txt,
    .tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart.no-txt {
        width: 60px;
        height: 60px;
        line-height: 60px;
        display: inline-block;
        border-radius: 99px;
        background-color: $theme-color;
        color: $white-color;
        border: none;

        &::before {
            position: relative;
            top: 0;
            left: 0;
            line-height: inherit;
            margin: 0;
            font-size: 24px;
        }

        &:hover {
            background-color: $title-color;
        }
    }

    .tinv-wishlist {
        a {
            display: inline-block;
            width: 56px;
            height: 56px;
            line-height: 56px;
            border-radius: 0;

            &:hover {
                background-color: $theme-color;
                color: $white-color;
            }
        }
    } 

    .quantity {
        position: relative;

        &:after {
            content: '';
            height: 100%;
            width: 1px;
            background-color: $title-color;
            position: absolute;
            top: 0;
            left: 55px;
        }

        .qty-input {
            width: 101px;
            height: 60px;
            background-color: $title-color;
            color: $white-color;
            padding: 0 21px;
            text-align: left;
            font-size: 18px;
            font-weight: 500;
            border-radius: 48px;
        }

        .qty-btn {
            color: $white-color;
            background-color: transparent;
            position: absolute;
            right: 21px;
            height: auto;
            width: auto;
            border: none;
            font-size: 14px;
            line-height: 16px;
        }

        .quantity-minus {
            bottom: 12px;
            color: rgba(255, 255, 255, 0.20);
        }

        .quantity-plus {
            top: 12px;
        }
    }
}


.woocommerce-Reviews {
    .th-post-comment {
        border-radius: 20px;

        .text {
            margin-bottom: -0.5em;
        }
    }

    .th-comments-wrap {
        padding: 0;
        margin-right: 0 !important;
        box-shadow: none;
        background-color: transparent;
    }

    .th-comment-form {
        box-shadow: none;
        margin-right: 0 !important;
        margin-top: 28px;
        margin-bottom: 10px;  

        input,
        .form-control {
            background-color: $white-color;
        }

        .blog-inner-title {
            margin-bottom: 10px;
        }
    }

    .comment-list {
        display: flex;
        gap: 0 24px;
        margin: -12px !important;
        margin-bottom: 28px !important;

        li {
            width: 50%;

            @include md {
                width: 100%;
            }
        }
    }

    .th-post-comment {
        border: 1px solid $border-color !important;
        padding: 40px !important;
        box-shadow: 0px 4px 30px rgba(1, 15, 28, 0.06);
        margin: 12px;
        border-radius: 10px;

        .name {
            margin-bottom: 3px;
        }

        .commented-on {
            margin-bottom: 12px;
        }
    }
}



@include md {
    .woocommerce-Reviews {
        .comment-list {
            grid-template-columns: repeat(1, 1fr);
        }
    }
}



#description {
    margin-bottom: 30px;
}

.product-details {
    .th-comments-wrap {
        margin-top: 0;
    }

    .border-title {
        position: relative;
        padding-bottom: 20px;
        margin-bottom: 40px;

        &:before {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            height: 2px;
            width: 80px;
            background-color: $theme-color;
        }
    }
}

.product-inner-title {
    font-size: 32px;
    border-bottom: 1px solid $border-color;
    padding: 0 0 7px 0;
    margin: 0 0 30px 0;
}

.related-product-wrapper {
    padding-top: 115px;
}

// @include ml {
//     .th-product.list-view .product-img {
//         max-width: 150px;
//     }
// }

@include xl {
    .product-thumb-tab {
        --thumb: 100px;
        margin-left: -40px;
    }

    .product-thumb-area {
        margin-right: 0;
    }
}

@include lg {
    .th-sort-bar {
        select {
            min-width: auto;
        }
    }

    .product-tab-style1 {
        margin: 55px 0 40px 0;
    }

    .summary-content,
    .product-about {
        padding-left: 0;
    }
}

@include md {
    .product-big-img {
        margin-bottom: 40px;
    }

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

    .th-product-box {
        &.list-view {
            .product-img {
                max-width: 150px;
            }
        }
    }

    .th-sort-bar {
        .row {
            --bs-gutter-x: 20px;
        }

        .nav {
            a {
                &:last-child {
                    margin-right: 0;
                    padding-right: 0;

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

    .woosq-product>.product .thumbnails {
        max-height: 400px;
        min-height: 200px;
        padding: 10px;
    }
}

@include sm {
    .th-sort-bar {
        text-align: center;
        padding: 10px 15px 15px 15px;

        .nav {
            justify-content: center;
        }

        select {
            margin: 0 auto;
        }

        .woocommerce-result-count {
            padding-left: 0;
        }
    }

    .th-product-box {
        &.list-view {
            .product-img {
                max-width: 130px;
            }

            .actions {
                --btn-size: 30px;
                --btn-font-size: 10px;
                --icon-gap-x: 2px;
            }
        }
    }

}

@include xs {
    .product-about .actions {
        gap: 15px 15px;
    }

    .product-thumb-tab {
        --thumb: 74px;
        --gap: 6px;

        .tab-btn {
            &:not(:last-of-type) {
                margin-bottom: 10px;
            }
        }
    }
}

@include vxs {
    .th-product.list-view {
        .product-img {
            max-width: 130px;
        }

        .product-content {
            padding: 0 15px;
        }
    }
}

.productSlide {
    position: relative;

    .product-tag {
        font-size: 14px;
        position: absolute;
        top: 30px;
        left: 30px;
        background-color: $theme-color;
        text-transform: uppercase;
        color: $white-color;
        padding: 0 12px;
        border-radius: 8px;
        min-width: 60px;
        z-index: 3;
        line-height: 24px;
    }

}

.product-thumb {
    display: flex;
    gap: 10px;
    cursor: pointer;

    .tab-btn {
        border: 1px solid $title-color;
        width: 60px;
        height: 60px;

        @include vxs {
            width: 40px;
            height: 40px;
        }

        &.active {
            border: 1px solid $theme-color;
        }
    }

    &-wrap {
        position: absolute;
        left: 30px;
        bottom: 30px;
        z-index: 2;

        @include lg {
            left: 10px;
            bottom: 10px;
        }

        @include md {
            left: 20px;
            bottom: 20px;
        }

    }
}