#js-product-list-top.df-products-selection {
  clear: both;
  margin: 0 0 1.15rem;
  padding: 0;
}

#js-product-list-top .df-products-selection__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

#js-product-list-top .df-total-products,
#js-product-list-top .df-products-selection__actions {
  margin: 0;
  padding: 0;
}

#js-product-list-top .df-total-products {
  flex: 0 0 auto;
}

#js-product-list-top .df-total-products__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.62rem 1rem;
  border: 1px solid #d8ece6;
  border-radius: 999px;
  background: #f7fbfa;
  color: #18352f;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

#js-product-list-top .df-products-selection__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex: 1 1 auto;
  min-width: 0;
}

#js-product-list-top .df-products-sort-order {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-left: auto;
}

#js-product-list-top .df-products-sort-order__label {
  flex: 0 0 auto;
  margin: 0;
  color: #4f6660;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

#js-product-list-top .df-products-sort-order__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 230px;
  max-width: 100%;
  margin: 0;
  padding: 0.84rem 0.95rem;
  border: 1px solid #b8ddd4;
  border-radius: 14px;
  background: #ffffff;
  color: #14312c;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#js-product-list-top .df-products-sort-order__button:hover,
#js-product-list-top .df-products-sort-order.show .df-products-sort-order__button,
#js-product-list-top .df-products-sort-order__button:focus {
  border-color: #006a5c;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 106, 92, 0.08);
  text-decoration: none;
  outline: 0;
}

#js-product-list-top .df-products-sort-order__button .material-icons {
  flex: 0 0 auto;
  font-size: 1.25rem;
  color: #006a5c;
  line-height: 1;
}

#js-product-list-top .df-products-sort-order__current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#js-product-list-top .df-products-sort-order__menu {
  right: 0;
  left: auto;
  min-width: 100%;
  margin-top: 0.45rem;
  padding: 0.35rem;
  border: 1px solid #d8ece6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(10, 47, 40, 0.12);
}

#js-product-list-top .df-products-sort-order__item {
  display: block;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  color: #18352f;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#js-product-list-top .df-products-sort-order__item:hover,
#js-product-list-top .df-products-sort-order__item:focus {
  background: #f2fbf8;
  color: #006a5c;
  text-decoration: none;
  outline: 0;
}

#js-product-list-top .df-products-sort-order__item.current {
  background: #f2fbf8;
  color: #006a5c;
  font-weight: 700;
}

#js-product-list-top .df-filter-button {
  flex: 0 0 auto;
}

#js-product-list-top .df-filter-button .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1rem;
  border: 1px solid #b8ddd4;
  border-radius: 14px;
  background: #ffffff;
  color: #006a5c;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: none;
}

#js-product-list-top .df-filter-button .btn:hover,
#js-product-list-top .df-filter-button .btn:focus {
  border-color: #006a5c;
  background: #f2fbf8;
  color: #006a5c;
  outline: 0;
}

@media (max-width: 991.98px) {
  #js-product-list-top .df-products-selection__row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  #js-product-list-top .df-total-products {
    order: 1;
  }

  #js-product-list-top .df-products-selection__actions {
    order: 2;
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  #js-product-list-top.df-products-selection {
    margin-bottom: 1rem;
  }

  #js-product-list-top .df-products-selection__row {
    align-items: stretch;
    gap: 0.7rem;
  }

  #js-product-list-top .df-total-products,
  #js-product-list-top .df-products-selection__actions {
    width: 100%;
  }

  #js-product-list-top .df-total-products__value {
    width: auto;
    padding: 0.6rem 0.95rem;
    font-size: 0.92rem;
  }

  #js-product-list-top .df-products-selection__actions {
    justify-content: space-between;
    gap: 0.65rem;
  }

  #js-product-list-top .df-products-sort-order {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.55rem;
  }

  #js-product-list-top .df-products-sort-order__label {
    display: none;
  }

  #js-product-list-top .df-products-sort-order__button {
    width: 100%;
    min-width: 0;
    padding: 0.8rem 0.9rem;
    font-size: 0.94rem;
  }

  #js-product-list-top .df-filter-button {
    flex: 0 0 116px;
  }

  #js-product-list-top .df-filter-button .btn {
    width: 100%;
    min-height: 46px;
    padding: 0.78rem 0.85rem;
    font-size: 0.92rem;
  }

  #js-product-list-top .df-products-sort-order__menu {
    width: 100%;
    min-width: 0;
  }

  #js-product-list-top .df-products-sort-order__item {
    padding: 0.75rem 0.8rem;
    font-size: 0.93rem;
  }
}
