.fwImgContainer {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: .2s linear;
    > div {
        height: 100%;
        width: 100%;
        display: flex;
        padding: 60px 20px;
        align-items: center;
        justify-content: center;
        img {
            object-fit: contain;
            width: 100%;
            max-width: 900px;
            max-height: 800px;
        }
        .close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 25px;
            z-index: 1;
            &::before, &::after {
                background: var(--light);
            }
        }
    }
    &.active {
        opacity: 1;
        visibility: visible;
    }
}
.goods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding: 40px;
    background: var(--light-green);
    border-radius: 30px;
    box-shadow: var(--shadow-1);
    .images {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
        align-items: center;
        justify-content: flex-end;
        .main-img {
            border-radius: 20px;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: var(--light);
            overflow: hidden;
            display: flex;
            align-items: center;
            cursor: pointer;
            img {
                object-fit: contain;
            }
        } 
        .additional {
            width: 100%;
            display: flex;
            gap: 20px;
            overflow-y: auto;
            overflow-x: visible;
            max-height: 380px;
            img {
                border-radius: 20px;
                aspect-ratio: 16 / 9;
                height: 120px;
                object-fit: cover;
                cursor: pointer;
                transition: .3s linear;
            }
            &::-webkit-scrollbar {
                width: 4px;
                height: 4px;
                background-color: var(--light-green);
                border-radius: 10px;
            }
            &::-webkit-scrollbar-thumb {
                background-color: var(--green);
                border-radius: 10px;
            }
            img {
                &.active {
                    border: 1px solid var(--green);
                }
            }
        }
    }
    .info {
        display: flex;
        flex-direction: column;
        .breadcrumbs {
            a, span {
                text-transform: uppercase;
                font-size: 14px;
                color: var(--light-text);
            }
        }
        h1 {
            font-family: Nunito, sans-serif;
            max-width: fit-content;
            font-size: 40px;
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            position: relative;
            gap: 0 5px;
            span {
                font-size: inherit;
            }
            &::after {
                content: '';
                left: 0;
                bottom: 0;
                position: absolute;
            }
        }
        .desc {
            margin-bottom: 20px;
        }
        .set-params {
            .handler {
                display: flex;
                gap: 10px;
                align-items: center;
                margin-bottom: 20px;
                position: relative;
                max-width: fit-content;
                .toggle {
                    width: 38px;
                    min-width: unset;
                    height: 24px;
                    margin-left: 10px;
                    background: var(--light);
                    border-radius: 20px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    border: 1px solid var(--green);
                    cursor: pointer;
                    transition: .2s linear;
                    &::before {
                        content: '';
                        position: absolute;
                        top: 2px;
                        left: 2px;
                        width: 18px;
                        height: 18px;
                        background: var(--green);
                        border-radius: 50%;
                        display: block;
                        margin: 0;
                        transition: .2s linear;
                    }
                }
                .info {
                    color: #aaa;
                    width: 24px;
                    max-width: 24px;
                    height: 24px;
                    padding: 0;
                    font-size: 16px;
                    border-radius: 20px;
                    border: 1px solid #aaa;
                }
                .info-text {
                    position: absolute;
                    border-radius: 10px;
                    padding: 10px;
                    background: var(--light);
                    max-width: 260px;
                    bottom: 20px;
                    box-shadow: var(--shadow-1);
                    right: -260px;
                    opacity: 0;
                    visibility: hidden;
                    transition: .2s linear;
                    p {
                        font-size: 13px;
                        color: #aaa;
                    }
                    &.active {
                        opacity: 1;
                        visibility: visible;
                    }
                }
            }
            ul {
                margin-bottom: 20px;
                max-height: 0;
                overflow: hidden;
                opacity: 0;
                visibility: hidden;
                transition: .2s linear;
                .item {
                    display: grid;
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                    align-items: center;
                    justify-content: center;
                    &.hide {
                        display: none;
                    }
                    li {
                        font-weight: 700;
                        color: var(--light-text);
                        .info-container {
                            position: relative;
                            margin-left: 10px;
                            .info {
                                color: #aaa;
                                width: 24px;
                                max-width: 24px;
                                height: 24px;
                                padding: 0;
                                font-size: 16px;
                                border-radius: 20px;
                                border: 1px solid #aaa;
                            }
                            .info-text {
                                position: absolute;
                                border-radius: 10px;
                                padding: 10px;
                                background: var(--light);
                                max-width: 260px;
                                bottom: 20px;
                                box-shadow: var(--shadow-1);
                                right: -260px;
                                opacity: 0;
                                z-index: 9;
                                visibility: hidden;
                                transition: .3s linear;
                                p {
                                    font-size: 13px;
                                    color: #aaa;
                                    margin-bottom: 20px;
                                }
                                &.active {
                                    opacity: 1;
                                    visibility: visible;
                                }
                            }
                        }
                    }
                    .input {
                        display: flex;
                        text-align: center;
                        color: var(--light-text);
                        font-weight: 700;
                        max-width: 180px;
                        width: 100%;
                        justify-self: center;
                        justify-content: space-between;
                        border: 1px solid var(--green);
                        background: var(--light);   
                        border-radius: 20px;
                        position: relative;
                        span {
                            position: absolute;
                            bottom: calc(100% + 10px);
                            z-index: 9;
                            font-size: 14px;
                            font-weight: 300;
                            color: red;
                            background: var(--error-bg);
                            padding: 5px 10px;
                            border-radius: 10px;
                            display: none;
                            &.show {
                                display: block;
                            }
                        } 
                        button {
                            color: var(--light-text);
                        }       
                        input {
                            text-align: center;
                            border: none;
                            padding: 5px 0;
                            background: none;
                            color: var(--light-text);
                            font-weight: 700;
                            width: 100%;
                            -moz-appearance: textfield;
                            appearance: textfield;
                            &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
                                -webkit-appearance: none;
                                margin: 0;
                            }
                        }
                        .reset {
                            position: absolute;
                            top: 50%;
                            transform: translateY(-50%);
                            right: -20px;
                            cursor: pointer;
                            &::before {
                                font-family: icon;
                                color: var(--light-text);
                                content: '\e915';
                                font-size: 12px;
                            }
                        }
                    }
                    > input, .select {
                        text-align: center;
                        color: var(--light-text);
                        font-weight: 700;
                        max-width: 180px;
                        width: 100%;
                        justify-self: center;
                    }
                    .select {
                        position: relative;
                        cursor: pointer;
                        .selected-option {
                            padding: 10px;
                            display: block;
                            background: var(--light);
                            color: var(--light-text);
                            border: 1px solid var(--green);
                            border-radius: 20px;
                        }
                        .options {
                            display: none;
                            flex-direction: column;
                            position: absolute;
                            top: calc(100% + 10px);
                            left: 0;
                            width: 100%;
                            border: 1px solid #ccc;
                            padding: 10px 0;
                            background-color: white;
                            border-radius: 20px;
                            z-index: 1;
                            max-height: 182px;
                            overflow-y: auto;
                            .option {
                                padding: 5px;
                                background-color: #fff;
                                color: #333;
                                display: flex;
                                flex-direction: column;
                                &:not(:last-child) {
                                    gap: 10px;
                                    &::after {
                                        content: '';
                                        background: #ccc;
                                        height: 1px;
                                        display: block;
                                        width: calc(100% - 20px);
                                        align-self: center;
                                    }
                                }
                            }             
                        }
                        .reset {
                            position: absolute;
                            top: 50%;
                            transform: translateY(-50%);
                            right: -20px;
                            &::before {
                                font-family: icon;
                                color: var(--light-text);
                                content: '\e915';
                                font-size: 12px;
                            }
                        }
                        &.active {
                            .options {
                                display: flex;
                            }
                        }
                    }
                }
            }
            &.active {
                ul {
                    max-height: 600px;
                    opacity: 1;
                    visibility: visible;
                    overflow: visible;
                }
                .handler {
                    .toggle {
                        border: 1px solid var(--accent);
                        &::before {
                            background: var(--accent);
                            left: 20px;
                        }
                    }
                }
            }
        }
        .price {
            display: flex;
            gap: 10px;
            align-items: center;
            .label {
                font-weight: 600;
                align-self: end;
                line-height: 26px;
            }
            .value {
                font-weight: 400;
                font-size: 24px;
                line-height: 24px;
                color: var(--accent);
                span {
                    font-weight: 400;
                    font-size: 12px;
                    color: var(--light-text);
                }
            }
        }
        .cart-btn {
            display: flex;
            gap: 5px;
            align-items: center;
            border-radius: 17px;
            margin-top: 20px;
            font-size: 16px;
            max-width: 320px;
            .input {
                display: flex;
                text-align: center;
                color: var(--light-text);
                font-weight: 700;
                width: 100%;
                justify-self: center;
                justify-content: space-between;
                border: 1px solid var(--green);
                background: var(--light);   
                border-radius: 20px;     
                button {
                    color: var(--light-text);
                }
                div {
                    display: flex;
                    flex-direction: column;
                    padding: 5px;
                    width: 100%;
                    span {
                        font-size: 12px;
                        font-weight: 400;
                    }
                    input {
                        text-align: center;
                        border: none;
                        background: none;
                        color: var(--light-text);
                        padding: 0;
                        font-weight: 700;
                        width: 100%;
                        -moz-appearance: textfield;
                        appearance: textfield;
                        &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
                            -webkit-appearance: none;
                            margin: 0;
                        }
                    }
                }
            } 
            .orange {
                width: 100%;
                box-shadow: var(--shadow-1);
                max-width: unset;
            }
            &.active {                                
                outline: 1px solid #ccc;
                padding: 3px;
                gap: 3px;
                .btn {
                    border-radius: 15px;
                    height: 40px;
                    width: 40px;
                }
            }
            > a.btn.orange {
                box-shadow: none;
                border-radius: 20px;
                max-height: unset;
                height: 100%;
                width: 49.5px;
                height: 49.5px;
                &::before {
                    content: '\e919';
                    font-family: icon;
                    color: var(--light);
                    font-size: 22px;
                    transition: .2s linear;
                }
            }
        }
    }
}
section.info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    .head {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        h2 {
            justify-self: end;
            text-align: right;
            max-width: fit-content;
            position: relative;
            span {
                font-size: inherit;
                font-weight: inherit;
                color: inherit;
                font-family: inherit;
            }
            &::after {
                content: '';
                width: 40%;
                background: var(--accent);
                height: 2px;
                border-radius: 20px;
                position: absolute;
                right: 0;
                bottom: 0;
            }
        }
    }
    > .items {
        display: flex;
        gap: 40px;
        > div {
            width: 50%;
            display: flex;
            flex-direction: column;
            gap: 20px;
            &.desc {
                .docs {
                    display: grid;
                    grid-template-columns: repeat(2, max-content);
                    align-items: center;
                    gap: 0 10px;
                    font-size: 14px;
                    color: var(--light-text);
                    span {
                        font-weight: 700;
                        color: var(--dark);
                    }
                    &::before {
                        font-family: icon;
                        content: '\e902';
                        font-size: 30px;
                        color: var(--green);
                        grid-row: span 2;
                    }
                }
                .model {
                    width: 100%;
                    height: 400px;
                    aspect-ratio: 1 / 1;
                    border-radius: 20px;
                    overflow: hidden;
                    border-radius: 20px;
                    box-shadow: var(--shadow-1);
                    model-viewer {
                        width: 100%;
                        height: 100%;
                        aspect-ratio: 1 / 1;
                        border-radius: 20px;
                        &:focus {
                            outline: none;
                        }
                    }
                }
            }
            &.details {
                ul {
                    margin-bottom: 20px;
                    li {
                        p {
                            span {
                                font-weight: 700;
                            }
                        }
                        img {
                            max-width: 200px;
                        }
                    }
                    &::after {
                        content: '';
                        display: block;
                        width: 100%;
                        height: 2px;
                        border-radius: 20px;
                        background: var(--green);
                        margin-top: 30px;
                    }
                }
                .actions {
                    display: flex;
                    gap: 20px;
                    align-items: center;
                    > a {
                        padding: 10px 50px;
                    }
                    .contacts {
                        & > span:first-child {
                            color: var(--dark);
                            display: flex;
                            align-items: center;
                            &::before {
                                font-family: icon;
                                content: '\e903';
                                font-size: 22px;
                                padding: 8px;
                                color: var(--dark);
                                border: 1px solid var(--dark);
                                display: flex;
                            }
                        }
                        .items {
                            top: 50px;
                        }
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 1279px) {
    .goods {
        display: flex;
        flex-direction: column;
        .info {
            .breadcrumbs {
                a, span {
                    font-size: 12px;
                }
            }
            h1 {
                font-size: 32px;
            }
        }
        .images {
            > img {
                max-width: calc(100% - 140px);
                height: auto;
            }
        }
    }
    section.info {
        .head {
            display: flex;
            flex-direction: column;
            gap: 20px;
            h2 {
                text-align: left;
                max-width: fit-content;
                &::after {
                    align-self: start;
                }
            }
        }
        .items {
            flex-direction: column;
            > div {
                width: 100%;
            }
        }
    }
}
@media screen and (max-width: 767px) {
    .goods {
        padding: 20px;
        .info {
            h1 {
                font-size: 26px;
            }
            .desc {
                font-size: 14px;
            }
            .set-params {
                ul {
                    .item {
                        gap: 5px;
                        display: flex;
                        flex-direction: column;
                        align-items: start;
                        li {
                            align-items: center;
                            font-size: 14px;
                            .info-container {
                                .info-text {
                                    right: -20px;
                                    bottom: 30px;
                                    min-width: 260px;
                                }
                            }
                        }
                    }
                }
                .handler {
                    .info {
                        min-width: 24px;
                    }
                    .info-text {
                        right: 0;
                        bottom: 30px;
                    }
                }
                &.active {
                    ul {
                        max-height: 800px;
                    }
                }
            }
        }
        .images {
            .main-img {
                width: 100%;
                height: auto;
                /* min-height: 280px; */
            }
            > img {
                height: 400px;
                max-width: unset;
            }
            .additional {
                flex-direction: row;
                max-width: unset;
                img {
                    height: 100px;
                }
                &::-webkit-scrollbar {
                    background-color: var(--light-green);
                    border-radius: 10px;
                    height: 4px;
                }
                &::-webkit-scrollbar-thumb {
                    background-color: var(--green);
                    border-radius: 10px;
                }
            }
        }
    }
    section.info {
        .items {
            .details {
                .actions {
                    flex-direction: column;
                    .contacts {
                        width: 100%;
                        display: flex;
                        justify-content: center;
                        .items {
                            left: 0;
                        }
                    }
                }
            }
        }
    }
}
@media screen and (hover: hover) {
    .goods {
        .images {
            .additional {
                img:hover {
                    filter: brightness(120%);
                    box-shadow: var(--shadow-1);
                }
            }
        }
        .info {
            .cart-btn {
                > a.btn.orange:hover {
                    &::before {
                        color: var(--accent);
                    }
                }
            }
        }
    }
}