/* Master Gamer Fusion v1.1.0 — Solo estilos, sin modificar WooCommerce.
   Alcance activado desde MG Tema y Diseño; soporta fichas y widgets Elementor.
   Evita alturas absolutas o alterar el número de columnas de los listados. */
:root { --mgf-css-active: v1-2-0; }

/* Producto individual: los títulos y los precios pueden estar en los widgets
   WooCommerce clásicos, en Elementor o en la plantilla del tema. */
body.mgtd-fusion-single :is(
  .woocommerce div.product h1.product_title,
  .woocommerce div.product .product_title,
  h1.product_title,
  .elementor-widget-woocommerce-product-title h1,
  .elementor-widget-theme-post-title h1,
  .entry-summary h1.product_title
) {
  color:#1b241c !important; font-size:clamp(18px,2vw,24px) !important;
  font-weight:750 !important; line-height:1.23 !important;
  overflow-wrap:anywhere; text-wrap:balance; letter-spacing:0 !important;
  margin-bottom:12px !important;
}
body.mgtd-fusion-single :is(
  .woocommerce-product-gallery,
  .elementor-widget-woocommerce-product-images .woocommerce-product-gallery,
  .woocommerce div.product div.images
) { min-width:0; }
body.mgtd-fusion-single :is(
  .woocommerce-product-gallery img,
  .elementor-widget-woocommerce-product-images img,
  .woocommerce div.product div.images img
) { max-width:100%; height:auto; border-radius:7px; }
body.mgtd-fusion-single :is(
  .woocommerce div.product .summary .price,
  .woocommerce div.product .summary p.price,
  .elementor-widget-woocommerce-product-price .price,
  .entry-summary > .price,
  .woocommerce div.product p.price
) {
  color:#217b29 !important;
  font-weight:800 !important; letter-spacing:normal !important;
  line-height:1.25 !important; overflow-wrap:anywhere;
}
body.mgtd-fusion-single :is(
  .woocommerce div.product form.cart .single_add_to_cart_button,
  .elementor-widget-woocommerce-product-add-to-cart form.cart .single_add_to_cart_button,
  .entry-summary form.cart button.single_add_to_cart_button,
  form.cart button.single_add_to_cart_button
):not(:disabled):not(.disabled) {
  background:#216e29 !important; color:#fff !important;
  border:1px solid #1b6324 !important; border-radius:5px !important;
  min-height:36px; font-weight:700; box-shadow:none;
}
body.mgtd-fusion-single :is(
  .woocommerce div.product form.cart .single_add_to_cart_button,
  .elementor-widget-woocommerce-product-add-to-cart form.cart .single_add_to_cart_button
):not(:disabled):not(.disabled):hover {
  background:#17551f !important;
}
body.mgtd-fusion-single :is(.woocommerce div.product .quantity input.qty,
  .elementor-widget-woocommerce-product-add-to-cart input.qty) {
  border:1px solid #b4c3b3; border-radius:5px; min-height:36px;
}
/* Descripción: no alterar acordeones personalizados ni su JS. */
body.mgtd-fusion-single :is(.woocommerce-Tabs-panel--description,
  .elementor-widget-woocommerce-product-content, .woocommerce-tabs .panel) {
  line-height:1.55; overflow-wrap:anywhere;
}
body.mgtd-fusion-single :is(.woocommerce-tabs,.entry-summary) details > summary {
  border-radius:6px; cursor:pointer;
}

/* Relacionados y categorías: tarjetas uniformes sin cambiar columnas del tema. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) :is(
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  ul.products li.product,
  .elementor-widget-woocommerce-products ul.products li.product,
  .elementor-widget-woocommerce-product-related ul.products li.product
) {
  box-sizing:border-box; display:flex; flex-direction:column; align-items:stretch;
  min-width:0; padding:7px 7px 9px !important;
  border:1px solid #e0e9df !important; border-radius:8px !important;
  background:#fff; box-shadow:0 2px 9px rgba(20,42,25,.05);
  transition:box-shadow .16s ease,border-color .16s ease;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product:hover,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product:focus-within {
  border-color:#94c69b !important;
  box-shadow:0 3px 12px rgba(30,73,31,.13);
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product > :is(
  a.woocommerce-loop-product__link,a.woocommerce-LoopProduct-link) {
  display:flex; flex-direction:column; min-width:0; flex:1 1 auto;
  text-decoration:none;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product :is(
  img,.attachment-woocommerce_thumbnail) {
  display:block; max-width:100%; height:auto; object-fit:contain; border-radius:4px;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product :is(
  h2.woocommerce-loop-product__title,h3.woocommerce-loop-product__title,
  .woocommerce-loop-product__title,.product-title) {
  color:#263529 !important;
  font-size:clamp(11px,.95vw,13px) !important;
  line-height:1.34 !important; font-weight:700 !important;
  letter-spacing:0 !important; overflow-wrap:anywhere;
  display:-webkit-box; -webkit-box-orient:vertical;
  -webkit-line-clamp:var(--mgf-title-lines,4);
  line-clamp:var(--mgf-title-lines,4);
  overflow:hidden; min-height:calc(1.34em * var(--mgf-title-lines,4));
  margin:7px 0 !important; padding:0 !important; text-align:center;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product :is(
  .price,.woocommerce-Price-amount) {
  color:#21772d !important; font-weight:800 !important;
  font-size:clamp(12px,1vw,16px) !important;
  letter-spacing:0 !important; text-align:center;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product .price {
  display:block; margin-top:auto !important; margin-bottom:8px !important;
  line-height:1.3;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product > :is(
  a.button,button.button,a.add_to_cart_button,a.product_type_simple,a.product_type_variable) {
  align-self:stretch; display:inline-flex; align-items:center; justify-content:center;
  min-height:34px; padding:7px 6px !important; margin:0 0 5px !important;
  border:1px solid #1b6225 !important; border-radius:5px !important;
  background:#236e2a !important; color:#fff !important;
  font-size:11px !important; font-weight:700; line-height:1.2;
  white-space:normal; text-decoration:none; box-shadow:none;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product > :is(
  a.button,button.button,a.add_to_cart_button):hover {
  background:#17571f !important;
}
/* No alterar la conducta de los plugins de favoritos. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product > :is(
  .tinv-wraper,.yith-wcwl-add-to-wishlist,.yith-wcwl-wishlistaddedbrowse,
  .yith-wcwl-wishlistexistsbrowse) {
  box-sizing:border-box; width:100%; max-width:100%; margin-inline:0;
}
body.mgtd-fusion-related :is(.related.products,.up-sells.products) > h2,
body.mgtd-fusion-archive :is(.woocommerce-products-header__title,.page-title) {
  color:#1b251c !important; font-size:clamp(18px,2vw,25px) !important;
  font-weight:750 !important; line-height:1.2 !important;
  padding-bottom:10px !important; margin-bottom:14px !important;
  border-bottom:1px solid #d5e3d4 !important;
  background:linear-gradient(var(--mgf-accent,#26852d),var(--mgf-accent,#26852d)) left bottom/70px 2px no-repeat;
}
body.mgtd-fusion-archive .woocommerce-ordering select {
  max-width:100%; border:1px solid #bfd2bf; border-radius:6px;
  min-height:36px; padding:8px 10px; background:#f8faf8; color:#26372b;
}
body.mgtd-fusion-archive nav.woocommerce-pagination ul.page-numbers {
  display:flex; gap:5px; flex-wrap:wrap; justify-content:center; border:0;
}
body.mgtd-fusion-archive nav.woocommerce-pagination ul.page-numbers li { border:0; }
body.mgtd-fusion-archive nav.woocommerce-pagination ul.page-numbers li :is(a,span) {
  padding:8px 11px; border:1px solid #cbdcc9; border-radius:5px;
}
body.mgtd-fusion-archive nav.woocommerce-pagination ul.page-numbers li .current {
  color:#fff; background:#216d29; border-color:#216d29;
}
body.mgtd-fusion-compact:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product {
  padding:5px 5px 7px !important;
}
@media(max-width:767px) {
  body.mgtd-fusion-single :is(.product_title,.elementor-widget-woocommerce-product-title h1) {
    font-size:18px !important;
  }
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product :is(
    h2.woocommerce-loop-product__title,.woocommerce-loop-product__title,.product-title) {
    font-size:11px !important; line-height:1.3 !important;
    min-height:calc(1.3em * var(--mgf-title-lines,4));
  }
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product .price {
    font-size:12px !important;
  }
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product > .button {
    font-size:10px !important; min-height:32px;
  }
}


/* === MG FUSION WHITE v1.2 · catálogo / búsqueda / relacionados === */
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) {
  background:#fff;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product {
  border:1px solid #dae5d9 !important;
  background:#fff !important;
  border-radius:8px !important;
  box-shadow:0 2px 5px rgba(27,38,29,.07) !important;
  padding:6px !important;
  margin-bottom:10px !important;
  gap:0 !important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product:is(:hover,:focus-within) {
  border-color:var(--mgf-accent,#26852d) !important;
  box-shadow:0 1px 12px rgba(42,131,53,.14) !important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product > a.woocommerce-LoopProduct-link,
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product > a.woocommerce-loop-product__link {
  margin:0!important;
  text-decoration:none!important;
  min-width:0;
  flex:1 1 auto;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product img.attachment-woocommerce_thumbnail,
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product > a img,
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product .woocommerce-loop-product__link img {
  width:100%!important;
  height:auto;
  object-fit:contain!important;
  object-position:center;
  background:#f8f9f8;
  border-radius:5px;
  margin:0 0 4px!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product h2.woocommerce-loop-product__title,
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product .woocommerce-loop-product__title {
  color:#202a21!important;
  font-size:clamp(11px,1vw,13px)!important;
  line-height:1.32!important;
  min-height:calc(var(--mgf-title-lines,3)*1.32em);
  overflow-wrap:anywhere;
  font-weight:700!important;
  margin:3px 0!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product .price {
  color:#197927!important;
  line-height:1.2!important;
  font-size:clamp(12px,1.1vw,15px)!important;
  font-weight:800!important;
  margin:4px 0 6px!important;
  padding:0;
}
/* Solo tras mover las acciones originales: no forzar ocultación si falta JS. */
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready .mgf-actions {
  display:flex!important;
  align-items:stretch;
  justify-content:center;
  gap:4px;
  width:100%;
  min-width:0;
  padding-top:5px;
  margin-top:auto;
  border-top:1px solid #e1e8df;
  box-sizing:border-box;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions > .mgf-action,
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-moved-control {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:33px!important;
  min-height:33px!important;
  padding:0 2px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border-radius:5px!important;
  border:1px solid #cbd6ca!important;
  background:#f5f7f5!important;
  color:#243e27!important;
  font-size:0!important;
  line-height:1!important;
  box-shadow:none!important;
  text-decoration:none!important;
  text-indent:0!important;
  position:relative!important;
  transform:none!important;
  inset:auto!important;
  white-space:nowrap!important;
  opacity:1!important;
  visibility:visible!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions > .mgf-action:hover,
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-moved-control:focus-within {
  border-color:var(--mgf-accent,#26852d)!important;
  color:#176523!important;
  background:#eaf5e9!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions a.mgf-action-whatsapp {
  background:#25d366!important;
  border-color:#19ad50!important;
  color:#fff!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions a.mgf-action-whatsapp:hover {
  background:#19b957!important;
  color:#fff!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-action-svg {
  display:block!important;
  flex:0 0 auto!important;
  width:18px!important;
  height:18px!important;
  max-width:18px!important;
  min-width:18px!important;
  margin:auto!important;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:none!important;
}
/* Etiquetas originales permanecen en el DOM, pero los botones se muestran solo como iconos. */
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-moved-control :is(a,button) {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;color:inherit!important;
  border-radius:4px!important; box-shadow:none!important;
  font-size:0!important;line-height:1!important;
  text-decoration:none!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-moved-control :is(a,button) :not(svg):not(path):not(circle) {
  font-size:0!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-moved-control::before,
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-moved-control :is(a,button)::before {
  display:none!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-moved-control :is(.tinv-wishlist,.yith-wcwl-add-button,.yith-wcwl-wishlistexistsbrowse,.yith-wcwl-wishlistaddedbrowse) {
  display:flex!important; align-items:center!important; justify-content:center!important;
  min-height:0!important; margin:0!important; padding:0!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .add_to_cart_button:not(.mgf-moved-control) {
  display:none!important;
}
/* No modificar el contenido ni los enlaces del carrusel original */
body :is(.mgcp-shell,.wpcp-carousel-wrapper,.swiper,.slick-slider) .mgf-actions {display:none!important;}

/* === Cabecera de categorías/tienda/búsqueda: blanca y mucho más compacta === */
body.mgtd-fusion-header :is(.woocommerce-products-header,.woocommerce-products-header__title,.page-title) {
  margin-top:0!important;
  margin-bottom:5px!important;
  padding-bottom:4px!important;
}
body.mgtd-fusion-header .mgf-catalog-controls {
  display:flex;align-items:center;justify-content:flex-end;
  width:100%;max-width:100%;margin:2px 0 11px;padding:0;
  background:transparent;border:0;box-sizing:border-box;
}
body.mgtd-fusion-header form.mgf-catalog-search {
  display:flex;align-items:center;gap:4px;
  width:min(100%,310px); margin:0!important;
  border:1px solid #d5dfd4;border-radius:7px;background:#f7f9f7;
  padding:3px;box-sizing:border-box;
}
body.mgtd-fusion-header .mgf-catalog-search input[type="search"] {
  flex:1 1 auto;min-width:0;width:100%;background:transparent!important;
  height:32px;min-height:32px;margin:0!important;padding:4px 7px!important;
  border:0!important;border-radius:5px;color:#222c24!important;
  box-shadow:none!important;font-size:13px!important;
}
body.mgtd-fusion-header .mgf-catalog-search button[type="submit"] {
  display:flex!important;align-items:center;justify-content:center;
  width:34px;height:32px;flex:0 0 34px;
  border:0!important;border-radius:5px!important;
  background:#23752b!important;color:#fff!important;margin:0!important;padding:0!important;
}
body.mgtd-fusion-header .mgf-catalog-search button svg {
  display:block;width:18px;height:18px;stroke:currentColor;fill:none;
}
body.mgtd-fusion-hide-sorting :is(.woocommerce-ordering,.woocommerce-result-count,.gridlist-toggle,.gridlist-toggle-wrapper,.berocket_lgv_widget,.wppp-select,.per-page,.products-per-page,.woocommerce-products-per-page) {
  display:none!important;
}
/* El navegador puede conservar un widget de ordenación debajo del menú flotante;
   nunca debe recibir toques mientras la búsqueda del menú esté abierta. */
body.mg-v5-overlay-open :is(.woocommerce-ordering,.woocommerce-result-count,.gridlist-toggle,.gridlist-toggle-wrapper) {
  pointer-events:none!important;
}
/* Botones Cargar más de plugins populares: estilo, sin interferir con JS AJAX */
body.mgtd-fusion-loadmore :is(.alm-load-more-btn,.yith-infs-button,.lmp_button,.woocommerce-load-more,.load-more-products,.load-more-button,.berocket_load_more_button,.wpcp-load-more-btn,button.load-more-products,a.load-more-products) {
  display:inline-flex!important;align-items:center;justify-content:center;
  width:auto!important;max-width:95%;min-width:170px;
  min-height:37px!important;padding:8px 15px!important;margin:16px auto!important;
  border:1px solid #2c963a!important;border-radius:7px!important;
  background:#f4fbf3!important;color:#25762c!important;
  font-weight:750!important;font-size:13px!important;
  box-shadow:none!important;text-decoration:none!important;
}
body.mgtd-fusion-loadmore :is(.alm-load-more-btn,.yith-infs-button,.lmp_button,.woocommerce-load-more,.load-more-products,.load-more-button,.berocket_load_more_button,.wpcp-load-more-btn):hover {
  background:#e4f5e0!important;border-color:#22782b!important;
}
/* Pie original reutilizado desde la Biblioteca de medios */
#mgtd-global-footer-image.mgf-global-footer {
  display:block;width:min(100%,1200px);max-width:100%;
  margin:32px auto 0;padding:0 10px 12px;box-sizing:border-box;
  background:transparent;clear:both;text-align:center;
}
#mgtd-global-footer-image .mgf-global-footer-image {
  display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin:0 auto;
}
@media(max-width:767px) {
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product {padding:5px!important;}
  body.mgtd-fusion-actions ul.products li.product .mgf-actions {gap:3px;padding-top:4px;}
  body.mgtd-fusion-actions ul.products li.product .mgf-actions > .mgf-action {height:30px!important;min-height:30px!important;}
  body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-action-svg {width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;}
  body.mgtd-fusion-header form.mgf-catalog-search {width:min(100%,260px);}
  body.mgtd-fusion-header .mgf-catalog-controls {margin-top:3px;margin-bottom:8px;}
}
/* En productos variables, "Leer más" queda representado por el icono de ojo.
   No eliminar el enlace, ya que Elementor/WooCommerce pueden reutilizarlo. */
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > a.product_type_variable:not(.mgf-moved-control),
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > a.product_type_grouped:not(.mgf-moved-control),
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > a.product_type_external:not(.mgf-moved-control) {
  display:none!important;
}


/* === v1.3.0 — cuadrículas unificadas, sin alterar WP Carousel === */
body.mgtd-fusion-archive, body.mgtd-fusion-related {background:#fff;}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product {
  display:flex!important; flex-direction:column!important;
  align-items:stretch!important; justify-content:flex-start!important;
  padding:5px!important; border:1px solid #dfe6dc!important;
  border-radius:7px!important; background:#fff!important;
  box-shadow:0 1px 5px rgba(25,45,24,.08)!important;
  overflow:hidden; margin-bottom:10px!important; gap:0!important;
}
/* Ancho natural, fotografía protagonista y altura máxima coherente con
   el tamaño que muestran las tarjetas del carrusel original. */
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product > :is(a.woocommerce-loop-product__link,a.woocommerce-LoopProduct-link) {
  display:flex!important; flex-direction:column!important; min-width:0;
  width:100%; min-height:0!important; flex:0 1 auto!important; margin:0!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(img.attachment-woocommerce_thumbnail,.woocommerce-loop-product__link img,.woocommerce-LoopProduct-link img) {
  display:block!important; width:100%!important;
  height:clamp(130px,18vw,225px)!important;
  max-height:225px!important; aspect-ratio:auto!important;
  object-fit:contain!important; object-position:center!important;
  background:#f7f8f7!important; border-radius:5px!important;
  margin:0 0 4px!important; padding:0!important;
}
body.mgtd-fusion-related ul.products li.product :is(img.attachment-woocommerce_thumbnail,.woocommerce-loop-product__link img,.woocommerce-LoopProduct-link img) {
  height:clamp(120px,15vw,174px)!important; max-height:174px!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(.woocommerce-loop-product__title,h2.woocommerce-loop-product__title) {
  display:-webkit-box!important; -webkit-box-orient:vertical!important;
  -webkit-line-clamp:var(--mgf-title-lines,3)!important;
  line-clamp:var(--mgf-title-lines,3)!important;
  overflow:hidden!important; min-height:0!important;
  font-size:clamp(11px,.95vw,13px)!important; line-height:1.30!important;
  color:#202a21!important; margin:3px 2px 4px!important; padding:0!important;
  text-align:center!important; font-weight:700!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product .price {
  display:block!important; font-weight:800!important;
  color:#197927!important; text-align:center!important;
  font-size:clamp(12px,1.1vw,15px)!important;
  margin:0 0 4px!important; padding:0!important;
  line-height:1.2!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product .price .woocommerce-Price-amount {color:inherit!important;}
/* Reducir el gran hueco causado por los precios / enlaces flex estirados. */
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(a.woocommerce-loop-product__link,a.woocommerce-LoopProduct-link) .price {margin-top:0!important;}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions {
  display:flex!important; flex:0 0 auto!important;
  width:100%!important; min-height:35px!important;
  margin-top:auto!important; gap:4px!important;
  padding:5px 0 0!important; border-top:1px solid #e7eee5!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > :is(.mgf-action,.mgf-moved-control) {
  flex:1 1 0!important; position:relative!important; display:flex!important;
  align-items:center!important; justify-content:center!important;
  padding:0!important; min-width:0!important; width:auto!important;
  height:32px!important; min-height:32px!important; max-height:32px!important;
  border:1px solid #cad8c8!important; border-radius:5px!important;
  background:#f5f7f5!important; color:#29472c!important;
  font-size:0!important; text-decoration:none!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > .mgf-action-whatsapp {
  background:#25d366!important;color:#fff!important;border-color:#1bb456!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-visible-icon {
  pointer-events:none!important;position:absolute!important;inset:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  z-index:12!important;opacity:1!important;visibility:visible!important;
  background:transparent!important; margin:0!important; padding:0!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-visible-icon .mgf-action-svg {
  display:block!important; width:18px!important;height:18px!important;
  stroke:#29472c!important;visibility:visible!important; opacity:1!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-has-favorite .mgf-redundant-favorite {display:none!important;}
/* Icono del plugin eliminado visualmente solo cuando hay otro control
   auténtico ya trasladado a la barra inferior. */
body.mgtd-fusion-actions ul.products li.product.mgf-has-favorite :is(.wishlist-icon,.product-favorite,.wishlist-button,.wishlist-btn):not(.mgf-moved-control) {display:none!important;}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > :is(a.product_type_variable,a.product_type_grouped,a.product_type_external):not(.mgf-moved-control) {display:none!important;}
/* Archivos y categorías: título y búsqueda en UNA barra. */
body.mgtd-fusion-header .mgf-catalog-topbar {
  width:100%;display:flex!important;flex-wrap:wrap;align-items:center;
  justify-content:space-between;gap:9px; margin:3px 0 10px!important;
  padding:0!important;background:transparent!important;border:0!important;
}
body.mgtd-fusion-header .mgf-catalog-topbar :is(h1,.page-title,.woocommerce-products-header__title) {
  flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:0 0 4px!important;
  font-size:clamp(19px,2.1vw,26px)!important;line-height:1.25!important;
  font-weight:750!important;text-align:left!important;
  background:linear-gradient(var(--mgf-accent,#26852d),var(--mgf-accent,#26852d)) left bottom/60px 2px no-repeat!important;
}
body.mgtd-fusion-header .mgf-catalog-topbar form.mgf-catalog-search {
  flex:0 0 276px!important;width:min(100%,276px)!important;
  min-width:0!important;margin:0!important;height:36px!important;
}
body.mgtd-fusion-hide-sorting .mgf-old-archive-control {display:none!important;}
body.mgtd-fusion-hide-sorting :is(.woocommerce-ordering,.woocommerce-result-count,.gridlist-toggle,.gridlist-toggle-wrapper,.products-per-page,.woocommerce-products-per-page,.woocommerce-perpage,.wppp-select,.per-page,.shop-view-select,.grid-list-buttons,.grid-list-switcher) {display:none!important;}
@media(max-width:767px) {
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(img.attachment-woocommerce_thumbnail,.woocommerce-loop-product__link img,.woocommerce-LoopProduct-link img) {
    height:clamp(124px,39vw,196px)!important; max-height:196px!important;
  }
  body.mgtd-fusion-related ul.products li.product :is(img.attachment-woocommerce_thumbnail,.woocommerce-loop-product__link img,.woocommerce-LoopProduct-link img) {
    height:clamp(112px,38vw,168px)!important; max-height:168px!important;
  }
  body.mgtd-fusion-header .mgf-catalog-topbar {gap:6px;margin-bottom:7px!important;}
  body.mgtd-fusion-header .mgf-catalog-topbar form.mgf-catalog-search {flex:1 1 100%!important;width:100%!important;}
  body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-visible-icon .mgf-action-svg {width:16px!important;height:16px!important;}
}

body.mgtd-fusion-hide-sorting .mgf-empty-old-controls {display:none!important; margin:0!important;padding:0!important;}
body.mgtd-fusion-loadmore .mgf-loadmore-button {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:8px 15px!important;min-height:35px!important;min-width:170px;
  border:1px solid #278333!important;border-radius:7px!important;
  background:#f2fbf1!important;color:#24782d!important;
  font-weight:750!important;letter-spacing:0!important;
}


/* ===========================================================================
   MG FUSION WHITE 1.4.0 — v1.3.6
   Diseño validado: sitio BLANCO y tarjetas BLANCAS, borde/sombra GRAFITO.
   6 productos por fila en PC. No tocar WP Carousel, menú ni Elementor.
   =========================================================================== */
:root { --mgf-css-active:v1-4-0; }
body.mgtd-fusion-archive,
body.mgtd-fusion-related { background:#fff!important; }

/* WooCommerce usa floats/anchos por columnas; solo aquí se convierten a grid.
   Las reglas de Elementor/WooCommerce con columns-3 se neutralizan en cada LI. */
@media(min-width:1100px) {
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) :is(.woocommerce,.woocommerce-page,.elementor-widget-container,.related.products,.up-sells.products) ul.products,
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products {
    display:grid!important;
    grid-template-columns:repeat(var(--mgf-desktop-columns,6), minmax(0,1fr))!important;
    gap:10px!important;
  }
}
@media(min-width:850px) and (max-width:1099px) {
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;}
}
@media(min-width:600px) and (max-width:849px) {
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
}
@media(max-width:599px) {
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products::before,
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products::after {content:none!important;display:none!important;}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products {margin:0 0 12px!important;padding:0!important;list-style:none!important;min-width:0;}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product {
  float:none!important;clear:none!important;width:auto!important;max-width:none!important;
  min-width:0!important;min-height:0!important;
  margin:0!important;padding:4px!important;
  border:1px solid #bfc5bf!important;border-radius:6px!important;
  background:#fff!important;color:#172019!important;
  box-shadow:0 2px 6px rgba(0,0,0,.22)!important;
  display:flex!important;flex-direction:column!important;gap:0!important;
  overflow:hidden!important;justify-content:flex-start!important;
  transition:border-color .14s ease,box-shadow .14s ease!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product:is(:hover,:focus-within) {
  border-color:#565d57!important;
  box-shadow:0 3px 10px rgba(0,0,0,.28)!important;
}
/* Conservar la fotografía real: sin filtro oscuro ni capa flotante. */
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(a.woocommerce-LoopProduct-link,a.woocommerce-loop-product__link) {
  display:flex!important;flex-direction:column!important;flex:0 0 auto!important;
  min-height:0!important;max-height:none!important;gap:0!important;
  width:100%!important;margin:0!important;padding:0!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(img.attachment-woocommerce_thumbnail,.woocommerce-loop-product__link img,.woocommerce-LoopProduct-link img) {
  width:100%!important;height:clamp(110px,12vw,185px)!important;
  min-height:0!important;max-height:none!important;
  object-fit:contain!important;object-position:center!important;
  background:#fff!important;
  margin:0!important;padding:0!important;border-radius:4px!important;
  filter:none!important;
}
/* Ocultar únicamente la cuadrícula de relleno vacía si la añade el tema. */
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(.woocommerce-loop-product__title,.product-title) {
  font-size:clamp(10px,.88vw,12px)!important;
  font-weight:700!important;line-height:1.24!important;
  margin:3px 1px 2px!important;padding:0!important;
  min-height:calc(3 * 1.24em)!important;max-height:calc(3 * 1.24em)!important;
  text-align:center!important;color:#161d18!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;line-clamp:3!important;overflow:hidden!important;
  overflow-wrap:anywhere!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(.price,.woocommerce-Price-amount) {
  text-align:center!important;color:#196c24!important;
  font-size:clamp(11px,.95vw,13px)!important;font-weight:800!important;
  line-height:1.22!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product .price {
  margin:0!important;padding:0!important;
  min-height:16px!important;max-height:none!important;
  display:block!important;
}
/* Evitar margen flexible inferior y reglas de alineación heredadas de Elementor. */
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions {
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;
  margin:3px 0 0!important;padding:3px 0 0!important;
  min-height:0!important;max-height:none!important;
  width:100%!important;gap:3px!important;
  border-top:1px solid #e2e5e2!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > :is(.mgf-action,.mgf-moved-control) {
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:1 1 0!important;min-width:0!important;width:auto!important;
  height:25px!important;min-height:25px!important;max-height:25px!important;
  background:#f6f7f6!important;color:#242e26!important;
  border:1px solid #c7cec8!important;border-radius:4px!important;
  padding:0!important;margin:0!important;
  box-shadow:none!important;opacity:1!important;visibility:visible!important;
  position:relative!important;text-decoration:none!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > :is(.mgf-action,.mgf-moved-control):is(:hover,:focus-visible) {
  background:#e9ece9!important;color:#151c16!important;border-color:#747f75!important;
}
/* WhatsApp también CLARO, sin rectángulo verde; SVG real identificable. */
body.mgtd-fusion-actions ul.products li.product .mgf-actions > a.mgf-action-whatsapp,
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > a.mgf-action-whatsapp {
  background:#f6f7f6!important;border-color:#c7cec8!important;color:#242e26!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions > a.mgf-action-whatsapp:hover {
  background:#e9ece9!important;border-color:#747f75!important;color:#151c16!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-action-svg,
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-visible-icon .mgf-action-svg {
  width:15px!important;height:15px!important;
  min-width:15px!important;max-width:15px!important;
  fill:none;stroke:currentColor!important;visibility:visible!important;opacity:1!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-action-whatsapp .mgf-action-svg path,
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-action-whatsapp .mgf-action-svg circle {
  stroke:currentColor!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-visible-icon {
  z-index:10!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;visibility:visible!important;opacity:1!important;
  background:transparent!important;pointer-events:none!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-moved-control > .mgf-visible-icon {
  position:absolute!important;inset:0!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-moved-control :is(a,button) {
  min-width:0!important;min-height:0!important;height:100%!important;
}
/* Cabecera realmente compacta: título y buscador al mismo nivel. */
body.mgtd-fusion-header .mgf-catalog-topbar {
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;width:100%!important;
  margin:1px 0 8px!important;padding:0 0 4px!important;
  border-bottom:1px solid #e0e5e0!important;background:transparent!important;
}
body.mgtd-fusion-header .mgf-catalog-topbar :is(h1,.page-title,.woocommerce-products-header__title) {
  font-size:clamp(18px,2vw,24px)!important;font-weight:750!important;
  line-height:1.15!important;color:#161b17!important;
  padding:0!important;margin:0!important;text-align:left!important;
  background:none!important;border:0!important;
}
body.mgtd-fusion-header .mgf-catalog-topbar form.mgf-catalog-search {
  width:min(100%,265px)!important;max-width:265px!important;
  height:32px!important;min-height:32px!important;
  flex:0 0 265px!important;margin:0!important;
  background:#fafbfa!important;border:1px solid #c9d1c9!important;
}
body.mgtd-fusion-header .mgf-catalog-search input[type=search] {
  height:24px!important;min-height:24px!important;font-size:12px!important;
}
body.mgtd-fusion-header .mgf-catalog-search button[type=submit] {
  width:29px!important;height:26px!important;flex:0 0 29px!important;
}
/* Controles previos únicamente de catálogo: conservar menús y su buscador. */
body.mgtd-fusion-hide-sorting :is(.mgf-old-archive-control,.mgf-empty-old-controls,
 .woocommerce-ordering,.woocommerce-result-count,.gridlist-toggle,.gridlist-toggle-wrapper,
 .berocket_lgv_widget,.woo-products-view-switcher,.products-view-switcher,
 .products-per-page,.woocommerce-products-per-page,.woocommerce-perpage,
 .wppp-select,.per-page,.shop-view-select,.grid-list-buttons,.grid-list-switcher,
 .mgf-extra-old-view-controls) {
  display:none!important;height:0!important;margin:0!important;padding:0!important;
}
body.mgtd-fusion-header .mgf-vacated-title-widget {
  display:none!important;height:0!important;margin:0!important;padding:0!important;
}
body.mgtd-fusion-loadmore .mgf-loadmore-button {
  background:#f7f8f7!important;color:#263128!important;
  border:1px solid #616962!important;
  box-shadow:0 1px 4px rgba(0,0,0,.12)!important;
}
@media(min-width:600px) and (max-width:1099px){
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(img.attachment-woocommerce_thumbnail,.woocommerce-loop-product__link img,.woocommerce-LoopProduct-link img) {height:clamp(115px,19vw,192px)!important;}
}
@media(max-width:599px){
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product {
    padding:4px!important;margin:0!important;
  }
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(img.attachment-woocommerce_thumbnail,.woocommerce-loop-product__link img,.woocommerce-LoopProduct-link img) {height:clamp(112px,39vw,182px)!important;}
  body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product :is(.woocommerce-loop-product__title,.product-title) {font-size:10.8px!important;}
  body.mgtd-fusion-header .mgf-catalog-topbar {flex-wrap:wrap!important;gap:4px!important;}
  body.mgtd-fusion-header .mgf-catalog-topbar form.mgf-catalog-search {
    max-width:none!important;width:100%!important;flex:1 1 100%!important;
  }
  body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > :is(.mgf-action,.mgf-moved-control) {
    height:24px!important;min-height:24px!important;max-height:24px!important;
  }
}

/* Contorno de chat claro, silueta del teléfono sólida para distinguir WhatsApp. */
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-action-whatsapp .mgf-action-svg path:nth-of-type(2) {
  fill:currentColor!important;stroke:none!important;
}


/* ========================================================================
   MG Fusion White 1.5.0 / v1.3.7 — corrección de tarjetas y cabeceras
   Todas las páginas y tarjetas BLANCAS; únicamente bordes/sombras grafito.
   ======================================================================== */
:root{--mgf-css-active:v1-5-0}

/* Relacionados: esconder únicamente categorías visibles encima del nombre. */
body.mgtd-fusion-related :is(.related.products,.upsells.products,.up-sells.products,
 .elementor-widget-woocommerce-product-related) ul.products li.product :is(
 .ast-woo-product-category,.product-category,.product-categories,.product-cats,
 .woocommerce-loop-product__category,.posted_in,.wc-product-category,
 .wc-block-components-product-category-list,.mgf-related-category) {
  display:none!important;visibility:hidden!important;height:0!important;
  margin:0!important;padding:0!important;line-height:0!important;
}

/* Sin precio: un espacio blanco REAL reserva la misma altura de la cifra. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product :is(
 .price,.mgf-price-placeholder) {
  display:block!important;
  flex:0 0 23px!important;
  height:23px!important;min-height:23px!important;
  line-height:23px!important;
  box-sizing:border-box!important;
  margin:0 0 3px!important;padding:0!important;
  text-align:center!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product .price,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product .price .woocommerce-Price-amount {
  font-size:clamp(13px,1.17vw,16px)!important;
  font-weight:800!important;color:#166925!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product .mgf-price-placeholder{
  background:transparent!important;border:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product :is(.woocommerce-loop-product__title,.product-title){
  margin-bottom:2px!important;
}

/* Nuevo patrón de iconos: el símbolo está FUERA del control real del plugin.
   Así su icono no desaparece si WooCommerce o el plugin de wishlist ocultan
   el texto, :before, font-family o background-image del control original. */
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions {
  display:flex!important;align-items:center!important;gap:4px!important;
  margin:2px 0 0!important;padding:4px 0 0!important;
  min-height:0!important;border-top:1px solid #e0e4e1!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > :is(
 .mgf-action-slot,a.mgf-action) {
  position:relative!important;display:flex!important;align-items:center!important;
  justify-content:center!important;flex:1 1 0!important;min-width:0!important;
  box-sizing:border-box!important;width:auto!important;
  height:31px!important;min-height:31px!important;max-height:31px!important;
  margin:0!important;padding:0!important;border-radius:5px!important;
  background:#f3f5f3!important;border:1px solid #b8c1ba!important;
  color:#263b2c!important;box-shadow:none!important;
  opacity:1!important;visibility:visible!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,
             box-shadow .16s ease!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > :is(
 .mgf-action-slot,a.mgf-action):is(:hover,:focus-within,:focus-visible),
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > .mgf-action-slot.mgf-pressed {
  background:#dceadb!important;color:#124e20!important;
  border-color:#4a8e53!important;
  box-shadow:inset 0 0 0 1px #4a8e53,0 2px 6px rgba(25,55,31,.17)!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > .mgf-action-slot:has(:is(
 .active,.added,.in-wishlist,.is-favorite,.tinvwl-product-in-list,[aria-pressed="true"],
 [aria-checked="true"],.yith-wcwl-wishlistexistsbrowse)) {
  background:#cce9cd!important;border-color:#347c3b!important;
  color:#125d24!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-slot-icon,
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-slot-icon svg {
  pointer-events:none!important;visibility:visible!important;opacity:1!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-slot-icon {
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;position:absolute!important;inset:0!important;
  z-index:1!important;background:transparent!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-slot-icon .mgf-action-svg,
body.mgtd-fusion-actions ul.products li.product .mgf-actions > a.mgf-action .mgf-action-svg{
  display:block!important;width:19px!important;height:19px!important;
  min-width:19px!important;max-width:19px!important;
  stroke:currentColor!important;stroke-width:2.1!important;
  fill:none;opacity:1!important;visibility:visible!important;
}
/* Mantener el botón REAL encima para recibir clics: invisible, no eliminado. */
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions .mgf-action-slot > .mgf-moved-control {
  position:absolute!important;inset:0!important;z-index:2!important;
  display:block!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-height:none!important;
  padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  opacity:0!important;visibility:visible!important;
  pointer-events:auto!important;cursor:pointer!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-action-slot .mgf-moved-control :is(a,button,[role="button"]) {
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;
  cursor:pointer!important;visibility:visible!important;
}
/* Mantener visible el icono verdadero de WhatsApp, en botón claro. */
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > a.mgf-action-whatsapp {
  background:#f3f5f3!important;color:#263b2c!important;border-color:#b8c1ba!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > a.mgf-action-whatsapp:is(:hover,:focus-visible){
  background:#dceadb!important;color:#125d24!important;border-color:#4a8e53!important;
}
body.mgtd-fusion-actions ul.products li.product .mgf-actions a.mgf-action-whatsapp .mgf-action-svg path:nth-of-type(2){
  fill:currentColor!important;stroke:none!important;
}

/* Cabecera ARCHIVOS: franja realmente compacta, esquinas tech y búsqueda útil. */
body.mgtd-fusion-header .mgf-catalog-topbar {
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-wrap:nowrap!important;position:relative!important;
  width:100%!important;gap:10px!important;
  padding:5px 0 8px 12px!important;margin:0 0 9px!important;
  border:0!important;border-bottom:1px solid #cbd3cb!important;
  background:transparent!important;min-height:43px!important;
}
body.mgtd-fusion-header .mgf-catalog-topbar::before {
  content:""!important;position:absolute!important;left:0!important;top:7px!important;
  width:3px!important;height:29px!important;background:#297d2e!important;
  border-radius:2px!important;pointer-events:none!important;
}
body.mgtd-fusion-header .mgf-catalog-topbar :is(h1,h2,.page-title,.woocommerce-products-header__title,.mgf-archive-heading,.elementor-heading-title){
  flex:1 1 auto!important;min-width:0!important;margin:0!important;padding:0!important;
  color:#18201a!important;background:none!important;border:0!important;
  font-size:clamp(19px,2vw,25px)!important;font-weight:780!important;
  line-height:1.2!important;text-align:left!important;letter-spacing:0!important;
}
body.mgtd-fusion-header .mgf-catalog-topbar form.mgf-catalog-search{
  position:relative!important;z-index:2!important;box-sizing:border-box!important;
  width:min(100%,285px)!important;max-width:285px!important;flex:0 0 285px!important;
  height:34px!important;min-height:34px!important;border:1px solid #b9c7bb!important;
  border-radius:7px!important;background:#f9fbf8!important;margin:0!important;
}
body.mgtd-fusion-header .mgf-catalog-search input[type=search]{
  color:#263329!important;font-size:12px!important;outline-offset:1px;
}
body.mgtd-fusion-header .mgf-catalog-search button[type=submit]{
  width:31px!important;height:30px!important;min-height:30px!important;
  background:#266a2d!important;color:#fff!important;border-radius:5px!important;
}
body.mgtd-fusion-header .mgf-catalog-search button[type=submit]:is(:hover,:focus-visible) {
  background:#16531f!important;box-shadow:0 0 0 2px #86b98a!important;
}
/* Relacionados: sustituir la línea larga y cabecera centrada por etiqueta tech */
body.mgtd-fusion-related :is(.related.products,.up-sells.products,.upsells.products,
 .elementor-widget-woocommerce-product-related) > :is(h2,h3),
body.mgtd-fusion-related :is(.related.products,.up-sells.products,.upsells.products) > h2:first-child {
  box-sizing:border-box!important;position:relative!important;
  color:#19221c!important;background:none!important;
  text-align:left!important;font-size:clamp(17px,1.6vw,22px)!important;
  font-weight:800!important;line-height:1.2!important;
  width:100%!important;margin:0 0 9px!important;
  padding:5px 0 8px 12px!important;
  border:0!important;border-bottom:1px solid #cbd3cb!important;
}
body.mgtd-fusion-related :is(.related.products,.up-sells.products,.upsells.products) > h2:first-child::before{
  content:""!important;position:absolute!important;left:0!important;top:4px!important;
  background:#297d2e!important;width:3px!important;height:26px!important;
}
body.mgtd-fusion-related :is(.related.products,.up-sells.products,.upsells.products) > h2:first-child::after{
  content:""!important;position:absolute!important;left:0!important;bottom:-1px!important;
  background:#297d2e!important;width:65px!important;height:2px!important;
}

@media(max-width:599px){
  body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions > :is(.mgf-action-slot,a.mgf-action) {
    height:30px!important;min-height:30px!important;max-height:30px!important;
  }
  body.mgtd-fusion-actions ul.products li.product .mgf-actions .mgf-slot-icon .mgf-action-svg,
  body.mgtd-fusion-actions ul.products li.product .mgf-actions > a.mgf-action .mgf-action-svg{
    width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;
  }
  body.mgtd-fusion-header .mgf-catalog-topbar {flex-wrap:wrap!important;gap:6px!important;}
  body.mgtd-fusion-header .mgf-catalog-topbar form.mgf-catalog-search {
    flex:1 1 100%!important;max-width:none!important;width:100%!important;
  }
}

/* En móvil incluso la cabecera queda en una fila: título recortado, búsqueda corta. */
@media(max-width:599px){
  body.mgtd-fusion-header .mgf-catalog-topbar {
    flex-wrap:nowrap!important;gap:6px!important;min-height:41px!important;
  }
  body.mgtd-fusion-header .mgf-catalog-topbar :is(h1,h2,.page-title,.mgf-archive-heading,.elementor-heading-title) {
    overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;
    font-size:clamp(16px,4.5vw,20px)!important;
  }
  body.mgtd-fusion-header .mgf-catalog-topbar form.mgf-catalog-search {
    flex:0 1 54%!important;min-width:118px!important;max-width:54%!important;
    width:auto!important;min-height:32px!important;height:32px!important;
  }
  body.mgtd-fusion-header .mgf-catalog-topbar form.mgf-catalog-search input[type=search] {
    min-width:0!important;width:100%!important;
    overflow:hidden!important;text-overflow:ellipsis!important;
  }
}


/* ========================================================================
   MG Fusion White 1.6.0 / v1.3.8 — causas de las capturas en producción
   Solo productos WooCommerce, sin tocar video, WP Carousel ni menú.
   ======================================================================== */
:root {--mgf-css-active:v1-6-0;}
/* Consistencia entre TODOS los listados y productos relacionados: sin categoría
   dentro de cada ficha. Conserva los datos de WooCommerce, solo presentación. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product :is(
 .ast-woo-product-category,.product-category,.product-categories,.product-cats,
 .woocommerce-loop-product__category,.posted_in,.wc-product-category,
 .wc-block-components-product-category-list,.mgf-related-category,
 .ast-woo-product-category-wrap,.woocommerce-product-category) {
  display:none!important;visibility:hidden!important;opacity:0!important;
  height:0!important;min-height:0!important;margin:0!important;
  padding:0!important;line-height:0!important;
}
/* Respetar fotografía y nombre; suprimir adornos/puntos de paginación
   que algunos sliders de imagen incrustan DENTRO de las tarjetas. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product :is(
 .slick-dots,.swiper-pagination,.owl-dots,.flex-control-nav,.product-image-dots,
 .carousel-indicators,.woo-product-gallery-pagination,.wpcp-pagination) {
  display:none!important;visibility:hidden!important;
  height:0!important;width:0!important;margin:0!important;padding:0!important;
}
/* Al trasladar un favorito, puede quedar un contenedor vacío sobre la foto. */
body.mgtd-fusion-actions ul.products li.product.mgf-has-favorite :is(
 .mgf-abandoned-control,.wishlist-icon:empty,.wishlist-button:empty,
 .tinv-wraper:empty,.yith-wcwl-add-to-wishlist:empty) {
  display:none!important;visibility:hidden!important;
  background:none!important;box-shadow:none!important;
}
/* Cabecera: ocultar pares de vista iconográficos no reconocidos por clase,
   y anular márgenes/altura del wrapper sobrante únicamente si está vacío. */
body.mgtd-fusion-hide-sorting :is(.mgf-legacy-view-pair,.mgf-vacated-view-wrapper) {
  display:none!important;visibility:hidden!important;
  height:0!important;min-height:0!important;max-height:0!important;
  padding:0!important;margin:0!important;border:0!important;
}
body.mgtd-fusion-header .mgf-catalog-topbar {
  margin-top:0!important;margin-bottom:9px!important;
  min-height:0!important;
}
/* Evitar espacio artificial entre la última línea del nombre y el precio.
   El slot de precio sin cifra sigue reservando 23px. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product .woocommerce-loop-product__title {
  margin-bottom:1px!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product :is(.price,.mgf-price-placeholder) {
  margin-bottom:2px!important;
}


/* ===================================================================
   MG Tema y Diseño 1.3.9 / Fusion White 1.7.0
   Alineación consistente de precio, eliminación de corazones fantasma y
   barras de cambio de vista. Página y tarjetas siempre BLANCAS.
   =================================================================== */
:root { --mgf-css-active:v1-7-0; }
/* Cada ficha es una columna elástica de DOS zonas: enlace del producto y
   controles. Los enlaces crecen por igual en cada fila; el precio se sitúa
   en su extremo inferior y la fila de iconos queda justo debajo. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready {
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  background:#fff!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > :is(
  a.woocommerce-loop-product__link,a.woocommerce-LoopProduct-link) {
  display:flex!important; flex:1 1 auto!important; min-height:0!important;
  flex-direction:column!important; justify-content:flex-start!important;
  margin:0!important; padding:0!important;
}
/* Los dos tipos de ranura de precio tienen la misma altura y se pegan a la
   botonera; no se permite un flex:1 en la ranura. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > a :is(.price,.mgf-price-placeholder) {
  display:block!important; flex:0 0 22px!important; box-sizing:border-box!important;
  height:22px!important; min-height:22px!important; max-height:22px!important;
  line-height:22px!important; margin:auto 0 0!important;
  padding:0!important; text-align:center!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-no-price :is(.mgf-empty-native-price) {
  display:none!important; height:0!important; min-height:0!important;
  flex:0 0 0!important; margin:0!important; padding:0!important;
}
/* Precios fuera del enlace en plantillas WooCommerce personalizadas. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > .price {
  display:block!important; flex:0 0 22px!important; min-height:22px!important;
  max-height:22px!important; margin:0!important; line-height:22px!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-card-ready > .mgf-actions {
  display:flex!important; flex:0 0 auto!important; margin:0!important;
  padding:2px 0 0!important; gap:4px!important; border-top:1px solid #dfe4df!important;
  min-height:0!important;
}
/* El marcador sin precio no presenta un valor falso ni ocupa toda la ficha. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product .mgf-price-placeholder {
  background:transparent!important; box-shadow:none!important; border:0!important;
}
/* Restos decorativos del botón favorito original: solo si la acción real ya
   está en la barra inferior. Incluye ::before/::after de sombras fantasma. */
body.mgtd-fusion-actions ul.products li.product.mgf-has-favorite :is(
  .mgf-ghost-heart-cleared,.mgf-abandoned-control,.mgf-redundant-favorite):not(.mgf-actions):not(.mgf-moved-control) {
  display:none!important; visibility:hidden!important; opacity:0!important;
  background:none!important; background-image:none!important;
  box-shadow:none!important; border:0!important; width:0!important;height:0!important;
  margin:0!important;padding:0!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-has-favorite :is(
  .mgf-ghost-heart-cleared,.mgf-abandoned-control,.mgf-redundant-favorite)::before,
body.mgtd-fusion-actions ul.products li.product.mgf-has-favorite :is(
  .mgf-ghost-heart-cleared,.mgf-abandoned-control,.mgf-redundant-favorite)::after {
  content:none!important;display:none!important;background:none!important;box-shadow:none!important;
}
/* Dos iconos de cuadrícula/lista cuando Elementor no expone clases estándar. */
body.mgtd-fusion-hide-sorting :is(.mgf-legacy-view-pair,.mgf-vacated-view-wrapper) {
  display:none!important;visibility:hidden!important;opacity:0!important;
  height:0!important;max-height:0!important;min-height:0!important;
  padding:0!important;margin:0!important;border:0!important;
}
/* Cabecera una sola fila en PC; no dejar margen residual entre menú y listado. */
body.mgtd-fusion-header .mgf-catalog-topbar {
  margin-top:0!important; margin-bottom:6px!important; padding-top:3px!important;
}


/* ======================================================================
   MG Tema y Diseño 1.4.0 / Fusion White 1.8.0
   Layout cards y footer. Fondo y tarjetas BLANCAS, sin alterar WP Carousel.
   ====================================================================== */
:root{--mgf-css-active:v1-8-0}
/* Imagen original del footer tiene transparencia: necesita fondo negro real.
   La banda se extiende de borde a borde, aun con plantilla Elementor. */
#mgtd-global-footer-image.mgf-global-footer{
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;left:50%!important;
  transform:translateX(-50%)!important;
  width:100vw!important;max-width:none!important;
  padding:12px 12px 10px!important;margin:18px 0 0!important;
  box-sizing:border-box!important;clear:both!important;
  background:#080808!important;overflow:hidden!important;
}
#mgtd-global-footer-image .mgf-global-footer-image{
  width:min(100%,1250px)!important;max-width:1250px!important;
  height:auto!important;display:block!important;object-fit:contain!important;
  margin:0 auto!important;background:transparent!important;
}
/* El footer gráfico puede quedar cerca del pie de derechos. Evitar franja blanca. */
body:has(#mgtd-global-footer-image) #mgtd-global-footer-image + footer{
  margin-top:0!important;
}
/* La tarjeta siempre contiene la botonera en el borde inferior, aun cuando
   el widget genere precios vacíos, o sitúe .price fuera del enlace. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready{
  position:relative!important;display:flex!important;flex-direction:column!important;
  height:100%!important;min-width:0!important;
  padding-bottom:46px!important;
  background:#fff!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > :is(
  a.woocommerce-loop-product__link,a.woocommerce-LoopProduct-link){
  flex:1 1 auto!important;display:flex!important;flex-direction:column!important;
  min-height:0!important;margin:0!important;padding:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > a :is(
  .price,.mgf-price-placeholder),
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > .price,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > .mgf-price-placeholder{
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;min-height:23px!important;max-height:23px!important;
  height:23px!important;flex:0 0 23px!important;
  line-height:23px!important;margin:auto 0 0!important;padding:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > .mgf-actions{
  position:absolute!important;left:5px!important;right:5px!important;bottom:5px!important;
  box-sizing:border-box!important;width:auto!important;height:36px!important;
  max-height:36px!important;min-height:36px!important;
  padding:4px 0 0!important;margin:0!important;gap:4px!important;
  border-top:1px solid #dfe4df!important;
  background:#fff!important;z-index:2!important;
}
/* El precio y su espacio reservado terminan exactamente encima de la barra. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > a .price,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > a .mgf-price-placeholder{
  margin-top:auto!important;margin-bottom:0!important;
}
/* La imagen conserva su puntero de enlace, sin capas invisible de controles. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > a :is(img,figure,.woocommerce-loop-product__title){cursor:pointer;}
/* Wrapper fantasma de wishlist: no debe bloquear enlaces bajo el área de imagen. */
body.mgtd-fusion-actions ul.products li.product.mgf-has-favorite :is(
  .mgf-ghost-heart-cleared,.mgf-ghost-corner-pseudo,.mgf-abandoned-control,.mgf-redundant-favorite){
  display:none!important;visibility:hidden!important;pointer-events:none!important;
  background:none!important;background-image:none!important;box-shadow:none!important;
  opacity:0!important;width:0!important;height:0!important;
  padding:0!important;margin:0!important;border:0!important;
}
body.mgtd-fusion-actions ul.products li.product.mgf-has-favorite :is(
  .mgf-ghost-heart-cleared,.mgf-ghost-corner-pseudo,.mgf-abandoned-control,.mgf-redundant-favorite)::before,
body.mgtd-fusion-actions ul.products li.product.mgf-has-favorite :is(
  .mgf-ghost-heart-cleared,.mgf-ghost-corner-pseudo,.mgf-abandoned-control,.mgf-redundant-favorite)::after,
body.mgtd-fusion-actions ul.products li.product.mgf-ghost-link-before > a.woocommerce-loop-product__link::before,
body.mgtd-fusion-actions ul.products li.product.mgf-ghost-link-after > a.woocommerce-loop-product__link::after{
  display:none!important;content:none!important;background:none!important;
  box-shadow:none!important;pointer-events:none!important;
}
/* Tooltip legible que aparece solo cuando el título está recortado y
   se pasa el mouse, se enfoca o se mantiene pulsado sobre su nombre. */
.mgf-full-title-tooltip{
  box-sizing:border-box!important;display:none;position:fixed;z-index:2147483600;
  max-width:min(340px,calc(100vw - 24px));min-width:130px;
  padding:9px 11px;border:1px solid #617569;border-radius:7px;
  color:#fff;background:#1d2520;box-shadow:0 4px 20px rgba(0,0,0,.25);
  font:600 13px/1.4 Arial,sans-serif;overflow-wrap:anywhere;
  pointer-events:none;text-align:left;
}
.mgf-full-title-tooltip.mgf-tooltip-visible{display:block;}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready .woocommerce-loop-product__title[data-mgf-full-title]{
  cursor:help;
}
/* Responsivo: mantener dos columnas en pantallas pequeñas sin scroll lateral. */
@media(max-width:767px){
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready{
    padding-bottom:45px!important;
  }
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > .mgf-actions{
    bottom:4px!important;left:4px!important;right:4px!important;
  }
}

/* Residuos del pseudo favorito tanto en la clase WooCommerce moderna
   como en la variante clásica, una vez identificados por JS. */
body.mgtd-fusion-actions ul.products li.product.mgf-ghost-link-before > a.woocommerce-LoopProduct-link::before,
body.mgtd-fusion-actions ul.products li.product.mgf-ghost-link-after > a.woocommerce-LoopProduct-link::after {
  display:none!important;content:none!important;background:none!important;
  box-shadow:none!important;pointer-events:none!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready .woocommerce-loop-product__title[data-mgf-full-title] {
  -webkit-touch-callout:none;
}
@media(hover:none) and (pointer:coarse){
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready .woocommerce-loop-product__title[data-mgf-full-title]{
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    user-select:none;
    touch-action:pan-y;
  }
}


/* ======================================================================
   MG Tema y Diseño v1.4.1 · Fusion White 1.9.0
   Eliminar tooltip doble, alinear el precio con barra SIN hueco,
   fondo negro para el banner transparente de la Biblioteca/Elementor.
   ====================================================================== */
:root{--mgf-css-active:v1-9-0}
/* Un solo tooltip en mouse: el nativo del navegador (`title`). */
@media (hover:hover) and (pointer:fine){
  .mgf-full-title-tooltip{display:none!important;}
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.mgf-card-ready :is(
  .woocommerce-loop-product__title[data-mgf-full-title],.product-title[data-mgf-full-title]){
  cursor:pointer!important;
}
/* La pulsación larga en touch conserva una versión discreta de título completo. */
@media(hover:none) and (pointer:coarse){
  .mgf-full-title-tooltip{
    background:#f8faf8!important;color:#243027!important;
    border:1px solid #b4bdb6!important;
    box-shadow:0 2px 6px rgba(0,0,0,.12)!important;
    font:500 12px/1.35 Arial,sans-serif!important;
    border-radius:4px!important;padding:5px 7px!important;
    max-width:min(300px,calc(100vw - 28px))!important;
  }
}
/* Botonera en flujo normal; no se deja una zona reservada invisible. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready{
  display:flex!important;flex-direction:column!important;
  height:100%!important;min-width:0!important;
  padding:5px!important;gap:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > :is(
  a.woocommerce-loop-product__link,a.woocommerce-LoopProduct-link){
  display:flex!important;flex-direction:column!important;
  justify-content:flex-start!important;flex:1 1 auto!important;
  margin:0!important;padding:0!important;min-height:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > a :is(
  .price,.mgf-price-placeholder),
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > :is(.price,.mgf-price-placeholder){
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;
  height:23px!important;min-height:23px!important;max-height:23px!important;
  flex:0 0 23px!important;line-height:1.2!important;
  margin: auto 0 0!important;padding:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > .mgf-actions{
  display:flex!important;position:relative!important;
  left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;
  flex:0 0 36px!important;width:100%!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;
  align-items:center!important;box-sizing:border-box!important;
  margin:0!important;padding:2px 0 0!important;
  gap:4px!important;border-top:1px solid #dfe4df!important;
  background:#fff!important;z-index:2!important;
}
/* Pie gráfico: fondo negro, pantalla completa en la franja real de imagen. */
#mgtd-global-footer-image.mgf-global-footer,
.mgf-footer-dark-band{
  background:#050505!important;background-image:none!important;
}
#mgtd-global-footer-image.mgf-global-footer{
  margin:0!important;padding:8px 10px!important;
  width:100vw!important;max-width:none!important;
  position:relative!important;left:50%!important;
  transform:translateX(-50%)!important;
  overflow:hidden!important;
}
.mgf-footer-dark-band .mgf-footer-dark-image{
  background:#050505!important;
}
.elementor-location-footer .mgf-footer-dark-band,
[data-elementor-type="footer"] .mgf-footer-dark-band,
footer .mgf-footer-dark-band{
  position:relative!important;
}
@media(max-width:767px){
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready{
    padding:4px!important;
  }
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.mgf-card-ready > .mgf-actions{
    flex-basis:36px!important;bottom:auto!important;left:auto!important;right:auto!important;
  }
}
/* Elementor puede insertar un banner de 1200px sin limitar su ancho móvil.
   Mantenerlo dentro de la banda oscura sin producir scroll horizontal. */
.mgf-footer-dark-image {
  display:block!important;
  max-width:100%!important;
  height:auto!important;
  object-fit:contain!important;
  margin-inline:auto!important;
}


/* ====================================================================
   MG Tema y Diseño v1.4.3 / Fusion v1.11.0 — NewStore REAL DOM
   Corrige regresión CSS v1.4.2: precio absoluto sobre el nombre.
   La tarjeta no usa valores top/bottom artificiales.
   ==================================================================== */
:root { --mgf-css-active: v1-11-0; }
/* Solo tarjetas reales NewStore con el módulo activo. Mantener blanco,
   seis columnas existentes, botones y enlaces originales. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  position:relative!important;box-sizing:border-box!important;height:100%!important;
  padding:5px!important;margin-bottom:0!important;gap:0!important;
  background:#fff!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready > .product-inner {
  position:relative!important;display:flex!important;flex:1 1 auto!important;
  flex-direction:column!important;height:auto!important;min-height:0!important;
  width:100%!important;margin:0!important;padding:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-info-container {
  position:relative!important;display:flex!important;flex:1 1 auto!important;
  flex-direction:column!important;justify-content:flex-start!important;
  box-sizing:border-box!important;min-height:0!important;width:100%!important;
  padding:0!important;margin:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-info-container > a.woocommerce-loop-product__link {
  position:relative!important;display:flex!important;flex:1 1 auto!important;
  flex-direction:column!important;min-height:0!important;align-items:stretch!important;
  justify-content:flex-start!important;box-sizing:border-box!important;
  width:100%!important;margin:0!important;padding:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-info-container .woocommerce-loop-product__title {
  position:relative!important;flex:0 0 auto!important;
  margin:3px 0 0!important;
  padding:0!important;
}
/* CRÍTICO: el precio es un renglón de flujo, NUNCA absolute;
   margin-top:auto rellena el espacio por ARRIBA, no entre valor y acciones. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-info-container :is(.mgf-price-slot,.mgf-price-placeholder),
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready > .mgf-price-placeholder,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready > .price {
  position:static!important;inset:auto!important;top:auto!important;right:auto!important;
  bottom:auto!important;left:auto!important;float:none!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  order:2!important;box-sizing:border-box!important;width:100%!important;
  flex:0 0 24px!important;height:24px!important;min-height:24px!important;
  max-height:24px!important;margin: auto 0 0!important;padding:0!important;
  transform:none!important;line-height:24px!important;background:none!important;
  text-align:center!important;border:0!important;box-shadow:none!important;
  z-index:auto!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-info-container .mgf-empty-native-price {
  display:none!important;height:0!important;min-height:0!important;
  margin:0!important;padding:0!important;flex:0 0 0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready > .mgf-actions {
  position:relative!important;top:auto!important;right:auto!important;
  bottom:auto!important;left:auto!important;
  display:flex!important;flex:0 0 36px!important;box-sizing:border-box!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;
  margin:0!important;padding:2px 0 0!important;gap:4px!important;
  width:100%!important;align-items:center!important;
  border-top:1px solid #dfe4df!important;background:#fff!important;
  transform:none!important;z-index:2!important;
}
/* La sombra gris procede del segundo img de NewStore, no del corazón:
   al usar hover debe ocupar TODA la miniatura, nunca una esquina. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link.mgf-normalized-images {
  display:block!important;position:relative!important;overflow:hidden!important;
  isolation:isolate!important;background:#fff!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link.mgf-normalized-images > img.attachment-woocommerce_thumbnail {
  position:relative!important;display:block!important;top:auto!important;right:auto!important;
  left:auto!important;bottom:auto!important;width:100%!important;height:auto!important;
  max-width:100%!important;object-fit:contain!important;opacity:1!important;z-index:0!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link.mgf-normalized-images > img.tf-wc-loop-thumbs {
  display:block!important;position:absolute!important;inset:0!important;
  top:0!important;right:0!important;bottom:0!important;left:0!important;
  width:100%!important;height:100%!important;max-width:100%!important;
  object-fit:contain!important;object-position:center!important;
  opacity:0!important;visibility:hidden!important;transform:none!important;
  box-shadow:none!important;border:0!important;z-index:1!important;
  pointer-events:none!important;background:#fff!important;
}
@media(hover:hover) and (pointer:fine){
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link.mgf-normalized-images:hover > img.tf-wc-loop-thumbs,
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link.mgf-normalized-images:focus-visible > img.tf-wc-loop-thumbs {
    opacity:1!important;visibility:visible!important;
  }
}
/* Puntos NewStore usados para alternar esas imágenes: no dejar círculos flotantes. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link > .product-small-bullets {
  display:none!important;opacity:0!important;visibility:hidden!important;
  width:0!important;height:0!important;pointer-events:none!important;
}
/* Corazón antiguo exclusivo de NewStore, nunca el de la barra inferior. */
body.mgtd-fusion-actions ul.products li.product.newstore-product.mgf-card-ready.mgf-has-favorite .tf-loop-product-img-container > a.add_to_wishlist:not(.mgf-moved-control),
body.mgtd-fusion-actions ul.products li.product.newstore-product.mgf-card-ready.mgf-has-favorite .tf-loop-product-img-container > button.add_to_wishlist:not(.mgf-moved-control){
  display:none!important;visibility:hidden!important;opacity:0!important;
  background:none!important;box-shadow:none!important;pointer-events:none!important;
}
@media(max-width:767px){
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready {
    padding:4px!important;
  }
  body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready > .mgf-actions {
    position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;
  }
}


/* MG Tema y Diseño v1.4.4 — AJUSTE QUIRÚRGICO NEWSTORE.
   1. Aire de 7px sobre valor y 9px debajo; espacio del precio preservado.
   2. Eliminar la miniatura flotante de NewStore que genera el cuadro gris.
   No tocar la imagen principal, el contenido de producto ni los carruseles.
*/
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-info-container :is(.mgf-price-slot,.mgf-price-placeholder),
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready > .mgf-price-placeholder,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready > .price {
  /* In flow: never absolutely positioned to prevent the title overlap. */
  position:static!important;inset:auto!important;transform:none!important;
  order:2!important;display:flex!important;justify-content:center!important;
  align-items:center!important;box-sizing:border-box!important;
  flex:0 0 38px!important;height:38px!important;
  min-height:38px!important;max-height:38px!important;
  margin:auto 0 0!important;padding:7px 0 9px!important;
  line-height:22px!important;text-align:center!important;
  background:transparent!important;box-shadow:none!important;
}
/* La segunda miniatura insertada por NewStore deja una esquina gris
   incluso en productos sin botón antiguo de favoritos. Se descarta solo
   en tarjetas del catálogo, manteniendo la imagen principal intacta. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link > img.tf-wc-loop-thumbs,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link.mgf-normalized-images > img.tf-wc-loop-thumbs,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link.mgf-normalized-images:hover > img.tf-wc-loop-thumbs,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link.mgf-normalized-images:focus-visible > img.tf-wc-loop-thumbs {
  display:none!important;visibility:hidden!important;opacity:0!important;
  box-shadow:none!important;background:none!important;pointer-events:none!important;
}
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link > .product-small-bullets {
  display:none!important;visibility:hidden!important;
}
/* Sombras generadas por capas decorativas de miniatura secundaria.
   Aplicación limitada al enlace de imagen en la cuadrícula NewStore. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link::before,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs-link::after,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs::before,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs::after {
  content:none!important;display:none!important;box-shadow:none!important;
}


/* v1.4.5 — NewStore: anular exclusivamente los pseudo-elementos de
   la esquina que el diagnóstico JS haya identificado como decoraciones
   (tamaño acotado, esquina derecha y degradado/sombra). No afecta foto
   principal, enlace, corazones funcionales ni los carruseles WP Carousel. */
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready :is(
  .product-inner,.tf-loop-product-img-container,.tf-loop-product-thumbs,.tf-loop-product-thumbs-link
).mgf-corner-overlay-before::before,
body:is(.mgtd-fusion-related,.mgtd-fusion-archive) ul.products li.product.newstore-product.mgf-card-ready :is(
  .product-inner,.tf-loop-product-img-container,.tf-loop-product-thumbs,.tf-loop-product-thumbs-link
).mgf-corner-overlay-after::after {
  content:none!important;display:none!important;visibility:hidden!important;
  background:none!important;background-image:none!important;box-shadow:none!important;
  opacity:0!important;pointer-events:none!important;
}


/* ================================================================
   Master Gamer Tema y Diseño v1.4.6 — cabecera de categorías limpia
   Sin modificar la cuadrícula, precio, productos ni botones inferiores.
   ================================================================ */
body.mgtd-fusion-header.mgtd-fusion-archive .mgf-catalog-topbar {
  box-sizing:border-box!important;display:flex!important;
  align-items:center!important;justify-content:space-between!important;
  flex-wrap:nowrap!important;column-gap:12px!important;
  min-height:40px!important;margin:6px 0 8px!important;
  padding:3px 0 6px 11px!important;
  border:0!important;border-bottom:1px solid #d6ded6!important;
  background:#fff!important;box-shadow:none!important;
}
body.mgtd-fusion-header.mgtd-fusion-archive .mgf-catalog-topbar::before {
  top:5px!important;width:3px!important;height:26px!important;
  background:var(--mgf-accent,#26852d)!important;
}
body.mgtd-fusion-header.mgtd-fusion-archive .mgf-catalog-topbar :is(h1,h2,.page-title,.woocommerce-products-header__title,.mgf-archive-heading,.elementor-heading-title) {
  flex:1 1 auto!important;min-width:0!important;
  font-size:clamp(18px,1.75vw,22px)!important;
  font-weight:770!important;line-height:1.2!important;
  padding:0!important;margin:0!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
}
body.mgtd-fusion-header.mgtd-fusion-archive .mgf-catalog-topbar form.mgf-catalog-search {
  flex:0 1 285px!important;width:285px!important;max-width:285px!important;
  min-width:130px!important;height:34px!important;min-height:34px!important;
  border:1px solid #bdccbf!important;background:#fff!important;
}
body.mgtd-fusion-hide-sorting.mgtd-fusion-archive :is(.mgf-view-button-v146,.mgf-view-wrapper-v146,.mgf-view-empty-row-v146) {
  display:none!important;visibility:hidden!important;
  height:0!important;min-height:0!important;max-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
}
@media (max-width:599px) {
  body.mgtd-fusion-header.mgtd-fusion-archive .mgf-catalog-topbar {
    min-height:38px!important;column-gap:7px!important;padding:3px 0 5px 10px!important;
  }
  body.mgtd-fusion-header.mgtd-fusion-archive .mgf-catalog-topbar :is(h1,h2,.page-title,.mgf-archive-heading,.elementor-heading-title) {
    font-size:clamp(16px,4.2vw,19px)!important;
  }
  body.mgtd-fusion-header.mgtd-fusion-archive .mgf-catalog-topbar form.mgf-catalog-search {
    flex:0 1 55%!important;width:55%!important;max-width:55%!important;
    min-width:115px!important;height:32px!important;min-height:32px!important;
  }
}
/* El banner inyectado es el mismo archivo negro de Inicio: franja de extremo
   a extremo SIN width:100vw y sin alterar el fondo blanco del catálogo. */
#mgtd-global-footer-image.mgf-global-footer {
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;left:auto!important;transform:none!important;
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  margin:16px 0 0!important;padding:10px 8px!important;
  background:#050505!important;overflow:visible!important;
}
#mgtd-global-footer-image.mgf-global-footer::before {
  content:""!important;display:block!important;position:absolute!important;
  top:0!important;bottom:0!important;
  left:var(--mgf-footer-left,0px)!important;
  width:var(--mgf-footer-width,100%)!important;
  background:#050505!important;pointer-events:none!important;z-index:-1!important;
}
#mgtd-global-footer-image.mgf-global-footer .mgf-global-footer-image {
  position:relative!important;z-index:1!important;
  display:block!important;width:min(100%,1250px)!important;max-width:1250px!important;
  height:auto!important;max-height:none!important;object-fit:contain!important;
  margin:0 auto!important;background:transparent!important;
}

/* v1.4.7 · Fuente real del desnivel: imágenes NewStore usaban height:clamp
   y object-fit:contain en distintas reglas. El ENLACE es el marco 1:1;
   la imagen se recorta SIN alterar el archivo y se centra en ambos ejes.
   Solo el catálogo/relacionados; no toca galerías individuales/carruseles. */
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs {
  position:relative!important;box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  aspect-ratio:1/1!important;background:#fff!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs > a.tf-loop-product-thumbs-link {
  display:block!important;position:relative!important;box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  aspect-ratio:1/1!important;margin:0!important;padding:0!important;
  overflow:hidden!important;background:#fff!important;border-radius:5px!important;
  isolation:isolate!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs > a.tf-loop-product-thumbs-link > img.attachment-woocommerce_thumbnail {
  display:block!important;position:absolute!important;
  inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;
  box-sizing:border-box!important;width:100%!important;height:100%!important;
  min-width:100%!important;min-height:100%!important;
  max-width:none!important;max-height:none!important;
  aspect-ratio:1/1!important;object-fit:cover!important;object-position:50% 50%!important;
  margin:0!important;padding:0!important;transform:none!important;
  border:0!important;box-shadow:none!important;background:#fff!important;
}
/* Miniatura secundaria NewStore: conserva la política de ocultación previa.
   Si el tema la revela en hover, queda igualmente centrada y recortada. */
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.newstore-product.mgf-card-ready .tf-loop-product-thumbs > a.tf-loop-product-thumbs-link > img.tf-wc-loop-thumbs {
  object-fit:cover!important;object-position:50% 50%!important;
}
/* Vista por iconos original del tema (incluye iconos sin button/a).
   Se identifica únicamente el par semántico grid+list en el JS. */
body.mgtd-fusion-archive :is(.mgf-layout-switch-v147,.mgf-layout-only-v147) {
  display:none!important;visibility:hidden!important;
  width:0!important;height:0!important;min-height:0!important;max-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
}
body.mgtd-fusion-header.mgtd-fusion-archive .mgf-catalog-topbar.mgf-v147-reduce-archive-gap {
  margin-top:var(--mgf-v147-gap-shift,0px)!important;
}


/* ======================================================================
   Master Gamer Tema y Diseño v1.4.8 · Fusion White 1.16.0
   Reparación exclusiva: resultados de búsqueda, sombra fantasma NewStore
   y enlace de la miniatura completa (PC + teléfono). NO toca carruseles.
   ====================================================================== */
:root{--mgf-css-active:v1-16-0}
/* El margen negativo de v1.4.7 NO se aplica en búsquedas: el encabezado
   grande anterior quedaba recortado debajo del menú al compactar widgets. */
body.mgtd-fusion-archive.mgf-search-results-page .mgf-catalog-topbar,
body.mgtd-fusion-archive.mgf-search-results-page .mgf-catalog-topbar.mgf-v147-reduce-archive-gap {
  position:relative!important;z-index:1!important;
  transform:none!important;top:auto!important;left:auto!important;
  margin-top:14px!important;margin-bottom:9px!important;
  padding-top:7px!important;padding-bottom:8px!important;
  min-height:48px!important;max-height:none!important;
  overflow:visible!important;box-sizing:border-box!important;
}
body.mgtd-fusion-archive.mgf-search-results-page :is(.mgf-legacy-search-heading,.mgf-legacy-search-heading-holder) {
  display:none!important;visibility:hidden!important;
  margin:0!important;padding:0!important;height:0!important;min-height:0!important;
}
body.mgtd-fusion-archive.mgf-search-results-page .mgf-catalog-topbar .mgf-archive-heading {
  display:block!important;position:relative!important;inset:auto!important;
  overflow:visible!important;text-overflow:clip!important;
  white-space:normal!important;line-height:1.24!important;
  margin:0!important;padding:0!important;height:auto!important;
  min-height:0!important;max-height:none!important;
  word-break:normal!important;overflow-wrap:break-word!important;
}
@media(max-width:700px){
  body.mgtd-fusion-archive.mgf-search-results-page .mgf-catalog-topbar {
    flex-wrap:wrap!important;align-items:flex-start!important;
    gap:9px!important;margin-top:12px!important;padding:7px 0 9px 11px!important;
  }
  body.mgtd-fusion-archive.mgf-search-results-page .mgf-catalog-topbar .mgf-archive-heading {
    flex:1 1 100%!important;width:100%!important;min-width:0!important;
    font-size:clamp(16px,4.4vw,21px)!important;
  }
  body.mgtd-fusion-archive.mgf-search-results-page .mgf-catalog-topbar form.mgf-catalog-search {
    flex:1 1 100%!important;width:100%!important;max-width:100%!important;
    min-width:0!important;margin:0!important;
  }
}
/* Quitar los residuos del corazón retirado y la segunda miniatura EN TODAS
   las tarjetas de catálogo NewStore, incluso imágenes de producto placeholder.
   No se ocultan fotos, insignias reales ni el botón inferior de Favoritos. */
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.mgf-card-ready :is(
  .tf-loop-product-img-container,.tf-loop-product-thumbs,.tf-loop-product-thumbs-link
)::before,
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.mgf-card-ready :is(
  .tf-loop-product-img-container,.tf-loop-product-thumbs,.tf-loop-product-thumbs-link
)::after {
  content:none!important;display:none!important;visibility:hidden!important;
  background:none!important;background-image:none!important;box-shadow:none!important;
  pointer-events:none!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.mgf-card-ready
  .tf-loop-product-img-container img.tf-wc-loop-thumbs,
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.mgf-card-ready
  .tf-loop-product-img-container :is(.product-small-bullets,.mgf-native-wishlist-removed,.mgf-redundant-favorite) {
  display:none!important;visibility:hidden!important;opacity:0!important;
  box-shadow:none!important;background:none!important;pointer-events:none!important;
}
/* Hipervínculo real a la ficha sobre el 100% de la foto, NO encima de
   textos, precios, carruseles o barra inferior de acciones. */
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.mgf-card-ready
  .mgf-full-photo-surface {
  position:relative!important;isolation:isolate!important;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.mgf-card-ready
  .mgf-full-photo-surface > a.mgf-full-photo-link {
  display:block!important;visibility:visible!important;opacity:1!important;
  position:absolute!important;inset:0!important;top:0!important;right:0!important;
  bottom:0!important;left:0!important;
  width:100%!important;height:100%!important;box-sizing:border-box!important;
  margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;background-image:none!important;
  box-shadow:none!important;z-index:19!important;cursor:pointer!important;
  pointer-events:auto!important;touch-action:manipulation;
}
body:is(.mgtd-fusion-archive,.mgtd-fusion-related) ul.products li.product.mgf-card-ready
  .mgf-full-photo-surface > a.mgf-full-photo-link:focus-visible {
  outline:2px solid var(--mgf-accent,#26852d)!important;
  outline-offset:-3px!important;
}


/* =======================================================================
   Master Gamer — Tema y Diseño v1.4.9 · ajustes exclusivos solicitados
   1) Espacio superior de BÚSQUEDA reducido de manera proporcional (JS mide
      el menú); 2) Título individual alineado al ancho útil del contenido;
   3) Precio + carrito real/favorito real/WhatsApp en una sola fila.
   ======================================================================= */
:root{--mgf-css-active:v1-17-5}
/* No recrear el hueco de v1.4.8 tras eliminar el exceso de margen del
   contenedor Elementor. El título queda en flujo normal, nunca transform. */
body.mgtd-fusion-archive.mgf-search-results-page .mgf-catalog-topbar.mgf-v149-gap-fixed {
  position:relative!important;transform:none!important;
  max-width:100%!important;overflow:visible!important;
}
/* Título de producto INDIVIDUAL, no de tarjetas ni de carruseles.
   Alineado al ancho útil que comparte el menú, sin tipografía gigante. */
body.mgtd-fusion-single :is(
  h1.product_title,h2.product_title,
  .elementor-widget-woocommerce-product-title h1,
  .elementor-widget-woocommerce-product-title h2,
  .elementor-widget-theme-post-title h1,
  .elementor-widget-theme-post-title h2,
  .elementor-widget-theme-post-title .elementor-heading-title,
  .mgf-single-product-title
) {
  box-sizing:border-box!important;
  display:block!important;position:relative!important;
  width:100%!important;max-width:1250px!important;min-width:0!important;
  margin:0 auto 15px!important;padding:0 4px!important;
  font-size:clamp(19px,1.78vw,24px)!important;font-weight:800!important;
  line-height:1.27!important;letter-spacing:0!important;
  color:#19251c!important;text-align:left!important;
  white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;
  text-wrap:pretty!important;
}
body.mgtd-fusion-single :is(
  .elementor-widget-woocommerce-product-title,.elementor-widget-theme-post-title
) {
  box-sizing:border-box!important;max-width:1250px!important;
  width:100%!important;margin-inline:auto!important;
}
/* Fila de precio y acciones integradas. La cifra original se conserva; no
   se clona ni se modifica el precio/moneda del producto. */
body.mgtd-fusion-single .mgf-single-pricebar {
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-wrap:nowrap!important;column-gap:22px!important;row-gap:10px!important;
  /* The Elementor price widget may be narrower than the product summary.
     Use the row's intrinsic width so the actions remain BESIDE the price. */
  box-sizing:border-box!important;max-width:none!important;min-width:0!important;
  width:max-content!important;margin:10px auto 13px!important;padding:3px 0!important;
  background:transparent!important;border:0!important;
}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot {
  display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:0!important;max-width:100%!important;
}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot > .price {
  display:block!important;position:static!important;
  color:#18782c!important;margin:0!important;padding:0!important;
  font-size:clamp(20px,1.65vw,25px)!important;line-height:1.3!important;
  font-weight:850!important;white-space:nowrap!important;
}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-actions {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex-wrap:nowrap!important;gap:9px!important;margin:0!important;padding:0!important;
}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-icon {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;position:relative!important;
  flex:0 0 46px!important;width:46px!important;min-width:46px!important;
  height:44px!important;min-height:44px!important;max-height:44px!important;
  margin:0!important;padding:0!important;cursor:pointer!important;
  border:1px solid #b9c7ba!important;border-radius:7px!important;
  background:#f3f5f3!important;color:#263a2b!important;
  box-shadow:none!important;text-decoration:none!important;
  appearance:none!important;outline-offset:2px!important;
  transition:background-color .15s ease,border-color .15s ease!important;
}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-icon:is(:hover,:focus-visible){
  background:#e0ede0!important;border-color:#438a4c!important;color:#165e26!important;
}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-icon:disabled {
  opacity:.45!important;cursor:not-allowed!important;
}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-icon > .mgf-action-svg {
  display:block!important;flex:0 0 25px!important;
  width:25px!important;height:25px!important;min-width:25px!important;
  stroke:currentColor!important;stroke-width:2!important;
  fill:none!important;opacity:1!important;visibility:visible!important;
  pointer-events:none!important;
}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-icon-whatsapp > svg path:nth-of-type(2) {
  fill:currentColor!important;stroke:none!important;
}
/* El corazón visible se pinta por el plugin, pero recibe clics el CONTROL
   NATIVO de Woo Smart Wishlist/YITH/TI sin reconstruir su estado. */
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-heart-slot > .mgf-single-wishlist-live {
  display:block!important;position:absolute!important;inset:0!important;
  z-index:2!important;width:100%!important;min-width:100%!important;
  height:100%!important;min-height:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;border:0!important;
  border-radius:7px!important;background:transparent!important;
  box-shadow:none!important;opacity:0!important;visibility:visible!important;
  font-size:1px!important;color:transparent!important;cursor:pointer!important;
  pointer-events:auto!important;
}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-heart-slot > .mgf-single-wishlist-live :is(a,button,[role="button"]){
  position:absolute!important;inset:0!important;width:100%!important;
  height:100%!important;min-height:100%!important;margin:0!important;
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
}
/* El shortcode original queda fuera del flujo; solo su botón se reubica. */
body.mgtd-fusion-single #mgf-native-single-wishlist-source {
  position:absolute!important;width:1px!important;height:1px!important;
  left:-9999px!important;top:auto!important;overflow:hidden!important;
}
/* Solo ocultar el formulario estándar de compra cuando los tres iconos
   funcionan y NO hay variaciones ni cantidades agrupadas que configurar. */
body.mgtd-fusion-single.mgf-single-actions-ready form.cart.mgf-single-native-cart-hidden{
  display:none!important;visibility:hidden!important;
}
body.mgtd-fusion-single.mgf-single-actions-ready form.cart.mgf-single-complex-cart :is(.quantity,.single_add_to_cart_button){
  display:none!important;
}
@media(max-width:620px){
  body.mgtd-fusion-single :is(h1.product_title,.mgf-single-product-title,
    .elementor-widget-theme-post-title .elementor-heading-title){
    font-size:clamp(17px,4.5vw,21px)!important;
    padding-inline:2px!important;line-height:1.28!important;
  }
  body.mgtd-fusion-single .mgf-single-pricebar{column-gap:13px!important;row-gap:9px!important;}
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-actions{gap:7px!important;}
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-icon{
    flex-basis:44px!important;width:44px!important;min-width:44px!important;
    height:44px!important;min-height:44px!important;
  }
}

/* v1.4.10: stacked actions only on phones, while desktop keeps one row.
   This affects single-product pricebar, NOT cards, related products, or variations. */
@media (max-width: 767px) {
  body.mgtd-fusion-single .mgf-single-pricebar {
    flex-direction:column!important;flex-wrap:nowrap!important;
    align-items:center!important;justify-content:center!important;
    width:100%!important;max-width:100%!important;
    column-gap:0!important;row-gap:9px!important;
  }
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot,
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-actions {
    justify-content:center!important;flex-shrink:0!important;
  }
}

/* === Master Gamer 1.4.11 · ficha individual; SOLO ajustes visuales ===
   El precio y el H1 siguen siendo los mismos elementos nativos.
   La variable horizontal, calculada en JS, centra la fila en la columna
   informativa incluso cuando Elementor usa un widget de precio estrecho. */
@media (min-width: 768px) {
  body.mgtd-fusion-single .mgf-single-pricebar {
    transform: translateX(var(--mgf-single-column-offset, 0px)) !important;
    transform-origin: center center !important;
    flex-wrap: nowrap !important;
  }
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot {
    min-height: 44px !important;
    flex: 0 0 auto !important;
  }
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot > .price {
    font-size: 25px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  /* Evitar recorte lateral al centrar sobre un widget Elementor reducido. */
  body.mgtd-fusion-single .elementor-widget-woocommerce-product-price:has(.mgf-single-pricebar),
  body.mgtd-fusion-single .elementor-widget-woocommerce-product-price:has(.mgf-single-pricebar) > .elementor-widget-container {
    overflow: visible !important;
  }
}
@media (max-width: 767px) {
  body.mgtd-fusion-single .mgf-single-pricebar {
    transform: none !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot,
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-actions {
    width: auto !important;
    margin-inline: auto !important;
    align-self: center !important;
    justify-content: center !important;
  }
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot > .price {
    text-align: center !important;
  }
  /* Menor altura en móviles sin truncar ni esconder el título.
     El HTML sigue conservando su H1 íntegro y sus metadatos SEO. */
  body.mgtd-fusion-single.mgtd-fusion-single.mgtd-fusion-single :is(
    h1.product_title, h2.product_title,
    .elementor-widget-woocommerce-product-title h1,
    .elementor-widget-woocommerce-product-title h2,
    .elementor-widget-theme-post-title h1,
    .elementor-widget-theme-post-title h2,
    .elementor-widget-theme-post-title .elementor-heading-title,
    .mgf-single-product-title
  ) {
    font-size: clamp(15px, 3.85vw, 16px) !important;
    line-height: 1.19 !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    margin: 0 auto 8px !important;
    padding: 0 2px !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }
  body.mgtd-fusion-single :is(
    .elementor-widget-woocommerce-product-title,
    .elementor-widget-theme-post-title
  ) {
    margin-bottom: 7px !important;
  }
}


/* Master Gamer v1.4.12: título original dentro de la columna derecha,
   ÚNICAMENTE si JavaScript confirmó columnas izquierda/derecha reales.
   Sin tocar galería, miniaturas, carruseles, móvil ni SEO. */
@media (min-width: 1024px) {
  body.mgtd-fusion-single.mgf-single-title-right.mgf-single-title-right :is(h1,h2,.elementor-heading-title).mgf-single-title-desktop-right {
    box-sizing:border-box!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0 0 11px!important;padding:0!important;
    font-size:clamp(15px,1.15vw,17px)!important;
    font-weight:700!important;line-height:1.32!important;
    letter-spacing:0!important;text-align:left!important;
    white-space:normal!important;overflow-wrap:break-word!important;
    word-break:normal!important;text-wrap:pretty!important;
    overflow:visible!important;display:block!important;
  }
  body.mgtd-fusion-single.mgf-single-title-right .mgf-single-title-relocated {
    box-sizing:border-box!important;min-width:0!important;
    width:100%!important;max-width:100%!important;
    margin-top:0!important;margin-bottom:11px!important;
    padding:0!important;align-self:stretch!important;
  }
  body.mgtd-fusion-single.mgf-single-title-right .mgf-single-title-vacated {
    display:none!important;margin:0!important;padding:0!important;
    min-height:0!important;height:0!important;
  }
}


/* MGTD v1.4.14 — ÚNICAMENTE ficha de producto individual.
   Balancear el precio con iconos SVG de 25 px; nunca modificar las imágenes. */
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot > .price :is(
  .woocommerce-Price-amount,.amount,bdi,.woocommerce-Price-currencySymbol
) {
  font-size:inherit!important;
  line-height:inherit!important;
}
@media(min-width:768px){
  body.mgtd-fusion-single .mgf-single-pricebar {
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:center!important;
  }
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot > .price {
    font-size:25px!important;
    line-height:1.15!important;
  }
}
@media(min-width:1024px){
  /* El H1 se conserva; la sangría se calcula desde el párrafo de la columna,
     evitando que sobresalga por izquierda o derecha en plantillas Elementor. */
  body.mgtd-fusion-single.mgf-single-title-right .mgf-single-title-relocated {
    padding-left:var(--mgf-single-title-inset-left,0px)!important;
    padding-right:var(--mgf-single-title-inset-right,0px)!important;
  }
  body.mgtd-fusion-single.mgf-single-title-right.mgf-single-title-right :is(h1,h2).mgf-single-title-relocated.mgf-single-title-desktop-right {
    padding-left:var(--mgf-single-title-inset-left,0px)!important;
    padding-right:var(--mgf-single-title-inset-right,0px)!important;
  }
}
@media(max-width:767px){
  body.mgtd-fusion-single .mgf-single-pricebar {
    transform:translateX(var(--mgf-single-column-offset,0px))!important;
  }
  body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-price-slot > .price {
    font-size:25px!important;
    line-height:1.16!important;
    font-weight:800!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
  body.mgtd-fusion-single.mgtd-fusion-single.mgtd-fusion-single :is(
    h1.product_title,h2.product_title,.mgf-single-product-title,
    .elementor-widget-woocommerce-product-title h1,
    .elementor-widget-woocommerce-product-title h2,
    .elementor-widget-theme-post-title h1,
    .elementor-widget-theme-post-title h2,
    .elementor-widget-theme-post-title .elementor-heading-title
  ) {
    text-align:center!important;
    margin-top:0!important;
    margin-bottom:5px!important;
    padding:0 3px!important;
  }
  body.mgtd-fusion-single :is(
    .elementor-widget-woocommerce-product-title,.elementor-widget-theme-post-title
  ) {
    margin-top:0!important;
    margin-bottom:5px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  /* Solo se activa sobre secciones Elementor que contienen exclusivamente
     el título (comprobado desde JS). No actúa sobre galería ni otros widgets. */
  body.mgtd-fusion-single .mgf-single-mobile-title-frame {
    padding-top:5px!important;
    padding-bottom:5px!important;
    margin-top:0!important;
    margin-bottom:7px!important;
    min-height:0!important;
  }
  body.mgtd-fusion-single .mgf-single-mobile-title-frame :is(
    .elementor-container,.elementor-column,.elementor-widget-wrap,
    .elementor-element-populated,.e-con-inner,.elementor-widget-container
  ) {
    padding-top:0!important;
    padding-bottom:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
    min-height:0!important;
  }
}

/* v1.4.27: mantener los controles de la ficha encima de overlays de Elementor.
   No afectar las tarjetas, el menú ni los carruseles. */
body.mgtd-fusion-single .mgf-single-pricebar{position:relative!important;z-index:35!important;pointer-events:auto!important;isolation:isolate!important;}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-actions{position:relative!important;z-index:36!important;pointer-events:auto!important;}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-icon{z-index:37!important;pointer-events:auto!important;touch-action:manipulation!important;}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-icon.mgf-single-heart-added{background:#e7f5ea!important;border-color:#278a46!important;color:#127431!important;}
body.mgtd-fusion-single .mgf-single-pricebar .mgf-single-icon:is(a,button){text-decoration:none!important;}
body.mgtd-fusion-single .elementor-widget-woocommerce-product-price:has(.mgf-single-pricebar){position:relative!important;z-index:34!important;}
/* El widget fuente de favoritos no intercepta el icono con un overlay invisible. */
body.mgtd-fusion-single .mgf-single-wishlist-source-hidden{
 position:absolute!important;width:1px!important;height:1px!important;max-width:1px!important;min-width:0!important;
 overflow:hidden!important;opacity:0!important;left:-9999px!important;top:auto!important;
 pointer-events:none!important;
}
/* Mantener el form real disponible para los eventos de Woo, fuera del flujo visual. */
body.mgtd-fusion-single.mgf-single-actions-ready form.cart.mgf-single-native-cart-hidden{
 display:block!important;visibility:visible!important;position:absolute!important;left:-9999px!important;
 top:auto!important;width:1px!important;max-width:1px!important;height:1px!important;overflow:hidden!important;
 opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important;
}
/* Variaciones y agrupados no pueden ocultar selectores/validaciones originales. */
body.mgtd-fusion-single.mgf-single-actions-ready form.cart.mgf-single-complex-cart :is(.quantity,.single_add_to_cart_button){display:initial!important;}
