/* ═══════════════════════════════════════════════════════════════
   Product Detail Page
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero ─────────────────────────────────────────────────── */
.product-page {
    min-height: 100vh;
}

.product-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.product-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(0.4);
    transform: scale(1.05);
}

.product-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(10, 10, 15, 0.3) 60%, rgba(10, 10, 15, 0.6) 100%);
}

.product-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.product-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.product-back:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-blue);
}

.product-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -1px;
}

.product-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
}

/* ─── Content Layout ───────────────────────────────────────── */
.product-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ─── Info Columns ─────────────────────────────────────────── */
.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.features-card {
    /* No sticky here anymore, moved to columns */
}

.features-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.features-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.description-content {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.description-content p {
    margin-bottom: 12px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.requirements-content {
    padding: 16px 20px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.requirements-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.req-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.req-value {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.5;
}

.features-count {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(80, 102, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(80, 102, 255, 0.2);
}

.features-list {
    padding: 16px 20px;
    max-height: 500px;
    overflow-y: auto;
}

.features-list::-webkit-scrollbar {
    width: 4px;
}

.features-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.icon-aim { background: rgba(255, 68, 102, 0.12); }
.icon-visual { background: rgba(0, 212, 255, 0.12); }
.icon-misc { background: rgba(255, 170, 0, 0.12); }
.icon-other { background: rgba(80, 102, 255, 0.12); }

.feature-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ─── Screenshots ──────────────────────────────────────────── */
.screenshots-content {
    padding: 20px;
    height: 100%;
    min-height: 300px;
    display: flex;
}

.screenshots-placeholder {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.screenshots-placeholder p {
    font-size: 14px;
    font-weight: 500;
}

.screenshots-placeholder svg {
    opacity: 0.3;
}

.product-plans {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ─── Plans Section ────────────────────────────────────────── */
.plans-header {
    margin-bottom: 24px;
}

.plans-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.plans-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.plans-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ─── Plan Card ────────────────────────────────────────────── */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    border-color: rgba(80, 102, 255, 0.4);
    box-shadow: 0 8px 30px rgba(80, 102, 255, 0.1);
    transform: translateY(-3px);
}

.plan-popular {
    border-color: rgba(80, 102, 255, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(80, 102, 255, 0.05) 100%);
}

.plan-premium {
    border-color: rgba(255, 170, 0, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 170, 0, 0.05) 100%);
}

.plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(80, 102, 255, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(80, 102, 255, 0.25);
}

.plan-badge-premium {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border-color: rgba(255, 170, 0, 0.25);
}

.plan-header {
    margin-bottom: 16px;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.plan-duration {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
}

.price-amount {
    font-size: 40px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.price-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-features li svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.plan-popular .plan-features li svg {
    color: var(--accent-blue);
}

.plan-premium .plan-features li svg {
    color: #ffaa00;
}

/* ─── Plan Buttons ─────────────────────────────────────────── */
.btn-plan {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-plan:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-plan-popular {
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(80, 102, 255, 0.3);
}

.btn-plan-popular:hover {
    box-shadow: 0 6px 30px rgba(80, 102, 255, 0.5);
    color: white;
}

.btn-plan-premium {
    background: linear-gradient(135deg, #ff6b35 0%, #ffaa00 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.3);
}

.btn-plan-premium:hover {
    box-shadow: 0 6px 30px rgba(255, 170, 0, 0.5);
    color: white;
}

/* ─── Note ─────────────────────────────────────────────────── */
.plans-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.plans-note svg {
    flex-shrink: 0;
    color: var(--accent-cyan);
    margin-top: 2px;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .product-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 24px;
    }

    .features-card {
        position: static;
    }

    .product-hero {
        height: 250px;
    }

    .product-hero-content {
        padding: 0 20px 24px;
    }

    .price-amount {
        font-size: 32px;
    }
}
