/* ═══════════════════════════════════════════
   PRODUCT DETAIL PAGES — relay-solo-style content
   Lives inside .main-content alongside the existing sidebar.
   All classes prefixed .pd-* to avoid collisions.
   ═══════════════════════════════════════════ */

.pd-wrap {
    --pd-max: 1080px;
    --pd-pad-x: clamp(20px, 5vw, 56px);
    position: relative;
}

/* Ambient glow behind the hero (matches relay-solo vibe) */
.pd-ambient {
    position: absolute;
    inset: 0 0 auto 0;
    height: 720px;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.pd-ambient::before,
.pd-ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
}
.pd-ambient::before {
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(255,69,0,0.35), transparent 70%);
    top: -180px; right: -120px;
}
.pd-ambient::after {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(199,36,11,0.22), transparent 70%);
    top: 180px; left: -80px;
}

/* Back link */
.pd-back {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: clamp(28px, 5vw, 56px) var(--pd-pad-x) 0;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}
.pd-back:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-glow);
}
.pd-back svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.pd-back:hover svg { transform: translateX(-3px); }

/* ───────── HERO ───────── */
.pd-hero {
    position: relative;
    z-index: 1;
    max-width: var(--pd-max);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) var(--pd-pad-x) clamp(36px, 6vw, 72px);
}
.pd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.pd-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pdPulse 2s ease-in-out infinite;
}
@keyframes pdPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.25); }
}
.pd-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
    max-width: 18ch;
}
.pd-hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.pd-lede {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 60ch;
    line-height: 1.65;
    margin: 0 0 32px;
}
.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.pd-meta span { display: inline-flex; align-items: center; gap: 8px; }
.pd-meta svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ───────── HERO VISUAL ───────── */
.pd-visual {
    position: relative;
    z-index: 1;
    max-width: var(--pd-max);
    margin: 0 auto;
    padding: 0 var(--pd-pad-x) clamp(40px, 6vw, 80px);
}
.pd-visual-inner {
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.pd-visual-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10,14,23,0.7));
    pointer-events: none;
}
.pd-visual-inner img {
    width: 100%;
    height: auto;
    display: block;
}
.pd-visual-inner:has(img)::after { display: none; }
.pd-mark {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-align: center;
    padding: 0 24px;
}
.pd-mark-accent { color: var(--accent); }

/* Per-product gradient skins (re-use products.css recipes) */
.pd-visual-habit {
    background: linear-gradient(135deg, #1a2236 0%, #111827 100%);
}
.pd-visual-habit::before {
    content: '';
    position: absolute;
    inset: 32px;
    background-image: radial-gradient(circle, var(--accent) 2px, transparent 2.5px);
    background-size: 24px 24px;
    opacity: 0.32;
    mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent);
}
.pd-visual-wedding {
    background: linear-gradient(135deg, #1a2236 0%, #0a0e17 100%);
}
.pd-visual-wedding::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 30% 30%, rgba(255, 69, 0, 0.22), transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 106, 51, 0.16), transparent 50%);
}
.pd-visual-journal {
    background: linear-gradient(135deg, #1a2236 0%, #0a0e17 100%);
}
.pd-visual-journal::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 69, 0, 0.35) 0, rgba(255, 69, 0, 0.35) 2px, transparent 2px),
        repeating-linear-gradient(180deg, transparent 0, transparent 28px, rgba(255, 69, 0, 0.10) 28px, rgba(255, 69, 0, 0.10) 29px);
    background-position: 56px 0, 0 0;
    background-repeat: no-repeat, repeat;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

/* ───────── SECTION HEAD ───────── */
.pd-section-head {
    max-width: var(--pd-max);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) var(--pd-pad-x) clamp(24px, 4vw, 40px);
    text-align: center;
}
.pd-section-head .pd-eyebrow { margin-bottom: 14px; }
.pd-section-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.pd-section-head h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.pd-section-head p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 58ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* ───────── WHAT'S INCLUDED ───────── */
.pd-features {
    max-width: var(--pd-max);
    margin: 0 auto;
    padding: 0 var(--pd-pad-x) clamp(40px, 6vw, 72px);
}
.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}
.pd-feature {
    position: relative;
    background: var(--bg-surface);
    padding: 32px 26px;
    transition: background 0.35s ease;
}
.pd-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.pd-feature:hover { background: var(--bg-card); }
.pd-feature:hover::before { opacity: 1; }
.pd-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    margin-bottom: 18px;
    border-radius: 13px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), background 0.35s ease, border-color 0.35s ease;
}
.pd-feature:hover .pd-feature-icon {
    transform: translateY(-3px);
    background: var(--accent-glow-strong);
}
.pd-feature-icon svg { width: 22px; height: 22px; }
.pd-feature h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.pd-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ───────── HOW IT WORKS ───────── */
.pd-steps {
    max-width: var(--pd-max);
    margin: 0 auto;
    padding: 0 var(--pd-pad-x) clamp(40px, 6vw, 72px);
}
.pd-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: pdstep;
}
@media (max-width: 820px) {
    .pd-steps-grid { grid-template-columns: 1fr; }
}
.pd-step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 26px 26px;
    counter-increment: pdstep;
}
.pd-step::before {
    content: counter(pdstep, decimal-leading-zero);
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.4rem;
    color: var(--accent);
    opacity: 0.18;
    letter-spacing: -0.05em;
}
.pd-step h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.pd-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* ───────── PREVIEW / SCREENSHOTS ───────── */
.pd-gallery {
    max-width: var(--pd-max);
    margin: 0 auto;
    padding: 0 var(--pd-pad-x) clamp(40px, 6vw, 72px);
}
.pd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.pd-gallery-grid > :first-child {
    grid-column: 1 / -1;
}
@media (max-width: 720px) {
    .pd-gallery-grid { grid-template-columns: 1fr; }
}
.pd-shot {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.pd-shot:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
}
.pd-shot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: var(--bg-surface);
}
.pd-shot-placeholder {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}
.pd-shot-placeholder svg {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
    margin: 0 auto 12px;
    display: block;
    opacity: 0.6;
}
.pd-shot-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}
.pd-shot-caption {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    opacity: 0.85;
}

/* ───────── BUY CARD ───────── */
.pd-buy {
    max-width: var(--pd-max);
    margin: 0 auto;
    padding: 0 var(--pd-pad-x) clamp(48px, 7vw, 96px);
}
.pd-buy-inner {
    background: linear-gradient(135deg, rgba(255,69,0,0.08), rgba(199,36,11,0.04));
    border: 1px solid var(--border-accent);
    border-radius: 24px;
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 48px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
}
.pd-buy-inner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-glow-strong), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
.pd-buy-inner > * { position: relative; z-index: 1; }
.pd-buy-text h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.pd-buy-text h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.pd-buy-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
.pd-buy-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}
.pd-buy-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-display);
    color: var(--text-primary);
}
.pd-buy-price .currency { font-size: 1.4rem; font-weight: 600; color: var(--text-secondary); }
.pd-buy-price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pd-buy-price .once {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 4px;
}
.pd-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--bg-deep);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px -4px var(--accent-glow-strong);
}
.pd-buy-btn:hover {
    background: #ff6a33;
    color: var(--bg-deep);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -6px var(--accent-glow-strong);
}
.pd-buy-btn svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
    .pd-buy-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .pd-buy-action { align-items: flex-start; }
}

/* ───────── FAQ ───────── */
.pd-faq {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--pd-pad-x) clamp(48px, 7vw, 96px);
}
.pd-faq-item {
    border-bottom: 1px solid var(--border);
}
.pd-faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}
.pd-faq-q::-webkit-details-marker { display: none; }
.pd-faq-q:hover { color: var(--accent); }
.pd-faq-q .icon {
    width: 22px; height: 22px;
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.3s ease;
}
.pd-faq-item[open] .pd-faq-q .icon { transform: rotate(45deg); }
.pd-faq-a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 0 22px;
    max-width: 68ch;
}

/* ───────── LIGHTBOX ───────── */
.pd-zoomable { cursor: zoom-in; }
.pd-zoomable:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(6, 10, 19, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 64px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.pd-lightbox.open { display: flex; }
.pd-lightbox.visible { opacity: 1; }
.pd-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    cursor: zoom-out;
    transform: scale(0.97);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.pd-lightbox.visible .pd-lightbox-img { transform: scale(1); }
.pd-lightbox-caption {
    position: absolute;
    bottom: clamp(16px, 3vw, 32px);
    left: 50%;
    transform: translateX(-50%);
    max-width: min(720px, 80vw);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pd-lightbox-close {
    position: absolute;
    top: clamp(16px, 3vw, 28px);
    right: clamp(16px, 3vw, 28px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.pd-lightbox-close:hover {
    background: var(--accent-glow);
    border-color: var(--border-accent);
    color: var(--accent);
    transform: rotate(90deg);
}
.pd-lightbox-close svg { width: 20px; height: 20px; }
body.pd-lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .pd-lightbox, .pd-lightbox-img, .pd-lightbox-close { transition: none; }
    .pd-lightbox-img { transform: none; }
}

/* ───────── REVEAL ANIMATIONS ───────── */
.pd-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.pd-reveal.in {
    opacity: 1;
    transform: translateY(0);
}
.pd-reveal:nth-child(2) { transition-delay: 0.08s; }
.pd-reveal:nth-child(3) { transition-delay: 0.16s; }
.pd-reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .pd-eyebrow .dot { animation: none; }
    .pd-reveal { opacity: 1; transform: none; transition: none; }
}
