/** Shopify CDN: Minification failed

Line 1020:0 Unexpected "}"

**/
/* ============================================================================
   CUSTOM FACETS STYLES (component-facets-custom.css)
   ============================================================================
   All classes are namespaced with `facet-custom`, `facets-custom`,
   `price-range-custom`, `mobile-facets-custom`, or `applied-filters-custom`
   to avoid conflicts with the theme's existing facet styles.

   Color tokens (override in theme settings if needed):
     --fc-navy        Brand primary navy text/headings
     --fc-blue        Accent blue (active state, sliders, links)
     --fc-text        Body text
     --fc-muted       Secondary text / counts
     --fc-border      Hairline border
     --fc-bg          Card background
   ============================================================================ */

:root {
  --fc-navy: #0D1B3D;
  --fc-blue: #1E40AF;
  --fc-blue-hover: #1E3A8A;
  --fc-text: #1F2A4D;
  --fc-muted: #6B7280;
  --fc-border: #E5E7EB;
  --fc-border-strong: #D1D5DB;
  --fc-bg: #FFFFFF;
  --fc-bg-soft: #F9FAFB;
  --fc-pill-border: #C7CFDB;
  --fc-radius: 8px;
  --fc-radius-sm: 4px;
  --fc-shadow: 0 1px 2px rgba(13, 27, 61, 0.04);
}

/* Visually-hidden utility */
.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* ============================================================================
   SIDEBAR CONTAINER
   ============================================================================ */
.facets-custom {
  width: 100%;
  max-width: 280px;
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius);
  padding: 8px 0;
  box-shadow: var(--fc-shadow);
  align-self: flex-start;
  position: sticky;
  top: 16px;
  /* max-height: calc(100vh - 32px); */
  /* overflow-y: auto; */
  /* scrollbar-width: thin;
  scrollbar-color: var(--fc-border-strong) transparent; */
}

/* .facets-custom::-webkit-scrollbar { width: 6px; }
.facets-custom::-webkit-scrollbar-thumb {
  background: var(--fc-border-strong);
  border-radius: 3px;
}
.facets-custom::-webkit-scrollbar-track { background: transparent; } */

.facets-custom__form { display: block; }
.facets-custom__inner { display: block; }

/* ============================================================================
   INDIVIDUAL FILTER GROUP (<details>)
   ============================================================================ */
.facet-custom {
  border-bottom: 1px solid var(--fc-border);
  padding: 0;
}
.facet-custom:last-child { border-bottom: 0; }

.facet-custom__summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background-color 0.15s ease;
}
.facet-custom__summary::-webkit-details-marker,
.facet-custom__summary::marker { display: none; }
.facet-custom__summary:hover { background: var(--fc-bg-soft); }

.facet-custom__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fc-navy);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.fits-label{
    font-size: 14px;
    font-weight: 600;
    color: var(--fc-muted);
    letter-spacing: .01em;
    padding-bottom: 0.4em;
}

.facet-custom__chevron {
  color: var(--fc-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.facet-custom[open] > .facet-custom__summary .facet-custom__chevron {
  transform: rotate(180deg);
}

.facet-custom__content {
  padding: 0 20px 18px;
  animation: facetCustomFadeIn 0.2s ease;
}
@keyframes facetCustomFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.facet-custom__fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0; /* Prevent overflow inside flex/grid */
}

/* ============================================================================
   CHECKBOX LIST
   ============================================================================ */
.facet-custom__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facet-custom__list--scrollable {
  max-height: 280px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 10px;
  scrollbar-gutter: stable;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--fc-blue) var(--fc-border);
}
.facet-custom__list--scrollable::after {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  height: 24px;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,1)
  );
}

/* Chrome / Safari / Edge */
.facet-custom__list--scrollable::-webkit-scrollbar {
  width: 4px;
}

.facet-custom__list--scrollable::-webkit-scrollbar-track {
  background: var(--fc-border);
  border-radius: 999px;
}

.facet-custom__list--scrollable::-webkit-scrollbar-thumb {
  background: var(--fc-blue);
  border-radius: 999px;
}

.facet-custom__list--scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--fc-blue-hover, #1E3A8A);
}

.facet-custom__item {
  margin: 0;
  padding: 0;
}
.facet-custom__item.is-hidden { display: none; }

.facet-custom__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--fc-text);
  line-height: 1.4;
  position: relative;
  transition: color 0.15s ease;
}
.facet-custom__label:hover { color: var(--fc-navy); }
.facet-custom__label.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hide the native checkbox but keep it accessible */
.facet-custom__checkbox {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

/* Custom checkbox visual */
.facet-custom__checkbox-visual {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--fc-border-strong);
  border-radius: var(--fc-radius-sm);
  background: var(--fc-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  color: #FFFFFF;
}
.facet-custom__checkbox-visual svg {
  width: 12px;
  height: 10px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s ease;
}
.facet-custom__checkbox:checked ~ .facet-custom__checkbox-visual {
  background: var(--fc-blue);
  border-color: var(--fc-blue);
}
.facet-custom__checkbox:checked ~ .facet-custom__checkbox-visual svg {
  opacity: 1;
  transform: scale(1);
}
.facet-custom__checkbox:focus-visible ~ .facet-custom__checkbox-visual {
  outline: 2px solid var(--fc-blue);
  outline-offset: 2px;
}
.facet-custom__label:hover .facet-custom__checkbox-visual {
  border-color: var(--fc-blue);
}

.facet-custom__text {
  flex: 1;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  justify-content: space-between;
}
.facet-custom__count {
  color: var(--fc-muted);
  font-size: 13px;
  font-weight: 400;
}

/* ============================================================================
   BRAND SEARCH BOX (only inside .facet-custom--brand)
   ============================================================================ */
.facet-custom__search {
  position: relative;
  margin-bottom: 14px;
}
.facet-custom__search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--fc-muted);
  pointer-events: none;
  display: inline-flex;
}
.facet-custom__search-input {
  width: 100%;
  height: 40px;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--fc-border-strong);
  border-radius: var(--fc-radius-sm);
  font-size: 14px;
  color: var(--fc-text);
  background: var(--fc-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.facet-custom__search-input::placeholder { color: var(--fc-muted); }
.facet-custom__search-input:focus {
  outline: none;
  border-color: var(--fc-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.facet-custom__no-results {
  font-size: 13px;
  color: var(--fc-muted);
  text-align: center;
  padding: 16px 0;
  margin: 0;
}
.facet-custom__no-results.hidden { display: none; }

/* ============================================================================
   PRICE RANGE SLIDER
   ============================================================================ */
.price-range-custom {
  display: block;
  padding: 4px 4px 8px;
}

.price-range-custom__values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fc-navy);
}
.price-range-custom__currency {
  font-size: 11px;
  font-weight: 600;
  color: var(--fc-muted);
  text-transform: uppercase;
  margin-right: 2px;
  letter-spacing: 0.04em;
}
.price-range-custom__amount {
  font-variant-numeric: tabular-nums;
}

.price-range-custom__slider {
  position: relative;
  height: 24px;
  margin: 6px 10px 8px;
}
/* Static colored bar — does NOT change based on thumb positions */
.price-range-custom__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--fc-blue);
  border-radius: 2px;
  transform: translateY(-50%);
}
/* Defense-in-depth: even though the markup contains a hidden <span>, this
   guards against any future global `:empty { display: none }` rule (such as
   the one in template-collection.css) hiding the track. Scoped so it only
   affects this component. */
.price-range-custom__track:empty,
.price-range-custom .price-range-custom__track {
  display: block !important;
}
/* Legacy dynamic-fill element — kept in DOM for backward compat but hidden.
   Always empty by design, so we explicitly match `:empty` too in case a
   global `display: block` rule overrides the base hide. */
.price-range-custom__range,
.price-range-custom__range:empty {
  display: none !important;
}

/* Dual-thumb range inputs stacked on the same line */
.price-range-custom__thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  outline: none;
  pointer-events: none; /* enable on the thumb only */
  -webkit-appearance: none;
  appearance: none;
}
.price-range-custom__thumb::-webkit-slider-runnable-track {
  background: transparent;
  height: 4px;
  border: 0;
}
.price-range-custom__thumb::-moz-range-track {
  background: transparent;
  height: 4px;
  border: 0;
}
.price-range-custom__thumb::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fc-blue);
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(13, 27, 61, 0.25);
  cursor: grab;
  margin-top: -7px;
  transition: transform 0.1s ease;
}
.price-range-custom__thumb::-webkit-slider-thumb:hover { transform: scale(1.1); }
.price-range-custom__thumb::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.price-range-custom__thumb::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fc-blue);
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(13, 27, 61, 0.25);
  cursor: grab;
}
.price-range-custom__thumb:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.25);
}
.price-range-custom__thumb:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.25);
}

/* Layer the max thumb above so it can be grabbed when overlapping */
.price-range-custom__thumb--min { z-index: 2; }
.price-range-custom__thumb--max { z-index: 3; }

.price-range-custom__labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fc-muted);
  font-weight: 500;
  margin-top: 4px;
  padding: 0 2px;
}

/* ============================================================================
   APPLIED FILTER PILLS (Clear All + tags)
   ============================================================================ */
.applied-filters-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  min-height: 36px;
}
.applied-filters-custom:empty { display: none; }

.applied-filters-custom__clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fc-blue);
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  white-space: nowrap;
}
.applied-filters-custom__clear:hover {
  color: var(--fc-blue-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.applied-filters-custom__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--fc-pill-border);
  border-radius: 999px;
  background: var(--fc-bg);
  font-size: 13px;
  color: var(--fc-navy);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.applied-filters-custom__pill:hover {
  border-color: var(--fc-blue);
  box-shadow: 0 0 0 1px var(--fc-blue);
}
.applied-filters-custom__pill-label {
  color: var(--fc-muted);
  font-weight: 500;
}
.applied-filters-custom__pill-value { font-weight: 600; }
.applied-filters-custom__pill-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--fc-text);
}

/* ============================================================================
   SORT + PRODUCT COUNT TOOLBAR (above grid)
   ============================================================================ */
.collection-toolbar-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fc-border);
}

.collection-toolbar-custom__left { flex: 1 1 auto; min-width: 0; }

.collection-toolbar-custom__right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.sort-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fc-text);
}
.sort-custom__label {
  font-weight: 500;
  color: var(--fc-text);
  margin: 0;
}
.sort-custom__select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.sort-custom__select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 24px 6px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fc-navy);
  cursor: pointer;
  font-family: inherit;
}
.sort-custom__select:focus {
  outline: 2px solid var(--fc-blue);
  outline-offset: 2px;
  border-radius: 2px;
}
.sort-custom__select-icon {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--fc-navy);
  display: inline-flex;
}

.product-count-custom {
  font-size: 14px;
  color: var(--fc-text);
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}
.product-count-custom.is-hidden { display: none; }
.product-count-custom.loading { visibility: hidden; }

/* ============================================================================
   COLLECTION PAGE LAYOUT (sidebar + main column)
   ============================================================================ */
.collection-layout-custom {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 989px) {
  .collection-layout-custom {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.collection-layout-custom__main { min-width: 0; }

/* ============================================================================
   MOBILE DRAWER
   ============================================================================ */
.mobile-facets-custom__wrapper {
  display: block;
  margin-bottom: 16px;
}

.mobile-facets-custom__disclosure { display: block; }

.mobile-facets-custom__open-wrapper {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--fc-navy);
  border: 1px solid var(--fc-border-strong);
  border-radius: var(--fc-radius-sm);
  color: var(--fc-bg);
  font-weight: 600;
  font-size: 14px;
}
.mobile-facets-custom__open-wrapper::-webkit-details-marker,
.mobile-facets-custom__open-wrapper::marker { display: none; }
.mobile-facets-custom__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-facets-custom__close {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--fc-bg);
  border-radius: 50%;
  z-index: 102;
  color: var(--fc-navy);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 27, 61, 0.15);
}
details[open] > .mobile-facets-custom__open-wrapper .mobile-facets-custom__close { display: inline-flex; }

.mobile-facets-custom {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 27, 61, 0.45);
  pointer-events: none;
}

.mobile-facets-custom__inner {
  background: var(--fc-bg);
  width: calc(100% - 48px);
  max-width: 380px;
  height: 100%;
  margin-left: auto;
  pointer-events: auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
details.menu-opening .mobile-facets-custom__inner { transform: translateX(0); }

.mobile-facets-custom__header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--fc-border);
}
.mobile-facets-custom__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--fc-navy);
  margin: 0 0 4px;
}
.mobile-facets-custom__count {
  font-size: 13px;
  color: var(--fc-muted);
  margin: 0;
}
.mobile-facets-custom__main {
  padding: 0;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-facets-custom__main > .facet-custom { padding: 0 22px; }
.mobile-facets-custom__main > .facet-custom > .facet-custom__summary { padding: 18px 0; }
.mobile-facets-custom__main > .facet-custom > .facet-custom__content { padding: 0 0 18px; }

.mobile-facets-custom__footer {
  position: sticky;
  bottom: 0;
  background: var(--fc-bg);
  border-top: 1px solid var(--fc-border);
  padding: 16px 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  z-index:2;
}
.mobile-facets-custom__clear-wrap { flex: 0 0 auto; }
.mobile-facets-custom__clear {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fc-blue);
  text-decoration: none;
  padding: 10px 12px;
}
.mobile-facets-custom__clear:hover { text-decoration: underline; }
.mobile-facets-custom__apply {
  flex: 1;
  background: var(--fc-blue);
  color: #fff;
  border: 0;
  border-radius: var(--fc-radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: none;
}
.mobile-facets-custom__apply:hover { background: var(--fc-blue-hover); }

/* ============================================================================
   LOADING STATE
   ============================================================================ */
.collection-loading-custom { position: relative; }
.collection-loading-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
  pointer-events: none;
}

.facets-custom.is-loading { opacity: 0.55; pointer-events: none; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 989px) {
  .facets-custom { display: none; }
  .small-hide { display: none !important; }
}
@media (min-width: 990px) {
  .medium-hide { display: none !important; }
  .large-up-hide { display: none !important; }
}

/* ============================================================================
   EMPTY STATE — shown inside the product grid area when no products match
   ============================================================================ */
.empty-state-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  min-height: 400px;
  width: 100%;
  /* If placed inside a CSS grid (the product grid <ul>), span the full width */
  grid-column: 1 / -1;
  /* Ensure the loading-overlay does not cover the empty state */
  position: relative;
  z-index: 1;
}

.empty-state-custom__illustration {
  width: 140px;
  height: 140px;
  margin-bottom: 24px;
  flex-shrink: 0;
  display: block;
}

.empty-state-custom__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fc-navy, #0D1B3D);
  margin: 0 0 12px;
  line-height: 1.3;
  letter-spacing: 0;
}

.empty-state-custom__text {
  font-size: 15px;
  color: var(--fc-muted, #6B7280);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 749px) {
  .empty-state-custom {
    padding: 40px 16px;
    min-height: 320px;
  }
  .empty-state-custom__illustration {
    width: 110px;
    height: 110px;
    margin-bottom: 18px;
  }
  .empty-state-custom__title { font-size: 19px; }
  .empty-state-custom__text  { font-size: 14px; }
}

/* ============================================================================
   DISABLED SIDEBAR STATE
   Used on the search page when 0 results match — the sidebar still renders
   so the toolbar + grid don't shift, but the sidebar visually communicates
   "filters unavailable for this query".
   ============================================================================ */
.facets-custom--disabled {
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

.facets-custom__empty {
  padding: 32px 20px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.facets-custom__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fc-bg-soft, #F9FAFB);
  color: var(--fc-muted, #6B7280);
  margin-bottom: 14px;
}

.facets-custom__empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fc-navy, #0D1B3D);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

.facets-custom__empty-text {
  font-size: 13px;
  color: var(--fc-text, #1F2A4D);
  margin: 0 0 6px;
  line-height: 1.5;
}

.facets-custom__empty-hint {
  font-size: 12px;
  color: var(--fc-muted, #6B7280);
  margin: 0;
  line-height: 1.5;
}
/* ============================================================================
   MOBILE FILTER DRAWER OVERLAY FIX
   Overlay must ONLY appear when the drawer is open. We use the drawer's
   own [open] attribute (assuming <details>-based drawer) OR an explicit
   .is-open class. Both are handled.
   ============================================================================ */
.mobile-facets-custom__overlay,
.mobile-facets-custom .overlay,
[data-mobile-facets] .overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 99;
}

/* When the drawer is in an open state, fade the overlay in */
mobile-facets-custom[open] .mobile-facets-custom__overlay,
.mobile-facets-custom[open] .overlay,
.mobile-facets-custom.is-open .overlay,
body.mobile-facets-open .mobile-facets-custom__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Lock body scroll when drawer is open */
body.mobile-facets-open {
  overflow: hidden;
}

/* ============================================================================
   FILTER + SORT ON SAME LINE (MOBILE/TABLET)
   ============================================================================ */
.collection-toolbar-custom__mobile-filter-btn {
  display: none;  /* hidden on desktop */
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--fc-border, #E5E7EB);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fc-text, #1F2A4D);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.collection-toolbar-custom__mobile-filter-btn:hover {
  border-color: var(--fc-blue, #2563EB);
  color: var(--fc-blue, #2563EB);
}
.collection-toolbar-custom__mobile-filter-btn:focus-visible {
  outline: 2px solid var(--fc-blue, #2563EB);
  outline-offset: 2px;
}
.collection-toolbar-custom__mobile-filter-btn svg {
  flex-shrink: 0;
}

@media (max-width: 749px) {
  .collection-toolbar-custom {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-bottom: 12px;
  }

  /* The relocated filter button wrapper sits on the left */
  .collection-toolbar-custom .mobile-facets-custom__wrapper,
  .collection-toolbar-custom .mobile-facets-custom__disclosure {
    flex: 0 0 auto;
    margin: 0;
    order: 1;   /* leftmost */
  }

  /* Hide the applied pills row on mobile — pills live inside the drawer */
  .collection-toolbar-custom__left {
    display: none;
  }

  /* Sort + count cluster on the right */
  .collection-toolbar-custom__right {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    order: 2;
  }

  .product-count-custom {
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
    display:none;
  }
  .sort-custom__label {
    display: none;   /* save horizontal space — dropdown still labelled by aria */
  }
  .sort-custom__select {
    font-size: 13px;
    padding: 8px 28px 8px 10px;
    font-weight: 600;
  }
}
}

/* ============================================================================
   CONTENT BLOCK STYLING
   ============================================================================ */
.search-content-block {
  padding: 15px 1.75rem;
}

.search-content-block__heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-navy, #0D1B3D);
  margin: 0 0 4px;
}

.search-content-block__text {
  font-size: 11px;
  line-height: 1.55;
  color: var(--fc-text, #1F2A4D);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-content-block__text :last-child {
  margin-bottom: 0;
}
.search-content-block__toggle {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fc-blue, #2563EB);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.search-content-block.is-expanded .search-content-block__text {
  -webkit-line-clamp: unset;
  overflow: visible;
}
@media (max-width: 749px) {
  .search-content-block {
    padding: 14px 1.75rem;
  }
  .search-content-block__heading {
    font-size: 13px;
  }
}
/* ============================================================================
   MOBILE DRAWER OVERLAY — corrected
   ----------------------------------------------------------------------------
   The .mobile-facets-custom element IS the dark backdrop (it has fixed
   inset:0 + dark background). Hide it by default; only show when the parent
   <details> is open or has menu-opening class.
   ============================================================================ */

/* Default: transparent + invisible to clicks, even when rendered */
.mobile-facets-custom {
  background: transparent !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: visibility 0s 0.25s, opacity 0.2s ease, background-color 0.2s ease !important;
}

/* Visible only when the drawer is in an open state — covers all common
   patterns: <details open>, .menu-opening class, .is-open class, body class */
details[open] > .mobile-facets-custom,
details.menu-opening > .mobile-facets-custom,
.mobile-facets-custom__disclosure[open] .mobile-facets-custom,
.mobile-facets-custom__disclosure.menu-opening .mobile-facets-custom,
.mobile-facets-custom.menu-opening,
.mobile-facets-custom.is-open,
body.mobile-facets-open .mobile-facets-custom {
  background: rgba(13, 27, 61, 0.45) !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: visibility 0s, opacity 0.2s ease, background-color 0.2s ease !important;
  /* pointer-events stays none — only the inner panel takes clicks */
}

/* The close button (cross icon) — only visible when drawer is open */
.mobile-facets-custom__close {
  display: none !important;
}
details[open] .mobile-facets-custom__close,
details.menu-opening .mobile-facets-custom__close,
body.mobile-facets-open .mobile-facets-custom__close {
  display: inline-flex !important;
}

/* Lock body scroll when drawer is open */
body.mobile-facets-open {
  overflow: hidden !important;
}
/* When every value in a filter section is hidden by fitment scoping,
   collapse the entire section so users don't see an empty filter. */
.facet-custom.facet-custom--all-hidden {
  display: none;
}
/* ============================================================================
   VIEW MORE / VIEW LESS — for brand-style filters (e.g. Fits Your Vehicle)
   ============================================================================ */
.facet-custom__item.is-view-more-hidden {
  display: none;
}
.facet-custom__list--view-more.is-expanded .facet-custom__item.is-view-more-hidden {
  display: block;
}
.facet-custom__list--view-more.is-searching .facet-custom__item.is-view-more-hidden {
  display: block;
}

.facet-custom__view-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-blue, #1E40AF);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.facet-custom__view-more:hover {
  color: var(--fc-blue-hover, #1E3A8A);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.facet-custom__view-more:focus-visible {
  outline: 2px solid var(--fc-blue, #1E40AF);
  outline-offset: 2px;
  border-radius: 4px;
}
.facet-custom__view-more.is-hidden {
  display: none;
}
/* =========================================================
   CAROUM FILTERS — COMPACT DESKTOP DENSITY
   ========================================================= */

@media screen and (min-width: 990px) {
  .facets-custom {
    font-size: 14px;
  }

  .facets-custom__inner {
    border-radius: 12px;
    overflow: hidden;
  }

  .facet-custom {
    border-bottom: 1px solid #e8ebf0;
  }

  .facet-custom:last-child {
    border-bottom: 0;
  }

  .facet-custom__summary {
    min-height: 54px;
    padding: 0 20px;
  }

  .facet-custom__title {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
  }

  .facet-custom__content {
    padding: 2px 20px 18px;
  }

  .facet-custom__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
  }

  .facet-custom__item {
    margin: 0;
  }

  .facet-custom__label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .facet-custom__checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .facet-custom__checkbox-visual {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 4px;
  }

  .facet-custom__text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .facet-custom__count {
    margin-left: auto;
    color: #98a1b2;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  .facet-custom__view-more {
    margin-top: 8px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
  }

  .facet-custom__search {
    margin-bottom: 10px;
  }

  .facet-custom__search-input {
    height: 38px;
    font-size: 13px;
  }

  .fits-label {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .price-range-custom__values {
    margin-bottom: 12px;
  }

  .price-range-custom__currency {
    font-size: 10px;
  }

  .price-range-custom__amount {
    font-size: 14px;
  }

  .price-range-custom__labels {
    margin-top: 8px;
    font-size: 11px;
  }
}
/* =========================================================
   CAROUM FILTERS — FINAL DENSITY TUNING
   ========================================================= */

@media screen and (min-width: 990px) {

  /* Filter section heading */
  .facet-custom__summary {
    min-height: 50px;
    padding: 0 16px;
  }

  /* Filter contents */
  .facet-custom__content {
    padding: 0 16px 14px;
  }

  /* Individual option */
  .facet-custom__label {
    gap: 10px;
    min-height: 30px;
    padding: 3px 0;
    font-size: 14px;
    line-height: 1.3;
  }

  /* Keep checkbox aligned with first line */
  .facet-custom__checkbox-visual {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
  }

  /* Text + count */
  .facet-custom__text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
  }

  .facet-custom__count {
    margin: 0;
    font-size: 12px;
    line-height: 1;
    align-self: center;
  }

  /* Much more restrained hover */
  .facet-custom__label:hover {
    background: transparent;
    color: var(--fc-navy);
  }

  /* Don't create giant hover pills */
  .facet-custom__item:hover,
  .facet-custom__item:hover .facet-custom__label {
    border-radius: 0;
    box-shadow: none;
  }

  /* View more */
  .facet-custom__view-more {
    margin-top: 6px;
    padding: 3px 0;
    font-size: 13px;
  }
}