* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  color: #333;
}

/* Header */
header {
  background-color: #003087;
  padding: 20px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  width: 170px;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 60px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: yellow;
  /* Red hover effect */
}

.social-icon img {
  width: 110px;
  height: auto;
  transition: transform 0.3s ease;
}

.social-icon:hover img {
  transform: scale(1.1);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-content {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-image {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: white;
  border: none;
  padding: 10px;
  font-size: 30px;
  cursor: pointer;
  z-index: 1;
  transition: 0.5s;
}

.carousel-btn:hover {
  color: yellow;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Products */
.products {
  padding: 40px 0;
  text-align: center;
}

.products h2 {
  font-size: 38px;
  margin-bottom: 60px;
}

.product-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}

.product-card {
  position: relative;
  width: 700px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.05);
}

.product-card h3 {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  z-index: 1;
  padding: 10px 20px;
  white-space: normal;
  overflow-wrap: break-word;
}

.product-images img {
  width: 500px;
  height: auto;
  display: block;
}

/* Where to Buy */
.where-to-buy {
  background-color: #E0E0E0;
  padding: 40px 0;
  text-align: center;
}

.where-to-buy h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.map-section {
  max-width: 1200px;
  margin: 0 auto;
}

.map-section p {
  font-size: 18px;
  margin-bottom: 20px;
}

.map-btn {
  background-color: #D32F2F;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: background 0.3s ease;
}

.map-btn:hover {
  background-color: #b71c1c;
}

.map {
  width: 600px;
  height: auto;
}

/* Footer */
footer {
  background-color: #003087;
  color: white;
  padding: 20px 0;
}

footer a {
  color: white;
  text-decoration: none;
  transition: 0.3s ease;
}

footer a:hover {
  color: yellow;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.footer-column h4 {
  margin-bottom: 10px;
}

.footer-column p {
  margin-bottom: 5px;
}

/* Chat Icon */
.chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
}

.chat-icon img {
  width: 100px;
  /* Reduced size */
  height: auto;
  transition: transform 0.3s ease;
}

.chat-icon:hover img {
  transform: scale(1.1);
}

/* Responsiveness */
@media (min-width: 769px) {
  .product-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .product-card {
    width: 600px;
  }

  .product-images img {
    width: 600px;
    height: auto;
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
  /* Aumentado para garantir que o botão fique acima de tudo */
  position: relative;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {

  /* Layout do cabeçalho */
  header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }

  /* Mostrar o botão hamburger */
  .hamburger {
    display: block;
    order: 1;
  }

  /* Logo centralizado */
  .logo {
    width: 180px;
    height: auto;
    order: 2;
  }

  /* Ícone do Instagram à direita */
  .social-icon {
    order: 3;
  }

  .social-icon img {
    width: 110px;
    height: auto;
  }

  /* Menu de navegação como overlay */
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: #003087;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  body.nav-open nav {
    left: 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* Animação do ícone hamburger */
  body.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  body.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Ajustes para produtos */
  .product-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .products h2,
  .where-to-buy h2 {
    font-size: 30px;
  }

  .product-card {
    width: 100%;
    max-width: 400px;
  }

  .product-card h3 {
    font-size: 17px;
  }

  .product-images img {
    width: 100%;
    height: auto;
  }

  /* Ajustes para o footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 20px;
  }
}

/* Ajuste geral para o body quando o menu está aberto */
.nav-open {
  overflow: hidden;
  /* Impede rolagem da página quando o menu está aberto */
}

#map {
  height: 50vh;
  width: 100%;
}