/* Ficha producto: breadcrumb arriba, ~70% de ancho, título en una línea. */

body.single-product .ed-product-topbar {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

body.single-product .ed-product-topbar .woocommerce-breadcrumb,
body.single-product .ed-product-topbar nav.ed-cat-bc {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.35;
  text-transform: none !important;
  letter-spacing: 0;
}

body.single-product .ed-product-topbar .ed-back-catalog {
  margin: 0;
  flex: 0 0 auto;
}

@media only screen and (max-width: 899px) {
  body.single-product .ed-product-topbar {
    padding: 8px 16px 12px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }
}

@media only screen and (min-width: 900px) {
  body.single-product #main > .container:has(.ed-product-topbar),
  body.single-product .product-container,
  body.single-product .product-main,
  body.single-product .product-footer > .container {
    width: 70%;
    min-width: min(1100px, calc(100vw - 48px));
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }

  body.single-product .product-gallery.col.large-6 {
    flex: 0 0 42% !important;
    max-width: 42% !important;
    width: 42% !important;
  }

  body.single-product .product-info.summary {
    flex: 1 1 58% !important;
    max-width: 58% !important;
    width: auto !important;
    min-width: 0;
  }

  body.single-product #product-sidebar,
  body.single-product .product-sidebar-small {
    display: none !important;
  }

  body.single-product .product-info .product-title,
  body.single-product .product-info h1.product-title,
  body.single-product .product-summary h1 {
    font-size: clamp(1.4rem, 1.7vw, 2rem);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Favoritos en ficha: el nativo va en image-tools con show-on-hover.
 * En shop/grilla el hook ya está removido. Acá se ve siempre, con estado. */
body.single-product .product-images.has-hover .image-tools.absolute.top.show-on-hover {
  opacity: 1;
  pointer-events: auto;
}

body.single-product .product-images .wishlist-button.button.is-outline {
  background: #fff;
  border: 2px solid var(--fs-color-secondary);
  color: var(--fs-color-secondary);
  box-shadow: 0 2px 10px rgba(13, 27, 42, 0.14);
}

body.single-product .product-images .wishlist-button.button.is-outline:hover,
body.single-product .product-images .image-tools .wishlist-button:hover {
  background: #fff;
  border-color: var(--fs-color-secondary);
  color: var(--fs-color-secondary);
}

body.single-product .product-images .wishlist-button.button.wishlist-added,
body.single-product .product-images .wishlist-button.button.is-outline.wishlist-added,
body.single-product .product-images .wishlist-button.button.wishlist-added:hover,
body.single-product .product-images .image-tools .wishlist-button.wishlist-added:hover {
  background: var(--fs-color-primary);
  border-color: var(--fs-color-primary);
  color: var(--fs-color-secondary);
}

/* Tooltip de una línea, no el inglés aplastado. */
body.single-product .wishlist-popup,
body.single-product .wishlist-popup.dark {
  white-space: nowrap !important;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  padding: 7px 12px !important;
}
body.single-product .wishlist-popup a,
body.single-product .wishlist-popup .yith-wcwl-add-to-wishlist a,
body.single-product .wishlist-popup .add_to_wishlist,
body.single-product .wishlist-popup span {
  white-space: nowrap !important;
  display: inline !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.product-small .ed-ship-badge {
  display: none !important;
}
.product-small .box-text {
  padding: 12px 14px 14px !important;
}
.product-small .ed-ship-hint,
.ed-ship-hint {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.ed-ship-hint--fast {
  color: #1f7a38;
}
.ed-ship-hint--coord {
  color: #b45309;
}

/* Variaciones: sin caret de Edge en swatches; color agotado visible. */
body.single-product .ux-swatch,
body.single-product .ux-swatch * {
  caret-color: transparent !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
body.single-product .ux-swatch {
  outline: none;
}
body.single-product .ux-swatch:focus-visible {
  box-shadow: 0 0 0 2px #0d1b2a;
}
body.single-product .ux-swatch__text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
body.single-product .ux-swatch.ed-swatch-oos {
  opacity: 0.42;
}
body.single-product .ux-swatch.ed-swatch-oos .ux-swatch__color {
  position: relative;
}
body.single-product .ux-swatch.ed-swatch-oos .ux-swatch__color::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  border-top: 2px solid #4b5563;
  transform: rotate(-32deg);
  pointer-events: none;
}
body.single-product .ed-oos-notice {
  margin: 12px 0 4px;
  padding: 10px 12px;
  background: #f8f0f0;
  border-left: 4px solid #c62828;
  color: #0d1b2a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
body.single-product .ed-oos-notice[hidden] {
  display: none !important;
}
body.single-product form.ed-variation-oos .variations_button {
  display: none !important;
}


/* Galería ficha: 1:1 sin romper Flickity (no aspect-ratio en el wrapper). */
body.single-product .woocommerce-product-gallery__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
body.single-product .woocommerce-product-gallery__image > a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body.single-product .woocommerce-product-gallery__image img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
