@font-face {
  font-family: 'SixCells';
  src: url('fonts/UnifierStencil_PERSONAL_USE_ONLY.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.navbar-brand {
  font-family: 'SixCells', sans-serif;
  font-size: 2.5rem;
  margin-right: 15px;
  color: #fff;
  text-decoration: none;
  user-select: none;
}

@font-face {
  font-family: 'SixCells';
  src: url('fonts/UnifierStencil_PERSONAL_USE_ONLY.otf') format('woff2'),
       url('fonts/UnifierStencil_PERSONAL_USE_ONLY.otf') format('woff'),
       url('fonts/UnifierStencil_PERSONAL_USE_ONLY.otf') format('opentype');
}


/* 🌟 Reset e estilo base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background 0.3s, color 0.3s;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 🌟 Navbar moderna */
header {
  background-color: #0E89FF;
  color: white;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  padding: 5px 10px;
  gap: 8px;
  flex: 1; /* ocupa espaço disponível */
  max-width: 250px; /* mantém proporcional em telas grandes */
}

.search-bar input {
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 30px;
  width: 100%; /* ocupa todo o espaço do pai */
}

.search-bar button {
  background: none;
  border: none;
  color: #0E89FF;
  font-size: 1.3rem;
  cursor: pointer;
}

.theme-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 10px;
  transition: color 0.3s;
}

/* 🌟 Categorias fixas no rodapé */
.categorias-wrapper {
  position: fixed;           /* fixa na tela */
  bottom: 0;                 /* encosta no rodapé */
  left: 0;
  width: 100%;               /* ocupa toda a largura */
  background: #0E89FF;          /* fundo branco (pode mudar) */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* leve sombra superior */
  padding: 10px 0;
  overflow: hidden;
  z-index: 1000;             /* fica acima do conteúdo */
}

/* container interno (rolagem horizontal) */
.categorias-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 5px;
  padding: 0 50px; /* espaço para as setas */
}

.categorias-container::-webkit-scrollbar {
  display: none; /* oculta barra de rolagem */
}

/* estilo de cada categoria */
.categoria {
  flex: 0 0 auto;
  text-align: center;
  font-size: 1.7rem;
  color: #fff;
  background: #0E89FF;
  padding: 5px 5px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.categoria:hover {
  background: #0E89FF;
  color: #000;
}

/* setas laterais */
.seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.seta.esquerda { left: 10px; }
.seta.direita { right: 10px; }

.seta i {
  font-size: 1.4rem;
  color: #333;
}


/* 🌟 Botão Mostrar Tudo */
.btn-mostrar-tudo {
  padding: 8px 16px;
  background-color: #0E89FF;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.btn-mostrar-tudo:hover {
  background-color: #0E89FF;
}

body.dark .btn-mostrar-tudo {
  background-color: #0E89FF;
  color: #fff;
}

body.dark .btn-mostrar-tudo:hover {
  background-color: #0E89FF;
}

/* 🌟 Cards de produtos */
.container {
  
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 90%;
  margin: 10px auto 30px;
}

.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.card h3 {
  font-size: 1rem;
  margin: 10px 0 5px;
}

.card h2 {
  color: #0E89FF;
  font-weight: bold;
  font-size: 1.3rem;
}

.card p {
  color: #0E89FF;
  font-weight: bold;
  font-size: 1.rem;
}

/* Footer ajustado */
footer {
  
  background-color: #0E89FF;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  margin-top: 20px; /* pequeno respiro antes da barra */
  margin-bottom: 50px;
  position: relative;
  z-index: 900; /* garante que fique acima do conteúdo, mas abaixo das categorias */
}


/* Scrollbar invisível */
.categorias-container::-webkit-scrollbar { display: none; }

/* Tema escuro */
body.dark {
  background-color: #1e1e1e;
  color: #f5f5f5;
}

body.dark header { background-color: #0E89FF; }
body.dark .search-bar { background-color: #333; }
body.dark .search-bar input { background-color: #333; color: #fff; }
body.dark .search-bar button { color: #f5f5f5; }
body.dark .categoria { background-color: #0E89FF; }
body.dark .categoria:hover { background-color: #0E89FF; }
body.dark .categoria i { color: #f5f5f5; }
body.dark .card { background-color: #333; color: #f5f5f5; }
body.dark .card p { color: #0E89FF; }
body.dark footer { background-color: #0E89FF; }

/* Responsividade aprimorada */
@media (max-width: 768px) {
  .card img { height: 150px; }
}

@media (max-width: 600px) {
  .categorias-wrapper { width: 100%; padding: 0 10px; }
  .categorias-container { gap: 10px; }
  .container { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); width: 95%; gap: 10px; }
  .card img { height: 140px; }
  .search-bar { max-width: 100%; }
}

@media (max-width: 480px) {
  .card img { height: 100px; }
}



/* Informações do mercado */
.market-info {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
  line-height: 1.3;
}

.market-info i {
  color: #000;
  margin-right: 4px;
}

body.dark .market-info {
  color: #ccc;
}

body.dark .market-info i {
  color: #fff;
}



/* Container do carousel */
.carousel-container {
  top: 5px;
  width: 100%;
  height: auto; /* Ajuste a altura para ser automática */
  max-height: 300px;  /* Limita a altura do banner no mobile */
  overflow: hidden;
  position: relative;
}

/* Slide do carousel */
.carousel-slide {
  display: flex;
  transition: transform 1s ease-in-out;
}

/* Cada item (banner) dentro do slide */
.carousel-item {
  min-width: 100%;
  transition: opacity 1s ease-in-out;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Faz a imagem se ajustar sem perder a proporção */
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
  .carousel-container {
    height: 200px;  /* Ajuste da altura para telas menores */
  }
}

/* 🔹 Esconde o banner por padrão (desktop/tablet) */
.carousel-container {
  display: none;
}

/* 🔹 Mostra o banner somente em telas pequenas (ex: smartphones) */
@media (max-width: 768px) {
  .carousel-container {
    display: block;
  }
}



.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 5px;
  }

  .social-links a i,
  .share-btn i {
    font-size: 1.8rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Cores personalizadas */
  .facebook i { color: #000000; }
  .instagram i { color: #E4405F; }
  .tiktok i { color: #000000; }
  .share-btn i { color: #E4405F; } /* 💖 Cor igual à do Instagram */

  /* Efeito ao passar o mouse */
  .social-links a:hover i,
  .share-btn:hover i {
    transform: scale(1.2);
    opacity: 0.8;
  }

 /* Remover fundo e borda do botão */
  .share-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  
  .circulos-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.circulos-container {
  display: flex;
  gap: 10px;
}

.circulo {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.circulo:hover {
  transform: scale(1.1);
  border-color: #007bff;
}

.circulo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seta {
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}

.seta:hover {
  color: #007bff;
}

.ticker-topo {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background: #f8f8f8; /* cor de fundo */
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  padding: 8px 0;
  z-index: 9999;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  font-weight: 500;
}

.ticker-conteudo {
  display: inline-block;
  padding-left: 100%;
  animation: tickerAnim 25s linear infinite;
}

@keyframes tickerAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Ajuste para evitar que o conteúdo da página fique escondido atrás do ticker */
body {
  padding-top: 0px;
}




/* MENU FLUTUANTE À DIREITA */
.filtro-flutuante {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

/* BOTÕES DO FILTRO */
.filtro-btn {
  width: 55px;
  height: 55px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 28px;
  transition: 0.2s;
}

.filtro-btn:hover {
  transform: scale(1.1);
  background: #f3f3f3;
}


.filtro-btn.calendar i {
  color: #ff4d4d !important; /* cor desejada */
}

/* Desconto */
.filtro-btn.desconto i {
  color: #ff4d4d !important; /* cor desejada */
}

/* footer */
 .footer-compare365 {
    background: #f3f3f3;
    padding: 40px 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    border-top: 2px solid #ddd;
  }

  .footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

  .footer-column h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #222;
  }

  .footer-column p {
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
  }

  .footer-links a {
    display: block;
    color: #333;
    text-decoration: none;
    margin: 6px 0;
    font-size: 14px;
  }

  .footer-links a:hover {
    text-decoration: underline;
  }

  .footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #666;
  }
  
  
