.zf-product-grid {
    --zf-columns: 4;
    --zf-card-bg: #f7f3eb;
    --zf-accent: #6d315f;
    --zf-text: #17152a;
    display: grid;
    grid-template-columns: repeat(var(--zf-columns), minmax(0, 1fr));
    gap: clamp(18px, 2vw, 48px);
    width: 100%;
}

.zf-product-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--zf-card-bg);
    box-shadow: 0 18px 42px rgba(38, 30, 18, 0.08);
    color: var(--zf-text);
}

.zf-product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4dfcd;
}

.zf-product-card__image-link,
.zf-product-card__image-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.zf-product-card__image-link img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.zf-product-card:hover .zf-product-card__image-link img {
    transform: scale(1.035);
}

.zf-product-card__delivery,
.zf-product-card__sale-pill {
    position: absolute;
    z-index: 2;
    color: #fff;
    line-height: 1;
    font-weight: 700;
}

.zf-product-card__delivery {
    top: 20px;
    right: 18px;
    padding: 9px 13px;
    border-radius: 8px;
    background: var(--zf-accent);
    font-size: clamp(14px, 1.15vw, 22px);
}

.zf-product-card__sale-pill {
    left: 14px;
    bottom: 12px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--zf-accent);
    font-size: 14px;
    letter-spacing: 0.03em;
}

.zf-product-card__content {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    padding: 28px 28px 24px;
    text-align: center;
}

.zf-product-card__title {
    margin: 0;
    font-size: clamp(18px, 1.3vw, 25px);
    line-height: 1.25;
    font-weight: 500;
}

.zf-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.zf-product-card__brand {
    margin-top: 12px;
    color: #8b8585;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.zf-product-card__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 24px;
    margin-top: 14px;
}

.zf-product-card__stars {
    --zf-rating: 0;
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 4px;
}

.zf-product-card__stars::before {
    content: "★★★★★";
    color: #d9d3cf;
}

.zf-product-card__stars::after {
    content: "★★★★★";
    position: absolute;
    inset: 0 auto 0 0;
    width: calc((var(--zf-rating) / 5) * 100%);
    overflow: hidden;
    color: #201b2d;
    white-space: nowrap;
}

.zf-product-card__review-count {
    font-size: 14px;
}

.zf-product-card__price {
    min-height: 52px;
    margin-top: 18px;
    font-size: 20px;
    line-height: 1.35;
}

.zf-product-card__price del {
    display: inline-block;
    margin-right: 8px;
    color: #666;
    font-size: 0.78em;
    opacity: 1;
}

.zf-product-card__price ins {
    display: block;
    color: var(--zf-text);
    text-decoration: none;
}

.zf-product-card__price ins::before {
    content: "SALE";
    display: inline-block;
    margin-right: 8px;
    padding: 3px 8px;
    border-radius: 2px;
    background: #ff2d2d;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    vertical-align: middle;
}

.zf-product-card__action {
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
}

.zf-product-card__button.button {
    display: inline-flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #85818a;
    border-radius: 14px;
    background: #fff;
    color: var(--zf-text);
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    transition: 0.2s ease;
}

.zf-product-card__button.button:hover,
.zf-product-card__button.button:focus {
    border-color: var(--zf-accent);
    background: var(--zf-accent);
    color: #fff;
}

@media (max-width: 1100px) {
    .zf-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .zf-product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .zf-product-card__content {
        min-height: 270px;
        padding: 22px 20px 20px;
    }
}
