.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #dedbd8;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.09);
}

.product-card__image-link {
    color: inherit;
    text-decoration: none;
}

.product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 205px;
    overflow: hidden;
    border-radius: 12px;
    background: #faf9f8;
}

.product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

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

.product-card__title {
    display: -webkit-box;
    min-height: 50px;
    overflow: hidden;
    color: #1f1d1b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-card__title:hover {
    color: #1f1d1b;
    text-decoration: none;
}

.product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    min-height: 30px;
    color: #1f1d1b;
}

.product-card__price-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.product-card__price-unit,
.product-card__price-request {
    color: #687083;
    font-size: 12px;
    font-weight: 700;
}

.product-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #8a8783;
    font-size: 11px;
}

.product-card__article {
    font-weight: 700;
}

.product-card__stock {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}

.product-card__stock--available {
    color: #137047;
    background: #e9f8f0;
}

.product-card__stock--waiting {
    color: #9b5a00;
    background: #fff3df;
}

.product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 4px;
}

.product-card__add,
.product-card__remove {
    width: 100%;
    min-height: 36px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.product-card__add {
    border: 1px solid #000000;
    background: #000000;
    color: #fff;
}

.product-card__add:hover {
    background: #fff;
    color: #000000;
}

.product-card__remove {
    background: #ececec;
    color: #1f1d1b;
}

.product-card__remove:hover {
    background: #ffe9e9;
    color: #b3261e;
}

.product-card__cart-control {
    display: grid;
    grid-template-columns: 38px minmax(52px, 1fr) 38px;
    width: 100%;
    height: 36px;
    overflow: hidden;
    border: 1px solid #dedbd8;
    border-radius: 8px;
    background: #fff;
}

.product-card__qty-button,
.product-card__qty-input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
}

.product-card__qty-button {
    cursor: pointer;
    background: #ececec;
    color: #1f1d1b;
    font-weight: 700;
}

.product-card__qty-button:hover {
    background: #e4e0db;
    color: #1f1d1b;
}

.product-card__qty-input {
    color: #1f1d1b;
    font-weight: 700;
    outline: none;
}

.product-card__qty-input::-webkit-inner-spin-button,
.product-card__qty-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.product-card__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    color: #1f1d1b;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(7px);
    cursor: pointer;
}

.product-card__favorite.fas-heart,
.fas-heart .fas {
    color: #d92332;
}

.product-card--cart-page,
.product-card--favorite-page {
    width: min(100%, 300px);
}

.carts {
    align-items: flex-start;
}

.product-card.cart-anim {
    animation: product-card-pulse .8s ease forwards;
}

@keyframes product-card-pulse {
    0% {
        box-shadow: 0 10px 30px rgba(23, 32, 48, 0.06);
        transform: translateY(0);
    }

    45% {
        box-shadow: 0 20px 44px rgba(45, 67, 199, 0.24);
        transform: translateY(-4px) scale(1.02);
    }

    100% {
        box-shadow: 0 10px 30px rgba(23, 32, 48, 0.06);
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .product-card {
        gap: 8px;
        padding: 8px;
        border-radius: 12px;
    }

    .product-card__image {
        height: 200px;
        border-radius: 12px;
    }

    .product-card__title {
        min-height: 47px;
        font-size: 12px;
    }

    .product-card__price-value {
        font-size: 20px;
    }

    .product-card__cart-control {
        grid-template-columns: 36px minmax(46px, 1fr) 36px;
        height: 38px;
    }
}
