/* ==========================================================
   CASA MIXTECO
   CMX-17C · HEADER PC · CUENTA + CARRITO · DISEÑO

   CONTROLA:
   - Diseño de Mi Cuenta en Header PC
   - Diseño del Carrito en Header PC
   - Iconos
   - Textos
   - Contador del carrito
   - Hover
   - Alineación

   NO CONTROLA:
   - PHP de Cuenta/Carrito
   - Buscador
   - Logo
   - Categorías
   - Header móvil
   - AJAX del contador
   ========================================================== */


/* ==========================================================
   01 · CONTENEDOR GENERAL
   ========================================================== */

#cmx-header-pc-actions {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   02 · CADA ACCIÓN
   ========================================================== */

#cmx-header-pc-actions .cmx-header-pc-action {
    position: relative;

    min-width: 78px;
    height: 46px;

    margin: 0;
    padding: 4px 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: var(--cmx-blanco, #FFFFFF) !important;

    font-family:
        var(--cmx-fuente, Arial, sans-serif);

    text-decoration: none !important;

    box-sizing: border-box;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


/* ==========================================================
   03 · HOVER
   ========================================================== */

#cmx-header-pc-actions .cmx-header-pc-action:hover,
#cmx-header-pc-actions .cmx-header-pc-action:focus {

    background-color:
        rgba(255, 255, 255, 0.12);

    color:
        var(--cmx-blanco, #FFFFFF) !important;

    text-decoration: none !important;
}


/* ==========================================================
   04 · ICONOS
   ========================================================== */

#cmx-header-pc-actions
.cmx-header-pc-action__icon {

    position: relative;

    flex: 0 0 auto;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    color:
        var(--cmx-blanco, #FFFFFF);
}


#cmx-header-pc-actions
.cmx-header-pc-action__icon svg {

    display: block;

    width: 23px;
    height: 23px;

    margin: 0;

    color:
        var(--cmx-blanco, #FFFFFF);

    stroke:
        currentColor;
}


/* ==========================================================
   05 · BLOQUE DE TEXTO
   ========================================================== */

#cmx-header-pc-actions
.cmx-header-pc-action__text {

    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    gap: 1px;

    color:
        var(--cmx-blanco, #FFFFFF);

    line-height: 1.05;
}


/* ==========================================================
   06 · TEXTO PEQUEÑO
   ========================================================== */

#cmx-header-pc-actions
.cmx-header-pc-action__small {

    display: block;

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 9px;
    font-weight: 400;

    white-space: nowrap;
}


/* ==========================================================
   07 · TEXTO PRINCIPAL
   ========================================================== */

#cmx-header-pc-actions
.cmx-header-pc-action__label {

    display: block;

    color:
        var(--cmx-blanco, #FFFFFF);

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}


/* ==========================================================
   08 · CARRITO
   ========================================================== */

#cmx-header-pc-actions
.cmx-header-pc-cart {

    position: relative;
}


/* ==========================================================
   09 · CONTADOR DEL CARRITO
   ========================================================== */

#cmx-header-pc-cart-count {

    position: absolute;

    top: -7px;
    right: -8px;

    z-index: 2;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid var(--cmx-azul, #0000A6);

    border-radius: 999px;

    background:
        var(--cmx-amarillo, #FFEE00);

    color:
        var(--cmx-negro, #000000);

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    box-sizing: border-box;
}


/* ==========================================================
   10 · CARRITO VACÍO
   ========================================================== */

#cmx-header-pc-cart-count.is-empty {

    display: none;
}


/* ==========================================================
   11 · EVITAR ESTILOS DE GENERATEPRESS
   ========================================================== */

#cmx-header-pc-actions a,
#cmx-header-pc-actions a:visited {

    color:
        var(--cmx-blanco, #FFFFFF) !important;

    text-decoration: none !important;
}


/* ==========================================================
   12 · FOCO POR TECLADO
   ========================================================== */

#cmx-header-pc-actions
.cmx-header-pc-action:focus-visible {

    outline:
        2px solid var(--cmx-amarillo, #FFEE00);

    outline-offset: 2px;
}


/* ==========================================================
   13 · SOLO ESCRITORIO
   ========================================================== */

@media (min-width: 769px) {

    #cmx-header-pc-actions {
        display: flex;
    }

}


/* ==========================================================
   14 · OCULTAR EN MÓVIL

   El header móvil tendrá Cuenta/Carrito independientes
   en CMX-20+.
   ========================================================== */

@media (max-width: 768px) {

    #cmx-header-pc-actions {
        display: none !important;
    }

}