@import "../shared/variables";
.title {
    .right {
        .icon {
            width: 3px;
            height: 30px;
            background: $primaryColor;
        }
    }
}
.breadcrumb {
    li {
        font-size: 14px;
    }
    a {
        color: #000;
    }
}
.mz-expand > [id] {
    display: none !important;
    opacity: 0 !important;
    position: absolute !important;
    top: -1000px !important;
}
.mz-expand-bg > [id] {
    display: none !important;
    opacity: 0 !important;
    position: absolute !important;
    top: -1000px !important;
}
.product-page {
    .var-select {
        select {
            box-shadow: none !important;
            border-radius: 0.5rem;
            border-color: #ddd !important;
            color: #000;
        }
    }
    .colors {
        gap: 8px;
        .color-tab {
            padding: 6px;
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 50%;
            box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
            position: relative;
            &.active {
                box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.3);
                border: 3px solid #fff !important;
                border-color: #fff !important;
            }
            &.non-existent {
                cursor: inherit !important;
                position: relative;
                overflow: hidden;
                &::after {
                    position: absolute;
                    inset: 0;
                    width: 100%;
                    height: 100%;
                    content: "\f659";
                    font-family: bootstrap-icons;
                    mix-blend-mode: difference;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-size: 20px;
                    color: red;
                }
            }
        }
    }
    .tags {
        .tag-item {
            background: color-mix(in srgb, var(--color-two) 30%, transparent);
            box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 3px 8px;
            border: 1px solid
                color-mix(in srgb, var(--color-two) 30%, transparent);
            color: var(--color-dark);
            transition: 0.5s;
            white-space: nowrap;
            font-size: 12px;
            &:hover {
                background-color: transparent;
                border: 1px solid rgba(0, 0, 0, 0.2);
            }
        }
    }
    .product-info {
        .price {
            border-radius: 20px;
            overflow: hidden;
            background: #fff;
            padding: 0.5rem;
            position: relative;
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
            .off {
                background: $primaryColor;
                color: $textPrimary;
                border-radius: 8px;
                padding: 1px 8px;
                font-size: 13px;
            }
            .old-price {
                p {
                    color: #555;
                    opacity: 0.4;
                    width: max-content;
                    position: relative;
                    font-weight: bold;
                    margin: auto !important;
                    font-size: 20px;
                    &::before {
                        content: "";
                        position: absolute;
                        top: 0;
                        bottom: 0;
                        left: 0;
                        right: 0;
                        margin: auto;
                        width: 100%;
                        height: 2px;
                        background: #555;
                    }
                }
            }
            .number {
                .value-button {
                    display: inline-block;
                    margin: 0px;
                    width: 30%;
                    height: 40px;
                    text-align: center;
                    vertical-align: middle;
                    padding: 11px 0;
                    background: $primaryColor;
                    -webkit-touch-callout: none;
                    -webkit-user-select: none;
                    -khtml-user-select: none;
                    -moz-user-select: none;
                    -ms-user-select: none;
                    user-select: none;
                }

                .value-button:hover {
                    cursor: pointer;
                }

                #decrease {
                    margin-right: -4px;
                    border-radius: 0px 8px 8px 0px;
                    color: $textPrimary;
                }

                #increase {
                    margin-left: -4px;
                    border-radius: 8px 0px 0px 8px;
                    color: $textPrimary;
                }

                #input-wrap {
                    margin: 0px;
                    padding: 0px;
                }

                input#number {
                    text-align: center;
                    border: none;
                    border-top: 1px solid #ddd;
                    border-bottom: 1px solid #ddd;
                    margin: 0px;
                    width: 40%;
                    height: 40px;
                    &:focus {
                        outline: 0;
                    }
                }

                input[type="number"]::-webkit-inner-spin-button,
                input[type="number"]::-webkit-outer-spin-button {
                    -webkit-appearance: none;
                    margin: 0;
                }
            }
            .add-to-cart {
                button {
                    width: 100%;
                    justify-content: center;
                    padding: 0.5rem 0.25rem !important;
                }
                button:hover {
                    background: #fff;
                    border-color: $primaryColor;
                }
            }
            li {
                margin-bottom: 0.75rem;
                &:last-child {
                    margin-bottom: 0;
                }
            }
        }
        .breadcrumb-item + .breadcrumb-item::before {
            color: var(--color-dark);
        }
        .breadcrumb-item {
            font-size: 14px;
        }
    }
    .product-image {
        .mz-figure {
            width: 100%;
            height: auto;
        }
        .mz-figure > img {
            max-width: 100% !important;
            max-height: unset !important;
        }
        .image-large {
            border-radius: 20px;
            overflow: hidden;
            border: 5px solid #fff;
            box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
        }
        .selector {
            .swiper {
                .swiper-slide {
                    background: transparent;
                }
                .swiper-button-next {
                    background: linear-gradient(
                        90deg,
                        var(--color-body) 40%,
                        transparent
                    );
                    height: 100%;
                    top: 20px;
                    left: 0;
                    width: 2rem;
                    opacity: 1;
                    justify-content: flex-end;
                    &::after {
                        font-size: 18px;
                        color: var(--color-dark);
                    }
                }
                .swiper-button-prev {
                    background: linear-gradient(
                        270deg,
                        var(--color-body) 40%,
                        transparent
                    );
                    height: 100%;
                    top: 20px;
                    right: 0;
                    width: 2rem;
                    opacity: 1;
                    justify-content: flex-start;
                    &::after {
                        font-size: 18px;
                        color: var(--color-dark);
                    }
                }
            }
            .selector-item {
                border-radius: 16px;
                overflow: hidden;
                border: 2px solid #fff !important;
                box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
                &.mz-thumb {
                    position: relative;
                    transition: 0.5s;
                    &::before {
                        content: "";
                        position: absolute;
                        inset: 0;
                        background: rgba(0, 0, 0, 0.2);
                    }
                    img {
                        border: 0;
                    }
                    &-selected {
                        &::before {
                            content: unset !important;
                        }
                        img {
                            border: 0;
                        }
                    }
                }
            }
        }
    }
    .mz-expand-thumbnails {
        display: none !important;
    }
    .app-figure figure > div a,
    .app-figure span,
    .mz-expand a,
    .preview figure .mz-expand a {
        display: none;
        opacity: 0;
    }
    #Zoom-1 span a {
        display: none !important;
        visibility: hidden !important;
        overflow: hidden !important;
        opacity: 0 !important;
    }
    #Zoom-1 figure div a,
    #Zoom-1 figure div:nth-child(1) {
        display: none;
        color: transparent;
        opacity: 0;
    }
    .name {
        h1 {
            font-size: 24px;
        }
    }
    .comments {
        .rate {
            i {
                color: #ffa423;
            }
        }
    }
    .rate {
        .badge {
            background: $primaryColor;
            color: $textPrimary;
        }
        .star-ratings-sprit {
            background: url("../../images/star-golden.png") repeat-x;
            margin-bottom: 5px;
            height: 21px;
            overflow: hidden;
            width: 110px;
            margin: 0;
            font-size: 0;
            line-height: 0;
            text-indent: -999em;
            .star-ratings-sprit-rating {
                background: url("../../images/star-golden.png") repeat-x;
                background-position-x: 0%;
                background-position-y: 0%;
                background-position: 0 100%;
                float: left;
                height: 21px;
                display: block;
            }
        }
    }
    .info-product {
        .attributes {
            .show-more-button {
                transition: unset !important;
                margin: auto;
                width: max-content;
                color: var(--color-dark);
            }
            input {
                opacity: 0;
                position: absolute;
                pointer-events: none;
            }
            .p {
                display: block;
                -webkit-box-orient: vertical;
                overflow: hidden;
                white-space: inherit;
                word-wrap: break-word;
                transition: max-height 0.5s ease;
                color: #444;
                overflow: hidden;
                text-overflow: ellipsis;
                display: block;
                max-height: 10rem;
                -webkit-box-orient: vertical;
                line-height: 1.75rem;
                font-size: 0.9rem;
                position: relative;
            }
            .show-less {
                display: none !important;
            }
            input:checked + .p {
                -webkit-line-clamp: unset;
                max-height: max-content !important;
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                height: auto;
                -webkit-box-orient: vertical;
            }
            input:checked ~ .show-more-button {
                .show-more {
                    display: none !important;
                }
                .show-less {
                    display: flex !important;
                }
            }
        }
        li {
            margin-bottom: 0.25rem;
            font-size: 14px;
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
    .specification {
        .specification-item {
            background: color-mix(in srgb, var(--color-two) 30%, transparent);
            backdrop-filter: blur(10px);
            padding: 0.5rem;
            border-radius: 8px;
        }
    }

    .mobile-btn-cart {
        position: fixed;
        bottom: 15px;
        left: 20px;
        right: 20px;
        background: #fff;
        z-index: 13;
        border-radius: 12px 12px 20px 20px;
        box-shadow: 0px -5px 13px 0 rgba(0, 0, 0, 0.15);
        overflow: hidden;
        padding-bottom: 3.5rem;
        .off {
            background-color: $primaryColor;
            color: $textPrimary;
            padding: 1px 6px;
            font-size: 13px;
            border-radius: 6px;
        }
        .old-price {
            p {
                color: #555;
                opacity: 0.4;
                width: max-content;
                position: relative;
                font-weight: bold;
                font-size: 14px;
                &::before {
                    content: "";
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    margin: auto;
                    width: 100%;
                    height: 2px;
                    background: #555;
                }
            }
        }
        .number {
            width: 105px;
            .value-button {
                display: inline-block;
                margin: 0px;
                width: 35px;
                height: 35px;
                text-align: center;
                vertical-align: middle;
                padding: 11px 0;
                background: $primaryColor;
                -webkit-touch-callout: none;
                -webkit-user-select: none;
                -khtml-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
            }

            .value-button:hover {
                cursor: pointer;
            }

            #decrease {
                margin-right: -4px;
                border-radius: 0px 8px 8px 0px;
                color: $textPrimary;
            }

            #increase {
                margin-left: -4px;
                border-radius: 8px 0px 0px 8px;
                color: $textPrimary;
            }

            #input-wrap {
                margin: 0px;
                padding: 0px;
            }

            input#number {
                text-align: center;
                border: none;
                border-top: 1px solid #ddd;
                border-bottom: 1px solid #ddd;
                margin: 0px;
                width: 40px;
                height: 35px;
                &:focus {
                    outline: 0;
                }
            }

            input[type="number"]::-webkit-inner-spin-button,
            input[type="number"]::-webkit-outer-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }
        }
        .add-to-cart {
            button {
                font-size: 14px;
                border-radius: 16px !important;
                padding: 12px 8px !important;
            }
            button:hover {
                background: #fff;
                border-color: $primaryColor;
            }
        }
    }
    .tabs {
        .description {
            .iframe-parent {
                margin: 2rem auto;
                height: auto !important;
                iframe {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                }
            }
        }
        .description.content {
            line-height: 1.75;
            font-size: 14px;
            color: #333;
            img {
                margin-top: 8px !important;
                margin-bottom: 8px !important;
                margin: auto;
                display: block;
            }
            .table-striped > tbody > tr:nth-of-type(odd) > * {
                --bs-table-bg-type: var(--bg-table);
            }
            table {
                width: 100% !important;
                text-align: center;
                * {
                    align-content: center;
                }
                p {
                    margin-bottom: 0 !important;
                }
            }
            p {
                margin-bottom: 8px;
            }
            li {
                list-style: inherit;
            }
        }
        .product-tabs-menu {
            overflow: auto;
            overflow-y: hidden;
            flex-wrap: nowrap;
            padding-bottom: 0.5rem;
            z-index: 10;
        }
        .nav-item {
            margin-left: 16px;
            &:last-child {
                margin-left: 0;
            }
            .nav-link {
                border-radius: 12px;
                border: 1px solid rgba(37, 37, 37, 0.2);
                background: transparent;
                color: #000;
                padding: 10px 30px;
                font-size: 14px;
                white-space: nowrap;
                &.active {
                    background: $primaryColor;
                    border-color: $primaryColor;
                    color: $textPrimary;
                }
            }
        }
        .rate {
            display: flex;
            align-items: center;
            flex-direction: row-reverse;
            justify-content: flex-end;
            gap: 14px;
            padding: 2px 14px;
            background-color: $primaryColor;
            filter: contrast(0.9);
            border-radius: 16px;
        }
        .rate:not(:checked) > input {
            opacity: 0;
            position: absolute;
        }
        .rate:not(:checked) > label {
            white-space: nowrap;
            cursor: pointer;
            font-size: 20px;
            color: #fff;
        }
        .rate:not(:checked) > label:before {
            content: "\F586";
            font-family: bootstrap-icons;
        }
        .rate > input:checked ~ label {
            color: #fecb02;
        }
        .rate:not(:checked) > label:hover,
        .rate:not(:checked) > label:hover ~ label {
            color: #fecb02;
        }
        .rate > input:checked + label:hover,
        .rate > input:checked + label:hover ~ label,
        .rate > input:checked ~ label:hover,
        .rate > input:checked ~ label:hover ~ label,
        .rate > label:hover ~ input:checked ~ label {
            color: #fecb02;
        }

        .video-tab-item {
            &::after {
                content: "";
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.3);
                z-index: 1;
                border-radius: 30px;
            }
            img {
                border-radius: 30px;
            }
            button {
                position: absolute;
                z-index: 2;
                inset: 0;
                margin: auto;
                width: 60px;
                height: 60px;
                background: $primaryColor;
                font-size: 25px;
                border-radius: 50%;
                box-shadow: 0 0 13px 0 rgba(0, 0, 0, 0.2) !important;
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }
        .comment-form {
            background-color: $prmaryLightColor;
            border-radius: 16px;
            padding: 16px;
            label {
                color: $textSecondary;
            }
            input,
            textarea {
                background-color: $prmaryLightColor;
                filter: contrast(0.7) brightness(1.2);
                border-radius: 10px;
                border: 0;
                font-size: 14px;
                padding: 6px 12px;
                color: $textSecondary;
                &::placeholder {
                    color: $textSecondary;
                }
                &:focus {
                    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
                    outline: unset;
                    border: 0;
                }
                &:active {
                    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
                    outline: unset;
                    border: 0;
                }
            }
            .btn-form {
                border-radius: 10px;
                background-color: #fff;
                width: 100%;
                font-size: 12px;
                padding: 12px;
                transition: 0.5s;
                &:hover {
                    border-color: #000;
                }
            }
        }
        .main-comment {
            background-color: rgba(244, 244, 244, 0.7);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 20px;
            .body {
                font-size: 14px;
            }
            .rate-cm {
                gap: 2px;
                li {
                    color: rgba(0, 0, 0, 0.2);
                    &.rated {
                        color: #fecb02;
                    }
                }
            }
        }
        .reply-comment {
            background-color: rgba(#fff, 0.7);
            box-shadow: 0 4px 13px 0 rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 20px;
            .body {
                font-size: 14px;
            }
        }
        .faq-section {
            .accordion-item {
                border-radius: 16px;
                font-size: 14px;
                overflow: hidden;
                margin-bottom: 0.75rem;
                border: 1px solid #ddd !important;
                &:last-child {
                    margin-bottom: 0;
                }
                .accordion-button {
                    border-radius: 16px;
                    font-size: 14px;
                    box-shadow: none !important;
                    background: rgba(var(--color-light), 1) !important;
                    color: #333;
                    &:not(.collapsed) {
                        border-bottom: 1px solid #ddd !important;
                    }
                }
            }
        }
    }
    .offer-products {
        margin-top: 80px;
        &.discounted {
            .offer-side {
                img {
                    bottom: 10px;
                }
            }
        }
        .swiper-button-next {
            right: -20px;
            left: unset;
            position: absolute;
            top: 0;
            bottom: 0;
            margin: auto;
            &::after {
                background-image: url("../../images/icons/right.svg");
                content: "";
                background-repeat: no-repeat;
                width: 13px;
                height: 21px;
            }
        }
        .swiper-button-prev {
            left: -20px;
            right: unset;
            top: 0;
            bottom: 0;
            margin: auto;
            position: absolute;
            &::after {
                background-image: url("../../images/icons/left.svg");
                content: "";
                background-repeat: no-repeat;
                width: 13px;
                height: 21px;
            }
        }
        .offer-side {
            border-radius: 20px;
            position: relative;
            padding: 22px 30px;
            height: 19rem;
            width: 12rem;
            img {
                position: absolute;
                bottom: 0px;
                right: 20px;
            }
            p {
                font-size: 24px;
            }
        }
    }
}
@media (min-width: 1600px) {
    .product-page {
        .product-image {
            .swiper {
                height: 100px !important;
            }
        }
        .description {
            .iframe-parent {
                width: 70%;
            }
        }
        .description.content {
            img {
                max-width: 70% !important;
                max-height: max-content !important;
                margin: auto !important;
                display: block;
            }
        }
    }
}
@media (min-width: 1400px) and (max-width: 1600px) {
    .product-page {
        .product-image {
            .swiper {
                height: 100px !important;
            }
        }
        .description {
            .iframe-parent {
                width: 80%;
            }
        }
        .description.content {
            img {
                max-width: 80% !important;
                max-height: max-content !important;
                margin: auto !important;
                display: block;
            }
        }
    }
}
@media (min-width: 1200px) and (max-width: 1400px) {
    .add-to-cart {
        button {
            font-size: 14px !important;
        }
    }
    .product-page {
        .product-image {
            .swiper {
                height: 100px !important;
            }
        }
        .description {
            .iframe-parent {
                width: 80%;
            }
        }
        .description.content {
            img {
                max-width: 80% !important;
                max-height: max-content !important;
                margin: auto !important;
                display: block;
            }
        }
    }
}
@media (min-width: 992px) and (max-width: 1200px) {
    .product-page {
        .product-image {
            .swiper {
                height: 90px !important;
            }
        }
        .description {
            .iframe-parent {
                width: 70%;
            }
        }
        .description.content {
            .content {
                img {
                    width: 70% !important;
                    height: auto !important;
                    margin: auto !important;
                    display: block;
                }
            }
        }
    }
}
@media (min-width: 768px) and (max-width: 992px) {
    .info-name {
        border-bottom: 0 !important;
    }
    .product-page {
        .product-image {
            .swiper {
                height: 110px !important;
            }
        }
        .description {
            .iframe-parent {
                width: 80%;
            }
        }
        .description.content {
            img {
                width: 80% !important;
                height: auto !important;
                margin: auto !important;
                display: block;
            }
        }
    }
}
@media (min-width: 576px) and (max-width: 768px) {
    .info-name {
        border-bottom: 0 !important;
    }
    .product-page {
        .product-image {
            .swiper {
                height: 160px !important;
            }
        }
        .description {
            .iframe-parent {
                width: 90%;
            }
        }
        .description.content {
            img {
                width: 90% !important;
                height: auto !important;
                margin: auto !important;
                display: block;
            }
        }
    }
}
@media (max-width: 576px) {
    .tabs{
        .product-tabs-menu{
            a{
                font-size: 14px;
            }
        }
    }
    footer {
        padding-bottom: 12rem !important;
    }
    .offer-products {
        .swiper-button-next {
           display: none;
        }
        .swiper-button-prev {
            display: none;
        }
        .swiper-slide {
            background: transparent !important;
        }
    }
    .info-name {
        border-bottom: 0 !important;
    }
    .footer {
        padding-bottom: 8rem;
    }
    .product-page .product-image .selector .swiper .swiper-button-next {
        background: linear-gradient(
            90deg,
            rgba(var(--color-light), 1) 40%,
            transparent
        ) !important;
    }
    .product-page .product-image .selector .swiper .swiper-button-prev {
        background: linear-gradient(
            270deg,
            rgba(var(--color-light), 1) 40%,
            transparent
        );
    }
    .product-page {
        .name {
            h1 {
                font-size: 20px !important;
            }
        }
        .product-info {
            padding: 1rem !important;
        }
        .product-image {
            .swiper {
                height: 100px !important;
            }
        }
        .description {
            .iframe-parent {
                width: 100%;
            }
        }
        .description.content {
            img {
                width: 100% !important;
                height: auto !important;
            }
        }
    }
}

.tabs{
    .product-tabs-menu{
        background-color: var(--body-color);
        border-bottom: 2px solid rgba(26, 26, 26, 0.1);
    }
}

.tabs {
    .product-tabs-menu{
        a{
            color: #828282 !important;
            border-radius: 0 !important;
            white-space: nowrap;
        }
        
    }
}

.tabs {
    .product-tabs-menu{
        a.active{
            border-bottom: 2px solid var(--primary-color);
            color: #000 !important;
        }
        
    }
}
