.elementor-kit-8{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-color-e7381af:#E8721A;--e-global-color-fa5d6d7:#1A1A1A;--e-global-color-d3c57f9:#999999;--e-global-color-73fbe41:#AEC355;--e-global-color-fe51763:#2D5A22;--e-global-color-e926193:#F2FAF0;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;font-family:"Inter", Sans-serif;}.elementor-kit-8 button,.elementor-kit-8 input[type="button"],.elementor-kit-8 input[type="submit"],.elementor-kit-8 .elementor-button{background-color:var( --e-global-color-73fbe41 );font-weight:700;color:var( --e-global-color-fa5d6d7 );border-style:none;border-radius:20px 20px 20px 20px;}.elementor-kit-8 button:hover,.elementor-kit-8 button:focus,.elementor-kit-8 input[type="button"]:hover,.elementor-kit-8 input[type="button"]:focus,.elementor-kit-8 input[type="submit"]:hover,.elementor-kit-8 input[type="submit"]:focus,.elementor-kit-8 .elementor-button:hover,.elementor-kit-8 .elementor-button:focus{background-color:var( --e-global-color-e7381af );color:#FFFFFF;}.elementor-kit-8 e-page-transition{background-color:#FFBC7D;}.elementor-kit-8 a{color:var( --e-global-color-fe51763 );font-family:"Inter", Sans-serif;}.elementor-kit-8 h1{font-family:"Inter", Sans-serif;}.elementor-kit-8 h2{font-family:"Inter", Sans-serif;}.elementor-kit-8 h3{font-family:"Inter", Sans-serif;}.elementor-kit-8 h4{font-family:"Inter", Sans-serif;}.elementor-kit-8 h5{font-family:"Inter", Sans-serif;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1280px;}.e-con{--container-max-width:1280px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}.site-header .site-branding{flex-direction:column;align-items:stretch;}.site-header{padding-inline-end:0px;padding-inline-start:0px;}.site-footer .site-branding{flex-direction:column;align-items:stretch;}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}
/* Start custom CSS */a {
    text-decoration: none !important;
}

/* Eliminar cualquier tipo de borde, contorno o sombra en el botón del carrito */
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button:hover,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button:focus,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button:active,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button:focus-visible,
#elementor-menu-cart__toggle_button,
#elementor-menu-cart__toggle_button:focus,
#elementor-menu-cart__toggle_button:active {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Opcional: Asegurar que el icono no cambie de color al hacer clic si Elementor lo está forzando */
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button:focus .elementor-button-icon svg,
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button:active .elementor-button-icon svg {
    fill: currentColor !important;
}

/* Eliminar el borde y fondo de enfoque del botón del carrito en Elementor */
#elementor-menu-cart__toggle_button:focus,
#elementor-menu-cart__toggle_button:active,
#elementor-menu-cart__toggle_button:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}


/*============TIENDA=============*/
/* ==========================================================================
   WOOCOMMERCE: LOOP DE PRODUCTOS PERSONALIZADO
   ========================================================================== */

/* 1. Contenedor principal de la tarjeta */
li.product.type-product {
    list-style: none !important;
    border: 1px solid #f0f0f0 !important; /* Borde muy sutil */
    border-radius: 12px !important;
    padding: 15px !important;
    background-color: #ffffff !important;
    position: relative !important;
    box-sizing: border-box !important;
    isolation: isolate; /* FUNDAMENTAL para que el fondo de la imagen no se escape */
    transition: box-shadow 0.3s ease !important;
}

li.product.type-product:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}

/* 2. Área de la imagen y el recuadro beige de fondo */
.woocommerce-LoopProduct-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Creamos el fondo beige detrás de la imagen */
.woocommerce-LoopProduct-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 280px; /* Altura del recuadro beige */
    background-color: #f8f7f3; /* Color beige/gris claro de la muestra original */
    border-radius: 12px;
    z-index: -1; /* Lo enviamos detrás de la imagen */
}

/* 3. La imagen del producto (con el truco para quitar el fondo blanco) */
.woocommerce-LoopProduct-link img {
    width: 100% !important;
    height: 280px !important; /* Debe ser igual a la altura del ::before */
    object-fit: contain !important;
    padding: 25px !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
    background: transparent !important;
    /* ESTA ES LA MAGIA: fusiona el blanco de tu JPG con el fondo beige */
    mix-blend-mode: multiply !important; 
}

/* 4. Etiqueta de ¡Oferta! (Forzada a la izquierda) */
li.product .onsale {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important; /* Forzado a la izquierda */
    right: auto !important; /* Quitamos cualquier alineación a la derecha */
    background-color: #e74c3c !important;
    color: #fff !important;
    padding: 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 10 !important;
    margin: 0 !important;
    line-height: 1;
    min-height: 0px !important;
}

/* 5. Botón de Lista de Deseos / Corazón (Forzado a la derecha SOLO EN EL LOOP) */
li.product .tinv-wraper {
    position: absolute !important;
    top: 25px !important;
    right: 25px !important; /* Forzado a la derecha */
    left: auto !important; /* Quitamos cualquier alineación a la izquierda */
    z-index: 10 !important;
}

li.product .tinvwl_add_to_wishlist_button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    color: #888888 !important; /* Color gris para el ícono del corazón */
}

li.product .tinvwl-tooltip {
    display: none !important;
}

/* 6. Textos (Título y Precio) ajustados a los tonos de tu muestra */
.woocommerce-loop-product__title {
    font-size: 14px !important;
    color: #333333 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

li.product .price {
    font-size: 15px !important;
    color: #8c9c27 !important; /* Verde oliva idéntico a tu muestra */
    font-weight: 600 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

li.product .price del, 
li.product .price del .amount {
    font-size: 13px !important;
    color: #aaaaaa !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

li.product .price ins {
    text-decoration: none !important;
}

/* ==========================================================================
   BOTÓN AÑADIR AL CARRITO (ESTADOS: NORMAL, CARGANDO, AÑADIDO)
   ========================================================================== */

/* Botón base alineado exactamente en la esquina inferior del recuadro beige */
li.product .button {
    position: absolute !important;
    top: 220px !important; /* Altura calculada para quedar dentro de la caja de 280px */
    right: 25px !important;
    width: 36px !important;
    height: 36px !important;
    background-color: #aec74f !important; /* Verde claro del botón original */
    border-radius: 50% !important;
    font-size: 0 !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    z-index: 10 !important;
    transition: transform 0.2s ease !important;
}

li.product .button:hover {
    transform: scale(1.05) !important;
}

/* Estado 1: Normal (La cruz centrada +) */
li.product .button::after {
    content: '+' !important;
    font-size: 24px !important;
    color: #333333 !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

@media (max-width: 767px) {
    li.product .button::after {    
        top: 48% !important;
    }
}

/* Estado 2: Cargando (Icono de recarga ↻) */
li.product .button.loading::after {
    content: '↻' !important; 
    font-size: 18px !important;
}

/* Estado 3: Añadido al carrito (Reset para centrado perfecto del check ✓) */
li.product .button.added {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 0 !important;
}

li.product .button.added::after {
    content: '✓' !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Limpieza de elementos extra inyectados por WooCommerce o el tema */
li.product .button.added::before,
li.product .button.loading::before {
    display: none !important;
}

/* Ocultar el enlace "Ver carrito" que aparece abajo y deforma la tarjeta */
li.product .added_to_cart.wc-forward {
    display: none !important;
}

/* ==========================================================================
   ETIQUETA DE AGOTADO (OUT OF STOCK)
   ========================================================================== */

/* 1. Etiqueta base de "Agotado" (creada virtualmente) */
li.product.outofstock .woocommerce-LoopProduct-link::after {
    content: 'Agotado' !important;
    position: absolute !important;
    top: 10px !important; /* Posición normal si no hay oferta */
    left: 10px !important;
    background-color: #777777 !important; /* Gris oscuro elegante */
    color: #ffffff !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 10 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important; /* Opcional: en mayúsculas */
}

/* 2. Lógica de colisión: Si está en Oferta Y Agotado al mismo tiempo */
li.product.sale.outofstock .woocommerce-LoopProduct-link::after {
    top: 45px !important; /* Baja la etiqueta para quedar justo debajo del cartel rojo */
}

/* 3. Opcional: Volver gris el botón "+" si está agotado para dar feedback visual */
li.product.outofstock .button {
    background-color: #cccccc !important;
    pointer-events: none !important; /* Opcional: Evita que se pueda hacer clic en el botón si lo deseas */
}


/* ==========================================================================
   AJUSTES RESPONSIVE (TABLET Y MÓVIL)
   ========================================================================== */

@media (max-width: 1024px) {
    li.product.type-product {
        padding: 0px !important; /* Tu ajuste sin padding */
    }
    
    /* Nota: Al quitar el padding de la tarjeta (0px), es posible que necesites 
       reajustar el posicionamiento del botón (+) y las etiquetas de "Oferta", 
       ya que ahora estarán más lejos del borde visual de la caja. 
       Puedes hacerlo añadiendo esas reglas aquí dentro también. */
}

/* Solo para dispositivos móviles */
@media screen and (max-width: 768px) {
    .woocommerce-loop-product__title {
        padding: 0px 10px !important;
    }

    .woocommerce ul.products li.product .price {
        padding: 0px 10px;
    }
}/* End custom CSS */