.lojistas {
  display: flex;
  flex-direction: column;
  padding: 100px 70px;
  font-family: "Jost";
  gap: 50px;
}

.aside {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

.filtros {
  display: flex;
  position: relative;
  z-index: 20;
  flex-direction: column;
  height: 100%;
  width: 320px;
  min-width: 320px;
  height: fit-content;
  box-sizing: border-box;
  border: 2px solid var(--cinza-claro);
  padding: 20px;
  gap: 20px;
}

.filtros button {
  border: none;
  font-size: 15px;
  width: auto;
}
.filtros h3 {
  color: #444444;
  font-size: 20px;
  font-weight: 500;
}
.filtros input,
.filtros select {
  font-size: 15px;
  border-bottom: 2px solid var(--cinza-claro);
  padding-bottom: 5px;
}
.filtros input:focus,
.filtros select:focus {
  outline: none;
}

.filtros select {
  color: #444444;
  background-color: var(--cinza-section);
  padding: 15px 20px;
  border-radius: var(--b-radius);
  font-weight: 600;
  -webkit-appearance: none;
  border: none;
}

.tagfield {
  position: relative;
  z-index: 30;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.tagfield-selecao {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  background-color: #d9d9d9;
  border-radius: var(--b-radius);
  padding: 8px;
  cursor: text;
  box-sizing: border-box;
}

.tagfield-selecao input {
  flex: 1;
  min-width: 160px;
  background: transparent;
  border: none;
  padding: 7px 4px;
  font-weight: 600;
  box-sizing: border-box;
}

.tagfield-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  background-color: #ffffff;
  color: #444444;
  border: 1px solid var(--cinza-claro);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.tagfield-tag button {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: transparent;
  color: var(--vermelho);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.tagfield-opcoes {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  width: 100%;
  box-sizing: border-box;
  max-height: 320px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 2px solid var(--cinza-claro);
  border-radius: var(--b-radius);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
}

.tagfield-opcoes.aberto {
  display: block;
}

.tagfield-grupo,
.tagfield-opcao {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  text-align: left;
  padding: 10px 14px 10px calc(14px + (var(--nivel) * 18px));
}

.tagfield-grupo {
  color: #444444;
  font-size: 14px;
  font-weight: 700;
}

.tagfield-opcao {
  color: #666666;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.tagfield-opcao:hover,
.tagfield-opcao.selecionada {
  background-color: #f5f5f5;
  color: var(--vermelho);
}

.tagfield-opcao.grupo-selecionavel {
  color: #444444;
  font-weight: 700;
}

.filtros .check {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filtros input[type="checkbox"] {
  accent-color: var(--vermelho);
  color: #d9d9d9;
  height: 18px;
  width: 18px;
}

.filtros label {
  color: #9d9d9d;
  font-size: 15px;
}

#containnerlojas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--cinza-claro);
  gap: 10px;
  padding: 10px;
  max-height: 379px;
  border-radius: var(--b-radius);
  transition: 0.3s;

  &:hover{
    scale: 1.05;
  }
}
.card p {
  color: #444444;
  font-size: 12px;
}
.card h3 {
  font-size: 16px;
}

.card img {
  width: 256px;
  height: 256px;
  border-radius: var(--b-radius);
}
.botoesFiltros {
  display: flex;
  gap: 10px;
}

.botoesFiltros button {
  width: 138px;
  height: 38px;
  padding: 0;
}
.icones {
  display: flex;
  gap: 13px;
}

.icones img {
  width: 32px;
  height: 32px;
  transition: 0.3s;

  &:hover{
    opacity: 0.8;
    scale: 1.05;
  }
}

.paginacao {
  display: flex;
  align-self: center;
  gap: 10px;
  max-width: 910px;
}

.pagina {
  background: transparent;
  border: 2px solid var(--cinza-claro);
  color: #d9d9d9;
  cursor: pointer;
  padding: 13px 20px;
}

.paginacao button {
  width: 60px;
  height: 60px;
}

.pagina.ativa,
.pagina:hover:not(:disabled) {
  border: 2px solid var(--vermelho);
  color: var(--vermelho);
}

.pagina:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.reticencias,
.reticencias:hover {
  border: 2px solid var(--cinza-claro);
  color: var(--cinza-claro);
  cursor: default;
}

.hamburgerfiltros {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 50px;
  height: 54px;
  background: var(--vermelho);
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  z-index: 10;
}

.hamburgerfiltros .line {
  width: 100%;
  height: 3px;
  background-color: var(--branco);
  border-radius: 10px;
  transform-origin: 1px;
}

@media (max-width: 1108px) {
  .lojistas {
    padding: 100px 40px;
  }
  #containnerlojas {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .hamburgerfiltros {
    display: flex;
  }
  .lojistas {
    margin-top: 50px;
    padding: 50px 20px;
  }
  #containnerlojas {
    justify-content: center;
  }

  .aside {
    flex-direction: column;
    margin: 0px;
    gap: 10px;
  }

  .filtros {
    width: 100%;
    min-width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
  }

  .botoesFiltros button {
    width: 138px;
    height: 38px;
    padding: 0;
    transform: none !important;
  }
}

@media (max-width: 460px) {
  .lojistas {
    padding: 50px 16px;
  }
  .aside {
    margin: 5px;
  }
  .pagina {
    padding: 0px;
  }
  .paginacao button {
    width: 45px;
    height: 45px;
  }
}
