@use '../utils' as *;

/*=============================
    Product
===============================*/
.product__item {
    .product__reviews {
        margin-top: 35px;
    }
    .product__thumb {
        background: var(--tg-color-black-2);
        position: relative;
        text-align: center;
        img {
            transition: 0.4s;
        }
    }
    .product__action {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        right: 18px;
        top: 18px;
        a {
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--tg-color-black-2);
            border: 1px solid var(--tg-theme-primary);
            line-height: 0;
            border-radius: 0;
            font-size: 12px;
            transform: translateX(20px);
            transition: visibility 0.3s ease-out 0.1s, opacity 0.3s ease-out 0.15s, transform 0.3s ease-out 0.1s;
            transition-delay: 0.1s;
            opacity: 0;
            color: var(--tg-theme-primary);
            &:nth-child(2) {
                transition-delay: 0.15s;
            }
            &:nth-child(3) {
                transition-delay: 0.2s;
            }
        }
    }
    .title {
        font-size: 20px;
        font-weight: 400;
        color: var(--tg-color-white-default);
        text-transform: uppercase;
        margin-top: 17px;
    }
    .price {
        font-size: 14px;
        font-weight: 600;
        font-family: var(--tg-body-font-family);
        color: var(--tg-theme-primary);
        margin-bottom: 0;
        margin-top: 15px;
    }
    &:hover {
        .product__thumb {
            img {
                transform: scale(1.05);
            }
        }
        .product__action a {
            opacity: 0.6;
            transform: translateX(0);
            &:hover {
                opacity: 1;
            }
        }
    }
}
.product__reviews {
    color: #FFB526;
}

/*widget price************/
.price_slider_wrapper {
    position: relative;
    .price_label {
        font-size: 14px;
        text-transform: uppercase;
        color: var(--tg-color-white-default);
        span {
            display: inline-block;
            color: var(--tg-theme-primary);
            font-size: 14px;
            font-weight: 700;
        }
    }

    .ui-slider {
        height: 4px;
        position: relative;
        width: 100%;
        background-color: rgba($color: #ffffff, $alpha: 0.1);
        border: none;
        margin-top: 15px;
        margin-bottom: 25px;
        cursor: pointer;
        border-radius: 0;
    }

    .ui-slider-range {
        border: none;
        cursor: pointer;
        position: absolute;
        top: 0;
        height: 100%;
        z-index: 1;
        display: block;
        background-color: var(--tg-theme-primary);
    }

    .ui-slider-handle {
        width: 16px;
        height: 16px;
        line-height: 16px;
        border-radius: 0;
        text-align: center;
        padding: 0;
        cursor: pointer;
        position: absolute;
        margin-top: -5px;
        z-index: 2;
        background-color: var(--tg-theme-primary);
        border: 3px solid var(--tg-theme-primary);
        transform: translateX(-1px);

        &:focus {
            outline: none;
            box-shadow: 1.5px 2.598px 10px 0px rgba(0, 0, 0, 0.15);
        }
        &:last-child {
            transform: translateX(-9px);
        }
    }
    button,
    .button {
        background-color: transparent;
        color: var(--tg-color-white-default);
        font-weight: 700;
        line-height: 1.6;
        text-transform: uppercase;
        text-align: center;
        border: none;
        display: inline-block;
        overflow: hidden;
        position: absolute;
        bottom: 0;
        right: 0;
        z-index: 2;
        padding: 0;
        font-size: 14px;
        text-decoration: underline;
        text-underline-offset: 5px;
        border-radius: 0;
        transition: 0.4s ease-in;
        &:hover {
            color: var(--tg-theme-primary);
        }
    }
}

/*shop details page*********************/
.product__details-images-wrap {
    .tab-content {
        img {
            border-radius: 0px;
            border: 0;
            height: 590px;
            width: 100%;
            object-fit: cover;
            background: var(--tg-color-black-3);
            @media #{$xs} {
                height: 400px;
            }
        }
    }
    .nav-tabs {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-wrap: nowrap;
        border: none;
        margin-top: 20px;
        .nav-link {
            margin-bottom: 0;
            background: transparent;
            border: 1px solid var(--tg-color-black-3);
            border-radius: 0px;
            padding: 0 0;
            overflow: hidden;
            img {
                width: 100%;
                height: 130px;
                border-radius: 0px;
                object-fit: cover;
                background: var(--tg-color-black-3);
                @media #{$xs} {
                    height: 90px;
                }
            }
            &.active {
                border-color: var(--tg-theme-primary);
                opacity: 1;
            }
        }
    }
}
.product__details-content {
    > .title {
        font-size: 50px;
        font-weight: 400;
        margin-bottom: 8px;
        margin-top: 20px;
        text-transform: uppercase;
        color: var(--tg-color-white-default);
        line-height: 1.1;
        @media #{$lg} {
            font-size: 40px;
        }
        @media #{$xs} {
            font-size: 30px;
        }
    }
    .price {
        margin-bottom: 50px;
        margin-top: 16px;
        font-size: 30px;
        font-weight: 400;
        color: var(--tg-theme-primary);
        @media #{$xs} {
            font-size: 24px;
        }
    }
    > p {
        margin-bottom: 25px;
        color: rgba($color: #ffffff, $alpha: 0.7);
    }
}
.product__details-bottom {
    li {
        display: flex;
        align-items: center;
        gap: 10px 5px;
        line-height: 1;
        margin-bottom: 20px;
        flex-wrap: wrap;
        .title {
            color: rgba($color: #ffffff, $alpha: 0.5);
            line-height: 1;
        }
        a {
            color: var(--tg-color-white-default);
            &:hover {
                color: var(--tg-theme-primary);
            }
        }
    }
}
.product__details-qty {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    .product__details-qty-label {
        color: var(--tg-color-white-default);
        font-family: var(--tg-heading-font-family);
        text-transform: uppercase;
        font-size: 16px;
        font-weight: 400;
        margin-right: 15px;
    }
    .add-btn {
        background: var(--tg-theme-primary);
        height: 50px;
        color: var(--tg-heading-color);
        text-transform: uppercase;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        padding: 0 25px;
        gap: 10px;
        flex: none;
        &:hover {
            background: var(--tg-color-white-default);
        }
    }
    .icon-btn {
        height: 50px;
        width: 50px;
        line-height: 50px;
        border-radius: 0;
        background: var(--tg-color-black-3);
        color: var(--tg-color-white-default);
        font-size: 18px;
        &:hover {
            background: var(--tg-theme-primary);
            color: var(--tg-heading-color);
        }
    }
}
.cart-plus-minus {
    position: relative;
    width: 149px;
    flex: 0 0 auto;
    input {
        width: 100%;
        border: 0;
        border-radius: 0;
        height: 50px;
        text-align: center;
        padding: 0 45px;
        font-weight: 500;
        font-size: 16px;
        background: var(--tg-color-black-3);
        color: var(--tg-color-white-default);
    }
    .qtybutton {
        position: absolute;
        top: 6px;
        left: 20px;
        bottom: 6px;
        width: auto;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 600;
        color: rgba($color: #ffffff, $alpha: 0.7);
        background: transparent;
        cursor: pointer;
        user-select: none;
        border-radius: 50%;
        &.inc {
            left: auto;
            right: 20px;
        }
    }
}

.product-desc-wrap {
    margin-top: 120px;
    .nav-tabs {
        border: none;
        gap: 40px;
        margin-bottom: 50px;
        justify-content: center;
        border-bottom: 1px solid rgba($color: #ffffff, $alpha: 0.16);
        padding-bottom: 20px;
        .nav-link {
            margin-bottom: 0;
            border: none;
            padding: 0;
            line-height: 1;
            font-weight: 400;
            font-size: 16px;
            font-family: var(--tg-heading-font-family);
            color: var(--tg-color-white-default);
            text-transform: uppercase;
            position: relative;
            background: transparent;
            border-radius: 0px;
            &.active {
                color: var(--tg-theme-primary);
            }
        }
    }
    .tab-content {
        .title {
            text-transform: uppercase;
            color: var(--tg-color-white-default);
            font-size: 50px;
            font-weight: 400;
            @media #{$lg} {
                font-size: 40px;
            }
            @media #{$xs} {
                font-size: 30px;
            }
        }
        p {
            margin-bottom: 0;
            font-weight: 500;
            text-transform: capitalize;
            margin-bottom: 15px;
            color: var(--tg-color-white-default);
            opacity: 0.7;
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}
.product-desc-review {
    .left-rc {
        margin-bottom: 10px;
    }
}