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

/* Products Hero */
.products-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    text-align: center;
}

.products-hero .hero-title {
    margin-bottom: var(--spacing-md);
}

.products-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* First 3 products span 2 columns each (top row) */
.product-card:nth-child(1),
.product-card:nth-child(2),
.product-card:nth-child(3) {
    grid-column: span 2;
}

/* Last 2 products span 3 columns each (bottom row, centered) */
.product-card:nth-child(4) {
    grid-column: 1 / span 3;
}

.product-card:nth-child(5) {
    grid-column: 4 / span 3;
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card.featured {
    border: 2px solid var(--primary-color);
}

.product-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--secondary-color);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-badge.popular {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Product Image */
.product-image {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: var(--spacing-xl);
    overflow: hidden;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

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

/* Product Content */
.product-content {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.product-subtitle {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

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

/* Product Features */
.product-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.product-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.product-features i {
    color: var(--primary-color);
    margin-top: 0.125rem;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Product Price */
.product-price {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.price-tag {
    font-size: 2rem;
    font-weight: var(--font-weight-black);
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-right: 0.5rem;
}

.new-price {
    font-size: 2rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Product Comparison */
.product-comparison {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #e0f7f7 100%);
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.comparison-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    transition: all var(--transition-base);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.comparison-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.comparison-icon i {
    font-size: 1.75rem;
    color: var(--secondary-color);
}

.comparison-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.comparison-card p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.comparison-card p strong {
    color: var(--primary-color);
}

/* All Tags Features */
.all-tags-features {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.features-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-mini {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature-mini i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.feature-mini h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-mini p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bundle Section */
.bundle-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-dark);
    color: var(--bg-primary);
}

.bundle-section .section-title {
    color: var(--bg-primary);
}

.bundle-section .accent-text {
    color: var(--accent-color);
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bundle-card {
    background: var(--secondary-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    position: relative;
}

.bundle-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.bundle-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.bundle-badge {
    position: absolute;
    top: -12px;
    right: var(--spacing-lg);
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bundle-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--bg-primary);
}

.bundle-price {
    margin-bottom: var(--spacing-md);
}

.bundle-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
}

.bundle-includes {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.bundle-includes li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    color: var(--bg-primary);
}

.bundle-includes i {
    color: var(--accent-color);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Products CTA */
.products-cta {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #e0f7f7 0%, var(--bg-secondary) 100%);
    text-align: center;
}

.products-cta .section-title {
    margin-bottom: var(--spacing-md);
}

.products-cta .cta-text {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.products-cta .cta-note {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Active nav state */
.nav-menu a.active {
    color: var(--primary-color);
}

/* Selection Guide Section */
.selection-guide {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.guide-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-base);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.guide-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.guide-icon i {
    font-size: 1.625rem;
    color: var(--secondary-color);
}

.guide-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
}

.guide-best {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.guide-best strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.guide-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card:nth-child(1),
    .product-card:nth-child(2),
    .product-card:nth-child(3),
    .product-card:nth-child(4),
    .product-card:nth-child(5) {
        grid-column: span 1;
    }
    
    /* 5th item spans full width on tablet for symmetry */
    .product-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card:nth-child(1),
    .product-card:nth-child(2),
    .product-card:nth-child(3),
    .product-card:nth-child(4),
    .product-card:nth-child(5) {
        grid-column: span 1;
        max-width: none;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .features-grid-mini {
        grid-template-columns: 1fr;
    }
    
    .bundles-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-large {
        width: 100%;
        max-width: 400px;
    }
    
    .product-image {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .products-hero {
        padding: var(--spacing-xl) 0;
    }
    
    .products-section,
    .product-comparison,
    .all-tags-features,
    .bundle-section,
    .products-cta {
        padding: var(--spacing-xl) 0;
    }
    
    .product-content {
        padding: var(--spacing-md);
    }
    
    .product-image {
        height: 240px;
        padding: var(--spacing-md);
    }
}

/* Animation delays for staggered entrance */
.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}
