/* =========================
        HEADER PRO
========================= */

.header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    padding:12px 25px;

    background:#111;
}



/* =========================
        SEARCH
========================= */

.search{
    display:flex;
    align-items:center;

    background:white;
    border-radius:50px;

    overflow:hidden;

    width:100%;
    max-width:450px;
}

.search input{
    flex:1;
    border:none;
    outline:none;

    padding:10px 15px;
}

.search button{
    width:45px;
    height:45px;

    border:none;
    background:#d90000;
    color:white;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
}


/* =========================
        LOGO
========================= */

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
}

.logo img{
    width:52px;
    height:52px;
    border-radius:14px;
    object-fit:cover;
}

.logo-info h2{
    color:white;
    font-size:22px;
    font-weight:800;
}

.logo-info span{
    color:#d90000;
}

.logo-info small{
    color:#aaa;
    font-size:12px;
}



/* =========================
        ACCIONES
========================= */

.header-right{
    display:flex;
    align-items:center;
    gap:14px;
}

/* PUBLICAR */

.btn-publicar{
    background:#d90000;
    color:white;

    border:none;
    padding:10px 18px;

    border-radius:12px;
    font-weight:bold;

    cursor:pointer;
    transition:.25s;
}

.btn-publicar:hover{
    transform:translateY(-2px);
    background:#ff1a1a;
}

/* CARRITO */

.cart-btn{
    position:relative;

    width:44px;
    height:44px;

    border-radius:50%;
    background:#222;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;
    font-size:18px;

    transition:.25s;
}

.cart-btn:hover{
    background:#d90000;
    transform:scale(1.05);
}

.cart-count{
    position:absolute;
    top:-5px;
    right:-5px;

    width:18px;
    height:18px;

    background:#d90000;
    color:white;

    font-size:11px;
    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}

/* SALDO */

.saldo-box{
    background:#1a1a1a;
    color:#00ff88;

    padding:8px 12px;
    border-radius:10px;

    font-weight:bold;
    font-size:13px;
}

/* USER / ADMIN */

#userBox,
#adminBtn{
    display:flex;
    align-items:center;
}

/* =========================
      RESPONSIVE HEADER
========================= */

@media(max-width:900px){

.search{
    display:none;
}

.header{
    padding:10px 15px;
}

}

/* FOTO PERFIL HEADER */

.perfil-btn{

    background:transparent;
    border:none;
    cursor:pointer;
    padding:0;

}

.header-profile-img{

    width:42px;
    height:42px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid #d60000;

    transition:.2s;

}

.header-profile-img:hover{

    transform:scale(1.08);
    border-color:#ff2b2b;

}