/** Shopify CDN: Minification failed

Line 612:0 Unexpected "}"

**/
/* ==========================================================================
   CUSTOM FACETS CSS v3
   — Sidebar independently scrollable (sticky header)
   — Brand filter list independently scrollable
   — Price slider: AED, step 50, Min/Max captions, no text inputs
   — Sort right-aligned, no product count
   — Pills above product grid
   ========================================================================== */

:root {
  --cf-primary: #0b1b4b;
  --cf-accent: #1f7de0;
  --cf-accent-dark: #1566c2;
  --cf-accent-light: #e6f0fb;
  --cf-text: #1a203c;
  --cf-text-muted: #4a5268;
  --cf-border: #e5e7ee;
  --cf-border-strong: #d3d7e0;
  --cf-bg: #ffffff;
  --cf-bg-soft: #f7f8fb;
  --cf-radius: 10px;
  --cf-radius-sm: 6px;
  --cf-sidebar-width: 260px;
}

/* ==========================================================================
   UTILITY — breakpoint visibility helpers
   cf-mobile-only  : visible only on mobile  (< 750px)
   cf-desktop-only : visible only on desktop (≥ 750px)
   These replace Dawn/Refresh theme utility classes that may not be loaded.
   ========================================================================== */
.cf-mobile-only  { display: none !important; }  /* hidden on desktop by default */

@media screen and (max-width: 749px) {
  .cf-mobile-only  { display: block !important; } /* shown on mobile */
  .cf-desktop-only { display: none  !important; } /* hidden on mobile */
}

/* ==========================================================================
   SIDEBAR SCROLL — handled in FIX 4 block below
   ========================================================================== */

/* The parent facets-vertical layout */
.facets-vertical {
  display: flex;
  align-items: flex-start !important;
}

/* The product grid takes all remaining space */
.facets-vertical .product-grid-container {
  flex: 1;
  min-width: 0;
}

.facets-vertical .facets-wrapper::-webkit-scrollbar {
  width: 4px;
}
.facets-vertical .facets-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.facets-vertical .facets-wrapper::-webkit-scrollbar-thumb {
  background: var(--cf-border-strong);
  border-radius: 4px;
}

/* ==========================================================================
   FILTER BLOCK (each group)
   ========================================================================== */
.facets--custom details.facets__block-custom {
  border: 0;
  border-bottom: 1px solid var(--cf-border);
  padding: 14px 0;
  margin: 0;
}

.facets--custom details.facets__block-custom:last-of-type {
  border-bottom: 0;
}

/* Summary row */
.facets--custom .facets__block-custom-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--cf-primary);
  background: transparent;
  border: 0;
  width: 100%;
  min-width: 0;
}
.facets--custom .facets__block-custom-summary::-webkit-details-marker { display: none; }
.facets--custom .facets__block-custom-summary::marker { content: ''; display: none; }
.facets--custom .facets__block-custom-summary::before,
.facets--custom .facets__block-custom-summary::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* Label — NOT all-caps per request */
.facets--custom .facets__block-custom-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--cf-primary);
  line-height: 1.2;
  /* No text-transform */
}

.facets--custom .facets__block-custom-icon {
  display: inline-flex;
  align-items: center;
  color: var(--cf-primary);
  transition: transform 0.2s ease;
}

.facets--custom details.facets__block-custom[open] > .facets__block-custom-summary .facets__block-custom-icon {
  transform: rotate(180deg);
}

/* Content area */
.facets--custom .facets__block-custom-content {
  padding: 10px 0 2px;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  position: static;
  width: auto;
  max-height: none;
  overflow: visible;
  animation: cfFadeIn 0.18s ease;
  top: auto;
  left: auto;
}

@keyframes cfFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BRAND — independently scrollable list
   ========================================================================== */
.facets--custom .facets__list-scroll-wrapper {
  /* Default: no scroll (most filter lists) */
}

.facets--custom .facets__list-scroll-wrapper--brand {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--cf-border-strong) transparent;
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-sm);
  padding: 0 4px;
}

.facets--custom .facets__list-scroll-wrapper--brand::-webkit-scrollbar {
  width: 4px;
}
.facets--custom .facets__list-scroll-wrapper--brand::-webkit-scrollbar-track {
  background: transparent;
}
.facets--custom .facets__list-scroll-wrapper--brand::-webkit-scrollbar-thumb {
  background: var(--cf-border-strong);
  border-radius: 4px;
}

/* ==========================================================================
   BRAND SEARCH INPUT
   ========================================================================== */
.facets--custom .facets__brand-search {
  position: relative;
  margin-bottom: 8px;
}
.facets--custom .facets__brand-search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: var(--cf-text-muted);
  display: flex;
  pointer-events: none;
}
.facets--custom .facets__brand-search-input {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 32px;
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius-sm);
  font-size: 13px;
  color: var(--cf-text);
  background: var(--cf-bg);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.facets--custom .facets__brand-search-input::placeholder { color: var(--cf-text-muted); }
.facets--custom .facets__brand-search-input:focus {
  border-color: var(--cf-primary);
  box-shadow: 0 0 0 3px rgba(11,27,75,0.07);
}

/* ==========================================================================
   CHECKBOX LIST
   ========================================================================== */
.facets--custom .facets-wrap-custom { border: 0; padding: 0; margin: 0; }

.facets--custom .facets__list--custom {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.facets--custom .facets__item-custom { display: flex; padding: 0; margin: 0; }

.facets--custom .facets__label-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 7px 2px;
  font-size: 14px;
  color: var(--cf-text);
  line-height: 1.3;
  width: 100%;
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--cf-border);
}
.facets--custom .facets__list--custom li:last-child .facets__label-custom { border-bottom: 0; }

.facets--custom .facets__label-custom.disabled { opacity: 0.4; pointer-events: none; }

.facets--custom .facets__checkbox-custom-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  z-index: -1;
}
.facets--custom .facets__checkbox-custom-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--cf-border-strong);
  border-radius: 4px;
  background: var(--cf-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.facets--custom .facets__checkbox-custom-box svg {
  width: 11px;
  height: 11px;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.facets--custom .facets__checkbox-custom-input:checked + .facets__checkbox-custom-box {
  background: var(--cf-primary);
  border-color: var(--cf-primary);
}
.facets--custom .facets__checkbox-custom-input:checked + .facets__checkbox-custom-box svg {
  opacity: 1;
  transform: scale(1);
}
.facets--custom .facets__label-custom:hover .facets__checkbox-custom-box { border-color: var(--cf-primary); }
.facets--custom .facets__checkbox-custom-text { flex: 1; color: var(--cf-text); }
.facets--custom .facets__checkbox-custom-count { color: var(--cf-text-muted); margin-left: 2px; }

/* Show more */
.facets--custom .facets__show-more-custom {
  background: transparent;
  border: 0;
  padding: 6px 2px 0;
  margin-top: 2px;
  color: var(--cf-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
  min-height: 0;
}
.facets--custom .facets__show-more-custom:hover { color: var(--cf-primary); }
.facets--custom .facets__show-more-custom .hidden { display: none; }
.facets--custom .facets__item-custom.show-more-item.hidden { display: none !important; }

/* ==========================================================================
   PRICE RANGE SLIDER — matches Budget / Full Price design
   ========================================================================== */
.facets--custom .facets__price-custom {
  display: block;
  padding: 6px 0 8px;
}

/* Top labels — "AED  5,000    AED  500,000" */
.facets--custom .facets__price-custom-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.facets--custom .facets__price-custom-label-left,
.facets--custom .facets__price-custom-label-right {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.facets--custom .facets__price-custom-label-left small,
.facets--custom .facets__price-custom-label-right small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--cf-accent);
  text-transform: uppercase;
}
.facets--custom .facets__price-custom-label-left strong,
.facets--custom .facets__price-custom-label-right strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--cf-primary);
  line-height: 1;
  letter-spacing: -0.5px;
}

/* Slider wrapper — taller to accommodate tick marks */
.facets--custom .facets__price-custom-slider {
  position: relative;
  height: 36px;
  margin: 0 4px 0;
}

/* Grey track */
.facets--custom .facets__price-custom-track {
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 6px;
  background: #d8dde8;
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
}

/* Tick marks — rendered via repeating-linear-gradient */
.facets--custom .facets__price-custom-track::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    to right,
    #c0c6d4 0px,
    #c0c6d4 1.5px,
    transparent 1.5px,
    transparent calc(100% / 20)
  );
  border-radius: 0;
  pointer-events: none;
}

/* Active range bar — dark navy blue */
.facets--custom .facets__price-custom-range {
  position: absolute;
  top: 13px;
  height: 6px;
  background: var(--cf-primary);
  border-radius: 3px;
  pointer-events: none;
  left: 0%;
  right: 0%;
  z-index: 2;
}

/* Both range inputs overlaid */
.facets--custom .facets__price-custom-thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
  border: 0;
  box-shadow: none;
}
.facets--custom .facets__price-custom-thumb::-webkit-slider-runnable-track {
  background: transparent;
  border: 0;
  height: 36px;
}
.facets--custom .facets__price-custom-thumb::-moz-range-track {
  background: transparent;
  border: 0;
}

/* Thumb — large solid dark blue circle, no border */
.facets--custom .facets__price-custom-thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cf-primary);
  border: none;
  box-shadow: none;
  cursor: grab;
  pointer-events: auto;
  margin-top: -3px;
}
.facets--custom .facets__price-custom-thumb::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cf-primary);
  border: none;
  box-shadow: none;
  cursor: grab;
  pointer-events: auto;
}
.facets--custom .facets__price-custom-thumb:active::-webkit-slider-thumb {
  cursor: grabbing;
  background: var(--cf-accent);
}
.facets--custom .facets__price-custom-thumb:active::-moz-range-thumb {
  cursor: grabbing;
  background: var(--cf-accent);
}
.facets--custom .facets__price-custom-thumb--min { z-index: 3; }
.facets--custom .facets__price-custom-thumb--max { z-index: 4; }

/* Min / Max captions */
.facets--custom .facets__price-custom-caption {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  font-size: 12px;
  color: var(--cf-text-muted);
  font-weight: 500;
}

/* Mobile price slider — same component, padded inside the drawer */
.mobile-price-slider-wrapper {
  padding: 20px 20px 8px;
}

.mobile-price-slider-wrapper .facets__price-custom {
  display: block;
  padding: 0;
}

/* Override the .facets--custom scoping for mobile price slider */
.facets__price-custom--mobile .facets__price-custom-labels,
.facets__price-custom--mobile .facets__price-custom-label-left,
.facets__price-custom--mobile .facets__price-custom-label-right {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.facets__price-custom--mobile .facets__price-custom-labels {
  justify-content: space-between;
  margin-bottom: 18px;
}

.facets__price-custom--mobile .facets__price-custom-label-left small,
.facets__price-custom--mobile .facets__price-custom-label-right small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--cf-accent);
  text-transform: uppercase;
}

.facets__price-custom--mobile .facets__price-custom-label-left strong,
.facets__price-custom--mobile .facets__price-custom-label-right strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--cf-primary);
  line-height: 1;
  letter-spacing: -0.5px;
}

.facets__price-custom--mobile .facets__price-custom-slider {
  position: relative;
  height: 36px;
  margin: 0 4px 0;
}

.facets__price-custom--mobile .facets__price-custom-track {
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 6px;
  background: #d8dde8;
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
}

.facets__price-custom--mobile .facets__price-custom-track::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    to right,
    #c0c6d4 0px,
    #c0c6d4 1.5px,
    transparent 1.5px,
    transparent calc(100% / 20)
  );
  pointer-events: none;
}

.facets__price-custom--mobile .facets__price-custom-range {
  position: absolute;
  top: 13px;
  height: 6px;
  background: var(--cf-primary);
  border-radius: 3px;
  pointer-events: none;
  left: 0%;
  right: 0%;
  z-index: 2;
}

.facets__price-custom--mobile .facets__price-custom-thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
  border: 0;
  box-shadow: none;
}

.facets__price-custom--mobile .facets__price-custom-thumb::-webkit-slider-runnable-track {
  background: transparent;
  border: 0;
  height: 36px;
}

.facets__price-custom--mobile .facets__price-custom-thumb::-moz-range-track {
  background: transparent;
  border: 0;
}

.facets__price-custom--mobile .facets__price-custom-thumb::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cf-primary);
  border: none;
  box-shadow: none;
  cursor: grab;
  pointer-events: auto;
  margin-top: -3px;
}

.facets__price-custom--mobile .facets__price-custom-thumb::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cf-primary);
  border: none;
  box-shadow: none;
  cursor: grab;
  pointer-events: auto;
}
}

.facets__price-custom--mobile .facets__price-custom-thumb--min { z-index: 3; }
.facets__price-custom--mobile .facets__price-custom-thumb--max { z-index: 4; }

.facets__price-custom--mobile .facets__price-custom-caption {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 0;
  font-size: 12px;
  color: var(--cf-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   CLEAR ALL (bottom of sidebar)
   ========================================================================== */
.facets--custom .facets__clear-all-wrapper {
  padding: 14px 0 6px;
  border-top: 1px solid var(--cf-border);
  margin-top: 2px;
}
.facets--custom .facets__clear-all-button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: var(--cf-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
  cursor: pointer;
}
.facets--custom .facets__clear-all-button:hover { background: var(--cf-primary); color: #fff; }

/* ==========================================================================
   FIX 2 — UNIFIED TOP BAR: Pills (left) + Sort (right) on ONE line
   ========================================================================== */

/* The shared row container */
.cf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 14px;
  min-height: 36px;
}

/* Left side — pills area (grows to fill, wraps if needed) */
.cf-topbar__pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

/* Right side — sort dropdown (never shrinks) */
.cf-topbar__sort {
  flex-shrink: 0;
  display: block;
}

.cf-topbar__sort-form {
  display: flex;
  align-items: center;
  gap: 0;
}

/* When no pills are showing, push sort all the way right */
.cf-topbar__pills:empty ~ .cf-topbar__sort,
.cf-topbar:not(:has(.active-facets-pills-bar__pill)) .cf-topbar__sort {
  margin-left: auto;
}

/* Keep old sort bar class working in case it's referenced elsewhere */
.facets-sort-bar--custom { display: none; }
.facets-sort-bar-form    { display: none; }

/* ==========================================================================
   SORT DROPDOWN — trigger button + popover menu
   ========================================================================== */
.custom-sort-dropdown {
  position: relative;
  display: inline-block;
}

.custom-sort-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--cf-primary);
  box-shadow: none;
  min-height: 0;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.custom-sort-dropdown__label {
  font-weight: 600;
  color: var(--cf-primary);
}

.custom-sort-dropdown__value {
  color: var(--cf-accent);
  font-weight: 700;
}

.custom-sort-dropdown__chevron {
  color: var(--cf-accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom-sort-dropdown.open .custom-sort-dropdown__chevron {
  transform: rotate(180deg);
}

/* Popover menu */
.custom-sort-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 240px;
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius);
  box-shadow: 0 8px 24px rgba(11, 27, 75, 0.12);
  padding: 6px 0;
  z-index: 50;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.custom-sort-dropdown.open .custom-sort-dropdown__menu {
  display: block;
}

/* Menu item row */
.custom-sort-dropdown__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  cursor: pointer;
  font-size: 14px;
  color: var(--cf-text);
  transition: background-color 0.12s ease;
  position: relative;
  margin: 0;
}

.custom-sort-dropdown__option:hover {
  background: var(--cf-bg-soft);
}

/* Hide the real radio input visually */
.custom-sort-dropdown__option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Custom radio circle */
.custom-sort-dropdown__radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--cf-border-strong);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
  background: #fff;
}

.custom-sort-dropdown__radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cf-accent);
  transition: transform 0.15s ease;
}

.custom-sort-dropdown__option.active .custom-sort-dropdown__radio {
  border-color: var(--cf-accent);
}

.custom-sort-dropdown__option.active .custom-sort-dropdown__radio::after {
  transform: translate(-50%, -50%) scale(1);
}

.custom-sort-dropdown__option.active .custom-sort-dropdown__option-text {
  color: var(--cf-accent);
  font-weight: 700;
}

.custom-sort-dropdown__option-text {
  flex: 1;
}

/* ==========================================================================
   ACTIVE FILTER PILLS — inside cf-topbar__pills
   ========================================================================== */
.active-facets-pills-bar__remove-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cf-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 5px 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.active-facets-pills-bar__remove-all:hover { color: var(--cf-primary); }

/* Separator between Clear All and pills */
.active-facets-pills-bar__sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--cf-border-strong);
  flex-shrink: 0;
  align-self: center;
}

/* Pills row */
.active-facets-pills-bar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Individual pill */
.active-facets-pills-bar__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 14px;
  background: var(--cf-bg);
  color: var(--cf-primary);
  border: 1.5px solid var(--cf-border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  line-height: 1.3;
  white-space: nowrap;
}
.active-facets-pills-bar__pill:hover {
  border-color: var(--cf-accent);
  background: var(--cf-accent-light);
  color: var(--cf-accent);
}
.active-facets-pills-bar__pill-label { color: inherit; }

.active-facets-pills-bar__pill-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--cf-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}
.active-facets-pills-bar__pill:hover .active-facets-pills-bar__pill-x {
  background: var(--cf-accent);
  color: #fff;
}

/* Hidden product count — Dawn's JS needs #ProductCountDesktop in DOM */
.product-count-custom {
  position: relative;
  flex-shrink: 0;
  width: 0;
  overflow: hidden;
}
.product-count-custom__text {
  font-size: 0;
  color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.product-count-custom .loading__spinner {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
}
#ProductCountDesktop.loading { visibility: hidden; }

/* ==========================================================================
   FIX 3 — MOBILE: Refresh theme drawer compatibility
   Refresh theme uses <details> + <summary> with class .mobile-facets__open-wrapper
   but wraps items differently. We make both work.
   ========================================================================== */

/* Show the mobile filter/sort trigger (Refresh + Dawn both have this) */
.mobile-facets__open-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

/* The filter button text/icon row */
.mobile-facets__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cf-primary);
  text-decoration: none;
  padding: 0;
}

/* Force the entire mobile drawer wrapper to be visible on mobile */
.mobile-facets__wrapper {
  display: flex !important;
  visibility: visible !important;
}

/* Refresh theme: the filter open button is sometimes a <button> not a <span> */
button.mobile-facets__open,
.mobile-facets__open-wrapper > button {
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cf-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  box-shadow: none;
  min-height: 0;
}

/* Refresh theme: facets drawer uses .js-filter class on details, ensure they show */
.js-filter { display: block; }

/* Ensure the mobile header and main area are visible */
.mobile-facets__inner {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   FIX 4 — DESKTOP GAP between sidebar and product grid
   ========================================================================== */

/* The sidebar itself gets a right margin to create visible breathing room */
.facets-vertical .facets-wrapper {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;          /* padding inside is handled by the form */
  margin-right: 28px;        /* <-- THIS creates the visible gap */
  scrollbar-width: thin;
  scrollbar-color: var(--cf-border-strong) transparent;
  flex-shrink: 0;
  width: var(--cf-sidebar-width);
}

/* The sidebar card itself — gives visual separation from the gap */
.facets__form-vertical--custom {
  display: flex;
  flex-direction: column;
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius);
  padding: 6px 16px;
  /* No margin here — margin is on the wrapper above */
}

/* ==========================================================================
   HIDE stale default elements inside custom facets
   ========================================================================== */
.facets--custom .facets__heading--vertical,
.facets--custom .active-facets-vertical-filter,
.facets--custom .facets__heading {
  display: none;
}

/* Don't let default Dawn container grid interfere */
.facets-container.facets-container--custom {
  display: block;
  padding-top: 0;
}
.facets-container.facets-container--custom > * {
  margin-top: 0;
}

/* ==========================================================================
   FIX 1 — Remove loading overlay that greys out the product grid on filter
   ========================================================================== */
.collection .loading-overlay {
  display: none !important;
}

/* Also prevent the .loading class adding opacity to the grid */
#ProductGridContainer .collection.loading {
  opacity: 1 !important;
}

/* ==========================================================================
   RESPONSIVE — TABLET  (750px – 989px)
   ========================================================================== */
@media screen and (min-width: 750px) and (max-width: 989px) {

  :root {
    --cf-sidebar-width: 200px;
  }

  /* Tighter sidebar margin on tablet */
  .facets-vertical .facets-wrapper {
    margin-right: 20px;
  }

  .facets__form-vertical--custom {
    padding: 4px 12px;
  }

  .facets--custom .facets__block-custom-label {
    font-size: 13px;
  }

  .facets--custom details.facets__block-custom {
    padding: 11px 0;
  }

  .facets--custom .facets__label-custom {
    font-size: 13px;
    padding: 6px 2px;
  }

  .facets--custom .facets__list-scroll-wrapper--brand {
    max-height: 180px;
  }

  .facets--custom .facets__price-custom-label-left strong,
  .facets--custom .facets__price-custom-label-right strong {
    font-size: 13px;
  }

  .custom-sort-dropdown__trigger {
    font-size: 13px;
  }

  .active-facets-pills-bar__pill {
    font-size: 12px;
    padding: 4px 8px 4px 10px;
  }

  .active-facets-pills-bar__remove-all {
    font-size: 12px;
  }
}

/* ==========================================================================
   RESPONSIVE — MOBILE  (< 750px)
   Desktop sidebar form is hidden. Mobile drawer (inside the aside) shows.
   Desktop top bar (cf-topbar) is fully hidden — mobile drawer has its own sort.
   ========================================================================== */
@media screen and (max-width: 749px) {

  /* Layout: stack aside + grid vertically */
  .facets-vertical {
    display: block !important;
  }

  /* Aside resets to full-width strip */
  .facets-vertical .facets-wrapper {
    position: static;
    max-height: none;
    overflow: visible;
    margin-right: 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .facets-vertical .product-grid-container {
    width: 100%;
  }

  /* Hide the desktop filter form (small-hide utility class) */
  .facets--custom.small-hide {
    display: none !important;
  }

  /* Hide the desktop top bar (sort + pills) — mobile drawer handles both */
  .cf-topbar {
    display: none !important;
  }

  .active-facets-pills-bar__remove-all {
    font-size: 12px;
    padding: 4px 2px;
    gap: 4px;
  }

  .active-facets-pills-bar__pill {
    font-size: 12px;
    padding: 4px 8px 4px 10px;
    gap: 5px;
  }

  /* ── Mobile drawer open button styling ──────────────────────────────── */
  .mobile-facets__open-wrapper {
    padding: 10px 0;
  }

  /* ── Mobile facets drawer ───────────────────────────────────────────── */
  .mobile-facets__inner {
    max-width: 100%;
    width: calc(100% - 48px);
    border-left: 1px solid var(--cf-border);
    box-shadow: -2px 0 16px rgba(11,27,75,0.12);
  }

  .mobile-facets__header {
    padding: 14px 16px;
  }

  .mobile-facets__heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--cf-primary);
  }

  .mobile-facets__summary {
    padding: 14px 16px;
  }

  .mobile-facets__summary > div {
    font-size: 14px;
    font-weight: 600;
    color: var(--cf-primary);
  }

  .mobile-facets__label {
    padding: 12px 16px;
    font-size: 14px;
    gap: 12px;
  }

  .mobile-facets__footer {
    padding: 14px 16px;
    gap: 10px;
  }

  .mobile-facets__footer .button--primary {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 999px;
  }

  .mobile-facets__clear {
    font-size: 14px;
    font-weight: 600;
    color: var(--cf-accent);
  }

  .mobile-facets__sort {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .mobile-facets__sort label {
    font-size: 14px;
    font-weight: 600;
    color: var(--cf-primary);
  }

  /* ── Mobile active facets (scrollable strip) ────────────────────────── */
  .active-facets-mobile {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .active-facets-mobile::-webkit-scrollbar { display: none; }

  .active-facets-mobile .active-facets__button-inner {
    white-space: nowrap;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--cf-accent);
    color: var(--cf-primary);
    background: var(--cf-bg);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .active-facets-mobile .active-facets__button-remove {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: var(--cf-accent);
  }

  /* ── Price filter inside mobile drawer ──────────────────────────────── */
  .facets__price-custom {
    padding: 8px 16px 12px;
  }

  .facets__price-custom-labels {
    margin-bottom: 16px;
  }

  .facets__price-custom-label-left strong,
  .facets__price-custom-label-right strong {
    font-size: 14px;
  }

  .facets__price-custom-slider {
    margin: 0 10px 4px;
  }

  .facets__price-custom-thumb::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  .facets__price-custom-thumb::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }

  /* ── Product grid ───────────────────────────────────────────────────── */
  .product-grid.grid--2-col-tablet-down {
    grid-template-columns: repeat(2, 1fr);
    /* gap: 12px; */
  }

  .facets-container--custom {
    padding-top: 0;
  }

  .mobile-facets__wrapper {
    margin-bottom: 10px;
  }
}

/* ==========================================================================
   RESPONSIVE — SMALL PHONE  (< 480px)
   Extra tight adjustments
   ========================================================================== */
@media screen and (max-width: 479px) {

  /* Sort menu takes full width */
  .custom-sort-dropdown__menu {
    min-width: calc(100vw - 32px);
    right: auto;
    left: 0;
  }

  /* Pills stack more comfortably */
  .active-facets-pills-bar__inner {
    gap: 5px;
  }

  .active-facets-pills-bar__pill {
    font-size: 11px;
    padding: 4px 8px;
  }

  /* Drawer takes almost full screen on small phones */
  .mobile-facets__inner {
    width: calc(100% - 32px);
  }

  /* Slightly smaller touch thumbs on price slider */
  .facets__price-custom-thumb::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
  }

  /* 1-col product grid on very small screens */
  .product-grid.grid--1-col-tablet-down {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE — LARGE DESKTOP  (> 1400px)
   ========================================================================== */
@media screen and (min-width: 1400px) {
  :root {
    --cf-sidebar-width: 280px;
  }

  .facets-vertical .facets-wrapper {
    margin-right: 36px;
    width: var(--cf-sidebar-width);
  }

  .facets__form-vertical--custom {
    padding: 8px 18px;
  }
}