/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
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: 1.0.1
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
*/

/* CART */
.elementor-menu-cart__main{
	width:500px;
}
.elementor-menu-cart__main img{
	border-radius:10px;
}

/* ============================================================
   QUICK ADD TO CART - CSS COMPLETO
   ============================================================
   
   Estilos para:
   - Botón con icono SVG externo (sin background ni border)
   - Toast de notificación al añadir producto
   - Modal de variaciones para productos variables
   
   Pegar en: Elementor > Site Settings > Custom CSS
   ============================================================ */


/* ----------------------------------------
   1. BOTÓN AÑADIR AL CARRITO (solo SVG)
   ---------------------------------------- */
.quick-add-to-cart {
    background: none;
    border: none;
    padding: 0!important;
    margin: 0!important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
	background-color:none!important

}

.quick-add-to-cart:hover {
	border-radius:50%!important;
}

.quick-add-to-cart:focus {
    outline: none;
}

.quick-add-to-cart.loading {
    opacity: 0.5;
    pointer-events: none;
    animation: quick-cart-pulse 0.8s ease infinite;
}

.quick-add-to-cart__icon {
    display: block;
    width: 50px;
    height: 50px;
    pointer-events: none; /* Los clics van al botón, no al img */
}


/* ----------------------------------------
   2. TOAST DE NOTIFICACIÓN
   ---------------------------------------- */
.quick-cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0D273D;
    color: white;
    padding: 14px 24px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-width: 90vw;
}

.quick-cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.quick-cart-toast--error {
    background: #C53030;
}


/* ----------------------------------------
   3. MODAL DE VARIACIONES
   ---------------------------------------- */
.quick-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.quick-cart-modal.show {
    opacity: 1;
    pointer-events: auto;
}

/* Overlay oscuro de fondo */
.quick-cart-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 39, 61, 0.5);
}

/* Contenido del modal */
.quick-cart-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Botón de cerrar (X) */
.quick-cart-modal__close {
	float:right;
	border-radius: 100px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.quick-cart-modal__close:hover {
    border-radius: 100px;
    background: rgba(13, 39, 61, 0.08);
    opacity: 1
}

/* Título del producto */
.quick-cart-modal__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: #0D273D;
    margin: 0 0 20px;
    padding-right: 30px;
    line-height: 1.2;
}

/* Cada campo del formulario */
.quick-cart-modal__field {
    margin-bottom: 16px;
}

.quick-cart-modal__field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2D3748;
    margin-bottom: 6px;
}

/* Select de variaciones */
.quick-cart-modal__field select {
    width: 100%;
    height: 42px;
    border: 1px solid #E2E8F0;
    border-radius: 5px;
    padding: 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #2D3748;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D3748' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

.quick-cart-modal__field select:focus {
    outline: none;
    border-color: #0D273D;
}

/* Botón submit del modal */
.quick-cart-modal__submit {
    width: 100%;
    background: #0D273D;
    color: white;
    border: 1px solid #0D273D;
    border-radius: 5px;
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s ease;
	border-radius: 100px !important;
}

.quick-cart-modal__submit:hover {
    opacity: 0.9;
	border-radius:100px!important;
}

/* ----------------------------------------
   BOTONES DE OPCIONES DE VARIACIÓN
   ---------------------------------------- */

/* Label "Selecciona el tamaño:" */
.quick-cart-modal__field-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 12px;
}

/* Contenedor de los botones */
.quick-cart-modal__options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 4px;
}

/* Cada botón de opción */
.quick-cart-modal__option {
    flex: 1;
    min-width: 150px;
    background: white;
    border: 2px solid #0D273D;
    border-radius: 100px;
    padding: 14px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #0D273D;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

/* Hover - con border radius forzado */
.quick-cart-modal__option:hover {
    background: rgba(13, 39, 61, 0.05);
    border-radius: 100px !important;
}

/* Estado seleccionado - color vinoso */
.quick-cart-modal__option.selected {
    background: #7F1835;
    color: white;
    border-color: #7F1835;
    border-radius: 100px !important;
}

.quick-cart-modal__option.selected:hover {
    background: #7F1835;
    border-color: #7F1835;
    border-radius: 100px !important;
    opacity: 0.95;
}

/* ----------------------------------------
   4. RESPONSIVE MOBILE
   ---------------------------------------- */
@media (max-width: 480px) {
    .quick-cart-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
    
    .quick-cart-modal__content {
        padding: 24px 20px;
    }
    
    .quick-cart-modal__title {
        font-size: .8rem!important;
    }
	.quick-add-to-cart__icon {
		width: 40px;
		height: 40px;
	}
	.quick-cart-modal__option {
		padding: 7px!important;
		font-size: 12px!important;
	}
}


/* ----------------------------------------
   16. BOTÓN ICONO DEL CARRITO (toggle)
   ---------------------------------------- */
a#elementor-menu-cart__toggle_button,
.elementor-menu-cart__toggle_button.elementor-button {
    border: 0 !important;
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}

/* Estado hover y focus - mantener limpio */
a#elementor-menu-cart__toggle_button:hover,
a#elementor-menu-cart__toggle_button:focus,
.elementor-menu-cart__toggle_button.elementor-button:hover,
.elementor-menu-cart__toggle_button.elementor-button:focus {
    border: 0 !important;
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}
