.custom-products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.custom-product-card {
    width: calc(100% / 7 - 10px);
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
}

.custom-product-card img {
    max-width: 100%;
    height: auto;
}

.custom-product-card .price {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* Кнопка WooCommerce */
.custom-product-card .button {
    margin-top: 10px;
    background: #0071a1;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
}

/* Мобильная версия: по 2 в ряд */
@media (max-width: 768px) {
    .custom-product-card {
        width: calc(50% - 10px);
    }
}
