/* ===========================================================
   style.css — versão corrigida: header/ logo ajustados
   Mantive todo o seu CSS original e corrigi conflitos
   (removeu-se a regra que empurrava itens para a direita e
   padronizou-se o layout do header para funcionar no mobile)
   =========================================================== */

/* Reset / básicos */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
html { scroll-behavior: smooth; }
body { color: #333; line-height: 1.6; padding-top: 72px; background: #fff; }
img, video { max-width: 100%; display: block; }

/* ===== HEADER (corrigido) =====
   - removida a regra conflitante que fazia `justify-content: flex-end`
   - header .container agora organiza logo à esquerda e menu à direita
*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 72px;
  background: #15374e;
  box-shadow: 0 2px 5px rgba(0,0,0,.12);
  z-index: 2000;
  padding: .5rem 0;
}

/* container dentro do header — controla alinhamento do conteúdo do header */
header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between; /* garante logo à esquerda e menu à direita */
  padding: 0 1rem;
  position: relative; /* para que .menu-toggle posicionado absolute fique relativo ao container */
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 0;
  text-align: left;
}
.logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* botão hamburguer */
.menu-toggle {
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.9rem;
  cursor: pointer;
  z-index: 2600;
}

/* ===== NAV (desktop por padrão) ===== */
nav {
  display: flex;
  align-items: center;
}
nav ul {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav ul li a {
  color: #fff;
  font-weight: 600;
  padding: .35rem .2rem;
  display: inline-block;
  text-decoration: none;
}
nav ul li a:hover { color: #66a3ff; }

/* ===== Botões ===== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}
.btn:hover { background: #0056b3; }

.btn-destaque {
  display: inline-block;
  background: #284c9b;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

/* cores (bolinhas) — versão consolidada */
.cores {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
  align-items: center;
}

/* Limitar a 5 bolinhas visíveis (esconde depois da 5ª) */
.produto .topo .cores .cor:nth-child(n+6) {
  display: none !important; /* Esconde qualquer bolinha depois da 5ª */
}

/* Esconder botões sem cor de fundo (fotos extras sem cor) */
.produto .topo .cores .cor:not([style*="background"]) {
  display: none !important;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #ccc;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  cursor: default;
  transition: transform .12s ease, box-shadow .12s ease;
}
.swatch:hover, .swatch:focus { transform: scale(1.12); box-shadow: 0 6px 12px rgba(0,0,0,0.12); outline: none; }
.cor-branco { background: #ffffff; }
.cor-preto { background: #111111; }
.cor-madeira { background: #8B5A2B; }
.cor-cinza { background: #C0C0C0; }
.cor-azul { background: #15374e; }

/* Banner */
#banner { width: 100%; min-height: 45vh; overflow: hidden; }
.banner-slide { position: relative; width: 100%; height: 100%; display: none; }
.banner-slide.active { display: block; }
.banner-slide img, .banner-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

/* Seções */
section.inner { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }
section.inner h2 {
  color: #007BFF;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.9rem;
}

/* Produtos */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.produto {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.produto img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* ======= Contato ======= */
#contato .contato-wrap {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
#contato .contato-wrap input,
#contato .contato-wrap textarea,
#contato .contato-wrap button {
  width: 100%;
  box-sizing: border-box;
}
#contato .contato-wrap input, #contato .contato-wrap textarea {
  padding: .65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}
#contato .contato-wrap button {
  padding: .7rem;
  font-weight: 700;
  background: #25D366;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
#contato .whatsapp-row { text-align: center; margin-bottom: 0.75rem; }
#contato .whatsapp-row .btn-whatsapp { display: inline-block; margin: 0 auto; }

/* ======= WhatsApp floating ===== */
.whatsapp-float {
  position: fixed;
  width: 60px; height: 60px;
  bottom: 20px; right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
  z-index: 3000;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img {
  width: 28px; height: 28px; filter: invert(1);
}

.whatsapp-balao {
  position: absolute;
  bottom: 80px; right: 90px;
  background: #25D366; color: #fff;
  padding: 10px 14px; border-radius: 10px;
  opacity: 0; transition: opacity 0.5s ease;
  font-size: 14px; max-width: 220px;
  z-index: 2999; pointer-events: none;
}
.whatsapp-balao.show {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
footer { background: #333; color: #fff; text-align: center; padding: 2rem; margin-top: 1.5rem; }

/* ===== Seção Sobre ===== */
.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.sobre-card {
  background: #d4e1f8;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.sobre-card h3 { color: #032c47; margin-bottom: .75rem; font-size: 1.3rem; }
.sobre-card p { margin-bottom: .75rem; font-size: 0.95rem; line-height: 1.6; color: #000; }
.sobre-card ul { list-style: disc inside; padding-left: .5rem; color: #333; }

/* ===== Seção Qualidade ===== */
.qualidade-banner { background: #f5f5f5; padding: 3rem 1rem; text-align: center; }
.qualidade-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}
.qualidade-img img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.qualidade-info { flex: 1; text-align: left; }
.qualidade-info .item { margin-bottom: 1.5rem; }
.qualidade-info h3 { font-size: 1.2rem; margin-bottom: .5rem; color: #333; }
.qualidade-info p { margin: 0; color: #555; }

/* ===== Trabalhe Conosco ===== */
.banner-trabalhe {
  position: relative;
  height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.banner-trabalhe img {
  position: absolute; width: 100%; height: 100%;
  object-fit: cover; top: 0; left: 0; z-index: 0;
}
.banner-trabalhe .overlay {
  position: relative; z-index: 1;
  background: rgba(0,0,0,0.6);
  padding: 40px; border-radius: 12px;
}
.btn-banner {
  display: inline-block; background: #28a745; color: #fff;
  padding: 12px 28px; border-radius: 8px; text-decoration: none;
  font-weight: bold; transition: background 0.3s;
}
.btn-banner:hover { background: #218838; }

.form-candidatura {
  max-width: 600px; margin: 50px auto; padding: 20px; text-align: center;
}
.form-candidatura h2 { font-size: 1.8rem; margin-bottom: 10px; color: #007bff; }
.form-candidatura p { margin-bottom: 20px; font-size: 1rem; color: #555; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}
.form-candidatura input, .form-candidatura textarea {
  width: 100%; padding: 12px; border: 1px solid #ccc;
  border-radius: 8px; font-size: 1rem; box-sizing: border-box;
}
.form-candidatura textarea { grid-column: span 2; resize: none; }
.form-candidatura button {
  margin-top: 15px; width: 100%; background: #28a745; color: #fff;
  border: none; padding: 14px; border-radius: 8px; font-size: 1.1rem;
  cursor: pointer; transition: background 0.3s;
}
.form-candidatura button:hover { background: #218838; }

/* Responsivo Trabalhe Conosco */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-candidatura textarea { grid-column: span 1; }
}

/* ===== Responsivo geral do banner ===== */
@media (max-width: 1024px) { #banner { min-height: 40vh; } }
@media (max-width: 768px) { #banner { min-height: 30vh; } }
@media (max-width: 480px) { #banner { min-height: 28vh; } }

/* ===== Menu Responsivo (mobile behaviour) ===== */
.menu-toggle { display: none; font-size: 28px; background: none; border: none; color: white; cursor: pointer; }
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #003366;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 10px;
  }
  nav.open { display: flex; }
  nav ul { flex-direction: column; gap: 10px; }
  nav ul li a { color: white; text-decoration: none; }
  .menu-toggle { display: block; }
}

/* ----- Thumb / setas ----- */
.produto .thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f9fb;
}

.produto .thumb img {
  width: 100%;
  height: 200px; /* ajuste conforme layout */
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

/* setas discretas */
.seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 16px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.12s, transform 0.12s;
  z-index: 4;
}
.seta:hover { background: rgba(255,255,255,0.95); transform: translateY(-50%) scale(1.04); }
.seta:focus { outline: 2px solid rgba(21,55,78,0.18); }

/* posicionamento */
.seta-esq { left: 8px; }
.seta-dir { right: 8px; }

/* pequenas melhorias às bolinhas */
.cor {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid transparent; padding: 0; cursor: pointer;
  box-sizing: border-box; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.cor:hover, .cor:focus { transform: scale(1.15); box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.cor.active { border-color: #15374e; box-shadow: 0 6px 14px rgba(21,55,78,0.16); }

/* ===== MDP thumb / arrows / cores (versão consolidada) ===== */
.produtos-grid .produto { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.thumb { position: relative; background: #f8f9fb; }
.thumb img { width: 100%; height: 220px; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.thumb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px;
  border-radius: 6px; border: 1px solid rgba(0,0,0,0.08); background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; z-index: 20;
}
.thumb-nav.prev { left: 8px; }
.thumb-nav.next { right: 8px; }
.thumb-nav:focus { outline: 2px solid rgba(0,123,255,0.25); }

/* top area */
.info { padding: 0.75rem; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.nome { font-weight: 700; margin: 0; font-size: 1rem; color: #222; }

/* cores (bolinhas) — override/ajuste final se necessário */
.cores { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.cor { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.06); transition: transform .12s ease, box-shadow .12s ease; }
.cor:hover { transform: scale(1.08); box-shadow: 0 6px 12px rgba(0,0,0,0.12); }
.cor.active { box-shadow: 0 0 0 3px rgba(0,123,255,0.12); transform: scale(1.06); }

/* actions row (mantido) */
.actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.left { display: flex; align-items: center; gap: 8px; }
.btn-comprar { display: inline-block; background: #25D366; color: #fff; padding: .45rem .75rem; border-radius: 8px; text-decoration: none; font-weight: 700; }
.btn-ver { background: none; border: 0; color: #1e73be; cursor: pointer; padding: 0; font-weight: 600; }

/* responsivo pequenos */
@media (max-width: 480px) {
  .thumb img { height: 160px; }
  .cor { width: 16px; height: 16px; }
}

/* Pequenas melhorias de usabilidade / acessibilidade */
a:focus, button:focus, input:focus, textarea:focus { outline: 3px solid rgba(21,55,78,0.15); outline-offset: 2px; }

/* --- Fim do arquivo --- */
header .container {
  display: flex;
  align-items: center;  /* Alinha os itens verticalmente */
}

header .logo {
  margin-right: auto;  /* Garante que a logo fique à esquerda */
}
