/* ===== Mamafit · tarjeta de producto y carrusel ===== */
.mf-carrusel{ position:relative; padding:0 40px; }
.mf-pista{ display:flex; gap:16px; margin:0 !important; padding:2px 0 8px !important; list-style:none; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.mf-pista::-webkit-scrollbar{ display:none; }
.mf-pista > .mf-card{ flex:0 0 calc((100% - 48px) / 4); scroll-snap-align:start; }
@media (max-width:1024px){ .mf-pista > .mf-card{ flex-basis:calc((100% - 32px) / 3); } }
@media (max-width:767px){ .mf-carrusel{ padding:0; } .mf-pista{ gap:10px; } .mf-pista > .mf-card{ flex-basis:calc((100% - 10px) / 2 - 14px); } }

.mf-flecha{ position:absolute; top:40%; z-index:2; width:34px; height:34px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--mf-rosa,#EB184D); font-size:38px; line-height:1; cursor:pointer; }
.mf-flecha--prev{ left:0; } .mf-flecha--next{ right:0; }
.mf-flecha:hover{ color:var(--mf-morado,#4B0C7A); }

/* Tarjeta (también la usan los archivos de la tienda) */
.mf-card,.woocommerce ul.products li.product{ position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; padding:8px 8px 14px; border:1px solid #e5e7e9; background:#fff; }
.mf-card__img{ display:block; width:100%; aspect-ratio:1/1; overflow:hidden; }
.mf-card__img img,.mf-card__foto{ width:100%; height:100%; object-fit:cover; display:block; }
.mf-card__titulo,.woocommerce ul.products li.product .woocommerce-loop-product__title{ margin:10px 0 4px; font-family:inherit; font-size:16px; line-height:1.3; font-weight:400; }
.mf-card__titulo a,.woocommerce ul.products li.product .woocommerce-loop-product__title{ color:var(--mf-rosa,#EB184D); text-decoration:none; }
.mf-card .price,.woocommerce ul.products li.product .price{ color:#000; font-size:16px; margin-bottom:10px; }
.mf-card .price ins{ text-decoration:none; font-weight:700; } .mf-card .price del{ opacity:.55; margin-right:4px; }
.mf-card .button,.woocommerce ul.products li.product .button{ margin-top:auto; padding:8px 16px; border:0; border-radius:2px; background:var(--mf-rosa,#EB184D); color:#fff; font-size:14px; font-weight:700; text-decoration:none; }
.mf-card .button:hover,.woocommerce ul.products li.product .button:hover{ background:var(--mf-morado,#4B0C7A); color:#fff; }
.mf-card .added_to_cart{ font-size:13px; margin-top:6px; color:var(--mf-morado,#4B0C7A); }

/* Insignia de descuento */
.mf-card .onsale,.woocommerce ul.products li.product .onsale,.mf-badge{ position:absolute; top:12px; left:12px; z-index:2; min-width:0; min-height:0; padding:3px 8px; border-radius:2px; background:var(--mf-rosa,#EB184D); color:#fff; font-size:13px; font-weight:700; line-height:1.3; }

/* Ajustes de especificidad frente a Astra/WooCommerce */
.mf-card .mf-card__titulo{ font-weight:400; font-size:16px; }
.mf-card .mf-card__titulo a{ color:var(--mf-rosa,#EB184D); font-weight:400; }
.mf-card .price,.mf-card .price .amount,.mf-card .price bdi{ color:#000 !important; font-size:16px; }

/* Barra lateral de la tienda */
.widget-area .widget-title,.widget-area .widgettitle{ font-family:var(--mf-fuente); font-size:21px; font-weight:400; color:var(--mf-rosa,#EB184D); }
.widget-area a{ color:var(--mf-morado,#4B0C7A); }
.woocommerce-products-header__title.page-title,.woocommerce .page-title{ color:var(--mf-rosa,#EB184D); text-align:center; font-weight:400; }
.woocommerce-breadcrumb{ font-size:14px; }

/* Ficha de producto */
.single-product .product_title{ font-family:var(--mf-fuente); font-weight:400; font-size:28px; color:#000; }
.single-product .summary .price{ color:#000; font-size:22px; }
.single-product .single_add_to_cart_button{ background:var(--mf-rosa,#EB184D); color:#fff; border-radius:2px; font-weight:700; }
.single-product .single_add_to_cart_button:hover{ background:var(--mf-morado,#4B0C7A); }
.single-product .posted_in a,.single-product .woocommerce-breadcrumb a{ color:var(--mf-morado,#4B0C7A); }

/* ===== Menú lateral de categorías (acordeón) ===== */
.mf-cat__lista{ margin:0; padding:0; list-style:none; }
.mf-cat__fila{ display:flex; align-items:stretch; min-height:44px; transition:background-color .25s; }
.mf-cat__fila:hover{ background:#f3f3f3; }
.mf-cat__item.es-actual > .mf-cat__fila{ background:#f7e3ea; }
.mf-cat__item.es-actual > .mf-cat__fila .mf-cat__enlace{ color:var(--mf-rosa,#EB184D); font-weight:700; }
.mf-cat .mf-cat__enlace{ flex:1; display:flex; align-items:center; padding:5px 12px 5px 4px; color:#000; font-size:15px; line-height:1.3; text-decoration:none; }
.mf-cat .mf-cat__enlace:hover{ color:var(--mf-rosa,#EB184D); }
.mf-cat .mf-cat__toggle{ flex:0 0 40px; display:flex; align-items:center; justify-content:center; min-width:0; padding:0; border:0; background:transparent; color:#858585; cursor:pointer; box-shadow:none; }
.mf-cat .mf-cat__toggle:hover{ color:#000; background:transparent; }
.mf-cat .mf-cat__toggle svg{ transition:transform .3s; }
.mf-cat .mf-cat__toggle[aria-expanded="true"] svg{ transform:rotate(180deg); }
.mf-cat__panel{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .3s ease; }
.mf-cat__panel-in{ overflow:hidden; }
.mf-cat__item.es-abierto > .mf-cat__panel{ grid-template-rows:1fr; }
.mf-cat__sub{ padding-left:15px; }
.mf-cat a:focus-visible,.mf-cat button:focus-visible{ outline:2px solid var(--mf-morado,#4B0C7A); outline-offset:-2px; }
@media (prefers-reduced-motion:reduce){ .mf-cat__panel,.mf-cat .mf-cat__toggle svg{ transition:none; } }

/* Una sola insignia de oferta (la nuestra); se oculta la de Astra/Woo por defecto */
.woocommerce span.onsale:not(.mf-badge),.ast-onsale-card:not(.mf-badge){ display:none !important; }

/* Paridad con el diseño anterior: título de tarjeta 21 px en rosa */
.mf-card .mf-card__titulo,.mf-card .mf-card__titulo a{ font-size:21px; line-height:1.15; color:var(--mf-rosa,#EB184D); }
@media (max-width:767px){ .mf-card .mf-card__titulo,.mf-card .mf-card__titulo a{ font-size:17px; } }

/* ===== Archivo de la tienda: mismas medidas que el diseño anterior ===== */
.woocommerce-result-count{ display:none; }
.woocommerce .woocommerce-products-header__title,.woocommerce-page .page-title{ font-size:32px; line-height:1.1; margin:0 0 14px; }
.woocommerce ul.products{ column-gap:30px; row-gap:30px; }
.woocommerce ul.products li.product{ margin:0 !important; width:auto !important; }
@media (min-width:922px){ .archive.woocommerce #primary,.post-type-archive-product #primary{ padding-top:0; margin-top:24px; } }
.woocommerce .woocommerce-ordering{ margin:0 0 24px; }
@media (min-width:922px){
  .archive.woocommerce .site-content > .ast-container,.post-type-archive-product .site-content > .ast-container{ max-width:1180px; padding-left:0; padding-right:0; }
  .archive.woocommerce #secondary,.post-type-archive-product #secondary{ width:279px; flex:0 0 279px; padding:0; margin:0 20px 0 0; }
  .archive.woocommerce #primary,.post-type-archive-product #primary{ width:881px; flex:0 0 881px; margin-top:12px; padding:0; }
}
.woocommerce .woocommerce-products-header__title,.woocommerce-page .page-title{ line-height:1; }
.woocommerce .woocommerce-ordering select{ min-width:272px; height:37px; }
.woocommerce .woocommerce-ordering{ margin:0 0 16px; }

/* Tarjetas del archivo con las medidas del diseño anterior (títulos 21 px, precio 16 px, botón 14 px) */
body .woocommerce ul.products li.product .woocommerce-loop-product__title,body.woocommerce-page ul.products li.product .woocommerce-loop-product__title{ margin:10px 0 4px; padding:0; font-size:21px; line-height:1.15; font-weight:400; text-align:center; color:var(--mf-rosa,#EB184D); }
body .woocommerce ul.products li.product .price{ margin:0 0 10px; font-size:16px; color:#000; }
body .woocommerce ul.products li.product .price .amount,body .woocommerce ul.products li.product .price bdi{ font-size:16px; color:#000; }
body .woocommerce ul.products li.product .button,body .woocommerce ul.products li.product a.button{ display:inline-block; margin-top:auto; padding:8px 14px; font-size:14px; line-height:1.4; font-weight:700; text-align:center; }
body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap{ margin:0; }
.archive.woocommerce #secondary,.post-type-archive-product #secondary,.ast-left-sidebar #secondary{ border-right:0 !important; }
.woocommerce .woocommerce-ordering select{ border:1px solid #ccc; border-radius:3px; padding:0 10px; background-color:#fff; }
@media (min-width:922px){ .archive.woocommerce #secondary,.post-type-archive-product #secondary{ padding-top:30px; } }

/* ===== Ficha de producto: mismas medidas que el diseño anterior ===== */
@media (min-width:922px){
  .single-product .site-content > .ast-container{ max-width:1180px; padding-left:0; padding-right:0; }
  .single-product #primary{ padding:0; margin-top:0; }
  .single-product .woocommerce-breadcrumb{ margin:10px 0 20px; font-size:14.72px; }
  .single-product div.product .woocommerce-product-gallery,.single-product div.product div.images{ width:507px !important; float:left; margin:0; }
  .single-product div.product div.summary,.single-product div.product .entry-summary{ width:606px !important; float:left; margin:0 0 0 33px; padding:0; }
  .single-product div.product::after{ content:""; display:block; clear:both; }
}
.single-product .product_title{ font-size:32px; line-height:1; color:var(--mf-rosa,#EB184D); margin:0 0 20px; }
.single-product .summary .price{ font-size:20px; margin:0 0 24px; color:#000; }
.single-product .summary .price ins{ text-decoration:none; font-weight:700; }
.single-product table.variations{ background:#f2f2f2; margin:0 0 14px; padding:14px 20px; display:block; border:0; }
.single-product table.variations th,.single-product table.variations td{ padding:6px 10px; border:0; background:transparent; }
.single-product table.variations label{ font-size:13px; text-transform:uppercase; font-weight:700; }
.single-product .quantity .qty{ height:61px; width:65px; }
.single-product .single_add_to_cart_button{ height:61px; min-width:272px; font-size:16px; text-transform:uppercase; }
.single-product .woocommerce-tabs{ margin-top:30px; }
.single-product .product_meta{ margin:14px 0; font-size:14px; }
@media (min-width:922px){ .single-product .site-content,.single-product .site-content > .ast-container{ padding-top:0 !important; } .single-product .ast-woocommerce-container{ padding-top:0; margin-top:0; } }
@media (min-width:922px){ .single-product #primary{ margin-top:0 !important; } .single-product div.product div.summary,.single-product div.product .entry-summary{ float:left !important; margin:0 0 0 33px !important; } }

/* Insignia de descuento: etiqueta rosa rectangular, como antes (Astra la pintaba verde y redonda) */
body .mf-card span.onsale.mf-badge,body .woocommerce ul.products li.product span.onsale.mf-badge,body.single-product div.product span.onsale.mf-badge{ top:12px; left:12px; right:auto; width:auto; height:auto; min-width:0; min-height:0; margin:0; padding:4px 9px; border-radius:2px; background:var(--mf-rosa,#EB184D) !important; color:#fff; font-size:13px; font-weight:700; line-height:1.3; }
body .mf-card span.onsale.mf-badge,body .woocommerce ul.products li.product span.onsale.mf-badge{ position:absolute !important; width:max-content !important; max-width:70%; }
.ast-left-sidebar #primary,.archive.woocommerce #primary,.archive.woocommerce #secondary,.ast-left-sidebar #secondary{ border:0 !important; }
body .woocommerce ul.products li.product .astra-shop-thumbnail-wrap span.onsale.mf-badge{ left:12px !important; right:auto !important; width:auto !important; min-width:0 !important; max-width:70% !important; inline-size:fit-content !important; transform:none !important; text-align:center; }
.woocommerce-js ul.products li.product span.onsale.mf-badge{ position:absolute !important; top:12px; left:12px !important; right:auto !important; width:max-content !important; min-width:0; min-height:0; margin:0; padding:4px 9px; border-radius:2px; transform:none; }

/* ===== Carrusel: tarjeta con las medidas y estilos del diseño anterior ===== */
.mf-carrusel{ padding:0 30px; }
.mf-carrusel .mf-pista{ gap:10px; padding:0 !important; }
.mf-carrusel .mf-pista > .mf-card{ flex-basis:calc((100% - 30px) / 4); margin:0 !important; padding:10px 10px 20px; border:1px solid #ddd; align-items:center; text-align:center; font-family:var(--mf-fuente); }
.mf-carrusel .mf-card .mf-card__titulo{ width:100%; margin:5px 0 0; padding:0; font-family:var(--mf-fuente); line-height:1; text-align:center; }
.mf-carrusel .mf-card .mf-card__titulo a{ line-height:1; font-weight:500; }
.mf-carrusel .mf-card .price{ display:block; width:100%; margin:5px 0; font-family:var(--mf-fuente); font-size:16px; line-height:21px; font-weight:400; text-align:center; }
.mf-carrusel .mf-card .price .amount,.mf-carrusel .mf-card .price bdi{ font-family:var(--mf-fuente); font-weight:400; }
.mf-carrusel .mf-card .price del{ opacity:1; margin-right:4px; }
.mf-carrusel .mf-card .price del .amount,.mf-carrusel .mf-card .price del bdi{ color:#888 !important; }
.mf-carrusel .mf-card .price ins{ font-weight:400; text-decoration:none; background:transparent; }
.mf-carrusel .mf-card .price ins .amount,.mf-carrusel .mf-card .price ins bdi{ color:var(--mf-morado,#4B0C7A) !important; font-weight:400; }
.mf-carrusel .mf-card a.button{ align-self:center; width:auto; min-height:0; margin:auto 0 0; padding:10px 16px; border-radius:0; font-family:var(--mf-fuente); font-size:16px; line-height:16px; font-weight:400; text-align:center; text-transform:none; }
@media (max-width:1024px){ .mf-carrusel .mf-pista > .mf-card{ flex-basis:calc((100% - 20px) / 3); } } /* tablet: de 3 en 3 */
@media (max-width:767px){ .mf-carrusel{ padding:0; } .mf-carrusel .mf-pista > .mf-card{ flex-basis:calc((100% - 10px) / 2 - 14px); padding:6px 6px 14px; } .mf-carrusel .mf-card a.button{ padding:9px 8px; font-size:13px; line-height:15px; } }

/* Flechas: dibujo centrado en su círculo y buen contraste al pasar el cursor */
.mf-carrusel button.mf-flecha{ display:flex; align-items:center; justify-content:center; top:calc(50% - 18px); width:36px; height:36px; min-width:0; min-height:0; margin:0; padding:0; border:0; border-radius:50%; background:transparent; box-shadow:none; color:var(--mf-rosa,#EB184D); line-height:0; transition:background-color .2s,color .2s; }
.mf-carrusel button.mf-flecha--prev{ left:-5px; } .mf-carrusel button.mf-flecha--next{ right:-5px; }
.mf-carrusel button.mf-flecha svg{ display:block; fill:none; }
.mf-carrusel button.mf-flecha:focus{ background:transparent; color:var(--mf-rosa,#EB184D); }
.mf-carrusel button.mf-flecha:focus-visible{ outline:2px solid var(--mf-morado,#4B0C7A); outline-offset:1px; }
@media (hover:hover){ .mf-carrusel button.mf-flecha:hover{ background:var(--mf-morado,#4B0C7A); color:#fff; } }
@media (max-width:767px){ .mf-carrusel button.mf-flecha{ width:32px; height:32px; background:rgba(255,255,255,.92); box-shadow:0 1px 6px rgba(0,0,0,.22); } .mf-carrusel button.mf-flecha--prev{ left:2px; } .mf-carrusel button.mf-flecha--next{ right:2px; } .mf-carrusel button.mf-flecha:focus{ background:rgba(255,255,255,.92); } }
.mf-carrusel.sin-bucle button.mf-flecha{ display:none; }

/* Arrastre */
.mf-carrusel.arrastrable:not(.sin-bucle) .mf-pista{ cursor:grab; }
.mf-carrusel .mf-pista.libre{ scroll-snap-type:none; }
.mf-carrusel.arrastrable .mf-pista.arrastrando,.mf-carrusel.arrastrable .mf-pista.arrastrando a{ cursor:grabbing; }
.mf-carrusel .mf-pista img{ -webkit-user-drag:none; -webkit-user-select:none; user-select:none; }
@media (min-width:768px) and (max-width:1024px){ .mf-carrusel .mf-card a.button{ padding:9px 6px; font-size:13px; line-height:15px; } }
body .mf-carrusel ul.mf-pista li.mf-card .price,body .mf-carrusel ul.mf-pista li.mf-card .price .amount,body .mf-carrusel ul.mf-pista li.mf-card .price bdi{ font-size:16px !important; font-weight:400 !important; line-height:21px; }
body .mf-carrusel ul.mf-pista li.mf-card .price{ margin:5px 0 !important; }
body .mf-carrusel ul.mf-pista li.mf-card .mf-card__titulo{ margin:5px 0 0 !important; padding:0 !important; }
body .mf-carrusel ul.mf-pista li.mf-card a.button{ margin:auto 0 0 !important; }

/* Menos aire entre un carrusel y el título de la sección siguiente */
.elementor .e-con.e-parent:has(.mf-carrusel) + .e-con.e-parent{ margin-top:42px !important; --margin-top:42px; } /* 62 px visibles (el original tenía 52) */

/* El círculo de la flecha queda fuera de las tarjetas, sin tocar su borde (también en celular) */
.mf-carrusel button.mf-flecha{ top:calc(50% - 15px); width:30px; height:30px; }
.mf-carrusel button.mf-flecha--prev{ left:-6px; } .mf-carrusel button.mf-flecha--next{ right:-6px; }
.mf-carrusel button.mf-flecha svg{ width:22px; height:22px; }
@media (max-width:767px){
  .mf-carrusel{ padding:0 28px; }
  .mf-carrusel .mf-pista{ gap:8px; }
  .mf-carrusel .mf-pista > .mf-card{ flex-basis:calc((100% - 8px) / 2); }
  .mf-carrusel button.mf-flecha,.mf-carrusel button.mf-flecha:focus{ width:26px; height:26px; background:transparent; box-shadow:none; }
  .mf-carrusel button.mf-flecha--prev{ left:-2px; } .mf-carrusel button.mf-flecha--next{ right:-2px; }
  .mf-carrusel .mf-card a.button{ max-width:100%; white-space:normal; }
}
@media (max-width:420px){ body .mf-carrusel .mf-card a.button{ padding:10px 4px; font-size:12px; line-height:15px; } }

/* =========== Una sola tarjeta: la tienda (y relacionados) se ve igual que en el inicio =========== */
/* Sin los botones redondos que Astra pone sobre la foto */
ul.products li.product .ast-on-card-button{ display:none !important; }
body ul.products:not(.mf-pista) li.product{ padding:10px 10px 20px !important; border:1px solid #ddd !important; font-family:var(--mf-fuente); text-align:center; }
body ul.products:not(.mf-pista) li.product .astra-shop-summary-wrap{ display:flex; flex-direction:column; flex:1; align-items:center; width:100%; margin:0; padding:0; }
body ul.products:not(.mf-pista) li.product .woocommerce-loop-product__title{ margin:5px 0 0 !important; padding:0 !important; font-family:var(--mf-fuente) !important; font-size:21px !important; line-height:1 !important; font-weight:500 !important; }
body ul.products:not(.mf-pista) li.product .price{ display:block; width:100%; margin:5px 0 !important; }
body ul.products:not(.mf-pista) li.product .price,body ul.products:not(.mf-pista) li.product .price .amount,body ul.products:not(.mf-pista) li.product .price bdi{ font-family:var(--mf-fuente) !important; font-size:16px !important; line-height:21px !important; font-weight:400 !important; color:#000 !important; }
body ul.products:not(.mf-pista) li.product a.button{ align-self:center; margin:auto 0 0 !important; padding:10px 16px !important; border-radius:0 !important; font-family:var(--mf-fuente) !important; font-size:16px !important; line-height:16px !important; font-weight:400 !important; }

/* Oferta, igual en inicio y tienda: precio anterior gris tachado; precio final morado y en negrita */
body ul.products li.product .price.price.price del,body ul.products li.product .price.price.price del .amount,body ul.products li.product .price.price.price del bdi{ color:#888 !important; font-weight:400 !important; opacity:1 !important; }
body ul.products li.product .price.price.price del{ margin-right:4px; }
body ul.products li.product .price.price.price ins{ background:transparent; text-decoration:none; }
body ul.products li.product .price.price.price ins,body ul.products li.product .price.price.price ins .amount,body ul.products li.product .price.price.price ins bdi{ color:var(--mf-morado,#4B0C7A) !important; font-weight:700 !important; }
body .mf-carrusel ul.mf-pista li.mf-card .price ins,body .mf-carrusel ul.mf-pista li.mf-card .price ins .amount,body .mf-carrusel ul.mf-pista li.mf-card .price ins bdi{ color:var(--mf-morado,#4B0C7A) !important; font-weight:700 !important; }

/* Mismos tamaños también en tablet y celular */
@media (min-width:768px) and (max-width:1024px){
  body ul.products:not(.mf-pista) li.product .woocommerce-loop-product__title{ font-size:16px !important; line-height:1.1 !important; }
  body ul.products:not(.mf-pista) li.product a.button{ padding:9px 6px !important; font-size:13px !important; line-height:15px !important; }
}
@media (max-width:767px){
  body ul.products:not(.mf-pista) li.product{ padding:6px 6px 14px !important; }
  body ul.products:not(.mf-pista) li.product .woocommerce-loop-product__title{ font-size:17px !important; }
  body ul.products:not(.mf-pista) li.product a.button{ max-width:100%; padding:9px 8px !important; font-size:13px !important; line-height:15px !important; white-space:normal; }
}
@media (max-width:420px){ body ul.products:not(.mf-pista) li.product a.button{ padding:10px 4px !important; font-size:12px !important; } }

/* Barra lateral: «Categoría» a la altura de la ruta; acordeón con sangría y sin negrita en la categoría activa */
@media (min-width:922px){ .archive.woocommerce #secondary,.post-type-archive-product #secondary{ padding-top:4px !important; } }
.mf-cat .mf-cat__enlace{ padding-left:16px; }
.mf-cat__item.es-actual > .mf-cat__fila .mf-cat__enlace{ font-weight:400; }
/* La foto reserva su espacio desde el inicio (sin saltos mientras carga) */
body ul.products:not(.mf-pista) li.product .astra-shop-thumbnail-wrap{ align-self:stretch; width:100%; }
body ul.products:not(.mf-pista) li.product .astra-shop-thumbnail-wrap > a{ display:block; width:100%; aspect-ratio:1/1; }
body ul.products:not(.mf-pista) li.product .astra-shop-thumbnail-wrap > a img{ width:100%; height:100%; margin:0; object-fit:cover; }

/* Etiqueta de descuento: UNA sola regla para inicio, tienda y relacionados (medidas del inicio) */
html body.single-product div.product > span.onsale.mf-badge.mf-badge.mf-badge,
html body ul.products li.product span.onsale.mf-badge.mf-badge.mf-badge{ z-index:9; position:absolute !important; top:12px !important; left:12px !important; right:auto !important; margin:0 !important; padding:4px 9px !important; border-radius:2px !important; font-family:var(--mf-fuente) !important; font-size:14px !important; font-weight:400 !important; line-height:1.2 !important; width:max-content !important; height:auto !important; }

/* Acordeón sin huecos entre categorías (Astra agregaba 12 px a cada elemento de lista del lateral) */
.widget-area .mf-cat ul,.widget-area .mf-cat li,.mf-cat ul,.mf-cat li{ margin-top:0 !important; margin-bottom:0 !important; }

/* Más aire bajo la barra de anuncio en tienda, categorías y ficha */
@media (min-width:922px){
  .archive.woocommerce .site-content > .ast-container,.post-type-archive-product .site-content > .ast-container{ padding-top:28px !important; }
  .single-product .site-content > .ast-container{ padding-top:28px !important; }
}
@media (max-width:921px){ body.single-product .woocommerce-breadcrumb,body.tax-product_cat .woocommerce-breadcrumb,body.post-type-archive-product .woocommerce-breadcrumb{ padding-top:12px; } }

/* Ficha: existencias en color de marca (WooCommerce las pinta verde) y menos aire antes de las pestañas */
html body.single-product div.product .summary .stock.in-stock,html body.single-product div.product .summary .ast-stock-detail .stock.in-stock{ color:var(--mf-morado,#4B0C7A) !important; }
html body.single-product div.product .summary .woocommerce-tabs{ margin-top:0 !important; padding-top:12px !important; }

/* «Categorías» centrado entre las dos líneas, y título de la pestaña en morado y negrita */
html body.single-product div.product .summary .product_meta{ margin-bottom:0 !important; padding-top:18px !important; }
html body.single-product div.product .summary .woocommerce-tabs{ padding-top:18px !important; }
html body.single-product div.product .woocommerce-tabs ul.tabs li a{ color:var(--mf-morado,#4B0C7A) !important; font-weight:700 !important; }

/* Título de los relacionados: fucsia y centrado, como el diseño anterior */
html body.single-product section.related.products > h2{ color:var(--mf-rosa,#EB184D) !important; text-align:center !important; font-family:var(--mf-fuente); font-size:32px; font-weight:400; }
@media (max-width:767px){ html body.single-product section.related.products > h2{ font-size:25px; } }

/* En TODAS las tarjetas el precio vigente va en morado y negrita; solo el precio anterior queda gris */
html body ul.products li.product .price.price.price.price,html body ul.products li.product .price.price.price.price *{ color:var(--mf-morado,#4B0C7A) !important; font-weight:700 !important; opacity:1 !important; }
html body ul.products li.product .price.price.price.price del,html body ul.products li.product .price.price.price.price del *{ color:#888 !important; font-weight:400 !important; }

/* Ficha: aire antes de «También te podría gustar», aunque la foto sea más alta que el texto */
html body.single-product div.product > section.related.products{ clear:both; padding-top:64px !important; margin-top:0 !important; }
@media (max-width:767px){ html body.single-product div.product > section.related.products{ padding-top:40px !important; } }

/* Ficha: zona de compra más ligera (talla, cantidad y botón) */
html body.single-product div.product .summary table.variations{ margin:0 0 10px !important; padding:10px 14px 12px !important; }
html body.single-product div.product .summary table.variations tbody{ width:100%; }
html body.single-product div.product .summary table.variations tr{ margin:0 !important; }
html body.single-product div.product .summary table.variations th,html body.single-product div.product .summary table.variations td{ height:auto !important; margin:0 !important; padding:0 !important; line-height:1.3 !important; }
html body.single-product div.product .summary table.variations th.label{ padding-bottom:5px !important; }
html body.single-product div.product .summary table.variations td.value{ display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
html body.single-product div.product .summary table.variations select{ height:36px !important; min-height:0; margin:0 !important; padding:4px 30px 4px 10px !important; font-size:14px; }
html body.single-product div.product .summary table.variations a.reset_variations{ margin:0; }
html body.single-product div.product .summary form.cart .quantity{ margin:0 10px 10px 0 !important; height:44px; }
html body.single-product div.product .summary form.cart .quantity .qty{ width:56px !important; height:44px !important; min-height:0; padding:4px !important; }
html body.single-product div.product .summary form.cart .single_add_to_cart_button{ height:44px !important; min-height:0; min-width:230px; margin:0 0 10px !important; padding:0 22px !important; font-size:14px !important; line-height:44px !important; }
html body.single-product div.product .summary .woocommerce-variation{ padding:0; }
html body.single-product div.product .summary .woocommerce-variation > div{ margin-bottom:8px; }
html body.single-product div.product .summary .woocommerce-variation p{ margin:0; }
@media (max-width:767px){ html body.single-product div.product .summary form.cart .single_add_to_cart_button{ min-width:0; } }
/* «Limpiar» junto al selector, sin reservar una línea vacía */
html body.single-product div.product .summary table.variations tbody,html body.single-product div.product .summary table.variations tr,html body.single-product div.product .summary table.variations th.label{ display:block; width:100% !important; }
html body.single-product div.product .summary table.variations td.value{ display:flex !important; flex-wrap:nowrap; width:100% !important; padding-bottom:0 !important; }
html body.single-product div.product .summary table.variations select{ flex:0 1 220px; width:220px !important; }
html body.single-product div.product .summary table.variations{ padding-bottom:10px !important; }

/* Flechas de cantidad siempre visibles (ficha y carrito): así el número no parece descentrado */
.woocommerce .quantity input.qty[type="number"]::-webkit-inner-spin-button,.woocommerce .quantity input.qty[type="number"]::-webkit-outer-spin-button,.quantity input.qty[type="number"]::-webkit-inner-spin-button{ -webkit-appearance:inner-spin-button !important; opacity:1 !important; margin:0; }
.quantity input.qty[type="number"]{ -moz-appearance:auto !important; appearance:auto; text-align:center; }
html body.single-product div.product .summary table.variations select{ max-width:240px !important; }
html body.single-product.single-product div.product.product .summary.summary table.variations.variations td.value select{ flex:0 0 240px !important; width:240px !important; max-width:240px !important; min-width:0 !important; }
@media (max-width:420px){ html body.single-product.single-product div.product.product .summary.summary table.variations.variations td.value select{ flex-basis:210px !important; width:210px !important; } }

/* Lateral: el título queda cerca de su lista, como en el diseño anterior */
html body .widget-area .widget_custom_html .widget-title{ margin-bottom:0 !important; }
html body .widget-area .widget_custom_html .textwidget,html body .widget-area .widget_custom_html .mf-cat,html body .widget-area .widget_custom_html .mf-cat__lista{ margin-top:0 !important; padding-top:0 !important; }
html body .widget-area .woocommerce-widget-layered-nav .widget-title{ margin-bottom:8px !important; }

/* Tienda y categorías: aire entre el último producto y el pie */
html body.archive.woocommerce .site-content > .ast-container,html body.post-type-archive-product .site-content > .ast-container{ padding-bottom:0 !important; }
@media (max-width:767px){ html body.archive.woocommerce .site-content > .ast-container,html body.post-type-archive-product .site-content > .ast-container{ padding-bottom:0 !important; } }


/* Al añadir se abre el carrito lateral: no se muestra «Ver carrito» bajo el botón */
html body a.added_to_cart.wc-forward,html body ul.products li.product a.added_to_cart{ display:none !important; }

/* El mismo aro de carga en el resto de la tienda (carrito y pago) */
html body .woocommerce .blockUI.blockOverlay::before{ content:""; width:28px; height:28px; margin:-14px 0 0 -14px; box-sizing:border-box; border:3px solid rgba(235,24,77,.22); border-top-color:#EB184D; border-radius:50%; background:none !important; font-size:0; animation:mf-giro-t .7s linear infinite; }
@keyframes mf-giro-t{ to{ transform:rotate(360deg); } }

/* Pago: el país es fijo y se muestra como texto */
html body.woocommerce-checkout .form-row.mf-pais{ clear:both; margin-bottom:14px; padding:10px 14px; background:#f7f7f8; border-radius:4px; font-size:14px; }
html body.woocommerce-checkout .form-row.mf-pais small{ color:#666; }
/* Pago: «Departamento» con la misma altura que los campos de texto */
html body.woocommerce-checkout .woocommerce form .form-row select#billing_state,html body.woocommerce-checkout .woocommerce form .form-row select#shipping_state{ height:40px !important; min-height:40px; }
/* Mismo aire visible sobre y bajo el recuadro del país (cuenta el interlineado del rótulo «Provincia») */
html body.woocommerce-checkout .woocommerce form .form-row.mf-pais{ margin:6px 0 8px !important; padding:0 14px !important; min-height:44px; display:flex; align-items:center; }
html body.woocommerce-checkout .woocommerce form .form-row.mf-pais::before,html body.woocommerce-checkout .woocommerce form .form-row.mf-pais::after{ content:none; }
html body.woocommerce-checkout .woocommerce form .form-row#billing_phone_field,html body.woocommerce-checkout .woocommerce form .form-row#billing_dni_field,html body.woocommerce-checkout .woocommerce form .form-row#shipping_phone_field,html body.woocommerce-checkout .woocommerce form .form-row#shipping_dni_field{ margin-bottom:17px !important; }
html body.woocommerce-checkout .woocommerce form .form-row.mf-pais{ margin-top:0 !important; }

/* Pago: títulos de sección en fucsia corporativo y algo más pequeños */
html body.woocommerce-checkout .woocommerce form .woocommerce-billing-fields h3,html body.woocommerce-checkout .woocommerce form .woocommerce-additional-fields h3,html body.woocommerce-checkout .woocommerce form h3#order_review_heading,html body.woocommerce-checkout .woocommerce form .woocommerce-shipping-fields h3:not(#ship-to-different-address){ font-family:var(--mf-fuente); font-size:23px !important; line-height:1.25; font-weight:400; color:var(--mf-rosa,#EB184D) !important; }

/* Pago: todas las líneas en el fucsia corporativo (eran un rosa más claro) */
html body.woocommerce-checkout .woocommerce form .input-text,html body.woocommerce-checkout .woocommerce form select,html body.woocommerce-checkout .woocommerce form textarea,html body.woocommerce-checkout .woocommerce form .select2-container .select2-selection,
html body.woocommerce-checkout .woocommerce h3,html body.woocommerce-checkout .woocommerce .woocommerce-billing-fields,html body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields,html body.woocommerce-checkout .woocommerce .col2-set,html body.woocommerce-checkout .woocommerce .col-1,html body.woocommerce-checkout .woocommerce .col-2,
html body.woocommerce-checkout .woocommerce #order_review,html body.woocommerce-checkout .woocommerce #order_review_heading,html body.woocommerce-checkout .woocommerce table.shop_table,html body.woocommerce-checkout .woocommerce table.shop_table *,html body.woocommerce-checkout .woocommerce #payment,html body.woocommerce-checkout .woocommerce #payment ul.payment_methods,html body.woocommerce-checkout .woocommerce #payment ul.payment_methods li,html body.woocommerce-checkout .woocommerce #payment .place-order,html body.woocommerce-checkout .woocommerce form.checkout_coupon,html body.woocommerce-checkout .woocommerce form.woocommerce-checkout{ border-color:var(--mf-rosa,#EB184D) !important; }
html body.woocommerce-checkout .woocommerce form .input-text:focus,html body.woocommerce-checkout .woocommerce form select:focus,html body.woocommerce-checkout .woocommerce form textarea:focus{ border-color:var(--mf-morado,#4B0C7A) !important; }

/* Pago: el detalle del medio de pago es un globo de cita: el pico y el recuadro forman un solo bloque */

html body.woocommerce-checkout .woocommerce #payment ul.payment_methods li .payment_box{ position:relative; margin:11px 0 0 !important; border-radius:4px; background-color:#efefef !important; }
html body.woocommerce-checkout .woocommerce #payment ul.payment_methods li .payment_box::before{ content:"" !important; display:block !important; position:absolute !important; top:auto !important; bottom:100% !important; left:22px !important; right:auto !important; width:0 !important; height:0 !important; margin:0 0 -1px !important; padding:0 !important; border-style:solid !important; border-width:0 12px 12px 12px !important; border-color:transparent transparent #efefef transparent !important; }

/* Departamento | Provincia | Distrito en una sola fila (pago y Mi cuenta) */
html body .woocommerce form .form-row#billing_state_field,html body .woocommerce form .form-row#billing_provincia_field,html body .woocommerce form .form-row#billing_city_field,
html body .woocommerce form .form-row#shipping_state_field,html body .woocommerce form .form-row#shipping_provincia_field,html body .woocommerce form .form-row#shipping_city_field{ float:left !important; clear:none !important; width:calc((100% - 24px) / 3) !important; margin-right:12px !important; margin-left:0 !important; }
html body .woocommerce form .form-row#billing_state_field,html body .woocommerce form .form-row#shipping_state_field{ clear:both !important; }
html body .woocommerce form .form-row#billing_city_field,html body .woocommerce form .form-row#shipping_city_field{ margin-right:0 !important; }
html body .woocommerce form .form-row#billing_address_1_field,html body .woocommerce form .form-row#shipping_address_1_field{ clear:both !important; }
@media (max-width:767px){
  html body .woocommerce form .form-row#billing_state_field,html body .woocommerce form .form-row#shipping_state_field{ width:100% !important; margin-right:0 !important; }
  html body .woocommerce form .form-row#billing_provincia_field,html body .woocommerce form .form-row#billing_city_field,html body .woocommerce form .form-row#shipping_provincia_field,html body .woocommerce form .form-row#shipping_city_field{ width:calc((100% - 12px) / 2) !important; }
  html body .woocommerce form .form-row#billing_provincia_field,html body .woocommerce form .form-row#shipping_provincia_field{ clear:left !important; }
}

/* Listas de provincia y distrito con la misma altura y borde que los demás campos */
html body .woocommerce form .form-row select.mf-ubigeo{ width:100%; height:40px !important; min-height:40px; padding:4px 28px 4px 10px !important; border:1px solid var(--mf-rosa,#EB184D); border-radius:3px; background-color:transparent; font-family:var(--mf-fuente); font-size:16px; color:#475569; text-overflow:ellipsis; }
html body .woocommerce form .form-row select.mf-ubigeo:focus{ border-color:var(--mf-morado,#4B0C7A) !important; }
@media (max-width:767px){ html body .woocommerce form .form-row select.mf-ubigeo{ font-size:14px; padding-right:20px !important; } }

/* Envío en carrito y pago: precio claro y una sola línea de apoyo (sin dirección ni avisos largos) */
html body .woocommerce-shipping-totals .woocommerce-shipping-destination,html body .woocommerce-shipping-totals .woocommerce-shipping-contents{ display:none !important; }
html body .woocommerce-shipping-totals ul#shipping_method{ margin:0; padding:0; list-style:none; }
html body .woocommerce-shipping-totals ul#shipping_method li{ margin:0; padding:0; text-indent:0; }
html body .woocommerce-shipping-totals ul#shipping_method li label{ display:inline-block; margin:0; padding:0; text-indent:0; vertical-align:top; }
html body .woocommerce-shipping-totals .mf-envio{ display:block; line-height:1.35; }
html body .woocommerce-shipping-totals .mf-envio__precio{ display:block; font-size:16px; font-weight:700; color:var(--mf-morado,#4B0C7A); }
html body .woocommerce-shipping-totals .mf-envio__precio *{ color:inherit; font-weight:700; }
html body .woocommerce-shipping-totals .mf-envio__nota{ display:block; margin-top:2px; font-size:13px; font-weight:400; color:#666; }

/* =========== Pedido recibido =========== */
body.woocommerce-order-received .entry-header{ display:none; }
.mf-gracias{ max-width:980px; margin:36px auto 56px; font-family:var(--mf-fuente); color:#222; }
body .mf-gracias h1,body .mf-gracias h2,body .mf-gracias h3{ font-family:var(--mf-fuente); }
.mf-gracias__cabecera{ text-align:center; margin:0 0 26px; }
.mf-gracias__check{ display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:50%; background:var(--mf-rosa,#EB184D); color:#fff; }
body .mf-gracias__cabecera h1{ margin:12px 0 4px; font-size:34px; line-height:1.15; font-weight:400; color:var(--mf-rosa,#EB184D); }
.mf-gracias__cabecera p{ margin:0; font-size:16px; line-height:1.6; }
.mf-gracias__cabecera .mf-gracias__correo{ font-size:13px; color:#666; }
.mf-pago{ border:1px solid var(--mf-rosa,#EB184D); border-radius:10px; padding:0 24px 22px; overflow:hidden; }
.mf-pago__total{ display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; margin:0 -24px; padding:16px 20px; background:#fdeef2; }
.mf-pago__total span{ font-size:15px; color:#444; }
.mf-pago__total strong,.mf-pago__total strong *{ font-size:30px; font-weight:700; color:var(--mf-morado,#4B0C7A); }
body .mf-pago h2{ display:flex; align-items:center; gap:10px; margin:22px 0 12px; font-size:18px; line-height:1.3; font-weight:700; color:#111; }
.mf-pago h2 i{ display:inline-flex; align-items:center; justify-content:center; flex:0 0 26px; height:26px; border-radius:50%; background:var(--mf-rosa,#EB184D); color:#fff; font-size:13px; font-style:normal; }
.mf-cuentas{ display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:12px; }
.mf-cuenta{ display:flex; flex-direction:column; margin:0; padding:12px 14px; border:1px solid #e4e4e7; border-radius:8px; background:#fff; }
body .mf-cuenta h3{ margin:0; font-size:15px; line-height:1.3; font-weight:700; color:#111; }
.mf-cuenta p{ margin:0; }
.mf-cuenta__tipo{ font-size:12px; line-height:1.4; color:#777; }
.mf-cuenta__fila{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; }
.mf-cuenta__fila b{ font-size:18px; color:var(--mf-morado,#4B0C7A); overflow-wrap:anywhere; }
.mf-cuenta__fila--cci span{ font-size:12px; color:#333; overflow-wrap:anywhere; }
html body .mf-gracias button.mf-copiar{ flex:0 0 auto; min-height:0; margin:0; padding:6px 10px; border:1px solid var(--mf-rosa,#EB184D); border-radius:4px; background:#fff; color:var(--mf-rosa,#EB184D); font-family:var(--mf-fuente); font-size:12px; font-weight:700; line-height:1.2; cursor:pointer; }
html body .mf-gracias button.mf-copiar:hover,html body .mf-gracias button.mf-copiar.es-copiado{ background:var(--mf-morado,#4B0C7A); border-color:var(--mf-morado,#4B0C7A); color:#fff; }
.mf-cuenta__titular{ margin-top:auto !important; padding-top:8px; font-size:12.500px; color:#555; }
html body .mf-gracias a.mf-voucher{ display:flex; align-items:center; justify-content:center; gap:10px; max-width:420px; min-height:54px; margin:0 auto; padding:12px 22px; border-radius:6px; background:#128C4B; color:#fff; font-size:16px; font-weight:700; text-align:center; text-decoration:none; transition:background-color .2s; }
html body .mf-gracias a.mf-voucher:hover{ background:#0d6e3a; color:#fff; }
.mf-pago__ayuda{ margin:8px 0 0; font-size:13px; text-align:center; color:#666; }
.mf-pago__nota{ margin:18px 0 0; padding-top:14px; border-top:1px solid #f3c4d0; font-size:14px; text-align:center; }
.mf-resumen{ display:grid; grid-template-columns:1.4fr 1fr; gap:18px; margin-top:20px; }
.mf-resumen section{ padding:18px 20px; border:1px solid #e4e4e7; border-radius:10px; }
body .mf-resumen h2{ margin:0 0 10px; font-size:18px; line-height:1.3; font-weight:400; color:var(--mf-rosa,#EB184D); }
.mf-resumen__items{ margin:0 0 10px; padding:0; list-style:none; }
.mf-resumen__items li{ display:flex; justify-content:space-between; gap:12px; margin:0; padding:6px 0; border-bottom:1px solid #eee; font-size:14.500px; }
.mf-resumen__items li b{ white-space:nowrap; font-weight:400; }
.mf-resumen dl{ display:grid; grid-template-columns:1fr auto; gap:4px 12px; margin:0; font-size:14.500px; }
.mf-resumen dt{ margin:0; font-weight:400; } .mf-resumen dd{ margin:0; text-align:right; }
.mf-resumen .mf-resumen__total{ padding-top:8px; border-top:1px solid #ddd; font-size:17px; font-weight:700; color:var(--mf-morado,#4B0C7A); }
.mf-resumen .mf-resumen__total *{ color:inherit; font-weight:700; }
.mf-resumen p{ margin:0 0 8px; font-size:14.500px; line-height:1.55; }
.mf-resumen .mf-resumen__pago,.mf-resumen .mf-resumen__comprador{ margin:10px 0 0; font-size:12.500px; color:#666; }
@media (max-width:767px){
  .mf-gracias{ margin:20px auto 36px; }
  body .mf-gracias__cabecera h1{ font-size:27px; }
  .mf-pago{ padding:0 14px 18px; } .mf-pago__total{ margin:0 -14px; flex-direction:column; gap:2px; }
  .mf-cuentas,.mf-resumen{ grid-template-columns:1fr; }
}
html body .mf-gracias ul.mf-resumen__items,html body .mf-gracias ul.mf-resumen__items li{ margin-left:0 !important; padding-left:0 !important; }

/* Portátiles pequeños y tablet horizontal: la barra lateral y la cuadrícula se ajustan (en escritorio ancho quedan como estaban) */
@media (min-width:922px) and (max-width:1219px){
  .archive.woocommerce .site-content > .ast-container,.post-type-archive-product .site-content > .ast-container,body.mf-con-filtrar .site-content > .ast-container{ max-width:100%; padding-left:20px; padding-right:20px; column-gap:20px; }
  .archive.woocommerce #secondary,.post-type-archive-product #secondary,body.mf-con-filtrar #secondary{ width:230px; flex:0 0 230px; margin:0; padding-left:0; padding-right:0; }
  .archive.woocommerce #primary,.post-type-archive-product #primary,body.mf-con-filtrar #primary{ width:auto; flex:1 1 0; min-width:0; margin:0; padding-left:0; padding-right:0; }
  .archive.woocommerce #primary ul.products,.post-type-archive-product #primary ul.products,body.mf-con-filtrar #primary ul.products{ column-gap:16px; }
}
