.product__photo.slider-for {
    margin-bottom: 5px;
}

.product__photo .product__photo-slide {
    text-align: center;
}

.product__photo .product__photo-slide img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product__thumbs {
    margin: 0 -5px 20px;
}

.product__thumbs.slick-slider {
    padding: 0 20px;
}

.product__thumbs .slick-list {
    margin: 0 -5px;
}

.product__thumbs .slick-prev,
.product__thumbs .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    font-size: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 2;
}

.product__thumbs .slick-prev::before,
.product__thumbs .slick-next::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #394045;
    border-right: 2px solid #394045;
}

.product__thumbs .slick-prev {
    left: 0;
}

.product__thumbs .slick-prev::before {
    transform: rotate(-135deg);
}

.product__thumbs .slick-next {
    right: 0;
}

.product__thumbs .slick-next::before {
    transform: rotate(45deg);
}

.product__thumb {
    padding: 0 5px;
    cursor: pointer;
    outline: none;
}

.product__thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 1px solid transparent;
    transition: border-color .2s linear;
}

.product__thumb.slick-current img,
.product__thumb:hover img {
    border-color: #d24545;
}
.product_info_text{
    text-align: center;
    margin-bottom: 10px;
    color: #8c8c8c;
}
@media (max-width: 768px) {
    .product__photo .product__photo-slide img {
        max-height: 350px;
    }

    .product__thumb img {
        height: 60px;
    }
}

/* увеличение фото товара по клику */
.product__photo .js-photo-zoom {
    cursor: zoom-in;
}

body.product-lightbox-open {
    overflow: hidden;
}

.product-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, .9);
    align-items: center;
    justify-content: center;
}

.product-lightbox.is-open {
    display: flex;
}

.product-lightbox__img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
}

.product-lightbox__close,
.product-lightbox__nav {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: .75;
    transition: opacity .15s;
    padding: 10px;
}

.product-lightbox__close:hover,
.product-lightbox__nav:hover {
    opacity: 1;
}

.product-lightbox__close {
    top: 15px;
    right: 20px;
    font-size: 40px;
}

.product-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
}

.product-lightbox__nav--prev {
    left: 15px;
}

.product-lightbox__nav--next {
    right: 15px;
}

.product-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 15px;
    opacity: .75;
}

.product-lightbox [hidden] {
    display: none;
}

@media (max-width: 768px) {
    .product-lightbox__img {
        max-width: 96vw;
    }

    .product-lightbox__nav {
        font-size: 40px;
    }

    .product-lightbox__close {
        font-size: 32px;
        top: 8px;
        right: 10px;
    }
}
