/* ====== SEÇÃO DE CATEGORIAS ====== */
.topicos-populares {
  padding: 60px 20px;
  background-color: #E8E9E9;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.categoria-header {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  margin-bottom: 30px;
  color: #0b0b0b;
}

/* ====== WRAPPER COM SETAS ====== */
.categorias-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto 30px;
  display: block;      /* garante que as setas NÃO entrem no fluxo */
}

.categorias-grid {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 10px 40px;  /* espaço pros botões nas laterais */
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.categorias-grid::-webkit-scrollbar {
  display: none;
}

/* ====== CADA CATEGORIA ====== */
.categoria a {
  display: block;
  white-space: nowrap;
  padding: 12px 20px;
  background: #d1d1d1;
  border-radius: 30px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.categoria a:hover {
  background: #0CB968;
  color: #fff;
  transform: translateY(-2px);
}

/* ====== BOTÕES DE SCROLL ====== */
button.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 22px;
  color: #0CB968;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  padding: 0;
  line-height: 1;
}

button.scroll-btn:hover {
  background: #0CB968;
  color: #fff;
}

button.scroll-btn.left {
  left: 0;
}

button.scroll-btn.right {
  right: 0;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 600px) {
  .categorias-wrapper {
    max-width: 100%;
  }

  button.scroll-btn {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
}
