body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff; /* Corpo branco */
  color: #222222; /* Texto escuro para contraste */
}

header {
  background-color: #000000; /* Preto */
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  color: #3d9ae7;
}

nav {
  margin-top: 15px;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #f0f0f0;
  font-weight: bold;
  padding: 8px 12px;
}

nav ul li a:hover {
  color: #48a9f8;
  border-bottom: 2px solid #48a9f8;
}

#lojaBox {
  display: inline-block;
  margin-top: 10px;
}

.estilo-seletor {
  background-color: #1c1c1c;
  color: #ffffff;
  border: 1px solid #48a9f8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  margin-left: 20px;
  transition: border-color 0.3s, background-color 0.3s;
}

.estilo-seletor:focus {
  outline: none;
  border-color: #73c2ff;
  background-color: #2a2a2a;
}

.estilo-seletor:hover {
  cursor: pointer;
  border-color: #73c2ff;
}

main {
  padding: 20px;
}

.aba {
  display: none;
}

.aba.ativa {
  display: block;
}

.fotos-trabalho {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  text-align: center;
}

.fotos-trabalho img {
  width: 400px;
  border-radius: 10px;
}
.item-trabalho {
  max-width: 400px;
}
.item-trabalho img {
  width: 100%;
  border-radius: 10px;
}

.item-trabalho p {
  font-size: 20px;
  margin-top: 8px;
  color: #333; /* ajuste conforme o fundo, se for escuro, use #fff */
}
h2, h3, h4 {
  color: #0055aa;
  text-align: center;
}

ul {
  text-align: center;
  list-style: none;
  padding: 0;
}

.placas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.placa {
  background-color: #f4faff;
  padding: 15px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  border: 1px solid #cce6ff;
}

.placa img {
  max-width: 100%;
  border-radius: 5px;
}

.placa button {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #48a9f8;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.placa button:hover {
  background-color: #307dc9;
}

.placa a {
  text-decoration: none;
  color: #222222;
}

.placa a:visited {
  color: #222222;
}

.placa a:hover {
  color: #0055aa;
}

footer {
  background-color: #000000; /* Preto */
  text-align: center;
  padding: 15px;
  color: #888;
}

/* Layout página de produto */
.detalhe-produto-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  margin: 20px auto;
  max-width: 900px;
}

.produto-imagem img {
  width: 300px;
  border-radius: 10px;
}

.produto-info {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  color: #222222;
}

.produto-info h2 {
  margin-top: 0;
  color: #0055aa;
}

/* Estilo frete compacto */
.frete-formulario.compacto {
  background-color: #f4faff;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: left;
  border: 1px solid #cce6ff;
}

.frete-formulario.compacto input {
  width: 90%;
  padding: 6px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.frete-formulario.compacto button {
  padding: 8px 12px;
  margin-right: 8px;
  background-color: #48a9f8;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.frete-formulario.compacto button:hover {
  background-color: #307dc9;
}

#resultadoFrete {
  margin-top: 10px;
  color: #000;
}

.produto-detalhe {
  text-align: center;
  margin-bottom: 30px;
}

.produto-detalhe img {
  width: 300px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.galeria-itens {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px 0;
}

.item {
  text-align: center;
  width: 200px;
  background-color: #e6f0fa;
  padding: 10px;
  border-radius: 10px;
}

.item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.item p {
  margin-top: 8px;
  color: #0a1a2f; /* azul escuro que combina com o tema */
  font-weight: bold;
}
.galeria-itens .item img {
  width: 200px;        /* Largura padrão */
  height: 200px;        /* Altura padrão */
  object-fit: contain; /* Garante que a imagem se encaixe sem distorcer */
  margin-bottom: 8px;
}
.cabecalho-arredondado {
  background-color: #000;
  padding: 10px;
  text-align: center;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#filtroMarca {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #48a9f8;
  font-size: 16px;
  background-color: #f4faff;
  color: #222;
}
#filtroTipo {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #48a9f8;
  font-size: 16px;
  background-color: #f4faff;
  color: #222;
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-img {
  height: 200px;
  width: 400px;
}

/* Animação de entrada suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item,
.item-trabalho {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Aparecem em sequência */
.item:nth-child(1) { animation-delay: 0.1s; }
.item:nth-child(2) { animation-delay: 0.2s; }
.item:nth-child(3) { animation-delay: 0.3s; }
.item:nth-child(4) { animation-delay: 0.4s; }

.item-trabalho:nth-child(1) { animation-delay: 0.5s; }
.item-trabalho:nth-child(2) { animation-delay: 0.6s; }

.nome-produto {
  text-align: center;
  color: #0066cc;
  font-weight: bold;
  margin: 5px 0 15px 0;
}

@media (max-width: 768px) {
  header {
    padding: 10px;
  }

  logo-container {
    flex-direction: column;
    gap: 6px;
  }

  .logo-img {
    height: 120px;
    width: 250px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li a {
    font-size: 16px;
  }

  #lojaBox {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  .estilo-seletor {
    margin: 10px 0 0 0;
    width: 90%;
  }

  #filtroMarca,
  #filtroTipo {
    width: 90%;
    font-size: 15px;
    margin: 5px auto;
    display: block;
  }

  main {
    padding: 10px;
  }

  .fotos-trabalho img,
  .item-trabalho,
  .produto-detalhe img,
  .produto-imagem img {
    width: 100% !important;
    max-width: 100%;
  }

  .galeria-itens {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .galeria-itens .item {
    width: 90%;
    margin: 0 auto;
  }

  .galeria-itens .item img {
    width: 100%;
    height: auto;
  }

  .placas-container {
    flex-direction: column;
    align-items: center;
  }

  .placa {
    width: 90%;
  }

  .detalhe-produto-container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .produto-info {
    width: 90%;
  }

  .frete-formulario.compacto {
    width: 100%;
    padding: 10px;
  }

  footer p {
    font-size: 14px;
  }

  h2, h3, h4 {
    font-size: 18px;
  }
}
