/*
 * ThemeHarvest — long product page (hero, section menu, suited for,
 * overview, what's new, features, comparison, screenshots, plans,
 * reviews, FAQ, mobile buy bar). Colours and fonts come from the
 * --thp-* / --pd-* variables each theme sets in style.css.
 */

.pd { --pd-gap: clamp(72px, 9vw, 112px); }

/* ---------- Hero ---------- */
.pd-hero { background: var(--pd-hero-bg, var(--thp-soft)); border-bottom: var(--thp-border-w, 1px) solid var(--thp-line); padding: 36px 0 40px; position: relative; overflow: hidden; }
.pd-hero::before { content: ""; position: absolute; inset: 0; background: var(--pd-hero-glow, none); pointer-events: none; }
.pd-hero > * { position: relative; }
.pd-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--thp-label-font); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--thp-muted); margin-bottom: 22px; }
.pd-crumbs a { color: inherit; text-decoration: none; }
.pd-crumbs a:hover { color: var(--thp-highlight); }
.pd-badge { display: inline-block; background: var(--thp-accent); color: var(--thp-accent-text); font-family: var(--thp-label-font); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.pd-title { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: calc(clamp(34px, 4.4vw, 60px) * var(--head-scale, 1)); line-height: 1.02; letter-spacing: var(--thp-head-tracking, -0.03em); margin: 0; overflow-wrap: anywhere; }
.pd-lede { color: var(--thp-muted); font-size: 18px; line-height: 1.6; margin: 18px 0 0; max-width: 600px; }
.pd-rating { margin: 14px 0 0; font-size: 15px; color: var(--thp-muted); }
.pd-rating b { color: var(--thp-head-color, var(--thp-text)); }
.pd-stars { color: var(--thp-star, #e8a33d); letter-spacing: 2px; }

.pd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
.pd-price { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; }
.pd-price small { grid-column: 1 / -1; font-family: var(--thp-label-font); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--thp-muted); }
.pd-price b { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; }
.pd-price s { color: var(--thp-muted); font-size: 18px; }
.pd-price span { grid-column: 1 / -1; color: var(--thp-muted); font-size: 13px; }
.pd-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.pd-meta { list-style: none; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--thp-line); display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; }
.pd-meta li { display: flex; flex-direction: column; gap: 2px; }
.pd-meta span { font-family: var(--thp-label-font); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--thp-muted); }
.pd-meta b { color: var(--thp-head-color, var(--thp-text)); font-weight: 600; }
.pd-meta a { align-self: flex-end; margin-top: auto; color: var(--thp-highlight); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.pd-frame { background: var(--thp-card); border: var(--thp-border-w, 1px) solid var(--thp-line); border-radius: var(--thp-radius, 14px); overflow: hidden; box-shadow: var(--pd-shadow, 0 30px 60px -20px rgba(0,0,0,0.25)); }
.pd-frame__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--thp-line); background: var(--thp-soft); }
.pd-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--thp-line); opacity: 0.45; }
.pd-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pd-frame__ph { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; font-family: var(--thp-head); font-size: clamp(64px, 9vw, 120px); line-height: 1; }

.pd-highlights { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pd-highlights li { display: inline-flex; align-items: center; gap: 8px; background: var(--thp-card); border: 1px solid var(--thp-line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--thp-text); }
.pd-highlights li::before { content: "✓"; color: var(--thp-highlight); font-weight: 700; }

/* ---------- Section menu ---------- */
.pd-nav { position: sticky; top: var(--pd-top, 72px); z-index: 20; background: var(--pd-nav-bg, var(--thp-bg)); border-bottom: 1px solid var(--thp-line); }
.pd-nav__in { display: flex; align-items: center; gap: 16px; }
.pd-nav__links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; padding: 10px 0; }
.pd-nav__links::-webkit-scrollbar { display: none; }
.pd-nav__links a { flex: 0 0 auto; text-decoration: none; color: var(--thp-muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.pd-nav__links a:hover { color: var(--thp-head-color, var(--thp-text)); }
.pd-nav__links a.is-active { color: var(--thp-head-color, var(--thp-text)); background: var(--thp-soft); box-shadow: inset 0 -2px 0 var(--thp-highlight); }
.pd-nav__buy { flex: 0 0 auto; white-space: nowrap; }

/* ---------- Sections ---------- */
.pd-body { padding-bottom: var(--pd-gap); }
.pd-section { padding-top: var(--pd-gap); scroll-margin-top: calc(var(--pd-top, 72px) + 64px); }
.pd-head { margin-bottom: 34px; max-width: 760px; }
.pd-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--thp-label-font); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--thp-highlight); margin-bottom: 12px; }
.pd-eyebrow span { display: inline-flex; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; }
.pd-h2 { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: calc(clamp(30px, 3.6vw, 48px) * var(--head-scale, 1)); line-height: 1.05; letter-spacing: var(--thp-head-tracking, -0.02em); margin: 0; }
.pd-h2 em { color: var(--thp-highlight); }
.pd-intro { color: var(--thp-muted); font-size: 17px; margin: 14px 0 0; }

.pd-grid { display: grid; gap: 18px; }
.pd-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pd-card { background: var(--thp-card); border: var(--thp-border-w, 1px) solid var(--thp-line); border-radius: var(--thp-radius, 14px); padding: 26px; margin: 0; }
.pd-card h3 { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.pd-card p { color: var(--thp-muted); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.pd-card p:last-child { margin-bottom: 0; }
.pd-num { display: block; font-family: var(--thp-label-font); font-size: 13px; color: var(--thp-highlight); margin-bottom: 18px; }
.pd-suited { transition: transform .2s, box-shadow .2s; }
.pd-suited:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(0,0,0,0.35); }
.pd-icon { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; background: var(--thp-soft); color: var(--thp-icon, var(--thp-highlight)); font-family: var(--thp-label-font); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.pd-feature { display: flex; flex-direction: column; }
.pd-video { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; color: var(--thp-highlight); text-decoration: none; }
.pd-video:hover { text-decoration: underline; }

/* Overview */
.pd-split__main > :first-child { margin-top: 0; }
.pd-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.pd-split__side { position: sticky; top: calc(var(--pd-top, 72px) + 80px); display: flex; flex-direction: column; gap: 14px; }
.pd-split__side .btn { width: 100%; }
.pd-note { color: var(--thp-muted); font-size: 13px; margin: 0; }
.pd-note--center { text-align: center; margin-top: 4px; }

/* What's new */
.pd-log__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.pd-log__head b { font-family: var(--thp-head); font-weight: var(--thp-head-weight, 700); color: var(--thp-head-color, var(--thp-text)); font-size: 26px; }
.pd-log__head span { color: var(--thp-muted); font-size: 14px; }
.pd-log__head em { font-style: normal; background: var(--thp-accent); color: var(--thp-accent-text); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.pd-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 32px; }
.pd-checks--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pd-checks li { display: flex; gap: 10px; color: var(--thp-text); font-size: 15px; line-height: 1.5; }
.pd-checks li::before { content: "✓"; color: var(--thp-highlight); font-weight: 700; flex: 0 0 auto; }
.pd-log__old { margin-top: 22px; border-top: 1px solid var(--thp-line); padding-top: 16px; }
.pd-log__old summary { cursor: pointer; font-weight: 600; color: var(--thp-highlight); }
.pd-log__row { display: grid; grid-template-columns: 90px 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--thp-line); font-size: 14px; }
.pd-log__row b { color: var(--thp-head-color, var(--thp-text)); }
.pd-log__row span { color: var(--thp-muted); }
.pd-log__row p { margin: 0; color: var(--thp-text); }

/* Comparison */
.pd-table-wrap { overflow-x: auto; border: var(--thp-border-w, 1px) solid var(--thp-line); border-radius: var(--thp-radius, 14px); background: var(--thp-card); }
.pd-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.pd-table th, .pd-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--thp-line); vertical-align: middle; }
.pd-table tbody tr:last-child th, .pd-table tbody tr:last-child td { border-bottom: 0; }
.pd-table thead th { font-family: var(--thp-label-font); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--thp-muted); font-weight: 500; background: var(--thp-soft); }
.pd-table thead th.is-ours { color: var(--thp-head-color, var(--thp-text)); font-weight: 700; }
.pd-table tbody th { font-weight: 600; color: var(--thp-head-color, var(--thp-text)); width: 34%; }
.pd-table td { color: var(--thp-muted); }
.pd-table td.is-ours { color: var(--thp-text); font-weight: 600; background: var(--pd-ours-bg, rgba(127,127,127,0.06)); }
.pd-yes, .pd-no { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.pd-yes { background: var(--pd-yes-bg, #d8f0dd); color: var(--pd-yes, #1d7a3a); }
.pd-no { background: var(--pd-no-bg, #f6dcd6); color: var(--pd-no, #b3402a); }

/* Screenshots */
.pd-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pd-tabs button { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--thp-line); background: transparent; color: var(--thp-muted); }
.pd-tabs button[aria-selected="true"] { background: var(--thp-primary); border-color: var(--thp-primary); color: var(--thp-primary-text); }
.pd-shots[hidden] { display: none; }
.pd-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.pd-shot { display: block; border: var(--thp-border-w, 1px) solid var(--thp-line); border-radius: var(--thp-radius, 14px); overflow: hidden; background: var(--thp-card); cursor: zoom-in; }
.pd-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .4s; }
.pd-shot:hover img { transform: scale(1.03); }
.pd-lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.pd-lightbox::backdrop { background: rgba(0,0,0,0.82); }
.pd-lightbox img { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 10px; }
.pd-lightbox__close { position: absolute; top: -44px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 24px; line-height: 1; cursor: pointer; }

/* Plans */
.pd-plans { margin-bottom: 18px; }
.pd-plans.is-single { max-width: 420px; }
.pd-plans .thp-plan { padding-top: 34px; }
.pd-plan__price s { color: var(--thp-muted); font-size: 16px; }
.pd-plans .thp-plan__price { font-size: 48px; }
.pd-save { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--thp-highlight); border: 1px solid currentColor; border-radius: 999px; padding: 3px 9px; }

/* Reviews & FAQ */
.pd .thp-review { display: flex; flex-direction: column; gap: 14px; }
.pd-faq { max-width: 880px; }

/* Mobile buy bar */
.pd-buybar { display: none; }

@media (max-width: 960px) {
	.pd-hero__grid { grid-template-columns: 1fr; gap: 36px; }
	.pd-split { grid-template-columns: 1fr; }
	.pd-split__side { position: static; }
	.pd-nav__buy { display: none; }
	.pd-buybar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 14px; background: var(--pd-bar-bg, var(--thp-card)); border: 1px solid var(--thp-line); box-shadow: 0 16px 40px rgba(0,0,0,0.25); transform: translateY(140%); transition: transform .25s; }
	.pd-buybar.is-on { transform: none; }
	.pd-buybar__text { min-width: 0; display: flex; flex-direction: column; }
	.pd-buybar__text b { color: var(--thp-head-color, var(--thp-text)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.pd-buybar__text span { color: var(--thp-muted); font-size: 13px; }
}
@media (max-width: 600px) {
	.pd-hero { padding-top: 24px; }
	.pd-lede { font-size: 16px; }
	.pd-price b { font-size: 36px; }
	.pd-ctas, .pd-ctas .btn { width: 100%; }
	.pd-card { padding: 22px; }
	.pd-table th, .pd-table td { padding: 13px 14px; }
	.pd-log__row { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	.pd-shot img, .pd-suited, .pd-buybar { transition: none; }
}
