/*
 * Licelice V180.1 — Header público compacto e responsivo.
 * Camada final: deve ser carregada depois dos demais estilos públicos.
 */
:root{
  --lic-header-purple:#5b1e78;
  --lic-header-purple-dark:#42145a;
  --lic-header-pink:#ef168c;
  --lic-header-line:#f0e2f6;
}

html,body{max-width:100%;overflow-x:hidden}

/* Estrutura principal: compacta sem cobrir o conteúdo. */
.header-wrapper{
  position:sticky!important;
  top:0!important;
  left:0!important;
  right:0!important;
  z-index:1032!important;
  width:100%!important;
  overflow:visible!important;
  background:#fff!important;
  border-bottom:1px solid rgba(91,30,120,.10)!important;
  box-shadow:0 8px 24px rgba(54,20,74,.075)!important;
}

/* Faixa superior reduzida. */
.top-bar{
  display:flex!important;
  align-items:center!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  padding:0!important;
  overflow:hidden!important;
  color:#fff!important;
  background:linear-gradient(90deg,#4b1267 0%,#8b20a3 52%,#f02ca8 100%)!important;
}
.top-bar>.container{
  width:100%!important;
  min-height:28px!important;
  height:28px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px!important;
}
.top-bar-content{
  width:100%!important;
  height:28px!important;
  min-height:28px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.top-msg{
  display:none!important;
  width:100%!important;
  min-height:28px!important;
  align-items:center!important;
  justify-content:center!important;
  padding:1px 8px!important;
  color:#fff!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:.69rem!important;
  line-height:1.05!important;
  font-weight:850!important;
  letter-spacing:-.01em!important;
}
.top-msg.active{display:flex!important}
.top-msg strong,.top-msg a{color:#fff!important}
.top-msg i{margin-right:5px!important}

/* Linha de logo, busca, conta e carrinho. */
.header-main{
  position:relative!important;
  z-index:3!important;
  padding:0!important;
  background:rgba(255,255,255,.985)!important;
  backdrop-filter:blur(14px);
  box-shadow:none!important;
}
.header-main>.container{
  width:100%!important;
  max-width:1220px!important;
  padding-left:14px!important;
  padding-right:14px!important;
}
.header-main .row{
  min-height:62px!important;
  margin:0!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
}
.logo-img{
  display:block!important;
  width:auto!important;
  max-width:150px!important;
  max-height:52px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 7px 14px rgba(91,30,120,.08))!important;
}
.search-box,.search-container{min-width:0!important;box-shadow:none!important}
.search-input{
  height:42px!important;
  min-height:42px!important;
  padding:8px 52px 8px 22px!important;
  border-radius:999px!important;
  background:#fbf9fc!important;
  box-shadow:0 6px 18px rgba(54,20,74,.045)!important;
}
.search-btn{
  top:3px!important;
  right:4px!important;
  width:36px!important;
  height:36px!important;
  min-height:36px!important;
}
.account-trigger-lice,.cart-btn-premium{
  min-height:46px!important;
  height:46px!important;
  border-radius:999px!important;
  box-shadow:0 6px 18px rgba(54,20,74,.065)!important;
}
.icon-circle-cart{width:36px!important;height:36px!important;flex:0 0 36px!important}

/* Menu desktop em uma única linha; nunca cria a segunda faixa branca. */
.nav-categories{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  min-height:38px!important;
  background:#fff!important;
  border-top:1px solid var(--lic-header-line)!important;
  border-bottom:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.nav-categories>.container{
  width:100%!important;
  max-width:1240px!important;
  padding-left:10px!important;
  padding-right:10px!important;
  overflow:hidden!important;
}
.nav-categories .nav{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:38px!important;
  margin:0!important;
  padding:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch;
}
.nav-categories .nav::-webkit-scrollbar{display:none!important}
.nav-categories .nav-item{
  flex:0 0 auto!important;
  margin:0!important;
}
.nav-categories .nav-item.ms-auto{margin-left:0!important}
.nav-categories .menu-link{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  height:38px!important;
  min-height:38px!important;
  padding:5px 8px!important;
  border-radius:10px!important;
  white-space:nowrap!important;
  font-size:.67rem!important;
  line-height:1!important;
  font-weight:900!important;
}
.nav-categories .menu-link:hover{background:#f8ecfb!important;color:var(--lic-header-purple)!important}

/* Os benefícios já aparecem nas páginas de produto/carrinho; removidos do header fixo. */
.lic-trust-strip{display:none!important}

/* Menus sobre o conteúdo, sem aumentar a altura do cabeçalho. */
.mega-menu{top:100%!important;max-height:calc(100vh - 128px)!important;overflow-y:auto!important}
.account-dropdown-lice{position:relative!important;z-index:1080!important}
#licStoreAccountMenu{z-index:2147482000!important}
.offcanvas#mobileMenu{
  z-index:1100!important;
  width:min(90vw,380px)!important;
  max-width:min(90vw,380px)!important;
  height:100dvh!important;
  border:0!important;
  border-radius:0 24px 24px 0!important;
  background:#fff!important;
  box-shadow:26px 0 72px rgba(35,12,46,.22)!important;
  overflow:hidden!important;
}
.offcanvas#mobileMenu .offcanvas-header{position:sticky!important;top:0!important;z-index:2!important;background:#fff!important;padding:11px 14px!important}
.offcanvas#mobileMenu .offcanvas-body{height:calc(100dvh - 62px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
.offcanvas-backdrop{z-index:1090!important}
.mobile-menu-logo{width:auto!important;height:42px!important;max-width:112px!important;max-height:42px!important;object-fit:contain!important}

/* Notebook: mantém tudo em uma linha sem estourar. */
@media (min-width:992px) and (max-width:1199.98px){
  .header-main>.container{padding-left:10px!important;padding-right:10px!important}
  .header-main .row{--bs-gutter-x:.75rem!important}
  .logo-img{max-width:132px!important;max-height:48px!important}
  .nav-categories .menu-link{padding-left:6px!important;padding-right:6px!important;font-size:.62rem!important}
  .account-trigger-lice,.cart-btn-premium{box-shadow:none!important}
}

/* Tablet e celular: somente faixa fina + linha principal. */
@media (max-width:991.98px){
  .top-bar{height:30px!important;min-height:30px!important;max-height:30px!important}
  .top-bar>.container,.top-bar-content{height:30px!important;min-height:30px!important}
  .top-msg{min-height:30px!important;font-size:.66rem!important;padding:1px 6px!important}
  .header-main>.container{padding-left:9px!important;padding-right:9px!important}
  .header-main .row{min-height:56px!important;padding-top:3px!important;padding-bottom:3px!important;gap:4px!important}
  .logo-img{max-width:118px!important;max-height:42px!important}
  .nav-categories{display:none!important}
  .search-box,.search-container{display:none!important}
  .cart-info-text,.account-trigger-lice .account-copy{display:none!important}
  .cart-btn-premium,.account-trigger-lice{
    min-width:42px!important;
    width:42px!important;
    height:42px!important;
    min-height:42px!important;
    padding:2px!important;
    justify-content:center!important;
    border-radius:14px!important;
    box-shadow:none!important;
  }
  .icon-circle-cart{width:36px!important;height:36px!important}
  .header-main button[data-bs-target="#mobileMenu"]{width:42px!important;height:42px!important;min-height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .header-main button[data-bs-target="#mobileMenu"] i{font-size:1.72rem!important;line-height:1!important}
}

@media (max-width:575.98px){
  .top-msg{font-size:.63rem!important}
  .header-main .row{min-height:54px!important}
  .logo-img{max-width:104px!important;max-height:38px!important}
  .header-main .col-6:first-child{gap:3px!important}
  .offcanvas#mobileMenu{width:90vw!important;max-width:90vw!important;border-radius:0 20px 20px 0!important}
  .mobile-menu-logo{height:38px!important;max-width:102px!important;max-height:38px!important}
}
