/* Reset CSS básico */

/* Remove margens, paddings e define box-sizing */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto !important;
}

/* Define fontes padrão e line-height */
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #000;
  width: auto;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* Remove estilos padrão de listas */
ul,
ol {
  list-style: none;
}

/* Remove bordas e outline de imagens e inputs */
img,
button,
input,
textarea {
  border: none;
  outline: none;
  display: block;
}

/* Tabela */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Botões e inputs */
button,
input[type="submit"] {
  cursor: pointer;
  background: none;
  font: inherit;
}

/* Cabeçalhos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}

/* Importe de fontes */

@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap");

/* Padrões */
:root {
  /* Cores principais */
  --roxo-escuro: #4b3d57;
  --roxo: #84608e;
  --roxo-claro: #a577a6;
  --roxo-fonte: #433650;
  --cinza-fonte: #444444;
  --branco-terra: #ffeee2;

  /* Fontes */
  --fonte-cabecalho: "Inter";
  --fonte-principal: "Roboto Condensed";
  --fonte-secundaria: "Exo 2", sans-serif;
  --fonte-assinatura: "Playfair Display", "serif";
  --fonte-escrita: "Dancing Script";
  --fonte-texto: "Arimo";
  --fonte-rodape: "Sansation";
}

.fonte-principal {
  font-family: var(--fonte-principal);
  font-size: 32px;
  font-weight: bold;
  line-height: 130%;
  letter-spacing: 1px;
  color: var(--roxo-fonte);
}

.fonte-secundaria {
  font-family: var(--fonte-secundaria);
  font-size: 40px;
  font-weight: bold;
  color: var(--roxo-fonte);
}

.fonte-secundaria-p {
  font-family: var(--fonte-secundaria);
  font-size: 24px;
  font-weight: 400;
  color: var(--roxo-fonte);
}

/* --- BARRA DE TOPO (HEADER) --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--roxo-claro); /* Faixa roxa */
  color: white;
  height: 60px; /* Altura fixa para o cálculo do menu */

  /* Garante que o header seja a faixa fixa do topo */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.logo-img {
  width: 50vw;
  height: auto;
  margin: 2rem auto;
}

/* 🛑 MENU DE DESKTOP - Escondido no Mobile */
.menus {
  display: none;
}

/* ------------------- ÍCONE HAMBÚRGUER (Seu Design) ------------------- */
.hamburger-menu {
  display: flex; /* Visível no Mobile */
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101; /* Acima do Navbar */
}

.bar {
  display: block;
  width: 100%;
  height: 6px;
  background-color: white; /* Cor da sua barra no seu projeto */
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* Animação de fechar (X) - Bônus */
.hamburger-menu.is-active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.is-active .bar:nth-child(1) {
  transform: translateY(11.5px) rotate(45deg);
}
.hamburger-menu.is-active .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ------------------- MENU DROPDOWN DE MOBILE (Sobreposição) ------------------- */

.mobile-dropdown-menu {
  /* 🛑 TRANSFORMAÇÃO CHAVE: Fixed e alinhado */
  position: fixed;
  top: 60px; /* Começa exatamente abaixo do Navbar (60px) */
  left: 0;
  width: 100%;
  max-height: calc(100vh - 60px); /* Altura máxima restante */

  background-color: var(--roxo-fonte);
  z-index: 99; /* Sobrepõe o conteúdo, mas não a navbar */
  overflow-y: auto;

  /* 🛑 ANIMAÇÃO DE SOBREPOSIÇÃO (Começa fora da tela para cima) */
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}

.mobile-dropdown-menu.is-open {
  transform: translateY(0); /* Desliza para a posição 60px */
}

.mobile-dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-dropdown-menu li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: white;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
}

.mobile-dropdown-menu li a:hover {
  background-color: var(--roxo-escuro);
}

.selecionado {
  text-decoration: underline !important;
  text-decoration-color: white;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}

/* 🛑 NOVO: Garante que o corpo do site não fique escondido sob o navbar fixo */
body {
  padding-top: 60px;
}

/* Cabecalho de Desktop (INICIALMENTE ESCONDIDO) */
.cabecalho {
  display: none; /* Escondido por padrão no mobile */
}

.margin-1 {
  margin-bottom: -0.1rem;
}

.-margin-top {
  margin-top: -0.1rem;
}

.preco-novo {
  font-size: 16px;

  margin-bottom: 1rem;
}

.logo_img {
  display: flex;
  justify-content: center;
}

.logo_img img {
  width: 219px;
}

.cabecalho {
  display: none;
}

/* Produtos ao longo do site */

.card {
  width: 250px;
  text-align: center;
  margin-bottom: 4rem;
}

.card img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 2rem;
}

.produto-titulo {
  font-family: var(--fonte-principal);
  font-size: 20px;
  font-weight: bold;
  color: var(--roxo-fonte);
  margin-bottom: 1rem;
}

.produto-preco {
  font-family: var(--fonte-principal);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 1rem;
}

#lista-produtos,
#produtos-listagem-container {
  margin: 0 auto;
  width: 250px;
}

/* Ordenar Por */

/* Container geral .filtros mantém-se o mesmo: */
.filtros {
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
  width: 335px; /* LARGURA FIXA */
  color: #fff;
  font-family: "Arimo";
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* Importante para posicionar a lista */
}

.filtros label {
  font-family: var(--fonte-texto);
  color: #fff;
  font-size: 1.5rem;
}

.custom-select-wrapper {
  width: 100%; /* Herda os 335px do .filtros */
  position: relative;
  cursor: pointer;
  margin-bottom: 20px;
}

/* Estilo da caixa principal (o valor selecionado) */
.select-selected {
  height: 60px;
  line-height: 60px; /* Centraliza verticalmente o texto */
  text-align: center;
  padding: 0 10px;
  border-radius: 8px;
  border: 2px solid #4b3d57;
  background-color: #84608e;
  color: rgba(255, 255, 255, 0.75);
  font-size: 20px;
}

/* Estilo da lista de opções suspensa */
.select-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  border: 2px solid var(--roxo-escuro);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background-color: var(--roxo);
  transition: max-height 0.3s ease-out, visibility 0s linear 0s;
  max-height: 300px;
  overflow-y: auto;
  visibility: visible;
}

/* Estilo de cada item da lista */
.select-items div {
  padding: 10px;
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  color: white;
}

/* Estilo de hover na lista */
.select-items div:hover {
  background-color: #4b3d57; /* Cor de hover */
}

/* Classe para esconder a lista */
.select-hide {
  max-height: 0;
  visibility: hidden;
  transition-delay: 0s, 0.3s;
  overflow: hidden;
}

.produtos {
  padding-top: 8rem;
}

.btn-comprar {
  font-size: 16px;
  color: var(--branco-terra);
  font-weight: 400;
  font-family: "Roboto Condensed";

  background-color: var(--roxo-escuro);
  padding: 6px 22px;
  border-radius: 7px;

  margin-top: 2rem;
}

/* Preço Antigo */

.preco-antigo {
  font-size: 14px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;

  margin-bottom: -0.35rem;
}

/* --- ESTILOS PARA O MINI CARROSSEL DE MINIATURAS --- */

.miniaturas-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-top: 15px;
  padding-bottom: 5px;
  gap: 10px;
  width: 100%;
}

.miniaturas-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.miniaturas-container .miniatura {
  flex-shrink: 0;
  flex-grow: 0;

  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s;
}

.miniaturas-container .miniatura.active {
  opacity: 1;
}

/* Rodape */

footer {
  background-color: var(--roxo);
  color: var(--branco-terra);
  padding: 20px;
}

footer p {
  font-family: "Sansation", sans-serif;
  font-weight: 400;
  font-size: 20px;
}

.logo_rodape {
  width: 70vw;
  margin: 0 auto;
}

.itens_rodape {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.itens_rodape img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.itens_rodape p {
  font-family: "Sansation" sans-serif;
  font-size: 20px;
}

.texto_rodape_pequeno {
  font-size: 16px;
}

.linha_separacao {
  width: 100%;
  border: none; /* remove estilo padrão */
  border-top: 1px solid #fff; /* cria a linha */
  margin: 10px 0;
}

#iframe_maps {
  width: 90vw;
  height: 289px;
  margin: 30px 0;
}

#final_rodape {
  background-color: var(--roxo-fonte);
  color: #fff;
  font-family: var(--fonte-principal);
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  padding: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
}

#final_rodape a {
  color: #fff;
}

.transicao_5 img {
  width: 100%;
}

.img_nao_encontrado {
  width: 100%;
  height: auto;
  margin-top: 2rem;
}

#erro-produto {
  padding: 30px 0 !important;
}

/* Responsividade */
@media (min-width: 768px) {
  /* 🛑 Reverte o body padding para não afetar o layout de desktop */
  body {
    padding-top: 0;
  }

  /* Header/Navbar no Desktop - Retorna ao fluxo normal (static) */
  .navbar {
    display: none;
  }

  .logo-img {
    width: 30vw;
    margin: 1rem auto;
  }

  /* Menu de Desktop - Visível */
  .menus {
    display: flex;
    justify-content: space-around;
    padding: 1rem 4rem;
    list-style: none;
    margin-left: auto;
  }

  .menus a {
    color: var(--roxo-fonte);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    font-weight: 600;
  }

  .menus a:hover {
    color: var(--roxo-escuro);
  }

  /* Hamburger - Escondido no Desktop */
  .hamburger-menu {
    display: none;
  }

  /* Menu Dropdown Mobile - Escondido no Desktop */
  .mobile-dropdown-menu {
    display: none;
  }

  /* Rodape */

  footer {
    padding: 40px;
  }

  .inicio_rodape {
    margin-bottom: 2rem;
  }

  .logo_rodape {
    width: 60vw;
  }

  .produtos,
  .lista-produtos,
  #lista-produtos,
  #produtos-listagem-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 90%;
  }

  .card {
    margin: 2rem;
  }
}

@media (min-width: 1024px) {
  .logo-img {
    width: 25vw;
  }

  .menus {
    padding: 1rem 8rem;
  }

  /* Rodape */

  footer {
    padding: 0 40px;
    display: flex;
  }

  footer section {
    width: 50%;
  }

  #iframe_maps {
    margin: auto 0;
    margin-left: 3rem;
    width: 50%;
    height: 80vh;
  }

  .inicio_rodape {
    margin-bottom: 2rem;
  }

  .logo_rodape {
    width: 40vw;
  }
}

@media (min-width: 1366px) {
  .logo-img {
    width: 16vw;
  }
  .menus {
    padding: 1rem 20rem;
  }

  /* Rodape */

  footer {
    padding: 0 40px;
    display: flex;
  }

  footer section {
    width: 50%;
  }

  #iframe_maps {
    margin: auto 0;
    margin-left: 3rem;
    width: 50%;
    height: 60vh;
  }

  .inicio_rodape {
    margin-bottom: 2rem;
  }

  .logo_rodape {
    width: 25vw;
  }

  .miniaturas-container .miniatura {
    width: 125px;
    height: 125px;
  }
}
