/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: #fff;
  color: #333;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  padding: 18px;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
}


/* ===== SEÇÃO CABEÇALHO ===== */
/* Cabeçalho normal */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background-color: #808080;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*Secao cadastro com sucesso*/
.mensagem-sucesso {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  margin: 20px;
  text-align: center;
}


/* Quando rola para baixo */
.header.scrolled {
  background-color: rgba(128, 128, 128, 0.8); /* Mesma cor, mas com transparência */
  backdrop-filter: blur(4px); /* opcional: deixa o fundo mais elegante */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* sombra um pouco mais forte */
}

.logo img {
  max-height: 60px;
}

.menu a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.menu a.active,
.menu a:hover {
  border-bottom: 2px solid #d4006e;
  color: #d4006e;
}

.cart-icon {
  font-size: 24px;
  cursor: pointer;
}

.icons-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.login-icon {
  font-size: 24px;        /* Aumenta o tamanho do bonequinho */
  padding: 8px 12px;      /* Dá mais espaço ao redor */
  cursor: pointer;        /* Mostra que é clicável */
}

.quantidade {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.quantidade button {
  padding: 4px 10px;
  font-size: 16px;
  background-color: #d93b8f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.quantidade span {
  font-weight: bold;
}


/* Carrinho lateral */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 20px;
  transition: right 0.3s ease;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-header h3 {
  font-size: 1.4rem;
  color: #d4006e;
}

#closeCart {
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
}

/*Secao Checkout.php*/
.checkout-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.checkout-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #d93b8f;
}

.checkout-page h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
}

.resumo-pedido,
.formulario-cliente {
  margin-bottom: 30px;
}

#resumoCarrinho p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #444;
}

#resumoCarrinho p strong {
  color: #d93b8f;
}

.formulario-cliente form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario-cliente label {
  font-weight: bold;
  color: #333;
}

.formulario-cliente input,
.formulario-cliente textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.formulario-cliente textarea {
  resize: vertical;
}

.formulario-cliente button {
  background-color: #d93b8f;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.formulario-cliente button:hover {
  background-color: #b12773;
}


/* ===== SEÇÃO COLEÇÃO / BANNER ===== */
.colecao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 5%;
  background-color: #7A6A5F;
}

.texto {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.texto h1 {
  font-size: 3rem;
  color: #dff5f0;
  margin-bottom: 24px;
}

.botao {
  display: inline-block;
  background-color: #dff5f0;
  color: black;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.botao:hover {
  background-color: #a60055;
}

.imagem img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* =====  SEÇÃO PRODUTOS ===== */
.produtos {
  display: flex;
  padding: 40px 5%;
  gap: 32px;
  flex-wrap: wrap;
  background-color: #fafafa;
}

.filtros {
  flex: 1;
  max-width: 200px;
}

.filtros h3 {
  margin-bottom: 16px;
}

.filtros ul {
  list-style: none;
}

.filtros ul li a {
  text-decoration: none;
  color: #555;
  display: block;
  margin: 8px 0;
}

.filtros ul li a.ativo {
  font-weight: bold;
  color: #d93b8f;
  text-decoration: underline;
}

.vitrine {
  flex: 3;
  min-width: 300px;
}

.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ordenar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: stretch;
  min-height: 600px; /* força altura mínima da grid, mesmo com poucos produtos */
}

.grid-produtos:empty::before {
  content: "Nenhum produto encontrado.";
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: #777;
}

.item-produto {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-produto:hover {
  transform: translateY(-4px);
}

.item-produto img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  object-position: center;
}

.item-produto p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.item-produto strong {
  display: block;
  margin-top: 6px;
  color: #e91e63;
  font-size: 18px;
}

.botao-carrinho {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #e91e63;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.botao-carrinho:hover {
  background-color: #c2185b;
}


.imagem-produto-detalhe {
  width: 100%;
  max-width: 400px; /* ou o tamanho que você quiser */
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.tag-novo {
  background-color: #d4006e;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
}

/*Dentro dos produtos*/
.pagina-produto {
  max-width: 1100px;
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0 20px;
}

.imagem-produto {
  flex: 1 1 400px;
}

.imagem-produto img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.detalhes-produto {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detalhes-produto h1 {
  font-size: 2rem;
  color: #d4006e;
}

.detalhes-produto .preco {
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
}

.detalhes-produto p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.botao-comprar {
  background-color: #d4006e;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  width: fit-content;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.botao-comprar:hover {
  background-color: #a60055;
}

/*Para e-mail cadastrado secao*/
.usuario-dropdown {
      position: relative;
      display: inline-block;
    }

    .email-logado {
      font-size: 0.85rem;
      cursor: pointer;
      padding: 6px 10px;
      border-radius: 6px;
      background-color: transparent;
      color: #f5f5f5;
    }

    .dropdown-menu {
      display: none;
      position: absolute;
      top: 130%;
      right: 0;
      background-color: #fff;
      border-radius: 10px;
      box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
      min-width: 160px;
      padding: 8px 0;
      z-index: 100;
    }

    .dropdown-menu::before {
      content: "";
      position: absolute;
      top: -8px;
      right: 16px;
      border-width: 0 8px 8px 8px;
      border-style: solid;
      border-color: transparent transparent #fff transparent;
    }

    .dropdown-menu a {
      display: block;
      padding: 10px 16px;
      text-decoration: none;
      color: #333;
      font-size: 0.85rem;
      transition: background 0.2s;
    }

    .dropdown-menu a:hover {
      background-color: #f5f5f5;
    }

    .usuario-dropdown:hover .dropdown-menu {
      display: block;
    }

/* ===== AVALIAÇÕES ===== */
.avaliacoes {
  padding: 60px 5%;
  background-color: #fff0f5;
  text-align: center;
}

.avaliacoes-topo h2 {
  color: #d4006e;
  margin-bottom: 8px;
}

.cards-avaliacoes {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.card-avaliacao {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  max-width: 300px;
  text-align: left;
}

.estrelas {
  color: gold;
  font-size: 1.2rem;
}

.comentario {
  margin: 12px 0;
  font-style: italic;
}

.cliente {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.cliente img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ===== SEÇÃO RODAPÉ ===== */
.rodape {
  background-color: #222;
  color: #fff;
  padding: 40px 5%;
}

.rodape-container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.rodape-col {
  flex: 1;
  min-width: 220px;
}

.rodape h2,
.rodape h4 {
  color: #fff;
  margin-bottom: 12px;
}

.rodape p {
  color: #ccc;
  margin-bottom: 8px;
}

.redes-sociais a img {
  width: 24px;
  margin-right: 12px;
}

input[type="email"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  margin-top: 8px;
}

/* ===== DESTAQUES ===== */
.destaques {
  padding: 60px 5%;
  background-color: #fff;
}

.destaques h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #d4006e;
  margin-bottom: 40px;
}

.lista-destaques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.card-destaque {
  background-color: #fff0f5;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s;
}

.card-destaque:hover {
  transform: translateY(-5px);
}

.card-destaque img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.card-destaque h4 {
  font-size: 1.1rem;
  margin: 8px 0;
  color: #333;
}

.card-destaque .preco-antigo {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.card-destaque .preco-novo {
  color: #d4006e;
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 4px;
}

.card-destaque .botao {
  margin-top: 12px;
  display: inline-block;
  padding: 10px 20px;
  background-color: #d4006e;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
}

.card-destaque .botao:hover {
  background-color: #a60055;
}

/*Secao Consorcio*/

.consorcio-container {
  padding: 40px 20px;
  background-color: #ADD8E6;
  text-align: center;
}

.titulo-consorcio {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #333;
}

.subtitulo-consorcio {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #666;
}

.consorcio-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* <<< Isso aqui centraliza o texto na altura da imagem */
  gap: 40px;
}

.consorcio-imagem img {
  max-width: 100%;
  height: auto;
  width: 320px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.consorcio-texto {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* <<< Centraliza o texto verticalmente */
  text-align: left;
}

.bloco-info {
  margin-bottom: 20px;
}

.bloco-info h3 {
  margin-bottom: 8px;
  color: #444;
}

.bloco-info p {
  color: #666;
}

.menu-mobile a.logout {
  background-color: #ffe5e5;
  color: #d9534f;
}

.menu-mobile a.logout:hover {
  background-color: #ffcccc;
}

/* Responsivo */
@media (max-width: 768px) {
  .consorcio-content {
    flex-direction: column;
    align-items: center;
  }

  .consorcio-texto {
    text-align: center;
    justify-content: flex-start;
  }
}


/*Seção revendedora*/

.revendedora-container {
  padding: 60px 20px;
  background-color: #e1b9ff;
  text-align: center;
}

.titulo-revendedora {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1c1c1c;
  margin-bottom: 10px;
}

.subtitulo-revendedora {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}

.revendedora-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.revendedora-imagem img {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.revendedora-texto {
  text-align: left;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bloco-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.bloco-info p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}
.contato-consorcio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.contato-texto {
  flex: 1 1 40%;
}

.contato-texto h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.contato-texto p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.formulario-consorcio {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campo-formulario {
  display: flex;
  flex-direction: column;
}

.campo-formulario label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2a2a2a;
  margin-bottom: 6px;
}

.campo-formulario input,
.campo-formulario textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

.formulario-consorcio button {
  background-color: #1f64e7;
  color: white;
  padding: 14px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
  align-self: flex-start;
}

.formulario-consorcio button:hover {
  background-color: #174dc1;
}

/*Seção de login usuário*/
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 40px;
  border-radius: 16px;
  background-color: #f9f4fb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.login-container h1 {
  margin-bottom: 24px;
  color: #d4006e;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form label {
  text-align: left;
  font-weight: 500;
  color: #333;
}

.login-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.login-form button {
  background-color: #d4006e;
  color: white;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.login-form button:hover {
  background-color: #a60055;
}

.link-criar-conta {
  font-size: 0.9rem;
  margin-top: 10px;
}

.link-criar-conta a {
  color: #d4006e;
  text-decoration: none;
}



/* ===== TAG DE DESCONTO ===== */
.tag-desconto {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #ff4081;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
}


/* ===== MENU HAMBURGUINHO E DROPDOWN ===== */

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: 0.3s;
}

/* Menu mobile oculto por padrão */
.menu-mobile {
  display: none;
  flex-direction: column;
  background-color: #fff;
  width: 100%;
  position: fixed;
  top: 80px; /* ou ajuste conforme a altura do seu header */
  left: 0;
  z-index: 999;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.menu-mobile.ativo {
  display: flex;
}

.menu-mobile a {
  padding: 12px 20px;
  margin: 6px 12px;
  text-decoration: none;
  color: #d81b60;
  font-weight: bold;
  background-color: #fff0f5;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background 0.3s, transform 0.2s;
  display: block;
}

.menu-mobile a:hover {
  background-color: #d81b60;
  color: white;
  transform: translateX(3px);
}

/* Dropdown da conta */
.usuario-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  padding: 8px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-width: 100px;
  z-index: 100;
}

.dropdown-menu a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background-color: #ffe4ec;
  color: #d81b60;
}

.usuario-dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile touch fallback */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none; /* caso tenha outra classe antiga */
  }

  .icons-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .usuario-dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    overflow: hidden;
  }

  .email-logado {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .dropdown-menu {
    margin-top: 4px;
  }

  .usuario-dropdown:hover .dropdown-menu {
    display: block;
  }
}

