/**
 * Estilos para componentes modulares
 */

/* Filter Menu */
.filter-menu-container {
    margin-bottom: 2rem;
}

.filter-menu {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 15px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-menu img {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
    object-fit: cover;
}

.filter-menu img:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.filter-menu img:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-color: var(--primary-color);
}

.filter-menu img[aria-pressed="true"],
.filter-menu img.active {
    border-color: var(--primary-color);
    border-width: 3px;
}

/* Botón Reset */
#reset-filter {
    align-self: center;
    margin-left: auto;
}

@media (max-width: 768px) {
    .filter-menu {
        gap: 10px;
        padding: 10px;
    }
    
    .filter-menu img {
        width: 60px;
        height: 60px;
    }
    
    #reset-filter {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

/* Footer */
.versalshop-footer {
    margin-top: 4rem;
    border-top: 1px solid #dee2e6;
}

.versalshop-footer h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.versalshop-footer a {
    text-decoration: none;
    transition: var(--transition);
}

.versalshop-footer a:hover {
    text-decoration: underline;
}

/* Header */
.versalshop-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

/* Product Card específicos */
.product-item {
    position: relative;
    transition: var(--transition);
}

.product-item .card {
    height: 100%;
}

.product-item .card-body {
    display: flex;
    flex-direction: column;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

