#solo-carbs-combinations {
    .up-container {
        display: grid;
        grid-template-columns: 210px 1fr 210px;
        align-items: center;

        .points-list {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
            z-index: 1;
            position: relative;

            &:before {
                position: absolute;
                font-family: var(--font-titles);
                color: var(--color500);
                font-size: round(calc( var(--size-p) * 16.3 ), 1px);
                line-height: 1.2;
                backdrop-filter: blur(36px);
            }

            &.solo-points {
                &:before {
                    content: 'SOLO';
                    top: 50%;
                    right: 100px;
                    transform: translateY(-50%) rotate(-90deg);
                    -webkit-transform: translateY(-50%) rotate(-90deg);
                    -moz-transform: translateY(-50%) rotate(-90deg);
                    -ms-transform: translateY(-50%) rotate(-90deg);
                    -o-transform: translateY(-50%) rotate(-90deg);
                }
            }

            &.carbs-points {
                align-items: flex-end;

                li {
                    a {
                        flex-direction: row-reverse;
                        justify-content: flex-end;
                    }

                    &:before {
                        left: auto;
                        right: 100%;
                    }
                }

                .name {
                    transform-origin: right;
                }

                &:before {
                    content: 'CARBS';
                    top: 50%;
                    left: 30px;
                    transform: translateY(-50%) rotate(90deg);
                    -webkit-transform: translateY(-50%) rotate(90deg);
                    -moz-transform: translateY(-50%) rotate(90deg);
                    -ms-transform: translateY(-50%) rotate(90deg);
                    -o-transform: translateY(-50%) rotate(90deg);
                }
            }

            li {
                position: relative;
                
                a {
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    gap: 16px;
                    background: var(--color400);
                    border: solid 1px var(--color300);
                    backdrop-filter: blur(8px);
                    padding: 12px;
                    border-radius: 100px;
                    -webkit-border-radius: 100px;
                    -moz-border-radius: 100px;
                    -ms-border-radius: 100px;
                    -o-border-radius: 100px;
                    transition: all .3s ease-in-out;
                    -webkit-transition: all .3s ease-in-out;
                    -moz-transition: all .3s ease-in-out;
                    -ms-transition: all .3s ease-in-out;
                    -o-transition: all .3s ease-in-out;
                }

                .color {
                    width: round(calc( var(--size-p) * 1.53 ), 1px);
                    height: round(calc( var(--size-p) * 1.53 ), 1px);
                    background: var(--product-color, var(--color100));
                    border: solid 2px var(--product-color, var(--color100));
                    border-radius: 200px;
                    -webkit-border-radius: 200px;
                    -moz-border-radius: 200px;
                    -ms-border-radius: 200px;
                    -o-border-radius: 200px;
                    transition: all .2s ease-in-out;
                    -webkit-transition: all .2s ease-in-out;
                    -moz-transition: all .2s ease-in-out,;
                    -ms-transition: all .2s ease-in-out,;
                    -o-transition: all .2s ease-in-out,;
                }

                .name {
                    display: none;
                    margin: 0;
                    opacity: 0;
                    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, display 0.1s ease-in-out allow-discrete;
                    -webkit-transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, display 0.1s ease-in-out allow-discrete;
                    -moz-transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, display 0.1s ease-in-out allow-discrete;
                    -ms-transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, display 0.1s ease-in-out allow-discrete;
                    -o-transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, display 0.1s ease-in-out allow-discrete;
                    transform-origin: left;
                    transform: scaleX(0);
                    -webkit-transform: scaleX(0);
                    -moz-transform: scaleX(0);
                    -ms-transform: scaleX(0);
                    -o-transform: scaleX(0);
                }

                &.active,
                &:hover {
                    .name {
                        display: block;
                        opacity: 1;
                        transform: scaleX(1);
                        -webkit-transform: scaleX(1);
                        -moz-transform: scaleX(1);
                        -ms-transform: scaleX(1);
                        -o-transform: scaleX(1);
                        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
                        -webkit-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
                        -moz-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
                        -ms-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
                        -o-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;

                        @starting-style {
                            opacity: 0;
                            transform: scaleX(0);
                            -webkit-transform: scaleX(0);
                            -moz-transform: scaleX(0);
                            -ms-transform: scaleX(0);
                            -o-transform: scaleX(0);
                        } 
                    }

                    .color {
                        border-color: var(--color100);
                        outline: solid 2px var(--color200);
                        box-shadow: 0 2px 24px 0 var(--product-shadow, var(--color100));
                    }
                }

                &:before {
                    content: '';
                    position: absolute;
                    width: 0;
                    height: 1px;
                    top: 50%;
                    left: 100%;
                    background: var(--color300);
                    transition: width 0.5s ease-in-out;
                    -webkit-transition: width 0.5s ease-in-out;
                    -moz-transition: width 0.5s ease-in-out;
                    -ms-transition: width 0.5s ease-in-out;
                    -o-transition: width 0.5s ease-in-out;
                }

                &.active:before {
                    width: calc( var(--halfSection) - 100% );
                }
            }
        }

        .images-container {
            aspect-ratio: 1;
            position: relative;
            z-index: 2;

            .images-list {
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                left: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                
                .image {
                    display: none;
                    width: 100%;
                    position: relative;

                    &.active {
                        display: block;
                    }

                    img {
                        width:100%;
                        object-fit: cover;
                        transition: opacity 0.5s ease-in-out;
                        -webkit-transition: opacity 0.5s ease-in-out;
                        -moz-transition: opacity 0.5s ease-in-out;
                        -ms-transition: opacity 0.5s ease-in-out;
                        -o-transition: opacity 0.5s ease-in-out;

                        &.open-can {
                            position: absolute;
                            top: 0;
                            left: 0;
                            opacity: 0;
                        }
                    }
                }

                &.solo-images {
                    clip-path: polygon(100% 0, 0 100%, 0 0);
                }

                &.carbs-images {
                    clip-path: polygon(100% 0, 0 100%, 100% 100%);
                }
            }

            &:before {
                content: '';
                position: absolute;
                width: 80%;
                height: 10px;
                top: 50%;
                left: 50%;
                background-color: var(--color100);
                z-index: 1;
                box-shadow: 0px 8px 24px #000;
                border-radius: 100px;
                -webkit-border-radius: 100px;
                -moz-border-radius: 100px;
                -ms-border-radius: 100px;
                -o-border-radius: 100px;
                transform: translate(-50%, -50%) rotate(-45deg);
                -webkit-transform: translate(-50%, -50%) rotate(-45deg);
                -moz-transform: translate(-50%, -50%) rotate(-45deg);
                -ms-transform: translate(-50%, -50%) rotate(-45deg);
                -o-transform: translate(-50%, -50%) rotate(-45deg);
            }

            &:hover {
                .images-list .image .open-can {
                    opacity: 1;

                    & + .closed-can {
                        opacity: 0;
                    }
                }
            }
        }
    }

    .down-container {
        .combination {
            display: none;
            background: rgba(20 20 20 / .6);
            padding: 34px;
            border-radius: 24px;
            -webkit-border-radius: 24px;
            -moz-border-radius: 24px;
            -ms-border-radius: 24px;
            -o-border-radius: 24px;
            align-items: center;
            justify-content: space-between;

            &.active {
                display: flex;
            }

            .left-container {
                display: flex;
                padding-right: 32px;
                gap: 64px;
                min-width: max-content;

                .info {
                    display: flex;
                    flex-direction: column;

                    p {
                        margin: 0;

                        &.value {
                            font-size: round(calc( var(--size-p) * 3 ), 1px);
                            line-height: 1.4;
                            font-weight: 600;
                            font-variant-numeric: lining-nums proportional-nums;
                        }

                        &.label {
                            color: var(--color200);
                        }
                    }
                }
            }

            .right-container {
                display: flex;
                padding-left: 32px;
                border-left: solid 1px var(--color400);
                flex-grow: 1;
                max-width: 50%;

                p {
                    margin: 0;

                    &.label {
                        margin: 0 0 16px;
                    }

                    &.value {
                        color: var(--color200);
                    }
                }
            }
        }
    }
}

/*********************************\
    RESPONSIVE
\*********************************/
@media(max-width: 1440px){

    #solo-carbs-combinations {
        & .up-container {
            & .points-list {
                &.carbs-points {
                    &:before {
                        left: -30px;
                    }
                }
                &.solo-points {
                    &:before {
                        right: 45px;
                    }
                }
            }
        }
    }
}

@media(max-width: 1280px){

    #solo-carbs-combinations {
        & .up-container {
            & .points-list {
                &.carbs-points {
                    &:before {
                        left: -160px;
                    }
                }
                &.solo-points {
                    &:before {
                        right: -75px;
                    }
                }
            }
        }
    }
}

@media(max-width: 1240px){

    #solo-carbs-combinations {
        & .up-container {
            & .points-list {
                &.carbs-points {
                    &:before {
                        left: -100px;
                    }
                }
                &.solo-points {
                    &:before {
                        right: -35px;
                    }
                }
            }
        }
        & .down-container {
            & .combination {
                .left-container {
                    gap: 34px;
                }
            }
        }
    }

}

@media(max-width: 959px){
    
    #solo-carbs-combinations {
        .up-container {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;

            .points-list {
                justify-content: center;
                align-items: center;
                width: 100%;

                li {
                    min-width: 230px;

                    & a {
                        .name {
                            display: block;
                            opacity: 1;
                            transform: scaleX(1);
                            -webkit-transform: scaleX(1);
                            -moz-transform: scaleX(1);
                            -ms-transform: scaleX(1);
                            -o-transform: scaleX(1);
                            transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
                            -webkit-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
                            -moz-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
                            -ms-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
                            -o-transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;

                            @starting-style {
                                opacity: 0;
                                transform: scaleX(0);
                                -webkit-transform: scaleX(0);
                                -moz-transform: scaleX(0);
                                -ms-transform: scaleX(0);
                                -o-transform: scaleX(0);
                            } 
                        }

                        .color {
                            border-color: var(--color100);
                            outline: solid 2px var(--color200);
                            box-shadow: 0 2px 24px 0 var(--product-shadow, var(--color100));
                        }
                    }

                    &.active:before {
                        content: unset;
                    }
                }
                & li.active {
                    & a {
                        border: solid 3px var(--color300);
                    }
                }
                &.solo-points {
                    order: 2;
                    &:before{
                        right: unset;
                        left: -25%;
                    }
                }

                &.carbs-points {
                    order: 3;
                    margin-top: 32px;
                    align-items: center;
                    & li {
                        a {
                            flex-direction: row;
                            justify-content: flex-start;
                        }
                    }
                    &:before{
                        right: -40%;
                        left: unset;
                    }
                }
            }
            
            .images-container {
                order: 1;
                height: 410px;
            }
        }

        & .down-container {
            margin-top: 42px;
            z-index: 2;
            position: relative;
            
            & .combination {
                flex-direction: column;
                justify-content: center;
                align-items: center;
                text-align: center;
                gap: 34px;
            
                .right-container{
                    border-left: unset;
                    border-top: solid 1px var(--color400);
                    padding-left: 0;
                    max-width: 90%;
                    padding-top: 34px;
                }
                .left-container{
                    padding-right: 0;
                }            
            }
        }
    }

}

@media(max-width: 767px){

    #solo-carbs-combinations {
        & .up-container {
            & .points-list {
                &.carbs-points {
                    &:before {
                        right: -180px;
                        backdrop-filter: unset;
                    }
                }
                &.solo-points {
                    z-index: 4;
                    &:before {
                        left: -120px;
                    }   
                }
            }
        }
    }

    #solo-carbs-combinations {
        .down-container {
            & .combination {
                .left-container{
                    gap: 24px;

                    & .info {
                        & p {
                            &.value {
                                font-size: round(calc(var(--size-p) * 2), 1px);
                            }
                        }
                    }
                }            
            }
        }
    }
}

@media(max-width: 320px){
    #solo-carbs-combinations {
        & .up-container {
            .images-container {
                height: 350px;
            }
        }
    }
}