/* Индикатор наличия вынесен в in-stock.css (рендерится showInStock() + Tools\Icons) */
/*бейдж скидка*/
/*страница товара*/


/*общий список*/
.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;
}

/*временно*/
@media (max-width: 400px) {
    .product-card__stock  {
        right: -4px;
    }

    .product-card__stock::after {
        content: none;
    }
} 


/*Квадратные изображения в слайдере похожих товаров 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%;
} 




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

/**/

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

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

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


    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;
    }





} 
