/* Estilos para el sistema inteligente de productos */

/* Contenedor de productos con iconos */
.product-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.product-icon i {
    font-size: 24px;
    color: white;
}

.product-category-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Hover effects para productos con iconos */
.product-card.icon-only:hover .product-icon-container {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.product-card.icon-only:hover .product-icon {
    transform: scale(1.1);
}

/* Badge de categoría para productos con imagen */
.product-category-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.product-category-badge i {
    font-size: 14px;
    color: white;
}

/* Ajustes para productos con imagen */
.product-card.with-image .product-image-container {
    position: relative;
}

/* Mejoras en los filtros de categoría */
.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.category-btn i {
    font-size: 14px;
}

/* Mejoras en el botón de añadir al carrito */
.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-add-cart i {
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-icon {
        width: 50px;
        height: 50px;
    }
    
    .product-icon i {
        font-size: 20px;
    }
    
    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn-add-cart {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Animaciones suaves */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Estados de carga */
.product-icon-container.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}