/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* CSS ANDRES */

a.button.return-to-shop {
    text-align: center;
    background: red;
    color: #ffffff !important;
    padding: 15px;
    transition-duration: 1s;
}

a.button.return-to-shop:hover {
    background: black !important;
}

a.checkout-button.button.alt.wc-forward:hover {
    background: #00836c !important;
}

.woocommerce div.product div.images {
    margin-bottom: 0em !important;
}

.product-pdf-button .pdf-icon {
    width: 21px;
    height: auto;
    vertical-align: middle;
}


/* Contenedor general de la tarjeta del producto */
ul.products li.product {
    position: relative;
    padding-bottom: 60px; /* espacio para que el botón no se solape */
}

/* Ícono */
.icon-wsp-loop {
    width: 20px !important ;
    height: 20px !important;
    object-fit: contain;
    margin: 0px !important;
}

/* Texto */
.texto-wsp-loop {
    white-space: nowrap;
}

/* ---------------------------- */
/* 🔥 En móviles: ocultar ícono */
/* ---------------------------- */
@media (max-width: 768px) {
    .icon-wsp-loop {
        display: none;
    }

    /* centrado perfecto del texto al ocultar ícono */
    .boton-wsp-loop {
        justify-content: center;
        font-size: 12px !important;
    }
}





/* CONTENEDOR GENERAL */
ul.products li.product {
    position: relative;
}

/* CONTENEDOR DE BOTONES */
.botones-flotantes-producto {
    position: absolute;
    top: 5px;
    left: 11px;

    display: flex;
    flex-direction: column;
    gap: 7px;

    opacity: 0;
    transition: all .25s ease;
    z-index: 10;
}

/* MOSTRAR SOLO EN HOVER */
ul.products li.product:hover .botones-flotantes-producto {
    opacity: 1;
    transform: translateY(0);
}

/* BOTÓN BASE */
.btn-float {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: all .25s ease;
}

.btn-float:hover {
    filter: invert(1);
}

/* ÍCONO */
.btn-float img {
    width: 19px !important;
    height: 19px !important;
    object-fit: contain;
    margin: 0px !important;
}
