.products {
    .sec-main {
        &__con0 {
            overflow: hidden;
            border-top: var(--headerHeight) solid transparent;

            &::before,
            &::after {
                width: var(--sbw-s-3);
                height: var(--sbw-s-3);
                border-width: var(--sbw-t-3);
            }

            &::before {
                bottom: 15%;
                left: 0;
                transform: translate3d(-50%, 0, 1px);
            }

            &::after {
                right: 0;
                top: 0;
                transform: translate3d(50%, -25%, 1px);
            }
        }

        &__con1 {
            // padding-top: $spacing1;
            padding-bottom: $spacing1;
        }

        &__fct {
            z-index: 1;
            width: fit-content;
            padding-top: $spacing1 * .5;
            padding-bottom: $spacing1 * .5;
            margin-left: auto;

            &-fct.not-visible {
                opacity: 0;
                visibility: 0;
                pointer-events: none;
            }
        }

        &__con2 {
            min-height: calc(100vh - var(--headerHeight) - $spacing1 * 2 - 50px);

            &--nf {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                text-align: center;
            }
        }

        &__tit {
            margin-bottom: 1.5rem;
            font-size: $text-30;
            line-height: 1.2;
        }

        @include xs-wmin {
            &__tit {
                font-size: $text-40;
            }

            &__des {
                font-size: $text-18;
            }
        }

        &__btn {
            margin-top: 3rem;
        }

        &__ite {
            @include sm-wmin {
                flex: 0 0 50%;
                width: 50%;
                max-width: 50%;
            }

            @include lg-wmin {
                flex: 0 0 33.333333%;
                width: 33.333333%;
                max-width: 33.333333%;
            }

            @include xxxxl-wmin {
                flex: 0 0 25%;
                width: 25%;
                max-width: 25%;
            }
        }
    }
}

.proddet {
    .sec-det {
        overflow: clip;
        &__legend {
            // position: absolute;
            // bottom: 0;
            font-size: 0.65rem;
            margin-top: 1rem;
            p:not(:last-child) {
                margin-bottom: 0.5rem;
            }
        }

        &__con0 {
            padding-top: $spacing1 * 0.5;
            padding-bottom: $spacing1 + $spacing2;
            border-top-width: var(--headerHeight);
        }

        &__brec {
            margin-bottom: $spacing1 * 0.5;
        }

        &__con1,
        & > .col {
            @include xl-wmin {
                --sus-fx-gtt: clamp(1rem, calc(0.5rem + 5vw + 2vh), 2rem);
            }

            @include xxxl-wmin {
                --sus-fx-gtt: clamp(1rem, calc(0.5rem + 5vw + 5vh), 3rem);
            }
        }

        &__samp {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            // aspect-ratio: 1;
            width: 100%;
            max-width: 100%;

            @include lg-wmin {
                position: sticky;
                top: var(--headerHeight);
                flex-wrap: nowrap;
                // gap: $spacing1 * .5;
                gap: calc(var(--sus-f-gtt) * 2);
                width: auto;
                height: clamp(
                    min(calc(30vh + 100px), calc(25rem + 5vw)),
                    calc(100px + 20vw + 20vh),
                    min(calc(85vh + 300px), 40vw, #{$screen-5xl-limit * 0.5})
                );
            }
        }

        @include lg-wmin {
            // &__con0 {
            //     padding-bottom: $spacing1;
            // }

            &__con1 {
                flex-wrap: nowrap;
            }

            &__samp {
                flex: 0 0 auto;
                width: auto;
                // max-width: 50%;
            }

            &__text {
                flex: 1 1 0;
                width: auto;
                // min-width: 33.3333%;
            }
        }

        &__thumb {
            order: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 100%;
            width: 100%;
            max-width: 100%;
            margin-top: $spacing2;

            &-lis {
                flex: 1;
                height: 7.5rem;
                margin: 0 $spacing2;
            }

            &-ite {
                @include lg-wmax {
                    height: 100%;
                    max-height: 100% !important;
                    min-height: initial !important;
                }

                @include lg-wmin {
                    max-width: 100% !important;
                    min-width: initial !important;
                }

                .figure {
                    border-radius: 3px;
                    border: 2px solid transparent;
                    cursor: pointer;

                    &::before {
                        z-index: -1;
                        background-color: #fff;
                    }

                    &::after {
                        z-index: 1;
                        background-color: rgba($duller2, 0.1);
                        pointer-events: none;
                    }

                    @include lg-wmax {
                        height: 7.5rem;
                    }
                }

                &.active .figure {
                    border-color: $primaryClear;

                    &::after {
                        background-color: transparent;
                    }
                }
            }

            .sxs-car__arws-arw {
                position: absolute;
                z-index: 1;
                top: 50%;

                &--prev {
                    left: 0;
                }

                &--next {
                    right: 0;
                }
            }

            @include lg-wmax {
                .sxs-car__arws-arw {
                    &--prev {
                        transform: translate3d(-25%, -50%, 1px);
                    }

                    &--next {
                        transform: translate3d(25%, -50%, 1px);
                    }
                }
            }

            @include lg-wmin {
                order: -1;
                flex-direction: column;
                flex: 0 0 5rem;
                width: 5rem;
                max-width: 5rem;
                height: 90%;
                margin-top: 0;

                &-lis {
                    margin: $spacing2 0;
                }

                .sxs-car__arws-arw {
                    position: relative;
                    top: initial;
                }
            }

            @include lg-wmin {
                flex: 0 0 clamp(3rem, calc(3vw + 2rem + 3vh), calc(3rem + 1.5vw));
                width: clamp(3rem, calc(3vw + 2rem + 3vh), calc(3rem + 1.5vw));
                max-width: clamp(3rem, calc(3vw + 2rem + 3vh), calc(3rem + 1.5vw));
            }

            @include xxl-wmin {
                flex: 0 0 clamp(3rem, calc(3vw + 2rem + 3vh), 7.5rem);
                width: clamp(3rem, calc(3vw + 2rem + 3vh), 7.5rem);
                max-width: clamp(3rem, calc(3vw + 2rem + 3vh), 7.5rem);
            }
        }

        &__smp {
            aspect-ratio: 1;
            // height: 0;
            flex: 0 0 100%;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            border-radius: 2rem;
            background-color: $accentClear2;
            // flex: 0 0 80%;
            // width: 80%;
            // max-width: 80%;
            // padding-left: $spacing1 * .5;

            @include lg-wmin {
                flex: 0 0 var(--_s);
                width: var(--_s);
                max-width: var(--_s);
                height: 100%;
                border-radius: 3rem;
            }

            &-wtm {
                &-1 {
                    position: absolute;
                    --_w: clamp(10rem, calc(6rem + 5vw + 5vh), 20rem);

                    &::after {
                        content: "";
                        display: block;
                        top: 0;
                        left: 0;
                        width: var(--_w);
                        height: var(--_w);
                        border-radius: 50%;
                        border: 1px solid rgba($primaryClear, 0.75);
                        transform: translate3d(-25%, -25%, 1px);
                    }
                }

                &-2 {
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: var(--_w);
                    height: var(--_w);
                    transform: translate3d(20%, 25%, 1px);
                    --_w: clamp(10rem, calc(6rem + 5vw + 5vh), 20rem);

                    &::before,
                    &::after {
                        content: "";
                        position: absolute;
                        display: block;
                        border-radius: 50%;
                        border: 1px solid rgba($primaryClear, 0.75);
                    }

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

                    &::after {
                        width: 150%;
                        height: 150%;
                    }
                }
            }
        }

        &__hdr {
            margin-bottom: $spacing2;
        }

        &__box {
            &--hdr {
                &.sec-det__box--mob {
                    margin-bottom: $spacing2;
                }
            }

            &--pce {
                // margin: 0 0 $spacing1 * .25;
                display: flex;
                align-items: center;
                gap: 1rem;
                @include lg-wmin {
                    margin: $spacing1 * 0.25 0;
                }
            }
            &--detail {
                font-weight: 700;
                color: $red;
            }

            &--tags {
                margin-top: $spacing1 * 0.75;
            }

            &--accs {
                margin-top: $spacing1 * 0.75;

                .sxs-acc {
                    .rich-text {
                        @include lg-wmin {
                            font-size: $text-14;
                        }

                        @include xxl-wmin {
                            font-size: $text-15;
                        }

                        @include xxxl-wmin {
                            font-size: $text-body;
                        }
                    }
                }
            }

            &--ftr {
                display: flex;
                margin-top: $spacing1 * 0.5;
            }

            &--mob {
                display: block;
            }

            &--dek {
                display: none;
            }

            @include lg-wmin {
                &--mob {
                    display: none;
                }

                &--dek {
                    display: block;
                }
            }
        }

        &__dat {
            &--sku {
                font-size: $text-15;

                @include xl-wmin {
                    font-size: $text-body;
                }

                @include xxl-wmin {
                    font-size: $text-17;
                }

                @include xxxl-wmin {
                    font-size: $text-20;
                }
            }

            &--price {
                font-size: $text-35;
                font-weight: 600;
                color: $red;
            }

            &--var {
                &-tit {
                    margin-bottom: $spacing2;
                    font-weight: 700;
                }

                &-lis,
                &-lis > .col {
                    --sus-f-gtt: 0.25rem;
                    --sus-fx-gtt: 0.25rem;
                }
            }

            &--btn {
                margin-left: 0.25rem;
                flex: 1;

                @include xl-wmin {
                    max-width: 60%;
                }
            }

            &--tags {
                &-lis,
                &-ite {
                    --sus-fx-gtt: #{$spacing2 * 2};
                }

                &-ite:not(:last-child) {
                    &::after {
                        content: "";
                        position: absolute;
                        right: 0;
                        top: 0;
                        display: block;
                        width: 1px;
                        height: 100%;
                        background-color: $accentClear5;
                    }
                }
            }
        }

        &--green .sec-det__dat--price {
            color: $green;
        }
        &__tag {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: red;
            border-radius: 50%;
            color: #fff;
            width: clamp(4rem, 5vw, 5rem);
            height: clamp(4rem, 5vw, 5rem);
            display: flex;
            align-items: center;
            justify-content: center;
            text-transform: uppercase;
            z-index: 1;
            span {
                font-size: clamp(0.6rem, 0.9vw, 0.85rem);
                font-weight: 700;
                text-align: center;
            }
            &--small-text {
                span {
                    font-size: clamp(0.6rem, 0.7vw, 0.75rem);
                }
            }
        }
    }

    .sec-items {
        &__con0 {
            padding-bottom: $spacing1 + $spacing2;
        }

        &__hdr {
            padding-bottom: 2rem;
        }

        &__lis {
            justify-content: center;
        }

        &__ite {
            @include xs-wmin {
                flex: 0 0 50%;
                width: 50%;
                max-width: 50%;
            }

            @include lg-wmin {
                flex: 0 0 33.3333%;
                width: 33.3333%;
                max-width: 33.3333%;
            }
        }

        @include lg-wmin {
            &__con0 {
                padding-top: $spacing2;
            }
        }

        .icon {
            font-size: $text-70;
        }
    }

    .sec-relprod {
        z-index: -1;

        &::before {
            top: 0;
            left: 0;
            width: var(--sbw-s-1);
            height: var(--sbw-s-1);
            border-width: var(--sbw-t-1);
            transform: translate3d(-25%, -50%, 1px);
        }

        &__con0 {
            // padding-top: $spacing1;
            padding-bottom: $spacing1;
        }

        &__hdr {
            padding-bottom: $spacing1 * 0.5;
        }
    }
}

.sxs-varbox {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 3px;
    background-color: $accentClear5;
    border: 2px solid transparent;
    --_bsize: 1.25rem;

    &__mkr {
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--_bsize);
        height: var(--_bsize);
        border: 1px solid $accentClear6;
        border-radius: 50%;

        &::before {
            content: "";
            position: absolute;
            width: calc(var(--_bsize) * 0.6);
            height: calc(var(--_bsize) * 0.6);
            border-radius: 50%;
            background-color: $accentClear6;
        }
    }

    &__tit {
        padding-left: 0.25rem;
        font-size: $text-14;
        font-weight: 700;
    }

    &.ctv,
    &:hover {
        border-color: $primaryClear;
        background-color: transparent;

        .sxs-varbox__mkr {
            border-color: $primaryClear;

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

.sxs-ptag {
    width: 100%;
    height: 100%;

    &__ico {
        display: flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
        padding: 0.4rem;
        background-color: $primaryClear;
        border-radius: 50%;
    }

    .icon {
        font-size: clamp(20px, calc(10px + 1rem + 0.5vw), 5rem);
    }

    &__tit {
        display: block;
        margin-top: 1rem;
        font-size: $text-13;
        font-weight: 600;
        text-align: center;

        @include xxxl-wmin {
            font-size: $text-body;
        }
    }
}

.iiz {
    height: 100%;
}
.iiz__btn {
    background-color: #fddb22;
    border-radius: 50%;
    &.iiz__hint {
        // display: none !important;
        &::before {
            //background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19.9 19.9'%3E%3Cpath d='M13.9 7.4C13.9 3.8 11 .9 7.4.9S.9 3.8.9 7.4s2.9 6.5 6.5 6.5 6.5-2.9 6.5-6.5zm5.3 8.5-6.7-7.2c-1.4 1.3-3.2 2.1-5.1 2.1-4.1 0-7.4-3.3-7.4-7.4S3.3 0 7.4 0s7.4 3.3 7.4 7.4c0 1.7-.6 3.4-1.7 4.7l6.8 7.2-.7.6z' fill='%23fddb22'/%3E%3C/svg%3E");
            // background-size: contain;
            // background-repeat: no-repeat;
            // background-position: center;
        }
    }
}
