/* ============================================= */
/* PDP GINO — precios, variantes, ATC, cuotas    */
/* Scope #product para ganar a Hummingbird       */
/* ============================================= */

/* Evita salto lateral al abrir/cerrar modales (scrollbar) */
html {
  scrollbar-gutter: stable;
}

body#product .product__manufacturer {
  margin-bottom: 0.35rem;
}

body#product .product__description-short,
body#product .np-pdp-desc-short,
.np-pdp-desc-short {
  margin: 1rem 0 0.75rem;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #333;
}

/* HTML de CMS/Odoo a veces trae <h2>/<span> con tamaño de heading — forzar 12px */
body#product .np-pdp-desc-short :is(h1, h2, h3, h4, h5, h6, p, span, strong, b, em, a, ul, ol, li, div),
body#product .product__description-short :is(h1, h2, h3, h4, h5, h6, p, span, strong, b, em, a, ul, ol, li, div),
.np-pdp-desc-short :is(h1, h2, h3, h4, h5, h6, p, span, strong, b, em, a, ul, ol, li, div),
.page-product--quickview .np-pdp-desc-short :is(h1, h2, h3, h4, h5, h6, p, span, strong, b, em, a, ul, ol, li, div) {
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin-top: 0;
}

body#product .np-pdp-desc-short :is(h1, h2, h3, h4, h5, h6),
body#product .product__description-short :is(h1, h2, h3, h4, h5, h6),
.np-pdp-desc-short :is(h1, h2, h3, h4, h5, h6),
.page-product--quickview .np-pdp-desc-short :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 0.65rem;
  font-weight: 400;
  color: inherit;
}

body#product .np-pdp-desc-short p,
body#product .product__description-short p,
.np-pdp-desc-short p {
  margin-bottom: 0.65rem;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

body#product .np-pdp-desc-short p:last-child,
body#product .product__description-short p:last-child,
.np-pdp-desc-short p:last-child,
body#product .np-pdp-desc-short :is(h1, h2, h3, h4, h5, h6):last-child,
.np-pdp-desc-short :is(h1, h2, h3, h4, h5, h6):last-child {
  margin-bottom: 0;
}

/* --- Marca: CSS Grid (derecha del título en desk + mobile / QV) --- */
body#product .np-pdp-head,
body.product .np-pdp-head,
.np-pdp-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title brand";
  align-items: start;
  column-gap: 0.5rem;
  row-gap: 0.1rem;
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  min-height: 0;
  overflow: visible;
}

/* Columna título + referencia (misma área grid "title"); la marca no afecta el gap */
body#product .np-pdp-head__main,
body.product .np-pdp-head__main,
.np-pdp-head__main {
  grid-area: title;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
}

body#product .np-pdp-head__title,
body.product .np-pdp-head__title,
body#product h1.np-pdp-head__title,
body#product .product__name.np-pdp-head__title,
.np-pdp-head__title {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  max-width: 100%;
}

body#product .np-pdp-brand,
body.product .np-pdp-brand,
.np-pdp-brand {
  grid-area: brand;
  float: none !important;
  display: block;
  justify-self: end;
  align-self: start;
  margin: 0 !important;
  width: 140px;
  height: 48px;
  max-width: 140px;
  max-height: 48px !important;
  overflow: hidden !important;
  line-height: 0;
}

body#product .np-pdp-brand.np-pdp-brand--name,
body.product .np-pdp-brand.np-pdp-brand--name,
.np-pdp-brand.np-pdp-brand--name {
  width: auto !important;
  max-width: 12rem !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  line-height: 1.2;
  text-align: right;
}

@media (max-width: 767.98px) {
  /* Mobile / QV mobile: marca a la DERECHA del título (mismo layout desk) */
  body#product .np-pdp-head,
  body.product .np-pdp-head,
  .np-pdp-head,
  .quickview .np-pdp-head,
  .page-product--quickview .np-pdp-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title brand";
    column-gap: 0.4rem;
    row-gap: 0.08rem;
    align-items: start;
  }

  body#product .np-pdp-head__title,
  body.product .np-pdp-head__title,
  .np-pdp-head__title {
    width: auto;
    max-width: 100%;
    font-size: 21px !important;
  }

  body#product .np-pdp-brand,
  body.product .np-pdp-brand,
  .np-pdp-brand,
  .quickview .np-pdp-brand,
  .page-product--quickview .np-pdp-brand {
    justify-self: end;
    align-self: start;
    text-align: right;
    width: 96px;
    height: 36px;
    max-width: 96px;
    max-height: 36px !important;
  }

  body#product .np-pdp-brand.np-pdp-brand--name,
  body.product .np-pdp-brand.np-pdp-brand--name,
  .np-pdp-brand.np-pdp-brand--name {
    text-align: right;
    max-width: 7.5rem !important;
  }
}

body#product .np-pdp-brand__link,
body#product .np-pdp-brand__link--img,
body.product .np-pdp-brand__link,
.np-pdp-brand__link {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden !important;
  color: #111 !important;
  text-decoration: none !important;
}

body#product .np-pdp-brand__link--img[hidden],
body.product .np-pdp-brand__link--img[hidden],
.np-pdp-brand__link--img[hidden] {
  display: none !important;
}

body#product .np-pdp-brand__logo,
body#product .np-pdp-brand__logo.img-fluid,
body.product .np-pdp-brand__logo,
.np-pdp-brand__logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}

body#product .np-pdp-brand__name,
body.product .np-pdp-brand__name,
.np-pdp-brand__name {
  display: inline-block;
  max-width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  color: #111 !important;
}

body#product a.np-pdp-brand__name:hover,
body.product a.np-pdp-brand__name:hover,
a.np-pdp-brand__name:hover {
  color: #111 !important;
  text-decoration: underline !important;
}

body#product .np-pdp-brand__name[hidden],
body.product .np-pdp-brand__name[hidden],
.np-pdp-brand__name[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  body#product .np-pdp-brand__logo,
  body#product .np-pdp-brand__logo.img-fluid,
  body.product .np-pdp-brand__logo,
  .np-pdp-brand__logo {
    object-fit: contain !important;
    object-position: right center !important;
  }
}

/* --- Referencia (bajo el título en .np-pdp-head__main; sin margin negativo) --- */
body#product .np-pdp-ref,
.np-pdp-ref {
  margin: 0 !important;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #666;
  max-width: 100%;
}

body#product .np-pdp-head__main .np-pdp-ref,
.np-pdp-head__main .np-pdp-ref {
  margin: 0 !important;
}

body#product .np-pdp-ref__label,
.np-pdp-ref__label {
  margin-right: 0.25rem;
  font-weight: 400;
}

body#product .np-pdp-ref__head,
.np-pdp-ref__head {
  font-weight: 700 !important;
  color: #111;
}

body#product .np-pdp-ref__tail,
.np-pdp-ref__tail {
  font-weight: 400;
  color: #444;
}

/* --- Precios en una fila --- */
body#product .np-pdp-prices,
.np-pdp-prices {
  margin-bottom: 0.75rem;
}

body#product .np-pdp-prices__row,
.np-pdp-prices__row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

body#product .np-pdp-prices__row > *,
.np-pdp-prices__row > * {
  flex-shrink: 0;
}

body#product .np-pdp-price,
.np-pdp-price {
  min-width: 0;
  flex-shrink: 1;
}

body#product .np-pdp-price,
body#product .np-pdp-price .np-pdp-price__value,
body#product .product__prices .np-pdp-price,
.np-pdp-price,
.np-pdp-price__value {
  font-size: 1.625rem !important;
  font-weight: 700 !important;
  color: #ad1f00 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

body#product .np-pdp-regular,
body#product .product__regular-price.np-pdp-regular,
.np-pdp-regular {
  text-decoration: line-through !important;
  color: #8a8a8a !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

body#product .np-pdp-discount-tag,
.np-pdp-discount-tag {
  display: inline-flex !important;
  align-items: center;
  background: #eba53d !important;
  color: #fff !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  padding: 0.2rem 0.55rem !important;
  border-radius: 2px !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  flex-shrink: 0 !important;
}

@media (max-width: 767.98px) {
  body#product .np-pdp-prices__row,
  .np-pdp-prices__row,
  .quickview .np-pdp-prices__row,
  .page-product--quickview .np-pdp-prices__row {
    flex-wrap: nowrap !important;
    gap: 0.3rem 0.45rem !important;
  }

  body#product .np-pdp-price,
  body#product .np-pdp-price .np-pdp-price__value,
  body#product .product__prices .np-pdp-price,
  .np-pdp-price,
  .np-pdp-price__value,
  .quickview .np-pdp-price__value {
    font-size: 1.25rem !important;
  }

  body#product .np-pdp-regular,
  body#product .product__regular-price.np-pdp-regular,
  .np-pdp-regular {
    font-size: 0.8125rem !important;
  }

  body#product .np-pdp-discount-tag,
  .np-pdp-discount-tag {
    font-size: 0.6875rem !important;
    padding: 0.15rem 0.4rem !important;
  }
}

body#product .np-pdp-prices__block,
.np-pdp-prices__block {
  margin: 0 !important;
  padding: 0 !important;
}

body#product .np-pdp-prices__row,
.np-pdp-prices__row {
  margin-bottom: 0 !important;
}

body#product .np-pdp-tax,
body#product .product__tax-infos.np-pdp-tax,
.np-pdp-tax {
  margin-top: -14px !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 0.75rem !important;
  line-height: 1.1 !important;
  color: #888;
}

/* --- Cuotas Webpay (banner PDP + QV, no el modal) --- */
body#product .np-pdp-cuotas,
.np-pdp-cuotas {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem 0.55rem;
  margin: 0.85rem 0 0.5rem;
  padding: 0.45rem 0.65rem;
  background: #f8f8f8;
  border: 0;
  border-radius: 4px;
  max-width: max-content;
  min-width: 0;
}

body#product .np-pdp-cuotas__text,
.np-pdp-cuotas__text {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0 !important;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body#product .np-pdp-cuotas__amount,
.np-pdp-cuotas__amount {
  color: #111;
  font-weight: 700;
}

body#product .np-pdp-cuotas__brand,
.np-pdp-cuotas__brand {
  color: #111;
}

body#product .np-pdp-cuotas__info,
.np-pdp-cuotas__info {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5c6370;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body#product .np-pdp-cuotas__info .material-icons,
.np-pdp-cuotas__info .material-icons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  color: inherit;
}

body#product .np-pdp-cuotas__info:hover,
.np-pdp-cuotas__info:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

@media (max-width: 767.98px) {
  body#product .np-pdp-cuotas,
  .np-pdp-cuotas {
    padding: 0.35rem 0.5rem;
    gap: 0.35rem;
    background: #f8f8f8;
    border: 0;
  }

  body#product #price_cuota.np-pdp-cuotas .np-pdp-cuotas__text,
  body#product .np-pdp-cuotas .np-pdp-cuotas__text,
  body#product .np-pdp-cuotas__text.mb-0,
  body#product p.np-pdp-cuotas__text,
  .np-pdp-cuotas__text {
    font-size: 10px !important;
    line-height: 1.3 !important;
    white-space: normal;
  }

  body#product .np-pdp-cuotas__amount,
  body#product .np-pdp-cuotas__brand {
    font-size: 10px !important;
  }
}

/* Modal cuotas â€” body sin scroll-lock para no desmontar sticky header */
.np-pdp-cuotas-modal .modal-dialog {
  width: calc(100% - 1.5rem);
  max-width: 420px;
  margin: 1rem auto;
}

.np-pdp-cuotas-modal .modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.np-pdp-cuotas-modal .modal-header {
  position: relative;
  padding: 1rem 2.75rem 1rem 1.1rem;
  border-bottom: 1px solid #ececec;
  background: #fff;
}

.np-pdp-cuotas-modal .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}

.np-pdp-cuotas-modal .modal-body {
  padding: 1.1rem;
}

.np-pdp-cuotas-modal__price {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #222;
}

.np-pdp-cuotas-modal__lead {
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  color: #555;
}

.np-pdp-cuotas-modal__list {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.np-pdp-cuotas-modal__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: #222;
  background: #f3f4f5;
  border-bottom: 1px solid #e5e5e5;
}

.np-pdp-cuotas-modal__list li:nth-child(even) {
  background: #eceff1;
}

.np-pdp-cuotas-modal__list li:last-child {
  border-bottom: 0;
}

.np-pdp-cuotas-modal__list strong {
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.np-pdp-cuotas-modal__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: #662d91;
  font-size: 0.875rem;
}

.np-pdp-cuotas-modal__footer .material-icons {
  font-size: 1.5rem;
  color: #662d91;
}

/* Compensa padding-right / overflow de Bootstrap: sticky queda detrás del overlay.
 * visible (no auto): auto también rompe position:sticky con scroll previo. */
body.modal-open,
body.modal-open:has(.np-pdp-cuotas-modal.show),
body.modal-open:has(.cj-tallas-wrap .modal.show),
html.modal-open,
html:has(body.modal-open),
html:has(body.modal-open .np-pdp-cuotas-modal.show),
html:has(body.modal-open .cj-tallas-wrap .modal.show),
html:has(.np-qv-child-open),
body:has(.np-qv-child-open) {
  overflow: visible !important;
  overflow-x: clip !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
  height: auto !important;
}

.np-pdp-cuotas-modal.np-qv-child-open,
.np-pdp-cuotas-modal.np-qv-child-open.show {
  overflow-x: hidden !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.np-pdp-cuotas-modal.np-qv-child-open .modal-dialog {
  max-width: min(420px, calc(100% - 2rem)) !important;
  width: calc(100% - 2rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Cerrar modal con Material Icons (visible mobile/desktop) */
.np-pdp-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 6;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  color: #111;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.np-pdp-modal-close .material-icons {
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
}

.np-pdp-modal-close:hover {
  background: #e2e2e2;
  color: #000;
}

@media (max-width: 575.98px) {
  .np-pdp-cuotas-modal .modal-dialog {
    width: calc(100% - 1rem);
    max-width: none;
    margin: 0.5rem auto;
  }

  .np-pdp-cuotas-modal .modal-content {
    border-radius: 10px;
  }
}

/* --- Color | Talla desktop 50/50; mobile: Color full, luego Talla --- */
body#product .np-pdp-attr-row,
.np-pdp-attr-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

body#product .np-pdp-attr-col,
.np-pdp-attr-col {
  min-width: 0 !important;
  box-sizing: border-box;
}

body#product .np-pdp-attr-col--color,
.np-pdp-attr-col--color,
body#product .np-pdp-attr-col--size,
.np-pdp-attr-col--size {
  flex: 1 1 0 !important;
  width: 50% !important;
  min-width: 0 !important;
  max-width: 50% !important;
  box-sizing: border-box;
}

body#product .np-pdp-variants .np-pdp-variant,
.np-pdp-variants .np-pdp-variant {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
}

body#product .np-pdp-variant > .np-pdp-variant__legend,
.np-pdp-variant > .np-pdp-variant__legend {
  display: inline-flex;
  align-items: baseline;
  float: none !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit;
}

body#product .np-pdp-variant__legend .product-variant__legend-text,
.np-pdp-variant__legend .product-variant__legend-text {
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0;
  color: #111;
}

body#product .np-pdp-variant__legend .product-variant__selected,
.np-pdp-variant__legend .product-variant__selected {
  display: inline;
  margin: 0;
  font-weight: 400;
  color: #444;
}

body#product .np-pdp-variant__controls,
.np-pdp-variant__controls {
  width: 100%;
  min-width: 0;
}

/* Swatches: grid wrap (sin scroll horizontal) */
body#product .np-pdp-attr-col--color .product-variant__colors,
body#product .np-odoo-colors .product-variant__colors,
.np-pdp-attr-col--color .product-variant__colors,
.np-odoo-colors .product-variant__colors {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.35rem;
  max-width: 100%;
  overflow: visible !important;
  padding-bottom: 0;
}

body#product .np-pdp-attr-col--color .color,
body#product .np-odoo-colors .color,
.np-pdp-attr-col--color .color,
.np-odoo-colors .color {
  width: 2.35rem !important;
  height: 2.35rem !important;
  flex: 0 0 auto;
  border-radius: 0 !important;
  border: 1px solid #ccc !important;
  box-shadow: none !important;
  outline: none !important;
}

body#product .np-pdp-attr-col--color .color.active,
body#product .np-pdp-attr-col--color .input-color__label--active .color,
body#product .np-odoo-colors .color.active,
body#product .np-odoo-colors .input-color__label--active .color,
body#product .np-odoo-colors .is-current .color,
.np-pdp-attr-col--color .color.active,
.np-pdp-attr-col--color .input-color__label--active .color,
.np-odoo-colors .color.active,
.np-odoo-colors .input-color__label--active .color,
.np-odoo-colors .is-current .color {
  border: 2px solid #111 !important;
  outline: none !important;
  box-shadow: none !important;
}

body#product .np-pdp-attr-col--color .input-color__label,
body#product .np-odoo-colors .input-color__label,
.np-pdp-attr-col--color .input-color__label,
.np-odoo-colors .input-color__label {
  border-radius: 0 !important;
}

body#product .np-pdp-attr-col--color .input-color__input:focus-visible + .input-color__label .color,
body#product .np-odoo-colors .input-color__input:focus-visible + .input-color__label .color {
  outline: 2px solid #111;
  outline-offset: 1px;
}

/* Odoo colors: legend Color: nombre en fila; swatches abajo */
body#product .np-odoo-colors,
.np-odoo-colors {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  width: 100%;
}

body#product .np-odoo-colors > .np-pdp-variant__legend,
body#product .np-odoo-colors > .product-variant__legend,
.np-odoo-colors > .np-pdp-variant__legend,
.np-odoo-colors > .product-variant__legend {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.15rem;
  float: none !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body#product .np-odoo-colors .product-variant__legend-text,
.np-odoo-colors .product-variant__legend-text {
  font-weight: 600;
  margin: 0;
  color: #111;
}

body#product .np-odoo-colors .np-odoo-colors__selected,
body#product .np-odoo-colors .product-variant__selected,
.np-odoo-colors .np-odoo-colors__selected,
.np-odoo-colors .product-variant__selected {
  display: inline !important;
  font-weight: 400;
  color: #444;
  margin: 0 !important;
  padding: 0 !important;
}

body#product .np-odoo-colors > .product-variant__attributes,
.np-odoo-colors > .product-variant__attributes {
  width: 100%;
  min-width: 0;
}

/*
 * Talla: selector a ancho completo; «Ver tabla de tallas» debajo
 * (desktop + mobile). Qty en slot solo mobile (JS).
 */
.npv-size-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "select qty"
    "chart chart";
  align-items: center;
  gap: 0.4rem 0.55rem;
  max-width: 100%;
  width: 100%;
}

.npv-size-row .form-select {
  grid-area: select;
  flex: none;
  max-width: 100%;
  min-width: 0;
  height: 2.25rem;
  min-height: 2.25rem;
  max-height: 2.25rem;
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  border-radius: 0;
  box-sizing: border-box;
}

/* NO width:100% en --enhanced (sr-only 1px); solo select nativo */
.npv-size-row .form-select:not(.np-sc-size-select--enhanced) {
  width: 100%;
}

.npv-size-row .np-sc-size-dd {
  grid-area: select;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* Desktop: evita que el dropdown de talla crezca de más en la columna */
@media (min-width: 992px) {
  body#product .npv-size-row .np-sc-size-dd,
  .quickview .npv-size-row .np-sc-size-dd,
  .page-product--quickview .npv-size-row .np-sc-size-dd,
  .npv-size-row .np-sc-size-dd {
    max-width: 232px;
  }
}

/* Slot vacío en desktop: oculto. Con qty (mobile): visible */
.np-pdp-qty-slot {
  grid-area: qty;
  display: none;
  flex: 0 0 auto;
  align-items: center;
}

.np-pdp-qty-slot:not(:empty) {
  display: flex;
}

.cj-tallas,
.npv-size-row .cj-tallas {
  grid-area: chart;
  flex: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  justify-self: start;
}

.cj-tallas .cj-talla-btn,
.npv-size-row .cj-tallas button {
  display: inline-flex !important;
  align-items: center;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1.2;
  color: #111 !important;
  text-decoration: none;
  text-transform: none !important;
  white-space: nowrap;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid #111 !important;
  border-radius: 0 !important;
  padding: 0 0 2px !important;
  box-shadow: none !important;
}

.cj-tallas .cj-talla-btn:hover {
  opacity: 0.75;
  background: none !important;
  color: #111 !important;
}

.npv-size-note-row {
  margin-top: 0.35rem;
  width: 100%;
  flex-basis: 100%;
}

.npv-size-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #4b4b4b;
}

@media (max-width: 767.98px) {
  /* Mobile: Color sola en fila; debajo Talla + qty */
  body#product .np-pdp-attr-row,
  .np-pdp-attr-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0.85rem;
  }

  body#product .np-pdp-attr-col--color,
  body#product .np-pdp-attr-col--size,
  .np-pdp-attr-col--color,
  .np-pdp-attr-col--size {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Ocultar qty en ATC si sigue ahí (antes de que JS mueva / fallback). Incluye QV. */
  body#product .np-pdp-atc__row > [data-np-pdp-qty-home],
  body#product .np-pdp-atc__row > .product__quantity.np-pdp-qty-home,
  .quickview .np-pdp-atc__row > [data-np-pdp-qty-home],
  .quickview .np-pdp-atc__row > .product__quantity.np-pdp-qty-home,
  .page-product--quickview .np-pdp-atc__row > [data-np-pdp-qty-home],
  .page-product--quickview .np-pdp-atc__row > .product__quantity.np-pdp-qty-home {
    display: none !important;
  }

  /* Talla + qty en fila; Ver tabla debajo */
  .npv-size-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "select qty"
      "chart chart";
    align-items: center;
    gap: 0.45rem 0.55rem;
  }

  /* NO width:100% !important: pisa .np-sc-size-select--enhanced (sr-only 1px) y desborda PDP mobile */
  .npv-size-row .form-select {
    grid-area: select;
    flex: none !important;
    min-width: 0;
    max-width: 100%;
  }

  .npv-size-row .form-select:not(.np-sc-size-select--enhanced) {
    width: 100%;
  }

  .npv-size-row .np-sc-size-dd {
    grid-area: select;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .np-pdp-qty-slot {
    grid-area: qty;
    display: flex !important;
    align-items: center;
  }

  .npv-size-row .cj-tallas {
    grid-area: chart;
    width: 100%;
    white-space: normal;
  }

  .np-pdp-qty-slot .product__quantity,
  .np-pdp-qty-slot .quantity-button,
  .np-pdp-qty-slot .js-quantity-button {
    margin: 0 !important;
  }

  .np-pdp-qty-slot .qty-input,
  .np-pdp-qty-slot .quantity-button,
  .np-pdp-qty-slot .quantity-button__group {
    height: 2.25rem;
  }

  .cj-tallas .cj-talla-btn,
  .npv-size-row .cj-tallas button {
    font-size: 0.8125rem !important;
  }
}

/* --- Disponibilidad: compactar whitespace --- */
body#product .product__availability,
body#product #product-availability,
body#product .js-product-availability {
  margin: 0.35rem 0 0.5rem !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body#product .product__availability[hidden],
body#product #product-availability[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

body#product .product__availability-status {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  line-height: 1.25;
  font-size: 0.8125rem;
}

body#product .product__availability-icon {
  font-size: 1.125rem !important;
  line-height: 1 !important;
  width: auto;
  height: auto;
}

body#product .product__availability-messages {
  margin: 0;
  padding: 0;
  line-height: 1.25;
}

body#product .product__delivery-infos {
  margin: 0.25rem 0 0 !important;
  padding: 0 !important;
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* Qty junto a talla (misma altura: input = botón - / +) */
body#product .np-pdp-qty-slot .quantity-button,
body#product .np-pdp-qty-slot .js-quantity-button,
body#product .np-pdp-qty-slot .qty-input,
body#product .np-pdp-qty-slot .quantity-button__group,
.np-pdp-qty-slot .quantity-button,
.np-pdp-qty-slot .js-quantity-button,
.np-pdp-qty-slot .qty-input,
.np-pdp-qty-slot .quantity-button__group.input-group {
  display: flex !important;
  align-items: stretch !important;
  height: 2.25rem !important;
  min-height: 2.25rem !important;
  max-height: 2.25rem !important;
  min-width: 6.5rem;
  box-sizing: border-box;
  margin: 0 !important;
}

body#product .np-pdp-qty-slot .qty-input__button,
body#product .np-pdp-qty-slot .quantity-button button,
body#product .np-pdp-qty-slot .quantity-button__group > .btn,
body#product .np-pdp-qty-slot .qty-input input,
body#product .np-pdp-qty-slot .js-quantity-wanted,
.np-pdp-qty-slot .qty-input__button,
.np-pdp-qty-slot .quantity-button button,
.np-pdp-qty-slot .quantity-button__group > .btn,
.np-pdp-qty-slot .qty-input input,
.np-pdp-qty-slot .js-quantity-wanted {
  height: 2.25rem !important;
  min-height: 2.25rem !important;
  max-height: 2.25rem !important;
  box-sizing: border-box !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  align-self: stretch !important;
}

body#product .np-pdp-qty-slot .quantity-button__group > .btn,
.np-pdp-qty-slot .quantity-button__group > .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body#product .np-pdp-qty-slot .js-quantity-wanted,
.np-pdp-qty-slot .js-quantity-wanted {
  text-align: center !important;
  border-radius: 0 !important;
}

/* --- ATC negro + wishlist ---
 * Sin depender solo de body#product: aplica también en .quickview (PLP). */
body#product .np-pdp-atc__row,
.quickview .np-pdp-atc__row,
.page-product--quickview .np-pdp-atc__row,
.np-pdp-atc__row {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
}

body#product .np-pdp-atc__row .product__quantity,
body#product .np-pdp-atc__row .product__add-to-cart,
.quickview .np-pdp-atc__row .product__quantity,
.quickview .np-pdp-atc__row .product__add-to-cart,
.page-product--quickview .np-pdp-atc__row .product__quantity,
.page-product--quickview .np-pdp-atc__row .product__add-to-cart,
.np-pdp-atc__row .product__quantity,
.np-pdp-atc__row .product__add-to-cart {
  display: flex;
  align-items: stretch;
}

/* Wishlist: center (no stretch) — en QV el stretch dejaba el texto abajo */
body#product .np-pdp-atc__row .np-wish-add--pdp,
.quickview .np-pdp-atc__row .np-wish-add--pdp,
.page-product--quickview .np-pdp-atc__row .np-wish-add--pdp,
.np-pdp-atc__row .np-wish-add--pdp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body#product .np-pdp-atc__row .product__quantity,
.quickview .np-pdp-atc__row .product__quantity,
.page-product--quickview .np-pdp-atc__row .product__quantity,
.np-pdp-atc__row .product__quantity {
  flex: 0 0 auto;
}

body#product .np-pdp-atc__row .product__add-to-cart,
.quickview .np-pdp-atc__row .product__add-to-cart,
.page-product--quickview .np-pdp-atc__row .product__add-to-cart,
.np-pdp-atc__row .product__add-to-cart {
  flex: 1 1 auto;
  min-width: 0;
}

body#product .np-pdp-atc__row .np-wish-add--pdp,
.quickview .np-pdp-atc__row .np-wish-add--pdp,
.page-product--quickview .np-pdp-atc__row .np-wish-add--pdp,
.np-pdp-atc__row .np-wish-add--pdp {
  flex: 0 0 auto;
}

body#product .np-pdp-atc .quantity-button,
body#product .np-pdp-atc .js-quantity-button,
body#product .np-pdp-atc .qty-input,
.np-pdp-atc .quantity-button,
.np-pdp-atc .js-quantity-button {
  height: 3rem !important;
  min-height: 3rem !important;
  min-width: 7.5rem;
  box-sizing: border-box;
}

body#product .np-pdp-atc .qty-input,
body#product .np-pdp-atc .quantity-button .qty-input,
.np-pdp-atc .qty-input {
  display: flex !important;
  align-items: stretch;
  height: 100% !important;
  min-height: 3rem !important;
}

body#product .np-pdp-atc .qty-input__button,
body#product .np-pdp-atc .quantity-button button,
body#product .np-pdp-atc .qty-input input,
.np-pdp-atc .qty-input__button,
.np-pdp-atc .quantity-button button,
.np-pdp-atc .qty-input input {
  min-height: 100% !important;
  height: 100% !important;
}

body#product .np-pdp-atc .qty-input__button,
body#product .np-pdp-atc .quantity-button button {
  min-width: 2.25rem;
}

body#product .np-pdp-atc__btn,
body#product .product__add-to-cart-button.np-pdp-atc__btn,
.np-pdp-atc__btn {
  width: 100%;
  height: 3rem !important;
  min-height: 3rem !important;
  background-color: #111 !important;
  border-color: #111 !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

body#product .np-pdp-atc__btn:hover:not(:disabled),
body#product .np-pdp-atc__btn:focus:not(:disabled),
.np-pdp-atc__btn:hover:not(:disabled),
.np-pdp-atc__btn:focus:not(:disabled) {
  background-color: #2a2a2a !important;
  border-color: #2a2a2a !important;
  color: #fff !important;
  filter: brightness(1.18);
}

body#product .np-pdp-atc__btn:disabled,
.np-pdp-atc__btn:disabled,
.np-pdp-atc__btn[data-np-atc-pending='1'] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Feedback si intenta ATC sin talla válida */
.np-pdp-size-needed,
.np-sc-size-dd.np-pdp-size-needed .np-sc-size-dd__btn {
  outline: 2px solid #dc3545 !important;
  outline-offset: 2px;
  animation: np-pdp-size-pulse 0.45s ease 2;
}

@keyframes np-pdp-size-pulse {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

body#product .np-pdp-atc .np-wish-add--pdp,
.quickview .np-pdp-atc .np-wish-add--pdp,
.page-product--quickview .np-pdp-atc .np-wish-add--pdp,
.np-pdp-atc .np-wish-add--pdp {
  height: 3rem !important;
  min-height: 3rem !important;
  /* Base = solo corazón (laptop/tablet/QV). Texto ≥1200px. */
  min-width: 3rem !important;
  width: 3rem !important;
  max-width: 3rem !important;
  padding-inline: 0 !important;
  border-radius: 0 !important;
  border: 1px solid #111 !important;
  background: #fff !important;
  color: #111 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body#product .np-pdp-atc .np-wish-add--pdp .np-wish-add__label,
.quickview .np-pdp-atc .np-wish-add--pdp .np-wish-add__label,
.page-product--quickview .np-pdp-atc .np-wish-add--pdp .np-wish-add__label,
.np-pdp-atc .np-wish-add--pdp .np-wish-add__label,
.np-wish-add--pdp .np-wish-add__label {
  display: none !important;
}

@media (min-width: 1200px) {
  body#product .np-pdp-atc .np-wish-add--pdp,
  .quickview .np-pdp-atc .np-wish-add--pdp,
  .page-product--quickview .np-pdp-atc .np-wish-add--pdp,
  .np-pdp-atc .np-wish-add--pdp {
    min-width: 7.5rem !important;
    width: auto !important;
    max-width: none !important;
    padding-inline: 1rem !important;
    gap: 0.35rem;
  }

  body#product .np-pdp-atc .np-wish-add--pdp .np-wish-add__label,
  .quickview .np-pdp-atc .np-wish-add--pdp .np-wish-add__label,
  .page-product--quickview .np-pdp-atc .np-wish-add--pdp .np-wish-add__label,
  .np-pdp-atc .np-wish-add--pdp .np-wish-add__label,
  body#product .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label,
  .quickview .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label,
  .page-product--quickview .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label,
  .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label {
    display: inline !important;
  }
}

body#product .np-pdp-atc .np-wish-add--pdp:hover,
.quickview .np-pdp-atc .np-wish-add--pdp:hover,
.page-product--quickview .np-pdp-atc .np-wish-add--pdp:hover,
.np-pdp-atc .np-wish-add--pdp:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

body#product .np-pdp-atc .np-wish-add--pdp .np-wish-add__icon--filled,
.quickview .np-pdp-atc .np-wish-add--pdp .np-wish-add__icon--filled,
.page-product--quickview .np-pdp-atc .np-wish-add--pdp .np-wish-add__icon--filled,
.np-pdp-atc .np-wish-add--pdp .np-wish-add__icon--filled {
  display: none !important;
  color: #db1b1b;
}

body#product .np-pdp-atc .np-wish-add--pdp.np-wish-add--added .np-wish-add__icon--outline,
.quickview .np-pdp-atc .np-wish-add--pdp.np-wish-add--added .np-wish-add__icon--outline,
.page-product--quickview .np-pdp-atc .np-wish-add--pdp.np-wish-add--added .np-wish-add__icon--outline,
.np-pdp-atc .np-wish-add--pdp.np-wish-add--added .np-wish-add__icon--outline {
  display: none !important;
}

body#product .np-pdp-atc .np-wish-add--pdp.np-wish-add--added .np-wish-add__icon--filled,
.quickview .np-pdp-atc .np-wish-add--pdp.np-wish-add--added .np-wish-add__icon--filled,
.page-product--quickview .np-pdp-atc .np-wish-add--pdp.np-wish-add--added .np-wish-add__icon--filled,
.np-pdp-atc .np-wish-add--pdp.np-wish-add--added .np-wish-add__icon--filled {
  display: inline-block !important;
}

/* Mobile: ATC + wishlist en fila; qty vive junto a talla (np-pdp.js) */
@media (max-width: 767.98px) {
  body#product .np-pdp-qty-slot .quantity-button,
  body#product .np-pdp-qty-slot .js-quantity-button,
  body#product .np-pdp-qty-slot .qty-input,
  body#product .np-pdp-qty-slot .quantity-button__group,
  body#product .np-pdp-qty-slot .quantity-button__group > .btn,
  body#product .np-pdp-qty-slot .js-quantity-wanted {
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    max-height: 2.25rem !important;
  }

  body#product .np-pdp-qty-slot .quantity-button,
  body#product .np-pdp-qty-slot .js-quantity-button,
  body#product .np-pdp-qty-slot .quantity-button__group {
    min-width: 6.75rem;
  }

  body#product .np-pdp-atc__row {
    flex-wrap: nowrap !important;
    justify-content: stretch;
  }

  body#product .np-pdp-atc__row > .product__quantity {
    /* Fallback si no hay talla/slot: qty queda en la fila ATC */
    flex: 0 0 auto;
  }

  body#product .np-pdp-atc__row .product__add-to-cart {
    flex: 1 1 auto;
    min-width: 0;
  }

  body#product .np-pdp-atc__btn,
  body#product .product__add-to-cart-button.np-pdp-atc__btn,
  .np-pdp-atc__btn {
    font-size: 0.875rem !important;
  }

  body#product .np-pdp-atc__row .np-wish-add--pdp {
    min-width: 3rem;
    width: 3rem;
    padding-inline: 0 !important;
  }

  body#product .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label {
    display: none !important;
  }
}

/*
 * Intermedio tablet/laptop (~768–1199) + QV:
 * ATC prioriza espacio; wishlist = solo corazón (como mobile).
 */
@media (min-width: 768px) and (max-width: 1199.98px) {
  body#product .np-pdp-atc__row,
  .quickview .np-pdp-atc__row,
  .page-product--quickview .np-pdp-atc__row,
  .np-pdp-atc__row {
    flex-wrap: nowrap !important;
    gap: 0.45rem;
  }

  body#product .np-pdp-atc__row .product__add-to-cart,
  .quickview .np-pdp-atc__row .product__add-to-cart,
  .page-product--quickview .np-pdp-atc__row .product__add-to-cart,
  .np-pdp-atc__row .product__add-to-cart {
    flex: 1 1 auto;
    min-width: 0;
  }

  body#product .np-pdp-atc__btn,
  body#product .product__add-to-cart-button.np-pdp-atc__btn,
  .quickview .np-pdp-atc__btn,
  .page-product--quickview .np-pdp-atc__btn,
  .np-pdp-atc__btn {
    font-size: 0.875rem !important;
  }

  body#product .np-pdp-atc__row .np-wish-add--pdp,
  .quickview .np-pdp-atc__row .np-wish-add--pdp,
  .page-product--quickview .np-pdp-atc__row .np-wish-add--pdp,
  .np-pdp-atc__row .np-wish-add--pdp {
    flex: 0 0 auto;
    min-width: 3rem;
    width: 3rem;
    max-width: 3rem;
    padding-inline: 0 !important;
  }

  body#product .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label,
  .quickview .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label,
  .page-product--quickview .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label,
  .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label {
    display: none !important;
  }
}

/* Mobile estrecho: qty arriba; ATC + wishlist en una fila centrada a ancho completo */
@media (max-width: 575.98px) {
  body#product .np-pdp-atc__row,
  .quickview .np-pdp-atc__row,
  .page-product--quickview .np-pdp-atc__row,
  .np-pdp-atc__row {
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: 0.5rem;
  }

  body#product .np-pdp-atc__row > .product__quantity,
  .quickview .np-pdp-atc__row > .product__quantity,
  .page-product--quickview .np-pdp-atc__row > .product__quantity,
  .np-pdp-atc__row > .product__quantity {
    flex: 0 0 auto;
    width: auto;
  }

  body#product .np-pdp-atc .quantity-button,
  body#product .np-pdp-atc .js-quantity-button,
  body#product .np-pdp-atc .qty-input,
  .np-pdp-atc .quantity-button,
  .np-pdp-atc .js-quantity-button {
    min-width: 6.75rem;
    width: auto;
  }

  body#product .np-pdp-atc__row .product__add-to-cart,
  .quickview .np-pdp-atc__row .product__add-to-cart,
  .page-product--quickview .np-pdp-atc__row .product__add-to-cart,
  .np-pdp-atc__row .product__add-to-cart {
    flex: 1 1 auto;
    min-width: 0;
  }

  body#product .np-pdp-atc__btn,
  body#product .product__add-to-cart-button.np-pdp-atc__btn,
  .np-pdp-atc__btn {
    font-size: 0.875rem !important;
  }

  body#product .np-pdp-atc__row .np-wish-add--pdp,
  .quickview .np-pdp-atc__row .np-wish-add--pdp,
  .page-product--quickview .np-pdp-atc__row .np-wish-add--pdp,
  .np-pdp-atc__row .np-wish-add--pdp {
    min-width: 3rem;
    width: 3rem;
    padding-inline: 0 !important;
  }

  body#product .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label,
  .quickview .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label,
  .page-product--quickview .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label,
  .np-pdp-atc__row .np-wish-add--pdp .np-wish-add__label {
    display: none !important;
  }

  body#product .np-pdp-atc__row .product__quantity,
  .quickview .np-pdp-atc__row .product__quantity,
  .page-product--quickview .np-pdp-atc__row .product__quantity,
  .np-pdp-atc__row .product__quantity {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
  }
}

/* Guía de tallas (tmdcustomsize): header + cerrar Material
 * Incluye modal liberado del quickview ([data-np-qv-child]) — ya no está bajo .cj-tallas-wrap */
.cj-tallas-wrap .modal-header,
.modal[data-np-qv-child='1'] .modal-header:has(.cj-tallas-modal__brand),
.modal.np-qv-child-open .modal-header:has(.cj-tallas-modal__brand) {
  position: relative;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 2.75rem 1rem 1rem;
}

.cj-tallas-wrap .modal-header .cj-tallas-modal__brand,
.modal[data-np-qv-child='1'] .cj-tallas-modal__brand,
.modal.np-qv-child-open .cj-tallas-modal__brand {
  width: 100%;
  max-width: 100%;
  padding-right: 0.25rem;
  text-align: center;
}

.cj-tallas-wrap .modal-header .cj-tallas-modal__brand img,
.modal[data-np-qv-child='1'] .cj-tallas-modal__brand img,
.modal.np-qv-child-open .cj-tallas-modal__brand img {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop: el <p> de "¿Cómo hacerlo?" no wrappea en el modal */
@media (min-width: 768px) {
  .cj-tallas-wrap .modal .modal-body .row,
  .cj-tallas-wrap .modal .modal-body [class*="col-"],
  .cj-tallas-wrap .modal .product-description {
    min-width: 0;
    max-width: 100%;
  }

  .cj-tallas-wrap .modal .product-description,
  .cj-tallas-wrap .modal .product-description p {
    text-wrap: auto !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
  }
}

/*
 * Overlays BS 5.3 (PS 9.1.4): blur visible + sin overflow por 100vw.
 * bg #0000002e + opacity 1 (opacity 0.5 + negro sólido anula el blur).
 */
.modal-backdrop,
.modal-backdrop.fade,
.modal-backdrop.show,
.modal-backdrop.showing,
.offcanvas-backdrop,
.offcanvas-backdrop.fade,
.offcanvas-backdrop.show,
body .modal-backdrop.show,
.np-qv-child-backdrop {
  --bs-backdrop-zindex: 1050;
  --bs-backdrop-bg: #0000002e;
  --bs-backdrop-opacity: 1;
  background-color: var(--bs-backdrop-bg) !important;
  opacity: var(--bs-backdrop-opacity) !important;
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: auto !important;
  height: auto !important;
  max-width: none;
  overflow: hidden !important;
  backdrop-filter: blur(0.8px) !important;
  -webkit-backdrop-filter: blur(0.8px) !important;
  z-index: var(--bs-backdrop-zindex);
}

@media (max-width: 767.98px) {
  .modal-backdrop,
  .modal-backdrop.fade,
  .modal-backdrop.show,
  .modal-backdrop.showing,
  .offcanvas-backdrop,
  .offcanvas-backdrop.fade,
  .offcanvas-backdrop.show,
  .np-qv-child-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Megamenú NP: backdrop bajo el drawer (1210 en np_megamenu.css) */
body.npmm-menu-open .offcanvas-backdrop,
body:has(.npmm-mobile.offcanvas.showing) .offcanvas-backdrop,
body:has(.npmm-mobile.offcanvas.show) .offcanvas-backdrop {
  --bs-backdrop-zindex: 1200;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 1200 !important;
}

/* Diálogos hijos del quickview (cuotas / tallas) — overlay propio, sin BS Modal */
.np-qv-child-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1065;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s linear;
}

.np-qv-child-backdrop:not(.is-visible) {
  opacity: 0 !important;
}

.np-qv-child-backdrop.is-visible {
  opacity: var(--bs-backdrop-opacity, 1) !important;
}

.modal[data-np-qv-child="1"].np-qv-child-open {
  transition: opacity 0.2s linear;
  opacity: 0;
}

.modal[data-np-qv-child="1"].np-qv-child-open.show {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .modal[data-np-qv-child="1"].np-qv-child-open,
  .np-qv-child-backdrop {
    transition: none;
  }
}

.modal.np-qv-child-open {
  display: block !important;
  z-index: 1070;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal.np-qv-child-open .modal-dialog {
  margin: 1.75rem auto;
  pointer-events: auto;
}

/* --- Quickview: mismos estilos PDP --- */
.page-product--quickview .np-pdp-head {
  margin-bottom: 0.35rem;
}

.page-product--quickview .np-pdp-desc-short {
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
}

.page-product--quickview .product__manufacturer {
  display: none !important;
}

/* --- QV: miniaturas en fila scrolleable (sin wrap) ---
 * Flechas a -26px (fuera del strip). El padding de product__left absorbe el
 * overhang para no provocar scroll horizontal del modal. */
.quickview .product__left,
.page-product--quickview .product__left {
  padding-inline: 1.75rem;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.quickview .product__thumbnails.np-qv-thumbs-scroller,
.page-product--quickview .product__thumbnails.np-qv-thumbs-scroller {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding-inline: 0;
}

.quickview .product__thumbnails-list,
.page-product--quickview .product__thumbnails-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.35rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0;
  max-width: 100%;
  min-width: 0;
}

.quickview .product__thumbnails-list::-webkit-scrollbar,
.page-product--quickview .product__thumbnails-list::-webkit-scrollbar {
  display: none;
}

.quickview .product__thumbnail,
.page-product--quickview .product__thumbnail {
  flex: 0 0 auto;
}

.quickview .np-qv-thumbs-nav,
.page-product--quickview .np-qv-thumbs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.65rem;
  height: 1.65rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2;
  padding: 0;
}

.quickview .np-qv-thumbs-nav--visible,
.page-product--quickview .np-qv-thumbs-nav--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quickview .np-qv-thumbs-nav--prev,
.page-product--quickview .np-qv-thumbs-nav--prev {
  left: -26px;
}

.quickview .np-qv-thumbs-nav--next,
.page-product--quickview .np-qv-thumbs-nav--next {
  right: -26px;
}

.quickview .np-qv-thumbs-nav .carousel-control-prev-icon,
.quickview .np-qv-thumbs-nav .carousel-control-next-icon,
.page-product--quickview .np-qv-thumbs-nav .carousel-control-prev-icon,
.page-product--quickview .np-qv-thumbs-nav .carousel-control-next-icon {
  width: 1rem;
  height: 1rem;
}

/* --- Modal carrito (confirmación) estilo Warehouse --- */
#blockcart-modal.np-blockcart-modal .modal-header,
.blockcart-modal.np-blockcart-modal .modal-header {
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  align-items: center;
  padding: 0.85rem 1.15rem;
}

#blockcart-modal.np-blockcart-modal .blockcart-modal__title,
.blockcart-modal.np-blockcart-modal .blockcart-modal__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.35;
  color: #111 !important;
}

#blockcart-modal.np-blockcart-modal .blockcart-modal__title-icon,
.blockcart-modal.np-blockcart-modal .blockcart-modal__title-icon {
  color: #111 !important;
  font-size: 1.35rem;
}

#blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn,
.blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn,
#blockcart-modal.np-blockcart-modal .modal-footer .btn,
.blockcart-modal.np-blockcart-modal .modal-footer .btn {
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  min-height: 2.75rem;
}

#blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn--primary,
#blockcart-modal.np-blockcart-modal .modal-footer .btn-primary,
.blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn--primary,
.blockcart-modal.np-blockcart-modal .modal-footer .btn-primary {
  background-color: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

#blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn--primary:hover,
#blockcart-modal.np-blockcart-modal .modal-footer .btn-primary:hover,
.blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn--primary:hover,
.blockcart-modal.np-blockcart-modal .modal-footer .btn-primary:hover {
  background-color: #2a2a2a !important;
  border-color: #2a2a2a !important;
  color: #fff !important;
}

#blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn--secondary,
#blockcart-modal.np-blockcart-modal .modal-footer .btn-outline-primary,
.blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn--secondary,
.blockcart-modal.np-blockcart-modal .modal-footer .btn-outline-primary {
  background-color: #f0f0f0 !important;
  border-color: #e0e0e0 !important;
  color: #111 !important;
}

#blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn--secondary:hover,
#blockcart-modal.np-blockcart-modal .modal-footer .btn-outline-primary:hover,
.blockcart-modal.np-blockcart-modal .modal-footer .np-blockcart-modal__btn--secondary:hover,
.blockcart-modal.np-blockcart-modal .modal-footer .btn-outline-primary:hover {
  background-color: #e6e6e6 !important;
  border-color: #d5d5d5 !important;
  color: #111 !important;
}

@media (max-width: 991.98px) {
  #blockcart-modal.np-blockcart-modal .modal-footer .btn,
  .blockcart-modal.np-blockcart-modal .modal-footer .btn {
    width: 100%;
  }
}

/* PDP accordion: títulos + ref/MPN mobile */
.js-product-details > .accordion-item > .accordion-header {
  padding-inline: 8px;
}

/* Detalles del producto / Ficha técnica: texto negro (no azul BS) */
body#product .product__accordion {
  --bs-accordion-active-color: #000;
  --bs-accordion-btn-color: #000;
  --bs-accordion-btn-focus-border-color: #000;
  --bs-accordion-btn-focus-box-shadow: none;
}

body#product .product__accordion .accordion-button,
body#product .product__accordion .accordion-button:not(.collapsed),
body#product .product__accordion .accordion-button:focus,
body#product .product__accordion .accordion-button:hover {
  color: #000 !important;
}

@media (max-width: 991.98px) {
  #product_details_collapse .details__item--reference .details__right,
  #product_details_collapse .details__item--mpn .details__right {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  /*
   * CRÍTICO: no overflow-x en html/body — rompe sticky (topbar partido)
   * y deja hueco blanco si MagicZoom ensancha el documento.
   * Clip solo bajo #wrapper (debajo del header).
   * Hasta 991.98: vendor MagicZoom sigue en fila (selectorsLeft) entre 768–991.
   */
  html:has(body#product),
  body#product {
    width: 100%;
    max-width: 100%;
    overflow-x: visible !important;
  }

  body#product #wrapper,
  body#product #main,
  body#product .columns-container,
  body#product .columns-container.container,
  body#product #content-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    box-sizing: border-box;
  }

  body#product .product__container,
  body#product .product__left,
  body#product .product-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    box-sizing: border-box;
  }

  body#product #dx-tbar-container,
  body#product .np-sc-topbar {
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
  }

  body#product .MagicToolboxContainer,
  body#product .MagicToolboxMainContainer,
  body#product .MagicToolboxSelectorsContainer,
  body#product .MagicScroll {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  body#product .MagicZoom img,
  body#product .mz-figure img,
  body#product .mi-clase-zoom .MagicZoom img,
  body#product .mi-clase-zoom .MagicZoom:hover img {
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: 75vh !important;
    object-fit: contain !important;
  }

  body#product .header-banner,
  body#product .np-sc-topbar,
  body#product .np-official-bar,
  body#product #header,
  body#product .np-wh-header,
  body#product .header-bottom,
  body#product .header-bottom__container,
  body#product .header-bottom__container.container-md,
  body#product .np-wh-header__row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body#product .header-bottom__container.container-md {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  body#product #back-to-top {
    position: fixed;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    left: auto;
    max-width: none;
  }
}