/* Personalización del modal de filtro */
#filter-modal {
  width: 90%;
  max-height: 90%;
  border-radius: 8px;
  overflow: hidden;
}

#filter-modal.fullscreen-modal {
  width: 100%;
  height: 100%;
  max-height: 100%;
  top: 0 !important;
  border-radius: 0;
}

#filter-modal .modal-content {
  padding: 20px;
  overflow-x: hidden;
}

#filter-modal h4 {
  margin-top: 0;
  margin-bottom: 20px;
}

#filter-modal .filter-section {
  margin-bottom: 15px;
  border-radius: 4px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  height: 100%;
}

#filter-modal .filter-items {
  scrollbar-width: thin;
  scrollbar-color: #424242 #212121;
}

#filter-modal .filter-items::-webkit-scrollbar {
  width: 6px;
}

#filter-modal .filter-items::-webkit-scrollbar-track {
  background: #212121;
  border-radius: 10px;
}

#filter-modal .filter-items::-webkit-scrollbar-thumb {
  background-color: #424242;
  border-radius: 10px;
}

.filter-badge {
  position: absolute;
  top: 8px;
  right: 15px;
  background-color: #ff0000;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex
;
  align-items: center;
  justify-content: center;
}

#toggle-filters {
  position: relative;
  /* Por defecto el botón estará oculto en pantallas grandes */
  display: none;
}

/* Estilo para el contenedor original del filtro */
#filter-products-all {
  border-radius: 6px;
  padding: 15px;
  background-color: #1c1c1c;
}

#filter-products-all h6 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 500;
}

#filter-products-all ul {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #424242 #212121;
}

#filter-products-all ul::-webkit-scrollbar {
  width: 6px;
}

#filter-products-all ul::-webkit-scrollbar-track {
  background: #212121;
  border-radius: 10px;
}

#filter-products-all ul::-webkit-scrollbar-thumb {
  background-color: #424242;
  border-radius: 10px;
}

/* Optimizaciones para dispositivos móviles */
@media only screen and (max-width: 991px) {
  /* Ocultar el filtro original y mostrar el botón */
  #filter-products-all {
    display: none;
  }
  
  #toggle-filters {
    display: block;
  }
  
  #filter-modal .filter-section {
    margin-bottom: 20px;
  }
  
  #filter-modal .row .col {
    padding: 0 5px;
  }
}

/* Optimizaciones para tablets */
@media only screen and (min-width: 601px) and (max-width: 992px) {
  #filter-modal:not(.fullscreen-modal) {
    width: 85%;
  }
}

/* Optimizaciones para pantallas grandes */
@media only screen and (min-width: 993px) {
  #filter-modal:not(.fullscreen-modal) {
    width: 70%;
  }
} 