/* Shop Archive Filters - Minimal theme-aligned styling */

/* Container card and spacing */

#SIDE-filter {
  padding-right: 20px;
}


#SIDE-filter .elementor-widget-container:has(.apply-filters), #SIDE-filter .elementor-widget-container:has(.jet-remove-all-filters) {
  margin: 0;
  padding: 0;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .elementor-widget-wrap {
  background: transparent;
  border-radius: 0;
  padding: 12px 0;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .elementor-widget {
  margin-bottom: 10px;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .elementor-widget:last-child {
  margin-bottom: 0;
}

/* Headings */
:is(#SIDE-filter, #SIDE-filter-mobile) .elementor-widget-heading .elementor-heading-title {
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Poppins", Sans-serif;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .elementor-widget-heading .elementor-heading-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Range Filter - Optimized */
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-smart-filters-range {
  --range-track-height: 4px;
  --range-thumb-size: 16px;
  --range-primary-color: #3B2CA2;
  --range-track-bg: #F1F5F9;
  --range-active-bg: rgba(59, 44, 162, 0.3);
  --range-thumb-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  --range-focus-shadow: 0 0 0 3px rgba(59, 44, 162, 0.2);
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range {
  display: block;
  isolation: isolate;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider {
  position: relative;
  padding: 16px 0 12px;
  margin: 0;
  border: none;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__track {
  height: var(--range-track-height);
  background: var(--range-track-bg);
  border-radius: calc(var(--range-track-height) / 2);
  position: relative;
  overflow: hidden;
  margin: calc(var(--range-thumb-size) / 2 - var(--range-track-height) / 2) 0;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__track__range {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--low, 0%);
  right: calc(100% - var(--high, 100%));
  background: var(--range-active-bg);
  border-radius: inherit;
  transition: all 0.15s ease;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--range-thumb-size);
  background: transparent;
  outline: none;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input--max {
  z-index: 2;
}

/* Enhanced WebKit thumb */
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--range-thumb-size);
  height: var(--range-thumb-size);
  border-radius: 50%;
  background: var(--range-primary-color);
  border: 3px solid #FFFFFF;
  box-shadow: var(--range-thumb-shadow);
  cursor: grab;
  transition: all 0.15s ease;
  position: relative;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--range-thumb-shadow), var(--range-focus-shadow);
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

/* Enhanced Firefox thumb */
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-moz-range-thumb {
  width: var(--range-thumb-size);
  height: var(--range-thumb-size);
  border-radius: 50%;
  background: var(--range-primary-color);
  border: 3px solid #FFFFFF;
  box-shadow: var(--range-thumb-shadow);
  cursor: grab;
  transition: all 0.15s ease;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--range-thumb-shadow), var(--range-focus-shadow);
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

/* Remove default track in Firefox */
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-moz-range-track {
  background: transparent;
  border: none;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #6B7280;
  margin-top: 4px;
  line-height: 1.2;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__values-min,
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__values-max {
  font-weight: 600;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__values-suffix {
  color: #6B7280;
  font-weight: 500;
}

/* Checkboxes */
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__row {
  margin-bottom: 8px;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__item {
  display: block;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__input {
  appearance: none;
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  background: transparent;
  color: #374151;
  border: none;
  border-radius: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__button:hover {
  background: transparent;
  color: #111827;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__decorator {
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #FFFFFF;
  flex-shrink: 0;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__checked-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__label {
  font-size: 13px;
  font-weight: 500;
  color: #1F2937;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button {
  background: transparent;
  color: #111827;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator {
  background: #3B2CA2;
  border-color: #3B2CA2;
  color: #FFFFFF;
}

/* Apply / Reset buttons */
:is(#SIDE-filter, #SIDE-filter-mobile) .apply-filters,
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-remove-all-filters {
  margin-top: 8px;
  text-align: left;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .apply-filters__button,
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-remove-all-filters__button {
  width: 100%;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", Sans-serif;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .apply-filters__button {
  background: #3B2CA2;
  color: #FFFFFF;
  border: 1px solid #3B2CA2;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .apply-filters__button:hover {
  background: #34259a;
  border-color: #34259a;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .apply-filters__button:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 44, 162, 0.2);
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-remove-all-filters__button {
  background: transparent;
  color: #DC2626;
  border: none;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-remove-all-filters__button:hover {
  background: transparent;
  color: #B91C1C;
  text-decoration: underline;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-remove-all-filters__button:focus-visible {
  outline: 2px solid #EF4444;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  :is(#SIDE-filter, #SIDE-filter-mobile) .elementor-widget-wrap {
    padding: 12px;
    border-radius: 8px;
  }
  
  :is(#SIDE-filter, #SIDE-filter-mobile) .elementor-widget {
    margin-bottom: 12px;
  }
  
  :is(#SIDE-filter, #SIDE-filter-mobile) .elementor-widget-heading .elementor-heading-title {
    font-size: 15px;
  }
  
  /* Enhanced mobile range slider */
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-smart-filters-range {
    --range-thumb-size: 20px;
    --range-track-height: 6px;
  }
  
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider {
    padding: 20px 0 16px;
  }
  
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__values {
    font-size: 14px;
    gap: 10px;
    margin-top: 8px;
  }
  
  :is(#SIDE-filter, #SIDE-filter-mobile) .apply-filters__button,
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-remove-all-filters__button {
    padding: 12px 14px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-smart-filters-range {
    --range-thumb-size: 22px;
    --range-track-height: 8px;
  }
  
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider {
    padding: 24px 0 20px;
  }
  
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-webkit-slider-thumb:hover,
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-moz-range-thumb:hover {
    transform: none;
    box-shadow: var(--range-thumb-shadow);
  }
}

/* Accessibility focus for interactive elements */
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-checkboxes-list__button:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input:focus {
  outline: none;
}

/* Enhanced accessibility and focus states for range slider */
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  box-shadow: var(--range-thumb-shadow), var(--range-focus-shadow);
}

:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input:focus-visible::-moz-range-thumb {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  box-shadow: var(--range-thumb-shadow), var(--range-focus-shadow);
}

/* Improved keyboard navigation feedback */
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input:focus-visible + .jet-range__slider__input::-webkit-slider-thumb,
:is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input:focus-visible + .jet-range__slider__input::-moz-range-thumb {
  transform: scale(1.05);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-smart-filters-range {
    --range-track-bg: #000000;
    --range-active-bg: #FFFFFF;
    --range-primary-color: #000000;
  }
  
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-webkit-slider-thumb,
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-moz-range-thumb {
    border: 2px solid #FFFFFF;
    background: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__track__range,
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-webkit-slider-thumb,
  :is(#SIDE-filter, #SIDE-filter-mobile) .jet-range__slider__input::-moz-range-thumb {
    transition: none;
  }
}