/**
Theme Name: astra-child-daey
Author: Mauricio Osorio
Author URI: https://daey.com.co
Description: Tema para el market place daey.com.co
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child-daey
Template: astra
*/

/* =======================================================
   1. WOOCOMMERCE & CANTIDADES (ORIGINAL)
   ======================================================= */
.woocommerce .quantity input.qty[type="number"] {
    width: 3em !important;
    max-width: 90px !important;
    min-width: 50px !important;
    text-align: center !important;
}

/* =======================================================
   3. ETIQUETAS DE PRODUCTO (ORIGINAL)
   ======================================================= */
.daey-tags-container {
    margin-top: 15px;
    margin-bottom: 15px;
}

.daey-tag {
    display: inline-block;
    background-color: #eef7f2;
    color: #008a45;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    border: 1px solid #d1e9dd;
}

.daey-tag a {
    text-decoration: none !important;
    color: inherit !important;
}

.daey-tags-container h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
}

/* =======================================================
   4. LÓGICA DE VISIBILIDAD DE MENÚ (ORIGINAL)
   ======================================================= */
body.logged-in .menu-item.menu-solo-visitantes {
    display: none !important;
}

body:not(.logged-in) .menu-item.menu-solo-registrados {
    display: none !important;
}

/* =======================================================
   5. COMPORTAMIENTO MENÚ MÓVIL (ORIGINAL)
   ======================================================= */
@media (max-width: 921px) {
    .main-navigation .menu-item-has-children {
        position: relative !important;
    }

    .main-navigation .menu-item-has-children > .ast-menu-toggle {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 999 !important;
        background: transparent !important;
        border: none !important;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-right: 20px;
    }

    .main-navigation .menu-item-has-children > .ast-menu-toggle .ast-icon {
        position: static !important; 
        margin-right: 0;
    }

    .main-navigation .menu-item-has-children > .menu-link {
        pointer-events: none !important;
    }
}

/* =======================================================
   6. BOTÓN "ENTRAR" (VERSIÓN RECUPERADA Y PERFECTA)
   ======================================================= */

/* --- A. MÓVIL (Celular < 921px) --- */
@media (max-width: 920px) {

    /* 1. Contenedor Padre (Menú) */
    .ast-header-break-point .main-header-menu {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 2. Contenedor del Botón (LI) */
    .ast-header-break-point .main-header-menu .menu-item.btn-menu-movil-login {
        order: -1 !important; /* Mover al principio */
        
        display: block !important;
        width: 100% !important;
        text-align: center !important; /* Centrado horizontal */
        
        /* Ajuste fino para que no se vea "gordo" */
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        
        background-color: transparent !important;
        border-bottom: 1px solid #f0f0f0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    /* 3. El Botón (A) - Píldora Centrada */
    .ast-header-break-point .main-header-menu .menu-item.btn-menu-movil-login a {
        display: inline-block !important; /* Vital: Ajustarse al contenido */
        width: auto !important;
        min-width: 130px !important;
        margin: 0 auto !important;
        
        /* Estilo Azul Perlado */
        background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%) !important;
        background-size: 200% auto !important;
        color: #ffffff !important;
        
        border: none !important;
        border-radius: 50px !important;
        padding: 10px 30px !important;
        
        font-size: 13px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        box-shadow: 0 4px 15px rgba(0, 82, 212, 0.3) !important;
        
        /* Evita que se vea gordo */
        line-height: 1 !important; 
        height: auto !important;
        
        transition: all 0.4s ease !important;
    }
    
    .ast-header-break-point .main-header-menu .menu-item.btn-menu-movil-login a:active {
        transform: scale(0.96);
    }
}

/* --- B. ESCRITORIO (PC > 921px) --- */
@media (min-width: 921px) {
    
    /* Contenedor */
    .main-header-menu .btn-menu-movil-login {
        margin-left: 20px !important;
        /* Esto arregla la alineación en escritorio */
        display: inline-flex !important; 
        align-self: center !important; 
        align-items: center !important;
        height: auto !important;
        border: none !important;
    }

    /* Botón */
    .main-header-menu .btn-menu-movil-login a {
        background: linear-gradient(90deg, #0052D4 0%, #6FB1FC 100%) !important;
        background-size: 200% auto !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 50px !important;
        padding: 8px 25px !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        line-height: 1 !important;
        white-space: nowrap;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
        transition: all 0.4s ease !important;
        margin: 0 !important;
        display: block !important;
    }

    .main-header-menu .btn-menu-movil-login a:hover {
        background-position: right center !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(67, 100, 247, 0.4) !important;
    }
}

/* =======================================================
   7. ESTILOS MENÚ MI CUENTA
   ======================================================= */

/* Estilo General */
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: opacity 0.3s;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center;
    padding: 14px 20px !important;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border-radius: 10px;
    color: #333 !important;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 15px !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #ffffff;
    border-color: #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    color: #FF6210 !important;
}

/* Emojis */
.woocommerce-MyAccount-navigation ul li a i, 
.woocommerce-MyAccount-navigation ul li a::before {
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif !important;
    font-style: normal !important;
    font-weight: normal !important;
    content: "" !important;
    margin-right: 12px !important;
    font-size: 20px !important;
    width: auto !important;
    line-height: 1;
    display: inline-block !important;
}

/* Asignación Individual */
li.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\1F3E0" !important; }
li.woocommerce-MyAccount-navigation-link--orders a::before { content: "\1F4E6" !important; }
li.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\2B07" !important; }
li.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\1F4CD" !important; }
li.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\1F464" !important; }
li.woocommerce-MyAccount-navigation-link--my-membership a::before,
li.woocommerce-MyAccount-navigation-link--subscriptions a::before { content: "\1F4C5" !important; }
li.woocommerce-MyAccount-navigation-link--seller a::before,
li.dokan-dashboard a::before { content: "\1F3EA" !important; }
li.woocommerce-MyAccount-navigation-link--afiliados a::before { content: "\1F91D" !important; }
li.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\1F512" !important; }

/* Móvil y Tablet (< 992px) */
@media (max-width: 992px) {
    .daey-account-menu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #FF6210; 
        color: white;
        padding: 12px 20px;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;
        margin-bottom: 20px;
        box-shadow: 0 4px 10px rgba(255, 98, 16, 0.3);
    }
    .toggle-icon { font-size: 22px; }
    .woocommerce-MyAccount-navigation ul {
        display: none; 
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 25px;
    }
    .woocommerce-MyAccount-content {
        width: 100% !important;
    }
}

/* Escritorio */
@media (min-width: 993px) {
    .daey-account-menu-toggle {
        display: none !important;
    }
}

/* =======================================================
   8. ESTILOS DE LA VENTANA MODAL (LOGIN POPUP)
   ======================================================= */
.daey-modal-overlay {
    position: fixed;
    z-index: 999999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(4px); 
    display: flex;
    justify-content: center;
    align-items: center;
}
.daey-modal-content {
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;
    animation: daeySlideDown 0.3s ease-out;
}
@keyframes daeySlideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.daey-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #bbb;
    cursor: pointer;
    transition: color 0.2s;
}
.daey-close-modal:hover { color: #333; }
.daey-modal-header { text-align: center; margin-bottom: 25px; }
.daey-modal-header h3 { margin: 0; font-size: 22px; color: #2c3e50; }
.daey-modal-header p { margin: 8px 0 0; color: #7f8c8d; font-size: 14px; }
.daey-input-group { margin-bottom: 15px; }
.daey-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 15px;
    box-sizing: border-box; 
    transition: all 0.3s;
}
.daey-input:focus {
    background: #fff;
    border-color: #FF6210;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 98, 16, 0.1);
}
.daey-toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #95a5a6;
    font-size: 16px;
}
.daey-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 25px;
    color: #666;
}
.daey-modal-actions a { color: #FF6210; font-weight: 600; text-decoration: none; }
.daey-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #FF6210;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 98, 16, 0.3);
}
.daey-submit-btn:hover {
    background-color: #e5560d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 98, 16, 0.4);
}
body.daey-no-scroll { overflow: hidden; }

/* --- LIMPIEZA DE PÁGINA RECUPERAR CONTRASEÑA --- */

/* 1. Ocultar la barra lateral (widget area) solo en esta página */
body.woocommerce-lost-password .ast-right-sidebar, 
body.woocommerce-lost-password #secondary,
body.woocommerce-lost-password .widget-area {
    display: none !important;
}

/* 2. Forzar que el contenido ocupe el 100% del ancho */
body.woocommerce-lost-password #primary,
body.woocommerce-lost-password .site-content > .ast-container .content-area {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    border: none !important;
}

/* 3. (Opcional) Centrar un poco más el formulario si se ve muy ancho */
body.woocommerce-lost-password .woocommerce-lost-password {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

