@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap');

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cabin", sans-serif;
}
html, body {
  height: 100%;
}


/* Faz o main ocupar o espaço restante */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centraliza o aviso em construção */
  align-items: center;
  padding: 20px;
}

body {
  background: linear-gradient(135deg, #0a0a1a, #1c1c3c);
  color: #f4f4f9;
  text-align: center;
  min-height: 100vh;
  padding-top: 95px; /* espaço pro header fixo */
}

/* Cabeçalho */
header {
  background: linear-gradient(90deg, #0059ffc0, #5f95c198);
  color: white;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  text-align: center;
}

header img {
  height: 80px;
  margin-right: 10px;
}
.search-form {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.search-form input {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  width: 400px;
  height: 40px;
}

.search-form button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-left: none;
  background: #0073e6;
  color: white;
  cursor: pointer;
  height: 40px;
  border-radius: 0 20px 20px 0;
}

.social-icon {
  margin: 0 8px;
  font-size: 22px;
  color: #fff;
  transition: transform 0.2s, color 0.2s;
}
.social-icon {
  margin: 0 8px;
  font-size: 22px;
  color: #fff;
  transition: transform 0.2s, color 0.2s;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Ajuste do logo ChatGPT */
.chatgpt-icon {
  margin-top: 30px;
  height: 27px;
  filter: invert(100%); /* deixa branco para combinar */
  transition: transform 0.2s;
  width: 100px;
  /* NÃO coloque display: none aqui! */
}

/* Esconde só em telas pequenas */
@media (max-width: 600px) {
  .chatgpt-icon {
    display: none;
  }
}

.social-icon:hover .chatgpt-icon {
  transform: scale(1.2);
  filter: invert(63%) sepia(91%) saturate(444%) hue-rotate(102deg) brightness(90%) contrast(92%);
  /* fica verde no hover (cor oficial OpenAI) */
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Ajuste do logo ChatGPT */
.chatgpt-icon {
  width: 100px;
  height: 22px;
  filter: invert(100%);
  transition: transform 0.2s;
}

.social-icon:hover .chatgpt-icon {
  transform: scale(1.2);
  filter: invert(63%) sepia(91%) saturate(444%) hue-rotate(102deg) brightness(90%) contrast(92%);
  /* fica verde no hover (cor oficial OpenAI) */
}
.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00AEEF;
}

/* Botão hambúrguer */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.Manus-icon {
  margin-top: 30px;
  height: 27px;
  filter: invert(100%); /* deixa branco para combinar */
  transition: transform 0.2s;
}

/* Conteúdo */
.sobreProdutos {
  padding: 10px 20% 50px 20%;
  color: whitesmoke;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0.9;
}

.sobreProdutos h1,
.sobreProdutos p {
  margin: 10px 0;
}

.sobreProdutos img {
  width: 90%;
  max-width: 300px;
  border-radius: 10px;
  margin-top: 20px;
}

/* Container flexível para filtros e produtos lado a lado */
.catalogo-container {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
  min-height: 60vh;
  gap: 32px; /* Espaço entre filtros e produtos */
}

/* Produtos grid */
.produtos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.produto-card {
  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 220px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s;
}
.produto-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.produto-card .categoria {
  font-size: 0.95rem;
  color: #0077ff;
  margin-bottom: 0.5rem;
}
.produto-card .valor {
  font-weight: bold;
  font-size: 1.1rem;
  color: #222;
}
.produto-card .nome {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0.5rem 0 0.2rem 0;
  color: #222;
}
#filtros {
  margin: 1rem 0;
  text-align: center;
}
.filtro-btn {
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  margin: 0 0.3rem 0.5rem 0.3rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.filtro-btn.active,
.filtro-btn:hover {
  background: #005bb5;
}
.filtro-categoria {
  margin: 1.2rem 0 0.5rem 0;
  text-align: left;
  display: inline-block;
  vertical-align: top;
}

/* Cada categoria e seu título em coluna, alinhados à esquerda */
.filtro-categoria {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Título ocupa toda a largura e alinha à esquerda */
.filtro-categoria-titulo {
  width: 100%;
  text-align: left;
  display: block;
  font-weight: bold;
  color: #0077ff;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.sem-produtos {
  text-align: center;
  margin-top: 2rem;
}
.contato-btn {
  display: inline-block;
  margin: 0.7rem 0.5rem 0 0.5rem;
  background: #25d366;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.contato-btn:hover {
  background: #128c7e;
}

/* Sidebar de filtros */
.filtros-sidebar {
  width: 280px;
  min-width: 200px;
  max-width: 300px;
  background: #181830;
  color: #fff;
  padding: 1.5rem 1rem 1rem 1rem;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.12);
  z-index: 900;
  height: auto;
  position: relative;
  margin-right: 0;
}

.filtros-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
}

/* Seção de produtos ocupa o restante */
.produtos-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Grid de produtos */
.produtos-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  margin-top: 2rem;
}

/* Responsivo: filtros acima dos produtos em telas pequenas */
@media (max-width: 900px) {
  .catalogo-container {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
  }
  .filtros-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-shadow: none;
    padding: 1rem 0.5rem;
    margin-bottom: 20px;
  }
  .produtos-section {
    width: 100%;
  }
}
.popup-contato {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.popup-contato .popup-conteudo {
  background: #fff;
  color: #222;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  text-align: center;
  min-width: 260px;
  position: relative;
}
.popup-contato .popup-fechar {
  position: absolute;
  top: 10px; right: 18px;
  font-size: 2rem;
  color: #0077ff;
  cursor: pointer;
}
.popup-contato .contato-btn {
  display: block;
  margin: 1rem auto;
  background: #25d366;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.2s;
  width: 80%;
}
.popup-contato .contato-btn:hover {
  background: #128c7e;
}

/* Footer igual ao index */
footer {
  background: linear-gradient(90deg, #0059ffc0, #5f95c198);
  color: #fff;
  padding: 30px 0 10px 0;
  margin-top: 40px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-texto {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin: 0 8px;
  transition: color 0.2s;
}

.footer-texto:hover {
  color: #00AEEF;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 18px;
  font-size: 0.98rem;
  color: #e0e0e0;
}

.footer-links .social-icon {
  font-size: 1.5rem;
  color: #fff;
  margin-left: 10px;
  transition: color 0.2s, transform 0.2s;
}

.footer-links .social-icon:hover {
  color: #00AEEF;
  transform: scale(1.2);
}

@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }
  .footer-links {
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
  }
  .footer-logo img {
    height: 45px;
  }
}

@media (max-width: 900px) {
  footer {
    margin-left: 0;
  }
}

.chatgpt-icon,
.Manus-icon {
  margin-top: 30px;
  height: 27px;
  filter: invert(100%);
  transition: transform 0.2s;
  width: 100px;
}

.social-icon:hover .chatgpt-icon {
  transform: scale(1.2);
  filter: invert(63%) sepia(91%) saturate(444%) hue-rotate(102deg) brightness(90%) contrast(92%);
}

.social-icon:hover .Manus-icon {
  transform: scale(1.2);
  filter: invert(63%) sepia(91%) saturate(444%) hue-rotate(180deg) brightness(90%) contrast(92%);
}

@media (max-width: 600px) {
  .chatgpt-icon,
  .Manus-icon {
    display: none;
  }
}
/* Esconde subcategorias por padrão */
.filtro-categoria .filtro-subcategorias {
  display: none;
}

/* Mostra e aplica coluna só quando expandido */
.filtro-categoria.expanded .filtro-subcategorias {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 8px;
  gap: 0.3rem;
}

.filtro-categoria.expanded .filtro-subcategorias .filtro-btn {
  width: 100%;
  margin: 0 0 0.3rem 0;
  text-align: left;
  border-radius: 16px;
  padding-left: 1.2em;
  box-sizing: border-box;
}