/* ========================================
   PRODUCTS PAGE - Modern Professional Design
   ======================================== */

/* Products Hero Section */
.products-hero {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #001F3F 0%, #0A1628 100%);
    overflow: hidden;
}

.products-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(80px);
    opacity: 0.3;
}

.hero-gradient-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0066FF 0%, transparent 70%);
    top: -200px;
    right: 10%;
    animation: orbFloat 8s infinite ease-in-out;
}

.hero-gradient-orb.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #00B8FF 0%, transparent 70%);
    bottom: -150px;
    left: 10%;
    animation: orbFloat 8s infinite ease-in-out 3s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.products-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-nav-products {
    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;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #00D4FF;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
    color: #00D4FF;
    font-weight: 600;
}

.products-hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.title-line {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.1;
}

.title-highlight {
    background: linear-gradient(135deg, #00B8FF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.products-stats {
    display: inline-flex;
    gap: 2rem;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item-hero {
    text-align: center;
}

.stat-number-hero {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00B8FF 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label-hero {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.stat-divider-hero {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   CATEGORIES QUICK FILTER
   ======================================== */

.categories-quick-filter {
    padding: 2rem 0;
    background: #FFFFFF;
    border-bottom: 2px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
}

.categories-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-nav-btn {
    width: 40px;
    height: 40px;
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.slider-nav-btn:hover {
    background: #0066FF;
    color: #FFFFFF;
}

.categories-slider {
    flex: 1;
    overflow: hidden;
}

.categories-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease-out;
}

.category-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-filter-chip:hover,
.category-filter-chip.active {
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    border-color: transparent;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.chip-icon {
    font-size: 1.25rem;
}

.chip-count {
    padding: 0.25rem 0.625rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-filter-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   SEARCH AND FILTER BAR
   ======================================== */

.search-filter-bar {
    padding: 2rem 0;
    background: #F9FAFB;
}

.search-filter-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-form-products {
    flex: 1;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-products {
    position: absolute;
    left: 1.25rem;
    color: #6B7280;
    font-size: 1.125rem;
}

.search-input-products {
    flex: 1;
    padding: 1rem 1.25rem 1rem 3.25rem;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    transition: all 0.3s;
}

.search-input-products:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 120px;
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-search-btn:hover {
    background: #E5E7EB;
    color: #374151;
}

.search-submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 0 12px 12px 0;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.search-submit-btn:hover {
    transform: translateX(2px);
    box-shadow: -4px 4px 12px rgba(0, 102, 255, 0.3);
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.sort-dropdown-btn:hover {
    border-color: #0066FF;
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 50;
}

.sort-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s;
}

.sort-option:first-child {
    border-radius: 12px 12px 0 0;
}

.sort-option:last-child {
    border-radius: 0 0 12px 12px;
}

.sort-option:hover {
    background: #F9FAFB;
}

.sort-option.active {
    background: #E6F2FF;
    color: #0066FF;
    font-weight: 700;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 0.25rem;
}

.view-toggle-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s;
}

.view-toggle-btn:hover {
    background: #F3F4F6;
}

.view-toggle-btn.active {
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    color: #FFFFFF;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.filters-label {
    font-weight: 700;
    color: #374151;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #E6F2FF;
    color: #0066FF;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.remove-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(0, 102, 255, 0.2);
    border-radius: 50%;
    color: #0066FF;
    text-decoration: none;
    transition: all 0.3s;
}

.remove-filter:hover {
    background: #0066FF;
    color: #FFFFFF;
}

.clear-all-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #FEE2E2;
    color: #DC2626;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
}

.clear-all-filters:hover {
    background: #FECACA;
}

/* Results Summary */
.results-summary {
    padding: 1rem 0;
}

.results-text {
    color: #6B7280;
    font-size: 0.9375rem;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */

.products-listing-main {
    padding: 3rem 0 6rem;
    background: #FFFFFF;
}

.products-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.products-grid-main.list-view {
    grid-template-columns: 1fr;
}

.products-grid-main.list-view .product-card-inner-main {
    flex-direction: row;
}

.products-grid-main.list-view .product-image-wrapper-main {
    width: 300px;
    padding-top: 0;
    height: 250px;
}

.product-card-main {
    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-link-main {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-card-inner-main {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #E5E7EB;
    transition: all 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-main:hover .product-card-inner-main {
    border-color: #0066FF;
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.15);
    transform: translateY(-8px);
}

.product-image-wrapper-main {
    position: relative;
    padding-top: 75%;
    background: #F9FAFB;
    overflow: hidden;
}

.product-image-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card-main:hover .product-image-main {
    transform: scale(1.1);
}

.image-overlay-main {
    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-main:hover .image-overlay-main {
    opacity: 1;
}

.quick-view-main {
    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-main:hover .quick-view-main {
    transform: translateY(0);
}

.product-badge-main {
    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.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    z-index: 10;
}

.product-content-main {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-main {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: fit-content;
    padding: 0.375rem 0.875rem;
    background: #E6F2FF;
    color: #0066FF;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
}

.product-title-main {
    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-main:hover .product-title-main {
    color: #0066FF;
}

.product-description-main {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #F3F4F6;
}

.product-model-main {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6B7280;
    font-weight: 600;
}

.view-details-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0066FF;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.view-details-main i {
    transition: transform 0.3s;
}

.product-card-main:hover .view-details-main i {
    transform: translateX(4px);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination-container {
    margin-top: 4rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-btn:hover {
    border-color: #0066FF;
    color: #0066FF;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.pagination-number:hover {
    border-color: #0066FF;
    color: #0066FF;
}

.pagination-number.active {
    background: linear-gradient(135deg, #0066FF 0%, #00B8FF 100%);
    border-color: transparent;
    color: #FFFFFF;
}

.pagination-dots {
    display: flex;
    align-items: center;
    color: #9CA3AF;
    padding: 0 0.5rem;
}

.pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: #6B7280;
    font-size: 0.875rem;
}

/* ========================================
   NO PRODUCTS FOUND
   ======================================== */

.no-products-found {
    text-align: center;
    padding: 6rem 2rem;
}

.no-products-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border-radius: 50%;
    color: #9CA3AF;
    font-size: 3rem;
}

.no-products-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.no-products-text {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-back-products {
    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-back-products:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.35);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .products-grid-main {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .title-line {
        font-size: 2.5rem;
    }
    
    .products-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-filter-container {
        flex-direction: column;
    }
    
    .sort-dropdown,
    .view-toggle {
        width: 100%;
    }
    
    .sort-dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 4rem 0 3rem;
    }
    
    .title-line {
        font-size: 2rem;
    }
    
    .products-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 2rem;
    }
    
    .stat-divider-hero {
        display: none;
    }
    
    .slider-nav-btn {
        display: none;
    }
    
    .categories-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .products-grid-main {
        grid-template-columns: 1fr;
    }
    
    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .search-input-products {
        font-size: 0.875rem;
    }
    
    .search-submit-btn {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .title-line {
        font-size: 1.75rem;
    }
    
    .pagination-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}