.filter-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-icon {
  margin-left: 8px;
  transition: transform 0.2s ease;
  width: 18px;
  height: 18px;
}

.filter-dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

.filter-dropdown.open .dropdown-menu {
  display: block;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 180px;
  padding: 10px 16px;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  color: #495057;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #adb5bd;
}

.filter-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 100%;
  padding: 8px 0;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 8px 16px;
  font-size: 14px;
  color: #495057;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-item.active {
  color: #0d6efd;
  background-color: #f1f8ff;
}

.sort-dropdown-item {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #4a5568;
  transition: background-color 0.2s ease;
}

.sort-dropdown-item .sort-icon img {
  width: 24px;
  height: 24px;
}

.sort-dropdown-item:last-child {
  border-bottom: none;
}

.sort-dropdown-item:hover {
  background-color: #f8f9fa;
}

.sort-dropdown-item i {
  color: #4a5568;
  font-size: 20px;
}

.sort-text {
  font-size: 16px;
  font-weight: 500;
}
