/* Category hero + AJAX filters — isolated .fst-cat-* / .fst-filter-* */
body.fst-cat-page {
  --fst-primary: #d81b60;
  --fst-primary-hover: #b7154f;
  --fst-text: #1f1f1f;
  --fst-muted: #666666;
  --fst-muted-2: #757575;
  --fst-bg: #f7f7f7;
  --fst-border: #ebebeb;
  --fst-radius: 8px;
  --fst-pill: 50px;
  --fst-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Collapse theme sidebar — content stays on header rail (not viewport-wide) */
body.fst-cat-page.sidebar-none #secondary,
body.fst-cat-page .widget-area:not(.fst-filter-drawer) {
  display: none !important;
}

/* Match .fs-hdr__inner: max-width 1300px + 20px side padding (border-box) */
body.fst-cat-page .site-content.fixed,
body.fst-cat-page .site-content {
  max-width: 1300px !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Zero theme gutters on wrappers — horizontal padding lives on .site-content */
body.fst-cat-page .site-content-inner,
body.fst-cat-page .content-area,
body.fst-cat-page #primary,
body.fst-cat-page .site-main {
  display: block;
  max-width: none !important;
  width: 100% !important;
  flex: 1 1 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Breadcrumbs */
body.fst-cat-page .woocommerce-breadcrumb {
  margin: 0 0 14px;
  padding: 0;
  color: #9a9a9a;
  font-size: 13px;
  line-height: 1.4;
  background: none;
  border: 0;
}
body.fst-cat-page .woocommerce-breadcrumb a {
  color: #9a9a9a;
  text-decoration: none;
}
body.fst-cat-page .woocommerce-breadcrumb a:hover {
  color: var(--fst-primary);
}
body.fst-cat-page .woocommerce-breadcrumb .fst-crumbs__sep {
  margin: 0 6px;
  color: #c5c5c5;
}
body.fst-cat-page .woocommerce-breadcrumb > span:last-child,
body.fst-cat-page .woocommerce-breadcrumb > *:last-child {
  color: var(--fst-text);
  font-weight: 600;
}

/* Hide leftover theme title if still emitted empty */
body.fst-cat-page h1.page-title:not(.fst-cat-hero__title) {
  display: none !important;
}
body.fst-cat-page .woocommerce-ordering {
  display: none !important;
}

/* Grid denser when sidebar gone — kill theme negative margins so 4 cols stay on rail */
body.fst-cat-page .shop-grid,
body.fst-cat-page .shop-grid.shop-grid--columns-4 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
body.fst-cat-page .shop-grid.shop-grid--columns-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
}
body.fst-cat-page .shop-grid > .shop-item {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
}
@media (max-width: 1199px) {
  body.fst-cat-page .shop-grid.shop-grid--columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  body.fst-cat-page .shop-grid.shop-grid--columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
}

body.fst-cat-page .shop-grid.is-loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
  min-height: 240px;
  transition: opacity 0.2s ease;
}
body.fst-cat-page .shop-grid.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 120px;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid var(--fst-border);
  border-top-color: var(--fst-primary);
  border-radius: 50%;
  animation: fst-cat-spin 0.7s linear infinite;
}
@keyframes fst-cat-spin {
  to { transform: rotate(360deg); }
}

/* Hero */
.fst-cat-hero {
  margin: 0 0 22px;
}
.fst-cat-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 12px;
}
.fst-cat-hero__title .page-number {
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}
.fst-cat-hero__title {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--fst-text);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.fst-cat-hero__count {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(216, 27, 96, 0.07);
  box-shadow: inset 0 0 0 1px rgba(216, 27, 96, 0.12);
  color: var(--fst-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.fst-cat-hero__intro {
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--fst-muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.fst-cat-hero__intro p {
  margin: 0 0 0.55em;
}
.fst-cat-hero__intro p:last-child {
  margin-bottom: 0;
}

/* Long SEO copy under product grid (page 1) */
.fst-cat-seo {
  margin: 28px 0 8px;
  padding: 22px 0 4px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  color: var(--fst-muted, #6b6b6b);
  font-size: 14.5px;
  line-height: 1.6;
}
.fst-cat-seo__inner {
  max-width: 820px;
}
.fst-cat-seo__inner p {
  margin: 0 0 0.85em;
}
.fst-cat-seo__inner p:last-child {
  margin-bottom: 0;
}
.fst-cat-seo__inner h2,
.fst-cat-seo__inner h3 {
  margin: 1.1em 0 0.45em;
  color: var(--fst-ink, #1a1a1a);
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.3;
}
.fst-cat-seo__inner ul,
.fst-cat-seo__inner ol {
  margin: 0 0 0.85em;
  padding-left: 1.2em;
}
@media (max-width: 767px) {
  .fst-cat-seo {
    margin-top: 20px;
    padding-top: 16px;
    font-size: 14px;
  }
}

/* SEO selection pills — single-row scroller + chevrons */
body.fst-cat-page .fst-cat-pills {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 4px 0 14px;
  max-width: 100%;
}
body.fst-cat-page .fst-cat-pills.is-overflow {
  padding: 0 36px;
}
body.fst-cat-page .fst-cat-pills__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 2px 4px 6px;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
}
body.fst-cat-page .fst-cat-pills__track::-webkit-scrollbar {
  display: none;
}
body.fst-cat-page .fst-cat-pills__track.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}
body.fst-cat-page .fst-cat-pills__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  background: #fff;
  color: var(--fst-primary, #d81b60);
  box-shadow: 0 2px 10px rgba(20, 20, 20, 0.08);
  cursor: pointer;
  transform: translateY(-55%);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
body.fst-cat-page .fst-cat-pills__nav:hover,
body.fst-cat-page .fst-cat-pills__nav:focus-visible {
  background: #fff5f8;
  border-color: var(--fst-primary, #d81b60);
  color: var(--fst-primary, #d81b60);
  outline: none;
  box-shadow: 0 3px 12px rgba(216, 27, 96, 0.16);
}
body.fst-cat-page .fst-cat-pills__nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
body.fst-cat-page .fst-cat-pills__nav--prev {
  left: 0;
  transform: translateY(-55%) scaleX(-1);
}
body.fst-cat-page .fst-cat-pills__nav--next {
  right: 0;
}
body.fst-cat-page .fst-cat-pills__nav[hidden] {
  display: none !important;
}
body.fst-cat-page a.fst-cat-pill,
body.fst-cat-page .fst-cat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  box-sizing: border-box;
  margin: 0;
  min-height: 38px;
  padding: 8px 18px;
  border: 1px solid #e8e8e8 !important;
  border-radius: 50px !important;
  background: #f7f7f7 !important;
  color: var(--fst-text, #1f1f1f) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
body.fst-cat-page a.fst-cat-pill:hover,
body.fst-cat-page a.fst-cat-pill:focus-visible,
body.fst-cat-page .fst-cat-pill:hover,
body.fst-cat-page .fst-cat-pill:focus-visible {
  border-color: var(--fst-primary, #d81b60) !important;
  background: #fff5f8 !important;
  color: var(--fst-primary, #d81b60) !important;
  text-decoration: none !important;
  outline: none;
}
body.fst-cat-page a.fst-cat-pill:active,
body.fst-cat-page .fst-cat-pill:active {
  background: #ffe8f0 !important;
}
body.fst-cat-page a.fst-cat-pill.is-active,
body.fst-cat-page .fst-cat-pill.is-active {
  background: var(--fst-primary, #d81b60) !important;
  border-color: var(--fst-primary, #d81b60) !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  body.fst-cat-page .fst-cat-pills {
    margin: 2px 0 12px;
  }
  body.fst-cat-page .fst-cat-pills.is-overflow {
    padding: 0 30px;
  }
  body.fst-cat-page .fst-cat-pills__track {
    gap: 8px;
    padding: 2px 20px 6px 0;
  }
  body.fst-cat-page .fst-cat-pills__nav {
    width: 28px;
    height: 28px;
  }
  body.fst-cat-page a.fst-cat-pill,
  body.fst-cat-page .fst-cat-pill {
    min-height: 40px;
    padding: 9px 16px;
  }
}

/* Toolbar */
body.fst-cat-page .fst-filter-bar {
  position: relative;
  margin: 0 0 24px; /* prior gap ~51px (bar+empty shop-sorting); ~half after trim */
  z-index: 20;
}
/* Theme leftover under filters (often empty) — was ~30px of dead space */
body.fst-cat-page .shop-sorting {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  min-height: 0 !important;
}
body.fst-cat-page .shop-sorting:empty {
  display: none !important;
  margin: 0 !important;
}
body.fst-cat-page .fst-filter-bar__desktop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 4px 0;
}
body.fst-cat-page .fst-filter-bar__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
body.fst-cat-page .fst-filter-bar__mobile {
  display: none;
}
body.fst-cat-page .fst-filter-bar__mob-btn,
body.fst-cat-page .fst-filter-dd__btn,
body.fst-cat-page .fst-filter-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  color: var(--fst-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
}
body.fst-cat-page .fst-filter-all {
  font-weight: 500;
}
body.fst-cat-page .fst-filter-dd__ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(216, 27, 96, 0.07);
  color: var(--fst-primary);
  box-shadow: inset 0 0 0 1px rgba(216, 27, 96, 0.1);
}
body.fst-cat-page .fst-filter-dd__ico .fst-filter-section__svg {
  width: 15px;
  height: 15px;
}
body.fst-cat-page .fst-filter-dd__lbl {
  font-weight: 400;
}
body.fst-cat-page .fst-filter-dd__btn:hover,
body.fst-cat-page .fst-filter-all:hover,
body.fst-cat-page .fst-filter-bar__mob-btn:hover {
  border-color: rgba(216, 27, 96, 0.4);
  color: var(--fst-primary);
  box-shadow: 0 4px 14px rgba(216, 27, 96, 0.08);
}
body.fst-cat-page .fst-filter-dd.is-open .fst-filter-dd__btn {
  border-color: var(--fst-primary);
  color: var(--fst-primary);
  box-shadow: 0 4px 14px rgba(216, 27, 96, 0.1);
}
body.fst-cat-page .fst-filter-dd.is-open .fst-filter-dd__ico {
  background: rgba(216, 27, 96, 0.12);
}
body.fst-cat-page .fst-filter-bar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fst-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
body.fst-cat-page .fst-filter-bar__badge[hidden] {
  display: none !important;
}

body.fst-cat-page .fst-filter-dd {
  position: relative;
}
body.fst-cat-page .fst-filter-dd__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  min-width: 300px;
  max-width: min(440px, 92vw);
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: visible;
  animation: fst-dd-in 0.18s ease;
}
body.fst-cat-page .fst-filter-dd__panel--wide {
  min-width: 360px;
  padding: 20px 22px 18px;
}
@keyframes fst-dd-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

body.fst-cat-page .fst-filter-sort {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}
body.fst-cat-page .fst-filter-sort__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 210px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  color: var(--fst-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
body.fst-cat-page .fst-filter-sort__btn:hover,
body.fst-cat-page .fst-filter-sort.is-open .fst-filter-sort__btn {
  border-color: var(--fst-primary);
  color: var(--fst-primary);
  box-shadow: 0 4px 14px rgba(216, 27, 96, 0.1);
}
body.fst-cat-page .fst-filter-sort__chev {
  flex: 0 0 auto;
  opacity: 0.7;
  transition: transform 0.18s ease;
}
body.fst-cat-page .fst-filter-sort.is-open .fst-filter-sort__chev {
  transform: rotate(180deg);
}
body.fst-cat-page .fst-filter-sort__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 45;
  list-style: none;
  margin: 0;
  min-width: 100%;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  animation: fst-dd-in 0.18s ease;
}
body.fst-cat-page .fst-filter-sort__opt {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--fst-text);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
body.fst-cat-page .fst-filter-sort__opt:hover {
  background: #f7f7f7;
  color: var(--fst-primary);
}
body.fst-cat-page .fst-filter-sort__opt.is-active {
  background: rgba(216, 27, 96, 0.1);
  color: var(--fst-primary);
  font-weight: 700;
}
body.fst-cat-page .fst-filter-sort__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.fst-cat-page .fst-filter-sortsheet__list {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0 4px 8px;
}
body.fst-cat-page .fst-filter-sortsheet__list .fst-filter-sort__opt {
  padding: 14px 12px;
  border-bottom: 1px solid #f2f2f2;
  border-radius: 0;
}
body.fst-cat-page .fst-filter-sortsheet__list .fst-filter-sort__opt:last-child {
  border-bottom: 0;
}

/* Price dual range */
body.fst-cat-page .fst-filter-price__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
body.fst-cat-page .fst-filter-price__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
body.fst-cat-page .fst-filter-price__lbl {
  color: var(--fst-muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
body.fst-cat-page .fst-filter-price__wrap {
  position: relative;
  display: block;
}
body.fst-cat-page .fst-filter-price__wrap input {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--fst-text);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
body.fst-cat-page .fst-filter-price__rub {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fst-muted-2);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}
body.fst-cat-page .fst-filter-price__wrap input:hover {
  border-color: #ddd;
  background: #fff;
}
body.fst-cat-page .fst-filter-price__wrap input:focus {
  border-color: var(--fst-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(216, 27, 96, 0.12);
  outline: none;
}
/* Dual range: custom rail + transparent native tracks (avoids clipped thumbs) */
body.fst-cat-page .fst-filter-price__slider {
  --fst-lo: 0%;
  --fst-hi: 100%;
  position: relative;
  height: 40px;
  margin: 6px 4px 2px;
  overflow: visible;
}
body.fst-cat-page .fst-filter-price__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #e8e8e8 0%,
    #e8e8e8 var(--fst-lo),
    var(--fst-primary) var(--fst-lo),
    var(--fst-primary) var(--fst-hi),
    #e8e8e8 var(--fst-hi),
    #e8e8e8 100%
  );
  pointer-events: none;
  z-index: 0;
}
body.fst-cat-page .fst-filter-price__range {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  pointer-events: none;
  appearance: none !important;
  -webkit-appearance: none !important;
  z-index: 1;
}
body.fst-cat-page .fst-filter-price__range--max {
  z-index: 2;
}
body.fst-cat-page .fst-filter-price__range:focus {
  outline: none !important;
}
/* Kill native track completely — rail draws the track */
body.fst-cat-page .fst-filter-price__range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 40px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: transparent;
}
body.fst-cat-page .fst-filter-price__range::-moz-range-track {
  height: 40px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
body.fst-cat-page .fst-filter-price__range::-moz-focus-outer {
  border: 0;
}
body.fst-cat-page .fst-filter-price__range::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin-top: 10px; /* (40 - 20) / 2 */
  border: 0 !important;
  border-radius: 50%;
  background-color: #d81b60 !important;
  background-image: none !important;
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(216, 27, 96, 0.4);
  pointer-events: auto;
  cursor: grab;
  position: relative;
  z-index: 5;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.fst-cat-page .fst-filter-price__range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px #fff, 0 3px 12px rgba(216, 27, 96, 0.45);
}
body.fst-cat-page .fst-filter-price__range::-webkit-slider-thumb:active {
  transform: scale(1.05);
}
body.fst-cat-page .fst-filter-price__range::-moz-range-thumb {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #d81b60;
  box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(216, 27, 96, 0.4);
  pointer-events: auto;
  cursor: pointer;
}
body.fst-cat-page .fst-filter-price__range::-moz-range-progress {
  background: transparent;
  height: 40px;
}

/* Qty chips */
body.fst-cat-page .fst-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding: 6px 4px 2px; /* room for badges that peek past chip edges */
  overflow: visible;
}
body.fst-cat-page .fst-filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 46px;
  /* Top/right pad keeps main qty clear of corner badge */
  padding: 16px 22px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  background: #fff;
  overflow: visible;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
body.fst-cat-page .fst-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.fst-cat-page .fst-filter-chip__val {
  position: relative;
  z-index: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--fst-text);
  font-variant-numeric: tabular-nums;
}
/* Corner facet badge — absolute, no layout reflow; peeks past chip edge */
body.fst-cat-page .fst-filter-count {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #efefef;
  color: #8a8a8a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
/* Qty: badge sits outside the pill so digits stay fully readable */
body.fst-cat-page .fst-filter-chip .fst-filter-count {
  top: -8px;
  right: -8px;
}
body.fst-cat-page .fst-filter-chip.is-on {
  border-color: var(--fst-primary);
  background: rgba(216, 27, 96, 0.08);
  box-shadow: 0 2px 8px rgba(216, 27, 96, 0.1);
}
body.fst-cat-page .fst-filter-chip.is-on .fst-filter-chip__val {
  color: var(--fst-primary);
}
body.fst-cat-page .fst-filter-chip.is-on .fst-filter-count {
  background: rgba(216, 27, 96, 0.12);
  color: var(--fst-primary);
}
body.fst-cat-page .fst-filter-chip.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Color swatches */
body.fst-cat-page .fst-filter-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 6px 4px 2px;
  overflow: visible;
}
body.fst-cat-page .fst-filter-swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px 14px 12px; /* right room so name never under badge */
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: visible;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
body.fst-cat-page .fst-filter-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.fst-cat-page .fst-filter-swatch__dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
body.fst-cat-page .fst-filter-swatch__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--fst-text);
}
body.fst-cat-page .fst-filter-swatch .fst-filter-count {
  top: -6px;
  right: -6px;
}
body.fst-cat-page .fst-filter-swatch.is-on {
  border-color: var(--fst-primary);
  background: rgba(216, 27, 96, 0.06);
  box-shadow: 0 2px 8px rgba(216, 27, 96, 0.08);
}
body.fst-cat-page .fst-filter-swatch.is-on .fst-filter-swatch__dot {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--fst-primary);
}
body.fst-cat-page .fst-filter-swatch.is-on .fst-filter-count {
  background: rgba(216, 27, 96, 0.12);
  color: var(--fst-primary);
}
body.fst-cat-page .fst-filter-swatch.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

body.fst-cat-page .fst-filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}
body.fst-cat-page .fst-filter-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 40px 12px 8px; /* right pad for corner count badge */
  font-size: 14px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease;
}
body.fst-cat-page .fst-filter-check:hover {
  background: #fafafa;
}
body.fst-cat-page .fst-filter-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
body.fst-cat-page .fst-filter-check__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
body.fst-cat-page .fst-filter-check__box::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 2px auto 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}
body.fst-cat-page .fst-filter-check.is-on .fst-filter-check__box,
body.fst-cat-page .fst-filter-check input:checked + .fst-filter-check__box {
  border-color: var(--fst-primary);
  background: var(--fst-primary);
  box-shadow: 0 2px 6px rgba(216, 27, 96, 0.28);
}
body.fst-cat-page .fst-filter-check.is-on .fst-filter-check__box::after,
body.fst-cat-page .fst-filter-check input:checked + .fst-filter-check__box::after {
  transform: rotate(45deg) scale(1);
}
body.fst-cat-page .fst-filter-check__label {
  flex: 1 1 auto;
  font-weight: 550;
  color: var(--fst-text);
}
body.fst-cat-page .fst-filter-check .fst-filter-count {
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}
body.fst-cat-page .fst-filter-check.is-on .fst-filter-count {
  background: rgba(216, 27, 96, 0.12);
  color: var(--fst-primary);
}
body.fst-cat-page .fst-filter-check.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Active chips */
body.fst-cat-page .fst-filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  min-height: 0;
}
body.fst-cat-page .fst-filter-chips-row:empty {
  display: none;
  margin: 0;
}
body.fst-cat-page .fst-filter-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #eee;
  border-radius: 999px;
  background: #f7f7f7;
  color: var(--fst-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
body.fst-cat-page .fst-filter-active:hover {
  border-color: rgba(216, 27, 96, 0.4);
  background: #fff;
  color: var(--fst-primary);
}
body.fst-cat-page .fst-filter-active.is-reset {
  border-color: transparent;
  background: transparent;
  color: var(--fst-primary);
  padding-left: 6px;
}

/* Floating tip */
.fst-filter-tip {
  position: absolute;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #1f1f1f;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--fst-shadow);
  transform: translateY(0);
  animation: fst-dd-in 0.16s ease;
}
.fst-filter-tip[hidden] {
  display: none !important;
}
.fst-filter-tip button {
  border: 0;
  border-radius: 999px;
  background: var(--fst-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

/* Drawer / bottom sheet */
.fst-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(20, 16, 18, 0.45);
}
.fst-filter-backdrop[hidden] {
  display: none !important;
}
.fst-filter-drawer {
  position: fixed;
  z-index: 1000001;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -16px 0 40px rgba(20, 16, 18, 0.12);
}
.fst-filter-drawer[hidden] {
  display: none !important;
}
@media (min-width: 900px) {
  .fst-filter-drawer {
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100%;
    transform: translateX(0);
    animation: fst-drawer-x 0.22s ease;
  }
}
@keyframes fst-drawer-x {
  from { transform: translateX(12px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 899px) {
  .fst-filter-drawer {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88vh, 720px);
    border-radius: 18px 18px 0 0;
    transform: translateY(0);
    animation: fst-drawer-y 0.24s ease;
  }
}
@keyframes fst-drawer-y {
  from { transform: translateY(24px); }
  to { transform: translateY(0); }
}
.fst-filter-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--fst-border);
}
.fst-filter-drawer__head strong {
  font-size: 17px;
}
.fst-filter-drawer__close,
.fst-filter-sortsheet [data-fst-close-sort] {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--fst-bg);
  color: var(--fst-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.fst-filter-drawer__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px 16px 20px;
  -webkit-overflow-scrolling: touch;
}
.fst-filter-section {
  padding: 4px 0;
  border-bottom: 1px solid var(--fst-border);
}
.fst-filter-section:last-child {
  border-bottom: 0;
}
.fst-filter-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--fst-text);
}
.fst-filter-section__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fst-filter-section__ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(216, 27, 96, 0.07);
  color: var(--fst-primary);
  box-shadow: inset 0 0 0 1px rgba(216, 27, 96, 0.1);
  line-height: 1;
}
.fst-filter-section__svg {
  display: block;
}
.fst-filter-section__txt {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}
.fst-filter-section__chev {
  flex: 0 0 auto;
  color: #9a9a9a;
  transition: transform 0.18s ease;
}
.fst-filter-section.is-open .fst-filter-section__chev {
  transform: rotate(180deg);
}
.fst-filter-section__body {
  padding: 0 0 16px;
}
.fst-filter-section__body[hidden] {
  display: none !important;
}
.fst-filter-soon {
  margin: 0;
  color: var(--fst-muted-2);
  font-size: 13px;
  line-height: 1.45;
}
.fst-filter-drawer__foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--fst-border);
  background: #fff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}
.fst-filter-drawer__reset {
  height: 48px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--fst-primary);
  font-weight: 700;
  cursor: pointer;
}
.fst-filter-drawer__apply {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--fst-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  box-shadow: 0 8px 20px rgba(216, 27, 96, 0.28);
  cursor: pointer;
}
.fst-filter-drawer__apply:hover {
  background: var(--fst-primary-hover);
}

.fst-filter-sortsheet {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  background: rgba(20, 16, 18, 0.45);
}
.fst-filter-sortsheet[hidden] {
  display: none !important;
}
.fst-filter-sortsheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px 20px;
  border-radius: 18px 18px 0 0;
  background: #fff;
  animation: fst-drawer-y 0.24s ease;
}
.fst-filter-sortsheet .fst-filter-sort {
  display: block;
  margin: 8px 0 12px;
}
.fst-filter-sortsheet select {
  width: 100%;
}

body.fst-filter-lock {
  overflow: hidden;
}

.fst-filter-empty {
  grid-column: 1 / -1;
  margin: 24px 0;
  color: var(--fst-muted);
  font-size: 15px;
}

/* Premium WooCommerce pagination (AJAX-replaced nav stays same markup) */
body.fst-cat-page .woocommerce-pagination {
  margin: 28px 0 8px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
body.fst-cat-page .woocommerce-pagination ul.page-numbers,
body.fst-cat-page .woocommerce-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: none;
}
body.fst-cat-page .woocommerce-pagination ul.page-numbers > li {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  float: none;
}
body.fst-cat-page .woocommerce-pagination .page-numbers a.page-numbers,
body.fst-cat-page .woocommerce-pagination .page-numbers span.page-numbers,
body.fst-cat-page .woocommerce-pagination a.page-numbers,
body.fst-cat-page .woocommerce-pagination span.page-numbers {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #e8e8e8;
  border-radius: 12px !important;
  background: #fff;
  color: #5c5c5c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease;
}
body.fst-cat-page .woocommerce-pagination a.page-numbers:hover,
body.fst-cat-page .woocommerce-pagination a.page-numbers:focus,
body.fst-cat-page .woocommerce-pagination a.page-numbers:focus-visible,
body.fst-cat-page .woocommerce-pagination ul.page-numbers > li a.page-numbers:hover,
body.fst-cat-page .woocommerce-pagination ul.page-numbers > li a.page-numbers:focus {
  border-radius: 12px !important;
  border-color: rgba(216, 27, 96, 0.35) !important;
  background: rgba(216, 27, 96, 0.06) !important;
  color: var(--fst-primary) !important;
  outline: none;
}
body.fst-cat-page .woocommerce-pagination span.page-numbers.current,
body.fst-cat-page .woocommerce-pagination .page-numbers.current {
  border-color: var(--fst-primary);
  background: var(--fst-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.28);
  pointer-events: none;
}
body.fst-cat-page .woocommerce-pagination span.page-numbers.dots,
body.fst-cat-page .woocommerce-pagination .page-numbers.dots {
  min-width: 28px;
  border-color: transparent;
  background: transparent;
  color: #b0b0b0;
  box-shadow: none;
  pointer-events: none;
}
body.fst-cat-page .woocommerce-pagination a.prev.page-numbers,
body.fst-cat-page .woocommerce-pagination a.next.page-numbers {
  font-size: 16px;
  letter-spacing: 0;
}

@media (max-width: 899px) {
  body.fst-cat-page .fst-filter-bar__desktop {
    display: none;
  }
  body.fst-cat-page .fst-filter-bar__mobile {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px 0 12px;
    background: linear-gradient(#fff 75%, rgba(255, 255, 255, 0));
  }
  body.fst-cat-page .fst-filter-bar__mob-btn {
    justify-content: center;
    width: 100%;
  }
  body.fst-cat-page .fst-cat-hero__title {
    font-size: 22px;
  }
  body.fst-cat-page .fst-filter-sort__btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  body.fst-cat-page .site-content.fixed,
  body.fst-cat-page .site-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fst-filter-dd__panel,
  .fst-filter-drawer,
  .fst-filter-sortsheet__panel,
  .fst-cat-pill {
    animation: none !important;
    transition: none !important;
  }
}
