/* ==========================================
   Products Page V2 - Simplified Design
   Tab-based category navigation
   ========================================== */

.product-section {
    padding: 4rem 0;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn i {
    font-size: 1.3rem;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Category Content */
.category-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.category-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-title i {
    font-size: 2.5rem;
}

/* Series Section */
.series-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--border-color);
}

.series-section:last-child {
    border-bottom: none;
}

.series-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.series-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Product Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.product-name {
    padding: 0.75rem 1rem 0.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.product-code {
    padding: 0 1rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
    margin: 0;
}

/* Product CTA */
.product-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border-radius: 12px;
    margin-top: 3rem;
}

.product-cta h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .series-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .category-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    .product-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .category-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .series-title {
        font-size: 1.3rem;
    }
    
    .series-subtitle {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .gallery-item img {
        height: 120px;
    }
    
    .product-name {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem 0.25rem;
    }
    
    .product-code {
        font-size: 0.75rem;
        padding: 0 0.75rem 0.5rem;
    }
    
    .product-cta h3 {
        font-size: 1.5rem;
    }
    
    .product-cta p {
        font-size: 1rem;
    }
}
