/* Modern Products Page - Complete Redesign */

/* Hero Section */
.products-hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
}

body.dark-mode .products-hero {
    background: linear-gradient(135deg, #0a1208 0%, #1a3a1a 100%);
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.products-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.products-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.products-hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-badge-icon {
    font-size: 2.5rem;
}

.hero-badge-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Products Grid */
.products-section {
    padding: 80px 0;
    background: var(--color-background);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Product Card - Modern Design */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

body.dark-mode .product-card {
    background: var(--dm-bg-medium);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body.dark-mode .product-card:hover {
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.2);
}

/* Product Gallery */
.product-gallery {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

body.dark-mode .product-gallery {
    background: linear-gradient(135deg, #1a2f1a 0%, #0f1f0f 100%);
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-thumbnails {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .product-thumbnails {
    background: rgba(0, 0, 0, 0.7);
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.product-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.product-thumbnail.active {
    opacity: 1;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

@media (max-width: 768px) {
    .product-thumbnails {
        bottom: 10px;
        padding: 8px;
        gap: 8px;
    }
    
    .product-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* Product Category Badge */
.product-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-accent-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

body.dark-mode .product-category {
    background: var(--dm-glow-color);
    color: var(--dm-bg-deep);
}

/* Product Content */
.product-content {
    padding: 2rem;
}

.product-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-tagline {
    font-size: 1rem;
    color: var(--color-accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-mode .product-tagline {
    color: var(--dm-glow-color);
}

.product-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* Product Features */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.feature-badge {
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-accent-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

body.dark-mode .feature-badge {
    background: rgba(76, 175, 80, 0.15);
    color: var(--dm-glow-color);
}

.feature-badge:hover {
    background: var(--color-accent-primary);
    color: white;
    transform: translateY(-2px);
}

body.dark-mode .feature-badge:hover {
    background: var(--dm-glow-color);
    color: var(--dm-bg-deep);
}

.feature-badge::before {
    content: '✓';
    font-weight: bold;
}

/* Product CTA */
.product-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

body.dark-mode .btn-primary {
    background: linear-gradient(135deg, var(--dm-glow-color) 0%, var(--dm-accent-secondary) 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

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

.btn-secondary:hover {
    background: var(--color-accent-primary);
    color: white;
}

body.dark-mode .btn-secondary {
    color: var(--dm-glow-color);
    border-color: var(--dm-glow-color);
}

body.dark-mode .btn-secondary:hover {
    background: var(--dm-glow-color);
    color: var(--dm-bg-deep);
}

/* Product Image Count Indicator */
.image-count {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.product-card.loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-hero {
        padding: 100px 0 60px;
    }
    
    .products-section {
        padding: 60px 0;
    }
    
    .product-gallery {
        height: 300px;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-content h2 {
        font-size: 1.5rem;
    }
    
    .product-cta {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Touch devices */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
}
