/* Ficha: talla recomendada (inc/tallas.php), fotos de creadores en la galería y vídeos «En la calle» (inc/ficha-media.php). */

/* ---------- Talla recomendada, bajo las píldoras ---------- */
.talla-reco { margin: 14px 0 4px; border-radius: var(--r-m); background: var(--bg-2); overflow: hidden; transition: background-color .4s; }
.talla-reco.has-reco { background: rgba(10, 132, 255, .08); }
.talla-reco-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; }
.talla-reco-txt { font-size: .93rem; color: var(--ink-2); flex: 1 1 220px; }
.talla-reco-txt strong { color: var(--ink); }
.talla-reco-txt small { color: var(--ink-3); }
.talla-reco-size { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 10px; margin: 0 4px; border-radius: var(--pill); background: var(--brand-600); color: #fff; font: 700 .95rem/1 var(--font-d); letter-spacing: 0; vertical-align: middle; animation: talla-pop .6s var(--ease) both; }
@keyframes talla-pop { from { transform: scale(.6); opacity: 0; } }
.talla-reco-toggle { border: 0; background: none; color: var(--brand-600); font-weight: 600; font-size: .9rem; cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
.talla-reco-body { padding: 0 18px 18px; }
.talla-form { display: grid; gap: 12px; }
.talla-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.talla-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.talla-form label small { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.talla-form input { width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--bg); font: inherit; font-size: 1rem; box-sizing: border-box; }
.talla-form input:focus { outline: 2px solid var(--brand-600); outline-offset: 1px; border-color: transparent; }
.talla-fit .pill { min-height: 42px; padding: 0 16px; font-size: .9rem; }
.talla-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* Píldora recomendada: punto azul y etiqueta pequeña */
.pill.is-reco { position: relative; box-shadow: inset 0 0 0 1.5px var(--brand-600); }
.pill.is-reco::after { content: "Tu talla"; position: absolute; top: -9px; left: 50%; translate: -50% 0; padding: 2px 8px; border-radius: var(--pill); background: var(--brand-600); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; animation: talla-pop .5s var(--ease) both; }
.pill.is-reco.is-on { box-shadow: none; }
.opt[data-opt="pa_talla"] .pills { padding-top: 6px; }

/* ---------- «Con ella puesta» ---------- */
.wear-track { align-items: start; }
.wear-item { flex: 0 0 auto; }
.wear-vcard { width: clamp(220px, 60vw, 300px); }
.pdp-slide-foto img { object-fit: cover; }
.pdp-slide-foto .wear-cap { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: var(--pill); background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); font-size: .75rem; font-weight: 600; }
.thumb-foto img { object-fit: cover; border-radius: calc(var(--r-s) - 4px); }

/* ---------- .vid con play en página (template-parts/video-card.php): reutiliza .vcard-media/.vcard-play de app.css ---------- */
.vid-inline .vcard-media { position: absolute; inset: 0; z-index: 0; }
.vid-inline .vcard-play { z-index: 3; background: none; }
.vid-inline .vcard-play span { width: 52px; height: 52px; }
.vid-inline .vcard-play span svg { width: 24px; height: 24px; }
.vid-inline.is-playing::after, .vid-inline.is-playing .vid-meta, .vid-inline.is-playing .vid-shirt, .is-playing .vid-shirt { display: none; }
.vid-shirt { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 7px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .78rem; font-weight: 700; text-decoration: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .3s var(--ease), background-color .25s; }
.vid-shirt::after { content: " →"; }
.vid-shirt:hover { background: #fff; transform: translateY(-1px); }
.cr-vcard .vid-shirt { top: auto; bottom: 70px; }
.cr-vcard .cr-tag ~ .vid-shirt { top: 48px; bottom: auto; } /* debajo de la etiqueta «Artista con la camiseta» (arriba a la derecha se pisaban en tarjetas estrechas) */

@media (prefers-reduced-motion: reduce) {
	.talla-reco-size, .pill.is-reco::after { animation: none; }
	.vid-shirt { transition: none; }
}

/* ============ Ficha compacta (10-nov): galería fija sin hueco, confianza con iconos, acordeones ============ */
@media (min-width: 900px) { .pdp-gallery { align-self: start; } .pdp-grid { gap: 48px; } }
.pdp-buy { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdp-buy > * { grid-column: 1 / -1; }
.pdp-buy > .fav-lg, .pdp-buy > .vest-tg-lg { grid-column: auto; justify-content: center; }
.pdp-buy h1 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.pdp-buy .buy-form, .pdp-buy .variations { gap: 14px; }
.pdp-buy .off-ship-pdp { margin: 0; padding: 12px 14px 8px; gap: 6px; }
.pdp-buy .off-ship-track { margin: 2px 0 38px; height: 8px; }
.pdp-buy .off-ship-msg { font-size: .9rem; }
.pdp-buy .off-ship-gift { font-size: .84rem; padding: 8px 12px; }
.pdp-buy .off-ship-legal { display: none; }
.pdp-buy .deliver { padding: 10px; gap: 4px; }
.pdp-buy .deliver .fine { display: none; }
.pdp-buy .deliver-row { padding: 8px 10px; font-size: .9rem; }
.pdp-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp-trust li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); background: var(--bg-2); min-width: 0; }
.pdp-trust .ic { flex: none; color: var(--brand-600); }
.pdp-trust strong { display: block; font-size: .86rem; line-height: 1.2; }
.pdp-trust span { display: block; font-size: .76rem; color: var(--ink-3); line-height: 1.25; margin-top: 2px; }
.pdp-acc { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 56px; font-weight: 650; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { color: var(--brand-600); }
.acc summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border: solid var(--ink-3); border-width: 0 2px 2px 0; rotate: 45deg; transition: rotate .25s var(--ease); }
.acc[open] summary::after { rotate: -135deg; }
.acc-body { padding: 0 0 18px 34px; color: var(--ink-2); font-size: .94rem; display: grid; gap: 10px; }
.acc-body p { margin: 0 0 8px; }
.acc-list { display: grid; gap: 8px; }
.acc-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.acc-table th, .acc-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.acc-table thead th { font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.clamp { max-height: 7.4em; overflow: hidden; position: relative; }
.clamp.is-open { max-height: none; }
.clamp:not(.is-open).is-long { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.clamp-more { justify-self: start; border: 0; background: none; padding: 4px 0; font-weight: 650; color: var(--brand-600); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) { .acc-body { padding-left: 0; } }
@media (max-width: 899px) {
	.pdp-grid { gap: 16px; }
	.pdp-main { aspect-ratio: 1 / 1; max-height: 52svh; margin-inline: auto; width: 100%; }
	.pdp-gallery { gap: 8px; }
	.thumb { flex-basis: 54px; }
	.pdp-trust { gap: 6px; }
	.pdp-trust li { padding: 8px 10px; gap: 8px; }
}
.pdp-buy > .fav-lg, .pdp-buy > .vest-tg-lg { white-space: nowrap; font-size: .84rem; padding-inline: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pdp-buy > .fav-lg, .pdp-buy > .vest-tg-lg { width: 100%; }

/* Parches: «Sin parche» es lo principal; el resto, extra discreto en una fila pequeña */
.opt-parche .pills { gap: 6px; }
.opt-parche legend { font-size: .9rem; margin-bottom: 8px; }
.opt-parche legend em { font-size: .8rem; }
.opt-parche .pill { min-height: 38px; min-width: 0; padding: 0 14px; font-size: .84rem; font-weight: 550; display: inline-flex; align-items: center; gap: 6px; }
.opt-parche .pill .pill-sub { display: inline; font-size: .72rem; opacity: .75; }
.opt-parche .pill:not(.is-on) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.opt-parche .pill.is-on { background: var(--ink); color: #fff; }
/* Orden: título, precio, opciones, comprar; los dos botones pequeños después */
.pdp-buy > .fav-lg, .pdp-buy > .vest-tg-lg { order: 1; height: 40px; font-size: .82rem; }
.pdp-buy > .pdp-acc { order: 2; }
.talla-reco { margin: 8px 0 0; }
.talla-reco-head { padding: 10px 14px; }
.talla-reco-txt { font-size: .88rem; flex-basis: 140px; }
.pz-opt { padding: 12px 14px; }
.opt-parche legend { justify-content: flex-start; }
.opt-parche legend em { margin-left: 6px; }
[data-opt="pa_talla"] .pill { min-width: 56px; }
.pdp-buy > .fav-lg, .pdp-buy > .vest-tg-lg { max-width: 100%; box-sizing: border-box; }
.pdp-buy { min-width: 0; }
.pdp-buy > .fav-lg, .pdp-buy > .vest-tg-lg { margin: 0; }
