/* ==================================================
   Products Page Specific Styles
================================================== */

/* Product Categories Section */
.product-categories {
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #eee;
    position: static;
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff5f2;
    border: 2px solid #ff6b35;
    border-radius: 50px;
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.category-item:active {
    transform: translateY(0);
}

.category-item.active {
    background: #ff6b35;
    color: white;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #eee;
    border-radius: 50px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    border-color: #ff6b35;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.filter-btn i {
    font-size: 1rem;
}

/* Products Grid */
.products-grid {
    padding: 60px 0;
}

.category-section {
    margin-bottom: 80px;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
}

.category-title i {
    font-size: 2rem;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    padding: 15px;
    border-radius: 15px;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #f8f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
    padding: 15px;
    background: white;
    border-radius: 15px 15px 0 0;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8) 0%, rgba(211, 47, 47, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: white;
    color: #ff6b35;
    transform: scale(1.1);
}

.product-content {
    padding: 2rem;
}

.product-name {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.feature-tag {
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Water Specs */
.water-specs {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.spec-item i {
    color: #ff6b35;
    width: 16px;
}

/* Coming Soon */
.coming-soon {
    position: relative;
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 1;
    border-radius: 20px;
}

.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.coming-soon-badge i {
    font-size: 1.2rem;
}

/* Product Overview Section */
.product-overview {
    padding: 100px 0;
    background: #f8f9ff;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.overview-icon {
    margin-bottom: 1.5rem;
}

.overview-icon i {
    font-size: 3rem;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    padding: 20px;
    border-radius: 20px;
}

.overview-card h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.overview-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.overview-card ul {
    list-style: none;
    text-align: left;
    color: #666;
}

.overview-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.overview-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

/* CTA Products Section */
.cta-products {
    padding: 100px 0;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    color: white;
    text-align: center;
}

.cta-products .cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-products .cta-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-products .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-products .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.cta-products .btn-secondary:hover {
    background: white;
    color: #ff6b35;
}

/* Product Filter Animation */
.product-card {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

.product-card.filtered {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Search Results */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-products i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-controls {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .category-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .category-title i {
        font-size: 1.5rem;
        padding: 12px;
    }
    
    .products-row {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .overview-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-products .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .filter-controls {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .products-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin: 0 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-products .cta-title {
        font-size: 2rem;
    }
}

/* Loading Animation for Products */
.products-row.loading {
    opacity: 0.5;
    pointer-events: none;
}

.product-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Product Modal (if needed) */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.product-card {
    cursor: pointer;
}

.product-card .product-name {
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #ff6b35;
}

/* Badge Styles */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ff6b35 0%, #d32f2f 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-badge.new {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.product-badge.popular {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}