/* Main Widget Container */
.widget_custom_filter_widget {
  padding: 0;
  text-align: left;
  background: #ffffff;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
  overflow: visible;
}

/* Filter Title */
.widget_custom_filter_widget::before {
  content: "Filters";
  display: none;
  padding: 24px 0 16px;
  font-size: 18px;
  /* color: #222222; */
  color: #021260;
  border-bottom: 1px solid #f0f0f0;
  font-family: var(--title-font);
}

/* Filter Form */
.widget_custom_filter_widget .filters {
  padding: 0;
}
.widget_custom_filter_widget .filters ul {
  padding-bottom: 30px;
}

/* Accordion Sections */
.widget_custom_filter_widget .accordion {
  border: none;
  border-radius: 0;
}

.widget_custom_filter_widget div.accordion {
  border-top: none;
  border-bottom: 1px solid #f0f0f0;
}

.widget_custom_filter_widget h3 {
  padding: 27px 0 20px;
  font-size: 14px;
  font-weight: 500;
  /* color: #222222; */
  color: #021260;
  position: relative;
  cursor: pointer;
  margin: 0;
  background: #ffffff;
  font-family: var(--title-font);
  transition: background-color 0.2s ease;
}

/* Selected Value Display */
.widget_custom_filter_widget h3 .selected {
  color: #888888;
  font-size: 13px;
  font-weight: 400;
  display: block;
  text-transform: none;
  margin-top: 4px;
  font-family: var(--title-font);
}

/* Accordion Icons */
.ui-accordion-header .ui-icon {
  background: none;
  width: 12px;
  height: 12px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.ui-accordion-header .ui-icon::before,
.ui-accordion-header .ui-icon::after {
  /* content: ""; */
  position: absolute;
  background: #888888;
  transition: transform 0.3s ease;
}

.ui-accordion-header .ui-icon {
    background: url(fleche_bas.jpg) no-repeat;
    width: 19px;
    height: 10px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.ui-accordion-header .ui-icon.ui-icon-triangle-1-s {
    background: url(fleche_bas.jpg) no-repeat;
    width: 19px;
    height: 10px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transform: rotate(180deg);
}

.ui-accordion-header .ui-icon::before {
  width: 12px;
  height: 2px;
  top: 5px;
  left: 0;
}

.ui-accordion-header .ui-icon::after {
  width: 2px;
  height: 12px;
  top: 0;
  left: 5px;
}

.ui-accordion-header-active .ui-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

/* Accordion Content */
/* Lists */
.widget_custom_filter_widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_custom_filter_widget ul li {
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  flex-flow: nowrap;
}

.widget_custom_filter_widget ul li:last-child {
  margin-bottom: 0;
}

.widget_custom_filter_widget ul label {
  margin-left: 12px;
  font-family: var(--title-font);
  font-size: 14px;
  /* color: #333333; */
  color: #999999;
  font-weight: 400;
  cursor: pointer;
  flex: 1;
}

/* Checkboxes */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: #999999;
  width: 20px;
  height: 20px;
  border: 2px solid #d0d0d0;
  border-radius: 3px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

input[type="checkbox"]::before {
  content: "";
  width: 1.15em;
  height: 1.15em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background: url(check.jpg) no-repeat;
  top: 0px !important;
  left: 0px !important;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Price Filter Section */
#filtre_price .ui-accordion-content {
  margin-bottom: 30px;
}

/* Price Range Inputs */
.one_range {
  width: calc(50% - 8px);
  position: relative;
}

.one_range label {
  display: none;
}

.one_range input {
  /* width: 100%;
  border: 1px solid #d0d0d0 !important;
  border-radius: 4px !important;
  font-weight: 400 !important;
  padding: 8px 28px 8px 12px !important;
  font-size: 14px !important;
  color: #333333 !important;
  background: #ffffff;
  font-family: var(--title-font); */
  width: 70%;
  border: solid 1px #999 !important;
  border-radius: 0 !important;
  font-weight: 500 !important;
}

.one_range:after {
  /* position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  content: "€";
  display: block;
  color: #888888;
  font-size: 14px;
  pointer-events: none; */

  position: absolute;
  right: calc(30% + 9px);
  bottom: 10px;
  content: "€";
  display: block;
  color: #999;
}

.one_range.float_left {
  float: left;
}

.one_range.float_right {
  float: right;
}

/* Price Slider */
#slider-range-price-ring {
  margin-top: 20px;
  width: calc(100% - 20px);
  margin-left: auto;
  margin-right: auto;
  /* height: 4px; */
  /* border: none; */
  /* background: #e0e0e0; */
  /* border-radius: 2px; */
}

.ui-slider .ui-slider-range {
  height: 100% !important;
}

/* #slider-range-price-ring .ui-slider-range {
  background: #b8945f;
  border-radius: 2px;
} */

/* #slider-range-price-ring .ui-slider-handle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #b8945f;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  margin-left: -9px;
}

#slider-range-price-ring .ui-slider-handle:hover,
#slider-range-price-ring .ui-slider-handle:focus {
  background: #a07d4d;
  outline: none;
} */

/* Clear Float */
.clear {
  clear: both;
}

/* Selected Filters Display */
#filters_selected {
  text-align: left;
  min-height: 32px;
  margin-bottom: 10px;
  /* padding: 0 24px; */
}

#filters_selected div {
  display: none;
}

#filters_selected div.ok {
  display: inline-block;
  border: 1px solid #d0d0d0;
  padding: 6px 32px 6px 12px;
  /* color: #333333; */
  color: #021260;
  font-size: 13px;
  font-weight: 500;
  margin: 4px 8px 4px 0;
  border-radius: 4px;
  position: relative;
  background: #fafafa;
  font-family: var(--title-font);
}

#filters_selected div span {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

#filters_selected div span:hover {
  opacity: 1;
}

#filters_selected div span::before,
#filters_selected div span::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: #666666;
  top: 50%;
  left: 0;
}

#filters_selected div span::before {
  transform: translateY(-50%) rotate(45deg);
}

#filters_selected div span::after {
  transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Close Button */
#close_filters_mobile {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 1001;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  /* color: #333333; */
  color: #021260;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .widget_custom_filter_widget {
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    overflow-y: auto;
  }

  .widget_custom_filter_widget::before {
    padding: 20px 0 16px;
    font-size: 20px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
  }

  .widget_custom_filter_widget h3 {
    padding: 27px 0px 20px;
    font-size: 16px;
  }

  .ui-accordion-header .ui-icon {
    right: 20px;
  }

  .widget_custom_filter_widget .ui-accordion-content {
    padding: 16px 20px 20px;
  }

  #close_filters_mobile {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
  }

  .shop-sidebar.active {
    transform: translateX(0);
  }

  #filters_selected {
    padding: 0 20px;
  }
}

@media screen and (max-width: 480px) {
  .one_range input {
    font-size: 13px !important;
    padding: 6px 24px 6px 10px !important;
  }

  .widget_custom_filter_widget ul label {
    font-size: 13px;
  }

  input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  input[type="checkbox"]::before {
    width: 10px;
    height: 10px;
  }
}

.wrapper_sort {
  margin-bottom: 0px !important;
  margin-top: 25px !important;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 16px;
}

.wrapper_sort_old {
  margin-bottom: 0px !important;
  margin-top: 25px !important;
  padding: 10px 16px;
  text-align: right;
}

.sticky-counter {
  display: flex;
  justify-content: space-between;
}

/* Sticky filter base */
.filter-sticky {
  position: relative;
  transition: top 0.25s ease;
}

/* Active sticky state */
.filter-sticky.is-sticky {
  position: fixed;
  top: var(--sticky-offset);
  width: 22%; /* adjust if needed */
  z-index: 999;
}

/* Prevent layout jump */
.shop-sidebar {
  position: relative;
}

aside#secondary {
  position: sticky;
  top: 50px;
}

aside#secondary .shop-sidebar {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

input#price-min-ring {
    color: #021260 !important;
}

input#price-max-ring {
    color: #021260 !important;
}

/* /////////////extra css ////////////// */
#nb_result,
#nb_result .woocommerce-result-count {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.woocommerce-result-count[aria-hidden="true"] {
    display: block !important;
    visibility: visible !important;
}