/* WooCommerce Advanced Filters - Frontend Styles */

.waf-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}


.waf-show-more {
    display: none;
}

.waf-show-all .waf-show-more {
    display: block;
}



.color-filter {
    height: 26px;
    width: 26px;
    display: flex;
    border-radius: 100%;
    border: 1px solid transparent;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.waf-filter-wrap .color-filter:hover {
    border-color: #000000;
}

.color-filter:hover span {
    opacity: 1;
}

.color-filter i {
    display: block;
    height: 20px;
    width: 20px;
    border-radius: 100%;
    border: 1px solid #ccc;

}

.waf-filter-wrap .color-filter span {
    pointer-events: none;
    display: block !important;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    line-height: 14px;
    padding: 4px 6px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    background: #282828;
}

.waf-filter-wrap .color-filter span:after {
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
    content: " ";
    width: 0;
    height: 0;
    margin-left: -3px;
    border: solid transparent;
    border-width: 4px;
    border-color: transparent;
    border-top-color: #282828;
}


.category-filter ul {
    display: flex;
    flex-wrap: wrap;
}

.category-filter label input {
    display: none;
}

.category-filter .waf-show-more-btn {
    display: none;
}

.category-filter .unseclected-filter .waf-show-more {
    display: block;
}

.category-filter img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.category-filter .unseclected-filter label {
    display: flex;

    color: #000;
    flex-grow: 1;
    /* margin: 0 3px; */
    align-items: center;
    padding: .6em .75em;
    background: #fff;
    border-radius: 5px;
    transition: color .2s, background-color .2s;
    box-shadow: 0px 1px 2px 0px rgba(20, 20, 20, .08), 0px 2px 8px 0px rgba(20, 20, 20, .08);
    /* margin-bottom: 10px; */
    cursor: pointer;
    line-height: 26px;
}

/* For first span and third tag of this child */


.category-filter .unseclected-filter li {
    min-width: 25%;
}


.category-filter .count {
    color: #707070;
    font-size: 12px !important;
}

.waf-selected-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.waf-selected-filter input {
    display: none;
}

.waf-selected-filter .close-wrap span {
    display: none;
}

.waf-selected-filter .close-wrap span.amount,
.waf-selected-filter .close-wrap span.amount * {
    display: initial;
}

.category-filter label,
.waf-selected-filter label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.waf-selected-filter .close-wrap {

    display: flex;

    color: #000;
    flex-grow: 1;
    align-items: center;
    padding: 0 10px;
    position: relative;
    color: #525252;
    background: #e6e6e6;
    gap: 15px;
    margin-bottom: 10px;
    border-radius: 5px;

}

#nm-shop-sidebar .widget.widget_waf_filter_widget .nm-shop-widget-col:last-child {
    height: auto;
}

.nm-shop-sidebar-col .waf-filter-wrap {
    margin-top: 10px;
    padding: 0 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

header#nm-header {
    border-bottom: 1px solid #eee;
}

/* .widget_waf_filter_widget .waf-filter-form>.waf-filter-wrap:nth-child(2) {
    background: #f2f2f2;
    
} */

.waf-filter {
    display: none;
}

.waf-selected-filter .close-wrap span.color-filter {
    display: flex;
    width: auto;
    gap: 4px;
}

.waf-selected-filter .color-filter span {
    display: flex;
}

.sorting-filter input[type="radio"] {
    display: none;
}

.sorting-filter {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.sorting-filter .label {
    font-weight: bold;
    margin: 0 3px;
    margin-bottom: 8px;
}

.sorting-filter ul {
    display: flex;
    gap: 10px;
    padding: 5px 0;
}

.sorting-filter ul li span {
    cursor: pointer;
}

.waf-container {
    display: none;
}

.sorting-filter ul li.checked span {
    font-weight: bold;
    text-decoration: underline;
}

.waf-filter-wrap li label {
    display: flex;
    align-items: center;
    margin: 0 3px;
    margin-bottom: 8px;
    gap: 5px;
}

@media(max-width:668px) {
    .category-filter .waf-show-more-btn {
        display: block;
    }

    .category-filter ul {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(120px, 2fr));
    }

    .waf-filter-wrap li label {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .category-filter .unseclected-filter label span:nth-child(3) {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    .category-filter .unseclected-filter .waf-show-more {
        display: none;
    }



    .waf-show-all .category-filter .unseclected-filter .waf-show-more {
        display: block;
    }

    .category-filter .unseclected-filter li {
        min-width: 50%;
    }
}

@media(max-width:450px) {
    .category-filter .unseclected-filter li {
        min-width: 50%;
    }
}

@media(max-width:992px) {
    .waf-filter {
        justify-content: end;
        display: flex;
        align-items: center;
        gap: 3px;
        border-radius: 4px;
        /* padding: 7px 12px; */
        box-shadow: 0 1px 2px 0 hsla(0, 0%, 8%, .08), 0 2px 8px 0 hsla(0, 0%, 8%, .08);
        margin: .5rem .3rem .5rem 0;
        white-space: nowrap;
        width: fit-content;
        gap: .62rem;
        font-size: 1.025rem;
        padding: .257rem .88rem;
        background: white;
    }

    .waf-container {
        display: flex;
        overflow-x: scroll;
        width: 100%;
        padding-inline: 5px;
        position: relative;
        z-index: 1;
    }

    .waf-container::-webkit-scrollbar {
        display: none;

    }

    .nm-shop-sidebar {
        position: fixed;
        z-index: 9999;
        top: 0;
        left: -100%;
        opacity: 0;
        background: rgba(96, 82, 82, 0.4);
        width: 100%;
        height: 100vh;
        transition: opacity 0.1s;
    }

    .nm-shop-sidebar.active {
        left: 0;
        opacity: 1;

    }

    .nm-shop-sidebar.active>ul {
        left: 0;
        transition: left 1s;

    }

    .nm-shop-sidebar>ul {
        position: relative;
        left: -350px;
        background: #fff;
        width: 100%;
        max-width: 350px;
        height: 100%;

        overflow-y: auto;
        overflow-x: hidden;
        transition: left 1s;
    }

    .waf-filter-wrap {
        padding: 10px;
    }

}

/* ========================================================================== */

.waf-filter-wrap.waf-filter-form li, .waf-selected-filter li {list-style: none;} 

/* ==========================================================================
   WOOCOMMERCE SIDEBAR WIDGET FILTER DESIGN (SCOPED CSS)
   Target Widget Container ID: #waf_filter_widget-2
   ========================================================================== */

#waf_filter_widget-2 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.08);
  padding: 20px !important;
  margin-bottom: 30px;
  box-sizing: border-box;
}

/* Clearfixes or general block resets */
#waf_filter_widget-2 div, 
#waf_filter_widget-2 form, 
#waf_filter_widget-2 ul, 
#waf_filter_widget-2 li {
  box-sizing: border-box;
}

/* ==========================================
   1. WIDGET MAIN TITLE
   ========================================== */
#waf_filter_widget-2 .widget-title {
  font-size: 20px !important;
  font-weight: 700;
  color: #111827 !important;
  text-align: left;
  margin: 0 0 20px 0 !important;
  line-height: 1.3 !important;
  position: relative;
  letter-spacing: -0.02em;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  text-transform: none;
  font-family: inherit;
}




#waf_filter_widget-2 .widget-title {
  padding-left: 14px !important;
  border-left: 4px solid #f59e0b !important;
}



/* ==========================================
   2. FILTER GROUPS LAYOUTS
   ========================================== */
#waf_filter_widget-2 .waf-filter-wrap {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px !important;
  margin-bottom: 20px !important;
}

#waf_filter_widget-2 .waf-filter-wrap:last-of-type {
  border-bottom: none !important;
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
}

/* Filter Subheadings (e.g. Brands, Colors, Size) */
#waf_filter_widget-2 h5 {
  font-size: 15px !important;
  color: #374151 !important;
  margin: 0 0 14px 0 !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  
  
  text-transform: uppercase !important;
  

  

  
}

/* ==========================================
   3. CHECKBOX LISTS (ul & li)
   ========================================== */
#waf_filter_widget-2 ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

#waf_filter_widget-2 ul li {
  margin: 0 0 6px 0  !important;
  padding: 0 !important;
  list-style: none !important;
  display: block;
}

#waf_filter_widget-2 ul li:last-child {
  margin-bottom: 0 !important;
}

/* Align values inside labels cleanly */

#waf_filter_widget-2 ul li label {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  cursor: pointer !important;
  margin: 0 !important;
  font-weight: 400;
  color: #1f2937 !important;
  font-size: 14px !important;
  transition: color 0.2s ease;
}

#waf_filter_widget-2 ul li label:hover {
  color: #d97706;
}

#waf_filter_widget-2 ul li label:hover .waf-filter-checkbox {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px #fef3c7;
}

/* ==========================================
   4. THE CUSTOM CHECKBOX SYSTEM (Pure CSS)
   ========================================== */
#waf_filter_widget-2 .waf-filter-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  border: 1.5px solid #e5e7eb !important;
  background-color: #fafafa !important;
  border-radius: 4px !important;
  margin-left: 10px !important;
  margin-right: 0px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  outline: none !important;
  cursor: pointer !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  float: none !important; /* clear old floats */
}

/* Checked styling */
#waf_filter_widget-2 .waf-filter-checkbox:checked {
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
}

/* Checked checkmark vector shape drawing */
#waf_filter_widget-2 .waf-filter-checkbox:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 5px !important;
  top: 2px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #ffffff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

/* Checked label highlight state */
#waf_filter_widget-2 ul li label:has(.waf-filter-checkbox:checked) {
  font-weight: 600 !important; color: #f59e0b !important;
}

/* Focus state rings */
#waf_filter_widget-2 .waf-filter-checkbox:focus-visible {
  box-shadow: 0 0 0 3px #fef3c7 !important;
}

/* Out of stock/disabled behavior styles */
#waf_filter_widget-2 .waf-filter-checkbox:disabled {
  background-color: #f3f4f6 !important;
  border-color: #d1d5db !important;
  cursor: not-allowed !important;
}

#waf_filter_widget-2 ul li:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Option Count Numbers (Muted style) */


/* ==========================================
   5. RANGE SLIDER (PRICE FILTER)
   ========================================== */
#waf_filter_widget-2 .tl-slider-container {
  width: 100%;
  position: relative;
  display: block;
}

/* Range sliders input layout */
#waf_filter_widget-2 .tl-input-fields {
  display: flex !important;
  align-items: center;
  margin-bottom: 18px;
  background: none !important;
  padding: 0 !important;
  border: none !important;

  
  justify-content: space-between;
  gap: 12px;
  

  

  
}

#waf_filter_widget-2 .tl-input-fields > div {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  
  
}

#waf_filter_widget-2 .tl-input-fields label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-right: 8px;
  font-weight: 600;
  min-width: 24px;
}

/* Numerical inputs styling */
#waf_filter_widget-2 .tl-input-fields input[type="number"] {
  width: 100%;
  background-color: #fafafa !important;
  border: 1.5px solid #e5e7eb !important;
  color: #1f2937 !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  border-radius: 6px !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
  height: auto !important;
}

#waf_filter_widget-2 .tl-input-fields input[type="number"]:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px #fef3c7 !important;
}

/* The actual horizontal slider track */
#waf_filter_widget-2 .tl-slider {
  height: 4px !important;
  background-color: #e5e7eb !important;
  border-radius: 99px !important;
  position: relative !important;
  margin: 25px 8px 15px 8px !important;
}

/* Active Highlight Track bar */
#waf_filter_widget-2 .tl-track {
  position: absolute !important;
  height: 100% !important;
  background-color: #f59e0b !important;
  border-radius: 99px !important;
}

/* Range Knobs (Thumbs) */
#waf_filter_widget-2 .tl-thumb {
  width: 18px !important;
  height: 18px !important;
  background-color: #ffffff !important;
  border: 3px solid #f59e0b !important;
  border-radius: 50% !important;
  position: absolute !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  cursor: grab !important;
  z-index: 10 !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.18) !important;
  transition: transform 0.1s ease, border-color 0.2s ease !important;
}

#waf_filter_widget-2 .tl-thumb:hover {
  transform: translate(-50%, -50%) scale(1.15) !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25) !important;
}

#waf_filter_widget-2 .tl-thumb:active {
  cursor: grabbing !important;
  transform: translate(-50%, -50%) scale(1.05) !important;
}

/* Built-in tooltip boxes */
#waf_filter_widget-2 .tl-tooltip {
  position: absolute !important;
  bottom: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-10px) !important;
  background-color: #111827 !important;
  color: #ffffff !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12) !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  
  
  opacity: 0 !important;
  transform: translateX(-50%) translateY(0px) scale(0.9) !important;
  
}

#waf_filter_widget-2 .tl-thumb:hover .tl-tooltip {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(-10px) scale(1) !important;
}

/* Arrow indicator on bubble */
#waf_filter_widget-2 .tl-tooltip::after {
  content: "" !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border: 4px solid transparent !important;
  border-top-color: #111827 !important;
}

/* Clean up extra scale decorations if unused */
#waf_filter_widget-2 .tl-scale, 
#waf_filter_widget-2 .tl-active-scale,
#waf_filter_widget-2 .tl-labels {
  display: none !important;
}

/* ==========================================
   6. SHOW MORE / LESS ACCORDION TOGGLES
   ========================================== */
#waf_filter_widget-2 .waf-show-more-btn,
#waf_filter_widget-2 .waf-show-less-btn {
  display: inline-flex !important;
  align-items: center;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #f59e0b !important;
  text-decoration: none !important;
  margin-top: 12px !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
  letter-spacing: 0.02em;
}

#waf_filter_widget-2 .waf-show-more-btn::after {
  content: " ↓" !important;
  margin-left: 4px;
  font-size: 10px;
}

#waf_filter_widget-2 .waf-show-less-btn::after {
  content: " ↑" !important;
  margin-left: 4px;
  font-size: 10px;
}

#waf_filter_widget-2 .waf-show-more-btn:hover,
#waf_filter_widget-2 .waf-show-less-btn:hover {
  color: #d97706 !important;
  transform: translateY(1px);
}

/* In WordPress context, items hidden by default have .waf-show-more class.
   This rule ensures hidden items remain fully collapsed inside the sidebar. */
#waf_filter_widget-2 ul li.waf-show-more {
  display: none !important;
}

/* When the filter group is active/expanded (.waf-active), show the hidden elements! */
#waf_filter_widget-2 .waf-filter-wrap.waf-active ul li.waf-show-more {
  display: block !important;
}

/* Reveal standard Show Less button when active, and hide Show More button which has .waf-show-less-btn */
#waf_filter_widget-2 .waf-filter-wrap.waf-active .waf-show-less-btn.waf-show-more {
  display: inline-flex !important;
}

#waf_filter_widget-2 .waf-filter-wrap.waf-active .waf-show-more-btn {
  display: none !important;
}

/* When not active, make sure show-less-btn is hidden */
#waf_filter_widget-2 .waf-show-less-btn.waf-show-more {
  display: none !important;
}


.unseclected-filter {margin:0}
.unseclected-filter {margin-botton:  15px;} 