/*
==========================================================
HEADER
==========================================================
*/

.header-actions
{
    display:flex;
    align-items:center;
    gap:24px;
}

/*
==========================================================
USER MENU
==========================================================
*/

.user-menu
{
    display:flex;
    align-items:center;
    gap:14px;
}

.header-user
{
    font-size:.95rem;
    font-weight:500;
    color:#333;
}

.header-link
{
    text-decoration:none;
    color:#333;
    font-size:.9rem;
    transition:.2s;
}

.header-link:hover
{
    color:#b9924c;
}

/*
==========================================================
STATUS
==========================================================
*/

.header-status
{
    padding:4px 10px;
    border-radius:20px;
    font-size:.72rem;
    font-weight:600;
    white-space:nowrap;
}

.status-pending
{
    background:#fff4d6;
    color:#b8860b;
}

.status-active
{
    background:#eaf8ee;
    color:#2e8b57;
}


/* 
========================================================== 
CART
========================================================== 
*/

.cart-button
{
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    text-decoration: none;
    color: #333;

    cursor: pointer;
}


/* ICONO BOLSA */

.cart-button i
{
    display: block;

    font-size: 1.4rem;

    line-height: 1;
}


/* CONTADOR */

.cart-counter
{
    position: absolute;

    top: -4px;
    right: -4px;

    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #b9924c;
    color: white;

    font-size: .65rem;
    font-weight: 700;
    line-height: 1;

    pointer-events: none;
}


/* HOVER */

.cart-button:hover
{
    background: #f5f5f5;

    color: #333;
}
/*
==========================================================
USER INFO
==========================================================
*/

.user-info
{
    display:flex;

    flex-direction:column;

    align-items:flex-start;

    gap:3px;
}

/*
==========================================================
USER DROPDOWN
==========================================================
*/

.user-dropdown
{
    position:relative;
}

.user-button
{
    display:flex;
    align-items:center;
    gap:8px;
    background:none;
    border:none;
    cursor:pointer;
    font-size:.95rem;
    font-weight:500;
    color:#333;
}

.dropdown-arrow
{
    font-size:.7rem;
}

.dropdown-menu
{
    position:absolute;
    top:42px;
    right:0;
    width:220px;
    background:white;
    border-radius:10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    padding:14px;
    display:none;
    z-index:1000;
}

.dropdown-menu.show
{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.dropdown-menu a
{
    text-decoration:none;
    color:#333;
    transition:.2s;
}

.dropdown-menu a:hover
{
    color:#b9924c;
}

.dropdown-menu hr
{
    border:none;
    border-top:1px solid #ececec;
}
.dropdown-arrow
{
    transition:.25s ease;
}

.user-button.active .dropdown-arrow
{
    transform:rotate(180deg);
}
