/* Gyalux ecosystem header parity: web + tienda + clientes */
@media (min-width: 992px) {
    header.gx-header-principal .gx-odoo-cart-btn,
    header.gx-header-principal .gx-odoo-user-btn {
        position: relative !important;
        width: auto !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        padding: 5px 11px !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        background: rgba(255,255,255,.75) !important;
        color: #001A3A !important;
        border: 1px solid rgba(0,26,58,.08) !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
        font-family: Inter, sans-serif !important;
        font-size: 14px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        outline: none !important;
        transition: color .16s ease, border-color .16s ease, background .16s ease !important;
    }

    header.gx-header-principal .gx-odoo-cart-btn {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
    }

    header.gx-header-principal .gx-odoo-user-btn {
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
    }

    header.gx-header-principal .gx-odoo-cart-btn > div,
    header.gx-header-principal .gx-odoo-user-btn > div {
        display: block !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    header.gx-header-principal .gx-odoo-cart-btn i.fa-stack,
    header.gx-header-principal .gx-odoo-user-btn i.fa-stack {
        width: 2em !important;
        min-width: 2em !important;
        height: 2em !important;
        min-height: 2em !important;
        line-height: 2em !important;
        font-size: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

header.gx-header-principal .gx-odoo-user-btn::after {
    content: "" !important;
    margin: 0 0 0 4px !important;
    border-top: .3em solid currentColor !important;
    border-right: .3em solid transparent !important;
    border-left: .3em solid transparent !important;
    border-bottom: 0 !important;
    transform: scale(.75) !important;
    transform-origin: center !important;
}

/* Hover/activo canónico de las acciones del header. */
header.gx-header-principal .gx-odoo-cart-btn:hover,
header.gx-header-principal .gx-odoo-cart-btn:focus-visible,
header.gx-header-principal .gx-odoo-user-btn:hover,
header.gx-header-principal .gx-odoo-user-btn:focus-visible,
header.gx-header-principal .gx-user-menu.gx-user-menu-open .gx-odoo-user-btn,
header.gx-header-principal .gx-header-action-active {
    color: #CBA358 !important;
    border-color: rgba(203,163,88,.58) !important;
    background: rgba(255,255,255,.94) !important;
}

header.gx-header-principal .gx-user-menu {
    position: relative !important;
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

header.gx-header-principal .gx-user-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: 245px !important;
    min-width: 245px !important;
    max-width: 245px !important;
    padding: 8px !important;
    display: none !important;
    background: #fff !important;
    border: 1px solid rgba(0,26,58,.10) !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 40px rgba(0,26,58,.12) !important;
    z-index: 10000 !important;
    box-sizing: border-box !important;
}


/* F05C.1 v0.4.6 · paridad del menú principal con la web corporativa.
   Los enlaces de los submenús se alinean a la izquierda en todas las superficies. */
header.gx-header-principal #navbar .gx-nav-dropdown a {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* El menú se abre por clic en las cuatro superficies; no por hover. */
header.gx-header-principal .gx-user-menu.gx-user-menu-open .gx-user-dropdown {
    display: block !important;
}

/* En la web PHP el estado de usuario llega desde clientes.gyalux.com.
   Mientras se resuelve, el contenido no se muestra para evitar el parpadeo invitado -> conectado. */
header.gx-header-principal.gx-ecosystem-state-loading .gx-user-dropdown {
    visibility: hidden !important;
    pointer-events: none !important;
}

header.gx-header-principal .gx-user-dropdown a,
header.gx-header-principal .gx-user-dropdown-action {
    width: 100% !important;
    min-height: 36px !important;
    padding: 9px 10px !important;
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 9px !important;
    color: #001A3A !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 7px !important;
    font-family: Inter, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    cursor: pointer !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

header.gx-header-principal .gx-user-dropdown a:hover,
header.gx-header-principal .gx-user-dropdown a:focus-visible,
header.gx-header-principal .gx-user-dropdown-action:hover,
header.gx-header-principal .gx-user-dropdown-action:focus-visible,
header.gx-header-principal .gx-user-dropdown a.gx-client-current-link {
    color: #CBA358 !important;
    background: #F3F5F8 !important;
    outline: none !important;
}

header.gx-header-principal .gx-user-dropdown a.gx-client-current-link {
    font-weight: 600 !important;
}

header.gx-header-principal .gx-user-dropdown a i,
header.gx-header-principal .gx-user-dropdown-action i {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    text-align: center !important;
    line-height: 1 !important;
}

header.gx-header-principal .gx-user-dropdown .gx-user-label {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
}

header.gx-header-principal .gx-user-dropdown form {
    margin: 0 !important;
    padding: 0 !important;
}

header.gx-header-principal .gx-user-dropdown .dropdown-divider {
    height: 1px !important;
    min-height: 1px !important;
    margin: 6px 0 !important;
    padding: 0 !important;
    background: rgba(0,26,58,.10) !important;
    border: 0 !important;
}

header.gx-header-principal .gx-cart-badge {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    background: #CBA358 !important;
    color: #001A3A !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-family: Inter, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

header.gx-header-principal .gx-cart-badge.gx-cart-badge-visible {
    display: inline-flex !important;
}


/* F05C.1 v0.4.5 · paridad exacta del boton de usuario en Area de Clientes */
@media (min-width: 992px) {
    header.gx-header-principal.gx-client-header .gx-odoo-user-btn {
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        padding: 5px 11px !important;
        gap: 0 !important;
        column-gap: 0 !important;
        justify-content: center !important;
    }

    header.gx-header-principal.gx-client-header .gx-odoo-user-btn > div {
        flex: 0 0 auto !important;
    }

    header.gx-header-principal.gx-client-header .gx-odoo-user-btn::after {
        flex: 0 0 auto !important;
        margin-left: 4px !important;
        margin-right: 0 !important;
    }
}

/* F6-UI-05 / SOLO GAP MENU PRINCIPAL */
@media (min-width: 992px) {
    html body header.gx-header-principal #navbar {
        gap: 28px !important;
    }
}
