/* ============================================
   Products Page Styles
   ============================================ */

/* Hero Section */
.products-hero {
    background: var(--brand-gradient);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 194, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 194, 255, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

.products-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.products-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.products-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background-color: #ff0000;
}

.products-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 0;
    color: #d9c9c9;
}

/* Products Container */
.products-container {
    padding: 80px 0;
    background: #f8f9fa;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Filters */
.products-sidebar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(27, 14, 84, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B0E54;
    margin-bottom: 25px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f2040e;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group-title i {
    color: var(--brand);
    font-size: 1.125rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    background: #f8f9fa;
}

.filter-option:hover {
    background: var(--brand-gradient);
    color: white;
    transform: translateX(5px);
}

.filter-option.active {
    background: var(--brand-gradient);
    color: white;
    font-weight: 600;
}

.filter-option i {
    margin-right: 10px;
    font-size: 1rem;
}

.clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.clear-filters:hover {
    background: var(--brand-gradient);
    color: white;
}

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

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(27, 14, 84, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(27, 14, 84, 0.15);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #ffffff;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-gradient);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.product-content {
    padding: 25px;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-specs {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.product-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.product-spec-item i {
    color: var(--brand);
    font-size: 1.125rem;
}

.product-spec-label {
    color: #64748b;
    font-weight: 500;
}

.product-spec-value {
    color: #1a202c;
    font-weight: 700;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.product-btn.primary {
    background: var(--brand-gradient);
    color: white;
    border: none;
}

.product-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 194, 255, 0.4);
}

.product-btn.secondary {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
}

.product-btn.secondary:hover {
    background: var(--brand-gradient);
    color: white;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(27, 14, 84, 0.08);
}

.no-products i {
    font-size: 4rem;
    color: var(--brand);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B0E54;
    margin-bottom: 10px;
}

.no-products p {
    font-size: 1rem;
    color: #64748b;
}

/* Product Count */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(27, 14, 84, 0.05);
}

.products-count {
    font-size: 1.125rem;
    color: #1a202c;
    font-weight: 600;
}

.products-count span {
    color: var(--brand);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .filter-options {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .filter-option {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .products-hero {
        padding: 60px 0 40px;
    }
    
    .products-hero h1 {
        font-size: 2.25rem;
    }
    
    .products-container {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .products-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

