/* KICKSTW reskin: the new product-list filter (templates/listing/facets*.php, assets/js/facets.js).
   Loaded after listing.css, only while the filter is on for the request (Facet_Query::on()).
   Look: site_prototype/filter.html, version "Proposed", layout "Left rail"; behaviour: spec
   2026-11-13-product-filter-rebuild §4.9-§4.13. Every selector starts body.kt-skin-listing.
   Above 720px the filter is a 248px rail beside the results that sticks 16px from the top, is
   never taller than the window below it (facets.js says where it lies) and scrolls inside itself,
   and at either end of it the wheel scrolls the page; three cards beside it
   above 1024px, two from 721px. At 720px and under the rail is a full-screen drawer, closed here
   in the stylesheet: only the class is-open (set by facets.js) opens it, so it never flashes open
   while the page loads. A bar with Filter, Sort and the quick row stays at the top. Without script
   the form is an ordinary form with Apply; the script marks the form kt-facets--js and main
   kt-list--js. Where listing.css's rules for the old filter also hit this markup they are
   overridden here; listing.css itself is left as it is. */

/* ---- The page: the rail and the results ---- */
body.kt-skin-listing main.kt-list .kt-list__body {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
body.kt-skin-listing main.kt-list .kt-list__body > .kt-list__filter {
  position: sticky;
  top: 16px;
  flex: none;
  width: auto;
  /* As tall as the window below the rail, less 16px, so its end is never under the fold.
     facets.js keeps --kt-rail-top at where the rail lies (246px down at the top of a list at
     1280x900, 16px once stuck); without script it is the sticking place, right once stuck. Never
     under half the window: under a tall brand banner the rail starts near the fold. */
  max-height: max(50vh, calc(100vh - var(--kt-rail-top, 16px) - 16px));
  /* The scrollbar gets 16px of the 40px gap, so it never lies over the counts and the size boxes
     (an overlay bar takes no room of its own); the content stays 248px wide. */
  margin: 0 -16px 0 0;
  padding: 0 16px 0 0;
  overflow-y: auto;
  /* No overscroll-behavior here: at either end of the rail the wheel has to carry on into the
     page. With `contain` it did nothing at all over the rail, even with nothing to scroll inside
     it. The phone drawer below keeps `contain`: it is a dialog. */
  scrollbar-width: thin;
}
body.kt-skin-listing.admin-bar main.kt-list .kt-list__body > .kt-list__filter {
  top: calc(32px + 16px);
  max-height: max(50vh, calc(100vh - var(--kt-rail-top, 48px) - 16px));
}
body.kt-skin-listing main.kt-list .kt-list__results {
  min-width: 0;
}

/* ---- Buttons: the theme styles every button; ours start from nothing ---- */
body.kt-skin-listing #content main.kt-list button.kt-facets__close,
body.kt-skin-listing #content main.kt-list button.kt-facets__apply,
body.kt-skin-listing #content main.kt-list button.kt-facets__clear,
body.kt-skin-listing #content main.kt-list button.kt-facets__show,
body.kt-skin-listing #content main.kt-list button.kt-facets__open,
body.kt-skin-listing #content main.kt-list button.kt-facets__quick-size,
body.kt-skin-listing #content main.kt-list button.kt-facets__quick-toggle,
body.kt-skin-listing #content main.kt-list button.kt-facets__chip,
body.kt-skin-listing #content main.kt-list button.kt-facets__retry,
body.kt-skin-listing #content main.kt-list button.kt-facets__out,
body.kt-skin-listing #content main.kt-list button.kt-facets__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: 500 13px/1.3 var(--font-body);
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}
body.kt-skin-listing #content main.kt-list button.kt-facets__close:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__apply:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__clear:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__show:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__open:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__quick-size:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__quick-toggle:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__chip:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__retry:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__out:focus-visible,
body.kt-skin-listing #content main.kt-list button.kt-facets__more:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Text buttons: Clear all, Try again */
body.kt-skin-listing #content main.kt-list button.kt-facets__clear,
body.kt-skin-listing #content main.kt-list button.kt-facets__retry {
  min-height: 32px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.kt-skin-listing #content main.kt-list button.kt-facets__clear:hover,
body.kt-skin-listing #content main.kt-list button.kt-facets__retry:hover {
  background: none;
  color: var(--muted);
}

/* Outline buttons: Apply (without script), Show 24 more, the empty list's way out */
body.kt-skin-listing #content main.kt-list button.kt-facets__apply,
body.kt-skin-listing #content main.kt-list button.kt-facets__more,
body.kt-skin-listing #content main.kt-list button.kt-facets__out {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--white);
  font: 600 14px/1.3 var(--font-body);
}
body.kt-skin-listing #content main.kt-list button.kt-facets__apply:hover,
body.kt-skin-listing #content main.kt-list button.kt-facets__more:hover,
body.kt-skin-listing #content main.kt-list button.kt-facets__out:hover {
  background: var(--panel);
  color: var(--ink);
}
body.kt-skin-listing #content main.kt-list button.kt-facets__more:disabled {
  border-color: var(--chip-line);
  background: var(--white);
  color: var(--faint);
  cursor: default;
}

/* ---- The rail: head and foot belong to the phone drawer ---- */
body.kt-skin-listing main.kt-list .kt-facets__head,
body.kt-skin-listing main.kt-list .kt-facets__foot {
  display: none;
}
body.kt-skin-listing main.kt-list form.kt-facets {
  margin: 0;
  padding: 0;
  border: 0;
}
body.kt-skin-listing #content main.kt-list button.kt-facets__apply {
  width: 100%;
  margin: 16px 0 0;
}
body.kt-skin-listing #content main.kt-list form.kt-facets--js button.kt-facets__apply {
  display: none;
}

/* Groups: a summary that opens and closes, a body under it */
body.kt-skin-listing main.kt-list details.kt-facets__group {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
}
body.kt-skin-listing main.kt-list form.kt-facets > details.kt-facets__group:first-child {
  border-top: 0;
}
body.kt-skin-listing main.kt-list details.kt-facets__group[open] {
  padding: 0 0 20px;
}
body.kt-skin-listing main.kt-list details.kt-facets__group > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font: 600 14px/1.3 var(--font-body);
  list-style: none;
  cursor: pointer;
}
body.kt-skin-listing main.kt-list details.kt-facets__group > summary::-webkit-details-marker {
  display: none;
}
/* The chevron: points down while closed, up while open */
body.kt-skin-listing main.kt-list details.kt-facets__group > summary::after {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
}
body.kt-skin-listing main.kt-list details.kt-facets__group[open] > summary::after {
  transform: rotate(180deg);
}
body.kt-skin-listing main.kt-list .kt-facets__n {
  color: var(--muted);
  font-weight: 400;
}
body.kt-skin-listing main.kt-list details.kt-facets__group summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Ready to ship and On sale: two tick rows, no heading */
body.kt-skin-listing main.kt-list .kt-facets__toggles {
  margin: 0;
  padding: 8px 0 12px;
  border-top: 1px solid var(--line);
}
body.kt-skin-listing main.kt-list form.kt-facets > .kt-facets__toggles:first-child {
  border-top: 0;
}
body.kt-skin-listing main.kt-list .kt-facets__toggles .kt-facets__steps {
  padding: 0 0 0 24px;
}

/* A tick row: box, label, number */
body.kt-skin-listing main.kt-list label.kt-facets__check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font: 400 14px/1.3 var(--font-body);
  cursor: pointer;
}
body.kt-skin-listing main.kt-list label.kt-facets__check[hidden],
body.kt-skin-listing main.kt-list p.kt-facets__none[hidden] {
  display: none;
}
body.kt-skin-listing #content main.kt-list label.kt-facets__check input[type="checkbox"],
body.kt-skin-listing #content main.kt-list label.kt-facets__check input[type="radio"] {
  display: grid;
  place-content: center;
  flex: 0 0 16px;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--white);
  appearance: none;
  cursor: pointer;
}
body.kt-skin-listing #content main.kt-list label.kt-facets__check input[type="radio"] {
  border-radius: 50%;
}
body.kt-skin-listing #content main.kt-list label.kt-facets__check input:checked {
  border-color: var(--ink);
  background: var(--ink);
}
body.kt-skin-listing #content main.kt-list label.kt-facets__check input[type="checkbox"]:checked::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border: solid var(--white);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
body.kt-skin-listing #content main.kt-list label.kt-facets__check input[type="radio"]:checked::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
}
body.kt-skin-listing #content main.kt-list label.kt-facets__check input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
body.kt-skin-listing main.kt-list label.kt-facets__check .kt-facets__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
body.kt-skin-listing main.kt-list label.kt-facets__check span.kt-facets__count,
body.kt-skin-listing main.kt-list li.kt-facets__cat span.kt-facets__count {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--faint);
  font: 400 13px/1.3 var(--font-body);
}
body.kt-skin-listing main.kt-list label.kt-facets__check.is-off {
  color: var(--chip-line);
  cursor: default;
}
body.kt-skin-listing #content main.kt-list label.kt-facets__check.is-off input {
  border-color: var(--line);
  cursor: default;
}
body.kt-skin-listing main.kt-list label.kt-facets__check.is-off span.kt-facets__count {
  color: var(--chip-line);
}

/* Size: short lists of square boxes; the chosen box is black */
body.kt-skin-listing main.kt-list .kt-facets__sizes {
  margin: 0 0 16px;
}
body.kt-skin-listing main.kt-list .kt-facets__sizes:last-child {
  margin-bottom: 0;
}
body.kt-skin-listing main.kt-list p.kt-facets__list-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font: var(--type-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.kt-skin-listing main.kt-list .kt-facets__mw {
  display: inline-flex;
  gap: 12px;
  letter-spacing: 0;
  text-transform: none;
}
body.kt-skin-listing main.kt-list .kt-facets__mw label {
  position: relative;
  margin: 0;
  color: var(--muted);
  font: 500 12px/1.3 var(--font-body);
  cursor: pointer;
}
body.kt-skin-listing #content main.kt-list .kt-facets__mw input[type="radio"],
body.kt-skin-listing #content main.kt-list label.kt-facets__box input[type="checkbox"],
body.kt-skin-listing #content main.kt-list li.kt-facets__cat input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
}
body.kt-skin-listing main.kt-list .kt-facets__mw input:checked + span {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.kt-skin-listing main.kt-list .kt-facets__mw input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
body.kt-skin-listing main.kt-list .kt-facets__boxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 4px;
}
body.kt-skin-listing main.kt-list label.kt-facets__box {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
body.kt-skin-listing main.kt-list label.kt-facets__box span {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  padding: 0 2px;
  border: 1px solid var(--chip-line);
  background: var(--white);
  color: var(--ink);
  font: 500 13px/1 var(--font-body);
  text-align: center;
}
body.kt-skin-listing main.kt-list label.kt-facets__box:hover span {
  border-color: var(--ink);
}
body.kt-skin-listing main.kt-list label.kt-facets__box input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
body.kt-skin-listing main.kt-list label.kt-facets__box input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
body.kt-skin-listing main.kt-list label.kt-facets__box.is-off {
  cursor: default;
}
body.kt-skin-listing main.kt-list label.kt-facets__box.is-off span,
body.kt-skin-listing main.kt-list label.kt-facets__box.is-off:hover span {
  border-color: var(--line);
  color: var(--chip-line);
}

/* "More sizes: …" and "Show all N brands": text that opens more rows */
body.kt-skin-listing main.kt-list details.kt-facets__more-sizes,
body.kt-skin-listing main.kt-list details.kt-facets__all {
  margin: 0;
  padding: 0;
  border: 0;
}
body.kt-skin-listing main.kt-list details.kt-facets__more-sizes > summary,
body.kt-skin-listing main.kt-list details.kt-facets__all > summary {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font: 500 13px/1.3 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 4px;
  list-style: none;
  cursor: pointer;
}
body.kt-skin-listing main.kt-list details.kt-facets__more-sizes > summary::-webkit-details-marker,
body.kt-skin-listing main.kt-list details.kt-facets__all > summary::-webkit-details-marker {
  display: none;
}
body.kt-skin-listing main.kt-list details.kt-facets__more-sizes[open] > summary {
  margin: 0 0 12px;
}
body.kt-skin-listing main.kt-list details.kt-facets__more-sizes > summary:hover,
body.kt-skin-listing main.kt-list details.kt-facets__all > summary:hover {
  color: var(--muted);
}

/* Category: one path, shown as text; the chosen row is bold and underlined */
body.kt-skin-listing main.kt-list ul.kt-facets__cats {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.kt-skin-listing main.kt-list li.kt-facets__cat {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.kt-skin-listing main.kt-list li.kt-facets__cat label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  color: var(--ink);
  font: 400 14px/1.3 var(--font-body);
  cursor: pointer;
}
body.kt-skin-listing main.kt-list li.kt-facets__cat--sub label {
  padding: 0 0 0 16px;
}
body.kt-skin-listing main.kt-list li.kt-facets__cat .kt-facets__label {
  flex: 1 1 auto;
  min-width: 0;
}
body.kt-skin-listing main.kt-list li.kt-facets__cat input:checked + .kt-facets__label {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.kt-skin-listing main.kt-list li.kt-facets__cat input:focus-visible + .kt-facets__label {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
body.kt-skin-listing main.kt-list li.kt-facets__cat.is-off label {
  color: var(--chip-line);
  cursor: default;
}
body.kt-skin-listing main.kt-list li.kt-facets__cat.is-off span.kt-facets__count {
  color: var(--chip-line);
}

/* Brand search and the price range */
body.kt-skin-listing #content main.kt-list input.kt-facets__search,
body.kt-skin-listing #content main.kt-list .kt-facets__range input[type="number"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--chip-line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 14px/1 var(--font-body);
  box-shadow: none;
}
body.kt-skin-listing #content main.kt-list input.kt-facets__search {
  margin: 8px 0;
}
body.kt-skin-listing #content main.kt-list input.kt-facets__search:focus,
body.kt-skin-listing #content main.kt-list .kt-facets__range input[type="number"]:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: none;
}
body.kt-skin-listing #content main.kt-list input.kt-facets__search:focus-visible,
body.kt-skin-listing #content main.kt-list .kt-facets__range input[type="number"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
body.kt-skin-listing main.kt-list p.kt-facets__none {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  color: var(--muted);
  font: 400 13px/1.3 var(--font-body);
}
body.kt-skin-listing main.kt-list p.kt-facets__hint {
  margin: 0 0 12px;
  color: var(--muted);
  font: 400 13px/1.4 var(--font-body);
}
body.kt-skin-listing main.kt-list .kt-facets__range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}
body.kt-skin-listing main.kt-list .kt-facets__range label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font: 400 12px/1.3 var(--font-body);
}

/* ---- Above the list: count and sort on one line, the chips under them ---- */
body.kt-skin-listing main.kt-list .kt-facets__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "count sort" "chips chips";
  align-items: center;
  column-gap: 16px;
  margin: 0;
}
body.kt-skin-listing main.kt-list .kt-facets__bar {
  display: contents;
}
body.kt-skin-listing #content main.kt-list button.kt-facets__open,
body.kt-skin-listing main.kt-list .kt-facets__quick {
  display: none;
}
body.kt-skin-listing main.kt-list label.kt-facets__sort {
  grid-area: sort;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 0 16px;
  color: var(--muted);
  font: 400 14px/1.3 var(--font-body);
}
body.kt-skin-listing #content main.kt-list label.kt-facets__sort select {
  box-sizing: border-box;
  width: auto;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 32px 0 12px;
  border: 1px solid var(--chip-line);
  border-radius: 0;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  font: 500 13px/1 var(--font-body);
  box-shadow: none;
  appearance: none;
  cursor: pointer;
}
body.kt-skin-listing #content main.kt-list label.kt-facets__sort select:hover {
  border-color: var(--ink);
}
body.kt-skin-listing #content main.kt-list label.kt-facets__sort select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
/* The sort on a wide window, with script: one line of text, the weight of the count on the left.
   "Sort", the chosen order's words, a chevron right after them. The select lies over the whole
   label, unseen, so the menu is still the browser's own and the label shows the hover and the
   focus. A select is as wide as its longest option; as a box it left the chevron far from a short
   word. Without script, or where the scripting feature is unknown, the select stays the box above:
   nothing there would put a new choice into the words (a browser old enough to be marked
   kt-list--static does not know the feature either). 720px and under it is the bar's button. */
body.kt-skin-listing main.kt-list .kt-facets__sort-now {
  display: none;
}
@media (min-width: 721px) and (scripting: enabled) {
  body.kt-skin-listing main.kt-list label.kt-facets__sort {
    position: relative;
    height: 40px;
    cursor: pointer;
  }
  body.kt-skin-listing main.kt-list .kt-facets__sort-now {
    display: block;
    padding: 0 16px 0 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='4 7 16 10' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center;
    color: var(--ink);
    font-weight: 500;
    white-space: nowrap;
  }
  body.kt-skin-listing #content main.kt-list label.kt-facets__sort select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    font-size: 16px; /* never seen; under 16px a touch browser zooms the page on focus */
    opacity: 0;
  }
  /* The ring is for the keyboard. A select counts as focus-visible after a click too, and the
     script puts the focus back on it after every answer: without the class (facets.js, set by a
     press on the sort, taken off by any key) each pick by mouse would leave a box round the words. */
  body.kt-skin-listing main.kt-list:not(.kt-list--pointer) label.kt-facets__sort:has(select:focus-visible) {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
  }
}
@media (min-width: 721px) and (scripting: enabled) and (hover: hover) {
  body.kt-skin-listing main.kt-list label.kt-facets__sort:hover .kt-facets__sort-now {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
body.kt-skin-listing main.kt-list p.kt-facets__count {
  grid-area: count;
  margin: 0 0 16px;
  color: var(--muted);
  font: 400 14px/1.3 var(--font-body);
}
body.kt-skin-listing main.kt-list .kt-facets__chips {
  grid-area: chips;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}
body.kt-skin-listing main.kt-list .kt-facets__chips:not(:has(button)) {
  display: none;
}
/* A chip: a small square button that removes its choice */
body.kt-skin-listing #content main.kt-list button.kt-facets__chip {
  min-height: 32px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--chip-line);
  background: var(--white);
}
body.kt-skin-listing #content main.kt-list button.kt-facets__chip::after {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
}
body.kt-skin-listing #content main.kt-list button.kt-facets__chip:hover {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

/* ---- The list: dimmed while it updates; the line when an update failed ---- */
body.kt-skin-listing main.kt-list .kt-facets__list.is-busy {
  opacity: 0.4;
  pointer-events: none;
}
body.kt-skin-listing main.kt-list .kt-facets__alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 0 0 16px;
}
body.kt-skin-listing main.kt-list .kt-facets__alert p {
  flex: 1 1 auto;
  margin: 0;
  padding: 12px 16px;
  background: var(--red-bg);
  color: var(--red-ink);
  font: 400 14px/1.5 var(--font-body);
}
body.kt-skin-listing #content main.kt-list .kt-facets__list ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

/* Nothing matches: the message, one way out per choice, Clear all filters */
body.kt-skin-listing main.kt-list .kt-facets__empty {
  padding: 24px 0;
}
body.kt-skin-listing main.kt-list p.kt-facets__empty-title {
  margin: 0 0 16px;
  color: var(--ink);
  font: var(--type-block);
}
body.kt-skin-listing main.kt-list .kt-facets__outs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.kt-skin-listing #content main.kt-list .kt-facets__empty button.kt-facets__clear {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font: 600 14px/1.3 var(--font-body);
  text-decoration: none;
}
body.kt-skin-listing #content main.kt-list .kt-facets__empty button.kt-facets__clear:hover {
  border-color: var(--ink-2);
  background: var(--ink-2);
  color: var(--white);
}

/* Under the list: "Showing 24 of 86", "Show 24 more"; the page links without script */
body.kt-skin-listing main.kt-list .kt-facets__paging {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0 0;
}
body.kt-skin-listing main.kt-list .kt-facets__paging:not(:has(> *)),
body.kt-skin-listing main.kt-list.kt-list--js .kt-facets__paging:not(:has(.kt-facets__shown, .kt-facets__more)) {
  display: none;
}
body.kt-skin-listing main.kt-list p.kt-facets__shown {
  margin: 0;
  color: var(--muted);
  font: 400 13px/1.3 var(--font-body);
}
body.kt-skin-listing #content main.kt-list:not(.kt-list--js) button.kt-facets__more,
body.kt-skin-listing #content main.kt-list.kt-list--js .kt-facets__paging nav.woocommerce-pagination {
  display: none;
}

/* ---- Two cards beside the rail from 721px to 1024px ---- */
@media (max-width: 1024px) {
  body.kt-skin-listing #content main.kt-list .kt-facets__list ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Phone: a bar that stays at the top, the filter as a drawer ---- */
@media (max-width: 720px) {
  body.kt-skin-listing main.kt-list .kt-list__body {
    display: block;
  }
  body.kt-skin-listing #content main.kt-list .kt-facets__list ul.products {
    gap: 32px 12px;
  }

  /* The bar: Filter and Sort side by side, the quick row under them */
  body.kt-skin-listing main.kt-list .kt-facets__top {
    display: contents;
  }
  body.kt-skin-listing main.kt-list .kt-facets__bar {
    position: sticky;
    top: 0;
    /* Below the header (z-index 20): the menu drawer lives in the header's stacking context, so a
       bar at 20, later in the page, was painted over the open drawer. Cards sit at 1. */
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter)) 12px;
    padding: 8px var(--gutter);
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }
  body.kt-skin-listing #content main.kt-list .kt-facets__bar button.kt-facets__open {
    display: inline-flex;
    gap: 4px;
    min-height: 44px;
    border: 1px solid var(--ink);
    background: var(--white);
    font: 600 14px/1 var(--font-body);
  }
  body.kt-skin-listing main.kt-list label.kt-facets__sort {
    position: relative;
    grid-area: auto;
    margin: 0;
  }
  body.kt-skin-listing main.kt-list label.kt-facets__sort > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  body.kt-skin-listing #content main.kt-list label.kt-facets__sort select {
    width: 100%;
    height: 44px;
    min-height: 44px;
    border-color: var(--ink);
    font: 500 14px/1 var(--font-body);
  }
  body.kt-skin-listing main.kt-list .kt-facets__quick {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.kt-skin-listing #content main.kt-list button.kt-facets__quick-size,
  body.kt-skin-listing #content main.kt-list button.kt-facets__quick-toggle {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--chip-line);
    background: var(--white);
    white-space: nowrap;
  }
  body.kt-skin-listing #content main.kt-list button.kt-facets__quick-toggle[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--white);
  }
  body.kt-skin-listing #content main.kt-list button.kt-facets__quick-toggle:disabled {
    border-color: var(--line);
    color: var(--chip-line);
    cursor: default;
  }
  body.kt-skin-listing main.kt-list p.kt-facets__count {
    margin: 0 0 12px;
  }
  body.kt-skin-listing #content main.kt-list button.kt-facets__chip,
  body.kt-skin-listing #content main.kt-list button.kt-facets__clear,
  body.kt-skin-listing #content main.kt-list button.kt-facets__retry,
  body.kt-skin-listing #content main.kt-list button.kt-facets__more,
  body.kt-skin-listing #content main.kt-list button.kt-facets__out,
  body.kt-skin-listing #content main.kt-list .kt-facets__empty button.kt-facets__clear {
    min-height: 44px;
  }

  /* The drawer: covers the screen; closed unless the script has opened it */
  body.kt-skin-listing main.kt-list .kt-list__body > .kt-list__filter {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--white);
    transform: translateY(100%);
    visibility: hidden;
  }
  body.kt-skin-listing main.kt-list .kt-list__body > .kt-list__filter.is-open {
    transform: none;
    visibility: visible;
  }
  /* The WordPress admin bar (46px at this width) stays above the drawer; at 600px and under it
     scrolls away with the page, and the drawer starts where the bar ends in the window
     (--kt-wpbar-in-view, kept by header.js) */
  body.kt-skin-listing.admin-bar main.kt-list .kt-list__body > .kt-list__filter {
    top: var(--kt-wpbar-in-view, 46px);
    max-height: none;
  }
  body.kt-skin-listing main.kt-list .kt-facets__head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
  }
  body.kt-skin-listing #content main.kt-list h2.kt-facets__heading {
    margin: 0;
    color: var(--ink);
    font: var(--type-block);
    text-transform: none;
  }
  body.kt-skin-listing #content main.kt-list button.kt-facets__close {
    min-width: 44px;
    min-height: 44px;
    font: 500 14px/1.3 var(--font-body);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  body.kt-skin-listing main.kt-list .kt-list__filter form.kt-facets {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.kt-skin-listing main.kt-list .kt-facets__foot {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--white);
  }
  body.kt-skin-listing #content main.kt-list .kt-facets__foot button.kt-facets__clear {
    flex: 0 0 auto;
    font-size: 14px;
  }
  body.kt-skin-listing #content main.kt-list button.kt-facets__show {
    flex: 1 1 auto;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--white);
    font: 600 14px/1.3 var(--font-body);
  }
  body.kt-skin-listing #content main.kt-list button.kt-facets__show:hover {
    border-color: var(--ink-2);
    background: var(--ink-2);
    color: var(--white);
  }
  body.kt-skin-listing #content main.kt-list form.kt-facets:not(.kt-facets--js) .kt-facets__foot {
    display: none;
  }

  /* 44px touch targets */
  body.kt-skin-listing main.kt-list details.kt-facets__group > summary {
    min-height: 56px;
    font-size: 16px;
  }
  body.kt-skin-listing main.kt-list label.kt-facets__check,
  body.kt-skin-listing main.kt-list li.kt-facets__cat label,
  body.kt-skin-listing main.kt-list details.kt-facets__more-sizes > summary,
  body.kt-skin-listing main.kt-list details.kt-facets__all > summary,
  body.kt-skin-listing main.kt-list .kt-facets__mw label,
  body.kt-skin-listing main.kt-list p.kt-facets__none {
    min-height: 44px;
  }
  body.kt-skin-listing main.kt-list .kt-facets__mw label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
  }
  body.kt-skin-listing main.kt-list label.kt-facets__box span {
    min-height: 44px;
  }
  body.kt-skin-listing #content main.kt-list input.kt-facets__search,
  body.kt-skin-listing #content main.kt-list .kt-facets__range input[type="number"] {
    height: 44px;
    min-height: 44px;
  }
}

/* Motion (200ms, DESIGN.md), and none for visitors who ask for less */
@media (prefers-reduced-motion: no-preference) {
  body.kt-skin-listing main.kt-list .kt-facets__list {
    transition: opacity 120ms ease;
  }
  body.kt-skin-listing main.kt-list details.kt-facets__group > summary::after {
    transition: transform 120ms ease;
  }
}
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  body.kt-skin-listing main.kt-list .kt-list__body > .kt-list__filter {
    transition: transform 200ms ease, visibility 0s linear 200ms;
  }
  body.kt-skin-listing main.kt-list .kt-list__body > .kt-list__filter.is-open {
    transition: transform 200ms ease;
  }
}

/* ---- Phone without a working script: the form in the page, above the list, with Apply ----
   Without script (the scripting media feature), or when facets.js cannot make its requests and
   marks main kt-list--static. Filter and the quick row need the script and are hidden; the sort
   stays and is sent by Apply (form="kt-facets"). The two blocks hold the same rules. */
@media (max-width: 720px) {
  body.kt-skin-listing main.kt-list.kt-list--static .kt-list__body > .kt-list__filter {
    position: static;
    z-index: auto;
    display: block;
    margin: 0 0 24px;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }
  body.kt-skin-listing main.kt-list.kt-list--static .kt-facets__head,
  body.kt-skin-listing main.kt-list.kt-list--static .kt-facets__quick,
  body.kt-skin-listing #content main.kt-list.kt-list--static .kt-facets__bar button.kt-facets__open {
    display: none;
  }
  body.kt-skin-listing main.kt-list.kt-list--static .kt-list__filter form.kt-facets {
    padding: 0;
    overflow: visible;
  }
  body.kt-skin-listing main.kt-list.kt-list--static label.kt-facets__sort {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) and (scripting: none) {
  body.kt-skin-listing main.kt-list .kt-list__body > .kt-list__filter {
    position: static;
    z-index: auto;
    display: block;
    margin: 0 0 24px;
    overflow: visible;
    transform: none;
    visibility: visible;
    transition: none;
  }
  body.kt-skin-listing main.kt-list .kt-facets__head,
  body.kt-skin-listing main.kt-list .kt-facets__quick,
  body.kt-skin-listing #content main.kt-list .kt-facets__bar button.kt-facets__open {
    display: none;
  }
  body.kt-skin-listing main.kt-list .kt-list__filter form.kt-facets {
    padding: 0;
    overflow: visible;
  }
  body.kt-skin-listing main.kt-list label.kt-facets__sort {
    grid-column: 1 / -1;
  }
}
