:root {
  --primary-color: 
#646cff;
  --secondary-color: 
#535bf2;
  --background-color: 
#ffffff;
  --text-color: 
#213547;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  }

body {
  font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  background-color: 
#f9f9f9;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: 
#001a34;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar img.logo {
  height: 60px; /* Tamanho proporcional */
  max-width: 100%;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}


/* Media query para telas menores */
@media (max-width: 768px) {
  .nav-links {
    display: none; 
    flex-direction: column;
    position: absolute;
    top: 60px; 
    left: 0;
    width: 100%;
    background-color: #001a34;
    text-align: center;
    padding: 1rem 0;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
    display: block;
  }

  .hamburger {
    display: flex; /* Exibe o hambúrguer em telas menores */
  }

  .nav-links.active {
    display: flex; /* Exibe os links quando a classe 'active' é adicionada */
  }
}

/* Carousel */
.carousel {
  margin-top: 6rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  /*height: 400px; */
  max-height: 80vh; 
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Usar 'contain' para evitar cortes */
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent; /* Tornar o fundo transparente */
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 2px 4px rgba(145, 144, 144, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-button:hover {
  background-color: rgba(123, 122, 122, 0.1);
}

.carousel-button.prev {
  left: 1rem; /* Reduz a distância em telas menores */
}

.carousel-button.next {
  right: 1rem; /* Reduz a distância em telas menores */
}

/* Media query para telas menores */
@media (max-width: 768px) {
  .carousel-button {
    width: 30px;
    height: 30px; 
    font-size: 16px; 
    padding: 3px; 
  }
  .carousel-button.prev {
    left: 0.5rem; 
  }

  .carousel-button.next {
    right: 0.5rem; /* Reduz ainda mais a distância */
  }
}

/* Products Section */
.products-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.search-container {
  margin: 2rem 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

#searchInput {
  padding: 0.75rem 1.5rem;
  width: 100%;
  max-width: 600px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.product-card {
  border: 1px solid white;
  border-radius: 10px;
  padding: 1rem;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
  border-radius: 8px;
  margin-bottom: 1rem;
}

footer {
  background-color: 
#06203b;
  padding: 4rem 2rem 2rem;
  color: white;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  /* Defina colunas com larguras específicas para melhor distribuição */
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 2rem;
}

/* Ajuste o espaçamento vertical entre os elementos */
.footer-section {
  padding: 0 1rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  border-bottom: 2px solid 
#3498db;
  padding-bottom: 8px;
  display: inline-block;
}

/* Alinhar informações de contato */
.contact-info p {
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

/* Melhorar o alinhamento da seção de localização */
.map-container {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}
.social-links {
  display: flex;
  flex-direction: column; 
  gap: 1rem; 
}
.social-links a,
footer a {
  color: rgb(253, 253, 253); 
  text-decoration: none;
}

.social-links a:hover,
footer a:hover {
  color: 
#3498db; 
  text-decoration: none;
}

/* Para garantir que todos os links no footer sigam esta regra */
footer a:visited {
  color: white; 
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsividade aprimorada */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.whatsapp-button {
  display: inline-block;
  background-color: 
#25D366;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 1rem;
  transition: background-color 0.3s;
}

.whatsapp-button:hover {
  background-color: 
#128C7E;
}

/* Product Details Page */
.product-details {
  padding: 6rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-details-grid {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.main-image {
  width: 100%;
  height: auto;
  max-height: 650px; /* Ajuste conforme necessário */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.thumbnails img {
  width: 120px;
  margin: 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.3s;
}

.thumbnails img:hover {
  transform: scale(1.1);
}

.additional-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.additional-images img {
  width: 100px;
  height: 100px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
  object-fit: cover;
}

.additional-images img:hover {
  transform: scale(1.1);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-info h1 {
  font-size: 2rem;
  color: #333;
}

.product-info a {
  text-align: center;

}
.description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
}

.specifications {
  background: 
#f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.specifications h2 {
  margin-bottom: 1rem;
  color: #333;
}

.specifications ul {
  list-style: none;
  padding: 0;
}

.specifications li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

.specifications li:last-child {
  border-bottom: none;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card p {
  color: #666;
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .thumbnails img {
    width: 60px;
  }
  .product-details-grid {
    grid-template-columns: 1fr;
  }

  .additional-images img {
    width: 60px;
    height: 60px;
  }
}

.title-product {
  text-align: center;
  padding: 10px 0px;
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: 
#f4f4f9;
}

.produto {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 280px;
  text-align: center;
  padding: 20px;
  margin: 20px auto; /* Adicionado para centralizar horizontalmente */
}

.produto:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.produto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.produto h3 {
  font-size: 20px;
  color: #333;
  margin: 15px 0;
}

.produto p {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

/* Media query para telas menores (dispositivos móveis) */
@media (max-width: 768px) {
  .produto {
    width: 90%; 
    margin: 20px auto; 
  }
}

.produto .preco {
  font-size: 18px;
  color: green;
  font-weight: bold;
}

.carousel-filtro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow-x: auto; 
  width: 100%;
  scroll-behavior: smooth;
}

.carousel-filtro-items {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 80%;
  justify-content: center; 
  padding: 0 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  white-space: nowrap; 
}

.carousel-filtro-items::-webkit-scrollbar {
  display: none;
}

.carousel-filtro-item {
  text-align: center;
  padding: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border 0.3s ease;
  flex: 0 0 auto;
}

.carousel-filtro-item.selected {
  border: 2px solid red;
}

.carousel-filtro-item img {
  width: 80px;
  height: 80px;
  max-width: 100px;
  max-height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .carousel-filtro-items {
    overflow-x: scroll;
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
    justify-content: flex-start; 

  }
} 

.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a {
  margin: 0 5px;
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.pagination span {
  margin: 0 10px;
}

@media (max-width: 768px) {
.navbar img.logo {
  height: 40px; /* Smaller logo on mobile */
}
}
@media (max-width: 480px) {
.navbar img.logo {
  height: 32px; /* Even smaller on very small screens */
}
}

@media (max-width: 768px) {
.carousel {
  margin-top: 4.8rem;
}
}
@media (max-width: 480px) {
.carousel {
  margin-top: 4.3rem;
}
}