/* Product page layout variants (Rosti 2026-11-19). Only loaded by app/templates/product/v1-3.php.
   Open: product/<slug>?v=1 (Spec sheet), ?v=2 (Listening room), ?v=3 (Editorial). */
@font-face { font-family: 'Bounded'; src: url('../fonts/Bounded-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

/* ---------- shared ---------- */
.pv { --pv-wide: 'Bounded', var(--font, sans-serif); --pv-mono: ui-monospace, 'JetBrains Mono', Consolas, monospace; }
.pv-switch { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; margin: 0 0 1.75rem; font-size: .8rem; color: var(--text-muted); }
.pv-switch a { padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; }
.pv-switch a:hover { border-color: rgba(255,255,255,.3); }
.pv-switch a.is-on { background: var(--lime); color: #000; border-color: var(--lime); font-weight: 600; }
.pv .wsap-product-structure { padding: 0; }
.pv .pv-related { margin-top: 4rem; }
.pv .pv-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- 1. SPEC SHEET ---------- */
.pv1__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; align-items: start; }
.pv1__media { position: sticky; top: 96px; }
.pv1__cover { position: relative; padding: 14px; }
.pv1__cover img { display: block; width: 100%; height: auto; }
.pv1__corner { position: absolute; width: 26px; height: 26px; border: 0 solid var(--white); }
.pv1__corner--tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.pv1__corner--tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.pv1__corner--bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.pv1__corner--br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.pv1__serial { font: 500 .7rem/1 var(--pv-mono); letter-spacing: .2em; color: var(--text-muted); margin: .9rem 14px 0; }
.pv1__eyebrow { font: 600 .75rem/1 var(--pv-mono); letter-spacing: .22em; color: var(--text-muted); margin: 0 0 1rem; }
.pv1__eyebrow span { color: var(--pink); margin: 0 .4em; }
.pv1 .pv1__title { font-family: var(--pv-wide); font-weight: 900; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: .95; text-transform: uppercase; letter-spacing: .01em; margin: 0; color: var(--white); }
.pv1__outline { font-family: var(--pv-wide); font-size: clamp(2rem, 4.4vw, 3.7rem); line-height: 1; margin: .15rem 0 1.6rem; color: transparent; -webkit-text-stroke: 1.5px var(--white); text-transform: uppercase; }
.pv1__buy { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.pv1 .pv-price { font-family: var(--pv-wide); font-size: 2rem; margin: 0; color: var(--white); }
.pv1 .btn { border-radius: 0; text-transform: uppercase; letter-spacing: .08em; }
.pv1__hazard { height: 18px; margin: 2rem 0 1.5rem; background: repeating-linear-gradient(-55deg, var(--white) 0 14px, transparent 14px 28px); opacity: .9; }
.pv1__spec { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 1.5rem; border-top: 1px solid var(--border); }
.pv1__spec > div { padding: .9rem .2rem; border-bottom: 1px solid var(--border); }
.pv1__spec dt { font: 600 .68rem/1 var(--pv-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .45rem; }
.pv1__spec dd { margin: 0; font-weight: 600; color: var(--white); font-size: .95rem; }
.pv1__desc { color: var(--text-muted); font-size: .9rem; }
.pv1__h { font: 700 .78rem/1 var(--pv-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--white); margin: 0 0 .8rem; display: flex; justify-content: space-between; }
.pv1__h span { color: var(--pink); }
.pv1 .pv1__tracks { background: none; border: 0; padding: 0; margin: 2rem 0; }
/* Audio rows (2026-11-24): the highlight no longer touches the track number (side padding), the playing row keeps a
   pink edge, and the play button does not grow on hover/while playing (it made the active row look misaligned). */
.pv1 .pv-track { border-radius: 0; background: none; border: 0; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; padding: .7rem .75rem; gap: 1rem; margin: 0; }
.pv1 .pv-track:hover { background: rgba(255,255,255,.03); }
.pv1 .pv-track:has(.wsap-audio-play.playing) { background: rgba(237,25,83,.07); border-left-color: var(--pink); }
.pv-track__no { font: 600 .8rem/1 var(--pv-mono); color: var(--text-muted); width: 1.6rem; flex: 0 0 1.6rem; }
.pv1 .wsap-audio-play { border-radius: 0; width: 34px; height: 34px; flex: 0 0 34px; background: var(--white); color: #000; transform: none; }
.pv1 .wsap-audio-play:hover { transform: none; background: #e9e9e9; }
.pv1 .wsap-audio-play.playing, .pv1 .wsap-audio-play.playing:hover { background: var(--pink); color: #fff; }
.pv1 .wsap-audio-label { font-weight: 600; min-width: 11rem; }
.pv1 .wsap-audio-progress { height: 3px; border-radius: 0; }
.pv1 .wsap-audio-progress-bar { border-radius: 0; }
.pv1__panel { border: 1px solid var(--border); padding: 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; background: rgba(255,255,255,.02); }
.pv1__body, .pv3__side { min-width: 0; }
.pv1__panel .product-brief-contents__body ul { margin: 0; padding-left: 1.1rem; }
.pv1__meta { font-size: .85rem; margin-top: 1rem; }
.pv1__meta span { font: 600 .68rem/1 var(--pv-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); margin-right: .4em; }

/* ---------- 2. LISTENING ROOM ---------- */
.pv2 { position: relative; overflow: hidden; padding-bottom: 7rem; }
.pv2__backdrop { position: absolute; inset: -80px -80px auto; height: 760px; background-size: cover; background-position: center; filter: blur(70px) saturate(1.4); opacity: .45; z-index: 0; }
.pv2__backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg) 92%); }
.pv2__wrap { position: relative; z-index: 1; max-width: 820px; }
.pv2__head { text-align: center; }
.pv2__cover { width: min(420px, 82vw); height: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.55); display: block; margin: 0 auto 1.6rem; }
.pv2__type { font-size: .85rem; color: var(--text-muted); margin: 0 0 .3rem; }
.pv2 .pv2__title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin: 0 0 1rem; color: var(--white); }
.pv2__chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; padding: 0; margin: 0 0 2.2rem; }
.pv2__chips li { padding: .35rem .85rem; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .8rem; color: var(--text); backdrop-filter: blur(6px); }
.pv2 .pv2__tracks { border-radius: 18px; padding: .6rem; background: rgba(20,20,20,.72); backdrop-filter: blur(10px); }
.pv2__tracks-head { display: grid; grid-template-columns: 2.2rem 1fr; padding: .4rem .9rem .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); border-bottom: 1px solid var(--border); margin-bottom: .35rem; }
.pv2 .pv-track { border: 0; background: none; border-radius: 12px; padding: .65rem .9rem; margin: 0; }
.pv2 .pv-track:hover { background: rgba(255,255,255,.06); }
.pv2 .wsap-audio-play { width: 42px; height: 42px; background: var(--lime); color: #000; }
.pv2 .wsap-audio-play.playing { background: var(--pink); color: #fff; }
.pv2 .wsap-audio-label { font-weight: 600; flex: 0 0 40%; }
.pv2 .wsap-audio-progress { height: 4px; }
.pv2__info { margin-top: 2rem; display: grid; gap: .6rem; }
.pv2__desc { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: .6rem; }
.pv2__acc { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 0 1.2rem; }
.pv2__acc summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 600; color: var(--white); display: flex; justify-content: space-between; }
.pv2__acc summary::-webkit-details-marker { display: none; }
.pv2__acc summary::after { content: '+'; color: var(--lime); font-weight: 700; }
.pv2__acc[open] summary::after { content: '–'; }
.pv2__acc summary em { font-style: normal; color: var(--text-muted); font-weight: 400; margin-left: auto; margin-right: 1rem; font-size: .85rem; }
.pv2__acc > :not(summary) { padding-bottom: 1rem; }
.pv2__acc .wsap-product-structure__title:empty { display: none; }
.pv2__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(14,14,14,.88); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.pv2__bar-in { display: flex; align-items: center; gap: 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.pv2__bar-in img { width: 52px; height: 52px; border-radius: 8px; }
.pv2__bar-t { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.pv2__bar-t strong { color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv2__bar .pv-price { margin: 0; font-size: .9rem; color: var(--lime); font-weight: 600; }
.pv2__bar .btn { border-radius: 999px; }

/* ---------- 3. EDITORIAL ---------- */
.pv3__issue { display: flex; justify-content: space-between; gap: 1rem; font: 600 .72rem/1 var(--pv-mono); letter-spacing: .25em; text-transform: uppercase; color: var(--text-muted); border-top: 2px solid var(--white); border-bottom: 1px solid var(--border); padding: .7rem 0; margin: 0 0 1.2rem; }
.pv3 .pv3__title { font-family: var(--pv-wide); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 11vw, 9.5rem); line-height: .86; letter-spacing: -.01em; margin: 0 0 2.5rem; color: var(--white); word-break: break-word; }
.pv3__title .is-outline { color: transparent; -webkit-text-stroke: 2px var(--white); }
.pv3__spread { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; align-items: start; }
.pv3__cover { margin: 0; position: relative; transform: rotate(-2deg); }
.pv3__cover::before { content: ''; position: absolute; inset: 0; transform: translate(18px, 18px) rotate(2deg); background: var(--lime); z-index: -1; }
.pv3__cover img { display: block; width: 100%; height: auto; }
.pv3__nums { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.pv3__nums div { display: flex; align-items: baseline; gap: .7rem; border-bottom: 1px solid var(--border); padding-bottom: .9rem; }
.pv3__nums b { font-family: var(--pv-wide); font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; color: var(--white); }
.pv3__nums span { font: 600 .75rem/1 var(--pv-mono); text-transform: uppercase; letter-spacing: .2em; color: var(--text-muted); }
.pv3 .pv-price { font-size: 1.6rem; font-weight: 700; color: var(--white); margin: 0 0 1rem; }
.pv3 .pv3__actions .btn { flex: 1 1 0; }
.pv3__lede { margin-top: 1.5rem; font-size: 1.05rem; color: var(--text); }
.pv3__note { color: var(--text-muted); font-size: .85rem; }
.pv3__h { font: 700 .75rem/1 var(--pv-mono); letter-spacing: .25em; text-transform: uppercase; color: var(--white); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--white); }
.pv3 .pv3__tracks { background: none; border: 0; padding: 0; margin: 4.5rem 0 3rem; }
.pv3__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pv3 .pv-track { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "no label play" "bar bar bar"; gap: .9rem 1rem; padding: 1.3rem; border-radius: 0; margin: 0; background: var(--bg-card); border: 1px solid var(--border); }
.pv3 .pv-track__no { grid-area: no; font-family: var(--pv-wide); font-size: 1.8rem; color: var(--lime); width: auto; }
.pv3 .wsap-audio-label { grid-area: label; align-self: center; font-weight: 600; }
.pv3 .wsap-audio-play { grid-area: play; background: var(--white); color: #000; }
.pv3 .wsap-audio-play.playing { background: var(--lime); }
.pv3 .wsap-audio-progress { grid-area: bar; height: 3px; border-radius: 0; }
.pv3__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
	.pv1__grid, .pv3__spread, .pv3__cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.pv1 .pv1__title { font-size: clamp(2rem, 11vw, 3rem); word-break: break-word; }
	.pv1__outline { font-size: clamp(1.7rem, 9.5vw, 2.6rem); }
	.pv1__buy, .pv1 .pv-actions { gap: .6rem; }
	.pv1 .pv-actions .btn { flex: 1 1 0; padding-left: .5rem; padding-right: .5rem; }
	.pv1__media { position: static; }
	.pv1__spec { grid-template-columns: repeat(2, 1fr); }
	.pv1 .wsap-audio-label { min-width: 0; }
	/* phone: number | button | title on the first line, the progress bar under the title, so names are not cut off */
	.pv1 .pv-track { display: grid; grid-template-columns: 1.6rem 34px minmax(0, 1fr); grid-template-areas: "no play label" ". . bar"; align-items: center; gap: .55rem 1rem; }
	.pv1 .pv-track__no { grid-area: no; }
	.pv1 .wsap-audio-play { grid-area: play; }
	.pv1 .wsap-audio-label { grid-area: label; min-width: 0; overflow-wrap: anywhere; }
	.pv1 .wsap-audio-progress { grid-area: bar; width: 100%; height: 4px; }
	.pv3__cards { grid-template-columns: 1fr; }
	.pv3__cover { transform: none; margin-right: 18px; }
	.pv2__bar-in img { display: none; }
	.pv2__bar .btn { padding-left: .9rem; padding-right: .9rem; font-size: .8rem; }
	.pv2 .wsap-audio-label { flex: 1 1 auto; }
	.pv2 .wsap-audio-progress { display: none; }
}
