/* карточка товара (универсальная: используется в списках, сетках, слайдерах) */
.product-slider-card {
    padding: .75rem;
    padding-bottom: 1.625rem;
    text-align: center;
    height: 31rem;
    display: flex;
    flex-direction: column;
    border-radius: 1.2rem;
}

.product-slider-card .img__container {
    margin-bottom: 1.5rem;
    aspect-ratio: 1/1;
}

.product-slider-card h3 {
    font-size: var(--s17);
    font-weight: 500;
}

.product-slider-card__bottom-container {
    margin-top: auto;
}

/* кнопка действия */
.product__cta {
    display: block;
    font-size: var(--s15);
    font-weight: 500;
    width: 100%;
    background-color: #F2F2F2;
    border-radius: .31rem;
    padding: .5rem 1rem;
    margin-top: 1rem;
}

/* блок старой/новой цены и скидки */
.product-card__sale-container {
    position: relative;
    width: 100%;
}

.product-card__sale-container .product__old-price {
    margin-bottom: .1rem;
}

.product-card__sale-container .sale {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: inline-block;
    background-image: linear-gradient(90deg, #F83600, #F9D423 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: var(--s17);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

/* фолбэк для старых браузеров */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
    .product-card__sale-container .sale {
        color: #F83600;
    }
}

/* цены */
.product__old-price {
    text-decoration: line-through;
    font-size: var(--s18);
    font-weight: 700;
    color: rgba(84, 84, 84, 1);
    margin-bottom: .5rem;
}

.product__sale-price {
    font-size: var(--s22);
    font-weight: 700;
}

.product__price {
    font-size: var(--s18);
    font-weight: 700;
}

.top__container {
    position: relative;
}
.product-slider-card .btn__add-favourite {
    position: absolute;
    top:0;
    right: 0;
}
.product-slider-card .btn__add-favourite svg {
    width: 1.7rem;
    height: 1.7rem;
}
.product-slider-card .btn__add-favourite svg path { transition: fill .2s; }
.product-slider-card .btn__add-favourite.is-active svg path { fill: #e53033 !important; }