/* v2.3.67 — compact archive sold-out badge. The theme badge is reused, not duplicated. */
.es-archive-soldout-badge,
.es-archive-unavailable-badge {
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
  min-width:58px!important; height:28px!important; padding:0 10px!important;
  border-radius:999px!important; background:#a3a3a3!important; color:#fff!important;
  font-size:11px!important; font-weight:800!important; line-height:1!important;
  box-sizing:border-box!important;
}

/* v2.3.96 — polished archive sidebar + brand/price filters */
.woocommerce .widget-area,
.woocommerce-page .widget-area{direction:rtl;text-align:right}
.woocommerce .widget-area .widget,
.woocommerce-page .widget-area .widget{border:1px solid #edf0f3!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 26px rgba(15,23,42,.055)!important;padding:0!important;overflow:hidden;margin-bottom:14px!important}
.woocommerce .widget-area .widget-title,
.woocommerce-page .widget-area .widget-title{font-size:15px!important;font-weight:900!important;padding:17px 18px!important;margin:0!important;background:linear-gradient(180deg,#fafbfc,#f5f7f9)!important;border-bottom:1px solid #edf0f3!important}
.es-archive-filters{margin:0 0 14px;padding:0;border:1px solid #edf0f3;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(15,23,42,.055);overflow:hidden;color:#26313d}
.es-filter-head{display:flex;align-items:center;gap:9px;padding:16px 17px;background:linear-gradient(180deg,#fafbfc,#f5f7f9);border-bottom:1px solid #edf0f3}
.es-filter-head-icon{width:29px;height:29px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:#fff3e7;color:#ed7b14;font-size:18px;font-weight:900}
.es-filter-head strong{font-size:15px;font-weight:900;flex:1}
.es-filter-reset{font-size:11px!important;color:#8b95a1!important;text-decoration:none!important}
.es-filter-reset:hover{color:#e77816!important}
.es-filter-section{border-bottom:1px solid #f0f2f4}.es-filter-section:last-child{border-bottom:0}
.es-filter-title{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;cursor:pointer;color:#202a35;font-family:inherit;font-size:14px;font-weight:900}
.es-filter-title span{display:flex;align-items:center;gap:8px}.es-filter-title i{font-style:normal;color:#ed7b14;font-size:19px}.es-filter-title b{font-size:16px;color:#87919d;transition:transform .2s}.es-filter-title[aria-expanded=false] b{transform:rotate(180deg)}
.es-filter-body{padding:0 16px 15px}.es-filter-body.is-collapsed{display:none}
.es-filter-check{display:flex;align-items:center;gap:9px;min-height:38px;cursor:pointer;font-size:12px;color:#384351}
.es-filter-check input{position:absolute;opacity:0;pointer-events:none}.es-checkmark{width:18px;height:18px;border:1.5px solid #c8d0d9;border-radius:5px;background:#fff;box-sizing:border-box;position:relative;flex:0 0 18px;transition:.18s}
.es-filter-check input:checked + .es-checkmark{background:#ed7b14;border-color:#ed7b14}.es-filter-check input:checked + .es-checkmark:after{content:'✓';position:absolute;color:#fff;font-size:12px;font-weight:900;left:3px;top:-1px}
.es-filter-check em{font-style:normal;flex:1}.es-filter-check small{font-size:10px;color:#7f8a96;background:#f1f3f6;padding:4px 8px;border-radius:999px;min-width:18px;text-align:center}
.es-filter-empty{font-size:11px;color:#9099a3;padding:5px 0 2px}
.es-price-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}.es-price-fields label{font-size:10px;color:#7e8995;display:block}.es-price-fields input{display:block;width:100%;height:38px;margin-top:5px;padding:0 9px;border:1px solid #dfe4e9;border-radius:9px;background:#fff;box-sizing:border-box;font-family:inherit;font-size:11px;outline:0}.es-price-fields input:focus{border-color:#ed7b14;box-shadow:0 0 0 3px rgba(237,123,20,.09)}
.es-price-range{position:relative;height:29px;margin:8px 2px 1px}.es-price-range input[type=range]{position:absolute;inset:4px 0 0;width:100%;height:20px;margin:0;pointer-events:none;appearance:none;background:transparent}.es-price-range input[type=range]::-webkit-slider-runnable-track{height:3px;background:#f0a25c;border-radius:99px}.es-price-range input[type=range]::-webkit-slider-thumb{appearance:none;pointer-events:auto;width:15px;height:15px;border-radius:50%;border:3px solid #ed7b14;background:#fff;margin-top:-6px;box-shadow:0 2px 7px rgba(15,23,42,.12)}.es-price-range input[type=range]::-moz-range-track{height:3px;background:#f0a25c;border-radius:99px}.es-price-range input[type=range]::-moz-range-thumb{pointer-events:auto;width:13px;height:13px;border-radius:50%;border:3px solid #ed7b14;background:#fff}
.es-apply-price{width:100%;height:37px;border:0;border-radius:9px;background:#fff1e4;color:#df6e08;font-family:inherit;font-size:11px;font-weight:900;cursor:pointer;transition:.18s}.es-apply-price:hover{background:#ed7b14;color:#fff}
@media(max-width:900px){.es-archive-filters{margin-bottom:12px}.woocommerce .widget-area .widget,.woocommerce-page .widget-area .widget{border-radius:14px!important}}

/* v2.3.98 — archive filters replace the old sidebar widgets completely. */
.es-archive-filters{width:100%;box-sizing:border-box}
.es-filter-head{min-height:58px;box-sizing:border-box}
.es-filter-section{background:#fff}
.es-filter-title:hover{background:#fffaf5}
.es-filter-check:hover em{color:#e87812}
.es-filter-stock .es-filter-check,.es-filter-category .es-filter-check{min-height:36px}
.es-filter-category-check{border-radius:9px;padding:0 4px}
.es-filter-category-check .es-checkmark{flex-basis:18px}
.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering{float:left;margin:0 0 18px!important;display:flex;align-items:center;gap:8px;direction:rtl}
.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select{height:46px!important;min-width:205px!important;border:1px solid #e1e6eb!important;border-radius:12px!important;background:#fff!important;padding:0 14px!important;color:#27313d!important;font-family:inherit!important;font-size:12px!important;font-weight:800!important;box-shadow:0 4px 14px rgba(15,23,42,.04)!important;outline:0!important;cursor:pointer}
.woocommerce .woocommerce-ordering select:focus,
.woocommerce-page .woocommerce-ordering select:focus{border-color:#ed7b14!important;box-shadow:0 0 0 3px rgba(237,123,20,.09)!important}
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count{font-size:11px!important;color:#8b95a1!important;margin-top:13px!important}
@media(max-width:900px){
  .woocommerce .woocommerce-ordering,.woocommerce-page .woocommerce-ordering{float:none!important;width:100%;justify-content:flex-start;margin-bottom:12px!important}
  .woocommerce .woocommerce-ordering select,.woocommerce-page .woocommerce-ordering select{width:100%;min-width:0!important;height:44px!important}
  .es-archive-filters{border-radius:14px}
  .es-filter-head{padding:13px 14px}
  .es-filter-title{padding:12px 13px}
  .es-filter-body{padding:0 13px 12px}
}

/* v2.4.02 — use the theme's real right sidebar; do not force a guessed wrapper layout. */
.es-archive-filters{width:100%!important;box-sizing:border-box!important;margin:0!important;border:1px solid #e9edf1!important;border-radius:18px!important;box-shadow:0 10px 28px rgba(20,30,45,.06)!important;background:#fff!important}
.es-filter-head{padding:15px 16px!important;min-height:56px!important}
.es-filter-head strong{font-size:15px!important}
.es-filter-title{padding:14px 16px!important;font-size:13px!important}
.es-filter-body{padding:0 16px 13px!important}
.es-filter-check{min-height:35px!important;font-size:12px!important}
.es-filter-check small{min-width:20px!important;padding:3px 8px!important;background:#f0f2f5!important}
.es-price-fields{gap:10px!important}
.es-price-fields label{font-size:10px!important;color:#7b8794!important}
.es-price-fields input{height:38px!important;border-radius:9px!important;text-align:center!important}
.es-price-limits{display:flex;justify-content:space-between;direction:ltr;font-size:9px;color:#89939e;padding:0 2px 7px}
.es-apply-price{height:39px!important;background:#fff0e2!important;color:#df6d08!important;border-radius:10px!important}
.es-apply-price:hover{background:#ed7b14!important;color:#fff!important}
.es-filter-head-icon{font-size:17px!important}
.es-filter-price .es-filter-title i{font-family:inherit!important;font-style:normal!important}
#es-archive-filter-mount{display:none!important}
.es-archive-sidebar-real{display:block!important;box-sizing:border-box!important;direction:rtl!important}
@media(max-width:900px){.es-archive-sidebar-real{width:100%!important;min-width:0!important}.es-archive-filters{border-radius:14px!important}.es-filter-head{padding:13px 14px!important}.es-filter-title{padding:12px 13px!important}.es-filter-body{padding:0 13px 12px!important}}

/* v2.4.03 — prevent the theme's legacy archive filters from flashing before our sidebar mounts. */
@media(min-width:769px){
  body.woocommerce.archive .widget-area,
  body.woocommerce-page.archive .widget-area,
  body.tax-product_cat .widget-area,
  body.tax-product_tag .widget-area,
  body.tax-product_brand .widget-area,
  body.tax-pa_brand .widget-area{
    visibility:hidden!important;
    opacity:0!important;
    transition:opacity .22s ease,visibility 0s linear .22s!important;
  }
  body.woocommerce.archive .widget-area.es-archive-sidebar-real,
  body.woocommerce-page.archive .widget-area.es-archive-sidebar-real,
  body.tax-product_cat .widget-area.es-archive-sidebar-real,
  body.tax-product_tag .widget-area.es-archive-sidebar-real,
  body.tax-product_brand .widget-area.es-archive-sidebar-real,
  body.tax-pa_brand .widget-area.es-archive-sidebar-real{
    visibility:visible!important;
    opacity:1!important;
    transition:opacity .24s ease!important;
  }
}

/* Smooth accordion: animate height and opacity instead of display:none. */
.es-archive-sidebar .es-filter-body.es-filter-animated-body{
  display:block!important;
  overflow:hidden!important;
  max-height:2000px;
  opacity:1;
  transition:max-height .38s cubic-bezier(.22,1,.36,1),opacity .24s ease,padding-top .32s ease,padding-bottom .32s ease!important;
}
.es-archive-sidebar .es-filter-body.es-filter-animated-body.is-collapsed{
  display:block!important;
  max-height:0!important;
  opacity:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
.es-archive-sidebar .es-filter-title b{
  transition:transform .38s cubic-bezier(.22,1,.36,1),color .22s ease!important;
}
.es-archive-sidebar .es-filter-title[aria-expanded="false"] b{transform:rotate(180deg)!important;}

/* v2.4.05 — real WooCommerce category tree + تومان label cleanup. */
.es-category-tree{padding-top:2px!important}
.es-category-node{position:relative}
.es-category-row{display:flex;align-items:center;gap:4px;min-height:36px}
.es-category-row .es-filter-check{flex:1;min-width:0}
.es-category-toggle{width:27px;height:27px;flex:0 0 27px;border:1px solid #edf0f3;background:#fafbfc;color:#8a95a1;border-radius:8px;cursor:pointer;font-family:inherit;font-size:14px;line-height:1;transition:transform .28s ease,background .2s ease,color .2s ease,border-color .2s ease}
.es-category-toggle:hover{background:#fff3e7;color:#ed7b14;border-color:#f4c08f}
.es-category-toggle[aria-expanded="false"]{transform:rotate(90deg)}
.es-category-children{overflow:hidden;max-height:2000px;opacity:1;padding-right:18px;border-right:1px solid #f0f2f4;margin-right:7px;transition:max-height .36s cubic-bezier(.22,1,.36,1),opacity .24s ease}
.es-category-children:not(.es-category-children-open){max-height:0;opacity:0}
.es-category-depth-0>.es-category-row .es-filter-check{font-weight:800}
.es-category-depth-1>.es-category-row .es-filter-check{font-size:11px!important}

/* v2.4.06 — archive accordion initial state: price open; category section only on category pages; all category branches closed. */
.es-filter-section.es-filter-stock .es-filter-body.is-collapsed,.es-filter-section.es-filter-brand .es-filter-body.is-collapsed{display:block!important;max-height:0!important;opacity:0!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden!important}
.es-category-children{max-height:0!important;opacity:0!important}
.es-archive-sidebar .es-category-children.es-category-children-open{max-height:2000px!important;opacity:1!important}

/* v2.4.09 — deep category path: only ancestors of current category open; no forced max-height. */
.es-archive-sidebar .es-category-children{box-sizing:border-box!important;}
.es-archive-sidebar .es-category-children{max-height:0;opacity:0;}
.es-archive-sidebar .es-category-children.es-category-children-open{opacity:1;}

/* v2.4.11 — current category path visibility and selection */
.es-archive-sidebar .es-category-node[data-current-node="1"] > .es-category-row .es-filter-check{background:#fff3e7!important;border-radius:9px!important;color:#df6d08!important;font-weight:900!important}
.es-archive-sidebar .es-category-node[data-current-node="1"] > .es-category-row .es-checkmark{border-color:#ed7b14!important}
.es-archive-sidebar .es-category-node[data-current-ancestor="1"] > .es-category-row .es-filter-check em{font-weight:800!important}


/* v2.4.15-fix — do not trap the page inside the filter panel.
   The sidebar grows naturally with its opened branches and the browser/page
   handles vertical mouse-wheel scrolling. No visible scrollbar is rendered. */
.es-archive-sidebar,
.es-archive-sidebar-real,
.es-archive-sidebar .es-archive-filters{
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
}
.es-archive-sidebar .es-archive-filters{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.es-archive-sidebar .es-archive-filters::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
/* Never clip the filter because an opened category makes the sidebar taller. */
.es-archive-sidebar-real .widget,
.es-archive-sidebar-real .widget-area,
.es-archive-sidebar .widget{
  overflow:visible!important;
}

/* v2.4.13-fix — only the real category path is checked; siblings stay unchecked. */
.es-archive-sidebar .es-category-node[data-current-node="1"] > .es-category-row .es-filter-check,
.es-archive-sidebar .es-category-node[data-current-ancestor="1"] > .es-category-row .es-filter-check{
  font-weight:900!important;
}


/* v2.4.34 — internal category-list scrolling only. */
@media(min-width:769px){
  .es-archive-sidebar .es-filter-scroll-viewport,
  .es-archive-sidebar-real .es-filter-scroll-viewport{
    height:auto!important;
    min-height:0!important;
    max-height:720px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
  }
  .es-archive-sidebar .es-filter-scroll-viewport::-webkit-scrollbar,
  .es-archive-sidebar-real .es-filter-scroll-viewport::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
  .es-archive-sidebar .es-category-tree,
  .es-archive-sidebar-real .es-category-tree{
    max-height:none!important;
    overflow:visible!important;
  }
}

/* v2.4.33 — CLEAN ARCHIVE SCROLL ARCHITECTURE.
   The document is always scrollable. The dedicated filter viewport may scroll
   internally when the pointer is over its contents. No page-lock rules. */
@media(min-width:769px){
  html.woocommerce, html.woocommerce-page,
  body.woocommerce, body.woocommerce-page{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
  }
  body.woocommerce.archive .site,
  body.woocommerce-page.archive .site,
  body.woocommerce.archive .site-content,
  body.woocommerce-page.archive .site-content,
  body.woocommerce.archive .content-area,
  body.woocommerce-page.archive .content-area,
  body.woocommerce.archive main,
  body.woocommerce-page.archive main,
  body.woocommerce.archive .site-main,
  body.woocommerce-page.archive .site-main,
  body.woocommerce.archive .es-archive-layout-host,
  body.woocommerce-page.archive .es-archive-layout-host,
  body.woocommerce.archive .es-archive-sidebar,
  body.woocommerce-page.archive .es-archive-sidebar,
  body.woocommerce.archive .es-archive-sidebar-real,
  body.woocommerce-page.archive .es-archive-sidebar-real{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .es-archive-sidebar-real, .es-archive-sidebar{
    position:relative!important;
    align-self:flex-start!important;
  }
  .es-archive-sidebar .es-archive-filters,
  .es-archive-sidebar-real .es-archive-filters{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .es-archive-sidebar .es-filter-scroll-viewport,
  .es-archive-sidebar-real .es-filter-scroll-viewport{
    display:block!important;
    width:100%!important;
    height:700px!important;
    min-height:700px!important;
    max-height:700px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
    box-sizing:border-box!important;
  }
  .es-archive-sidebar .es-filter-scroll-viewport::-webkit-scrollbar,
  .es-archive-sidebar-real .es-filter-scroll-viewport::-webkit-scrollbar{
    width:0!important;height:0!important;display:none!important;
  }
}
@media(max-width:768px){
  .es-filter-scroll-viewport{height:auto!important;max-height:none!important;overflow:visible!important;}
}

/* v2.4.31 — visual polish only. Category/filter logic and current behavior are preserved. */
.es-archive-sidebar-real .es-archive-filters,
.es-archive-sidebar .es-archive-filters{
  --es-orange:#f47712;
  --es-orange-soft:#fff4e8;
  --es-text:#202733;
  --es-muted:#7d8793;
  --es-line:#edf0f3;
  background:#fff!important;
  border:1px solid #e8edf1!important;
  border-radius:20px!important;
  box-shadow:0 12px 34px rgba(20,28,40,.075)!important;
}
.es-archive-sidebar-real .es-filter-head,
.es-archive-sidebar .es-filter-head{
  min-height:62px!important;
  padding:15px 18px!important;
  background:linear-gradient(180deg,#fff,#fafbfc)!important;
  border-bottom:1px solid var(--es-line)!important;
}
.es-archive-sidebar-real .es-filter-head-icon,
.es-archive-sidebar .es-filter-head-icon{
  width:34px!important;height:34px!important;
  border-radius:11px!important;
  background:var(--es-orange-soft)!important;
  color:var(--es-orange)!important;
  box-shadow:inset 0 0 0 1px rgba(244,119,18,.08)!important;
}
.es-archive-sidebar-real .es-filter-head strong,
.es-archive-sidebar .es-filter-head strong{
  font-size:16px!important;color:var(--es-text)!important;letter-spacing:-.2px!important;
}
.es-archive-sidebar-real .es-filter-reset,
.es-archive-sidebar .es-filter-reset{
  padding:6px 9px!important;border-radius:8px!important;background:#f7f8fa!important;
  color:#8b949e!important;font-weight:700!important;transition:.2s ease!important;
}
.es-archive-sidebar-real .es-filter-reset:hover,
.es-archive-sidebar .es-filter-reset:hover{background:var(--es-orange-soft)!important;color:var(--es-orange)!important}

.es-archive-sidebar-real .es-filter-section,
.es-archive-sidebar .es-filter-section{
  border-bottom:1px solid #f0f2f4!important;
}
.es-archive-sidebar-real .es-filter-section:last-child,
.es-archive-sidebar .es-filter-section:last-child{border-bottom:0!important}
.es-archive-sidebar-real .es-filter-title,
.es-archive-sidebar .es-filter-title{
  min-height:52px!important;
  padding:13px 17px!important;
  background:#fff!important;
  color:var(--es-text)!important;
  font-size:13px!important;
  transition:background .2s ease,color .2s ease!important;
}
.es-archive-sidebar-real .es-filter-title:hover,
.es-archive-sidebar .es-filter-title:hover{background:#fffaf5!important}
.es-archive-sidebar-real .es-filter-title span,
.es-archive-sidebar .es-filter-title span{gap:9px!important}
.es-archive-sidebar-real .es-filter-title i,
.es-archive-sidebar .es-filter-title i{
  width:27px!important;height:27px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:8px!important;background:var(--es-orange-soft)!important;color:var(--es-orange)!important;
  font-size:15px!important;
}
.es-archive-sidebar-real .es-filter-title b,
.es-archive-sidebar .es-filter-title b{color:#98a1aa!important;font-size:14px!important}

.es-archive-sidebar-real .es-filter-body,
.es-archive-sidebar .es-filter-body{padding:5px 16px 14px!important}
.es-archive-sidebar-real .es-filter-check,
.es-archive-sidebar .es-filter-check{
  min-height:42px!important;
  padding:4px 7px!important;
  border-radius:11px!important;
  color:#3b4652!important;
  transition:background .18s ease,color .18s ease,transform .18s ease!important;
}
.es-archive-sidebar-real .es-filter-check:hover,
.es-archive-sidebar .es-filter-check:hover{background:#fff8f1!important;color:#e86f0b!important}
.es-archive-sidebar-real .es-filter-check em,
.es-archive-sidebar .es-filter-check em{font-size:12px!important;font-weight:600!important;line-height:1.7!important}
.es-archive-sidebar-real .es-filter-check small,
.es-archive-sidebar .es-filter-check small{
  min-width:28px!important;height:24px!important;box-sizing:border-box!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:0 7px!important;border:1px solid #edf0f3!important;
  background:#f7f8fa!important;color:#7d8792!important;font-size:10px!important;font-weight:800!important;
}
.es-archive-sidebar-real .es-filter-check input:checked + .es-checkmark + em,
.es-archive-sidebar .es-filter-check input:checked + .es-checkmark + em{color:#e96f0b!important;font-weight:800!important}
.es-archive-sidebar-real .es-filter-check input:checked ~ small,
.es-archive-sidebar .es-filter-check input:checked ~ small{background:var(--es-orange-soft)!important;border-color:#ffd8b5!important;color:#e96f0b!important}
.es-archive-sidebar-real .es-checkmark,
.es-archive-sidebar .es-checkmark{
  width:20px!important;height:20px!important;flex-basis:20px!important;border-radius:6px!important;border:1.5px solid #cbd3db!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
}
.es-archive-sidebar-real .es-filter-check input:checked + .es-checkmark,
.es-archive-sidebar .es-filter-check input:checked + .es-checkmark{
  background:var(--es-orange)!important;border-color:var(--es-orange)!important;box-shadow:0 4px 10px rgba(244,119,18,.22)!important;
}

.es-archive-sidebar-real .es-category-tree,
.es-archive-sidebar .es-category-tree{padding-top:4px!important}
.es-archive-sidebar-real .es-category-row,
.es-archive-sidebar .es-category-row{min-height:43px!important;gap:5px!important}
.es-archive-sidebar-real .es-category-row .es-filter-check,
.es-archive-sidebar .es-category-row .es-filter-check{margin:0!important}
.es-archive-sidebar-real .es-category-toggle,
.es-archive-sidebar .es-category-toggle{
  width:25px!important;height:25px!important;flex:0 0 25px!important;
  border:0!important;background:#f6f7f8!important;border-radius:7px!important;
  color:#8b949d!important;font-size:13px!important;
}
.es-archive-sidebar-real .es-category-toggle:hover,
.es-archive-sidebar .es-category-toggle:hover{background:var(--es-orange-soft)!important;color:var(--es-orange)!important}
.es-archive-sidebar-real .es-category-children,
.es-archive-sidebar .es-category-children{
  padding-right:17px!important;margin-right:7px!important;border-right:1px solid #eceff2!important;
}
.es-archive-sidebar-real .es-category-depth-0>.es-category-row .es-filter-check em,
.es-archive-sidebar .es-category-depth-0>.es-category-row .es-filter-check em{font-weight:800!important}
.es-archive-sidebar-real .es-category-depth-1>.es-category-row .es-filter-check em,
.es-archive-sidebar .es-category-depth-1>.es-category-row .es-filter-check em{font-size:11.5px!important}
.es-archive-sidebar-real .es-category-node[data-current-ancestor="1"]>.es-category-row .es-filter-check,
.es-archive-sidebar .es-category-node[data-current-ancestor="1"]>.es-category-row .es-filter-check{
  background:#fafbfc!important;
}
.es-archive-sidebar-real .es-category-node[data-current-node="1"]>.es-category-row .es-filter-check,
.es-archive-sidebar .es-category-node[data-current-node="1"]>.es-category-row .es-filter-check{
  background:linear-gradient(90deg,#fff2e5,#fff8f2)!important;
  box-shadow:inset 3px 0 0 var(--es-orange)!important;
}

.es-archive-sidebar-real .es-price-fields input,
.es-archive-sidebar .es-price-fields input{
  height:42px!important;border-radius:11px!important;background:#fbfcfd!important;border-color:#e1e6eb!important;font-weight:700!important;
}
.es-archive-sidebar-real .es-price-fields input:focus,
.es-archive-sidebar .es-price-fields input:focus{background:#fff!important;border-color:#f2a15f!important;box-shadow:0 0 0 3px rgba(244,119,18,.08)!important}
.es-archive-sidebar-real .es-price-limits,
.es-archive-sidebar .es-price-limits{color:#98a1aa!important}
.es-archive-sidebar-real .es-apply-price,
.es-archive-sidebar .es-apply-price{
  height:44px!important;margin-top:13px!important;border-radius:11px!important;
  background:linear-gradient(180deg,#ff8a25,#f47712)!important;color:#fff!important;
  box-shadow:0 7px 16px rgba(244,119,18,.18)!important;font-size:12px!important;
}
.es-archive-sidebar-real .es-apply-price:hover,
.es-archive-sidebar .es-apply-price:hover{transform:translateY(-1px)!important;box-shadow:0 9px 19px rgba(244,119,18,.24)!important}

@media(max-width:768px){
  .es-archive-sidebar-real .es-archive-filters,.es-archive-sidebar .es-archive-filters{border-radius:16px!important}
  .es-archive-sidebar-real .es-filter-head,.es-archive-sidebar .es-filter-head{padding:13px 14px!important}
}

/* v2.4.34-final: one authoritative internal scroll container; never lock document. */
@media(min-width:769px){
  html.woocommerce, html.woocommerce-page, body.woocommerce, body.woocommerce-page{overflow-y:auto!important;height:auto!important;max-height:none!important;}
  .es-archive-sidebar .es-filter-scroll-viewport, .es-archive-sidebar-real .es-filter-scroll-viewport{
    height:720px!important; min-height:720px!important; max-height:720px!important;
    overflow-y:auto!important; overflow-x:hidden!important;
    scrollbar-width:none!important; -ms-overflow-style:none!important; overscroll-behavior:contain!important;
  }
  .es-archive-sidebar .es-filter-scroll-viewport::-webkit-scrollbar, .es-archive-sidebar-real .es-filter-scroll-viewport::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;}
}


/* v2.4.36 — clear orange state for opened filter sections. */
.es-archive-sidebar-real .es-filter-title[aria-expanded="true"],
.es-archive-sidebar .es-filter-title[aria-expanded="true"]{
  background:linear-gradient(90deg,#fff4e8,#fffaf6)!important;
  color:var(--es-orange)!important;
  box-shadow:inset 3px 0 0 var(--es-orange)!important;
}
.es-archive-sidebar-real .es-filter-title[aria-expanded="true"] i,
.es-archive-sidebar .es-filter-title[aria-expanded="true"] i{
  background:var(--es-orange)!important;
  color:#fff!important;
}
.es-archive-sidebar-real .es-filter-title[aria-expanded="true"] b,
.es-archive-sidebar .es-filter-title[aria-expanded="true"] b{
  color:var(--es-orange)!important;
}
/* Category branch toggle: orange while that branch is open. */
.es-archive-sidebar-real .es-category-toggle[aria-expanded="true"],
.es-archive-sidebar .es-category-toggle[aria-expanded="true"]{
  background:var(--es-orange)!important;
  color:#fff!important;
  box-shadow:0 3px 8px rgba(244,119,18,.20)!important;
}


/* v2.4.44 — compact price sorting links replace the old min/max range. */
.es-archive-sidebar-real .es-price-sort-links,
.es-archive-sidebar .es-price-sort-links{
  display:flex!important; flex-direction:column!important; gap:9px!important; padding:7px 0 2px!important;
}
.es-archive-sidebar-real .es-price-sort-link,
.es-archive-sidebar .es-price-sort-link{
  display:flex!important; align-items:center!important; justify-content:space-between!important;
  min-height:46px!important; box-sizing:border-box!important; padding:0 13px!important;
  border:1px solid #e4e8ed!important; border-radius:11px!important;
  background:#fbfcfd!important; color:#3b4652!important; text-decoration:none!important;
  font-size:12px!important; font-weight:800!important;
  transition:all .18s ease!important;
}
.es-archive-sidebar-real .es-price-sort-link span,
.es-archive-sidebar .es-price-sort-link span{
  color:#929ba5!important; font-size:10px!important; font-weight:700!important;
}
.es-archive-sidebar-real .es-price-sort-link:hover,
.es-archive-sidebar .es-price-sort-link:hover,
.es-archive-sidebar-real .es-price-sort-link.is-active,
.es-archive-sidebar .es-price-sort-link.is-active{
  background:linear-gradient(90deg,#fff4e8,#fffaf6)!important;
  border-color:#f5b477!important; color:var(--es-orange)!important;
  box-shadow:0 5px 13px rgba(244,119,18,.10)!important; transform:translateY(-1px)!important;
}
.es-archive-sidebar-real .es-price-sort-link.is-active span,
.es-archive-sidebar .es-price-sort-link.is-active span{color:var(--es-orange)!important}

/* v2.4.63 — mobile drawer presentation only; desktop styling remains the v2.4.51 reference. */
@media(max-width:768px){
  .es-mobile-filter-drawer-active{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    max-height:100vh!important;
    height:100vh!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    overscroll-behavior:contain!important;
  }
  .es-mobile-filter-drawer-active > .es-mobile-filter-panel{
    width:100%!important;
    box-sizing:border-box!important;
    height:auto!important;
    min-height:100%!important;
    margin:0!important;
    overflow:visible!important;
    background:#fff!important;
  }
  .es-mobile-filter-drawer-active > .es-mobile-filter-panel .es-filter-scroll-viewport{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    touch-action:auto!important;
  }
  .es-mobile-filter-drawer-active .es-archive-filters{
    width:100%!important;
    margin:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .es-mobile-filter-drawer-active .es-filter-head{
    position:sticky;
    top:0;
    z-index:3;
    padding:13px 14px!important;
  }
}
@media(min-width:769px){
  html.woocommerce,html.woocommerce-page,body.woocommerce,body.woocommerce-page{overflow-y:auto!important;height:auto!important;max-height:none!important}
}

/* v2.4.65 — mobile accordion height fix. The opened section must reserve its
   real content height so category items never slide underneath Brand/Price. */
@media(max-width:768px){
  .es-mobile-filter-drawer-active .es-filter-body.es-filter-animated-body{
    display:block!important;
    overflow:hidden!important;
    max-height:0;
    opacity:1;
    transition:max-height .38s cubic-bezier(.22,1,.36,1),opacity .24s ease,padding-top .32s ease,padding-bottom .32s ease!important;
    box-sizing:border-box!important;
  }
  .es-mobile-filter-drawer-active .es-filter-body.es-filter-animated-body:not(.is-collapsed){
    max-height:5000px;
    opacity:1!important;
  }
  .es-mobile-filter-drawer-active .es-filter-body.es-filter-animated-body.is-collapsed{
    display:block!important;
    max-height:0!important;
    opacity:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
    overflow:hidden!important;
  }
  .es-mobile-filter-drawer-active .es-filter-section{
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .es-mobile-filter-drawer-active .es-category-tree,
  .es-mobile-filter-drawer-active .es-category-node,
  .es-mobile-filter-drawer-active .es-category-row{
    height:auto!important;
    min-height:0;
  }
}
/* v2.4.66 — mobile category accordion: let the category body grow naturally.
   Prevent opened category items from being clipped or painted underneath the
   following Brand/Price sections. Other filter sections keep their existing UI. */
@media(max-width:768px){
  .es-mobile-filter-drawer-active .es-filter-section.es-filter-category .es-filter-body.es-filter-animated-body:not(.is-collapsed){
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    opacity:1!important;
  }
  .es-mobile-filter-drawer-active .es-filter-section.es-filter-category .es-filter-body.es-filter-animated-body:not(.is-collapsed) .es-category-children{
    overflow:hidden!important;
  }
}

/* v2.4.67 — price sorting uses clear button-style actions. */
/* v2.4.69 — mobile main filter accordion: one open section at a time. */
.es-archive-sidebar-real .es-price-sort-links,
.es-archive-sidebar .es-price-sort-links{
  display:grid!important; grid-template-columns:1fr 1fr!important; gap:8px!important; padding:7px 0 2px!important;
}
.es-archive-sidebar-real .es-price-sort-link,
.es-archive-sidebar .es-price-sort-link{
  justify-content:center!important; text-align:center!important; min-height:44px!important;
  padding:0 8px!important; border-radius:10px!important; font-size:12px!important;
}
.es-archive-sidebar-real .es-price-sort-link span,
.es-archive-sidebar .es-price-sort-link span{display:none!important}
/* v2.4.70 — desktop price sort buttons: give the two actions enough room to stay fully visible. */
@media(min-width:769px){
  .es-archive-sidebar-real .es-filter-section.es-filter-price .es-filter-body,
  .es-archive-sidebar .es-filter-section.es-filter-price .es-filter-body{
    padding:9px 18px 18px!important;
  }
  .es-archive-sidebar-real .es-price-sort-links,
  .es-archive-sidebar .es-price-sort-links{
    width:100%!important;
    box-sizing:border-box!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
    padding:4px 0 2px!important;
  }
  .es-archive-sidebar-real .es-price-sort-link,
  .es-archive-sidebar .es-price-sort-link{
    min-width:0!important;
    min-height:50px!important;
    padding:0 10px!important;
    font-size:13px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}
@media(max-width:768px){
  .es-mobile-filter-drawer-active .es-price-sort-links{
    display:grid!important; grid-template-columns:1fr 1fr!important; gap:8px!important; padding:8px 0 3px!important;
  }
  .es-mobile-filter-drawer-active .es-price-sort-link{
    min-height:46px!important; justify-content:center!important; text-align:center!important; padding:0 8px!important; border-radius:10px!important; font-size:12px!important;
  }
  .es-mobile-filter-drawer-active .es-price-sort-link span{display:none!important}
}
