/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.4.9.1779561081
*/

/* ═══════════════════════════════════════════════════════
   FIX: TOAST DE CALCULADORA FLOTANTE
   ════════════════════════════════════════════════════════ */
.ll-calc-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}

/* ═══════════════════════════════════════════════════════
   FIX: ALINEACIÓN Y MÁRGENES DE WOOCOMMERCE BLOCKS (Carrito, Checkout)
   ════════════════════════════════════════════════════════ */
.woocommerce,
.woocommerce-page,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Arreglo para que las imágenes del carrito no queden cortadas */
.wc-block-cart-items .wc-block-cart-item__image {
    padding-left: 5px !important;
    margin-right: 20px !important;
}

.wc-block-cart-items .wc-block-cart-item__image img {
    border-radius: 6px;
    object-fit: cover;
}

/* Ajuste de márgenes para pantallas móviles */
@media (max-width: 768px) {
    .woocommerce,
    .woocommerce-page,
    .wp-block-woocommerce-cart,
    .wp-block-woocommerce-checkout {
        margin: 20px auto !important;
        padding: 0 15px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   FIX DEFINITIVO: GRILLA DE PRODUCTOS WOOCOMMERCE (4 COLUMNAS)
   ════════════════════════════════════════════════════════ */
/* Contenedor principal de la grilla */
.woocommerce ul.products,
.woocommerce-page ul.products,
.woocommerce[class*="columns-"] ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: 1200px !important; 
}

/* Adaptación responsiva para Tablets (2 columnas) */
@media (max-width: 992px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .woocommerce[class*="columns-"] ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Adaptación responsiva para Celulares (1 columna) */
@media (max-width: 576px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .woocommerce[class*="columns-"] ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Limpiar pseudo-elementos obsoletos que rompen el diseño */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* Destruir el CSS nativo de columnas y estandarizar ancho */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce[class*="columns-"] ul.products li.product {
    float: none !important;
    margin: 0 !important;       
    width: 100% !important;     
    max-width: 100% !important; 
    min-width: 0 !important; 
    display: flex !important;
    flex-direction: column !important;
    clear: none !important;
}

/* ESTANDARIZACIÓN DE IMÁGENES: fluidas y perfectamente cuadradas */
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    margin-bottom: 15px !important; 
}

/* Empujar el botón al fondo siempre */
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
}

/* ═══════════════════════════════════════════════════════
   DISEÑO VIDRIOSO (GLASSMORPHISM) EN PÁGINA INDIVIDUAL
   ════════════════════════════════════════════════════════ */
/* 1. Neutralizar el fondo blanco nativo de la lupa y contenedores */
.woocommerce-product-gallery figure,
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery .woocommerce-product-gallery__image,
.woocommerce-product-gallery .woocommerce-product-gallery__image a,
.zoomImg {
    background-color: transparent !important;
    background: transparent !important;
}

/* 2. Aplicar el efecto cristal al contenedor de la imagen */
.woocommerce-product-gallery .woocommerce-product-gallery__image {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* 3. Reacción al Hover: Brillo verde estilo L-LEDS */
.woocommerce-product-gallery .woocommerce-product-gallery__image:hover {
    background: rgba(125, 218, 0, 0.05) !important;
    border-color: rgba(125, 218, 0, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(125, 218, 0, 0.1) !important;
}

/* 4. FIX LUPA: Ocultar la imagen estática de fondo al pasar el mouse */
.woocommerce-product-gallery .woocommerce-product-gallery__image:hover a img {
    opacity: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   CAMBIOS ESTÉTICOS DE COLOR Y BOTONES (L-LEDS IDENTITY)
   ════════════════════════════════════════════════════════ */
/* 1. Cambiar rojo por verde en los links de Categorías (Página individual) */
.product_meta .posted_in a,
.product_meta .tagged_as a {
    color: #7DDA00 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.product_meta .posted_in a:hover,
.product_meta .tagged_as a:hover {
    color: #88ee00 !important;
}

/* 2. Cambiar rojo por verde en el título de los productos en el Carrito */
.woocommerce-cart table.cart td.product-name a,
.wc-block-components-product-name,
.wc-block-cart-items td.wc-block-cart-item__product .wc-block-components-product-name {
    color: #7DDA00 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}
.woocommerce-cart table.cart td.product-name a:hover,
.wc-block-components-product-name:hover {
    color: #88ee00 !important;
}

/* 3. Botón de "Pasar al pago" activo y llamativo */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-button {
    background-color: #7DDA00 !important;
    color: #050A00 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 8px !important;
    padding: 18px 24px !important;
    box-shadow: 0 4px 15px rgba(125, 218, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-button:hover {
    background-color: #88ee00 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(125, 218, 0, 0.4) !important;
}

/* ═══════════════════════════════════════════════════════
   OCULTAR CARTEL BLANCO NATIVO DE WOOCOMMERCE ("Se agregó a tu carrito")
   ════════════════════════════════════════════════════════ */
.single-product .woocommerce-message,
.archive .woocommerce-message {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════
   ESTRELLAS DE VALORACIÓN AL ESTILO L-LEDS
   ════════════════════════════════════════════════════════ */
/* Cambia el color nativo (rojo/amarillo) al verde de la marca */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before,
.woocommerce p.stars a::before,
.woocommerce-page .star-rating span::before,
.woocommerce-page .star-rating::before,
.woocommerce-page p.stars a::before {
    color: #7DDA00 !important;
}

/* Efecto de brillo al pasar el mouse o seleccionar una puntuación */
.woocommerce p.stars a:hover::before,
.woocommerce p.stars.selected a.active::before,
.woocommerce-page p.stars a:hover::before,
.woocommerce-page p.stars.selected a.active::before {
    color: #88ee00 !important;
}