.goods {
    display: grid;
    grid-template-columns: 640px 1fr;
    gap: 140px;
    margin-top: 0;
    .view {
        .main-img {
            border-radius: 20px;
            height: 500px;
            overflow: hidden;
            img {
                object-position: center 10%;
            }
        }
        .controls {
            margin-top: 20px;
            display: flex;
            width: 100%;
            overflow: auto;
            padding-bottom: 10px;
            scrollbar-color: var(--c-primary) var(--c-dark);
            scrollbar-width: thin;
            img {
                max-width: 140px;
                height: 140px;
                margin-right: 20px;
                object-position: center;
                border-radius: 20px;
                &:last-child {
                    margin-right: 0;
                }
            }
            &::-webkit-scrollbar {
                height: 10px;
                background-color: var(--c-dark);
                border-radius: 10px;
            }
            &::-webkit-scrollbar-thumb {
                background-color: var(--c-primary);
                border-radius: 10px;
                border: 2px solid var(--c-dark);
            }
        }
    }
    .info {
        align-self: center;
        h1 {
            font-size: 48px;
            margin-bottom: 20px;
            max-width: 600px;
        }
        .description {
            font-size: 20px;
            margin-bottom: 80px;
            max-width: 760px;
        }
        .price {
            display: flex;
            align-items: start;
            p {
                color: var(--c-primary);
                font-size: 36px;
                font-weight: var(--fw-medium);
            }
            span {
                margin-left: 15px;
                position: relative;
                font-size: 22px;
                height: fit-content;
                color: var(--c-gray);
                &::after {
                    content: '';
                    position: absolute;
                    width: calc(100% + 10px);
                    height: 1px;
                    background: var(--c-gray);
                    top: 12px;
                    left: -5px;
                }
            }
        }
        .actions {
            margin-top: 40px;
            display: flex;
            .order {
                margin-right: 40px;
            }
        }
    }
}
section.description {
    h2 {
        margin-bottom: 20px;
    }
    p {
        margin-bottom: 20px;
        font-size: 18px;
        max-width: 1200px;
    }
}
section.params {
    h2 {
        margin-bottom: 25px;
    }
    .items {
        display: flex;
        flex-direction: column;
        max-width: 1200px;
        .item {
            display: flex;
            padding: 15px 5px;
            border-bottom: 1px solid var(--c-light);
            transition: .2s linear;
            .key {
                font-size: 18px;
                margin-right: 20px;
            }
            .value {
                margin-left: auto;
                margin-right: 0;
                font-weight: var(--fw-medium);
                color: var(--c-primary);
                font-size: 20px;
            }
        }
    }
}
section.goods-slider {
    .head {
        display: grid;
        grid-template-columns: 800px 1fr;
        gap: 40px;
        margin-bottom: 40px;
        .navigation {
            display: flex;
            margin: auto 0 0 auto;
            .btn {
                background: var(--c-dark);
                width: 60px;
                min-width: 60px;
                height: 60px;
                border-radius: 40px;
                &.prev {
                    &::before {
                        content: '\e907';
                    }
                }
                &.next {
                    &::before {
                        content: '\e908';
                    }
                }
                &::before {
                    font-size: 14px;
                    font-family: icon;
                    color: var(--c-light);
                }
                &:last-child {
                    margin-left: 10px;
                }
            }
        }
    }
    .swiper-container {
        overflow: hidden;
        .item {
            padding-bottom: 20px;
            position: relative;
            a {
                position: absolute;
                width: 100%;
                height: 100%;
                left: 0;
                top: 0;
            }
            h3 {
                font-size: 24px;
                font-family: var(--font-secondary);
                margin: 20px 5px 15px 0;
                font-weight: var(--fw-regular);
            }
            .view {
                width: 100%;
                aspect-ratio: 1/1;
                border-radius: 20px;
                overflow: hidden;
                position: relative;
                img {
                    aspect-ratio: 1/1;
                    transition: .3s linear;
                }
                .label {
                    position: absolute;
                    height: 30px;
                    display: flex;
                    align-items: center;
                    font-size: 16px;
                    justify-content: center;
                    padding: 0 20px;
                    border-radius: 20px;
                    top: 15px;
                    right: 15px;
                    z-index: 9;
                    &.sale {
                        background: var(--c-primary);
                        color: var(--c-white);
                    }
                }
            }
            .price {
                display: flex;
                p {
                    color: var(--c-primary);
                    font-size: 22px;
                    font-weight: var(--fw-regular);
                }
                span {
                    margin-left: 15px;
                    position: relative;
                    font-size: 18px;
                    height: fit-content;
                    color: var(--c-gray);
                    &::after {
                        content: '';
                        position: absolute;
                        width: calc(100% + 10px);
                        height: 1px;
                        background: var(--c-gray);
                        top: 8px;
                        left: -5px;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 1759px) {
    .goods {
        gap: 80px;
        grid-template-columns: 1fr 1fr;
        .info {
            h1 {
                font-size: 42px;
            }
            .description {
                font-size: 16px;
            }
            .price {
                p {
                    font-size: 30px;
                }
                span {
                    font-size: 20px;
                    &::after {
                        top: 11px;
                    }
                }
            }
            .actions {
                .order {
                    margin-right: 20px;
                }
            }
        }
    }
    section.description {
        margin-top: 80px;
        p {
            font-size: 16px;
            margin-bottom: 15px;
        }
    }
    section.params {
        margin-top: 80px;
        h2 {
            margin-bottom: 20px;
        }
        .items {
            .item {
                padding: 13px 5px;
                .key {
                    font-size: 16px;
                }
                .value {
                    font-size: 18px;
                }
            }
        }
    }
    section.goods-slider {
        .head {
            .navigation {
                .btn {
                    width: 52px;
                    height: 52px;
                    min-width: 52px;
                }
            }
        }
        .swiper-container {
            .item {
                h3 {
                    font-size: 22px;
                }
                .price {
                    p {
                        font-size: 20px;
                    }
                    span {
                        font-size: 16px;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 1279px) {
    .goods {
        grid-template-columns: 1fr;
        gap: 40px;
        .view {
            display: flex;
            .main-img {
                margin-right: 10px;
                width: 100%;
                height: 100% !important;
                max-height: 500px;
                object-fit: contain;
                aspect-ratio: 1/1;
            }
            .controls {
                flex-direction: column;
                margin-top: 0;
                gap: 10px;
                img {
                    aspect-ratio: 1/1;
                    max-width: 140px;
                }
            }
        }
        .info {
            h1 {
                font-size: 36px;
            }
            .description {
                margin-bottom: 40px;
            }
            .actions {
                margin-top: 30px;
            }
            .price {
                p {
                    font-size: 24px;
                }
                span {
                    font-size: 18px;
                }
            }
        }
    }
    section.goods-slider {
        .head {
            grid-template-columns: auto auto;
            .navigation {
                .btn {
                    width: 44px;
                    height: 44px;
                    min-width: 44px;
                }
            }
        }
        .swiper-container {
            .item {
                h3 {
                    font-size: 20px;
                    margin: 20px 0 10px;
                }
                .price {
                    p {
                        font-size: 18px;
                    }
                    span {
                        font-size: 15px;
                    }
                }
                .view {
                    .label {
                        height: 26px;
                        padding: 0 15px;
                        font-size: 15px;
                    }
                }
            }
        }
        &.cross-sale {
            margin-top: 80px;
        }
    }
}
@media screen and (max-width: 767px) {
    .goods {
        display: flex;
        flex-direction: column;
        .view {
            flex-direction: column;
            width: 100%;
            .main-img {
                width: 100%;
                /* aspect-ratio: auto; */
                height: 400px;
            }
            .controls {
                width: 100%;
                flex-direction: row;
                margin-top: 10px;
                img {
                    margin: 0;
                    width: 100px;
                    height: 100px;
                }
            }
        }
        .info {
            h1 {
                font-size: 24px;
            }
            .description {
                font-size: 15px;
            }
            .actions {
                flex-direction: column;
                .order {
                    margin-right: 0;
                    margin-bottom: 10px;
                }
            }
        }
    }
    section.description {
        p {
            font-size: 15px;
        }
    }
    section.params {
        .items {
            .item {
                padding: 12px 0;
                .key {
                    font-size: 15px;
                }
                .value {
                    font-size: 15px;
                }
            }
        }
    }
    section.goods-slider {
        margin-top: 80px;
        .head {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 10px;
            .navigation {
                margin-top: 20px;
                margin-left: 0;
            }
        }
        .swiper-container {
            .item {
                h3 {
                    font-size: 22px;
                }
                .price {
                    p {
                        font-size: 20px;
                    }
                    span {
                        font-size: 16px;
                    }
                }
            }
        }
        &.cross-sale {
            margin-top: 60px;
        }
    }
}
@media screen and (hover: hover) {
    section.params {
        .items {
            .item {
                &:hover {
                    background: var(--c-dark);
                }
            }
        }
    }
    section.goods-slider {
        .swiper-container {
            .item:hover {
                .view {
                    img {
                        transform: scale(1.1);
                    }
                }
            } 
        }
    }
}