/* ============================================================
   UX REFRESH — menu (desktop/mobile) e página de produto
   Camada aditiva: não substitui o CSS existente, refina por cima.
   ============================================================ */

/* elementos exclusivos do drawer mobile: escondidos por padrão, só
   aparecem dentro do media query mobile mais abaixo */
#btn-fechar-menu-mobile,
#menu-backdrop {
  display: none;
}

/* ===== SUBMENUS DESATIVADOS: só o menu principal fica visível ===== */
.header .menu .box-menu #menu-menu > .menu-item-has-children .center {
  display: none !important;
}
/* remove a setinha/indicador de submenu e o sublinhado de "tem filho" */
.header .menu .box-menu #menu-menu > .menu-item-has-children:hover > a:after,
.header .menu .box-menu #menu-menu > .menu-item-has-children:hover {
  border-bottom: none !important;
}
.header .menu .box-menu #menu-menu > .menu-item-has-children:hover > a:after {
  display: none !important;
}
/* mobile: some com a seta de expandir submenu (não tem mais o que expandir) */
@media screen and (max-width: 770px) {
  body .header .menu .box-menu #menu-menu > li.menu-item-has-children > a::before {
    display: none !important;
  }
}

/* ===== MENU DESKTOP ===== */

/* o mega-menu usava justify-content:space-around, que empurra o 1º e o
   último grupo de colunas para dentro (sobra ~100px de vão morto nas
   pontas). Troca para space-between: 1ª coluna alinha com o logo, a
   última encosta na borda direita, usando a largura toda de verdade. */
.header .menu .box-menu #menu-menu > .menu-item-has-children:hover .center > ul,
.header .menu .box-menu #menu-menu > .menu-item-has-children.dropdown-aberto .center > ul {
  justify-content: space-between !important;
}

/* transição suave em todo o header */
.header .menu .box-menu #menu-menu > li {
  transition: none;
}

/* sublinhado animado nos itens de topo (sem filhos) */
.header .menu .box-menu #menu-menu > li > a {
  position: relative;
  padding-bottom: 6px;
}
.header .menu .box-menu #menu-menu > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #E3BD6A;
  transition: width .25s ease;
}
.header .menu .box-menu #menu-menu > li > a:hover::after {
  width: 100%;
}

/* mega-menu (dropdown) mais suave: entra com fade + leve deslize, cantos arredondados.
   O estado "aberto" agora é controlado também por JS (classe .dropdown-aberto), com um
   pequeno atraso ao sair do hover, para dar tempo de mover o mouse até o item desejado. */
.header .menu .box-menu #menu-menu > .menu-item-has-children .center {
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.header .menu .box-menu #menu-menu > .menu-item-has-children:hover .center,
.header .menu .box-menu #menu-menu > .menu-item-has-children.dropdown-aberto .center {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* "Produtos" (menu-item-31) tinha um layout especial em colunas desiguais;
   aqui ele passa a usar um grid limpo, com largura fixa por item para não
   sobrepor texto (o grid "auto" anterior colapsava as colunas). */
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31:hover .center,
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31.dropdown-aberto .center {
  height: auto !important;
  min-height: 241px;
  padding-bottom: 30px;
}
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31:hover .center > ul,
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31.dropdown-aberto .center > ul {
  justify-content: center !important;
  height: auto !important;
}
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31:hover .center > ul > li,
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31.dropdown-aberto .center > ul > li {
  min-width: 0 !important;
  margin-top: 0 !important;
}
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31:hover .center > ul > li > ul,
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31.dropdown-aberto .center > ul > li > ul {
  min-width: 0 !important;
  width: 1400px;
  max-width: 90vw;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  row-gap: 14px !important;
  position: static !important;
  padding-top: 20px !important;
}
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31:hover .center > ul > li > ul li,
.header .menu .box-menu #menu-menu > .menu-item-has-children.menu-item-31.dropdown-aberto .center > ul > li > ul li {
  min-width: 0 !important;
  width: 18% !important;
  margin-right: 0 !important;
  padding: 0 10px 0 0 !important;
  box-sizing: border-box !important;
}

/* botão de WhatsApp com aparência de CTA (pill) */
.header .menu .telefone {
  background: rgba(255, 255, 255, .12);
  border-radius: 30px;
  padding: 8px 18px 8px 10px !important;
  transition: background .25s ease, transform .2s ease;
}
.header .menu .telefone:hover {
  background: #E3BD6A;
  transform: translateY(-1px);
}
.header .menu .telefone:hover p,
.header .menu .telefone:hover .icone img {
  filter: none;
}
.header.scroll .menu .telefone {
  background: rgba(17, 87, 64, .08);
}
.header.scroll .menu .telefone:hover {
  background: #E3BD6A;
}
.header.scroll .menu .telefone:hover p {
  color: #115740 !important;
}

/* sombra mais elegante quando o header gruda no topo */
.header.scroll {
  box-shadow: 0 2px 20px rgba(0, 0, 0, .08) !important;
}


/* ===== MENU MOBILE: transforma o dropdown em gaveta lateral moderna ===== */
@media screen and (max-width: 770px) {

  #menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 99998;
    opacity: 0;
    transition: opacity .3s ease;
  }
  #menu-backdrop.visivel {
    display: block;
    opacity: 1;
  }

  body .header .menu .box-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    height: 100vh !important;
    width: 82% !important;
    max-width: 340px;
    background: #115740 !important;
    display: block !important;
    transform: translateX(100%);
    transition: transform .32s ease;
    z-index: 99999;
    padding: 90px 0 40px !important;
    overflow-y: auto;
    box-shadow: -12px 0 30px rgba(0, 0, 0, .3);
  }
  .header .menu.abre-menu .box-menu {
    transform: translateX(0);
  }

  body .header .menu.abre-menu .box-menu #menu-menu > li {
    margin-bottom: 6px !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  body .header .menu.abre-menu .box-menu #menu-menu > li > a {
    display: block;
    padding: 14px 32px !important;
    letter-spacing: 1.5px !important;
    font-size: 15px !important;
  }

  /* indicador (chevron) de submenu, com rotação ao abrir */
  body .header .menu .box-menu #menu-menu > li.menu-item-has-children > a {
    position: relative;
  }
  body .header .menu .box-menu #menu-menu > li.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 32px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid #E3BD6A;
    border-bottom: 2px solid #E3BD6A;
    transform: rotate(45deg);
    transition: transform .25s ease;
  }
  body .header .menu .box-menu #menu-menu > li.menu-item-has-children.active > a::before {
    transform: rotate(-135deg);
    margin-top: -3px;
  }

  /* botão de fechar a gaveta */
  #btn-fechar-menu-mobile {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    z-index: 2;
  }

  body.bloqueia-scroll-menu {
    overflow: hidden;
  }
}


/* ============================================================
   PÁGINA DE PRODUTO — apresentação mais atual
   ============================================================ */

/* especificações como "chips" ao invés de caixas simples com borda */
.page-produtos-interna .infos-produto .more-infos .item.tamanho .opcoes li,
.page-produtos-interna .infos-produto .more-infos .item.cor .opcoes li {
  border: 1px solid rgba(227, 189, 106, .5);
  background: rgba(227, 189, 106, .08);
  border-radius: 20px;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.page-produtos-interna .infos-produto .more-infos .item.tamanho .opcoes li:hover,
.page-produtos-interna .infos-produto .more-infos .item.cor .opcoes li:hover,
.page-produtos-interna .infos-produto .more-infos .item.tamanho .opcoes li.selecionado,
.page-produtos-interna .infos-produto .more-infos .item.cor .opcoes li.selecionado {
  transform: translateY(-1px);
  border-color: #E3BD6A;
}

.page-produtos-interna .infos-produto .more-infos .item .especificacao {
  background: rgba(17, 87, 64, .05);
  border-radius: 20px;
  padding: 6px 14px;
  display: inline-block;
  max-width: none !important;
}

/* respiro geral e hierarquia tipográfica */
.page-produtos-interna .bloco-1 .infos-produto > .title h2 {
  letter-spacing: 1px;
}
.page-produtos-interna .bloco-1 .infos-produto .descriptions .content p {
  line-height: 1.6;
}

/* zoom sutil na imagem principal para indicar que é clicável (lightbox) */
.page-produtos-interna .galeria-produto .full-img1 li.item {
  cursor: zoom-in;
}
.page-produtos-interna .galeria-produto .full-img1 li.item img {
  transition: transform .3s ease;
}
.page-produtos-interna .galeria-produto .full-img1 li.item:hover img {
  transform: scale(1.03);
}

/* lightbox simples */
#produto-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#produto-lightbox.aberto {
  display: flex;
}
#produto-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
#produto-lightbox-fechar {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* CTA fixo no mobile: sempre visível para pedir orçamento */
#cta-orcamento-fixo {
  display: none;
}
@media screen and (max-width: 770px) {
  .page-produtos-interna #cta-orcamento-fixo {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: #115740;
    padding: 14px 20px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .2);
  }
  #cta-orcamento-fixo a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 30px;
    font-family: "Raleway-ExtraBold";
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
  }
  #cta-orcamento-fixo a.btn-orcamento {
    background: #E3BD6A;
    color: #115740;
  }
  #cta-orcamento-fixo a.btn-whatsapp {
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
  /* dá espaço no fim da página pro CTA fixo não cobrir o formulario */
  .page-produtos-interna .bloco-2 {
    padding-bottom: 80px;
  }
}
