.waf-filter {
  margin: 20px 0;
}
.waf-filter__container {
  display: flex;
  justify-content: space-between;
}
.waf-filter__dropdown {
  display: inline-block;
  position: relative;
  border-right: .5px solid #999;
}
.waf-filter__dropdown:last-child {
  border-right: none;
}
.waf-filter__dropdown .waf-filter__dropdown-toggle {
  background: transparent !important;
  color: black !important;
}
.waf-filter__dropdown:hover .waf-filter__dropdown-toggle {
  color: var(--color-primary) !important;
}
.waf-filter__dropdown-menu {
  display: none;
}
.waf-filter__dropdown.open .waf-filter__dropdown-menu {
  display: block;
}

.waf-filter__dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  background: none;
  border: none;
  color: #B89E5B;
  cursor: pointer;
  padding: 0 18px;
  height: 40px;
  line-height: 40px;
  border: 1px solid #ccc;
}
.waf-filter__dropdown-toggle span {
  font-size: 12px;
}
.waf-filter__dropdown-menu {
  display: none;
  position: absolute;
  z-index: 10;
  background: #fff;
  padding: 18px 24px;
  min-width: 220px;
  border-radius: 10px;
  border: 1px solid #eee;
  box-shadow: 0 2px 24px #0002;
}
.waf-filter__dropdown input[type=checkbox] {
  accent-color: var(--color-secondary);
  width: 22px;
  height: 22px;
}
.waf-filter__bar {
  display:flex; 
  width: fit-content;
}
.waf-filter__form .waf-filter__term {
  margin-bottom: 8px;
}
.waf-filter__form label {
  display: flex;
  align-items: center;
}
.waf-filter__form input[type="checkbox"] {
  margin: 0;
}
.waf-filter__form span {
  margin-left: 8px;
  width: 90%;
}
.waf-filter__form button {
  width: 100%;
  background: #222;
  color: #fff;
  padding: 10px 0;
  border: none;
  border-radius: 3px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}
.waf-filter__terms {
  max-height: 250px;
  overflow: scroll;
}
.waf-filter__active-filters {
  margin-bottom: 20px;
}
.waf-filter__active-filters strong {
  margin-right: 8px;
}
.waf-filter__remove-filter {
  display: inline-block;
  margin: 0 6px;
  padding: 4px 10px;
  background: #eee;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: #000;
}
.waf-filter__submit {
  display: flex;
  justify-content: center;
}
.waf-filter__remove-all {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  background: #444;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
}
.waf-filter__price .price-slider {
  margin: 20px 0;
}

.waf-preloader {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #ffffffb0;
  position: fixed; /* <- zmienione z absolute na fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* zwiększone, żeby nad wszystkimi elementami */
  text-align: center;
  padding: 50px 0;
  font-size: 24px;
  color: #000000;
}

.waf-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid #ccc;
  border-top-color: #000000;
  border-radius: 50%;
  animation: waf-spin 1s linear infinite;
  margin: 0 auto;
}


@keyframes waf-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


@media(max-width: 1200px) {
  .waf-filter__bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .waf-filter__bar .waf-filter__dropdown .waf-filter__dropdown-toggle,
  .waf-filter__bar .waf-filter__dropdown:first-child .waf-filter__dropdown-toggle,
  .waf-filter__bar .waf-filter__dropdown:last-child .waf-filter__dropdown-toggle {
    border-radius: 8px !important;
  }
}

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

.waf-dropdown button {
  background: transparent !important;
  color: black !important;
  min-width: auto;
  display: flex;
  justify-content: center;
  height: 100%;
  margin: 0;
}

.waf-filter__form--sort {
  display: flex;
  align-items: center;
}

.waf-dropdown__toggle {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  min-width: 200px;
  text-align: left;
  font-size: 14px;
}

.waf-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-top: 5px;
  display: none;
  z-index: 999;
  min-width: 200px;
}

.waf-dropdown.open .waf-dropdown__menu {
  display: block;
}

.waf-dropdown__option {
  padding: 8px 12px;
}

.waf-dropdown__option input {
  display: none;
}

.waf-dropdown__option label {
  display: block;
  cursor: pointer;
}

.waf-dropdown__option input:checked + label {
  font-weight: bold;
  color: #000;
}



.products__count {
  margin: 50px 0;
}


.woocommerce-ordering {
  display: none !important;
}
