/* ==========================================================================
   Ficha producto — estilo Joma Sport (joma-sport.com)
   ========================================================================== */

/* --- Layout principal --- */
body.page-product #wrapper .container,
body.page-product .breadcrumb.container {
  max-width: var(--weu-width-container);
}

body.page-product .product__container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

/* Relacionados / más vistos: mismo ancho que #center-column (sin .container Bootstrap) */
body.page-product .weu-product__related-products .module-products,
body.page-product .weu-product__related-products .module-products.container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* 5 productos por fila en escritorio (Hummingbird usa 4 en .layout-full-width) */
body.page-product .weu-product__related-products .products {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  body.page-product .weu-product__related-products .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  body.page-product .weu-product__related-products .products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

/* --- Cabecera producto --- */
body.page-product .weu-product__header {
  margin-bottom: 0.35rem;
}

body.page-product .product__name {
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--weu-color-black);
  letter-spacing: -0.02em;
}

body.page-product .weu-product__reference {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--weu-color-muted);
  letter-spacing: 0.02em;
}

/* Resumen opiniones bajo el título (estrellas negras) */
body.page-product .weu-product-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 0.5rem;
  color: var(--weu-color-dark, #1d1d1d);
  font-size: 0.875rem;
  line-height: 1.2;
}

body.page-product .weu-product-rating__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  margin: 0;
  line-height: 1;
}

body.page-product .weu-product-rating .weu-product-review__star,
body.page-product .weu-product-rating .jmgx-heroicon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--weu-color-dark, #1d1d1d);
  background-color: currentColor;
  flex-shrink: 0;
}

body.page-product .weu-product-rating .weu-product-review__star.is-empty {
  opacity: 0.28;
}

body.page-product .weu-product-rating__count,
body.page-product .weu-product-rating__cta {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

body.page-product .weu-product-rating__count:hover,
body.page-product .weu-product-rating__count:focus-visible,
body.page-product .weu-product-rating__cta:hover,
body.page-product .weu-product-rating__cta:focus-visible {
  color: var(--weu-color-dark, #1d1d1d);
  text-decoration: underline;
  outline: none;
}

body.page-product .weu-product-rating__sep {
  color: rgba(29, 29, 29, 0.45);
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

body.page-product .product__manufacturer {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

body.page-product .product__manufacturer a {
  color: var(--weu-color-blue);
  font-weight: 600;
  text-decoration: none;
}

body.page-product .product__manufacturer a:hover {
  text-decoration: underline;
}

/* --- Precios + wishlist --- */
body.page-product .weu-product__prices-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

body.page-product .weu-product__prices-main {
  flex: 1 1 auto;
  min-width: 0;
}

body.page-product .weu-product__prices-aside {
  flex: 0 0 auto;
  padding-top: 0.15rem;
}

body.page-product .weu-product__prices-aside .wishlist-button-product {
  margin: 0;
}

body.page-product .weu-product__prices-aside .wishlist-button-add {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  border: 1px solid var(--weu-color-border);
  box-shadow: none;
}

body.page-product .weu-product__price-current {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--weu-color-black);
}

/* Ficha con descuento: caja negra + blanco */
body.page-product .weu-product__prices-block--deal .weu-product__price-current {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 0.25rem;
  background: var(--weu-color-black);
  color: var(--weu-white, #fff);
  font-style: italic;
  line-height: 1.1;
}

body.page-product .weu-product__prices-block {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.75rem;
}

body.page-product .weu-product__prices-block > .weu-product__price-row,
body.page-product .weu-product__prices-block > .weu-product__discount-row {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

body.page-product .weu-product__regular-price {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--weu-color-error, #cd0a0a);
  text-decoration: none;
}

body.page-product .weu-product__regular-price::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -0.05em;
  width: calc(100% + 0.1em);
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%) rotate(-14deg);
  pointer-events: none;
}

body.page-product .weu-product__discount-row,
body.page-product .weu-product__price-row {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  gap: 0.35rem 0.45rem;
}

body.page-product .weu-product__discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: var(--weu-radius-pill);
  background: var(--weu-color-black);
  color: var(--weu-white, #fff);
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Galería en rejilla --- */
body.page-product .weu-product__gallery {
  position: relative;
  margin-bottom: 0;
}

body.page-product .weu-product__gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 991.98px) {
  body.page-product .weu-product__gallery-grid,
  body.page-product .weu-product__gallery-slider .splide__list.weu-product__gallery-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0;
    grid-template-columns: none !important;
  }
}

body.page-product .weu-product__gallery-slider {
  position: relative;
}

/* Splide oculta .splide hasta montar; en desktop se destruye y la galería
   quedaba en blanco. Forzar visible siempre (rejilla CSS / carrusel móvil). */
body.page-product .weu-product__gallery-slider.splide {
  visibility: visible !important;
}

body.page-product .weu-product__gallery-slider .splide__slide {
  box-sizing: border-box;
}

body.page-product .weu-product__gallery-item,
body.page-product .weu-product__gallery-empty {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--weu-radius-default);
  background: #f5f5f5 !important;
}

body.page-product .weu-product__gallery-item .product-flags {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  width: auto;
  max-width: calc(100% - 1.5rem);
  padding: 0;
  margin: 0;
}

body.page-product .weu-product__gallery-item .product-flags .badge,
body.page-product .weu-product__gallery-empty .product-flags .badge {
  border: 0 !important;
  border-radius: var(--weu-radius-pill);
  box-shadow: none;
}

body.page-product .weu-product__gallery-item .product-flags .badge.on-sale,
body.page-product .weu-product__gallery-empty .product-flags .badge.on-sale {
  background: var(--weu-color-black) !important;
  background-color: var(--weu-color-black) !important;
  border: 0 !important;
  color: var(--weu-white) !important;
}

body.page-product .weu-product__gallery-item .product-flags .badge.new,
body.page-product .weu-product__gallery-empty .product-flags .badge.new {
  background: var(--weu-color-blue) !important;
  background-color: var(--weu-color-blue) !important;
  border: 0 !important;
  color: var(--weu-white) !important;
}

body.page-product .weu-product__gallery-item .product-flags .badge.out_of_stock,
body.page-product .weu-product__gallery-empty .product-flags .badge.out_of_stock {
  background: var(--weu-color-black) !important;
  background-color: var(--weu-color-black) !important;
  border: 0 !important;
  color: var(--weu-white) !important;
}

body.page-product .weu-product__gallery-item .product-flags .badge.discount,
body.page-product .weu-product__gallery-item .product-flags .weu-product__discount-badge,
body.page-product .weu-product__gallery-empty .product-flags .badge.discount,
body.page-product .weu-product__gallery-empty .product-flags .weu-product__discount-badge {
  display: none !important;
}

body.page-product .weu-product__gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

body.page-product .weu-product__gallery-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  /* Recorte leve del aire de estudio; el producto sigue cabiendo. */
  transform: scale(1.12);
  transform-origin: center center;
}

/* --- Variantes --- */
body.page-product .weu-product__variants {
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

body.page-product .weu-variant__label {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

body.page-product .weu-variant__legend {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--weu-color-black);
}

body.page-product .weu-variant__selected {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--weu-color-muted);
}

body.page-product .weu-variant__selected::before {
  content: none;
}

/* Color swatches compactos */
body.page-product .weu-variant__colors {
  gap: 0.5rem;
}

body.page-product .weu-variant__color-label {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid var(--weu-color-border);
  border-radius: 0.35rem;
  background: transparent;
  overflow: hidden;
}

body.page-product .weu-variant__color-label .color {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.25rem;
  overflow: hidden;
  /* Hummingbird pone outline azul en .color.active; nos basta el borde negro del label */
  outline: none !important;
}

body.page-product .weu-variant__color-label .color.active,
body.page-product .weu-variant__color-label .color:hover,
body.page-product .weu-variant__color-label .color:focus-visible {
  outline: none !important;
}

body.page-product .weu-variant__color-label .weu-variant__color-img,
body.page-product .weu-variant__color-label .weu-variant__color-fill {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
  background: transparent;
}

body.page-product .weu-variant__color-label .weu-variant__color-fill {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.page-product .weu-variant__color-label--active,
body.page-product .input-color__label--active.weu-variant__color-label {
  border-color: var(--weu-color-black);
  border-width: 2px;
  box-shadow: none;
}

body.page-product .weu-variant__color-picked {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--weu-color-black);
  line-height: 1.3;
}

body.page-product .weu-variant__color--oos .weu-variant__color-label {
  opacity: 0.45;
}

/* Rejilla de tallas: full width, mismas columnas al hacer wrap (auto-fill) */
body.page-product .weu-variant__size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.75rem, 1fr));
  gap: 0.4rem;
  width: 100%;
  margin: 0;
}

body.page-product .weu-variant__size-item {
  position: relative;
  min-width: 0;
  width: auto;
}

body.page-product .weu-variant__size-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.page-product .weu-variant__size-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  min-width: 0;
  min-height: 3.15rem;
  height: auto;
  padding: 0.35rem 0.2rem 0.3rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.45rem;
  background: var(--weu-white);
  color: var(--weu-color-black);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--weu-transition), background-color var(--weu-transition), color var(--weu-transition);
  box-sizing: border-box;
}

body.page-product .weu-variant__size-btn .weu-variant__size-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body.page-product button.weu-variant__size-btn {
  font-family: inherit;
}

body.page-product .weu-variant__size-input:checked + .weu-variant__size-btn {
  border-color: var(--weu-color-black);
  box-shadow: inset 0 0 0 1px var(--weu-color-black);
}

body.page-product .weu-variant__size-input:focus-visible + .weu-variant__size-btn {
  outline: 2px solid var(--weu-color-blue);
  outline-offset: 2px;
}

body.page-product .weu-variant__size-btn:not(.weu-variant__size-btn--oos) {
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}

body.page-product .weu-variant__size-btn--oos {
  border-color: rgba(0, 0, 0, 0.1);
  background: #f3f3f3;
  color: #9a9a9a;
  cursor: pointer;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

body.page-product .weu-variant__size-btn--oos:hover,
body.page-product .weu-variant__size-btn--oos:focus-visible {
  border-color: rgba(0, 0, 0, 0.22);
  background: #ececec;
  outline: none;
}

body.page-product .weu-variant__size-btn--oos .weu-variant__size-name {
  flex: 0 1 auto;
  width: auto;
  text-decoration: line-through;
  text-decoration-color: #b0b0b0;
}

body.page-product .weu-variant__size-bell {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

body.page-product .weu-variant__size-bell .jmgx-heroicon {
  width: 0.9rem;
  height: 0.9rem;
  color: #8a8a8a;
}

body.page-product .weu-variant__size-btn--oos:hover .weu-variant__size-bell .jmgx-heroicon,
body.page-product .weu-variant__size-btn--oos:focus-visible .weu-variant__size-bell .jmgx-heroicon {
  color: var(--weu-color-black);
}

/* Leyenda y plazos de entrega por talla */
body.page-product .weu-variant__delivery-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  color: #666;
}

body.page-product .weu-variant__delivery-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.page-product .weu-delivery-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

body.page-product .weu-delivery-dot--fast {
  background: #1f9d55;
}

body.page-product .weu-delivery-dot--slow {
  background: #e6a100;
}

body.page-product .weu-delivery-dot--oos {
  background: transparent;
  border: 1.5px solid #b0b0b0;
}

body.page-product .weu-variant__size-item {
  min-width: 0;
  width: auto;
}

body.page-product .weu-variant__size-dot {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

body.page-product .weu-variant__size-dot--fast {
  background: #1f9d55;
}

body.page-product .weu-variant__size-dot--slow {
  background: #e6a100;
}

body.page-product .weu-variant__size-dot--oos {
  display: none;
}

body.page-product .weu-variant__size-delivery {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.1;
  color: #666;
}

body.page-product .weu-variant__size-item--fast .weu-variant__size-delivery {
  color: #1f7a42;
}

body.page-product .weu-variant__size-item--slow .weu-variant__size-delivery {
  color: #b07d00;
}

body.page-product .weu-product__delivery-badge {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

body.page-product .weu-product__delivery-badge.weu-delivery-badge--fast {
  background: #e8f7ee;
  color: #1f7a42;
}

body.page-product .weu-product__delivery-badge.weu-delivery-badge--slow {
  background: #fff6df;
  color: #9a6b00;
}

body.page-product .weu-product__delivery-badge[hidden] {
  display: none !important;
}

/* Ocultar aviso inline de ps_emailalerts (usamos modal por talla) */
body.page-product .product__additional-info .ps-emailalerts--product {
  display: none !important;
}

/* Modales ficha (stock, PVPR, guía de tallas, reseñas…) por encima del backdrop global */
body.page-product .modal,
body.page-product #weuStockAlertModal,
body.page-product #weuPvprInfoModal,
body.page-product #weuSizeGuideModal,
body.page-product .product-comment-modal,
body .product-comment-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  overflow-x: hidden;
  overflow-y: auto;
}

body.page-product .modal-backdrop,
body.page-product .modal-backdrop[data-weu-modal-backdrop],
body.modal-open .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1055;
  background-color: rgba(0, 0, 0, 0.5);
}

body.page-product .weu-stock-alert-modal__size {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--weu-color-black);
}

body.page-product .weu-stock-alert-modal__submit {
  background: var(--weu-color-blue);
  border-color: var(--weu-color-blue);
}

body.page-product .weu-stock-alert-modal__submit:hover {
  background: var(--weu-color-blue-dark);
  border-color: var(--weu-color-blue-dark);
}

/* Toast aviso stock (usuario logueado) */
.weu-stock-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.weu-stock-toast {
  padding: 0.85rem 1rem;
  border-radius: var(--weu-radius-default, 0.375rem);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.weu-stock-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.weu-stock-toast--success {
  background: #198754;
  border: 1px solid #157347;
}

.weu-stock-toast--danger {
  background: #dc3545;
  border: 1px solid #b02a37;
}

body.page-product .weu-variant__size-guide {
  margin: 0.65rem 0 0;
}

body.page-product .weu-variant__size-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--weu-color-black);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

body.page-product .weu-variant__size-guide-link .jmgx-heroicon {
  width: 1rem;
  height: 1rem;
}

/* --- Compra --- */
body.page-product .weu-product__buy {
  width: 100%;
  margin-bottom: 1rem;
}

body.page-product .weu-product__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}

body.page-product .weu-product__qty {
  display: none;
}

body.page-product .weu-product__cta {
  width: 100%;
  max-width: 100%;
}

body.page-product .weu-product__add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: var(--weu-radius-default);
  background: var(--weu-color-blue);
  color: var(--weu-color-on-blue);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color var(--weu-transition), transform var(--weu-transition);
}

body.page-product .weu-product__add-btn:hover:not(:disabled) {
  background: var(--weu-color-blue-dark);
}

body.page-product .weu-product__add-btn:disabled {
  opacity: 0.55;
}

/* --- Barra flotante Añadir a la cesta --- */
body.page-product .weu-float-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* Por debajo del header sticky (1000) y del menú offcanvas que cuelga de él */
  z-index: 990;
  padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  transform: translateY(110%);
  transition: transform 0.22s ease, visibility 0.22s ease;
  visibility: hidden;
  pointer-events: none;
}

body.page-product .weu-float-cart.is-visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

body.page-product .weu-float-cart[hidden] {
  display: block !important;
}

body.page-product .weu-float-cart__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  max-width: var(--weu-width-container);
}

body.page-product .weu-float-cart__info {
  flex: 1 1 auto;
  min-width: 0;
}

body.page-product .weu-float-cart__meta {
  margin: 0 0 0.12rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--weu-color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-product .weu-float-cart__meta:empty {
  display: none;
}

body.page-product .weu-float-cart__price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--weu-color-black);
}

body.page-product .weu-float-cart__btn {
  flex: 0 0 auto;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: var(--weu-radius-default);
  background: var(--weu-color-blue);
  color: var(--weu-color-on-blue);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

body.page-product .weu-float-cart__btn:hover:not(:disabled) {
  background: var(--weu-color-blue-dark);
}

body.page-product .weu-float-cart__btn:disabled {
  opacity: 0.55;
}

@media (max-width: 575.98px) {
  body.page-product .weu-float-cart__btn {
    flex: 1 1 auto;
    max-width: 58%;
  }
}

/* Cookiebot renew: subir el widget cuando la barra flotante tapa el precio */
@media (max-width: 991.98px) {
  body.page-product.weu-float-cart-open #CookiebotWidget {
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 992px) {
  body.page-product .weu-float-cart,
  body.page-product .weu-float-cart.is-visible,
  body.page-product .weu-float-cart[hidden] {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(110%);
  }
}

body.page-product .weu-product__description-short {
  margin-bottom: 1rem;
  color: var(--weu-color-muted);
  font-size: 0.9375rem;
}

/* --- Descripción (estilo Deporvillage) --- */
body.page-product .weu-product-desc {
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

body.page-product .weu-product-desc__lead {
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--weu-color-dark, #1d1d1d);
}

body.page-product .weu-product-desc__lead > *:last-child {
  margin-bottom: 0;
}

body.page-product .weu-product-desc__lead p,
body.page-product .weu-product-desc__content p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

body.page-product .weu-product-desc__body {
  position: relative;
}

body.page-product .weu-product-desc__content {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--weu-color-dark, #1d1d1d);
}

/* Sin descripción corta: el primer bloque actúa de lead */
body.page-product .weu-product-desc__body--solo .weu-product-desc__content > :first-child {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

body.page-product .weu-product-desc__body.is-collapsed .weu-product-desc__content {
  max-height: 11.5rem;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

body.page-product .weu-product-desc__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 0.4rem;
  margin: 1.1rem 0 0;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--weu-radius-pill, 999px);
  background-color: var(--weu-color-grey, #ececec);
  color: var(--weu-color-black, #1d1d1d);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.page-product .weu-product-desc__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.page-product .weu-product-desc__toggle:hover,
body.page-product .weu-product-desc__toggle:focus-visible {
  background-color: var(--weu-color-grey-hover, #e0e0e0);
  color: var(--weu-color-black, #1d1d1d);
  outline: none;
}

body.page-product .weu-product-desc__toggle-icon {
  width: 1rem;
  height: 1rem;
  color: currentColor;
  background-color: currentColor;
  transition: transform 0.2s ease;
}

body.page-product .weu-product-desc__body.is-expanded .weu-product-desc__toggle-icon {
  transform: rotate(180deg);
}

body.page-product .weu-product-desc__toggle[hidden] {
  display: none !important;
}

/* --- CTA colectivos --- */
body.page-product .weu-product-collectives__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

body.page-product .weu-product-collectives__icon-wrap {
  display: contents;
}

body.page-product .weu-product-collectives__icon.jmgx-heroicon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  mask-size: 1.75rem;
  -webkit-mask-size: 1.75rem;
  background-color: var(--weu-color-black) !important;
}

body.page-product .weu-product-collectives__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--weu-color-muted);
}

body.page-product .weu-product-collectives__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--weu-color-dark);
}

body.page-product .weu-product-collectives__text {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--weu-color-muted);
}

body.page-product .weu-product-collectives__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

body.page-product .weu-product-collectives__features li {
  padding: 0.25rem 0.55rem;
  border-radius: var(--weu-radius-pill);
  border: 1px solid var(--weu-color-border);
  background: var(--weu-white);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--weu-color-muted);
}

body.page-product .weu-product-collectives__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--weu-radius-pill);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: var(--weu-color-dark);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--weu-transition), color var(--weu-transition), border-color var(--weu-transition);
}

body.page-product .weu-product-collectives__cta:hover,
body.page-product .weu-product-collectives__cta:focus {
  background: var(--weu-color-primary);
  border-color: var(--weu-color-primary);
  color: var(--weu-color-on-primary);
}

body.page-product .weu-product-collectives__cta-icon.jmgx-heroicon {
  width: 1rem;
  height: 1rem;
  mask-size: 1rem;
  -webkit-mask-size: 1rem;
  background-color: currentColor !important;
}

/* Celda de galería: colectivos como cuadro más en la rejilla */
body.page-product .weu-product__gallery-item--collectives {
  display: flex;
  padding: 0;
  background: var(--weu-white);
  border: 1px solid var(--weu-color-border);
}

body.page-product .weu-product-collectives--gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  min-height: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  gap: 0.75rem;
  border: 0;
  border-radius: 0;
  background: var(--weu-white);
  color: var(--weu-color-dark);
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__content {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__head {
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__icon-wrap {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--weu-color-yellow);
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__icon.jmgx-heroicon {
  width: 1.125rem;
  height: 1.125rem;
  mask-size: 1.125rem;
  -webkit-mask-size: 1.125rem;
  background-color: var(--weu-color-black) !important;
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__intro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__eyebrow {
  margin: 0;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: clamp(0.8rem, 1.7vw, 0.9rem);
  line-height: 1.28;
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  line-height: 1.4;
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__features {
  margin: 0;
  gap: 0.3rem;
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__features li {
  padding: 0.18rem 0.5rem;
  border-color: rgba(0, 0, 0, 0.1);
  background: var(--weu-color-grey-light);
  font-size: 0.625rem;
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__cta {
  flex-shrink: 0;
  margin-top: 0;
  padding: 0.58rem 0.85rem;
  font-size: 0.78rem;
  background: var(--weu-color-dark);
  border-color: var(--weu-color-dark);
  color: var(--weu-white);
}

body.page-product .weu-product-collectives--gallery .weu-product-collectives__cta:hover,
body.page-product .weu-product-collectives--gallery .weu-product-collectives__cta:focus {
  background: var(--weu-color-primary);
  border-color: var(--weu-color-primary);
  color: var(--weu-color-on-primary);
}

/* Galería: banner ancho cuando queda solo en la última fila (nº imágenes par) */
@media (min-width: 992px) {
  body.page-product .weu-product__gallery-item--collectives-wide {
    grid-column: 1 / -1;
  }

  body.page-product .weu-product__gallery-item--collectives-wide .weu-product-collectives--gallery,
  body.page-product .weu-product-collectives--gallery-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head cta";
    align-items: center;
    column-gap: clamp(1.25rem, 3vw, 2rem);
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    padding: 0.65rem 1rem;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__content {
    display: contents;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__head {
    grid-area: head;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0;
    min-width: 0;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__icon-wrap {
    align-self: flex-start;
    flex-shrink: 0;
    width: 1.875rem;
    height: 1.875rem;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__icon.jmgx-heroicon {
    width: 1rem;
    height: 1rem;
    mask-size: 1rem;
    -webkit-mask-size: 1rem;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__intro {
    min-width: 0;
    gap: 0.15rem;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__eyebrow {
    font-size: 0.5625rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__title {
    display: block;
    overflow: visible;
    font-size: clamp(0.72rem, 1vw, 0.8125rem);
    line-height: 1.2;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__text {
    display: none;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__features {
    display: none;
  }

  body.page-product .weu-product-collectives--gallery-wide .weu-product-collectives__cta {
    grid-area: cta;
    align-self: center;
    justify-self: end;
    width: auto;
    max-width: none;
    flex: none;
    margin: 0;
    padding: 0.5rem 0.95rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* --- Sección inferior --- */
body.page-product .product__bottom {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 0;
}

/* Títulos compartidos: Descripción / Detalles / Opiniones */
body.page-product #product_accordion .accordion-button,
body.page-product #product_accordion .accordion-button.collapsed,
body.page-product #product_accordion .accordion-button:not(.collapsed),
body.page-product .weu-product-reviews__accordion .accordion-button,
body.page-product .weu-product-reviews__accordion .accordion-button.collapsed,
body.page-product .weu-product-reviews__accordion .accordion-button:not(.collapsed) {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding-inline: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--weu-color-dark);
  background: transparent;
  box-shadow: none;
}

body.page-product #product_accordion .accordion-button::after,
body.page-product .weu-product-reviews__accordion .accordion-button::after {
  margin-left: auto;
  flex-shrink: 0;
}

body.page-product #product_accordion .accordion-button:focus,
body.page-product .weu-product-reviews__accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

body.page-product #product_accordion.accordion-flush > .accordion-item:first-child,
body.page-product #product_accordion > .accordion-item:first-child {
  border-top: 0;
}

/* --- Responsive --- */
@media (min-width: 992px) {
  /* Sticky scope = galería + compra + detalles. Los relacionados quedan fuera
     (hermano siguiente), así el sticky tiene tope al inicio de esos bloques. */
  body.page-product .weu-product-sticky-scope {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
  }

  body.page-product .weu-product-sticky-scope .product__container,
  body.page-product .weu-product-sticky-scope .product__bottom {
    display: contents;
  }

  body.page-product .weu-product-sticky-scope .product__left {
    grid-column: 1;
    grid-row: 1;
  }

  body.page-product .weu-product-sticky-scope .product__right {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: calc(var(--weu-header-height, 72px) + 1rem);
    align-self: start;
    z-index: 4;
    background-color: var(--weu-white);
  }

  body.page-product .weu-product-sticky-scope .product__bottom-left {
    grid-column: 1;
    grid-row: 2;
    margin-top: 2.5rem;
    padding-top: 0.5rem;
    border-top: 0;
    position: relative;
    z-index: 1;
    min-width: 0;
  }

  body.page-product .weu-product__comments {
    margin-top: 1.5rem;
  }

  body.page-product .weu-product__related-products {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    background-color: var(--weu-white);
  }

  body.page-product .weu-product__related-products > * + * {
    margin-top: 2rem;
  }

  body.page-product .weu-product-sticky-scope .product__bottom-right {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    background-color: var(--weu-white);
  }

  body.page-product .weu-product__gallery-slider .splide__track {
    overflow: visible;
  }

  body.page-product .weu-product__gallery-slider .splide__list.weu-product__gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  body.page-product .weu-product__gallery-slider .splide__slide {
    width: auto !important;
    margin: 0;
  }

  body.page-product .weu-product__gallery-slider .splide__pagination {
    display: none;
  }
}

@media (max-width: 991.98px) {
  body.page-product .product__container {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  /* Título + referencia encima de la imagen en móvil */
  body.page-product .product__right {
    display: contents;
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  body.page-product .weu-product__header {
    order: 1;
    margin-bottom: 0.4rem;
  }

  body.page-product .weu-product-rating {
    order: 2;
    margin-bottom: 0.35rem;
  }

  /* Precios en una línea bajo el título, antes de la galería */
  body.page-product .weu-product__prices-row {
    order: 3;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
  }

  body.page-product .weu-product__price-current {
    font-size: 1.35rem;
  }

  body.page-product .weu-product__regular-price {
    font-size: 0.875rem;
  }

  body.page-product .product__left {
    order: 4;
    margin-top: 0;
    margin-bottom: 0;
    min-width: 0;
  }

  body.page-product .weu-product__gallery {
    margin-top: 0;
    margin-bottom: 0;
    min-width: 0;
    /* Ancho completo del contenedor (sin peek); cancela solo el padding lateral */
    width: calc(100% + var(--bs-gutter-x, 1.5rem));
    max-width: none;
    margin-left: calc(var(--bs-gutter-x, 1.5rem) / -2);
    margin-right: calc(var(--bs-gutter-x, 1.5rem) / -2);
  }

  /* Colores debajo de la imagen (estilo Nike) */
  body.page-product .product__actions.js-product-actions,
  body.page-product #add-to-cart-or-refresh,
  body.page-product .weu-product__variants {
    display: contents;
  }

  body.page-product .weu-variant--color {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.2rem 0 0.75rem;
    padding: 0;
    border: 0;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  body.page-product .weu-variant--color .weu-variant__label--color {
    display: none;
  }

  /* Contenedor propio: el fieldset no contiene overflow en Chromium y, con
     display:contents en ancestros, la tira de colores ensanchaba toda la página. */
  body.page-product .weu-variant--color .weu-variant__colors-scroller {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Evita que el overflow del scroll interno sume al scrollWidth del documento */
    contain: paint;
  }

  body.page-product .weu-variant--color .weu-variant__colors-scroller::-webkit-scrollbar {
    display: none;
  }

  body.page-product .weu-variant--color .weu-variant__colors {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.4rem;
    width: max-content;
    max-width: none;
    min-width: 0;
    padding: 0;
  }

  body.page-product .weu-variant--color .weu-variant__color {
    flex: 0 0 auto;
    min-width: 0;
  }

  body.page-product .weu-variant--color .weu-variant__color-label {
    /* ~4–5 visibles a la vez; evita tira enorme con muchos colores */
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.15rem;
    border-width: 2px;
    border-color: transparent;
  }

  body.page-product .weu-variant--color .weu-variant__color-label--active,
  body.page-product .weu-variant--color .input-color__label--active.weu-variant__color-label {
    border-color: var(--weu-color-blue);
    box-shadow: none;
  }

  body.page-product .weu-variant--color .weu-variant__color-picked {
    order: 2;
    margin: 0.15rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--weu-color-black);
  }

  body.page-product .weu-variant--size,
  body.page-product .weu-variant--default,
  body.page-product .weu-product__buy,
  body.page-product .js-product-add-to-cart,
  body.page-product .product__pack,
  body.page-product .product__discounts {
    order: 5;
  }

  /* align-items:start en el contenedor: forzar ancho completo (como colores) */
  body.page-product .weu-variant--size,
  body.page-product .weu-variant--default {
    width: 100%;
    max-width: 100%;
    min-inline-size: 0;
    align-self: stretch;
  }

  body.page-product .weu-variant--size .weu-variant__size-grid {
    width: 100%;
  }

  body.page-product .weu-variant--size .weu-variant__label {
    display: none;
  }

  /* Con display:contents el bloque de reseñas salía arriba del título (order 0) */
  body.page-product .product__additional-info {
    display: none;
  }

  body.page-product .product__right > *:not(.weu-product__header):not(.weu-product-rating):not(.weu-product__prices-row) {
    order: 5;
  }

  /* Splide oculta .splide hasta montar; sin product.js la galería quedaba invisible */
  body.page-product .weu-product__gallery-slider.splide {
    visibility: visible !important;
  }

  body.page-product .weu-product__gallery-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body.page-product .weu-product__gallery-slider.is-initialized,
  body.page-product .weu-product__gallery-slider.is-initialized .splide__track {
    width: 100% !important;
    max-width: 100%;
  }

  body.page-product .weu-product__gallery-slider .splide__track {
    overflow: hidden;
  }

  body.page-product .weu-product__gallery-slider .splide__slide,
  body.page-product .weu-product__gallery-item {
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
  }

  body.page-product .weu-product__gallery-trigger,
  body.page-product .weu-product__gallery-trigger picture {
    display: block;
    width: 100%;
  }

  body.page-product .weu-product__gallery-img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transform: scale(1.08);
    transform-origin: center center;
  }

  body.page-product .weu-product__gallery-slider .splide__slide {
    flex-shrink: 0;
  }

  /* Fallback antes de montar Splide: imagen a ancho completo */
  body.page-product .weu-product__gallery-slider:not(.is-initialized) .splide__list {
    display: flex;
    gap: 0;
    overflow: hidden;
  }

  body.page-product .weu-product__gallery-slider:not(.is-initialized) .splide__slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body.page-product .weu-product__gallery-slider.weu-product__gallery--single:not(.is-initialized) .splide__slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body.page-product .weu-product__gallery-slider.is-initialized .splide__list.weu-product__gallery-grid {
    display: flex !important;
    gap: 0;
    grid-template-columns: none;
  }

  /* Dots estilo Nike: cápsula compacta sobre la imagen */
  body.page-product .weu-product__gallery-slider .splide__pagination {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    position: absolute !important;
    z-index: 5;
    bottom: 0.75rem !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%);
    width: max-content !important;
    max-width: calc(100% - 2rem) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0.3rem 0.5rem !important;
    list-style: none;
    pointer-events: auto;
    background: rgba(55, 55, 55, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
  }

  body.page-product .weu-product__gallery-slider .splide__pagination li {
    display: flex;
    margin: 0 !important;
    padding: 0;
    line-height: 0;
  }

  body.page-product .weu-product__gallery-slider .splide__pagination__page {
    display: block !important;
    width: 0.3125rem !important;
    height: 0.3125rem !important;
    min-width: 0.3125rem;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55) !important;
    opacity: 1 !important;
    transform: none !important;
    transition: width 0.2s ease, background-color 0.2s ease;
  }

  body.page-product .weu-product__gallery-slider .splide__pagination__page.is-active {
    width: 1rem !important;
    background: rgba(20, 20, 20, 0.95) !important;
  }

  body.page-product .weu-product__gallery-slider.weu-product__gallery--single .splide__pagination {
    display: none !important;
  }

  body.page-product .weu-product__gallery-item--collectives {
    aspect-ratio: 1 / 1;
    align-self: stretch;
  }

  body.page-product .weu-product__gallery-item--collectives-wide {
    aspect-ratio: auto;
  }

  body.page-product .weu-product-collectives--gallery {
    aspect-ratio: auto;
    height: 100%;
    overflow: hidden;
  }

  body.page-product .weu-product__gallery-item--collectives:not(.weu-product__gallery-item--collectives-wide) .weu-product-collectives--gallery:not(.weu-product-collectives--gallery-wide) {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 575.98px) {
  body.page-product .weu-variant__size-grid {
    grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr));
  }

  body.page-product .weu-variant__size-btn {
    min-height: 3.15rem;
    height: auto;
    font-size: 0.75rem;
    padding: 0.3rem 0.15rem 0.25rem;
  }

  body.page-product .weu-variant__size-delivery {
    font-size: 0.5625rem;
  }
}

/* --- Modal zoom galería (lightbox Joma Sport) --- */
body.page-product #product-modal {
  --weu-modal-toolbar-height: 3.5rem;
  overflow: hidden;
}

/* Evita el salto horizontal al abrir el zoom: el gutter del scroll
   queda reservado aunque Bootstrap ponga overflow:hidden. */
html:has(body.page-product) {
  scrollbar-gutter: stable;
}

html.weu-product-modal-open,
html.weu-product-modal-open body,
body.page-product.modal-open {
  overflow: hidden !important;
}

/* Fijos: no heredar el padding que Bootstrap mete al body */
html.weu-product-modal-open body.page-product .fixed-top,
html.weu-product-modal-open body.page-product .sticky-top,
html.weu-product-modal-open body.page-product .is-fixed,
html.weu-product-modal-open body.page-product .weu-floating-cart,
html.weu-product-modal-open body.page-product #header,
body.page-product.modal-open .fixed-top,
body.page-product.modal-open .sticky-top,
body.page-product.modal-open .weu-floating-cart,
body.page-product.modal-open #header {
  padding-right: var(--weu-modal-scrollbar-comp, 0px) !important;
}

body.page-product #product-modal .modal-dialog {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  align-items: stretch;
}

body.page-product #product-modal .modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

body.page-product #product-modal .weu-product-modal__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  height: var(--weu-modal-toolbar-height);
  padding: 0.75rem 1rem 0.5rem;
}

body.page-product #product-modal .weu-product-modal__progress {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  height: 4px;
}

body.page-product #product-modal .weu-product-modal__progress-segment {
  flex: 1;
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: #e0e0e0;
  transition: height 0.2s ease, background-color 0.2s ease;
}

body.page-product #product-modal .weu-product-modal__progress-segment.is-active {
  height: 4px;
  background: #111;
}

body.page-product #product-modal .weu-product-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
}

body.page-product #product-modal .weu-product-modal__close .jmgx-heroicon {
  width: 1.125rem;
  height: 1.125rem;
}

body.page-product #product-modal .product-images-modal__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 0;
  overflow: hidden;
}

body.page-product #product-modal .product-images-modal__carousel {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100dvh - var(--weu-modal-toolbar-height));
  min-height: calc(100dvh - var(--weu-modal-toolbar-height));
  overflow: hidden;
  border-radius: 0;
  touch-action: pan-y pinch-zoom;
}

body.page-product #product-modal .carousel-inner {
  width: 100%;
  height: 100%;
}

body.page-product #product-modal .carousel-item {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body.page-product #product-modal .carousel-item.active {
  display: flex !important;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
}

body.page-product #product-modal .weu-product-modal__figure,
body.page-product #product-modal .carousel-item picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f5f5f5;
}

body.page-product #product-modal .weu-product-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

body.page-product #product-modal .carousel-control-prev,
body.page-product #product-modal .carousel-control-next {
  display: none;
}

body.page-product #product-modal .weu-product-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.page-product #product-modal .weu-product-modal__nav:hover,
body.page-product #product-modal .weu-product-modal__nav:focus-visible {
  background: #fff;
  border-color: #ccc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  outline: none;
}

body.page-product #product-modal .weu-product-modal__nav--prev {
  left: 0.75rem;
}

body.page-product #product-modal .weu-product-modal__nav--next {
  right: 0.75rem;
}

body.page-product #product-modal .weu-product-modal__nav .jmgx-heroicon {
  width: 1.25rem;
  height: 1.25rem;
}

body.page-product #product-modal .weu-product-modal__progress-segment[data-slide-index] {
  cursor: pointer;
}

@media (min-width: 992px) {
  body.page-product #product-modal .weu-product-modal__nav {
    display: inline-flex;
  }

  body.page-product #product-modal .weu-product-modal__nav--prev {
    left: 1.25rem;
  }

  body.page-product #product-modal .weu-product-modal__nav--next {
    right: 1.25rem;
  }

  /* Modal casi cuadrado: la foto 1:1 (contain) llena el viewport sin bandas laterales grandes. */
  body.page-product #product-modal .modal-dialog {
    max-width: min(92vw, 90vh, 56rem);
    width: min(92vw, 90vh, 56rem);
    min-height: auto;
    height: auto;
    margin: 1.25rem auto;
    align-items: center;
  }

  body.page-product #product-modal .modal-content {
    min-height: min(92vw, 90vh, 56rem);
    height: min(92vw, 90vh, 56rem);
    border-radius: 0.25rem;
  }

  body.page-product #product-modal .product-images-modal__carousel {
    height: calc(min(92vw, 90vh, 56rem) - var(--weu-modal-toolbar-height));
    min-height: calc(min(92vw, 90vh, 56rem) - var(--weu-modal-toolbar-height));
  }
}

/* ==========================================================================
   Opiniones (productcomments) — acordeón + estética Jomagrx
   ========================================================================== */

body.page-product .weu-product__comments {
  margin-top: 0;
}

body.page-product .weu-product-reviews,
body.page-product .product-comments-wrapper {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--weu-color-dark);
}

body.page-product .weu-product-reviews__accordion.accordion-flush {
  --bs-accordion-border-color: var(--weu-color-border);
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 1rem;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0 0 1.25rem;
  width: 100%;
}

body.page-product .weu-product-reviews__accordion .accordion-item,
body.page-product .weu-product-reviews__accordion .accordion-header {
  width: 100%;
  margin: 0;
}

body.page-product .weu-product-reviews__accordion .accordion-item {
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-color: var(--weu-color-border);
}

body.page-product .weu-product-reviews__accordion .accordion-body {
  padding: 0 0 1.25rem;
}

body.page-product .weu-product-reviews__count {
  margin-left: 0.35rem;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
}

body.page-product .weu-product-reviews__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}

body.page-product .weu-product-reviews .comments-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

body.page-product .weu-product-reviews .comments-note .weu-product-review__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

body.page-product .weu-product-reviews .comments-note .weu-product-review__star,
body.page-product .weu-product-reviews .comments-note .jmgx-heroicon {
  width: 1rem;
  height: 1rem;
  color: var(--weu-color-dark, #1d1d1d);
  background-color: currentColor;
}

body.page-product .weu-product-reviews .comments-note .weu-product-review__star.is-empty {
  opacity: 0.28;
}

body.page-product .weu-product-reviews .average-grade,
body.page-product .weu-product-reviews .comments-number {
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--weu-color-dark, #1d1d1d);
}

/* Evitar overlay amarillo del plugin jQuery rating */
body.page-product .weu-product-reviews .comments-note .star-content,
body.page-product .weu-product-rating .star-content {
  display: none !important;
}

body.page-product .weu-product-reviews__cta,
body.page-product #product-comments-list-btn-group {
  margin: 0;
  margin-left: auto;
}

body.page-product .weu-product-reviews .post-product-comment.btn,
body.page-product .weu-product-reviews .post-product-comment.btn-outline-primary {
  border: 0;
  box-shadow: none;
}

body.page-product .weu-product-reviews__list,
body.page-product #product-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--weu-color-border);
}

/* Sin reseñas: ocultar el listado vacío (evita el doble trazo bajo el empty state) */
body.page-product #product-comments-list:not(.has-comments) {
  display: none;
  border: 0;
  margin: 0;
  padding: 0;
}

body.page-product .weu-product-review,
body.page-product .product-comment-list-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 1.25rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--weu-color-border);
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 640px) {
  body.page-product .weu-product-review,
  body.page-product .product-comment-list-item {
    grid-template-columns: minmax(9rem, 11.5rem) minmax(0, 1fr);
    align-items: start;
    padding: 1.35rem 0;
  }
}

body.page-product .weu-product-review__meta,
body.page-product .comment-infos {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

body.page-product .weu-product-review__stars,
body.page-product .weu-product-review .grade-stars,
body.page-product .product-comment-list-item .grade-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  line-height: 1;
}

body.page-product .weu-product-review__star,
body.page-product .weu-product-review__stars .jmgx-heroicon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--weu-color-dark, #1d1d1d);
  background-color: currentColor;
  flex-shrink: 0;
}

body.page-product .weu-product-review__star.is-empty {
  opacity: 0.28;
}

body.page-product .weu-product-review__date,
body.page-product .comment-date {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(29, 29, 29, 0.5);
  white-space: nowrap;
}

body.page-product .weu-product-review__author,
body.page-product .comment-author {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--weu-color-dark);
}

body.page-product .weu-product-review__body,
body.page-product .comment-content {
  min-width: 0;
}

body.page-product .weu-product-review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin: 0 0 0.45rem;
}

body.page-product .weu-product-review__title,
body.page-product .comment-content .h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--weu-color-dark);
}

body.page-product .weu-product-review__text,
body.page-product .comment-content > p:not(.h4) {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(29, 29, 29, 0.78);
}

body.page-product .weu-product-review__actions,
body.page-product .comment-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.page-product .weu-product-review__action,
body.page-product .comment-buttons > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--weu-radius-default);
  color: rgba(29, 29, 29, 0.55);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

body.page-product .weu-product-review__action:hover,
body.page-product .weu-product-review__action:focus-visible,
body.page-product .comment-buttons > a:hover,
body.page-product .comment-buttons > a:focus-visible {
  color: var(--weu-color-blue);
  background: var(--weu-color-blue-soft);
  text-decoration: none;
}

body.page-product .weu-product-review__action .material-icons,
body.page-product .comment-buttons .material-icons {
  font-size: 1.05rem;
  line-height: 1;
  color: inherit;
}

body.page-product .weu-product-review__action .jmgx-heroicon,
body.page-product .comment-buttons .jmgx-heroicon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  background-color: currentColor;
}

body.page-product .comment-verified {
  display: none;
  margin-top: 0.35rem;
}

body.page-product .comment-verified.is-verified {
  display: block;
}

body.page-product .comment-verified__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: #e8f5ec;
  color: #1f7a42;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

body.page-product .comment-verified__badge::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.page-product .weu-product-reviews__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}

body.page-product .weu-product-reviews__empty-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.35rem;
  color: var(--weu-color-dark);
  background-color: currentColor;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

body.page-product .weu-product-reviews__empty-title {
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--weu-color-dark);
  text-align: center;
}

body.page-product .weu-product-reviews__empty-text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(29, 29, 29, 0.55);
}

body.page-product .weu-product-reviews__footer {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  body.page-product .weu-product-review__action,
  body.page-product .comment-buttons > a {
    transition: none;
  }
}
