.filter {
  width: 300px;
}

.filter-close-btn {
  border: none;
  background-color: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  outline: none;
}
.filter-close-btn svg {
  width: 35px;
  height: 35px;
}

.filter-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
}

.filter-categories {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-categories h2,
.filter-tags h2 {
  color: var(--body-text);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-checkbox input {
  width: 15px;
  height: 15px;
  border: 1px solid #000;
  accent-color: #7a0c12;
}

.filter-checkbox span {
  color: var(--body-text);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.filter-container hr {
  width: 100%;
  height: 3px;
  background: #000;
}

.filter-tags-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tag {
  padding: 8px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.filter-tag:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.filter-tag input {
  display: none;
}

.filter-tag:has(input:checked) {
  background-color: transparent;
  color: var(--color-primary);
}

.filter-button{
    width: 100%;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    border: 3px solid var(--color-primary);
    color: var(--color-primary);
}

.filter-button:hover{
        background-color: var(--color-primary);
    color: #fff;
}

/* Responsividade */
@media screen and (max-width: 991px) {
  .filter {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100dvh;
    background: var(--body-background);
    transition: left 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    padding: 20px;
  }

  body:has(.filter.is-open){
    overflow: hidden;
  }

  .filter.is-open {
    left: 0;
  }

  .filter-close-btn {
    display: flex;
  }
}
