.product__specs{
    display: flex;
    gap: 72px;
    margin-bottom: 72px;
}

.product__gallery{
    width: 43%;
}

.product__thumbs{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    user-select: none;
}

.product__thumbs::-webkit-scrollbar{
    width: 0;
    height: 0;
}

.product__preview{
    position: relative;
    border-radius: 12px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    cursor: pointer;
}

.product__preview > img, .product__thumb > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product__thumb{
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-width: 120px;
    transition: .15s;
    cursor: pointer;
}

.product__thumb:hover{
    border-color: var(--hightlight);
}

.product__model{
    display: block;
    font-weight: 200;
    font-size: 14px;
    line-height: 16px;
    color: var(--secondary-text);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

#product-info .product__info{
    padding: 0;
    width: 100%;
}

#product-info .product__info > .main-title{
    margin-bottom: 12px;
}

.section{
    margin-bottom: 48px;
}

.section__name{
    display: flex;
    font-size: 18px;
    line-height: 21px;
    color: var(--main-dark);
    margin-bottom: 24px;
}

.chars{
    margin-bottom: 24px;
}

.char{
    display: flex;
    gap: 4px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.char:last-child{
    margin-bottom: 0;
}

.char__name, .char__value{
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
    color: var(--secondary-text);
}

.char__value{
    font-weight: 400;
    color: var(--main-dark);
}

.desc{
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
    color: var(--secondary-text);
    margin-bottom: 24px;
}

.desc > p:last-child{
    margin-bottom: 0;
}

.option__group:not(:last-child){
    margin-bottom: 12px;
}

.option{
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--secondary-text);
}

.option > span:first-child{
    display: flex;
    align-items: center;
}

.option__price{
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: var(--border-color);
    transition: .15s color;
}

.option.checked > .option__price{
    color: var(--accent-color);
}

.option__values{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#form-product .product__price, .options{
    margin-bottom: 24px;
}

#form-product .product__price .price-new{
    font-size: 36px;
    line-height: 42px;
}

#form-product .cart-btn{
    min-width: 240px;
    justify-content: center;
}

.product__about .text, #chars .chars{
    column-count: 2;
    column-gap: 24px;
}

#chars .chars{
    margin-bottom: 0;
}

.product__about .main-title{
    margin-bottom: 24px;
}

.product__about + .product__about{
    margin-top: 36px;
}

.category{
    background-color: var(--secondary-bg);
}

.category__products, .category .text{
    margin-bottom: 36px;
}

.category .link{
    margin: 0 auto;
}

.product__price .price-new + .price-old{
    margin-left: 10px;
}

.product__name.mobile{
    display: none;
}

.modal__gallery{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    padding: 24px;
    display: none;
    gap: 36px;
    flex-direction: row-reverse;
    background-color: #fff;
}

.modal__gallery.active{
    display: flex;
}

.gallery__slider{
    width: 60%;
    margin: 0 auto;
}

.thumbs__wrapper{
    position: relative;
    width: 6%;
    height: 55%;
    margin: auto 0;
}

.gallery__thumbs{
    height: 100%;
    user-select: none;
}

.gallery__thumbs .swiper-slide{
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.gallery__thumbs .swiper-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbs__wrapper .swiper-button-next{
    top: calc(100% + 12px);
    right: 50%;
    transform: rotate(90deg) translateY(-50%);
}

.thumbs__wrapper .swiper-button-prev{
    top: -24px;
    left: 50%;
    transform: rotate(90deg) translateY(50%);
}

.swiper-button-next, .swiper-button-prev, .swiper-button-next:after, .swiper-button-prev:after{
    margin-top: 0;
    --swiper-navigation-size: 24px;
    height: 24px;
    width: 24px;
    color: var(--secondary-text);
}

.gallery__slider .swiper-slide img{
    height: 100%;
    display: block;
    margin: 0 auto;
}

#close-gallery{
    top: 24px;
    right: 24px;
    z-index: 17;
    position: absolute;
}

.gallery__slider .swiper-pagination{
    display: none;
}

@media(max-width: 1300px){
    .product__specs{
        gap: 48px;
    }
    .modal__gallery{
        gap: 12px;
    }
    .gallery__slider{
        width: 80%;
    }
    .thumbs__wrapper{
        width: 10%;
    }
    .gallery__slider .swiper-slide{
        display: flex;
    }
    .gallery__slider .swiper-slide img{
        max-width: 100%;
        object-fit: contain;
    /*    height: auto;*/
        margin: auto;
    }
}

@media(max-width: 767px){
    .product__specs{
       margin-bottom: 36px;
       flex-direction: column;
    }
    .product__gallery, .gallery__slider {
        width: 100%;
    }
    .section__name, .option__price{
        font-size: 16px;
        line-height: 19px;
    }
    .desc, .char__name, .char__value{
        font-size: 14px;
        line-height: 16px;
    }
    #form-product .section{
        margin-bottom: 0;
    }
    .product__about .text, #chars .chars{
        column-count: 1;
    }
    #form-product .product__price .price-new{
        font-size: 24px;
        line-height: 28px;
    }
    .product__model{
        padding: 0;
        border: none;
        margin-bottom: 36px;
    }
    .form-radio + label, .option > span:first-child{
        font-size: 12px;
        line-height: 14px;
    }
    .product__info .product__model, .product__info .main-title, .thumbs__wrapper{
        display: none;
   }
    .product__name.mobile{
        display: block;
    }
    .product__name.mobile .main-title{
        margin-bottom: 12px;
    }
    #close-gallery > svg{
        width: 24px;
        height: 24px;
    }
    .gallery__slider .swiper-pagination{
        display: flex;
    }
    .gallery__slider > .swiper-wrapper{
        max-height: 99%;
    }
}