/* === Nexo — header + footer padrão (chrome do site) === */

.nexo-chrome { margin: 0; }
.nexo-container { max-width: 1600px; margin: 0 auto; width: 100%; padding: 0 24px; }

/* ---------- topbar ---------- */
.nexo-topbar { background: #ede5d9; }
.nexo-topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 32px; font-size: 12px; color: #2e2521;
}
.nexo-topbar__inner p { margin: 0; }
.nexo-topbar__right { display: inline-flex; align-items: center; gap: 12px; }
.nexo-topbar__partner { color: #ad5d3a; font-weight: 600; }
.nexo-topbar__partner:hover { color: #7e452c; }
.nexo-topbar__sep { color: #c2b6a4; }
@media (max-width: 768px){
  .nexo-topbar__inner { flex-direction: column; height: auto; gap: 2px; padding: 6px 24px; text-align: center; }
}

/* ---------- header ---------- */
.nexo-header { background: #ffffff; border-bottom: 1px solid #efe7da; position: relative; z-index: 300; }
.nexo-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 28px 24px; gap: 24px; }
.nexo-logo img { height: 46px; width: auto; display: block; }
.nexo-nav ul { display: flex; gap: 38px; list-style: none; margin: 0; padding: 0; }
.nexo-nav a {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: #493725;
  display: inline-flex; align-items: center; gap: 5px;
}
.nexo-nav a:hover { color: #ad5d3a; }
.nexo-header__icons { display: flex; align-items: center; gap: 18px; }
.nexo-ico { color: #493725; position: relative; display: inline-flex; }
.nexo-ico:hover { color: #ad5d3a; }
.nexo-cart-count {
  position: absolute; top: -8px; right: -10px;
  background: #ad5d3a; color: #fff; font-size: 10px; font-weight: 600;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nexo-nav__caret { margin-top: 1px; opacity: .6; transition: transform .2s; }
.nexo-nav__has-mega:hover .nexo-nav__caret { transform: rotate(180deg); }

/* ---------- mega-menu Móveis ---------- */
.nexo-nav__has-mega { position: static; }
.nexo-mega {
  position: absolute; left: 0; right: 0; top: 100%; margin: 0 auto;
  max-width: 1400px;
  background: #fff; border: 1px solid #efe7da; border-radius: 2px;
  box-shadow: 0 26px 44px rgba(46,37,33,.12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  transition-delay: 1.1s; /* grace period ao tirar o mouse antes de fechar */
  z-index: 60;
}
.nexo-nav__has-mega:hover .nexo-mega,
.nexo-mega:hover { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nexo-mega__inner { display: flex; gap: 56px; align-items: flex-start; padding: 40px 56px 48px; }
.nexo-mega__cols { display: flex; flex-wrap: wrap; gap: 18px 72px; flex: 1; }
.nexo-mega__col { display: flex; flex-direction: column; gap: 16px; min-width: 120px; }
.nexo-mega__head {
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600;
  color: #2e2521; letter-spacing: 0; text-transform: none;
}
.nexo-mega__head:hover { color: #ad5d3a; }
.nexo-mega__link {
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 400;
  color: #ad5d3a; letter-spacing: 0; text-transform: none;
}
.nexo-mega__link:hover { color: #7e452c; }
.nexo-mega__feature { flex: 0 0 300px; display: flex; flex-direction: column; }
.nexo-mega__feature img { width: 100%; height: 200px; object-fit: cover; border-radius: 2px; display: block; }
.nexo-mega__feature-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; font-family: 'DM Sans', sans-serif; font-size: 15px; color: #2e2521;
}
.nexo-mega__feature:hover .nexo-mega__feature-cap { color: #ad5d3a; }

/* ---------- busca ---------- */
.nexo-search { position: static; display: inline-flex; align-items: center; }
.nexo-search-toggle { background: none; border: 0; padding: 0; cursor: pointer; }
.nexo-search-toggle:hover { color: #493725; } /* sem hover terracota no ícone de busca */
.nexo-search__form {
  position: absolute; top: 100%; right: 24px; z-index: 70;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #efe7da; box-shadow: 0 18px 36px rgba(46,37,33,.12);
  padding: 10px 12px; border-radius: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nexo-search.is-open .nexo-search__form { opacity: 1; visibility: visible; transform: none; }
.nexo-search__form input[type=search] {
  width: 260px; border: 0; outline: none; font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: #2e2521; background: transparent;
}
.nexo-search__form button { background: none; border: 0; color: #493725; cursor: pointer; display: inline-flex; }
.nexo-search__form button:hover { color: #ad5d3a; }

@media (max-width: 980px){
  .nexo-nav { display: none; }
  .nexo-header__inner { padding: 18px 24px; }
  .nexo-search__form input[type=search] { width: 180px; }
}

/* ---------- main ---------- */
.nexo-main { display: block; min-height: 40vh; background: #ffffff; }

/* ---------- footer ---------- */
.nexo-footer { background: #ad5d3a; color: #fef8ef; font-family: 'DM Sans', sans-serif; }
.nexo-footer__main { padding: 100px 24px 56px; }
.nexo-footer__top { display: flex; justify-content: space-between; gap: 96px; margin-bottom: 80px; align-items: flex-start; flex-wrap: wrap; }
.nexo-footer__logo img { max-width: 280px; width: 100%; height: auto; }
.nexo-footer__grid { display: grid; grid-template-columns: repeat(5, max-content); gap: 28px 52px; margin-left: auto; }
.nexo-footer__col { display: flex; flex-direction: column; gap: 14px; }
.nexo-footer__col h4 { color: #7e452c; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.nexo-footer__col a { color: #fef8ef; font-size: 14px; font-weight: 300; transition: opacity .2s; }
.nexo-footer__col a:hover { opacity: .75; }

.nexo-footer__contact {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid #7e452c; padding-top: 36px; gap: 24px; flex-wrap: wrap;
}
.nexo-footer__info p { margin: 0 0 6px; font-size: 14px; font-weight: 300; }
.nexo-footer__social { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.nexo-footer__social img { width: 20px; height: 20px; }

.nexo-footer__bottom { background: #a89b8a; padding: 16px 0; text-align: center; }
.nexo-footer__bottom p { margin: 0; font-size: 12px; color: #fef8ef; }

@media (max-width: 1024px){
  .nexo-footer__top { flex-direction: column; gap: 56px; margin-bottom: 56px; }
  .nexo-footer__grid { margin-left: 0; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .nexo-footer__contact { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ---------- variante "hero": header transparente sobre o hero (Home) ---------- */
/* Mesma estrutura/links do header padrão — só muda a cor (claro sobre o hero). */
.nexo-hd-hero .nexo-header--hero {
  position: absolute; top: 32px; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 0;
}
.admin-bar.nexo-hd-hero .nexo-header--hero { top: 64px; }
.nexo-header--hero .nexo-logo img { height: 50px; }
/* só os links de TOPO do menu (e ícones) ficam brancos — NÃO os do mega-menu,
   que abre em painel branco e mantém o texto escuro/terracota do padrão. */
.nexo-header--hero .nexo-nav > ul > li > a,
.nexo-header--hero .nexo-ico { color: #fff; }
.nexo-header--hero .nexo-nav > ul > li > a:hover,
.nexo-header--hero .nexo-ico:hover { color: rgba(255,255,255,.75); }
.nexo-header--hero .nexo-nav__caret { opacity: .85; }
/* o mega-menu e a busca abrem em painel branco (texto escuro) — herdam do padrão */
/* título do hero é h1 → os estilos globais do tema o deixam escuro; força branco */
.nexo-hd-hero .hero-title,
.nexo-hd-hero .hero-subtitle { color: #fff; }
@media (max-width: 980px){
  .nexo-hd-hero .nexo-header--hero { top: 0; }
  .admin-bar.nexo-hd-hero .nexo-header--hero { top: 46px; }
}

/* Área do Parceiro: esconde o título WP redundante (as telas já têm título próprio) */
body.parent-pageid-930 .entry-title,
body.page-id-936 .entry-title { display: none; }
/* respiro vertical nas telas da Área do Parceiro (sem o título WP, o card ficava colado) */
body.parent-pageid-930 .site-main,
body.page-id-936 .site-main { padding-top: 72px !important; padding-bottom: 96px !important; }

/* login do parceiro: inputs na mesma largura + olho de mostrar senha */
.nexo-pt-login-form input[type=text],
.nexo-pt-login-form input[type=email],
.nexo-pt-login-form input[type=password] { width: 100% !important; box-sizing: border-box; }
.nexo-pt-login-form .nexo-pw-wrap { position: relative; display: block; width: 100%; box-sizing: border-box; }
.nexo-pt-login-form .nexo-pw-wrap input { width: 100% !important; padding-right: 44px !important; }
.nexo-pt-login-form .nexo-pw-toggle {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  background: none; border: 0; padding: 0; cursor: pointer; color: #6B6357; display: inline-flex; line-height: 0;
}
.nexo-pt-login-form .nexo-pw-toggle:hover { color: #AD5D3A; }
/* labels de campo do login do parceiro em bloco (inputs full-width iguais; checkbox fica inline) */
.nexo-pt-login-form > label:not(.nexo-pt-checkbox) { display: block; }
/* categoria: página em #fafafa (card transparente blende; sem caixa branca destoando) */
body.tax-product_cat,
body.tax-product_cat .nexo-main,
body.tax-product_cat .nexo-figma--categoria-produto { background-color: #fafafa !important; }
/* busca do topo: sem fundo em nenhum estado (remove o círculo vermelho no hover/focus) */
.nexo-header__icons .nexo-search-toggle,
.nexo-header__icons .nexo-search-toggle:hover,
.nexo-header__icons .nexo-search-toggle:focus,
.nexo-header__icons .nexo-search-toggle:focus-visible,
.nexo-header__icons .nexo-search-toggle:active {
  background: transparent !important; box-shadow: none !important; outline: none !important; border-radius: 0 !important;
}
