/* filtro-toner.css */

#filtro-toner-container {
  max-width: 1100px;
  margin: auto;
}

.ft-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: 20px;
  position: relative;
}

.ft-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  position: relative;
  flex: 1 1 auto;
}

.ft-group label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
}

.ft-select,
#ft-search,
#ft-clear {
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 15px;
  font-family: 'Segoe UI', sans-serif;
  width: 100%;
  background-color: #fff;
  color: #333;
  height: 40px;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.ft-select option {
  white-space: normal;
}

.ft-select:focus,
#ft-search:focus {
  border-color: #f5821f;
  outline: none;
}

#ft-clear {
  background-color: #f5821f;
  color: white;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  border-radius: 4px;
  height: 40px;
  min-width: 100px;
}

#ft-clear:hover {
  background-color: #e17000;
}

#ft-resultados {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.ft-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  background: white;
}

.ft-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ft-card.selected {
  border: 2px solid #f5821f;
  background-color: #fff8f0;
}

.ft-label {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #f5821f;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 5px;
}

.ft-card h4 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

.ft-price {
  color: #2e7d32;
  font-weight: bold;
  margin: 10px 0;
}

.ft-button {
  background-color: #f5821f;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 15px;
  font-family: 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ft-button:hover {
  background-color: #e17000;
}

#ft-sugerencias {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  width: 100%;
  top: 100%;
  left: 0;
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
}

#ft-search:focus + #ft-sugerencias,
#ft-sugerencias:hover {
  display: block;
}

.ft-sugerencias-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ft-sugerencias-list li {
  padding: 8px 12px;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: break-word;
}

.ft-sugerencias-list li:hover {
  background-color: #f0f0f0;
}
