/* INNOVAI Category - Specific Styles */
/* Estilos específicos para las páginas de categoría */

.breadcrumbs-section {
    background: var(--bg-secondary);
    padding: 1rem 0;
}

/* Category Header */
.category-header {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
}

.category-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.category-header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.category-header-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Quick Filters */
.quick-filters {
    background: var(--bg-primary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-filters-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quick-filters-content h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.quick-filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.quick-filter-btn:hover,
.quick-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-filter-btn i {
    font-size: 1rem;
}

/* Category Main */
.category-main {
    padding: 2rem 0 4rem;
    background: var(--bg-secondary);
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Category Filters */
.category-filters {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.filters-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.clear-filters-btn {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.clear-filters-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Filter Sections */
.filter-section {
    margin-bottom: 2rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-fast);
    position: relative;
}

.filter-option:hover {
    background: var(--bg-secondary);
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    position: relative;
    transition: all var(--transition-fast);
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 0.75rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-label {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Price Range */
.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-align: center;
}

.price-separator {
    color: var(--text-secondary);
    font-weight: 600;
}

.price-slider {
    position: relative;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Specifications Filter */
.spec-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.spec-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.spec-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.spec-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Category Products */
.category-products {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.products-info h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.products-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-container label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-width: 150px;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card.list-view {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
}

.product-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.product-card.list-view .product-image-container {
    margin-bottom: 0;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.product-card.list-view .product-image {
    width: 150px;
    height: 150px;
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--border-radius-md);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-info {
    flex: 1;
}

.product-category {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.product-footer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-card.list-view .product-footer {
    flex-direction: column;
    align-items: stretch;
}

/* Loading and Empty States */
.loading-state,
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.no-results-icon i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.no-results h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.no-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Featured Brands */
.featured-brands {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.brand-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.brand-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.brand-card h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.brand-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Category CTA */
.category-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-filters {
        position: static;
        max-height: none;
        order: 2;
    }
    
    .category-products {
        order: 1;
    }
}

@media (max-width: 768px) {
    .category-header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .category-header-text h1 {
        font-size: 2rem;
        justify-content: center;
    }
    
    .category-stats {
        justify-content: center;
    }
    
    .quick-filters-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .quick-filter-buttons {
        justify-content: center;
    }
    
    .products-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .products-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .sort-container {
        justify-content: space-between;
    }
    
    .view-toggle {
        align-self: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .product-card.list-view {
        flex-direction: column;
        text-align: center;
    }
    
    .product-card.list-view .product-image {
        width: 100%;
        height: 200px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .category-main {
        padding: 1rem 0 2rem;
    }
    
    .category-products {
        padding: 1rem;
    }
    
    .category-filters {
        padding: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-footer {
        flex-direction: column;
    }
    
    .quick-filter-buttons {
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .category-header-text h1 {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animations */
.product-card {
    animation: fadeInUp 0.4s ease-out;
}

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

.filter-section {
    animation: fadeInLeft 0.3s ease-out;
}

/* Custom Scrollbar for Filters */
.category-filters::-webkit-scrollbar {
    width: 6px;
}

.category-filters::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.category-filters::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.category-filters::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
