/* Products Page Styles */

/* Products Hero */
.products-hero {
    padding: 150px 20px 80px;
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Product Showcase */
.product-showcase {
    padding: 0 2rem 6rem;
}

.product-feature {
    margin-bottom: 6rem;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.product-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.product-tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.product-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.product-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
}

.feature-tag i {
    font-size: 1rem;
}

.product-specs {
    margin-bottom: 3rem;
}

.product-specs h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-specs ul {
    list-style: none;
}

.product-specs li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-specs i {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.price-card {
    padding: 1.5rem 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Product Gallery */
.product-visual {
    position: sticky;
    top: 120px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
}

.gallery-main img:not([src]),
.gallery-main img[src=""] {
    background: linear-gradient(135deg, var(--glass-bg), var(--bg-secondary));
    position: relative;
}

.gallery-main img:not([src])::after,
.gallery-main img[src=""]::after {
    content: 'Image Preview';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.gallery-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
}

.thumb {
    width: 100px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.thumb.active,
.thumb:hover {
    border-color: var(--text-primary);
    transform: scale(1.05);
}

.thumb.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
}

/* Products Grid */
.products-grid {
    margin-top: 6rem;
}

.products-grid .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-primary);
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.meta-link {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.meta-link:hover {
    gap: 1rem;
}

/* Animations */
@keyframes productSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-info > * {
    opacity: 0;
    animation: productSlide 0.8s ease forwards;
}

.product-info > *:nth-child(1) { animation-delay: 0.1s; }
.product-info > *:nth-child(2) { animation-delay: 0.2s; }
.product-info > *:nth-child(3) { animation-delay: 0.3s; }
.product-info > *:nth-child(4) { animation-delay: 0.4s; }
.product-info > *:nth-child(5) { animation-delay: 0.5s; }
.product-info > *:nth-child(6) { animation-delay: 0.6s; }
.product-info > *:nth-child(7) { animation-delay: 0.7s; }

.product-visual {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* Active Navigation */
.nav-link.active {
    color: var(--text-primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-content {
        grid-template-columns: 1fr;
    }
    
    .product-visual {
        position: static;
        order: -1;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2.5rem;
    }
    
    .product-features {
        justify-content: center;
    }
    
    .product-pricing {
        flex-direction: column;
        align-items: stretch;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbs {
        justify-content: center;
    }
}