/* ========================================
   CATEGORY PAGE - Modern Blue Design
   ======================================== */

/* Category Hero Section */
.category-hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: var(--gradient-dark, linear-gradient(135deg, #001F3F 0%, #0A1628 100%));
    overflow: hidden;
}

.category-hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.hero-gradient-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0066FF 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: orbFloat 8s infinite ease-in-out;
}

.hero-gradient-orb.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00B8FF 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: orbFloat 8s infinite ease-in-out 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.category-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item:hover {
    color: #00D4FF;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
    color: #00D4FF;
    font-weight: 600;
}

/* Category Title */
.category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
    animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.category-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 184, 255, 0.15);
    border: 1px solid rgba(0, 184, 255, 0.3);
    border-radius: 50px;
    color: #00D4FF;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* ========================================
   FILTER SECTION - Modern Design
   ======================================== */

.filter-section-modern {
    padding: 3rem 0;
    background: #F9FAFB;
}

/* Search Bar */
.search-bar-container {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.search-form-modern {
    display: flex;
    gap: 1rem;
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.search-form-modern:focus-within {
    border-color: #0066FF;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #9CA3AF;
    pointer-events: none;
}

.search-input-modern {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    transition: all 0.3s;
    background: #F9FAFB;
}

.search-input-modern:focus {
    outline: none;
    border-color: #0066FF;
    background: #FFFFFF;
}

.search-input-modern::placeholder {
    color: #9CA3AF;
}

.search-clear {
    position: absolute;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s;
}

.search-clear:hover {
    background: #E5E7EB;
    color: #374151;
}

.btn-search-modern {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    white-space: nowrap;
}

.btn-search-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}

/* Filters Container */
.filters-container {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.08);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #F3F4F6;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.filter-title svg {
    color: #0066FF;
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #FEE2E2;
    color: #DC2626;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-clear-filters:hover {
    background: #FCA5A5;
}

/* Filter Group */
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
}

.filter-group-label svg {
    color: #6B7280;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: #F3F4F6;
    color: #4B5563;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    animation: chipFadeIn 0.4s ease-out backwards;
}

@keyframes chipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter-chip:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-chip.active {
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    color: #FFFFFF;
    border-color: #0066FF;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ========================================
   PRODUCTS LISTING
   ======================================== */

.products-listing-section {
    padding: 4rem 0;
    background: #FFFFFF;
}

.search-results-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.search-term {
    color: #0066FF;
}

.results-count {
    font-size: 1.125rem;
    color: #6B7280;
}

/* Products Grid */
.products-grid-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card-category {
    animation: productFadeIn 0.5s ease-out calc(var(--card-index) * 0.05s) backwards;
}

@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-card-inner-category {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #E5E7EB;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-category:hover .product-card-inner-category {
    border-color: #0066FF;
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.15);
    transform: translateY(-8px);
}

.product-image-wrapper-category {
    position: relative;
    padding-top: 75%;
    background: #F9FAFB;
    overflow: hidden;
}

.product-image-category {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-category:hover .product-image-category {
    transform: scale(1.1) rotate(2deg);
}

.image-overlay-category {
    position: absolute;
    inset: 0;
    background: rgba(0, 31, 63, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card-category:hover .image-overlay-category {
    opacity: 1;
}

.quick-view-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #FFFFFF;
    color: #0066FF;
    border-radius: 10px;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.product-card-category:hover .quick-view-text {
    transform: translateY(0);
}

.product-badge-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    z-index: 10;
}

/* Product Content */
.product-content-category {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-model-category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: #E6F2FF;
    color: #0066FF;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.875rem;
    width: fit-content;
}

.product-title-category {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.product-card-category:hover .product-title-category {
    color: #0066FF;
}

.product-description-category {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-footer-category {
    padding-top: 1rem;
    border-top: 2px solid #F3F4F6;
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0066FF;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.view-details-btn svg {
    transition: transform 0.3s;
}

.product-card-category:hover .view-details-btn svg {
    transform: translateX(4px);
}

/* ========================================
   NO RESULTS STATE
   ======================================== */

.no-results-container {
    text-align: center;
    padding: 6rem 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.no-results-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border-radius: 50%;
    color: #9CA3AF;
}

.no-results-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.no-results-text {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.btn-reset-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .products-grid-category {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .category-title {
        font-size: 2.5rem;
    }
    
    .products-grid-category {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 6rem 0 4rem;
    }
    
    .category-title {
        font-size: 2rem;
        flex-direction: column;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .search-form-modern {
        flex-direction: column;
    }
    
    .btn-search-modern {
        width: 100%;
        justify-content: center;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .products-grid-category {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .category-title {
        font-size: 1.75rem;
    }
    
    .filters-container {
        padding: 1.5rem;
    }
    
    .filter-chips {
        gap: 0.5rem;
    }
    
    .filter-chip {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}