/* ===================================
   PRODUCTS PAGE STYLES
   =================================== */

/* Product Filter */
.product-filter-section {
    padding: 2rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Product Series Section */
.product-series-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
    transition: opacity 0.5s ease;
}

.product-series-section:nth-child(odd) {
    background: #ffffff;
}

.product-series-section.hidden {
    display: none;
}

.series-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 4rem;
    padding: 3rem;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.series-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff8345 0%, #e56b2c 100%);
    color: #ffffff;
    border-radius: 20px;
    font-size: 3rem;
}

.series-header-content {
    flex: 1;
}

.series-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.series-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff8345 0%, #e56b2c 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

.product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 131, 69, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-color);
    color: #ffffff;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: 50px;
    font-weight: 500;
}

.product-features i {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Product Details (if needed) */
.product-details-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-details-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Loading State */
.loading-products {
    text-align: center;
    padding: 4rem 0;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.no-products {
    text-align: center;
    padding: 5rem 2rem;
}

.no-products-icon {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.no-products h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.no-products p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Product Modal (Optional) */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .series-header {
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .series-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .series-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        padding: 0.625rem 1.25rem;
    }
    
    .series-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .series-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 1.5rem;
    }
    
    .series-header {
        padding: 1.5rem;
    }
    
    .series-title {
        font-size: 1.75rem;
    }
    
    .series-description {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .filter-container,
    .bottom-nav,
    .header-main {
        display: none;
    }
    
    .product-card {
        break-inside: avoid;
    }
}



