/* Product Card Enhancements */
.products-grid,
.products-grid-3 {
    display: grid;
    /* Increase min-width from 160px to 220px/200px for larger cards */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px;
}

@media(max-width: 768px) {

    .products-grid,
    .products-grid-3 {
        display: block !important;
        /* Disable Grid */
        column-count: 2;
        column-gap: 10px;
    }

    .products-grid .product-card,
    .products-grid-3 .product-card {
        display: inline-block;
        /* Essential for break-inside to work */
        width: 100%;
        margin-bottom: 10px;
        break-inside: avoid;
        /* Prevent card from splitting */
        vertical-align: top;
    }
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
    /* Ensure border is consistent */
}

/* Hover Effect: Box Shadow & Subtle Lift */
.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    z-index: 2;
    /* Bring to front on hover if overlapped */
}


.product-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

/* Moved from collection.php to avoid inline style conflicts */
.filter-chip {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    /* Ensure they behave like buttons */
}

.filter-chip.active {
    background: #e0f2f1;
    color: #00796b;
    font-weight: bold;
}