/* ================================
   RESET BÁSICO
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ================================
   BARRA SUPERIOR
================================ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 15px;
  background-color: #7a968f;
  font-size: 13px;
  color: #1c3d34;
}

.top-bar .left a {
  margin-right: 15px;
  color: #044252;
  font-weight: 500;
}

.top-bar .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar .right a {
  display: flex;
  align-items: center;
  color: #044252;
  font-weight: 500;
}

.top-bar .right img {
  width: 18px;
  height: 18px;
  border-radius: 20%;
}

/* ================================
   HEADER PRINCIPAL
================================ */
header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #02011f;
  border-bottom: 1px solid #8295a5;
}

.logo {
  max-height: 60px;
}

/* ================================
   BARRA DE BUSCA
================================ */
.search-bar {
  display: flex;
  align-items: center;
  width: 40%;
  margin: 0 20px;
  padding: 6px 0;
  border-bottom: 2px solid #e0d075c2;
}

.search-bar input {
  width: 100%;
  padding: 6px;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: #fff; /* <-- Esta linha resolve! */
}

.search-bar button {
  border: none;
  background: none;
  cursor: pointer;
}

.search-bar button img {
  width: 40px;
}

/* ================================
   MENU DE NAVEGAÇÃO
================================ */
nav {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  background-color: #fff;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.nav-menu {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-menu li a {
  color: #f8f7f7;
  font-size: 15px;
  font-weight: 600;
}

.nav-menu li a:hover {
  color: #4d6d2e;
}

/* ================================
   CARRINHO E LOGIN
================================ */
.icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.icons a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #fbfffe;
}

.icons img {
  width: 22px;
  height: 22px;
}

/* ================================
   CONTA DO USUÁRIO
================================ */
.minha-conta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
}

.link-conta {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #fbfcf9;
  transition: color 0.2s ease-in-out;
}

.link-conta:hover {
  color: #b4c7b5;
}

.link-conta i {
  margin-right: 8px;
  font-size: 22px;
  color: #b4d6b6;
}

.texto-conta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.texto-conta span {
  font-size: 14px;
  font-weight: bold;
}

.texto-conta small {
  font-size: 12px;
  color: #a5a1a1;
}

/* ================================
   BANNER PRINCIPAL
================================ */
.banner {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: 30px;
  overflow: hidden;
  border-bottom: 1px solid #324a58;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-texto {
  position: absolute;
  top: 50%;
  left: 10%;
  max-width: 450px;
  color: #000;
  transform: translateY(-50%);
}

.banner-texto h1 {
  margin-bottom: 10px;
  font-size: 38px;
}

.banner-texto p {
  margin-bottom: 20px;
  font-size: 30px;
  color: #062b2e;
}

.btn-comprar {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ceb97c;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn-comprar:hover {
  background-color: #5d7333;
}

/* ================================
   PRODUTOS EM DESTAQUE
================================ */
.produtos {
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.produtos h2 {
  margin-bottom: 20px;
  font-size: 26px;
  color: #1c3d34;
}

.lista-produtos {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ================================
   CARRINHO LATERAL
================================ */
#carrinho-lateral {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border-radius: 10px 0 0 10px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
}

#carrinho-lateral.aberto {
  right: 0;
}

.carrinho-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.carrinho-header h2 {
  font-size: 20px;
  color: #333;
}

.fechar-btn {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.lista-carrinho {
  flex: 1;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.lista-carrinho li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.carrinho-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.btn-finalizar {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  background: #28a745;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-finalizar:hover {
  background: #218838;
}

/* ================================
   RODAPÉ
================================ */
.rodape {
  padding: 20px;
  background: #e6ece9;
  border-top: 3px solid #7a968f;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  overflow: hidden; /* evita colapso de margens */
}

.container-rodape {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 30px; /* só espaçamento horizontal */
  margin: 0 auto;
  align-items: start; /* garante que cada coluna alinha pelo topo */
}


.coluna h4 {
  margin-bottom: 10px;
  font-size: 15px;
  color: #2c3e50;
}

.coluna ul {
  padding: 0;
  list-style: none;
}

.coluna ul li {
  margin: 6px 0;
}

.coluna a {
  color: #333;
  text-decoration: none;
}

.coluna a:hover {
  text-decoration: underline;
}

.logos img {
  max-height: 80px;
  margin: 5px;
}

.certificados,
.seguro {
  margin-bottom: 15px;
}

.copy {
  padding-top: 15px;
  font-size: 12px;
  text-align: center;
  color: #555;
  border-top: 1px solid #ccc;
}

.copy a {
  color: #2c3e50;
  text-decoration: none;
}

.copy a:hover {
  text-decoration: underline;
}

/* ================================
   RESPONSIVIDADE
================================ */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }

  .search-bar {
    width: 90%;
    margin-top: 10px;
  }

  nav {
    padding: 10px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .banner-texto {
    top: 55%;
    left: 10%;
    max-width: 80%;
  }

  #carrinho-lateral {
    width: 80%;
  }
}

/* ================================
   AJUSTES FINAIS
================================ */
.right a img {
  margin-right: 7px;
}

.icons a.carrinho img.icone-carrinho {
  width: 50px;
  height: 50px;
}

.rodape .logos .seguro img {
  display: block;
  margin: 0 auto;
  max-height: 130px; /* ajuste como quiser */
  width: auto;
  position: relative;  /* remove o deslocamento que criava espaço */
  top: -30px ;
}

.selo-seguro {
  display: block;
  margin: 0 auto;
  max-height: 50px;
  width: auto;
}

.telefone {
  margin-bottom: 10px;
}


.carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.banner-texto {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: white;
  max-width: 500px;
}

.btn-comprar {
  background: #c2a05d;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

.prev { left: 10px; }
.next { right: 10px; }

.indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}

.indicators button.active {
  background: white;
}

/* Esconde os botões inicialmente */
.carousel .prev,
.carousel .next {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Mostra os botões quando o mouse está sobre o carrossel */
.carousel:hover .prev,
.carousel:hover .next {
  opacity: 1;
}

/* Botões de navegação com fundo transparente */
.carousel .prev,
.carousel .next {
  background-color: transparent; /* remove o fundo */
  color: white; /* cor do ícone/texto */
  border: none;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

/* Aparece ao passar o mouse */
.carousel:hover .prev,
.carousel:hover .next {
  opacity: 1;
}

/* ==== INDICADORES DO CARROSSEL ==== */
.indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}

.dot {
  height: 8px;
  width: 30px;
  background-color: #ccc;
  border-radius: 10px;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background-color: black;
}

.dot {
  width: 30px;
  height: 6px;
  background-color: #ccc;
  border-radius: 3px;
  transition: background-color 0.3s;
  cursor: pointer;
  opacity: 1; /* Sempre visível */
}

.dot.active {
  background-color: #000;
}

/* Indicadores do carrossel — sempre visíveis */
.carousel .indicators {
  position: absolute;      /* para posicionar sobre o carrossel */
  bottom: 10px;            /* distancia da base do carrossel */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;             /* acima das imagens */
  opacity: 1 !important;    /* força visibilidade */
  visibility: visible !important;
}

.carousel .indicators .dot {
  width: 30px;
  height: 6px;
  background-color: #ccc;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel .indicators .dot.active {
  background-color: black;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ccc;
  padding: 15px 20px;
  font-size: 14px;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.cookie-banner a {
  color: #0056b3;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.cookie-banner button:hover {
  background-color: #0056b3;
}

.cookie-banner.oculto {
  display: none;
}

/* Container de produtos em grid */
.lista-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

/* Card individual do produto */
.produto-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.produto-card:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Imagem do produto */
.produto-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Nome do produto */
.produto-card h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

/* Preço */
.produto-card p {
  font-weight: 700;
  font-size: 1.2rem;
  color: #e67e22; /* laranja para destaque */
  margin-bottom: 12px;
}

/* Botão adicionar ao carrinho */
.produto-card button {
  background-color: #e67e22;
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.produto-card button:hover {
  background-color: #cf6b1d;
}
