@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");

/* --- Reset Global e Estilos Básicos --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* --- Estilo da Barra de Navegação (Navbar) --- */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: #333;
  color: white;
  /* Alinha o conteúdo da navbar com o resto do site (max 1200px) */
  padding-left: max(2rem, calc((100% - 1200px) / 2 + 2rem));
  padding-right: max(2rem, calc((100% - 1200px) / 2 + 2rem));
  padding-top: 0.1rem
    /* Reduzido para 0.1rem para diminuir o espaço acima da navbar */;
  padding-bottom: 0.2rem; /* Reduzido para 0.2rem para diminuir o espaço abaixo da navbar */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  font-family: "Russo One", sans-serif;
  font-style: italic;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: #28a745;
}

.logo img {
  max-height: 110px; /* Aumentado ainda mais o tamanho da logo */
  width: auto;
  background-color: transparent; /* Garante que o CSS não aplique cor de fundo */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #28a745;
}

.carrinho {
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-decoration: none; /* Remove sublinhado se for link */
}

#contador-carrinho {
  background: #dc3545;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8rem;
  margin-left: 5px;
}

/* Container para alinhar Busca e Carrinho à direita */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-self: end;
}

.search-box {
  position: relative; /* Necessário para posicionar os resultados */
}

.search-box input {
  padding: 8px 15px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #333;
}

/* --- Resultados da Pesquisa (Dropdown Autocomplete) --- */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0; /* Ocupa a largura da search-box */
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  overflow: hidden;
  display: none;
  margin-top: 5px;
  min-width: 250px; /* Garante largura mínima se a barra for pequena */
}

.search-results.ativo {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background-color: #f5f5f5;
}

.search-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.search-item div {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

/* --- Menu Hambúrguer (Mobile) --- */
.menu-toggle {
  display: none; /* Oculto no desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animação do Ícone Hambúrguer para X */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Estilos da Home (Hero e Cards) --- */

header.hero {
  background-color: #333;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 20px;
  font-family: "Russo One", sans-serif;
  font-style: italic;
}

.container-produtos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 15px;
  padding: 15px;
  width: 250px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.2),
    0 0 15px rgba(40, 167, 69, 0.4);
}

.card img {
  max-width: 100%;
  border-radius: 5px;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  color: #333;
  font-size: 1.1rem;
  margin: 10px 0;
}

.card p {
  color: #333;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.card .preco-pix-card {
  color: #28a745;
  font-size: 1.1rem;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 15px;
}

.card button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: all 0.3s ease;
}

.card button:hover {
  background-color: #0056b3;
  transform: translateY(-3px); /* Move o botão levemente para cima */
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4); /* Sombra azulada suave */
}

/* --- Estilos da Página de Produto (Detalhes) --- */

.produto-container {
  display: flex;
  gap: 30px;
  padding: 40px 20px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center; /* Centraliza o bloco de conteúdo */
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

/* Miniaturas de Imagens */
.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  cursor: pointer;
  border: 2px solid transparent;
  object-fit: cover;
  border-radius: 4px;
  transition: border 0.2s;
}

.thumbnails img:hover {
  border-color: #28a745;
}

/* Imagem Principal com Zoom */
.coluna-principal-img {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
}

.cuidados-manto {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.cuidados-manto strong {
  display: block;
  margin-bottom: 12px;
  color: #333;
  font-size: 0.95rem;
}

.cuidados-manto ul {
  list-style: none;
  padding: 0;
}

.cuidados-manto ul li {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cuidados-manto ul li:last-child {
  margin-bottom: 0;
}

.main-img-container {
  overflow: hidden;
  border-radius: 8px;
}

.main-img-container img {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

.main-img-container:hover img {
  transform: scale(1.2);
  cursor: zoom-in;
}

/* Informações do Produto (Lado Direito) */
.info {
  flex: 1;
  max-width: 500px;
}

.info h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.preco-destaque {
  color: #dc3545; /* Vermelho oferta */
  font-weight: bold;
  font-size: 1.5rem;
}

.preco-antigo {
  text-decoration: line-through;
  color: #888;
  font-size: 1rem;
  margin-left: 10px;
}

/* Preço com desconto no Pix */
.preco-pix {
  color: #28a745;
  font-size: 1rem;
  margin-top: 5px;
  font-weight: 500;
}

/* Seletor de Tamanho (Botões P, M, G) */
.seletor-tamanho {
  margin: 20px 0;
}

.btn-guia {
  background: none;
  border: none;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 10px;
}

.botoes-tamanho {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-tam {
  width: 45px;
  height: 45px;
  border: 1px solid #ccc;
  background-color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.btn-tam.ativo {
  border: 2px solid #333;
  background-color: #333;
  color: white;
}

.btn-tam:hover {
  border-color: #333;
}

/* Botão de Compra Principal */
.acoes-compra {
  margin-top: 30px;
}

.btn-comprar {
  width: 100%;
  padding: 18px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra inicial discreta */
}

.btn-comprar:hover {
  background-color: #218838;
  transform: translateY(-3px) scale(1.02); /* Sobe e aumenta levemente */
  box-shadow: 0 10px 20px rgba(40, 167, 69, 0.4); /* Sombra verde (glow) */
}

/* --- Calculadora de Frete --- */

.frete-container {
  margin-top: 25px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.frete-titulo {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #333;
  font-weight: bold;
}

.frete-input-group {
  display: flex;
  gap: 0;
}

#cep-input {
  padding: 12px;
  border: 1px solid #ccc;
  width: 200px;
  outline: none;
  border-radius: 4px 0 0 4px;
}

.frete-input-group button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

.frete-input-group button:hover {
  background-color: #000;
}

.link-cep {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #666;
  text-decoration: underline;
}

#resultado-frete {
  margin-top: 15px;
  padding: 10px;
  background-color: #e8f5e9;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #155724;
}

.item-frete {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid #c3e6cb;
  cursor: pointer;
  transition: background 0.2s;
}

.item-frete:last-of-type {
  border-bottom: none;
}

.item-frete:hover {
  background-color: #d4edda;
}

.total-frete-container {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px dashed #28a745;
  font-size: 1.1rem;
  color: #333;
  display: none; /* Oculto até selecionar */
}

.resultado-oculto {
  display: none;
}

/* --- Opções de Personalização --- */
.personalizacao-container {
  margin: 20px 0;
  display: none !important; /* Desativado temporariamente */
}
.botoes-personalizar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.btn-opt {
  padding: 10px 15px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
}

.btn-opt.ativo {
  border: 2px solid #333;
  font-weight: bold;
}

.input-grupo {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}
.input-grupo label {
  font-size: 0.8rem;
  margin-bottom: 5px;
  font-weight: bold;
}
.input-grupo input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* --- Informações Extras do Produto (Compra Segura, etc) --- */
.produto-infos-extras {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.info-icone {
  font-size: 1.5rem;
}

.info-item div strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 0.95rem;
}

.info-item div p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* --- Estilos da Página de Carrinho --- */

.carrinho-page-container {
  max-width: 1200px; /* Padronizado com o resto do site */
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.titulo-carrinho {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.item-carrinho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.item-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.item-info img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.btn-remover {
  color: #dc3545;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}

.resumo-total {
  margin-top: 30px;
  text-align: right;
  font-size: 1.5rem;
  font-weight: bold;
}

/* --- Formulário de Dados do Cliente --- */
.dados-cliente-container {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.dados-cliente-container h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
}

.input-row {
  display: flex;
  gap: 15px;
}

.input-group-carrinho {
  margin-bottom: 15px;
  flex: 1;
}

.input-group-carrinho label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9rem;
  color: #555;
}

.input-group-carrinho input,
.input-group-carrinho textarea,
.input-group-carrinho select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

/* --- Botões de Ação do Carrinho --- */
.carrinho-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.grupo-botoes-direita {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-continuar {
  background-color: #007bff;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-continuar:hover {
  background-color: #0056b3;
}

/* --- Mensagens de Carrinho Vazio --- */
.msg-vazio {
  text-align: center;
  width: 100%;
  color: #666;
  margin-top: 50px;
  font-size: 1.5rem;
  font-weight: 300;
}

/* Botão WhatsApp */
.btn-whatsapp {
  background-color: #25d366;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
}

/* Botão Esvaziar Carrinho */
.btn-esvaziar {
  background-color: #dc3545;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-esvaziar:hover {
  background-color: #c82333;
}

/* --- Rodapé Principal (Footer) --- */
footer {
  background-color: #333;
  color: white;
  padding: 40px 20px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-col h4 {
  color: #28a745;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-family: "Russo One", sans-serif;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #888;
  font-size: 0.9rem;
}

.icone-contato {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* --- Controles de Quantidade (+/-) --- */
.qtd-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px;
}

.btn-qtd {
  width: 30px;
  height: 30px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

/* --- Área de Cupom de Desconto --- */
.carrinho-footer-cupom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #ccc;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Alinha à direita */
  gap: 10px;
}

.cupom-input-group {
  display: flex;
  gap: 5px;
}

.cupom-input-group input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  width: 150px;
}

.btn-aplicar-cupom {
  background-color: #333;
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-remover-cupom {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0 10px;
  border-radius: 4px;
  cursor: pointer;
}

.resumo-desconto {
  text-align: right;
  font-size: 0.9rem;
  color: #666;
}

.texto-desconto {
  color: #28a745;
  font-weight: bold;
  font-size: 1rem;
}

.btn-remover-frete {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 5px;
  padding: 0;
  transition: transform 0.2s;
}

.btn-remover-frete:hover {
  transform: scale(1.2);
}

/* --- Barra de Progresso (Gamificação Frete Grátis) --- */
.frete-gratis-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
  text-align: center;
}

.frete-gratis-box p {
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95rem;
}

.frete-gratis-box.sucesso p {
  color: #28a745;
}

.progress-bg {
  background-color: #e9ecef;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #ffc107; /* Amarelo enquanto carrega */
  transition: width 0.5s ease;
}

.frete-gratis-box.sucesso .progress-fill {
  background-color: #28a745; /* Verde quando completa */
}

/* --- Campo de Observações --- */
.observacoes-container {
  margin-top: 20px;
  border-top: 1px dashed #ccc;
  padding-top: 20px;
}

.observacoes-container label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.observacoes-container textarea {
  width: 100%;
  height: 80px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-qtd:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

.qtd-controls span {
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* --- Produtos Relacionados --- */
.titulo-relacionados {
  text-align: center;
  margin-top: 50px;
  font-size: 1.8rem;
  color: #333;
  text-transform: uppercase;
}

/* --- Responsividade e Ajustes Mobile --- */
@media (max-width: 768px) {
  .navbar {
    display: flex; /* Altera de grid para flex no mobile */
    flex-direction: row; /* Alinha Logo e Hambúrguer lado a lado */
    flex-wrap: wrap; /* Permite que o conteúdo quebre linha */
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
  }

  .logo {
    order: 1;
    margin-right: auto;
  }

  .logo img {
    max-height: 50px; /* Reduz o tamanho do logo no mobile */
  }

  .menu-toggle {
    display: flex; /* Mostra o botão no mobile */
    order: 3; /* Fica no final à direita */
    margin-left: 10px;
  }

  .nav-links {
    display: flex; /* Mantém no fluxo para animar */
    width: 100%;
    flex-direction: column;
    text-align: center;
    order: 3; /* Fica abaixo de tudo quando aberto */
    background-color: #444; /* Fundo levemente diferente para destaque */
    border-radius: 4px;

    /* Propriedades de Animação (Estado Fechado) */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
    transition: all 0.4s ease-in-out;
  }

  .nav-links.active {
    /* Estado Aberto */
    max-height: 500px; /* Altura suficiente para exibir os itens */
    opacity: 1;
    padding: 15px;
    margin-top: 15px;
  }

  .nav-right {
    width: auto;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
    order: 2; /* Fica entre o logo e o menu */
    margin-top: 0;
    gap: 10px;
  }

  .search-box {
    width: 100%;
    max-width: 150px; /* Reduz o tamanho da barra de busca no mobile */
    margin-bottom: 0;
  }

  .search-box input {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  /* Ajuste Home Mobile */
  .container-produtos {
    padding: 10px;
  }

  .card {
    width: 100%;
    max-width: 350px;
    margin: 15px 0;
  }

  /* Ajuste Página de Produto Mobile */
  .produto-container {
    flex-direction: column;
    align-items: center;
  }

  .coluna-principal-img {
    display: contents; /* Permite reordenar os itens internos no mobile separadamente */
  }

  .thumbnails {
    flex-direction: row;
    order: 2;
    margin-top: 10px;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    overflow-x: auto; /* Permite rolar as miniaturas lateralmente */
    padding-bottom: 5px;
  }

  .thumbnails img {
    flex-shrink: 0; /* Impede que as imagens encolham demais */
  }

  .main-img-container {
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  .info {
    width: 100%;
    margin-top: 20px;
    order: 3;
  }

  .cuidados-manto {
    width: 100%;
    order: 4;
    margin-top: 20px;
  }

  /* Ajuste Carrinho Mobile */
  .item-carrinho {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-info {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .qtd-controls {
    margin: 15px 0;
  }

  .btn-remover {
    align-self: flex-start;
    margin-top: 10px;
  }

  /* Ajuste Botões de Ação Mobile */
  .carrinho-actions {
    flex-direction: column-reverse; /* Continuar comprando fica abaixo no mobile */
    gap: 15px;
  }
  .grupo-botoes-direita {
    width: 100%;
    flex-direction: column;
  }
  .btn-continuar,
  .btn-esvaziar,
  .btn-whatsapp {
    width: 100%;
  }

  .frete-input-group {
    flex-direction: column;
  }

  #cep-input {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .frete-input-group button {
    width: 100%;
    border-radius: 4px;
  }

  /* Ajustes do Banner Carrossel Mobile */
  .banner-content {
    height: 250px;
    padding: 15px;
  }

  .banner-content h2 {
    font-size: 1.8rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .btn-banner {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  /* Ajustes Título Hero Mobile */
  header.hero h1 {
    font-size: 1.8rem;
  }

  /* Ajustes Modal de Medidas Mobile */
  .modal-content {
    width: 95%;
    padding: 15px;
  }
  .modal-content table {
    font-size: 0.8rem;
  }

  /* Espaço para o rodapé fixo não cobrir conteúdo */
  body {
    padding-bottom: 70px;
  }

  /* Ajuste Formulário de Dados Mobile */
  .input-row {
    flex-direction: column;
    gap: 0;
  }
}

/* --- Rodapé Fixo Mobile (Menu Inferior / App Bar) --- */
.mobile-footer-nav {
  display: none; /* Oculto no Desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  .mobile-footer-nav {
    display: flex;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #666;
  font-size: 0.75rem;
  transition: color 0.3s;
}

.mobile-nav-item span {
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #28a745;
}

/* --- Notificações Toast (Pop-up de Sucesso/Erro) --- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  color: #333;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #333;
  min-width: 250px;
  animation: slideIn 0.3s ease forwards;
  font-size: 0.95rem;
}

.toast.sucesso {
  border-left-color: #28a745;
}
.toast.erro {
  border-left-color: #dc3545;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --- Títulos de Categorias (Página Clubes) --- */
.titulo-categoria {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 10px;
  font-size: 2rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #28a745; /* Linha verde abaixo do título */
  display: inline-block; /* Para a borda ficar do tamanho do texto */
  padding-bottom: 5px;
  /* Centraliza o bloco do título na tela */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Botões de Filtro (Abas) --- */
.abas-categorias {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 40px 0;
  flex-wrap: wrap;
}

.btn-aba {
  padding: 10px 25px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-aba:hover {
  background-color: #f8f9fa;
  border-color: #bbb;
}

.btn-aba.ativo {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Animação de Entrada das Categorias --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animar-aba {
  animation: fadeInUp 0.4s ease-out forwards;
}

/* --- Estilos do Modal (Pop-up) --- */
.modal-container {
  display: none; /* Oculto por padrão */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fundo escuro transparente */
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.3s;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
}

.close-modal:hover {
  color: #333;
}

.modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.modal-content th,
.modal-content td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  font-size: 0.95rem;
}

/* --- Carrossel Principal (Banner) --- */
.carousel-container {
  max-width: 100%;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  width: 100%;
}

/* Conteúdo do Banner */
.banner-content {
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
}

.banner-content h2 {
  font-size: 3rem;
  font-family: "Russo One", sans-serif;
  font-style: italic;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-banner {
  margin-top: 20px;
  padding: 10px 30px;
  background-color: white;
  color: #333;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.3s,
    background-color 0.3s;
  font-size: 1rem;
  text-transform: uppercase;
}

.btn-banner:hover {
  transform: scale(1.05);
  background-color: #f0f0f0;
}

/* Setas de Navegação (Anterior/Próximo) */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* --- Botão Flutuante Voltar ao Topo --- */
#btn-topo {
  display: none; /* Oculto por padrão */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #28a745;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition:
    background-color 0.3s,
    transform 0.3s;
}

#btn-topo:hover {
  background-color: #218838;
  transform: translateY(-3px);
}

/* Indicadores (Bolinhas) do Carrossel */
.carousel-dots {
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
  cursor: pointer;
}

.dot.active {
  background-color: #fff;
  transform: scale(1.2);
}

/* Animação de Transição do Carrossel */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* --- Botão WhatsApp Flutuante --- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.whatsapp-float img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}

.tooltip-ajuda {
  background-color: #fff;
  color: #333;
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: floatPulse 2s infinite;
}

/* Triângulo do balãozinho apontando para o ícone */
.tooltip-ajuda::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

/* Animação suave de flutuação */
@keyframes floatPulse {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Ajustes para Celular */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 80px; /* Fica acima do menu inferior fixo */
    left: 15px;
    gap: 10px;
  }
  .whatsapp-float img {
    width: 50px;
    height: 50px;
  }
  .tooltip-ajuda {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}
