/* CORES PRINCIPAIS */
:root {
  --verde: #4B5D3A;
  --bege: #F5F1E5;
  --branco: #ffffff;
}

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: var(--bege);
  color: #333;
}

/* HEADER */
header {
  background: var(--verde);
  color: var(--branco);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  
}

header .logo img {
  width: 100px;
  height: 80px;
    
}

header nav a {
  color: var(--branco);
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

header nav a.active {
  border-bottom: 2px solid var(--branco);
}


/* CARROSSEL */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1400px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform ease;
  /*animation: carousel-slide 24s infinite; */
    
}

.carousel-slide{
  flex: 0 0 50%;
  /*flex-shrink: 0;*/
  
}

.carousel img {
  width: 100%;
  height: 400px;
  object-fit:cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  border-radius: 50%;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:hover {
  background: rgba(0,0,0,0.6);
}

/*@keyframes carousel-slide {
  0%, 33% { transform: translateX(0); }
  33%, 66% { transform: translateX(-100%); }
  66%, 100% { transform: translateX(-200%); }
  100%, 0% { transform: translatey(0%); }
} */

@media (min-width: 768px) {
  .carousel-slide { flex: 0 0 50%; }
}

@media (min-width: 1024px) {
  .carousel-slide { flex: 0 0 50%; }
}

/* INTRO */
.intro {
  text-align: center;
  padding: 20px;
}

.intro .btn {
  background: var(--verde);
  color: var(--branco);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}

.contato {
  color: var(--branco);
  background-color: var(--verde);
  padding: 20px;
  text-align: center;
}

.sobre-nos {
  padding: 40px;
  background: var(--verde);
  
}

.conteudo-sobre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap; /* garante que em telas menores a imagem fique em cima */
  max-width: 1200px;
  margin: 0 auto;
}

.imagem-sobre-nos {
  width: 500px;
  max-width: 100%;
  height: 350px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-left: auto;
  margin-right: auto;
}

.texto-sobre {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  color: #F5F1E5;
  margin-left:auto;
  margin-right: auto;
  text-align:justify;
}



.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.endereco,
.parceiros {
  flex: 1 1 300px; /* ocupa 50% ou mais em telas grandes, empilha em telas pequenas */
  padding: 10px;
  box-sizing: border-box;
}

.mapa-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Proporção 16:9 */
}

.mapa-container iframe {
  position: absolute;
  top: 0;
  left: 80px;
  width: 80%;
  height: 80%;
  border: 0;
  border-radius: 5%;
}

.parceiros-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.parceiros-logos img {
  width: 140px;
  height: 110px;
  background-color: white;
  padding: 0px;
  border-radius: 20%;
  
}
.garmo, .amatus, .julia {
  transition: transform 0.2s;
  
}

.amatus:hover {
  transform: translatey(-5px);
 
}
.julia:hover {
  transform: translateY(-5px);
}
.garmo:hover {
  transform: translateY(-5px);
}

/* PRODUTOS HEADER */
.produtos-header {
  text-align: center;
  margin: 20px;
}

.produtos-header input,
.produtos-header select {
  padding: 8px;
  margin: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* GRID DE PRODUTOS */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px;
}

.card {
  background: var(--branco);
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
}

/* BOTÃO WHATSAPP CORRIGIDO */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
}

.whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.instagram img {
  margin-left: 30px;
  width: 30px;
  height: 30px;
}

/* BOTÃO VOLTAR AO TOPO */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 80px;
  display: none;
  background: var(--verde);
  color: var(--branco);
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

#backToTop:hover {
  background: #3d4e2f;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px;
  background: var(--verde);
  color: var(--branco);
  margin-top: 0px;
}
/* Centraliza quando só 1 produto estiver visível */
#produtosGrid.single-result {
  display:flex;
  justify-content: center;
}
/* mantém mesmo tamanho do padrão */

#produtosGrid.single-result .card img {
  height: 200px; 
  object-fit: cover;
}

