/* MAYORLED 6.55 — Al igual que en las galerías, las fotografías de PRODUCTOS
   cubren el recuadro de la tarjeta. Se ven completas en la ficha del producto. */

/* INICIO: tarjetas del carrusel Destacados y grillas regulares. */
body .ml-home-2026 .mlp-card .mlp-image-link,
body .ml-home-2026 .mlp-carousel .mlp-card a.mlp-image-link {
  background:#fff!important;overflow:hidden!important;isolation:isolate!important;
}
body .ml-home-2026 .mlp-card .mlp-photo-backdrop,
body .ml-home-2026 .mlp-carousel .mlp-card .mlp-photo-backdrop,
body .ml-home-2026 .mlp-card a.mlp-image-link::after {display:none!important;}
body .ml-home-2026 .mlp-card a.mlp-image-link img.mlp-photo,
body .ml-home-2026 .mlp-card a.mlp-image-link img.mlp-photo-primary,
body .ml-home-2026 .mlp-card a.mlp-image-link img.mlp-photo-secondary,
body .ml-home-2026 .mlp-card .mlp-image-link img {
  display:block!important;width:100%!important;height:100%!important;
  min-height:0!important;max-height:100%!important;min-width:0!important;max-width:100%!important;
  object-fit:cover!important;object-position:center center!important;
  margin:0!important;padding:0!important;background:transparent!important;
  border:0!important;border-radius:0!important;
}
/* Las imágenes alternativas siguen respetando el hover y no aparecen antes de cargar. */

/* CATÁLOGO: grillas nativas Electro/WooCommerce (tienda, categorías, filtros). */
body.ml15-catalog .site-content ul.products > li.product :is(.product-thumbnail,.product-loop-image,.product-item__thumbnail,.product-image),
body.woocommerce-shop .site-content ul.products > li.product :is(.product-thumbnail,.product-loop-image,.product-item__thumbnail,.product-image),
body.tax-product_cat .site-content ul.products > li.product :is(.product-thumbnail,.product-loop-image,.product-item__thumbnail,.product-image),
body.tax-product_tag .site-content ul.products > li.product :is(.product-thumbnail,.product-loop-image,.product-item__thumbnail,.product-image) {
  display:block!important;position:relative!important;
  width:100%!important;height:205px!important;min-height:205px!important;max-height:205px!important;
  margin:0 0 9px!important;padding:0!important;overflow:hidden!important;background:#fff!important;
  border-radius:9px!important;
}
body:is(.ml15-catalog,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .site-content ul.products > li.product :is(.product-thumbnail,.product-loop-image,.product-item__thumbnail,.product-image) img,
body:is(.ml15-catalog,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .site-content ul.products > li.product a.woocommerce-LoopProduct-link > img,
body:is(.ml15-catalog,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .site-content ul.products > li.product a.woocommerce-loop-product__link > img {
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:cover!important;object-position:center center!important;
  padding:0!important;margin:0!important;background:#fff!important;
  border-radius:0!important;
}
/* Fallback de productos con foto directamente bajo el enlace: sin inflar la fila. */
body:is(.ml15-catalog,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .site-content ul.products > li.product a.woocommerce-LoopProduct-link > img,
body:is(.ml15-catalog,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .site-content ul.products > li.product a.woocommerce-loop-product__link > img {
  height:205px!important;max-height:205px!important;display:block!important;
}

/* OFERTAS y RELACIONADOS: las tarjetas personalizadas respetan su altura uniforme. */
body.single-product .site-content :is(.ml34-replacement-grid,.ml47-offer-grid,.ml35-offers-grid) .ml34-card-media {
  overflow:hidden!important;background:#fff!important;padding:0!important;
}
body.single-product .site-content :is(.ml34-replacement-grid,.ml47-offer-grid,.ml35-offers-grid) .ml34-card-media img:is(.ml34-card-image,.ml34-card-image-alt,.ml36-second-image) {
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center center!important;
  margin:0!important;padding:0!important;background:transparent!important;
}
/* Imágenes del fallback nativo, sin afectar la imagen principal del producto. */
body.single-product .site-content :is(.related.products,.upsells.products) li.product :is(.product-thumbnail,.product-loop-image,.product-item__thumbnail,.product-image) {
  overflow:hidden!important;background:#fff!important;padding:0!important;
}
body.single-product .site-content :is(.related.products,.upsells.products) li.product :is(.product-thumbnail,.product-loop-image,.product-item__thumbnail,.product-image) img {
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:cover!important;object-position:center!important;
  padding:0!important;margin:0!important;
}
/* Se evita tocar .woocommerce-product-gallery: ahí el cliente ve la foto completa. */

/* MINI CARRITO (Electro/WooCommerce): diseño global, anclado al encabezado. */
body .ml44-mini-panel {
  box-sizing:border-box!important;
  width:min(420px,calc(100vw - 24px))!important;
  min-width:0!important;max-width:calc(100vw - 24px)!important;
  padding:17px!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 18px 45px rgba(11,35,61,.21)!important;
  overflow-x:hidden!important;
  max-height:min(78dvh,680px)!important;
  overflow-y:auto!important;
  /* Compensa automáticamente, mediante JS, el desborde horizontal del menú. */
  translate:var(--ml55-panel-shift,0px) 0!important;
}
body .ml44-mini-panel .widget_shopping_cart_content,
body .ml44-mini-panel .woocommerce-mini-cart,
body .ml44-mini-panel .cart_list.product_list_widget {
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
}
body .ml44-mini-panel .woocommerce-mini-cart li,
body .ml44-mini-panel .cart_list li.mini_cart_item {
  min-width:0!important;max-width:100%!important;white-space:normal!important;
  padding:11px 23px 13px 0!important;
}
body .ml44-mini-panel li.mini_cart_item > a:not(.remove),
body .ml44-mini-panel li.woocommerce-mini-cart-item > a:not(.remove) {
  display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;
  column-gap:12px!important;align-items:start!important;
  min-width:0!important;max-width:100%!important;
  font-size:13px!important;line-height:1.4!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
body .ml44-mini-panel li.mini_cart_item > a:not(.remove) img,
body .ml44-mini-panel li.woocommerce-mini-cart-item > a:not(.remove) img {
  box-sizing:border-box!important;width:68px!important;height:68px!important;
  max-width:68px!important;max-height:68px!important;
  border-radius:9px!important;object-fit:cover!important;
}
body .ml44-mini-panel li .quantity,
body .ml44-mini-panel li .variation {margin-left:80px!important;max-width:calc(100% - 80px)!important;}
body .ml44-mini-panel :is(p.total,.woocommerce-mini-cart__total) {
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  width:100%!important;padding:14px 0!important;overflow:visible!important;
}
body .ml44-mini-panel :is(p.total,.woocommerce-mini-cart__total) > strong {flex:1 1 auto!important;min-width:0!important;}
body .ml44-mini-panel :is(p.total,.woocommerce-mini-cart__total) .amount {
  flex:0 0 auto!important;white-space:nowrap!important;font-size:16px!important;
  font-variant-numeric:tabular-nums!important;
}
body .ml44-mini-panel :is(p.buttons,.woocommerce-mini-cart__buttons) {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;
  padding:6px 0 0!important;min-width:0!important;width:100%!important;
}
body .ml44-mini-panel :is(p.buttons,.woocommerce-mini-cart__buttons) > a {
  box-sizing:border-box!important;display:flex!important;justify-content:center!important;align-items:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;
  padding:9px 7px!important;font-size:12px!important;line-height:1.3!important;
  text-align:center!important;white-space:normal!important;overflow-wrap:break-word!important;
}
body .ml44-mini-panel :is(p.buttons,.woocommerce-mini-cart__buttons) > a.checkout {
  background:#ffcf18!important;border-color:#ffcf18!important;color:#0d2a47!important;
}
body .ml44-mini-panel a:focus-visible {outline:2px solid #125886!important;outline-offset:2px!important;}
@media(max-width:840px){
  body:is(.ml15-catalog,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .site-content ul.products > li.product :is(.product-thumbnail,.product-loop-image,.product-item__thumbnail,.product-image),
  body:is(.ml15-catalog,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .site-content ul.products > li.product a.woocommerce-LoopProduct-link > img,
  body:is(.ml15-catalog,.woocommerce-shop,.tax-product_cat,.tax-product_tag) .site-content ul.products > li.product a.woocommerce-loop-product__link > img {height:178px!important;min-height:178px!important;max-height:178px!important;}
}
@media(max-width:520px){
  body .ml44-mini-panel {width:min(400px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;padding:13px!important;max-height:75dvh!important;}
  body .ml44-mini-panel li.mini_cart_item > a:not(.remove),body .ml44-mini-panel li.woocommerce-mini-cart-item > a:not(.remove){grid-template-columns:62px minmax(0,1fr)!important;gap:9px!important;font-size:12px!important;}
  body .ml44-mini-panel li.mini_cart_item > a:not(.remove) img,body .ml44-mini-panel li.woocommerce-mini-cart-item > a:not(.remove) img{width:62px!important;height:62px!important;max-width:62px!important;max-height:62px!important;}
  body .ml44-mini-panel li .quantity,body .ml44-mini-panel li .variation{margin-left:71px!important;max-width:calc(100% - 71px)!important;}
  body .ml44-mini-panel :is(p.total,.woocommerce-mini-cart__total) .amount {font-size:15px!important;}
}
@media(max-width:350px){
 body .ml44-mini-panel :is(p.buttons,.woocommerce-mini-cart__buttons){grid-template-columns:minmax(0,1fr)!important;}
}
