.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.product-card__image {
    display: block;
    overflow: hidden;
    background: var(--bnd-light);
    text-decoration: none;
}

.product-card__image img {
    --product-image-x: 0px;
    --product-image-y: 0px;
    --product-image-scroll-y: 0px;
    --product-image-scale: 1;
    width: auto;
    min-width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    transform: translate3d(var(--product-image-x), calc(var(--product-image-y) + var(--product-image-scroll-y)), 0) scale(var(--product-image-scale));
    transition: transform 0.8s cubic-bezier(0.2, 0.5, 0, 1);
    will-change: transform;
}

.product-card:focus-visible,
.product-card__image img:focus-visible {
    outline: none;
}

.product-card:hover .product-card__image img {
    --product-image-scale: 1.2;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    .product-card__image img {
        --product-image-x: 0px;
        --product-image-y: 0px;
        --product-image-scroll-y: 0px;
        --product-image-scale: 1;
        transition: none;
        will-change: auto;
    }
}

.product-card__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.product-card__title {
	position: relative;
    width: fit-content;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    /*text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;*/
    text-transform: uppercase;
    /* цвет «протекает» слева направо: левая половина — оранжевая,
       правая — базовый цвет; сдвигаем позицию фона на ховер */
    background-image: linear-gradient(
        to right,
        rgb(227, 79, 0) 50%,
        currentColor 50%
    );
    background-size: 200% 100%;
    background-position: 100% 0; /* по умолчанию видна базовая половина */
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.45s ease;
    padding-bottom: 10px;
    margin-bottom: -10px;
    overflow: hidden;
}

/* подчёркивание, которое рисуется слева направо */
.product-card__title::before,
.product-card__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 1px;
    background: var(--bnd-black);
    transform-origin: left center;
    transition: transform 0.45s ease;
}

.product-card__title::after {
    background: var(--bnd-orange);
     transform: scaleX(0);
}

.product-card:hover .product-card__title,
.product-card:focus-visible .product-card__title {
    background-position: 0 0; /* оранжевая половина заезжает слева направо */
}

.product-card:hover .product-card__title::before,
.product-card:focus-visible .product-card__title::before {
    transform: translateX(100%);
}

.product-card:focus-visible .product-card__title::after {
    transform: scaleX(1);
}

.btn--order svg {
    display: block;
    flex: 0 0 auto;
}

.btn--order svg path {
    stroke: currentColor;
}

.product-card__tags {
    display: none;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--bnd-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.product-card__price {
    font-size: 13px;
    font-weight: 500;
}

.product-card__badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    gap: 6px;

    img {
        display: block;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: contain;
    }
}

.product-card__badge {
    position: relative;
    display: block;
    line-height: 0;
}

/* текст тултипа */
.product-card__badge::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 3;
    padding: 4px 8px;
    background: var(--bnd-black, #1a1a1a);
    color: var(--bnd-white, #fff);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* стрелочка тултипа */
.product-card__badge::before {
    content: "";
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    z-index: 3;
    border: 4px solid transparent;
    border-bottom-color: var(--bnd-black, #1a1a1a);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card__badge:hover::after,
.product-card__badge:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (min-width: 600px) {
    .product-card__title {
        font-size: 24px;
        line-height: 1.33;
    }

    .product-card__tags {
        display: flex;
    }

    .product-card__tags,
    .product-card__price,
    .btn--order {
        font-size: 15px;
    }

    .product-card__badges {
        top: 20px;
        right: 20px;
        gap: 10px;

        img {
            width: 48px;
            height: 48px;
        }
    }
}
