/* 
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 */
.div_evowap_btn .evowap_btn{    box-shadow:none!important;}
.evowap_btn:hover {
    background: #21bd5b;
    box-shadow:none!important;
    color: #fff !important;
    transform: translateY(-3px); 
}
section.related.products h2 {
    display: none;
}
span.elementor-cta__button.elementor-button.elementor-size-{border-radius: 8px 8px 0px 0px!important;}


/* 1. Ocultar Extracto e Info en todas las sillas */
[class*="product_cat-silla"] .ocultar-en-silla {
    display: none !important;
}

/* 2. Centrar el Título y Encabezado ACF usando tus nuevas clases */
[class*="product_cat-silla"] .titulo-producto .elementor-widget-container,
[class*="product_cat-silla"] .titulo-producto .elementor-heading-title,
[class*="product_cat-silla"] .nombre-producto .elementor-widget-container,
[class*="product_cat-silla"] .nombre-producto .elementor-heading-title {
    text-align: center !important;
	display:block;
    width: 100% !important;
}

/* 3. Alinear el botón al centro */
[class*="product_cat-silla"] .tarjeta-producto .elementor-button-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

@media (max-width: 540px) {
    /* 1. Convertimos la galería en una fila flexible que salta de línea (Wrap) */
    .gallery-spacing-custom .gallery {
        display: flex !important;
        flex-direction: row !important; /* En fila, una tras otra */
        flex-wrap: wrap !important; /* Saltan a la siguiente línea si no caben */
        gap: 15px !important; /* Espacio de 15px entre cada cuadrito */
        justify-content: flex-start !important; /* Alineadas a la izquierda */
        margin: 0 !important;
        width: 100% !important;
    }

    /* 2. Forzamos cada item a ser un cuadrado exacto de 50px */
    .gallery-spacing-custom .gallery .gallery-item {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        padding: 0 !important; 
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* 3. Aseguramos que la imagen llene el cuadrado perfecto */
    .gallery-spacing-custom .gallery .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Recorta proporcionalmente para que quede cuadrado */
        border-radius: 4px; /* Opcional: bordes ligeramente redondeados para que se vea más pro */
        border: 1px solid #eaeaea; /* Opcional: un borde sutil para que destaquen las cubiertas blancas */
    }
}