.in-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    border-top: 1px solid #f3f3f3;
    border-bottom: 1px solid #f3f3f3;
    margin: 0 0 10px 0;
    padding: 5px 0;
}

.in-stock svg {
    width: 8px;
    height: 8px;
}

.in-stock svg.green-dot {
    fill: #599c28;
}

.in-stock svg.grey-dot {
    fill: #aaaaaa;
}

.in-stock svg.orange-dot {
    fill: #eb8c18;
}

.in-stock span {
    font-weight: bold;
}


/*бейдж скидка*/
/*страница товара*/


.product-media__label
{
    font-size: 14px; 
    line-height: 1;
    position: absolute;
    top: 7px;
    right: -9px;
    padding: 5px 13px 5px 8px;
    color: #fff;
    background-color: #e40606;
    z-index: 1;
}
.product-media__label:after
{
    position: absolute;
    bottom: -9px;
    right: 0;
    transform: rotate(270deg);
    width: 0;
    height: 0;
    content: '';
    border-width: 0 9px 9px 0;
    border-style: solid;
    border-color: transparent #e40606 transparent transparent;
}
.product-media__label .icon-svg
{
    display: inline;

    margin-right: 3px; 

    vertical-align: middle;

    fill: #fff;
}
.product-media__label span
{
    vertical-align: middle;
}



/*общий список*/
.product-card__stock
{
    font-size: 14px; 
    line-height: 1;
    position: absolute;
    top: 7px;
    right: -9px;
    padding: 5px 13px 5px 8px;
    color: #fff;
    background-color: #e40606;
}


.product-card__stock::after
{
    position: absolute;
    bottom: -9px;
    right: 0;
    transform: rotate(270deg);
    width: 0;
    height: 0;
    content: '';
    border-width: 0 9px 9px 0;
    border-style: solid;
    border-color: transparent #e40606 transparent transparent;
}


/*Квадратные изображения в слайдере похожих товаров 28.02.2025*/
a.product-card__img {
    width: 100%;
    height: 286px;
    aspect-ratio: 1 / 1;
}

a.product-card__img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (max-width: 768px) {
    a.product-card__img {
        max-width: 100%;
    }
} 

/*Квадратные изображения в списке товаров 28.02.2025*/
 div.product-card a.product-card__img {
     max-height: 100%;
} 




/*Квардратные изображения, разработка от 28.02.2025*/
/* Основное изображение */
.product-media__slider {
	width: 100%;
	max-width: 405px;
	height: auto;
	position: relative;
	margin: 0 0 10px;
	overflow: hidden;
}

 .product-media__slider-item {
 	width: 100%;
	max-width: 405px;
	height: auto; 
	aspect-ratio: 1/1;
}

.product-media__slider-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


/*Превью*/
.product-media__previews {
	font-size: 0;
	line-height: 0;
	margin: 0 -8px;
	padding: 0 0 16px 0;
	white-space: nowrap;
}

.product-media__previews-item {
	display: inline-block;
	padding: 0 8px;
	vertical-align: top;
}

.product-media__previews-item.slick-current .product-media__photo-link {
	border-color: #337516;
}

.product-media__photo-link {
	display: block;
	width: 56px;
	height: 56px;
	cursor: pointer;
	-webkit-transition: border-color .3s ease-in-out;
	-o-transition: border-color .3s ease-in-out;
	transition: border-color .3s ease-in-out;
	border: 1px solid #f3f3f3;
}

.product-media__photo-link:hover {
	border-color: #337516;
}

.product-media__photo-link img {
	display: block;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: center;
	object-position: center;
}

.product-media__video-link {
	position: relative;
	display: block;
	width: 56px;
	height: 56px;
}

.product-media__video-link:before {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	content: '';
	border-radius: 20%;
	background: rgba(207, 0, 15, .65);
}

.product-media__video-link:after {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	margin: -5px 0 0 -2px;
	content: '';
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid #fff;
}

.product-media__video-link img {
	display: block;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: center;
	object-position: center;
}

div.answer {
	min-width: 80%;
	max-width: 80%;
}

/**/

@media (min-width: 430px) and (max-width: 1024px) {

	div.product-media {
		position: relative;
		width: fit-content;
		margin: 0 auto;
	}

	div.product-media__image {
		position: relative;
		width: fit-content;
	}

	div.product-media__previews.js-product-slider-preview.slick-initialized.slick-slider {
		position: absolute;
		left: 0;
		top: 100%;
		width: auto;
	}

	div.wrapper-media {
		padding-bottom: 70px;
	}

}


/*фикс слайдеров в разделе похожих товаров*/

@media (max-width: 768px) {
    div.product-card__actions {
        display: flex;
        flex-direction: column;
    }

    div.product-card a.product-card__img {
        height: fit-content;
    }

    .products-slider__slider .slick-slide {
        padding: 0 10px;
    }

    dl.product-card__params {
        display: flex;
        flex-direction: column;
    }

    div.product-card__actions-left, 
    div.product-card__actions-right,
    div.product-card__inputs,
    dd.product-card__params-descr,
    dt.product-card__params-term
    {
        width: 100%;
    }

    div.product-card__actions-right {
        margin-top: 16px;
        padding: 0;
    }

    div.product-card__actions {
        position: unset;
    }

    div.product-card {
        padding-bottom: 16px;
    }


} 

@media (max-width: 400px) {

    div.product-card a.product-card__img {
        height: fit-content;
    }
    

 

    .products-slider__slider .slick-slide {
        padding: 0 3px;
    }

} 
