/* ---- Hero ---- */
.pd-hero {
    background: linear-gradient(135deg, var(--c-dark1), var(--c-dark2));
    color: var(--c-text-light);
    padding: 7vh 0 6vh 0;
    border-bottom: 3px solid var(--c-accent);
}
.pd-hero-inner { max-width: 820px; margin: 0 auto; padding: 0 22px; }
.pd-back {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 18px;
    transition: color 200ms var(--ease);
}
.pd-back:hover { color: var(--c-accent); }
.pd-hero .eyebrow {
    display: block;
    font-family: var(--font-head);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--c-accent); margin-bottom: 10px;
}
.pd-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4.4vw, 46px); font-weight: 800;
    line-height: 1.08; margin: 0 0 14px 0;
}
.pd-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.6; margin: 0; }

/* ---- Viewer carousel ---- */
.pd-viewer-section { padding: 5vh 0 3vh 0; }

.pd-viewer {
    width: min(1120px, 94vw);
    margin: 0 auto;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
}

/* Stage (holds the 3D viewer + drawing slides) */
.pd-stage {
    position: relative;
    height: min(62vh, 600px);
    background: linear-gradient(180deg, #f7fafd 0%, #e7eef6 100%);
    overflow: hidden;
}
.pd-slide {
    position: absolute; inset: 0;
    background: #ffffff;
    opacity: 0; pointer-events: none;
    transition: opacity 350ms var(--ease);
}
.pd-slide-3d { background: transparent; }   /* 3D viewer slide */
.pd-slide.--active { opacity: 1; pointer-events: auto; }
.pd-slide img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.pd-canvas { position: absolute; inset: 0; }

/* Smaller directional arrows */
.pd-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    padding: 0 !important; margin: 0;
    font-size: 1rem; line-height: 1; color: var(--c-text-dark) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--c-border); border-radius: 50%;
    box-shadow: var(--shadow-sm); cursor: pointer;
    transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
.pd-arrow.--prev { left: 12px; }
.pd-arrow.--next { right: 12px; }
.pd-arrow:hover { border-color: var(--c-accent); color: var(--c-accent) !important; }

/* Caption bar */
.pd-capbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; border-top: 1px solid var(--c-border);
    font-family: var(--font-head);
}
.pd-capname { font-size: 0.9rem; font-weight: 600; color: var(--c-text-dark); }
.pd-capcount { font-size: 0.82rem; color: var(--c-text-muted); }

/* Thumbnail filmstrip */
.pd-filmstrip {
    display: flex; gap: 12px; padding: 14px 16px 18px;
    border-top: 1px solid var(--c-light2); background: var(--c-light1);
}
.pd-thumb {
    flex: 1; min-width: 0; display: block;
    background: #fff !important; border: 2px solid var(--c-border); border-radius: var(--radius-sm);
    padding: 7px !important; margin: 0; cursor: pointer;
    transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
.pd-thumb:hover { transform: translateY(-2px); border-color: var(--c-text-muted); }
.pd-thumb.--active { border-color: var(--c-accent); }
.pd-thumb-media {
    display: flex; align-items: center; justify-content: center;
    height: 62px; border-radius: var(--radius-sm); overflow: hidden; background: #fff;
}
.pd-thumb-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-thumb-3d { position: relative; background: linear-gradient(180deg, #f4f8fc, #e7eef6); }
.pd-thumb-3d svg { width: 100%; height: 100%; }
.pd-3d-badge {
    position: absolute; top: 5px; left: 6px;
    font-family: var(--font-head); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px;
    background: var(--c-accent); color: #fff; padding: 2px 6px; border-radius: 999px;
}
.pd-thumb-label {
    display: block; text-align: center; margin-top: 7px;
    font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; color: var(--c-text-muted);
}
.pd-thumb.--active .pd-thumb-label { color: var(--c-accent); }

@media (max-width: 560px) {
    .pd-filmstrip { overflow-x: auto; }
    .pd-thumb { flex: 0 0 30%; }
    .pd-thumb-label { font-size: 0.72rem; }
}

.pd-demo-note {
    text-align: center; color: var(--c-text-muted);
    font-size: 0.85rem; margin: 16px auto 0; max-width: 640px; padding: 0 20px;
}
.pd-demo-note code {
    background: var(--c-light2); padding: 2px 6px; border-radius: 4px; font-size: 0.82rem;
}

/* ---- Info ---- */
.pd-info { padding: 5vh 0 6vh 0; }
.pd-specs { width: min(720px, 92vw); margin: 0 auto; }
.pd-info h2 {
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
    color: var(--c-text-dark); margin: 0 0 18px 0;
}
.pd-specs dl {
    margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px;
}
@media (max-width: 600px) { .pd-specs dl { grid-template-columns: 1fr; } }
.pd-spec {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--c-light2);
}
.pd-spec dt { color: var(--c-text-muted); font-size: 0.95rem; }
.pd-spec dd {
    margin: 0; text-align: right; font-weight: 600; color: var(--c-text-dark); font-size: 0.95rem;
}

/* ---- CTA ---- */
.pd-cta { background: var(--c-dark2); color: #fff; padding: 8vh 0; text-align: center; }
.pd-cta h2 {
    font-family: var(--font-head); font-size: clamp(22px, 3.2vw, 34px);
    font-weight: 700; margin: 0 0 10px 0;
}
.pd-cta p { color: rgba(255,255,255,0.75); margin: 0 0 8px 0; }
