/* Slider de Preço */
#slider-price {
  height: 3px;
  background: var(--secondary);
  border: none;
  box-shadow: none;
}

#slider-price .noUi-connect {
  background: var(--primary);
}

#slider-price .noUi-handle {
  width: 14px;
  height: 14px;
  right: -7px;
  top: -6px;
  border: 2px solid #FF9517;
  background: white;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
}

#slider-price .noUi-handle:before,
#slider-price .noUi-handle:after {
  display: none;
}

.font-price {
  font-size: 14px;
  color: #212121;
  font-weight: 500;
}

#product-search {
  margin-top: 5.75vh;
}

/* Filtros Sidebar */
.filter-title {
  font-size: 14px;
  font-family: var(--product_sans);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding-bottom: 10px;
  color: var(--primary);
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.filter-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 50px;
  height: 2px;
  background-color: #212121;
}

.sidebar-filter .form-check {
  margin-bottom: 5px;
}

.sidebar-filter label {
  cursor: pointer;
  font-size: 11px;
  color: #212121;
  color: var(--primary);

}

.sidebar-filter input[type="radio"]:checked+label {
  font-weight: bold;
  /* color: #212121; */
  color: var(--primary);
}

.cat-list-parent>li {
  margin-bottom: 8px;
}

.cat-list-child {
  border-left: 1px solid #ddd;
  margin-top: 5px;
  margin-bottom: 10px;
}

#button-search {
  display: none;
}

.custom-toolbar {
  padding-bottom: 15px;
  margin-bottom: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

/* Remove estilo padrão do breadcrumb para ficar limpo */
.custom-toolbar .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
}

.custom-toolbar .breadcrumb-item {
  font-size: 14px;
  color: #666;
}

.custom-toolbar .breadcrumb-item a {
  color: #333;
  text-decoration: none;
}

.custom-toolbar .breadcrumb-item.active {
  color: #999;
}

/* Controles da direita */
.toolbar-right {
  display: flex;
  align-items: center;
}

.toolbar-select-group {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: sans-serif;
}

.toolbar-label {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  margin-right: 5px;
}

.limit-list {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #999;
}

.limit-item {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

.limit-item.active {
  color: #212121;
  font-weight: 700;
}

.separator {
  color: #ccc;
  font-size: 12px;
}

/* Ícones Grid/List */
.btn-view-mode {
  border: none;
  background: transparent;
  color: #ccc;
  font-size: 20px;
  padding: 0 2px;
  cursor: pointer;
}

.btn-view-mode:hover {
  color: #666;
}

/* Select "Ordenação Padrão" Minimalista */
.minimal-select {
  border: none;
  border-bottom: 2px solid #d1d1d1;
  background-color: transparent;
  font-size: 14px;
  color: black;
  font-weight: 700;
  padding: 5px 25px 5px 0;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.minimal-select:focus {
  box-shadow: none;
  border-bottom-color: #212121;
}

/* --- ESTILO CATEGORIAS (IGUAL IMAGEM) --- */

.category-list-container {
  font-family: "Outfit", sans-serif;
  padding-left: 7px;
  padding-right: 7px;
}

/* Linha que contém o checkbox e a seta */
.cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}

.cat-list-parent>li {
  margin-bottom: 0;
  border-bottom: 1px solid transparent;
}

/* Checkbox e Label */
.cat-row .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  padding-left: 0;
  min-height: auto;
}

.cat-row .form-check-input {
  width: 16px;
  height: 16px;
  border: 1px solid #ddd;
  border-radius: 2px;
  margin-top: 0;
  margin-right: 8px;
  float: none;
  margin-left: 0;
  flex-shrink: 0;
  background-position: center;
  background-size: contain;
}

.cat-row .form-check-input:checked {
  background-color: #212121;
  border-color: #212121;
  background-image: none;
  box-shadow: none;
}

.cat-row label {
  font-size: 15px;
  color: #555;
  font-weight: 400;
  cursor: pointer;
  margin-left: 0;
  line-height: 1.2;
  padding-top: 2px;
}

/* Ícone da Seta (Drop) */
.toggle-icon {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: transform 0.3s ease;
}

.toggle-icon i {
  font-size: 12px;
}

.toggle-icon.active {
  transform: rotate(180deg);
}

/* Listas filhas */
.cat-list-child,
.cat-list-grandchild {
  border-left: 1px solid #eee;
  margin-left: 10px;
}

.price-filter-box {
  padding-left: 8px;
  padding-right: 8px;
}

/* --- ESTILO OPÇÕES (CORES E TAMANHOS) --- */
.option-list-container {
  gap: 8px !important;
}

/* Reset do Label */
.option-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background-color: #fff;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

/* --- ESTILO COR (BOLINHA) --- */
.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid black;
}

.color-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.filter-option:checked+.color-option {
  border: 2px solid #212121;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px #fff inset;
}

/* --- ESTILO TEXTO (QUADRADO/TAMANHO) --- */
.text-option {
  min-width: 46px;
  height: 23px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  padding: 0 5px;
}

.filter-option:checked+.text-option {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

.option-label:hover {
  border-color: #999;
}


/* --- LÓGICA DO FILTRO MOBILE --- */
@media (max-width: 767px) {
  #mobile-filter-wrapper {
    display: none;
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 20px;
  }

  .custom-toolbar {
    gap: 0;
    margin-top: 10px;
    margin-bottom: 0px;
  }

  .toolbar-left {
    display: none;
  }

  .toolbar-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .limit-group-mobile {
    margin-right: 0 !important;
  }

  .limit-list {
    font-size: 13px;
  }

  .sort-group-mobile {
    flex-grow: 0;
  }

  .minimal-select {
    border-bottom: 0;
    text-align: right;
    text-align-last: right;
    padding-right: 25px;
    direction: ltr;
    background-position: right center;
  }

  #product-search .row #content {
    padding: 0px;
  }
}

@media (min-width: 768px) {
  #mobile-filter-wrapper {
    display: block !important;
    border: none;
    padding: 0px 30px 0px 0px;
  }
}

#btn-toggle-filter {
  border-radius: 0;
  background-color: #212121;
  color: #fff;
  border: none;
  padding: 12px 15px;
}