/* ================================================================
   aaryans-filter-redesign.css  v2.29
   Filter Sidebar Redesign — Desktop sticky sidebar + Mobile drawer

   Strategy: CSS transforms on existing Shoptet elements.
   No duplicate IDs. All overrides via higher specificity selectors.

   Overrides from AGENCY_MASTER_STYLES.css:
   - #filters horizontal flex layout (13%/87% split) → vertical block
   - input[type=checkbox]+label::before border-radius:50px → square
   - #filters background:aliceblue → white card
   - .filter-section-button (toggle) → hidden, replaced by JS pill

   Upload: /usr/documents/upload/CSSkodyCLAUDE/aaryans-filter-redesign.css
   Requires: aaryans-filter-redesign.js v2.29
   ================================================================ */

:root {
  --aar-f-primary:      #0076A0;
  --aar-f-primary-dark: #005878;
  --aar-f-primary-lt:   #65A8DC;
  --aar-f-gold:         #EBB21C;
  --aar-f-dark:         #2E2D2C;
  --aar-f-gray-mid:     #6b6b6b;
  --aar-f-gray-light:   #e8eef2;
  --aar-f-white:        #ffffff;
  --aar-f-pill-bg:      #e8f4fb;
  --aar-f-border:       #d0dde6;
  --aar-f-sidebar-w:    268px;
  --aar-f-r-sm:         6px;
  --aar-f-r-md:         10px;
  --aar-f-r-lg:         14px;
  --aar-f-r-pill:       50px;
  --aar-f-shadow:       0 1px 6px rgba(0,0,0,0.08);
  --aar-f-trans:        0.17s ease;
}

/* LAYOUT */
@media (min-width: 768px) {
  body.type-category .category-content-wrapper {
    display: flex !important; flex-direction: row !important;
    align-items: flex-start !important; gap: 20px !important;
  }
  body.type-category #filters-wrapper {
    width: var(--aar-f-sidebar-w) !important; flex-shrink: 0 !important;
    overflow-x: hidden !important;
    transition: width var(--aar-f-trans), opacity var(--aar-f-trans) !important;
  }
  body.type-category #aar-products-col { flex: 1 1 0 !important; min-width: 0 !important; overflow-x: hidden !important; display: flex !important; flex-direction: column !important; }
  /* .listSorting = the sort bar (order:0 = top). .listingControls = pagination (order:3 = bottom). */
  body.type-category #aar-products-col .listSorting { order: 0 !important; display: flex !important; align-items: center !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 8px !important; padding: 4px 0 10px !important; box-sizing: border-box !important; }
  /* Force count element visible — agency CSS may hide it */
  body.type-category #aar-products-col .listItemsTotal,
  body.type-category #aar-products-col .listSorting .listItemsTotal { display: inline-block !important; font-size: 12px !important; color: var(--aar-f-gray-mid) !important; white-space: nowrap !important; }
  body.type-category #aar-products-col #aar-pills-desktop { order: 1 !important; }
  body.type-category #aar-products-col #products { order: 2 !important; }
  body.type-category #aar-products-col .listingControls { order: 3 !important; }
  body.type-category #filters-wrapper.aar-collapsed {
    width: 0 !important; min-width: 0 !important; max-width: 0 !important;
    flex: 0 0 0 !important; opacity: 0 !important; overflow: hidden !important;
    pointer-events: none !important; padding: 0 !important; margin-right: 0 !important;
  }
  body.type-category #filters .filter-sections,
  body.type-category #filters #category-filter-hover { display: block !important; }
  body.type-category #filters { display: block !important; }
}
body.type-category #category-header { display: none !important; }
@media (min-width: 768px) and (max-width: 1023px) {
  body.type-category .category-content-wrapper { gap: 14px !important; }
  body.type-category #filters-wrapper { width: 220px !important; }
}

body.type-category a.unveil-button { display: none !important; }
body.type-category #filters > #price-filter-form { display: none !important; }

/* OVERRIDE AGENCY HORIZONTAL LAYOUT */
body.type-category #filters .param-filter-top,
body.type-category #filters #manufacturer-filter,
body.type-category #filters .filter-section-parametric,
body.type-category #filters #price-filter { display: block !important; flex-wrap: unset !important; }
body.type-category #filters .param-filter-top h4,
body.type-category #filters #manufacturer-filter > h4,
body.type-category #filters .filter-section-parametric > h4,
body.type-category #filters #price-filter h4 { flex: unset !important; width: 100% !important; margin: 0 0 9px 0 !important; text-align: left !important; }
body.type-category #filters #manufacturer-filter > form,
body.type-category #filters .filter-section-parametric > form,
body.type-category #filters #price-filter .slider-wrapper { flex: unset !important; width: 100% !important; padding: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; border: none !important; }
body.type-category #filters fieldset,
body.type-category #filters .filter-section fieldset div { min-width: unset !important; max-width: unset !important; border: none !important; padding: 0 !important; margin: 0 !important; }
body.type-category #filters-wrapper #filters .filter-section:not(.filter-section-boolean):not(.filter-section-parametric-id-182) fieldset { display: block !important; flex-wrap: unset !important; }
body.type-category #filters-wrapper #filters .filter-section:not(.filter-section-boolean):not(.filter-section-parametric-id-182) fieldset > div { display: flex !important; align-items: center !important; width: 100% !important; box-sizing: border-box !important; }

/* PANEL CARD */
body.type-category .filters-wrapper { margin-bottom: 0 !important; }
body.type-category #filters {
  background: var(--aar-f-white) !important;
  border: 1.5px solid var(--aar-f-border) !important;
  border-radius: var(--aar-f-r-lg) !important;
  box-shadow: var(--aar-f-shadow) !important;
  overflow: hidden !important; margin-bottom: 0 !important;
  font-family: Bahnschrift, 'Segoe UI', sans-serif !important;
}
body.type-category #filters .filter-sections { padding: 0 14px !important; background: transparent !important; }
@media (max-width: 767px) {
  body.type-category #filters { border: none !important; border-radius: 0 !important; box-shadow: none !important; display: flex !important; flex-direction: column !important; }
}

/* PANEL HEADER */
#aar-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--aar-f-border); background: #fafcfd; }
#aar-panel-header .aar-panel-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--aar-f-primary); text-transform: uppercase; letter-spacing: 0.4px; }
#aar-panel-header .aar-panel-actions { display: flex; align-items: center; gap: 8px; }
.aar-btn-clear { font-size: 11px; color: var(--aar-f-gray-mid); border: 1px solid var(--aar-f-border); border-radius: var(--aar-f-r-pill); padding: 3px 10px; cursor: pointer; background: transparent; font-family: inherit; transition: all var(--aar-f-trans); }
.aar-btn-clear:hover { border-color: var(--aar-f-primary); color: var(--aar-f-primary); }
.aar-btn-close { display: none; align-items: center; justify-content: center; color: var(--aar-f-gray-mid); padding: 2px; cursor: pointer; background: transparent; border: none; line-height: 1; }
@media (max-width: 767px) { .aar-btn-close { display: flex; } }

/* ACTIVE PILLS BAR */
#aar-pills-bar { padding: 8px 14px; border-bottom: 1px solid var(--aar-f-border); background: var(--aar-f-pill-bg); display: none; }
#aar-pills-bar.on { display: block; }
.aar-pills-label { font-size: 10px; font-weight: 700; color: var(--aar-f-gray-mid); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.aar-pills-list { display: flex; flex-wrap: wrap; gap: 5px; }
/* No pill animation — updatePills re-renders on every AJAX cycle so any keyframes animation fires repeatedly and causes constant flicker */
.aar-pill { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--aar-f-primary-lt); border-radius: var(--aar-f-r-pill); padding: 3px 7px 3px 9px; font-size: 12px; color: var(--aar-f-primary); font-weight: 600; }
.aar-pill-x { background: var(--aar-f-primary-lt); color: #fff; width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; cursor: pointer; border: none; transition: background var(--aar-f-trans); }
.aar-pill-x:hover { background: var(--aar-f-primary); }

/* FILTER SECTIONS */
body.type-category #filters .filter-section { border-bottom: 1px solid var(--aar-f-border) !important; padding: 12px 0 10px !important; }
body.type-category #filters .filter-section:last-child { border-bottom: none !important; }
body.type-category #filters h4 { font-size: 12px !important; font-weight: 700 !important; color: var(--aar-f-primary) !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; margin: 0 0 9px 0 !important; display: flex !important; align-items: center !important; gap: 4px !important; }
body.type-category #filters h4::before { width: 18px !important; height: 18px !important; min-width: 18px !important; margin-right: 0 !important; margin-top: 0 !important; flex-shrink: 0 !important; }
body.type-category #filters #category-filter-hover .filter-section:last-child { display: none !important; }
body.type-category .filter-section.filter-section-button { display: none !important; }

/* KATEGORIE CHIPS */
body.type-category #filters-wrapper #filters .filter-section-boolean fieldset { display: flex !important; flex-wrap: wrap !important; gap: 5px !important; }
body.type-category #filters-wrapper #filters .filter-section-boolean fieldset div { display: contents !important; }
body.type-category #filters-wrapper #filters .filter-section-boolean input[type="checkbox"] { display: none !important; }
body.type-category .filter-section-boolean label.filter-label::before,
body.type-category .filter-section-boolean label.filter-label::after { display: none !important; }
body.type-category #filters-wrapper #filters .filter-section-boolean label.filter-label {
  display: inline-flex !important; align-items: center !important; width: auto !important; max-width: none !important; flex-shrink: 0 !important; padding: 4px 9px !important;
  border-radius: var(--aar-f-r-pill) !important; font-size: 11px !important; font-weight: 600 !important;
  border: 1.5px solid var(--aar-f-border) !important; background: #fff !important; color: var(--aar-f-dark) !important;
  cursor: pointer !important; transition: all var(--aar-f-trans) !important; white-space: nowrap !important;
  min-height: unset !important; margin: 0 !important; user-select: none !important;
}
body.type-category #filters-wrapper #filters .filter-section-boolean label.filter-label:hover { border-color: var(--aar-f-primary) !important; color: var(--aar-f-primary) !important; }
body.type-category #filters-wrapper #filters .filter-section-boolean input[type="checkbox"]:checked + label.filter-label { background: var(--aar-f-primary) !important; border-color: var(--aar-f-primary) !important; color: #fff !important; width: auto !important; }
body.type-category #filters-wrapper #filters .filter-section-boolean label .filter-count { display: none !important; }
body.type-category #filters-wrapper #filters .filter-section-boolean label.filter-label.disabled { opacity: 0.38 !important; pointer-events: none !important; }

/* CUSTOM CHECKBOXES */
body.type-category #filters .filter-section-manufacturer input[type="checkbox"],
body.type-category #filters .filter-section-parametric:not(.filter-section-parametric-id-182) input[type="checkbox"] {
  appearance: none !important; -webkit-appearance: none !important;
  width: 17px !important; height: 17px !important; min-width: 17px !important; flex-shrink: 0 !important;
  border: 2px solid var(--aar-f-border) !important; border-radius: 4px !important;
  background: #fff !important; cursor: pointer !important; transition: all var(--aar-f-trans) !important;
  position: relative !important; margin: 0 !important; display: inline-block !important;
}
body.type-category #filters .filter-section-manufacturer input[type="checkbox"]:checked,
body.type-category #filters .filter-section-parametric:not(.filter-section-parametric-id-182) input[type="checkbox"]:checked { background: var(--aar-f-primary) !important; border-color: var(--aar-f-primary) !important; }
body.type-category #filters .filter-section-manufacturer input[type="checkbox"]:checked::after,
body.type-category #filters .filter-section-parametric:not(.filter-section-parametric-id-182) input[type="checkbox"]:checked::after { content: '' !important; display: block !important; position: absolute !important; top: 1px !important; left: 4px !important; width: 5px !important; height: 8px !important; border: 2px solid #fff !important; border-top: none !important; border-left: none !important; transform: rotate(45deg) !important; border-radius: 0 !important; }
body.type-category #filters .filter-section-manufacturer label.filter-label::before,
body.type-category #filters .filter-section-manufacturer label.filter-label::after,
body.type-category #filters .filter-section-parametric:not(.filter-section-parametric-id-182) label.filter-label::before,
body.type-category #filters .filter-section-parametric:not(.filter-section-parametric-id-182) label.filter-label::after { display: none !important; }
body.type-category #filters .filter-section-manufacturer label.filter-label,
body.type-category #filters .filter-section-parametric:not(.filter-section-parametric-id-182) label.filter-label {
  display: flex !important; align-items: center !important; gap: 9px !important;
  padding: 7px 5px !important; border-radius: var(--aar-f-r-sm) !important;
  cursor: pointer !important; font-size: 13px !important; color: var(--aar-f-dark) !important;
  width: 100% !important; min-height: 38px !important; transition: background var(--aar-f-trans) !important;
  background: transparent !important; margin: 0 !important; user-select: none !important;
}
body.type-category #filters .filter-section-manufacturer label.filter-label:hover,
body.type-category #filters .filter-section-parametric:not(.filter-section-parametric-id-182) label.filter-label:hover { background: var(--aar-f-pill-bg) !important; }
body.type-category #filters .filter-section-manufacturer .filter-count,
body.type-category #filters .filter-section-parametric:not(.filter-section-parametric-id-182) .filter-count { display: inline !important; font-size: 11px !important; color: var(--aar-f-gray-mid) !important; margin-left: auto !important; flex-shrink: 0 !important; }
body.type-category #filters label.filter-label.disabled { opacity: 0.38 !important; pointer-events: none !important; }

/* COLOR SWATCHES */
body.type-category .filter-section-parametric-id-182 fieldset { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; padding: 2px 0 !important; }
body.type-category .filter-section-parametric-id-182 fieldset > div { position: relative !important; width: auto !important; }
body.type-category .filter-section-parametric-id-182 input[type="checkbox"] { position: absolute !important; opacity: 0 !important; width: 0 !important; height: 0 !important; }
body.type-category label.advanced-parameter { width: 30px !important; height: 30px !important; border-radius: 50% !important; cursor: pointer !important; border: 2.5px solid transparent !important; outline: 2px solid transparent !important; outline-offset: 2px !important; transition: all var(--aar-f-trans) !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; }
body.type-category label.advanced-parameter:hover { outline-color: var(--aar-f-primary-lt) !important; transform: scale(1.1) !important; }
body.type-category .advanced-parameter-inner { width: 26px !important; height: 26px !important; border-radius: 50% !important; display: block !important; flex-shrink: 0 !important; }
body.type-category input[type="checkbox"]:checked + label.advanced-parameter { outline-color: var(--aar-f-primary) !important; border-color: #fff !important; transform: scale(1.12) !important; }
/* mobile: bigger circles in 3 rows — MUST come after base rules above */
@media (max-width: 767px) {
  body.type-category .filter-section-parametric-id-182 fieldset { max-width: 292px !important; }
  body.type-category label.advanced-parameter { width: 52px !important; height: 52px !important; }
  body.type-category .advanced-parameter-inner { width: 44px !important; height: 44px !important; }
}
body.type-category label.filter-label.no-display { display: none !important; }

/* PRICE FILTER */
.aar-price-row { display: flex; gap: 8px; margin-bottom: 10px; }
.aar-price-grp { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.aar-price-grp label { font-size: 10px; color: var(--aar-f-gray-mid); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.aar-price-grp input,
body.type-category #price-filter #price-value-min,
body.type-category #price-filter #price-value-max { border: 1.5px solid var(--aar-f-border) !important; border-radius: var(--aar-f-r-sm) !important; padding: 6px 8px !important; font-size: 13px !important; font-weight: 600 !important; width: 100% !important; min-height: 36px !important; font-family: inherit !important; transition: border-color var(--aar-f-trans) !important; box-sizing: border-box !important; }
body.type-category #price-filter .slider-wrapper { padding: 0 !important; margin: 0 !important; }
body.type-category #price-filter .slider-content { width: 100% !important; margin: 6px 0 0 0 !important; padding: 0 !important; box-sizing: border-box !important; }
body.type-category #price-filter .ui-slider { height: 4px !important; background: var(--aar-f-gray-light) !important; border: none !important; border-radius: 2px !important; }
body.type-category #price-filter .ui-slider-range { background: var(--aar-f-primary) !important; }
body.type-category #price-filter .ui-slider-handle { width: 20px !important; height: 20px !important; top: -8px !important; margin-left: -10px !important; border-radius: 50% !important; background: var(--aar-f-primary) !important; border: 3px solid #fff !important; box-shadow: 0 2px 6px rgba(0,118,160,.4) !important; cursor: grab !important; outline: none !important; }
body.type-category #price-filter .ui-slider-handle:focus { box-shadow: 0 0 0 4px rgba(0,118,160,.25) !important; }
body.type-category #filters .slider-header,
body.type-category #filters .slider-header *,
body.type-category #filters #price-filter > div > .slider-header,
body.type-category #filters #category-filter-hover #price-filter .slider-header { display: none !important; }
body.type-category #filters #price-filter,
body.type-category #filters #price-filter > *,
body.type-category #filters #price-filter .slider-wrapper,
body.type-category #filters #price-filter .slider-content { background: transparent !important; box-shadow: none !important; border: none !important; }

/* ZOBRAZIT VÍCE */
.aar-show-btn { display: flex; align-items: center; gap: 5px; color: var(--aar-f-primary); font-size: 12px; font-weight: 600; padding: 5px 5px 2px; margin-top: 2px; cursor: pointer; background: transparent; border: none; font-family: inherit; transition: color var(--aar-f-trans); }
.aar-show-btn:hover { color: var(--aar-f-primary-dark); }
.aar-show-btn svg { transition: transform var(--aar-f-trans); }
.aar-show-btn.exp svg { transform: rotate(180deg); }
body.type-category #filters-wrapper #filters .filter-section:not(.filter-section-boolean):not(.filter-section-parametric-id-182) fieldset > .aar-hidden-wrap { display: none !important; }
body.type-category #filters-wrapper #filters .filter-section:not(.filter-section-boolean):not(.filter-section-parametric-id-182) fieldset > .aar-hidden-wrap.on { display: block !important; }
body.type-category #filters-wrapper #filters .aar-hidden-wrap.on > div { display: flex !important; align-items: center !important; width: 100% !important; box-sizing: border-box !important; }

/* §12 DESKTOP TOPBAR — Filtrovat centered only; sort shown by native .listingControls below */
#aar-topbar { display: none; }
@media (min-width: 768px) { #aar-topbar { display: flex; flex-direction: column; max-width: 1200px; margin: 8px auto 0; padding: 0 16px 4px; box-sizing: border-box; } }
#aar-topbar-r1 { display: flex; justify-content: center; }
/* §12b NATIVE SORT PILLS — visible on desktop, hidden on mobile */
/* Hide sort bar on mobile — we use #aar-mobile-controls sort chips instead.
   .listingControls (pagination/NAHORU) stays visible on both viewports. */
@media (max-width: 767px) { body.type-category .listSorting { display: none !important; } }
@media (min-width: 768px) {
  body.type-category .listSorting { display: flex !important; align-items: center !important; }
  body.type-category .listSorting__controls { display: flex !important; flex-direction: row !important; gap: 6px !important; list-style: none !important; margin: 0 !important; padding: 0 !important; flex-wrap: nowrap !important; align-items: center !important; }
  body.type-category .listSorting__controls li { display: flex !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
  /* Shoptet uses <button class="listSorting__control"> — NOT <a> tags. Style buttons as pills. */
  body.type-category .listSorting__controls .listSorting__control { display: inline-flex !important; align-items: center !important; padding: 7px 14px !important; border-radius: var(--aar-f-r-pill) !important; font-size: 12px !important; font-weight: 600 !important; border: 1.5px solid var(--aar-f-border) !important; background: #fff !important; color: var(--aar-f-dark) !important; text-decoration: none !important; white-space: nowrap !important; cursor: pointer !important; font-family: inherit !important; transition: all var(--aar-f-trans) !important; line-height: 1 !important; }
  body.type-category .listSorting__controls .listSorting__control--current { background: var(--aar-f-primary) !important; border-color: var(--aar-f-primary) !important; color: #fff !important; }
  body.type-category .listSorting__controls .listSorting__control:not(.listSorting__control--current):hover { border-color: var(--aar-f-primary) !important; color: var(--aar-f-primary) !important; }
}

/* FILTROVAT PILL */
#aar-filtrovat-pill { display: none; }
@media (min-width: 768px) { #aar-filtrovat-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; background: var(--aar-f-gold); color: var(--aar-f-dark); border-radius: var(--aar-f-r-pill); font-size: 13px; font-weight: 700; border: 2px solid var(--aar-f-gold); cursor: pointer; font-family: inherit; white-space: nowrap; transition: background var(--aar-f-trans), color var(--aar-f-trans), border-color var(--aar-f-trans); } }
#aar-filtrovat-pill:hover { background: #d9a018; border-color: #d9a018; }
#aar-filtrovat-pill.open { background: var(--aar-f-dark); color: var(--aar-f-gold); border-color: var(--aar-f-dark); }
.aar-pill-badge { background: var(--aar-f-dark); color: var(--aar-f-gold); font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; transition: background var(--aar-f-trans), color var(--aar-f-trans); }
#aar-filtrovat-pill.open .aar-pill-badge { background: var(--aar-f-gold); color: var(--aar-f-dark); }
.aar-pill-badge.hidden { display: none !important; }
#aar-filtrovat-pill-mobile { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 9px 20px; background: var(--aar-f-gold); color: var(--aar-f-dark); border-radius: var(--aar-f-r-pill); font-size: 13px; font-weight: 700; border: 2px solid var(--aar-f-gold); cursor: pointer; font-family: inherit; transition: background var(--aar-f-trans), color var(--aar-f-trans), border-color var(--aar-f-trans); margin-top: 8px; }
#aar-filtrovat-pill-mobile.open { background: var(--aar-f-dark); color: var(--aar-f-gold); border-color: var(--aar-f-dark); }

/* MOBILE CONTROLS */
#aar-mobile-controls { display: none; }
@media (max-width: 767px) { #aar-mobile-controls { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 0; } }
.aar-mobile-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.aar-quick-wrap { display: flex; flex-direction: column; gap: 5px; }
.aar-quick-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--aar-f-gray-mid); }
.aar-quick-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.aar-quick-chips::-webkit-scrollbar { display: none; }
.aar-quick-chip { flex-shrink: 0; padding: 5px 13px; border-radius: var(--aar-f-r-pill); font-size: 12px; font-weight: 600; border: 1.5px solid var(--aar-f-border); background: #fff; color: var(--aar-f-dark); cursor: pointer; font-family: inherit; transition: all var(--aar-f-trans); white-space: nowrap; }
.aar-quick-chip.active { background: var(--aar-f-primary); border-color: var(--aar-f-primary); color: #fff; }
.aar-sort-chips-wrap { display: flex; flex-direction: column; gap: 5px; }
.aar-sort-chips-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--aar-f-gray-mid); }
.aar-sort-chips-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.aar-sort-chips-row::-webkit-scrollbar { display: none; }
.aar-sort-chip { flex-shrink: 0; padding: 5px 13px; border-radius: var(--aar-f-r-pill); font-size: 12px; font-weight: 600; border: 1.5px solid var(--aar-f-border); background: #fff; color: var(--aar-f-dark); cursor: pointer; font-family: inherit; transition: all var(--aar-f-trans); white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.aar-sort-chip.active { background: var(--aar-f-primary-lt); border-color: var(--aar-f-primary-lt); color: #fff; }

/* MOBILE DRAWER */
#aar-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.42); z-index: 9998; }
#aar-drawer-overlay.on { display: block; }
@media (max-width: 767px) {
  body.type-category #filters-wrapper { position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0 !important; width: min(340px, 94vw) !important; max-width: min(340px, 94vw) !important; background: #fff !important; z-index: 9999 !important; box-shadow: 4px 0 28px rgba(0,0,0,0.16) !important; transform: translateX(-110%) !important; transition: transform 0.27s cubic-bezier(0.4,0,0.2,1) !important; max-height: 100vh !important; overflow-y: auto !important; scrollbar-width: none !important; display: flex !important; flex-direction: column !important; }
  body.type-category #filters-wrapper::-webkit-scrollbar { display: none; }
  body.type-category #filters-wrapper.aar-drawer-open { transform: translateX(0) !important; }
  /* Body-class lock: CSS rule on body survives Shoptet recreating #filters-wrapper.
     transition:none stops the slide animation from replaying mid-AJAX (= no flicker).
     rAF in repairLayout() restores filters-wrapper.scrollTop to fix scroll-to-top. */
  body.aar-drawer-is-open #filters-wrapper { transform: translateX(0) !important; transition: none !important; }
  body.type-category .category-content-wrapper { display: block !important; padding: 0 12px 48px !important; }
}

/* MOBILE PANEL FOOTER */
#aar-panel-footer { display: none; }
@media (max-width: 767px) { #aar-panel-footer { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--aar-f-border); background: #fff; position: sticky; bottom: 0; } }
.aar-btn-apply { flex: 1; background: var(--aar-f-primary); color: #fff; border: none; border-radius: var(--aar-f-r-md); padding: 13px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background var(--aar-f-trans); }
.aar-btn-apply:hover { background: var(--aar-f-primary-dark); }
.aar-btn-reset { background: #fff; color: var(--aar-f-gray-mid); border: 1.5px solid var(--aar-f-border); border-radius: var(--aar-f-r-md); padding: 13px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all var(--aar-f-trans); }
.aar-btn-reset:hover { border-color: var(--aar-f-primary); color: var(--aar-f-primary); }

/* DESKTOP ACTIVE PILLS BAR */
#aar-pills-desktop { display: none; }
@media (min-width: 768px) {
  #aar-pills-desktop.on { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 6px 0 10px; border-bottom: 1px solid var(--aar-f-border); margin-bottom: 10px; }
  #aar-pills-desktop .aar-pills-label { white-space: nowrap; margin-bottom: 0; }
  #aar-pills-list-desktop { display: flex; flex-wrap: wrap; gap: 5px; }
}

/* MISC */
.filter-total-count { display: none !important; }
#productsListHeading { position: absolute; left: -9999px; }
