/* =========================================================
   FILTER OFFCANVAS
========================================================= */

.filter_offcanvas {
  width: 380px !important;
  background: #fbf8f6;
  border: 0 !important;
  box-shadow: 8px 0 35px rgba(45, 8, 10, 0.16);

  display: flex !important;
  flex-direction: column;
}

/* =========================================================
   OFFCANVAS HEADER
========================================================= */

.filter_offcanvas .offcanvas-header {
  position: relative;
  flex-shrink: 0;

  padding: 17px 22px;

  background: #2d080a;
  border: none;

  justify-content: space-between;

  z-index: 100;
}

.filter_offcanvas .offcanvas-title {
  margin: 0;

  font-size: 20px;
  font-weight: 700;

  color: #fff;
  letter-spacing: 0.5px;
}

.filter_offcanvas .offcanvas-header .btn-close {
  width: 13px;
  height: 13px;

  padding: 8px;
  margin: 0;

  opacity: 1;

  filter: brightness(0) invert(1);

  box-shadow: none !important;
  outline: none !important;
}

.filter_offcanvas .offcanvas-header .btn-close:focus,
.filter_offcanvas .offcanvas-header .btn-close:active {
  box-shadow: none !important;
  outline: none !important;
}

/* =========================================================
   STICKY FILTER SEARCH
========================================================= */

.filter_offcanvas .filter_search_sticky {
  position: sticky;
  top: 0;

  flex-shrink: 0;

  width: 100%;

  padding: 12px 15px;

  background: #fbf8f6;

  border-bottom: 1px solid #eadfdd;

  z-index: 90;
}

/* =========================================================
   SEARCH BOX
========================================================= */

.filter_offcanvas .filter_search_box {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  height: 42px;

  background: #fff;

  border: 1px solid #e4d7d5;
  border-radius: 7px;

  transition: all 0.2s ease;
}

.filter_offcanvas .filter_search_box:focus-within {
  border-color: #813034;

  box-shadow: 0 0 0 2px rgba(83, 14, 17, 0.06);
}

/* =========================================================
   SEARCH ICON
========================================================= */

.filter_offcanvas .filter_search_icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 100%;

  flex-shrink: 0;

  color: #530e11;

  font-size: 14px;
}

.filter_offcanvas .filter_search_icon i {
  pointer-events: none;
}

/* =========================================================
   SEARCH INPUT
========================================================= */

.filter_offcanvas .filter_search_input {
  width: 100%;
  height: 100%;

  padding: 0 38px 0 0;

  border: none;
  outline: none;

  background: transparent;

  font-size: 13px;
  font-weight: 600;

  color: #2d080a;
}

.filter_offcanvas .filter_search_input::placeholder {
  color: #9b8d8b;
  font-weight: 500;
}

/* =========================================================
   SEARCH CLEAR BUTTON
========================================================= */

.filter_offcanvas .filter_search_clear {
  position: absolute;

  top: 50%;
  right: 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  padding: 0;

  transform: translateY(-50%);

  border: none;
  border-radius: 50%;

  background: transparent;

  color: #7d6b69;

  cursor: pointer;

  font-size: 12px;
}

.filter_offcanvas .filter_search_clear:hover {
  background: #f4e9e7;
  color: #530e11;
}

/* =========================================================
   OFFCANVAS BODY
========================================================= */

.filter_offcanvas .offcanvas-body {
  min-height: 0;

  padding: 16px 15px 85px !important;

  background: #fbf8f6;

  scrollbar-width: none;

  overflow-y: auto;
}

.filter_offcanvas .offcanvas-body::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   ACCORDION
========================================================= */

.filter_offcanvas .accordion {
  --bs-accordion-border-width: 0;
}

.filter_offcanvas .accordion-item {
  margin-bottom: 10px;

  border: 1px solid #eadfdd !important;
  border-radius: 8px !important;

  overflow: hidden;

  background: #fff;
}

.filter_offcanvas .accordion-header {
  margin: 0;
}

.filter_offcanvas .accordion-button {
  padding: 17px 18px;
  background: #fff;
  color: #2d080a;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: none !important;
  outline: none !important;
}

.filter_offcanvas .accordion-button:hover {
  background: #faf5f3;
}

.filter_offcanvas .accordion-button:focus {
  box-shadow: none !important;
  outline: none !important;
}

.filter_offcanvas .accordion-button:not(.collapsed) {
  background: #f4e9e7;

  color: #2d080a;

  box-shadow: none !important;
}

.filter_offcanvas .accordion-button::after {
  width: 11px;
  height: 11px;

  background-size: 11px;
}

.filter_offcanvas .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

/* =========================================================
   ACCORDION BODY
========================================================= */

.filter_offcanvas .accordion-body {
  padding: 5px 18px 18px;

  background: #fff;
}

/* =========================================================
   CHECKBOX ITEM
========================================================= */

.filter_offcanvas .checkbox_item {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0px;
  padding: 8px 11px;
  border: 1px solid #e4d7d5;
  border-radius: 5px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: #2f0406;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter_offcanvas .checkbox_item:hover {
  border-color: #813034;

  color: #530e11;

  background: #fcf7f6;
}

/* =========================================================
   CUSTOM CHECKBOX
========================================================= */

.filter_offcanvas .checkbox_item input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 15px;
    height: 15px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #290204;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter_offcanvas
  .checkbox_item
  input[type="checkbox"]:checked {
  background: #530e11;
  border-color: #530e11;
}

.filter_offcanvas
  .checkbox_item
  input[type="checkbox"]:checked::after {
  content: "";

  position: absolute;

  left: 4px;
  top: 2px;

  width: 5px;
  height: 8px;

  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;

  transform: rotate(45deg);
}

.filter_offcanvas .checkbox_item:has(input:checked) {
  border-color: #530e11;

  background: #f5e9e8;

  color: #530e11;
}

.filter_offcanvas
  .checkbox_item
  input[type="checkbox"]:focus {
  outline: none;
  box-shadow: none;
}

/* =========================================================
   SEE MORE
========================================================= */

.filter_offcanvas .see_more_btn {
  display: inline-flex;
  align-items: center;

  margin-top: 14px;
  padding: 0;

  border: 0;

  background: transparent;

  color: #530e11;

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition: 0.2s ease;
}

.filter_offcanvas .see_more_btn:hover {
  color: #813034;
}

/* =========================================================
   NO SEARCH RESULT
========================================================= */

.filter_offcanvas .filter_no_result {
  width: 100%;

  padding: 8px 0;

  font-size: 13px;
  font-weight: 600;

  color: #9b8d8b;
}

/* =========================================================
   PRICE RANGE (DUAL THUMB DESIGN)
========================================================= */

.filter_offcanvas .custom_dual_slider_wrapper {
  padding: 12px 4px 5px 4px;
}

.filter_offcanvas .slider_container {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
}

/* Unfilled background track */
.filter_offcanvas .slider_rail {
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: #cccccc;
  border-radius: 4px;
  z-index: 1;
}

/* Active filled track */
.filter_offcanvas .slider_track_fill {
  position: absolute;
  height: 5px;
  background-color: #2d080a;
  border-radius: 4px;
  z-index: 2;
}

/* Overlaid input ranges */
.filter_offcanvas .range_thumb_input {
  position: absolute;
  width: 100%;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 3;
  margin: 0;
}

/* Large circular thumbs - Chrome/Safari/Edge */
.filter_offcanvas .range_thumb_input::-webkit-slider-thumb {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: #2d080a;
  border: none;
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: none;
}

/* Large circular thumbs - Firefox */
.filter_offcanvas .range_thumb_input::-moz-range-thumb {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: #2d080a;
  border: none;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: none;
}

/* Price labels directly underneath */
.filter_offcanvas .slider_labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #2d080a;
}

/* =========================================================
   OFFCANVAS FOOTER
========================================================= */

.filter_offcanvas .offcanvas-footer {
  position: absolute;

  bottom: 0;
  left: 0;

  width: 100%;

  padding: 13px 15px !important;

  background: rgba(255, 255, 255, 0.98);

  border-top: 1px solid #eadfdd !important;

  box-shadow: 0 -5px 20px rgba(45, 8, 10, 0.08);

  z-index: 110;
}

.filter_offcanvas .offcanvas-footer .row {
  margin: 0;
}

.filter_offcanvas .offcanvas-footer .Black_btn_holder,
.filter_offcanvas
  .offcanvas-footer
  .Black_btn_holder
  .Black_Btn {
  width: 100%;
}

.filter_offcanvas .other-btn .Black_btn_holder .Black_Btn {
  background: #fff !important;

  border: 1px solid #813034 !important;

  color: #530e11 !important;
}

.filter_offcanvas
  .other-btn
  .Black_btn_holder
  .Black_Btn:hover {
  background: #813034 !important;

  border-color: #813034 !important;

  color: #fff !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (min-width: 0px) and (max-width: 575px) {
  .filter_offcanvas {
    width: 88% !important;
    max-width: 380px;
  }

  /* HEADER */

  .filter_offcanvas .offcanvas-header {
    padding: 15px 16px;
  }

  .filter_offcanvas .offcanvas-title {
    font-size: 17px;
  }

  /* SEARCH */

  .filter_offcanvas .filter_search_sticky {
    padding: 10px;
  }

  .filter_offcanvas .filter_search_box {
    height: 40px;
  }

  .filter_offcanvas .filter_search_input {
    font-size: 12px;
  }

  .filter_offcanvas .filter_search_icon {
    width: 38px;

    font-size: 13px;
  }

  /* BODY */

  .filter_offcanvas .offcanvas-body {
    padding: 12px 10px 80px !important;
  }

  /* ACCORDION */

  .filter_offcanvas .accordion-button {
    padding: 15px;

    font-size: 13px;
  }

  .filter_offcanvas .accordion-body {
    padding: 4px 15px 16px;
  }

  /* CHECKBOX */

  .filter_offcanvas .checkbox_item {
    padding: 7px 9px;

    font-size: 11px;
  }

  /* FOOTER */

  .filter_offcanvas .offcanvas-footer {
    padding: 12px 10px !important;
  }
}

/* =========================================================
   SMALL TABLET
========================================================= */

@media (min-width: 576px) and (max-width: 767px) {
  .filter_offcanvas {
    width: 380px !important;
  }

  .filter_offcanvas .filter_search_sticky {
    padding: 11px 14px;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {
  .filter_offcanvas {
    width: 380px !important;
  }

  .filter_offcanvas .filter_search_sticky {
    padding: 12px 15px;
  }
}

/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {
  .filter_offcanvas {
    width: 380px !important;
  }
}

/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {
  .filter_offcanvas {
    width: 380px !important;
  }
}