/* Main container */
.jr-ajax-filters {
  display: flex;
  gap: 60px;
}

/* Filter form sidebar */
.jr-ajax-filters-form {
  width: 25%;
  min-width: 250px;
}

/* Category list styling */
.jr-category-list-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--color-2ea9dd);
  padding: 20px 0 20px 17px;
  margin-bottom: 1px;
}
.jr-ajax-filters-form ul.jr-category-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jr-category-list li {
  margin-bottom: 1px;
}

.jr-category-list a {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;

  padding: 14px 0 14px 17px;

  color: #4e4e4e;
  justify-content: flex-start;
  font-size: 14px;
  font-weight: 300;
  background: #f3efeb;
  margin: 0;
}

.jr-category-list a:hover,
.jr-category-list a.active {
  background: #00aeef;
  color: white;
}
.jr-select-brand {
  padding: 8px 12px 8px 16px !important;
  border-radius: 24px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1px;
  color: #a1a1a1;
  border: 1px solid #dfdfdf;
  width: 100%;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  z-index: 1;
}
.jr-select-brand:focus,
.jr-select-brand:focus-visible,
.jr-select-brand:active {
  outline: none;
  border: 1px solid #00875A;
}

.jr-select-brand-container {
  position: relative;
  display: none;
}
.jr-select-brand-container:before {
    content: url(https://baseinams.eu/darzoviuseklos/wp-content/themes/darzoviuseklos/assets/images/chew-down.svg);
    position: absolute;
    top: 40px;
    right: 16px;
    z-index: -1;
    height: 8px;
    width: 14px;
}
.jr-result-count {
  display: flex;
  width: 100%;
  justify-content: space-between;
}
select#jr-orderby {
  border: none;
  letter-spacing: 0.5px;
  color: #383838;
  position: relative;
  z-index: 1;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 5px 15px;
}
select#jr-orderby:focus {
  outline: none;
}
select#jr-orderby option {
  border: none;
}
.jr-viewed-products-wrapper {
  display: none !important;
}
/* Price range inputs */
.jr-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jr-price-wrap input[type="number"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Attribute groups */
.active-filter-labels {
  display: none;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #a1a1a1;
}
.active-filter-labels span {
  height: 28px;
  padding: 4px 16px;
  border-radius: 16px;
  border: 1px solid #a1a1a133;
  display: flex;
  gap: 40px;
  align-items: center;
  text-transform: capitalize;
}
.active-filter-labels span i.remove,
.active-filter-labels span {
  transition: all .1s ease-in-out;
}
.active-filter-labels span:hover {
  background: #EFF2EC;
}
.active-filter-labels span i.remove {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  cursor: pointer;
  vertical-align: middle;
  color: #000;
}
form.jr-filterbar {
    position: relative;
}
.remove-mobile-filter {
    position: absolute;
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    vertical-align: middle;
    color: #000;
    top: 20px;
    right: 30px;
    display: none;
}
.active-filter-labels span i.remove::before,
.active-filter-labels span i.remove::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 14px;
  border-radius: 6px;
  background: currentColor;
  transform-origin: center;
}
.remove-mobile-filter::after,
.remove-mobile-filter::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 24px;
  border-radius: 6px;
  background: currentColor;
  transform-origin: center;
}
.active-filter-labels span i.remove::before,
.remove-mobile-filter::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.active-filter-labels span i.remove::after,
.remove-mobile-filter::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.active-filter-labels.show {
  display: flex;
}
.title-filter-name {
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.6px;
}
.jr-attr-group {
  padding: 24px 0;
  border-bottom: 1px solid #a1a1a1;
  display: flex;
  flex-direction: column;
}
.jr-actions {
  display: none !important;
}
.fields-attr {
  padding: 32px 0 0;
}
.jr-attr-group legend {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.6px;
  padding: 0;
  margin: 0;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jr-attr-group legend img {
  transition: all 0.1s ease-in-out;
  cursor: pointer;
}
.jr-attr-group legend.open img {
  transform: rotate(180deg);
}
label.jr-check {
  position: relative;
  font-size: 14px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: normal;
}

.jr-check input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}
.jr-check > span {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  margin-right: 15px;
  padding: 0;
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #dfdfdf;
}

.jr-check > span > img {
  opacity: 0;
  transition: all 0.1s ease-in-out;
}
.jr-check:has(input:checked) > span img {
  opacity: 1;
}
.jr-attr-group-line {
  width: 100%;
  height: 1px;
  background: #d7d7d7;
  margin-top: 20px;
}
/* Price range */
::selection {
  color: #fff;
  background: #17a2b8;
}
.wrapper {
  width: 100%;
  background: #fff;
}
.price-input {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
}
.price-input input {
  border: none !important;
  background: transparent;
  inline-size: max-content; /* or: width: fit-content; */
  /* if in a flex/grid container: */
  flex: 0 0 auto;
  min-width: 0;
  max-width: 42px;
  overflow: visible !important;
}
.price-input input::placeholder {
  overflow: visible !important;
}
.price-input .field {
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
}
.field input {
  width: 100%;
  height: 100%;
  outline: none;
  font-size: 19px;
  margin-left: 12px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #999;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.price-input .separator {
  width: 130px;
  display: flex;
  font-size: 19px;
  align-items: center;
  justify-content: center;
}
.slider {
  height: 16px;
  position: relative;
  background: #ddd;
  border-radius: 16px;
}
.slider .progress {
  height: 100%;
  left: 25%;
  right: 25%;
  position: absolute;
  border-radius: 16px;
  background: #00875a;
}
.range-input {
  position: relative;
}
.range-input input {
  position: absolute;
  width: 100%;
  height: 5px;
  top: -11px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
input[type="range"]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #00875a;
  pointer-events: auto;
  -webkit-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
input[type="range"]::-moz-range-thumb {
  height: 17px;
  width: 17px;
  border: none;
  border-radius: 50%;
  background: #17a2b8;
  pointer-events: auto;
  -moz-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
/* Brand */

/* Support */
.support-box {
  top: 2rem;
  position: relative;
  bottom: 0;
  text-align: center;
  display: block;
}
.b-btn {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.b-btn.paypal i {
  color: blue;
}
.b-btn:hover {
  text-decoration: none;
  font-weight: bold;
}
.b-btn i {
  font-size: 20px;
  color: yellow;
  margin-top: 2rem;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    margin: 0 !important;
    width: 100% !important;
}
/* Action buttons */
.jr-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.jr-apply,
.jr-reset {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.jr-apply {
  font-weight: bold;
  background-color: #ffdf25;
  color: #232323;
}

.jr-apply:hover {
  background-color: #e1c521;
}

.jr-reset {
  background-color: #f3efeb;
  color: #4e4e4e;
}

.jr-reset:hover {
  background-color: #ddd;
}

/* Products area */
.jr-ajax-filters-products {
  width: 75%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Results header */
.jr-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.jr-count {
  font-weight: bold;
  color: #333;
}
.jr-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
  background: rgba(255, 255, 255, 0.7);
  padding: 200px 0;
}
.loading {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: sticky;
  top: 500px;
  animation: rotate 1s linear infinite;
}
.loading::before,
.loading::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid #000;
  animation: prixClipFix 2s linear infinite;
}
.loading::after {
  border-color: #00875a;
  animation: prixClipFix 2s linear infinite, rotate 0.5s linear infinite reverse;
  inset: 6px;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
  }
  25% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
  }
  75% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
  }
}

/* Products grid */
#jr-grid {
  margin-bottom: 20px;
}

/* Error messages */
.jr-error {
  color: #d63638;
  background-color: #fcf0f1;
  border: 1px solid #d63638;
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
}

.jr-no-results {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

/* Load more button */
.jr-load-more {
  display: block;
  margin: 20px auto;
  padding: 12px 24px;
  color: #303030;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  border-radius: 36px;
  border: 2px solid #474747;
  font-weight: 500;
  letter-spacing: 2px;
  background-color: transparent;
}

/* Responsive design */

@media (max-width: 1280px) {
  .remove-mobile-filter {
    display: block;
  }
  .jr-ajax-filters {
    flex-direction: column;
  }

  .jr-ajax-filters-form,
  .jr-ajax-filters-products {
    width: 100%;
  }
  .mobile-filter {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    top: 79px;
    left: 0;
    padding: 0 15px;
    display: none;
    transition: all 0.1s ease-in-out;
  }
  .mobile-filter.active {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .mobile-filter form.jr-filterbar {
    background: #ffff;
    padding: 50px 20px;
    border-radius: 24px;
    position: relative;
    z-index: 110;
    width: 100%;
    max-height: 760px;
    overflow: auto;
  }
  .mobile-filter form.jr-filterbar::-webkit-scrollbar {
    display: none;
  }
  .title-filter-name {
    display: flex;
  }
  .title-filter-name span {
    border-radius: 35px 0;
    padding: 15px 24px;
    width: 35%;
    background-color: #00875a;
    color: #fff;
    transition: all .1s ease-in-out;
    cursor: pointer;
    text-align: center;
  }
  .title-filter-name span:hover {
    background-color: #0b511e;
  }
  .jr-ajax-filters {
    display: flex;
  }
}

@media (max-width: 768px) {
  .jr-actions {
    flex-direction: column;
  }

  .jr-price-wrap span {
    text-align: center;
    margin: 5px 0;
  }
  .title-filter-name span {
    width: 100%;
  }
}
@media (max-width: 600px) {

  .remove-mobile-filter {
    width: 18px;
    height: 18px;
    top: 15px;
    right: 10px;
  }
  .remove-mobile-filter::after, .remove-mobile-filter::before {
    width: 2px;
    height: 18px;
    border-radius: 4px;
  }
  .mobile-filter form.jr-filterbar {
    padding: 60px 10px;
  }
  .jr-result-count {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .jr-ajax-filters {
    gap: 15px;
  }

  .jr-ajax-filters-form {
    min-width: auto;
  }

  .jr-attr-group {
    padding: 10px;
  }

  .jr-results-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
