.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: var(--ia-shadow-hover);
    transform: translateY(-2px);
}

.product-image-link {
    display: block;
    background-color: white;
    border-bottom: 1px solid var(--ia-border);
}

.product-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.product-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ia-border);
    padding: 30%;
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    padding: 12px;
}

@media (min-width: 576px) {
    .product-body {
        padding: 16px;
    }
}

.product-card .product-name {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    font-style: normal;
}

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

.product-name a:hover {
    color: var(--ia-green);
}

.product-description {
    color: var(--ia-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.product-price b {
    font-size: 1.15rem;
    color: var(--bs-heading-color);
}

.product-price-from,
.product-price-tag {
    color: var(--ia-muted);
    font-size: 0.85rem;
}

.product-card[hidden] {
    display: none;
}
