/* ==========================================
HEADER MULTITELA 2.0
========================================== */
.header{
position:sticky;
top:0;
left:0;
width:100%;
z-index:9999;
background:#0d0d0d;
border-bottom:1px solid #1d1d1d;
}
/* ==========================================
CONTAINER
========================================== */
.header .container{
max-width:1450px;
margin:auto;
padding:16px 24px;
display:flex;
align-items:center;
gap:30px;
overflow:hidden;
}
/* ==========================================
LOGO
========================================== */
.logo{
flex-shrink:0;
}
.logo img{
height:42px;
display:block;
}
/* ===========================
MENU DESKTOP
=========================== */
.menu{
display:flex;
align-items:center;
gap:22px;
margin-left:20px;
flex:1;
overflow-x:auto;
overflow-y:hidden;
white-space:nowrap;
scrollbar-width:none;
-ms-overflow-style:none;
}
.menu::-webkit-scrollbar{
display:none;
}
.menu a{
flex-shrink:0;
color:#fff;
text-decoration:none;
font-size:15px;
font-weight:500;
transition:.25s;
}
.menu a:hover{
color:#00b8a6;
}
/* ==========================================
BUSCA
========================================== */
.header-search{
width:340px;
min-width:340px;
margin-left:20px;
position:relative;
flex-shrink:0;
}
#campoBusca{
width:100%;
height:46px;
border:none;
outline:none;
background:#1c1c1c;
color:#fff;
border-radius:30px;
padding:0 58px 0 20px;
font-size:15px;
}
#campoBusca::placeholder{
color:#8b8b8b;
}
#campoBusca:focus{
box-shadow:0 0 0 2px #00b8a6;
}
#btnBusca{
position:absolute;
top:4px;
right:4px;
width:38px;
height:38px;
border:none;
border-radius:50%;
background:#009687;
color:white;
cursor:pointer;
transition:.25s;
}
#btnBusca:hover{
background:#00b8a6;
}
/* ==========================================
AUTOCOMPLETE
========================================== */
#autocompleteBusca{
position:absolute;
top:52px;
left:0;
width:100%;
background:#171717;
border-radius:14px;
overflow:hidden;
box-shadow:0 15px 40px rgba(0,0,0,.45);
z-index:99999;
}
/* ==========================================
BOTÃO MOBILE
========================================== */
.menu-toggle{
display:none;
width:46px;
height:46px;
border:none;
border-radius:12px;
background:#1b1b1b;
color:#fff;
font-size:28px;
cursor:pointer;
transition:.3s;
align-items:center;
justify-content:center;
}
.menu-toggle:hover{
background:#009687;
}
/* ==========================================
TABLET
========================================== */
@media(max-width:1100px){
.header .container{
flex-wrap:wrap;
}
.menu{
gap:16px;
}
.header-search{
width:100%;
order:4;
}
}
/* ==========================================
CELULAR
========================================== */
@media(max-width:768px){
.header .container{
display:grid;
grid-template-columns:auto 1fr auto;
align-items:center;
gap:15px;
}
/* LOGO */
.logo{
order:2;
justify-self:center;
}
.logo img{
height:38px;
}
/* BOTÃO */
.menu-toggle{
display:flex;
order:1;
font-size:32px;
background:none;
border:none;
color:#fff;
cursor:pointer;
}
/* BUSCA */
.header-search{
order:3;
grid-column:1 / span 3;
width:100%;
}
#campoBusca{
width:100%;
}
/* MENU LATERAL */
.menu{
position:fixed;
top:0;
left:-320px;
width:300px;
height:100vh;
background:#111;
display:flex;
flex-direction:column;
padding-top:90px;
transition:left .35s ease;
z-index:1099999;
box-shadow:15px 0 35px rgba(0,0,0,.5);
overflow-y:auto;
overflow-x:hidden;
-webkit-overflow-scrolling:touch;
scrollbar-width:thin;
scrollbar-color:#009687 #111;
}
.menu.ativo{
left:0;
}
.menu a{
width:100%;
padding:18px 30px;
color:#fff;
text-decoration:none;
font-size:17px;
border-bottom:1px solid #222;
}
.menu a:hover{
background:#1d1d1d;
color:#00b8a6;
}
.menu-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,.65);
backdrop-filter:blur(5px);
opacity:0;
visibility:hidden;
transition:.3s;
z-index:999998;
}
.menu-overlay.ativo{
opacity:1;
visibility:visible;
}
/* Scroll do menu */
.menu::-webkit-scrollbar{
width:8px;
}
.menu::-webkit-scrollbar-track{
background:#111;
}
.menu::-webkit-scrollbar-thumb{
background:#009687;
border-radius:20px;
}
.menu::-webkit-scrollbar-thumb:hover{
background:#00b8a6;
}