/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  overflow-x: hidden;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Cabeçalho */
.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  flex-wrap: wrap;
}
.logo-link .logo-img {
  max-width: 140px;
  height: auto;
  display: block;
}
.main-nav .nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-left: 0;
}
.nav-item {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-item:hover {
  color: #28a745;
}
.user-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.user-item {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.2s;
}
.user-item:hover {
  color: #28a745;
}

/* Botões */
.btn,
.botao,
.btn-finalizar {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.botao,
.btn-primary {
  background: #28a745;
  color: #fff;
}
.botao:hover,
.btn-primary:hover {
  background: #218838;
}
.btn-finalizar {
  background: #007bff;
  color: #fff;
}
.btn-finalizar:hover {
  background: #0056b3;
}

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Página inicial */
.home-intro {
  text-align: center;
  margin: 40px 0;
}
.home-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.home-intro p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.btn-primary {
  margin-top: 20px;
}

/* Correção imagem marketing */
.home-marketing {
  width: 100%;
  overflow: hidden;
  text-align: center;
  padding: 0 15px;
}
.marketing-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Produtos listagem */
.produtos-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.produto {
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 230px;
  padding: 10px;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.produto img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}
.produto h3 {
  margin: 15px 0 10px;
}
.produto p {
  color: #388e3c;
  font-weight: bold;
}
.produto .botao {
  margin-top: 10px;
}

/* Produto Detalhe */
.produto-detalhe {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}
.galeria-imagens {
  flex: 1;
  min-width: 300px;
}
.imagem-principal {
  width: 100%;
  max-width: 450px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  object-fit: contain;
}
.miniaturas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.miniatura {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border 0.2s;
}
.miniatura:hover {
  border: 2px solid #28a745;
}
.info-produto {
  flex: 1;
  min-width: 300px;
}
.info-produto select,
.info-produto input[type="number"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.botoes-compra {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.botoes-compra button {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
}
.botoes-compra button:hover {
  background: #218838;
}
.descricao-produto {
  margin-top: 20px;
}
.descricao-produto h4 {
  margin-bottom: 10px;
}
.descricao-produto p,
.descricao-produto ul {
  margin-bottom: 10px;
}
.descricao-produto ul {
  list-style: disc;
  padding-left: 20px;
}

/* Carrinho */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: left;
  vertical-align: middle;
}
th {
  background: #f0f0f0;
}
table img {
  max-width: 50px;
  border-radius: 4px;
}
.frete-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
}
.frete-form input[type="text"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-width: 200px;
}
.carrinho-actions {
  text-align: center;
  margin-top: 20px;
}

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Responsivo */
@media(max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .main-nav .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .user-nav {
    justify-content: center;
    flex-direction: column;
  }
  .home-intro h1 {
    font-size: 2rem;
  }
  .produto-detalhe {
    flex-direction: column;
  }
  .botoes-compra {
    flex-direction: column;
  }
  table th,
  table td {
    font-size: 14px;
  }

  /* Correção imagem marketing.png desproporcional no celular */
  .marketing-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
}
