* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  cursor: default;       /* Força a seta padrão em vez do sensor de escrita */
  user-select: none;     /* Impede que o usuário selecione textos/imagens sem querer */
}

body {
  min-height: 100vh;
  background-image: url("../img/pattern.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; /* trava scroll do body */

  display: flex;
  justify-content: center;
  align-items: flex-start; /* 👈 NÃO center vertical */
}

.container {
  width: 1400px;
  height: 90vh;
  margin: auto;
  background: #f6faf8;
  border-radius: 25px;
  padding: 20px;
  display: flex;
  margin-top: 50px;
  flex-direction: column;
}

/* ================= SEARCH BAR ================= */

.search-bar {
  position: relative;
  width: 400px;
  margin: 5px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border-radius: 50px;
  border: 2px solid #0aa39a;
  outline: none;
  font-size: 16px;
  background: white;
  transition: transform 0.2s ease, border-color 0.3s ease;
  box-shadow: none;
}

.search-bar .icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  pointer-events: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.search-bar input:focus {
  border-color: #0aa39a;
  transform: scale(1.03);
}

.search-bar input:focus + .icon {
  color: #0aa39a;
  transform: translateY(-50%) scale(1.2) rotate(10deg);
}

.search-bar input::placeholder {
  transition: opacity 0.3s;
}

.search-bar input:focus::placeholder {
  opacity: 0.5;
}

/* ================= NAV ================= */

.top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 20px 40px;
}

.nav-container {
  position: relative;
}

.nav-buttons {
  display: flex;
  gap: 40px;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 5px;
  transition: transform 0.2s ease;
}

.nav-btn:hover {
  transform: scale(1.05);
}

.nav-btn.active {
  color: #0aa39a;
  font-weight: bold;
}


/* ================= DIVIDERS ================= */

.divider-navbar {
  border: none;
  height: 2px;
  background: #ddd;
  margin: 15px 40px;
}

#category-title {
  margin-left: 40px;
  font-size: 20px;
  font-weight: bold;
}

/* ================= CARDS GRID ================= */

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0;

  align-content: start;   /* 🔥 ISSO resolve o espaço em branco */
}
/* ================= CARD ================= */

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 3px 7px 3px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .3s ease;
  position: relative;
  overflow: hidden;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #0aa39a;
  transition: width .3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card:hover::before {
  width: 100%;
}

.card-image {
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-divider {
  height: 1px;
  background: #ddd;
  margin: 5px 10px;
}

.card-text {
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

/* ================= HIDDEN ================= */

.hidden {
  display: none !important;
}


.cards-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.top-fixed {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: #f6faf8;
  z-index: 10;
}

.tabs {
  position: relative;
  display: flex;
  gap: 30px;
}

.tabs {
  position: relative;
  display: flex;
  gap: 30px;
}

.indicator {
  position: absolute;
  bottom: -6px;
  width: 8px;
  height: 8px;
  background: #00a99d;
  border-radius: 50%;
  transition: all 0.35s cubic-bezier(.68,-0.55,.27,1.55); /* efeito estilingue */
}

.header-main {
  display: flex;                /* Ativa o modo flexbox */
  justify-content: space-between; /* Empurra os itens para os lados opostos */
  align-items: center;          /* Centraliza verticalmente (alinhamento da base) */
  padding: 10px 20px;           /* Espaçamento interno para não grudar na borda */
  width: 100%;                  /* Garante que ocupe toda a largura disponível */
  box-sizing: border-box;       /* Evita que o padding aumente o tamanho do elemento */
}
