
.filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    padding: 0 5%;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
}

.filter-btn.active { 
    background: var(--accent); 
    color: black; 
    border-color: var(--accent); 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 400px; /* Asegura espacio mientras carga */
}

.product-card {
    background: var(--secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #000;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-info { 
    padding: 1.5rem; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.category-tag {
    display: inline-block;
    align-self: flex-start;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    border: 1px solid var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.product-info h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: #fff; }
.product-desc { color: #888; font-size: 0.85rem; margin-bottom: 1.5rem; line-height: 1.4; }

@media (max-width: 600px) {
    .product-grid { 
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        padding: 0 1.5rem 4rem; 
    }
    .product-image-container { height: 220px; }
}

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