.pdp-crumb { padding-top: 1.1rem; }
.breadcrumb--left { justify-content: flex-start; font-size: 13px; }
.breadcrumb--left li:last-child { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.pdp { display: grid; gap: 1.5rem; padding-block: 1rem 2.5rem; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; } }

/* Galería */
.gallery { display: grid; gap: .75rem; }
@media (min-width: 960px) { .gallery { position: sticky; top: calc(var(--header-h) + 1rem); } }
.gallery__main { position: relative; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(circle at 50% 40%, #ffffff, #e9eef5 78%); border: 1px solid var(--line); }
.gallery__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.gallery__zoom img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .2s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
@media (hover: hover) { .gallery__zoom:hover img { transform: scale(1.8); } }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; border-radius: 50%; background: rgba(9, 13, 22, .7); color: #fff; }
.gallery__nav--prev { left: .6rem; }
.gallery__nav--next { right: .6rem; }
.gallery__thumbs { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery__thumb { flex: none; width: 76px; height: 76px; padding: 0; border-radius: var(--r-md); overflow: hidden; border: 2px solid transparent; background: #fff; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-on, .gallery__thumb:hover { opacity: 1; border-color: var(--jade); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(3, 7, 15, .92); padding: 1rem; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; object-fit: contain; background: #fff; border-radius: var(--r-lg); }
.lightbox .icon-btn { position: absolute; top: 1rem; right: 1rem; }

/* Info */
.pdp__chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.pdp__title { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.2rem); margin: .7rem 0 .4rem; }
.pdp__rating { display: inline-flex; align-items: center; gap: .35rem; font-size: 13.5px; color: var(--muted); }
.pdp__rating .icon { color: var(--warning); }
.pdp__rating:hover { color: var(--jade-2); }
.pdp__lead { color: var(--muted-2); margin: .9rem 0; }
.pdp__price { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.pdp__now { font: 800 clamp(1.8rem, 1.4rem + 1.5vw, 2.3rem)/1 var(--font-head); color: var(--jade-2); text-shadow: 0 0 30px rgba(74, 222, 128, .25); }
.pdp__was { color: var(--muted); font-size: 16px; }
.pdp__iva { font-size: 12.5px; color: var(--muted); margin: .35rem 0 .8rem; }

.variants { border: 0; margin: 1.1rem 0 0; padding: 0; }
.variants legend { font-size: 14px; color: var(--muted); margin-bottom: .55rem; }
.variants legend strong { color: var(--text); }
.variants__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem .35rem .35rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer; font-size: 13.5px; transition: border-color .2s; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: #fff; }
.variant:has(input:checked) { border-color: var(--jade); box-shadow: 0 0 0 1px var(--jade) inset; color: var(--text); }
.variant:has(input:focus-visible) { outline: 2px solid var(--jade-2); outline-offset: 2px; }
.variant.is-out { opacity: .5; }
.variant.is-out span { text-decoration: line-through; }

.pdp__buy { display: flex; gap: .6rem; margin: 1.25rem 0 .6rem; }
.pdp__add { flex: 1; }
.qty { display: inline-flex; align-items: center; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface-2); }
.qty__btn { display: grid; place-items: center; width: 40px; height: 46px; border: 0; background: none; color: var(--muted-2); }
.qty__btn:hover { color: var(--jade-2); }
.qty input { width: 42px; height: 46px; border: 0; background: none; text-align: center; color: var(--text); font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.wish-btn--lg { width: 48px; height: 48px; border-radius: var(--r-md); }
.pdp__ship { display: flex; gap: .55rem; align-items: flex-start; margin: 1rem 0; padding: .8rem 1rem; border-radius: var(--r-md); background: var(--jade-soft); border: 1px solid var(--jade-line); color: var(--text-2); font-size: 13.5px; }
.pdp__ship .icon { color: var(--jade-2); margin-top: 2px; }
.pdp__trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pdp__trust li { display: flex; align-items: center; gap: .5rem; padding: .7rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }
.pdp__trust li a { display: flex; align-items: center; gap: .5rem; }
.pdp__trust .icon { color: var(--jade-2); }
.pdp__legal { margin-top: 1rem; font-size: 12.5px; color: var(--muted); }
.pdp__legal a { color: var(--jade-2); text-decoration: underline; }

/* Bloques inferiores */
.pdp-block { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.pdp-block > h2, .pdp-block .section-head h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin-bottom: 1rem; }
.pdp-desc { color: var(--muted-2); max-width: 75ch; white-space: pre-line; }
.specs { width: 100%; max-width: 820px; border-collapse: collapse; border-radius: var(--r-md); overflow: hidden; font-size: 14px; }
.specs tr:nth-child(odd) { background: var(--surface-2); }
.specs th, .specs td { padding: .75rem 1rem; text-align: left; vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.reviews-empty { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.reviews-empty .icon { color: var(--warning); }
.reviews-empty p { margin: .2rem 0 0; color: var(--muted); font-size: 14px; }
.reviews-empty a { color: var(--jade-2); text-decoration: underline; }
.faq { display: grid; gap: .5rem; max-width: 860px; }
.faq__item { border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 1.1rem; cursor: pointer; font-weight: 700; color: var(--text); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .25s; color: var(--jade-2); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { padding: 0 1.1rem 1rem; margin: 0; color: var(--muted-2); font-size: 14.5px; }

/* Barra fija móvil */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(6, 14, 32, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-buy.is-on { transform: none; }
.sticky-buy > div { min-width: 0; display: flex; flex-direction: column; }
.sticky-buy__name { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy strong { color: var(--jade-2); font-family: var(--font-head); }
@media (min-width: 960px) { .sticky-buy { display: none; } }

/* Reseñas aprobadas */
.stars { color: var(--warning); letter-spacing: 1px; font-size: 15px; line-height: 1; }
.stars__off { color: var(--surface-4); }
.reviews-sum { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.reviews-sum .stars { font-size: 20px; }
.reviews-sum strong { color: var(--text); font-family: var(--font-head); }
.reviews-sum span:last-child { flex-basis: 100%; font-size: 13.5px; color: var(--muted); }
.reviews-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.review-item { padding: 1rem 1.1rem; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.review-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.review-item__head strong { color: var(--text); font-size: 14px; }
.review-item__head time { font-size: 12.5px; color: var(--muted); }
.review-item p { margin: .5rem 0 0; color: var(--text-2); font-size: 14.5px; white-space: pre-line; }
.reviews-note { margin-top: 1rem; font-size: 14px; color: var(--muted); }
.reviews-note a { color: var(--jade-2); text-decoration: underline; }

/* Móvil angosto (360–390 px): las piezas de la ficha pueden achicarse por debajo de su contenido;
   sin esto la galería y la fila de compra empujaban la página a ~408 px de ancho. */
.pdp > *, .gallery > *, .pdp__info > *, .pdp__trust > li, .pdp__buy > *, .sticky-buy > * { min-width: 0; }
.pdp__buy .btn { flex: 1 1 auto; }
.sticky-buy__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
