.wp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wp-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--wp-line, #e1e6ed);
    border-radius: 18px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.wp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wp-shadow, 0 18px 40px rgba(31, 42, 58, .12));
}

.wp-product-image {
    display: grid;
    height: 228px;
    place-items: center;
    overflow: hidden;
    background: #fff;
}

.wp-product-image img {
    width: auto;
    height: auto;
    max-width: 84%;
    max-height: 78%;
    object-fit: contain;
    transition: transform .25s ease;
}

.wp-product-card:hover .wp-product-image img {
    transform: scale(1.035);
}

.wp-product-badge {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(32, 40, 54, .85);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
}

.wp-product-content {
    padding: 20px;
}

.wp-product-content h3 {
    margin: 0 0 6px;
    color: var(--wp-ink, #202836);
    font-size: 20px;
    font-weight: 750;
}

.wp-product-content p {
    min-height: 42px;
    margin: 0 0 16px;
    color: var(--wp-muted, #718097);
    font-size: 13px;
    line-height: 1.45;
}

.wp-product-link {
    color: var(--wp-blue, #326fbd);
    font-size: 13px;
    font-weight: 750;
}

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

@media (max-width: 640px) {
    .wp-product-grid {
        grid-template-columns: 1fr;
    }

    .wp-product-image {
        height: 260px;
    }
}
