/* Product Cards - Clean Layout */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Image container */
.product-card > div:first-child {
    height: 224px;
    min-height: 224px;
    flex-shrink: 0;
    overflow: hidden;
}

/* Content container */
.product-card .p-6 {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

/* Title */
.product-card h3 {
    min-height: 3.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    margin-bottom: 0.5rem;
}

/* Description */
.product-card p {
    min-height: 5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    margin-bottom: 1rem;
}

/* Bottom section */
.product-card .mt-auto {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Variation Select */
.variation-select {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
}

.variation-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* WhatsApp Button */
.whatsapp-button {
    display: flex;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #1e3a8a;
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.whatsapp-button:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Label */
.product-card label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Grid */
#products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    #products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .product-card {
        min-height: 500px;
    }
    
    .product-card h3 {
        font-size: 1.125rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Filtered state - quando filtrado */
.product-card.filtered-out {
    display: none !important;
}

.product-card.filtered-in {
    display: flex;
    animation: fadeInUp 0.4s ease-out;
}