/* assets/css/product-v5.css — ficha de producto v5 (product-detail/index.php).
   Estructura tipo marketplace B2B: galería con tira vertical de miniaturas, caja de pedido fija con
   escalera de precios por volumen, tarjeta de proveedor, pestañas fijas y carruseles al pie.
   Marca InventoryKill: navy #1D2530, cartón #CD9765/#AB733C, lino #fdf6ea.
   Se carga solo desde la ficha de producto; reemplaza/neutraliza las reglas .pd4-* de market-v4.css. */

.pd5-page {
  --p5-navy: #1D2530; --p5-navy-2: #2c3644; --p5-carton: #CD9765; --p5-carton-d: #AB733C; --p5-linen: #fdf6ea; --p5-linen-2: #f6ecda;
  --p5-ink: #1f2328; --p5-ink-2: #4b5563; --p5-muted: #7b8490; --p5-line: #ebe7e1; --p5-soft: #f7f4ef; --p5-ok: #15803d;
  --p5-ease: cubic-bezier(.2,.8,.2,1); --p5-r: 16px; --p5-shadow: 0 1px 2px rgba(29,37,48,.04), 0 6px 24px rgba(29,37,48,.05);
  background: #fff;
}
.pd5 { max-width: 1360px; margin: 0 auto; padding: 0 24px 48px; color: var(--p5-ink); font-family: Inter, system-ui, sans-serif; }
.pd5 *, .pd5-mbar * { box-sizing: border-box; }
.pd5 .material-symbols-outlined { line-height: 1; }
.pd5-dim { color: var(--p5-muted); }
.pd5-iconed { display: inline-flex; align-items: center; gap: 5px; }
.pd5-iconed .material-symbols-outlined { font-size: 16px; }
.pd5-iconed .ik-flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pd5-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px !important; }

/* ── Breadcrumb ── */
.pd5-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 14px 0 16px; font-size: 12.5px; color: var(--p5-muted); }
.pd5-crumbs a { color: var(--p5-muted); text-decoration: none; }
.pd5-crumbs a:hover { color: var(--p5-carton-d); text-decoration: underline; }
.pd5-crumbs .material-symbols-outlined { font-size: 16px; opacity: .6; }
.pd5-crumbs-cur { color: var(--p5-ink-2); max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Cuadrícula principal ── */
.pd5-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; column-gap: 32px; align-items: start;
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "gallery aside" "sup aside" "nav aside" "secs aside";
}
.pd5-supcard { align-self: start; }
.pd5-gallery { grid-area: gallery; display: flex; gap: 12px; min-width: 0; }
.pd5-aside { grid-area: aside; position: sticky; top: 120px; display: flex; flex-direction: column; gap: 14px; transition: top .25s var(--p5-ease); }
.pd5-supcard { grid-area: sup; }
.pd5-nav { grid-area: nav; }
.pd5-sections { grid-area: secs; min-width: 0; }

/* ── Galería ── */
.pd5-thumbs { flex: 0 0 76px; display: flex; flex-direction: column; gap: 10px; max-height: clamp(400px, 42vw, 600px); overflow-y: auto; scrollbar-width: none; padding: 2px; }
.pd5-thumbs::-webkit-scrollbar { display: none; }
.pd5-thumb { position: relative; flex: 0 0 auto; width: 72px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--p5-line); background: var(--p5-soft); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pd5-thumb img, .pd5-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd5-thumb:hover { border-color: var(--p5-carton); }
.pd5-thumb.is-on { border-color: var(--p5-carton-d); box-shadow: 0 0 0 2px rgba(171,115,60,.18); }
.pd5-thumb-play { position: absolute; inset: auto 4px 4px auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 16px !important; background: rgba(29,37,48,.75); color: #fff; }
.pd5-stage { position: relative; flex: 1; min-width: 0; height: clamp(400px, 42vw, 600px); border-radius: var(--p5-r); background: var(--p5-soft); overflow: hidden; display: grid; place-items: center; }
.pd5-stage > img, .pd5-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pd5-stage > img { mix-blend-mode: multiply; }
#pdMainImgWrap.pd5-stage.is-zoom img[data-zoom] { transform: scale(2); }
.pd5-stage .pd5-expand { left: 14px; bottom: 14px; }
.pd5-stage-tools { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.pd5-round { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(29,37,48,.12); color: var(--p5-navy); display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--p5-ease), color .2s; }
.pd5-round .material-symbols-outlined { font-size: 19px; }
.pd5-round:hover { transform: scale(1.08); color: var(--p5-carton-d); }
.pd5-round.is-active, .pd5-round.is-active:hover { color: #d14343; }
.pd5-stage-nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(29,37,48,.12); color: var(--p5-navy); display: grid; place-items: center; cursor: pointer; z-index: 3; opacity: 0; transition: opacity .2s, transform .2s; }
.pd5-stage-nav.prev { left: 14px; } .pd5-stage-nav.next { right: 14px; }
.pd5-stage:hover .pd5-stage-nav { opacity: 1; }
.pd5-stage-nav:hover { transform: scale(1.06); }
.pd5-swipe { display: none; }

/* ── Caja de pedido ── */
.pd5-buy, .pd5-protect, .pd5-supcard, .pd5-supfull { background: #fff; border: 1px solid var(--p5-line); border-radius: var(--p5-r); box-shadow: var(--p5-shadow); }
.pd5-buy { padding: 22px 22px 18px; display: flex; flex-direction: column; }
.pd5-title { margin: 0; font: 700 20px/1.35 Inter, system-ui, sans-serif; letter-spacing: -.01em; color: var(--p5-navy); overflow-wrap: anywhere; }
.pd5-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 13px; color: var(--p5-ink-2); }
.pd5-meta a { text-decoration: none; }
.pd5-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--p5-ink); }
.pd5-rating .material-symbols-outlined { font-size: 17px; }
.pd5-rating:hover span:last-child { text-decoration: underline; }
.pd5-meta .pd5-iconed .material-symbols-outlined { font-size: 17px; }
.pd5-dot { width: 3px; height: 3px; border-radius: 50%; background: #c9c3ba; }
.pd5-catlink:hover { color: var(--p5-carton-d); text-decoration: underline !important; }

.pd5-pricebox { margin-top: 16px; padding: 14px 16px 12px; border-radius: 12px; background: linear-gradient(180deg, var(--p5-linen), #fffaf2); border: 1px solid #f1e3cb; }
.pd5-ladder { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); grid-template-rows: auto auto; container-type: inline-size; }
.pd5-step { position: relative; display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: end; row-gap: 4px; padding: 2px 12px 8px; cursor: pointer; border-left: 1px solid #ecdcc1; transition: opacity .2s; }
.pd5-step:first-child { border-left: 0; padding-left: 0; }
.pd5-step-q { align-self: start; font-size: 12px; line-height: 1.3; color: var(--p5-ink-2); }
.pd5-step-p { font: 800 24px/1.1 Manrope, Inter, sans-serif; color: var(--p5-navy); letter-spacing: -.02em; white-space: nowrap; }
.pd5-ladder .pd5-step-p { font-size: clamp(15px, calc(100cqi / var(--n, 3) / 5.1), 24px); }
.pd5-step-p small { font-size: 12px; font-weight: 700; letter-spacing: .02em; margin-right: 1px; }
.pd5-ladder .pd5-step-p small { display: block; font-size: 10.5px; margin: 0 0 1px; opacity: .75; }
.pd5-ladder .pd5-step:not(.is-on) .pd5-step-p { color: #3c4652; }
.pd5-step.is-on .pd5-step-p { color: var(--p5-carton-d); }
.pd5-step.is-on .pd5-step-q { color: var(--p5-carton-d); font-weight: 600; }
.pd5-step::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px; background: var(--p5-carton-d); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--p5-ease); }
.pd5-step:first-child::after { left: 0; }
.pd5-step.is-on::after { transform: none; }
.pd5-single { display: flex; align-items: baseline; gap: 6px; }
.pd5-single .pd5-step-p { font-size: 30px; color: var(--p5-carton-d); }
.pd5-moq { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ead8bb; font-size: 12.5px; color: var(--p5-ink-2); }
.pd5-moq b { color: var(--p5-ink); }
.pd5-stock { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.pd5-stock .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1; }
.pd5-stock .pd5-dim { font-weight: 500; }
.pd5-stock.is-ok { color: var(--p5-ok); } .pd5-stock.is-low { color: #b45309; } .pd5-stock.is-out { color: #b42318; }

.pd5-variants { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.pd5-vgroup .pd-variant-label { display: block; font-size: 13px; color: var(--p5-ink-2); margin-bottom: 8px; }
.pd5-vgroup .pd-variant-label strong { color: var(--p5-ink); }
.pd5-vopts { display: flex; flex-wrap: wrap; gap: 8px; }
.pd5-chip { min-height: 34px; padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--p5-line); background: #fff; font: 600 13px Inter, sans-serif; color: var(--p5-ink); cursor: pointer; transition: all .15s; }
.pd5-chip:hover { border-color: var(--p5-carton); }
.pd5-chip.is-selected { border-color: var(--p5-carton-d); background: var(--p5-linen); color: var(--p5-carton-d); }
.pd5-swatch { width: 32px; height: 32px; border-radius: 50%; padding: 0; border: 2px solid #fff; background: var(--sw, #ccc) !important; box-shadow: 0 0 0 1.5px var(--p5-line); cursor: pointer; transition: box-shadow .15s; }
.pd5-swatch:hover { box-shadow: 0 0 0 1.5px var(--p5-carton); }
.pd5-swatch.is-selected { box-shadow: 0 0 0 2px var(--p5-carton-d); }

.pd5-buy .pd5-qty { margin: 16px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--p5-line); border-radius: 0; background: none; }
.pd5-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd5-qty-row label { margin: 0 !important; font-size: 13.5px !important; }
.pd5-qty .pd4-stepper { width: 168px; height: 40px; border-radius: 999px; border-color: #e2d5c1; }
.pd5-qty .pd4-stepper button { width: 40px; }
.pd5-qty .pd4-total { margin-top: 12px; }
.pd5-qty .pd4-total b { font-size: 21px; }

.pd5-ctas { display: grid; gap: 10px; margin-top: 16px; }
.pd5-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font: 700 14.5px Inter, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s var(--p5-ease), box-shadow .2s, background .2s, border-color .2s, color .2s; }
.pd5-btn .material-symbols-outlined { font-size: 19px; }
.pd5-btn:active { transform: scale(.98); }
.pd5-btn--solid { color: #fff; background: linear-gradient(135deg, var(--p5-carton-d), var(--p5-carton)); box-shadow: 0 8px 18px rgba(171,115,60,.28); }
.pd5-btn--solid:hover { box-shadow: 0 10px 24px rgba(171,115,60,.38); filter: brightness(1.03); }
.pd5-btn--line { color: var(--p5-navy); background: #fff; border-color: var(--p5-navy); }
.pd5-btn--line:hover { background: var(--p5-navy); color: #fff; }
.pd5-btn--navy { color: #fff; background: var(--p5-navy); }
.pd5-btn--navy:hover { background: var(--p5-navy-2); }
.pd5-btn--sm { height: 40px; font-size: 13.5px; padding: 0 16px; }
.pd5-sub-actions { display: flex; justify-content: center; gap: 22px; margin-top: 12px; }
.pd5-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none; font: 600 13px Inter, sans-serif; color: var(--p5-ink-2); cursor: pointer; }
.pd5-link .material-symbols-outlined { font-size: 19px; }
.pd5-link:hover { color: var(--p5-carton-d); }
.pd5-link.is-active, .pd5-link.is-active .material-symbols-outlined { color: #d14343; }

/* ── Beneficios ── */
.pd5-protect { padding: 16px 18px; }
.pd5-protect h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 800 14.5px Manrope, Inter, sans-serif; color: var(--p5-navy); }
.pd5-protect h3 .material-symbols-outlined { font-size: 20px; color: var(--p5-carton-d); }
.pd5-protect ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pd5-protect li { display: flex; gap: 12px; align-items: flex-start; }
.pd5-protect li > .material-symbols-outlined { flex: 0 0 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; color: var(--p5-carton-d); background: var(--p5-linen); }
.pd5-protect li b { display: block; font-size: 13px; color: var(--p5-ink); }
.pd5-protect li div > span { display: block; font-size: 12px; line-height: 1.45; color: var(--p5-muted); margin-top: 1px; }
.pd5-pm { display: flex !important; flex-wrap: wrap; gap: 5px; margin-top: 6px !important; }
.pd5-pm em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--p5-ink-2); padding: 2px 8px; border-radius: 999px; background: var(--p5-soft); border: 1px solid var(--p5-line); }

/* ── Tarjeta de proveedor ── */
.pd5-supcard { margin-top: 16px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; align-items: center; gap: 16px 22px; }
.pd5-supcard-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pd5-logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--p5-linen-2), #fff); border: 1px solid #efe2cc; color: var(--p5-carton-d); font: 800 16px Manrope, sans-serif; text-decoration: none; }
.pd5-logo img { width: 100%; height: 100%; object-fit: cover; }
.pd5-logo--lg { flex-basis: 60px; width: 60px; height: 60px; font-size: 20px; border-radius: 14px; }
.pd5-supcard-id { min-width: 0; }
.pd5-supname { display: block; font: 700 15.5px Inter, sans-serif; color: var(--p5-navy); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd5-supname:hover { color: var(--p5-carton-d); text-decoration: underline; }
.pd5-supline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--p5-ink-2); }
.pd5-verified { display: inline-flex; align-items: center; gap: 3px; color: #1d6fd1; font-weight: 700; }
.pd5-verified .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1; }
.pd5-supstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pd5-supstats > div { padding: 0 10px; border-left: 1px solid var(--p5-line); min-width: 0; }
.pd5-supstats b { display: block; font: 800 16px Manrope, sans-serif; color: var(--p5-navy); }
.pd5-supstats span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--p5-muted); margin-top: 2px; }
.pd5-supcard-actions { display: flex; gap: 8px; }
.pd5-supcard .pd5-supcard-actions { flex-direction: column; }

/* ── Pestañas ── */
.pd5-page .pd5-nav { display: flex; align-items: center; gap: 2px; margin-top: 28px; padding: 0 4px; background: #fff; border: 0; border-bottom: 1px solid var(--p5-line); border-radius: 0; overflow-x: auto; scrollbar-width: none; }
.pd5-nav::-webkit-scrollbar { display: none; }
.pd5-page .pd5-nav a { flex: 0 0 auto; padding: 15px 16px; font-size: 14.5px; font-weight: 600; color: var(--p5-ink-2); white-space: nowrap; }
.pd5-page .pd5-nav a:hover { color: var(--p5-navy); }
.pd5-page .pd5-nav a.is-on { color: var(--p5-navy); font-weight: 700; }
.pd5-page .pd5-nav a.is-on::after { left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--p5-carton-d); }
.pd5-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--p5-linen-2); color: var(--p5-carton-d); font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.pd5-nav-cta { display: none; }
.pd5-page .pd5-nav--fixed { display: flex; position: fixed; left: 0; right: 0; top: 0; z-index: 60; margin: 0; gap: 2px; border-bottom: 1px solid var(--p5-line); padding: 0 max(12px, calc((100vw - 1360px) / 2 + 8px)); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(29,37,48,.06); transform: translateY(-110%); visibility: hidden; transition: transform .3s var(--p5-ease), visibility 0s .3s; overflow: visible; }
.pd5-page .pd5-nav--fixed.is-on { transform: none; visibility: visible; transition: transform .3s var(--p5-ease); }
.pd5-page .pd5-nav--fixed .pd5-nav-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; opacity: 1; transform: none; pointer-events: auto; }
.pd5-nav-price { font: 800 15px Manrope, sans-serif; color: var(--p5-carton-d); white-space: nowrap; }
.pd5-page .pd5-nav-cta .pd4-nav-btn { height: 38px; padding: 0 20px; border-radius: 999px; }

/* ── Secciones ── */
.pd5-sec { padding: 28px 0 30px; border-bottom: 1px solid var(--p5-line); scroll-margin-top: 150px; }
.pd5-sec:last-child { border-bottom: 0; }
.pd5-h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 800 20px/1.25 Manrope, Inter, sans-serif; letter-spacing: -.015em; color: var(--p5-navy); }
.pd5-h3 { margin: 22px 0 10px; font: 700 14.5px Inter, sans-serif; color: var(--p5-ink); }
.pd5-h2 + .pd5-h3 { margin-top: 0; }
.pd5-attrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--p5-line); border-left: 1px solid var(--p5-line); border-radius: 10px; overflow: hidden; }
.pd5-attrs > div { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); border-right: 1px solid var(--p5-line); border-bottom: 1px solid var(--p5-line); }
.pd5-attrs dt { padding: 11px 14px; background: var(--p5-soft); font-size: 13px; color: var(--p5-muted); }
.pd5-attrs dd { margin: 0; padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--p5-ink); overflow-wrap: anywhere; }
.pd5-attrs dd.pd5-iconed { display: flex; }
.pd5-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.pd5-features li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--p5-ink-2); }
.pd5-features .material-symbols-outlined { font-size: 18px; color: var(--p5-ok); font-variation-settings: 'FILL' 1; }
.pd5-tiertable { max-width: 520px; border: 1px solid var(--p5-line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.pd5-tiertable > div { display: grid; grid-template-columns: 1fr 1fr; }
.pd5-tiertable > div + div { border-top: 1px solid var(--p5-line); }
.pd5-tiertable span[role] { padding: 10px 14px; }
.pd5-tt-head { background: var(--p5-soft); color: var(--p5-muted); font-weight: 600; }
.pd5-tiertable > div:not(.pd5-tt-head) span[role]:last-child { font-weight: 700; color: var(--p5-navy); }

.pd5-desc { font-size: 15px; line-height: 1.7; color: var(--p5-ink-2); }
.pd5-desc .pd-block { margin: 0 0 16px; }
.pd5-desc .pd-block img, .pd5-desc .pd-block video, .pd5-desc .pd-block iframe { max-width: 100%; }
.pd5-empty { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px; border-radius: 12px; background: var(--p5-soft); color: var(--p5-muted); font-size: 14px; }

.pd5-supfull { padding: 20px 22px; }
.pd5-supgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 18px 0; background: var(--p5-line); border: 1px solid var(--p5-line); border-radius: 12px; overflow: hidden; }
.pd5-supgrid > div { background: #fff; padding: 12px 16px; min-width: 0; }
.pd5-supgrid span { display: block; font-size: 12px; color: var(--p5-muted); }
.pd5-supgrid b { display: block; margin-top: 3px; font: 800 17px Manrope, sans-serif; color: var(--p5-navy); }
.pd5-supgrid b small { font-size: 12px; color: var(--p5-muted); font-weight: 600; }
.pd5-supgrid em { font-style: normal; font: 600 13.5px Inter, sans-serif; color: var(--p5-muted); }
.pd5-ok { color: var(--p5-ok); }
.pd5-rate { margin: 0 0 16px; }
.pd5-supfull .pd5-supcard-actions .pd5-btn { min-width: 160px; }

.pd5-revsum { margin-bottom: 12px; }

/* ── Carruseles al pie ── */
.pd5-rowsec { margin-top: 40px; scroll-margin-top: 150px; }
.pd5-rowhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pd5-rowhead .pd5-h2 { margin: 0; }
.pd5-rowhead .pd5-h2 .material-symbols-outlined { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; color: var(--p5-carton-d); background: var(--p5-linen-2); }
.pd5-rowtools { display: flex; align-items: center; gap: 8px; }
.pd5-more { display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--p5-carton-d); text-decoration: none; margin-right: 4px; white-space: nowrap; }
.pd5-more .material-symbols-outlined { font-size: 18px; }
.pd5-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--p5-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--p5-ink); transition: all .2s; }
.pd5-arrow:hover:not(:disabled) { border-color: var(--p5-carton); color: var(--p5-carton-d); }
.pd5-arrow:disabled { opacity: .35; cursor: default; }
.pd5-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; }
.pd5-row::-webkit-scrollbar { display: none; }
.pd5-row > * { scroll-snap-align: start; min-width: 0; }

/* ── Barra de acciones inferior (móvil/tablet) ── */
.pd5-mbar { display: none; }

/* ═════════ Tablet ═════════ */
@media (max-width: 1099px) {
  .pd5 { padding: 0 20px 40px; }
  .pd5-grid { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 22px; grid-template-areas: "gallery aside" "sup aside" "nav nav" "secs secs"; }
  .pd5-aside { position: static; }
  .pd5-stage { height: clamp(320px, 46vw, 460px); }
  .pd5-thumbs { flex-basis: 62px; max-height: clamp(320px, 46vw, 460px); }
  .pd5-thumb { width: 58px; height: 58px; }
  .pd5-buy { padding: 18px; }
  .pd5-supcard { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pd5-supcard .pd5-supcard-actions { flex-direction: row; }
  .pd5-supcard .pd5-supcard-actions .pd5-btn { flex: 1; }
  .pd5-supstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; }
  .pd5-supstats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pd5-row { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
}
@media (max-width: 900px) {
  body.pd5-page { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body.pd5-page .mobile-app-nav { display: none !important; }
  .pd5-mbar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 310; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--p5-line); box-shadow: 0 -4px 18px rgba(29,37,48,.08); }
  .pd5-mbar-ico { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 48px; padding: 2px 4px; border: 0; background: none; color: var(--p5-ink-2); font: 600 10.5px Inter, sans-serif; text-decoration: none; cursor: pointer; }
  .pd5-mbar-ico .material-symbols-outlined { font-size: 22px; color: var(--p5-navy); }
  .pd5-mbar-ico.is-active .material-symbols-outlined { color: #d14343; }
  .pd5-mbar .pd5-btn { height: 44px; padding: 0 10px; font-size: 14px; gap: 6px; min-width: 0; }
  .pd5-mbar .pd5-btn .material-symbols-outlined { font-size: 18px; }
  .pd5-mbar .pd5-btn--line:hover { background: #fff; color: var(--p5-navy); }
  .pd5-page .pd5-nav--fixed .pd5-nav-cta { display: none; }
}

/* ═════════ Móvil ═════════ */
@media (max-width: 767px) {
  .pd5 { padding: 0 16px 28px; }
  .pd5-crumbs { padding: 10px 0; font-size: 12px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .pd5-crumbs-cur { min-width: 0; }
  .pd5-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "gallery" "aside" "sup" "nav" "secs"; }
  .pd5-gallery { margin: 0 -16px; display: block; }
  .pd5-thumbs, .pd5-stage { display: none; }
  .pd5-swipe { display: block; position: relative; background: var(--p5-soft); }
  .pd5-swipe-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pd5-swipe-track::-webkit-scrollbar { display: none; }
  .pd5-swipe-slide { flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: center; display: grid; place-items: center; }
  .pd5-swipe-slide img, .pd5-swipe-slide video { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
  .pd5-swipe-count { position: absolute; right: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(29,37,48,.72); color: #fff; font: 600 12px Inter, sans-serif; letter-spacing: .02em; }
  .pd5-swipe .pd5-stage-tools { top: 12px; right: 12px; }
  .pd5-aside { gap: 12px; margin-top: 14px; }
  .pd5-buy { padding: 0; border: 0; box-shadow: none; border-radius: 0; }
  .pd5-buy .pd5-pricebox { order: -1; margin: 0 0 12px; }
  .pd5-title { font-size: 17.5px; }
  .pd5-ladder { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); overflow-x: auto; scrollbar-width: none; }
  .pd5-ladder::-webkit-scrollbar { display: none; }
  .pd5-step { padding: 0 10px 8px; }
  .pd5-ladder .pd5-step-p { font-size: 20px; }
  .pd5-step-q { font-size: 11.5px; }
  .pd5-single .pd5-step-p { font-size: 26px; }
  .pd5-qty .pd4-stepper { width: 150px; }
  .pd5-ctas { grid-template-columns: 1fr 1fr; }
  .pd5-ctas .pd5-btn { font-size: 13.5px; padding: 0 10px; }
  .pd5-protect { padding: 14px; }
  .pd5-supcard { margin-top: 12px; padding: 14px; }
  .pd5-page .pd5-nav { margin: 22px -16px 0; padding: 0 8px; }
  .pd5-page .pd5-nav a { padding: 13px 12px; font-size: 14px; }
  .pd5-page .pd5-nav--fixed { padding: 0 8px; margin: 0; }
  .pd5-sec { padding: 22px 0; scroll-margin-top: 120px; }
  .pd5-h2 { font-size: 18px; }
  .pd5-attrs { grid-template-columns: minmax(0, 1fr); }
  .pd5-features { grid-template-columns: minmax(0, 1fr); }
  .pd5-supfull { padding: 16px; }
  .pd5-supgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd5-supgrid b { font-size: 15.5px; }
  .pd5-supfull .pd5-supcard-actions .pd5-btn { flex: 1; min-width: 0; }
  .pd5-rowsec { margin-top: 28px; }
  .pd5-rowhead .pd5-h2 .material-symbols-outlined { display: none; }
  .pd5-arrow { display: none; }
  .pd5-row { grid-auto-columns: 46%; gap: 10px; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; }
}
@media (max-width: 380px) {
  .pd5-mbar { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .pd5-mbar-ico { min-width: 42px; }
  .pd5-mbar .pd5-btn .material-symbols-outlined { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pd5-aside, .pd5-step::after, .pd5-page .pd5-nav--fixed { transition: none; }
}
.pd5-page .quote-modal-submit { background: linear-gradient(135deg, #AB733C, #CD9765); border-radius: 999px; }
