/* Ficha de producto — galería, información, variantes, acciones, relacionados. */
.pdp { display: grid; gap: 1.5rem; padding-bottom: 2.5rem; }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }

/* Galería */
.gal { display: grid; gap: .75rem; min-width: 0; }
@media (min-width: 960px) { .gal { position: sticky; top: 140px; } .gal:has(.gal__thumbs) { grid-template-columns: 76px minmax(0, 1fr); } .gal__thumbs { order: -1; grid-auto-flow: row; align-content: start; } }
.gal__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-inline: calc(-1 * var(--gutter)); }
@media (min-width: 640px) { .gal__main { margin-inline: 0; } }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; }
.gal__slide--empty { display: grid; place-items: center; color: var(--line-2); }
.gal__slide--empty .ico { width: 64px; height: 64px; }
.gal .pcard__badges { top: .8rem; left: .8rem; }
.gal__dots { position: absolute; left: 0; right: 0; bottom: .7rem; display: flex; justify-content: center; gap: .35rem; }
.gal__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(15, 23, 42, .2); }
.gal__dots span.is-on { background: #fff; width: 18px; border-radius: 4px; }
@media (min-width: 960px) { .gal__dots { display: none; } }
.gal__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.gal__thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
@media (min-width: 960px) { .gal__thumbs { display: flex; flex-direction: column; gap: .5rem; } .gal__thumb { width: 76px; height: 76px; flex: none; } }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb[aria-pressed="true"], .gal__thumb:hover { opacity: 1; border-color: var(--brand); }

/* Información */
.pdp__info { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.pdp__cat { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); justify-self: start; }
.pdp__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.pdp__code { font-size: .85rem; color: var(--muted); margin-top: -.35rem; }
.pdp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .75rem; }
.price--lg { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.pdp__price .price-old { font-size: 1.05rem; }
.pdp__price .badge { align-self: center; }
.pdp__stock { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 700; }
.pdp__stock::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.pdp__stock.is-ok { color: var(--ok); }
.pdp__stock.is-out { color: var(--danger); }
.pdp__vars { display: grid; gap: 1rem; }
.pdp__vars:empty { display: none; }
.vgroup legend { font-size: .9rem; color: var(--ink-2); margin-bottom: .5rem; }
.vgroup legend strong { color: var(--ink); }
.vgroup__ops { display: flex; flex-wrap: wrap; gap: .5rem; }
.vopt { position: relative; }
.vopt input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.vopt label { display: inline-grid; justify-items: center; min-width: 52px; min-height: 44px; align-content: center; padding: .4rem .9rem; border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 700; font-size: .92rem; cursor: pointer; background: #fff; transition: border-color .2s, background .2s, color .2s; line-height: 1.2; }
.vopt label small { font-size: .74rem; font-weight: 600; color: var(--muted); }
.vopt label:hover { border-color: var(--ink-2); }
.vopt input:checked + label { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-2); box-shadow: inset 0 0 0 1px var(--brand); }
.vopt input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.vopt input:disabled + label { color: #a3acb9; background: var(--surface); text-decoration: line-through; cursor: not-allowed; border-style: dashed; }
.pdp__qty { display: flex; align-items: center; gap: 1rem; }
.pdp__err { min-height: 0; }
.pdp__actions { display: grid; gap: .6rem; }
@media (min-width: 640px) { .pdp__actions { grid-template-columns: 1fr 1fr; } }
.pdp__desc { display: grid; gap: .4rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.pdp__desc h2 { font-size: 1.05rem; }
.pdp__desc p { color: var(--ink-2); }
.pdp__specs { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.pdp__specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .55rem .9rem; font-size: .9rem; }
.pdp__specs > div:nth-child(odd) { background: var(--surface); }
.pdp__specs dt { color: var(--muted); font-weight: 600; }
.pdp__specs dd { font-weight: 700; }
.pdp__info-list { display: grid; gap: .75rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface); }
.pdp__info-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; }
.pdp__info-list li > span:first-child { color: var(--brand); }
.pdp__info-list li > span:last-child { display: grid; }
.pdp__fine { font-size: .8rem; color: var(--muted); }
@media (max-width: 639px) { .pgrid--related .pcard:nth-child(n+5) { display: none; } }
