/* ============================= */
/* CONTAINER GLOBAL PADRÃO SITE */
/* ============================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
/* Reset total */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}



.beneficios-lista {
  margin: 40px 0;
}

.grid-beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}




.main-header {
  background: #ffffff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 3fr 2fr;
  align-items: center;
  gap: 20px;
}

.logo img {
  max-height: 60px;
}

.busca form {
  display: flex;
  background: #f3f3f3;
  border-radius: 5px;
  overflow: hidden;
}

.busca input {
  border: none;
  padding: 10px;
  flex: 1;
  font-size: 16px;
}

.busca button {
  background: #004b8d;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

.menu .nav {
  display: flex;
  gap: 30px;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.user-actions {
  display: flex;
  justify-content: end;
  gap: 15px;
  font-size: 14px;
}

/* CATEGORIA */
.categorias-beneficios {
  max-width: 1140px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.categorias-beneficios h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.categorias-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  justify-content: center;
}

.categoria-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
}

.categoria-list-item:hover {
  background: #f3f3f3;
  transform: translateY(-3px);
}

.categoria-list-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

/*  */


/* filtro beneficios */
.topo-convenios {
  background: #f8f8f8;
  padding: 30px 20px;
}

.container-topo {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.topo-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topo-img img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ccc;
}

.topo-textos h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 6px;
  color: #111;
}

.topo-textos h1 strong {
  font-weight: 700;
}

.topo-textos p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.topo-filtro select {
  width: 220px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23999' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  transition: border-color 0.3s ease;
}

.topo-filtro select:focus {
  border-color: #0077cc;
  outline: none;
}

@media (max-width: 768px) {
  .container-topo {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .topo-filtro {
    width: 100%;
    margin-top: 20px;
  }

  .topo-filtro select {
    width: 100%;
  }
}


body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* html, body {
  overflow-x: hidden;
  width: 100%;
} */

main.container {
  max-width: 1140px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Título principal (Estado1) */
main.container > h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

/* Título de cada grupo de categoria (tipo Categoria, Farmácia...) */
.grid-categoria-group-title {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 20px;
  text-align: center;
}

/* Grid dos cards */
.grid-beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  justify-content: center;
}




