/* ============================================================
   PRODUCT.CSS — Product Detail Page Styles
   ============================================================ */

/* Product Hero */
.product-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 30% 20%, rgba(79, 110, 247, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 70% 80%, rgba(159, 95, 255, 0.08), transparent);
    pointer-events: none;
}

.product-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.product-hero-text .label {
    margin-bottom: var(--space-md);
    display: inline-block;
}

.product-hero-text h1 {
    font-size: var(--fs-display);
    margin-bottom: var(--space-md);
}

.product-hero-text .tagline {
    font-size: var(--fs-h3);
    color: var(--text-secondary);
    font-weight: var(--fw-regular);
    margin-bottom: var(--space-lg);
}

.product-hero-text p {
    font-size: var(--fs-body-lg);
    margin-bottom: var(--space-xl);
    line-height: var(--lh-relaxed);
}

.product-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-hero-image img {
    max-width: 500px;
    width: 100%;
    filter: drop-shadow(0 20px 60px rgba(79, 110, 247, 0.2));
    animation: float 6s ease-in-out infinite;
}

.product-price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.product-price-badge .price {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

.product-price-badge .price-note {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .product-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-hero-image {
        order: -1;
    }

    .product-hero-image img {
        max-width: 350px;
    }
}


/* ============================================================
   FEATURE DEEP DIVE — Alternating Sections
   ============================================================ */
.feature-deep-dive {
    padding: var(--space-4xl) 0;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block:nth-child(even) .feature-block-image {
    order: -1;
}

.feature-block-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.feature-block-image img {
    width: 100%;
    border-radius: var(--radius-xl);
}

.feature-block-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    pointer-events: none;
}

.feature-block-content .label {
    display: inline-block;
    margin-bottom: var(--space-md);
}

.feature-block-content h2 {
    margin-bottom: var(--space-md);
}

.feature-block-content p {
    font-size: var(--fs-body-lg);
    margin-bottom: var(--space-lg);
    line-height: var(--lh-relaxed);
}

.feature-block-content .feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature-block-content .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.feature-block-content .feature-list li svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .feature-block {
        grid-template-columns: 1fr;
    }

    .feature-block:nth-child(even) .feature-block-image {
        order: 0;
    }
}


/* ============================================================
   TECH SPECS — Tabbed Table
   ============================================================ */
.specs-section {
    background: var(--bg-secondary);
    padding: var(--space-4xl) 0;
}

.specs-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
    overflow-x: auto;
    scrollbar-width: none;
}

.specs-tabs::-webkit-scrollbar {
    display: none;
}

.spec-tab {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.spec-tab:hover {
    color: var(--text-secondary);
}

.spec-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.spec-panel {
    display: none;
}

.spec-panel.active {
    display: block;
    animation: fadeInUp 0.3s var(--ease-out);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-subtle);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-small);
}

.spec-table td:first-child {
    font-weight: var(--fw-medium);
    color: var(--text-primary);
    width: 35%;
}

.spec-table td:last-child {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .spec-table td {
        padding: var(--space-sm);
    }

    .spec-table td:first-child {
        width: 40%;
    }
}


/* ============================================================
   IMAGE GALLERY
   ============================================================ */
.gallery-section {
    padding: var(--space-4xl) 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
}

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.4));
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   USE CASES
   ============================================================ */
.use-cases-section {
    background: var(--bg-secondary);
    padding: var(--space-4xl) 0;
}

.use-case-card {
    padding: var(--space-xl);
    text-align: center;
}

.use-case-card .card-icon {
    width: 72px;
    height: 72px;
    font-size: 2rem;
    margin: 0 auto var(--space-lg);
}

.use-case-card h3 {
    font-size: var(--fs-h4);
    margin-bottom: var(--space-sm);
}

.use-case-card p {
    font-size: var(--fs-small);
    margin: 0 auto;
    max-width: 260px;
}


/* ============================================================
   PRODUCT CTA
   ============================================================ */
.product-cta-section {
    padding: var(--space-4xl) 0;
    text-align: center;
}

.product-cta-box {
    padding: var(--space-3xl);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.product-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
        rgba(79, 110, 247, 0.06),
        transparent 50%);
    pointer-events: none;
}

.product-cta-box h2 {
    margin-bottom: var(--space-md);
    position: relative;
}

.product-cta-box p {
    margin: 0 auto var(--space-xl);
    position: relative;
}

.product-cta-box .btn {
    position: relative;
}


/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--duration-fast);
}

.lightbox-nav:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.lightbox-prev {
    left: var(--space-xl);
}

.lightbox-next {
    right: var(--space-xl);
}
