/* =========================
   RESET E BASE
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

html, body {
  height: 100%;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  padding-top: 120px; /* espaço para topbar + menu fixos */
}

.conteudo {
  flex: 1;
}

/* =========================
   TOPBAR FIXA
   ========================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 9999;
}

.topbar .logo img {
  height: 60px;
  max-height: 100%;
}

/* Caixa de busca */
.search-box {
  flex: 1;
  display: flex;
  margin: 0 20px;
}

.search-box input {
  width: 80%;
  padding: 10px;
  border: none;
  border-radius: 6px 0 0 6px;
  outline: none;
}

.search-box button {
  padding: 10px 15px;
  background: #333;
  border: none;
  color: #fff;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background: #555;
}

/* Ações (login, carrinho etc.) */
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1000;
}

.actions a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.actions a i {
  margin-right: 5px;
}

.actions a:hover {
  color: #bbb;
}

.actions .cart {
  position: relative;
}

.actions .cart span {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #fff;
  color: #000;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

/* =========================
   MENU FIXO
   ========================= */
.menu-bar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  z-index: 9998;
}

.menu-bar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 12px 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.menu-bar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.3s;
}

.menu-bar ul li a:hover {
  color: #ff0c0c;
}

/* =========================
   BENEFÍCIOS
   ========================= */
.benefits {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: #ececec;
  transition: transform 0.3s ease;
}

.benefit:hover {
  transform: translateY(-5px);
}

.benefit .icon {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit .icon i,
.benefit .icon svg {
  font-size: 24px;
  color: #000;
  transition: transform 0.3s ease, color 0.3s ease;
}

.benefit:hover .icon {
  border-color: #000;
}

.benefit:hover .icon i,
.benefit:hover .icon svg {
  transform: scale(1.2) rotate(10deg);
  color: #111;
}

.benefit p {
  font-size: 0.9rem;
  color: #000;
  margin: 0;
}

.benefit a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.benefit a:hover {
  text-decoration: underline;
}

/* =========================
   CATEGORIAS
   ========================= */
.categorias {
  text-align: center;
  margin: 50px 20px;
}

.categorias h1,
.categorias h2,
.categorias h5 {
  color: #000;
}

.categorias h2 {
  margin-bottom: 40px;
}

.categoria-lista {
  display: flex;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.categoria {
  position: relative;
  width: 220px;
  text-align: center;
}

.categoria .circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #060202, #ffffff);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.categoria img {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 200px;
  height: auto;
  z-index: 2;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.categoria:hover img {
  transform: translate(-50%, -50%) scale(1.1);
  filter: brightness(1.1);
}

.categoria p {
  margin-top: 50px;
  font-weight: bold;
  font-size: 1rem;
  color: #000;
}

/* =========================
   PRODUTOS
   ========================= */
.produtos {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.produtos-lista,
.ofertas-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.produto {
  flex: 1 1 200px;
  max-width: 250px;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
   cursor: pointer;
  position: relative;
}

.produto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.produto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.produto:hover img {
  transform: scale(1.05);
}

.produto h3 {
  font-size: 16px;
  margin: 10px 0 5px;
}

.produto .descricao {
  font-size: 14px;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Preços */
.produto .preco-varejo {
  font-weight: bold;
  font-size: 18px;
  color: #222;
  margin: 4px 0;
}

/* Pontos FIT (PIX) */
.produto .pontos-fit {
  font-size: 14px;
  color: #2a9d8f;
  margin: 4px 0;
}

.produto .pontos-fit strong {
  color: #1b7f6b;
}

/* Preço atacado */
.produto .preco-atacado {
  font-weight: bold;
  color: #2a9d8f;
  margin: 6px 0;
  font-size: 15px;
}

/* Botões */
.botoes-produto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* Remove qualquer efeito estranho no hover */
.produto:hover button {
  transform: none !important;
}

.botoes-produto button {
  width: 100%;
  padding: 10px 0;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 14px;
}

.btn-comprar {
  background-color: #e71111;
  color: #fff;
}

.btn-comprar:hover {
  background-color: #c40000;
  transform: translateY(-2px);
}

.btn-carrinho {
  background-color: #f39c12;
  color: #fff;
}

.btn-carrinho:hover {
  background-color: #e67e22;
  transform: translateY(-2px);
}
.produto-card { 
  cursor: pointer; 
}

/* =========================
   SEÇÕES SOBRE / CLIENTES
   ========================= */
.sobre, .clientes {
  text-align: center;
  margin: 60px 20px;
}

.sobre h2, .clientes h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.sobre p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}
.clientes-lista {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 20px;
  width: 100%;
  /* Adicione estas propriedades: */
  justify-content: flex-start; /* padrão, muda no JS quando necessário */
  transition: transform 0.6s ease-in-out; /* move para cá do JS */
}

/* Classe adicional para centralizar */
.clientes-lista.centralizado {
  justify-content: center;
  transform: none !important; /* desabilita o translate quando centralizado */
}

.cliente {
  flex: 0 0 250px;
  background: #f7f7f7;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
}

.cliente::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 3rem;
  color: #ccc;
}

.cliente::after {
  content: "”";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 3rem;
  color: #ccc;
}

.cliente p {
  margin: 20px 0;
  color: #333;
}

.cliente span.nome {
  display: block;
  font-weight: bold;
  margin-top: 5px;
}

.cliente span.data {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.stars {
  color: #fbc02d;
  font-size: 1.2rem;
}

/* =========================
   RODAPÉ
   ========================= */
.rodape {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 80px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff, #060202);
}

.rodape h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

/* Pagamentos */
.pagamentos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.pagamentos img {
  height: 50px;
  width: 80px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.pagamentos img:hover {
  transform: scale(1.1);
}

/* Redes sociais */
.redes {
  display: flex;
  gap: 15px;
}

.redes img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.redes img:hover {
  transform: scale(1.2);
}

/* Rodapé final */
.footer {
  background-color: #0f0f0f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  font-size: 14px;
  color: #fff;
  flex-wrap: wrap;
}

.footer a {
  color: #0073e6;
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

/* =========================
   CART / ANIMAÇÃO
   ========================= */
.cart {
  position: relative;
  font-size: 1.8rem;
  color: #333;
  text-decoration: none;
}

.cart #contador {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
}

.bolinha-animada {
  position: fixed;
  background: red;
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 6px 10px;
  pointer-events: none;
  z-index: 9999;
  opacity: 1;
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

/* =========================
   RESPONSIVIDADE
   ========================= */
@media (max-width: 1024px) {
  .rodape { gap: 30px; }
  .categoria-lista { gap: 30px; }
  .benefits { gap: 15px; }
}

@media (max-width: 768px) {
  .produtos-lista { justify-content: center; }
  .benefits { justify-content: center; }
  .menu-bar ul { flex-wrap: wrap; gap: 15px; }
  .rodape { gap: 20px; }
  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .benefit { flex-direction: column; text-align: center; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .search-box { margin: 10px 0; }
  .rodape { flex-direction: column; gap: 10px; }
}
