
/* =========================================================
   Safira: remove espaço vazio acima do header na home
   O showcam-layout.css antigo reserva altura para o topbar vermelho.
   Como agora o header único está no fluxo normal, zeramos essa reserva.
   ========================================================= */
body.sc-body.home {
  margin-top:0 !important;
  padding-top:0 !important;
}

body.sc-body.home .sc-app {
  margin-top:0 !important;
  padding-top:0 !important;
}

body.sc-body.home .sc-topcats--unified {
  top:0 !important;
  margin-top:0 !important;
}

/* Internas antigas ainda podem carregar classe .home no body.
   Zera apenas a reserva do container, sem mexer na grade da home. */
body.page-template-page-home:not(.sc-body) .site-container,
body.page-template-page-home:not(.sc-body) .site-inner.vip-detail-service {
  margin-top:0 !important;
  padding-top:0 !important;
}

body.page-template-page-home:not(.sc-body) .sc-topcats--unified {
  top:0 !important;
  margin-top:0 !important;
}

.sc-topcats--unified{
  position:relative !important;
  z-index:50;
  margin:0 !important;
  padding:0 !important;
  min-height:82px !important;
  height:auto !important;
  overflow:visible !important;
  background:linear-gradient(90deg, #1c1d24 0%, #22232b 50%, #1c1d24 100%);
  border-top:1px solid rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 32px rgba(0,0,0,.24);
}
.sc-topcats--unified .sc-topcats-inner{
  width:100%;
  max-width:1880px;
  margin:0 auto;
  min-height:82px !important;
  height:auto !important;
  padding:14px 24px !important;
  display:flex;
  align-items:center;
  gap:18px;
}
.sc-topcats--unified .sc-topcats-brand{flex:0 0 auto;}
.sc-topcats--unified .sc-topcats-brand a{display:flex;align-items:center;}
.sc-topcats--unified .logoshow{display:block;height:73px;width:auto;max-width:182px;object-fit:contain;}
.sc-topcats--unified .sc-topcats-tabs{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:4px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.sc-topcats--unified .sc-topcats-tabs::-webkit-scrollbar{display:none;}
.sc-topcats--unified .sc-topcats-tab{
  height:52px;
  padding:0 15px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:15px;
  line-height:1;
  transition:all .18s ease;
}
.sc-topcats--unified .sc-topcats-tab:hover,
.sc-topcats--unified .sc-topcats-tab.is-active{background:rgba(255,255,255,.06);color:#fff;text-decoration:none;}
.sc-topcats--unified .sc-topcats-search{flex:0 1 205px;min-width:155px;}
.sc-topcats--unified .sc-search{position:relative;width:100%;}
.sc-topcats--unified .sc-search:before,
.sc-topcats--unified .sc-search::before{display:none !important;content:none !important;}
.sc-topcats--unified .sc-search-ico{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:#d7a558;
  pointer-events:none;
}
.sc-topcats--unified .sc-search-ico svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.sc-topcats--unified .sc-search input,
.sc-topcats--unified .sc-search input[type="search"]{
  width:100%;
  height:50px;
  padding:0 16px 0 46px;
  border-radius:999px;
  border:1px solid rgba(215,165,88,.26);
  background:rgba(0,0,0,.22);
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:15px;
  font-weight:600;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.sc-topcats--unified .sc-search input::placeholder{color:rgba(255,255,255,.70);opacity:1;}
/* VIPCOM #907653: impede a busca de invadir os botoes do cabecalho.
   O CSS legado definia largura intrinseca de 260px no input. */
.sc-topcats--unified .sc-topcats-search .sc-search{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.sc-topcats--unified .sc-topcats-search .sc-search input[type="search"]{
  display:block;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sc-topcats--unified .sc-topcats-actions{flex:0 0 auto;display:flex;align-items:center;gap:10px;}
.sc-topcats--unified .sc-header-hello,
.sc-topcats--unified .sc-header-btn{
  height:50px;
  padding:0 20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight:800;
  color:#fff;
  white-space:nowrap;
}
.sc-topcats--unified .sc-header-hello{border:1px solid rgba(215,165,88,.20);background:rgba(255,255,255,.04);}
.sc-topcats--unified .sc-header-btn{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);}
.sc-topcats--unified .sc-header-btn--primary{background:linear-gradient(135deg,#d82870,#b51155);border-color:transparent;}
.sc-topcats--unified .sc-header-btn:hover,
.sc-topcats--unified .sc-header-hello:hover{color:#fff;text-decoration:none;filter:brightness(1.05);}
.sc-topcats--unified .sc-mob-toggle,
.sc-topcats--unified .sc-mob-search-trigger{
  display:none;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.sc-topcats--unified .sc-mob-toggle span{display:none;}
.sc-topcats--unified .sc-mob-toggle .sc-mob-toggle-icon{
  width:25px;
  height:25px;
  display:block;
  fill:none;
  stroke:#fff;
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sc-topcats--unified .sc-mob-search-trigger svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.sc-mob-search-modal{position:fixed;inset:0;z-index:9999;display:none;}
.sc-mob-search-modal.is-open{display:block;}
.sc-mob-search-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62);}
.sc-mob-search-panel{position:absolute;left:12px;right:12px;top:72px;background:#111827;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:14px;box-shadow:0 14px 40px rgba(0,0,0,.35);}
.sc-mob-search-head{display:flex;align-items:center;justify-content:space-between;color:#fff;margin-bottom:12px;}
.sc-mob-search-close{width:34px;height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1;}
.sc-mob-search-form{display:flex;flex-direction:column;gap:10px;}
.sc-mob-search-form input[type="search"]{width:100%;box-sizing:border-box;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;-webkit-text-fill-color:#fff;padding:12px 14px;outline:none;}
.sc-mob-search-form input[type="search"]::placeholder{color:rgba(255,255,255,.68);opacity:1;}
.sc-mob-search-form button[type="submit"]{height:42px;border:none;border-radius:12px;background:#dc2626;color:#fff;font-weight:700;}

.sc-topcats--unified .sc-header-btn--advertise{background:linear-gradient(135deg,#d82870,#b51155);border-color:transparent;}
@media (max-width: 1420px){
  .sc-topcats--unified .sc-header-hello,
  .sc-topcats--unified .sc-header-btn{padding:0 15px;font-size:14px;}
  .sc-topcats--unified .sc-topcats-search{flex-basis:175px;}
}
@media (max-width: 1200px){
  .sc-topcats--unified .sc-topcats-inner{gap:14px;}
  .sc-topcats--unified .sc-topcats-search{flex-basis:175px;}
  .sc-topcats--unified .sc-topcats-tab{padding:0 12px;font-size:14px;}
}
@media (max-width: 992px){
  .sc-topcats--unified .sc-topcats-inner{min-height:68px !important;padding:11px 14px !important;}
  .sc-topcats--unified .sc-mob-toggle,
  .sc-topcats--unified .sc-mob-search-trigger{display:inline-flex;}
  .sc-topcats--unified .sc-topcats-tabs,
  .sc-topcats--unified .sc-topcats-search,
  .sc-topcats--unified .sc-topcats-actions{display:none;}
  .sc-topcats--unified .sc-topcats-brand{margin-right:auto;flex:0 0 auto;}
  .sc-topcats--unified .sc-topcats-brand a{display:flex;align-items:center;min-height:44px;}
  .sc-topcats--unified .logoshow{height:44px !important;width:auto !important;max-width:160px !important;margin-top:0 !important;object-fit:contain;flex-shrink:0;}
}

@media (max-width: 560px){
  .sc-topcats--unified .logoshow{height:40px !important;max-width:145px !important;}
}

@media (max-width: 380px){
  .sc-topcats--unified .logoshow{height:36px !important;max-width:130px !important;}
}

/* SAFIRA | autenticação dentro do menu mobile */
.sc-nav-auth-mobile{display:none;}
@media (max-width: 992px){
  .sc-nav-auth-mobile{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:9px;
    padding-bottom:14px;
    margin-bottom:8px;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .sc-mobile-auth-btn{
    min-height:42px;
    padding:0 12px;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    text-decoration:none !important;
    font-weight:800;
    font-size:13px;
    line-height:1.1;
    color:#fff !important;
    box-sizing:border-box;
  }
  .sc-mobile-auth-btn--login{
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.07);
  }
  .sc-mobile-auth-btn--register{
    border:1px solid transparent;
    background:linear-gradient(135deg,#d82870,#b51155);
  }
  .sc-mobile-auth-btn:hover,
  .sc-mobile-auth-btn:focus,
  .sc-mobile-auth-btn:visited{color:#fff !important;text-decoration:none !important;}

  .sc-topcats--unified .sc-mob-toggle{
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.18);
  }
}


/* SAFIRA v1.7 | hamburger mobile + categorie nel drawer */
.sc-nav-categories-mobile{display:none;}
@media (max-width: 992px){
  .sc-topcats--unified .sc-mob-toggle{
    display:inline-flex !important;
    visibility:visible !important;
    opacity:1 !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    flex:0 0 46px !important;
    position:relative;
    z-index:3;
  }
  .sc-topcats--unified .sc-mob-toggle .sc-mob-toggle-icon{
    display:block !important;
    width:27px !important;
    height:27px !important;
    stroke:#fff !important;
    stroke-width:2.6 !important;
  }
  .sc-topcats--unified .sc-topcats-brand{
    margin-left:2px !important;
    margin-right:auto !important;
  }
  .sc-nav-categories-mobile{display:block !important;}
}


/* SAFIRA v1.8 | barra de acoes mobile estilo prototipo */
.sc-mobile-quick-actions{
  display:none;
}

@media (max-width: 992px){
  .sc-topcats--unified{
    background:linear-gradient(180deg,#1d1e25 0%,#202129 100%);
  }

  .sc-topcats--unified .sc-topcats-inner{
    padding-bottom:10px !important;
  }

  .sc-mobile-quick-actions{
    display:grid;
    grid-template-columns:.92fr 1.17fr 1.55fr;
    gap:7px;
    width:100%;
    box-sizing:border-box;
    padding:10px 12px 12px;
    border-top:1px solid rgba(255,255,255,.055);
    background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(0,0,0,.10));
  }

  .sc-mobile-quick-btn,
  .sc-mobile-quick-btn:link,
  .sc-mobile-quick-btn:visited{
    position:relative;
    min-width:0;
    min-height:46px;
    padding:0 8px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:clip;
    box-sizing:border-box;
    text-decoration:none !important;
    color:#fff !important;
    font-family:inherit;
    font-size:clamp(10px,2.9vw,13px);
    line-height:1;
    font-weight:900;
    letter-spacing:-.12px;
    text-shadow:0 1px 1px rgba(0,0,0,.32);
    -webkit-tap-highlight-color:transparent;
    transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
  }

  .sc-mobile-quick-btn--secondary,
  .sc-mobile-quick-btn--secondary:link,
  .sc-mobile-quick-btn--secondary:visited{
    border:1px solid rgba(255,255,255,.18);
    background:
      linear-gradient(180deg,rgba(255,255,255,.075) 0%,rgba(255,255,255,.025) 48%,rgba(0,0,0,.15) 100%),
      #202127;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.09),
      inset 0 -1px 0 rgba(0,0,0,.34),
      0 5px 12px rgba(0,0,0,.17);
  }

  .sc-mobile-quick-btn--primary,
  .sc-mobile-quick-btn--primary:link,
  .sc-mobile-quick-btn--primary:visited{
    border:1px solid rgba(255,69,143,.42);
    background:
      linear-gradient(180deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,0) 44%),
      linear-gradient(135deg,#e51f6c 0%,#cf145b 48%,#b80d4d 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.18),
      inset 0 -1px 0 rgba(80,0,32,.34),
      0 7px 16px rgba(199,18,84,.24);
  }

  .sc-mobile-quick-btn:hover,
  .sc-mobile-quick-btn:focus,
  .sc-mobile-quick-btn:active{
    color:#fff !important;
    text-decoration:none !important;
    filter:brightness(1.08);
  }

  .sc-mobile-quick-btn:active{
    transform:translateY(1px) scale(.99);
  }

  /* Os acessos de conta agora ficam na barra visível; evita duplicação no drawer. */
  .sc-nav-auth-mobile{
    display:none !important;
  }
}

@media (max-width: 390px){
  .sc-mobile-quick-actions{
    gap:5px;
    padding-left:8px;
    padding-right:8px;
    grid-template-columns:.88fr 1.14fr 1.58fr;
  }
  .sc-mobile-quick-btn,
  .sc-mobile-quick-btn:link,
  .sc-mobile-quick-btn:visited{
    min-height:44px;
    padding-left:5px;
    padding-right:5px;
    border-radius:13px;
    font-size:clamp(9.5px,2.75vw,11px);
  }
}

@media (max-width: 340px){
  .sc-mobile-quick-actions{
    grid-template-columns:.82fr 1.12fr 1.62fr;
    gap:4px;
    padding-left:6px;
    padding-right:6px;
  }
  .sc-mobile-quick-btn,
  .sc-mobile-quick-btn:link,
  .sc-mobile-quick-btn:visited{
    font-size:9px;
    letter-spacing:-.2px;
  }
}
