/* Main container */
.jr-ajax-filters {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 30px;
}

/* 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;
}

/* 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;
}

.jr-price-wrap span {
  color: #666;
  font-weight: bold;
}

/* Attribute groups */
.jr-attrs {
}

.jr-attr-group {
  padding: 20px 15px;
  padding-bottom: 0;
  background: #f3efeb;
}

.jr-attr-group legend {
  font-weight: 500;
  font-size: 16px;
  padding: 0;
  color: #232323;
}

label.jr-check {
  position: relative;
  font-size: 14px;
  display: flex;
  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: 10px;
    padding: 0;
    width: 22px;
    height: 22px;
    border: 1px solid #868686;
    position: relative;
    cursor: pointer;
}

.jr-check > span > i { color:transparent; }
.jr-check:has(input:checked) > span i{
  color: red;
}
.jr-attr-group-line {
  width: 100%;
  height: 1px;
  background: #d7d7d7;
  margin-top: 20px;
}

/* 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;
}

/* 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 {
  color: #0073aa;
  font-style: italic;
}

/* 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;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.jr-load-more:hover {
  background-color: #005a87;
}

/* Responsive design */
@media (max-width: 768px) {
  .jr-ajax-filters {
    flex-direction: column;
  }
  
  .jr-ajax-filters-form,
  .jr-ajax-filters-products {
    width: 100%;
  }
  
  .jr-actions {
    flex-direction: column;
  }
  
  .jr-price-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  
  .jr-price-wrap span {
    text-align: center;
    margin: 5px 0;
  }
}

@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;
  }
}