/* =========================
LUPA BASE
========================= */

.onchair-header-search-link{
display:inline-flex;
align-items:center;
justify-content:center;
width:38px;
height:38px;
border-radius:50%;
background:#0F0F0F;
color:#F2F2F2;
text-decoration:none;
transition:.25s ease;
border:1px solid rgba(200,161,63,0.25);
}

.onchair-header-search-icon{
width:18px;
height:18px;
}

/* =========================
DESKTOP (mantém como está)
========================= */

.onchair-header-search-slot{
display:flex;
align-items:center;
justify-content:flex-end;
height:100%;
}

/* =========================
MOBILE (CORREÇÃO REAL)
========================= */

@media (max-width: 991px){

/* =========================
REMOVE CARRINHO MOBILE
========================= */

[href="#cart-offcanvas-mobile"],
[data-bs-target="#cart-offcanvas-mobile"],
.tbay-offcanvas-cart{
display:none !important;
}

/* =========================
HEADER BASE
========================= */

.topbar-device-mobile{
position:relative;
height:60px;
display:flex;
align-items:center;
}

/* =========================
HAMBURGUER (ESQUERDA)
========================= */

.topbar-device-mobile .btn-offcanvas,
.topbar-device-mobile .menu-toggle,
.topbar-device-mobile .mobile-menu,
.topbar-device-mobile .active-mobile{
position:absolute;
left:12px;
top:50%;
transform:translateY(-50%);
z-index:2;
}

/* =========================
LOGO CENTRAL PERFEITA
========================= */

.topbar-device-mobile .logo,
.topbar-device-mobile .site-logo,
.topbar-device-mobile .mobile-logo,
.topbar-device-mobile .navbar-header,
.topbar-device-mobile .header-logo{
position:absolute;
left:50%;
top:50%;
transform:translate(-50%, -50%);
z-index:1;
text-align:center;
}

/* evita deformar logo */
.topbar-device-mobile img{
max-height:40px;
width:auto;
}

/* =========================
LUPA (DIREITA)
========================= */

.onchair-mobile-search-slot{
position:absolute;
right:12px;
top:50%;
transform:translateY(-50%);
z-index:2;
}

/* =========================
ESTILO LUPA
========================= */

.topbar-device-mobile .onchair-header-search-link{
width:38px;
height:38px;
border-radius:50%;
background:#0F0F0F;
color:#F2F2F2;
border:1px solid rgba(200,161,63,0.25);
display:flex;
align-items:center;
justify-content:center;
}

.topbar-device-mobile .onchair-header-search-icon{
width:18px;
height:18px;
}

/* =========================
REMOVE LIXO DO TEMA
========================= */

.topbar-device-mobile .page-title,
.topbar-device-mobile .title-page{
display:none !important;
}

}

@media (max-width: 991px){

[href="#cart-offcanvas-mobile"],
[data-bs-target="#cart-offcanvas-mobile"],
.tbay-offcanvas-cart{
display:none !important;
}

.onchair-mobile-header-custom{
display:grid !important;
grid-template-columns:48px 1fr 48px;
align-items:center;
height:60px;
padding:0 12px;
background:#000;
}

.onchair-mobile-header-left,
.onchair-mobile-header-center,
.onchair-mobile-header-right{
display:flex;
align-items:center;
}

.onchair-mobile-header-left{
justify-content:flex-start;
}

.onchair-mobile-header-center{
justify-content:center;
min-width:0;
}

.onchair-mobile-header-right{
justify-content:flex-end;
}

.onchair-mobile-header-center img{
max-height:90px;
width:auto;
display:block;
}

.onchair-mobile-header-right .onchair-header-search-link{
width:38px;
height:38px;
border-radius:50%;
background:#0F0F0F;
color:#F2F2F2;
border:1px solid rgba(200,161,63,0.25);
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
box-shadow:none;
}

.onchair-mobile-header-right .onchair-header-search-icon{
width:18px;
height:18px;
display:block;
}

.topbar-device-mobile .page-title,
.topbar-device-mobile .title-page{
display:none !important;
}

}

.header-default-row{
display:flex;
align-items:center;
}

.header-actions{
display:flex;
align-items:center;
justify-content:flex-end;
}

.onchair-header-search-slot{
display:flex;
align-items:center;
justify-content:flex-end;
height:100%;
min-height:80px;
}

.onchair-header-search-link{
display:inline-flex;
align-items:center;
justify-content:center;
width:42px;
height:42px;
border-radius:50%;
background:#0F0F0F;
color:#F2F2F2;
text-decoration:none;
transition:.25s ease;
box-shadow:0 4px 12px rgba(0,0,0,0.12);
border:1px solid rgba(200,161,63,0.18);
}

.onchair-header-search-link:hover{
background:#1A1A1A;
color:#E6C878;
border-color:rgba(200,161,63,0.4);
transform:translateY(-1px);
}

.onchair-header-search-icon{
width:20px;
height:20px;
display:block;
}

.onchair-header-search-slot{
display:flex;
align-items:center;
justify-content:center;
}

.onchair-header-search-link{
display:inline-flex;
align-items:center;
justify-content:center;
width:42px;
height:42px;
border-radius:50%;
background:#0F0F0F;
color:#F2F2F2;
text-decoration:none;
transition:.25s ease;
box-shadow:0 4px 12px rgba(0,0,0,0.12);
border:1px solid rgba(200,161,63,0.18);
}

.onchair-header-search-link:hover{
background:#1A1A1A;
color:#E6C878;
border-color:rgba(200,161,63,0.4);
transform:translateY(-1px);
}

.onchair-header-search-icon{
width:20px;
height:20px;
display:block;
}

.onchair-header-acoes,
.onchair-header-acoes .elementor-widget-wrap,
.onchair-header-acoes .e-con-inner{
display:flex !important;
flex-direction:row !important;
align-items:center !important;
justify-content:flex-end !important;
gap:14px !important;
flex-wrap:nowrap !important;
}

.onchair-header-acoes .elementor-widget-shortcode,
.onchair-header-acoes .elementor-widget-button{
width:auto !important;
max-width:none !important;
margin:0 !important;
display:flex !important;
align-items:center !important;
}

.onchair-header-acoes .onchair-header-search-slot{
display:flex !important;
align-items:center !important;
justify-content:center !important;
margin:0 !important;
width:auto !important;
}

.onchair-header-acoes .elementor-button-wrapper{
display:flex !important;
align-items:center !important;
}

.onchair-header-acoes-desktop{
display:flex !important;
flex-direction:row !important;
align-items:center !important;
justify-content:flex-end !important;
gap:16px !important;
flex-wrap:nowrap !important;
}

/* Elementor às vezes usa esse wrapper interno */
.onchair-header-acoes-desktop > .e-con-inner{
display:flex !important;
flex-direction:row !important;
align-items:center !important;
justify-content:flex-end !important;
gap:16px !important;
flex-wrap:nowrap !important;
}

/* widgets não podem ocupar 100% */
.onchair-header-acoes-desktop .elementor-element,
.onchair-header-acoes-desktop .elementor-widget,
.onchair-header-acoes-desktop .elementor-widget-container{
width:auto !important;
max-width:max-content !important;
margin:0 !important;
padding:0 !important;
}

/* remove qualquer empilhamento */
.onchair-header-acoes-desktop .elementor-widget-shortcode,
.onchair-header-acoes-desktop .elementor-widget-button{
display:inline-flex !important;
width:auto !important;
}

/* lupa */
.onchair-header-acoes-desktop .onchair-header-search-slot{
display:inline-flex !important;
width:auto !important;
min-width:42px !important;
margin:0 !important;
padding:0 !important;
}

.onchair-header-acoes-desktop .onchair-header-search-link{
width:50px !important;
height:50px !important;
min-width:50px !important;
margin:0 !important;
}

/* botão */
.onchair-header-acoes-desktop,
.onchair-header-acoes-desktop > .e-con-inner{
display:flex !important;
flex-direction:row !important;
align-items:center !important; /* centraliza vertical */
justify-content:flex-end !important;
gap:14px !important;
height:100% !important;
}

/* garante que os itens também centralizem */
.onchair-header-acoes-desktop .elementor-widget,
.onchair-header-acoes-desktop .elementor-widget-container{
display:flex !important;
align-items:center !important;
height:auto !important;
}

/* lupa */
.onchair-header-search-link{
display:flex !important;
align-items:center !important;
justify-content:center !important;
}

/* botão */
.onchair-header-acoes-desktop .elementor-button-wrapper{
display:flex !important;
align-items:center !important;
}