/* ===== Shop filters — native replacement for the Filter Everything widget.
        Desktop: a sticky card in the archive sidebar.
        Below 922px: an off-canvas drawer opened by the "Filters" button. ===== */

/* ---- Mobile toolbar: "Filters" opener + sorting (desktop shows neither:
        the panel is always visible and WooCommerce's dropdown sits above the
        grid) ------------------------------------------------------------------ */
.ckm-shop-bar { display: none; }

.ckm-filters-open {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 9px 16px;
  color: var(--c-ink-2);
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  font-size: 15px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.ckm-filters-open:hover,
.ckm-filters-open:focus-visible {
  color: var(--c-accent);
  border-color: var(--c-primary);
}
.ckm-filters-open__icon { display: inline-flex; color: var(--c-primary); }
.ckm-filters-open__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: var(--c-primary-ink);
  background: var(--c-primary);
  border-radius: var(--r-pill);
  font-size: 12px;
  line-height: 1;
}

/* Sorting: a native select dressed as the opener's twin, so phones show their
   own picker. */
.ckm-sort {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.ckm-sort__icon {
  position: absolute;
  left: 14px;
  display: inline-flex;
  color: var(--c-primary);
  pointer-events: none;
}
.ckm-sort__select {
  width: 100%;
  min-height: 46px;
  padding: 9px 34px 9px 40px;
  overflow: hidden;
  color: var(--c-ink-2);
  background-color: var(--c-surface-raised);
  /* Chevron in the muted ink tone of both themes. */
  background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  font-size: 15px;
  font-weight: var(--fw-bold);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease;
}
.ckm-sort__select:hover,
.ckm-sort__select:focus-visible { border-color: var(--c-primary); }
.ckm-sort__select:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; }

/* ---- Panel: same card language as the product cards ---------------------- */
.ckm-filters {
  padding: 20px;
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.ckm-filters__head {
  display: none; /* Drawer-only title bar. */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border-soft);
}
.ckm-filters__title {
  margin: 0;
  color: var(--c-ink-2);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
}
.ckm-filters__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--c-ink);
  background: var(--c-surface);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}
.ckm-filters__close:hover { color: var(--c-primary-ink); background: var(--c-primary); }

/* ---- Search field: like the header search ---------------------------------- */
.ckm-filters__search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ckm-filters__search:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-focus-ring);
}
.ckm-filters__search-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding-left: 13px;
  color: var(--c-ink-2);
}
.ckm-filters__search-icon svg { width: 18px; height: 18px; }

.ckm-filters__search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 12px 0 10px;
  color: var(--c-ink-2);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
}
.ckm-filters__search input[type="search"]:focus { outline: 0; box-shadow: none; }
.ckm-filters__search input::placeholder { color: var(--c-muted); opacity: 1; }

/* ---- Facet groups --------------------------------------------------------- */
.ckm-filters__group + .ckm-filters__group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--c-border-soft);
}

.ckm-filters__group-title { margin: 0 0 6px; font-size: 1rem; }

.ckm-filters__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 4px 0 12px;
  color: var(--c-ink-2);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: var(--fw-bold);
  text-align: left;
  cursor: pointer;
}
/* Short red bar under the group title, like the section heads. */
.ckm-filters__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 28px;
  height: 3px;
  background: var(--c-primary);
  border-radius: 2px;
}
.ckm-filters__chevron {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 5px;
  box-sizing: border-box;
  color: var(--c-ink);
  background: var(--c-surface);
  border-radius: 50%;
  transition: transform .2s ease, color .2s ease, background-color .2s ease;
}
.ckm-filters__toggle:hover .ckm-filters__chevron { color: var(--c-primary-ink); background: var(--c-primary); }
.ckm-filters__group.is-collapsed .ckm-filters__chevron { transform: rotate(-90deg); }
.ckm-filters__group.is-collapsed .ckm-filters__group-body { display: none; }

.ckm-filters__term-search {
  width: 100%;
  min-height: 38px;
  margin-bottom: 8px;
  padding: 6px 10px;
  color: var(--c-ink-2);
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: 8px;
  font-size: 14px;
}

/* ---- Term list ------------------------------------------------------------ */
.ckm-filters__list {
  position: relative; /* offsetTop of an item is measured against this list. */
  display: grid;
  gap: 2px;
  max-height: 300px;
  margin: 0 0 6px;
  padding: 0 6px 0 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-strong) transparent;
}
.ckm-filters__list::-webkit-scrollbar { width: 6px; }
.ckm-filters__list::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: 3px; }
.ckm-filters__list::-webkit-scrollbar-track { background: transparent; }

.ckm-filters__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 9px;
  transition: background-color .15s ease;
}
.ckm-filters__item[hidden] { display: none; }
.ckm-filters__item:hover { background: var(--c-surface); }

/* Custom radio / checkbox: neutral ring, red dot when chosen. */
.ckm-filters__item input {
  display: grid;
  place-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  background: var(--c-control-bg);
  border: 1.5px solid var(--c-border-strong);
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease;
}
.ckm-filters__item input[type="checkbox"] { border-radius: 5px; }
.ckm-filters__item input::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c-primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform .15s ease;
}
.ckm-filters__item input[type="checkbox"]::before { border-radius: 2px; }
.ckm-filters__item input:checked { border-color: var(--c-primary); }
.ckm-filters__item input:checked::before { transform: scale(1); }
.ckm-filters__item:hover input { border-color: var(--c-primary); }
.ckm-filters__item input:focus-visible { outline: 3px solid var(--c-focus-ring); outline-offset: 2px; }

.ckm-filters__item label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--c-ink);
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: color .15s ease;
}
.ckm-filters__item:hover label { color: var(--c-ink-2); }
.ckm-filters__item:has(input:checked) { background: var(--c-surface-hover); }
.ckm-filters__item:has(input:checked) label { color: var(--c-accent); font-weight: var(--fw-semibold); }

.ckm-filters__name { min-width: 0; overflow-wrap: anywhere; }
.ckm-filters__count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 1px 7px;
  color: var(--c-muted);
  background: var(--c-surface);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ckm-filters__item:has(input:checked) .ckm-filters__count {
  color: var(--c-primary-ink);
  background: var(--c-primary);
}

/* ---- Deals switch (products on sale only) --------------------------------- */
.ckm-filters__group--sale .ckm-filters__item { margin: 0 0 4px; }
.ckm-filters__group--sale .ckm-filters__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-semibold);
}
.ckm-filters__sale-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  color: var(--c-primary-ink);
  background: var(--c-primary);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: var(--fw-bold);
  line-height: 1;
}

/* ---- Price: two-handle slider over two number fields ---------------------- */
.ckm-price { padding: 4px 2px 10px; }

.ckm-price__slider {
  position: relative;
  height: 28px;
  margin: 0 9px 10px; /* Half a handle each side, so the handles' centres meet the ends. */
}
.ckm-price__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  margin-top: -2px;
  background: var(--c-surface-2);
  border-radius: 2px;
}
.ckm-price__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-primary);
  border-radius: 2px;
}

/* Both range inputs lie on top of each other; only their handles catch the
   pointer, so either can be grabbed wherever it is. */
.ckm-price__range {
  position: absolute;
  inset: 0 -9px;
  width: calc(100% + 18px);
  height: 28px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.ckm-price__range.is-front { z-index: 1; }
.ckm-price__range:focus { outline: 0; }
.ckm-price__range::-webkit-slider-runnable-track { height: 28px; background: transparent; border: 0; }
.ckm-price__range::-moz-range-track { height: 28px; background: transparent; border: 0; }
.ckm-price__range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  background: var(--c-surface-raised);
  border: 2px solid var(--c-primary);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  cursor: grab;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}
.ckm-price__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--c-surface-raised);
  border: 2px solid var(--c-primary);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  cursor: grab;
  pointer-events: auto;
}
.ckm-price__range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
.ckm-price__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--c-focus-ring); }
.ckm-price__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--c-focus-ring); }

/* Without scripting the handles would not follow the fields. */
html:not(.ckm-filters-js) .ckm-price__slider { display: none; }

.ckm-price__fields {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.ckm-price__dash {
  flex: 0 0 auto;
  padding-bottom: 10px;
  color: var(--c-muted);
}
.ckm-price__field {
  display: grid;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
}
.ckm-price__caption {
  color: var(--c-muted);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ckm-price__box {
  display: flex;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ckm-price__box:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-focus-ring);
}
.ckm-price__box--prefix { flex-direction: row-reverse; }
.ckm-price__box input[type="number"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 4px 0 10px;
  color: var(--c-ink-2);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ckm-price__box input[type="number"]:focus { outline: 0; box-shadow: none; }
.ckm-price__box input[type="number"]::-webkit-inner-spin-button,
.ckm-price__box input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.ckm-price__box input::placeholder { color: var(--c-muted); opacity: 1; }
.ckm-price__unit {
  flex: 0 0 auto;
  padding: 0 10px 0 2px;
  color: var(--c-muted);
  font-size: 14px;
}
.ckm-price__box--prefix .ckm-price__unit { padding: 0 2px 0 10px; }

/* ---- Actions -------------------------------------------------------------- */
.ckm-filters__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ckm-filters__submit {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--c-primary);
  color: var(--c-primary-ink);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  cursor: pointer;
}
.ckm-filters__submit:hover { background: var(--c-primary-hover); }

/* With scripting the form applies itself, so the button is redundant. */
.ckm-filters-js .ckm-filters__submit { display: none; }

/* "Show results (n)" only exists in the drawer (see the drawer layout). */
.ckm-filters__done { display: none; }

@media (min-width: 922px) {
  .ckm-filters-js .ckm-filters__actions:not(:has(.ckm-filters__reset)) { display: none; }
}

.ckm-filters__reset {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ckm-filters__reset:hover { color: var(--c-ink-2); }

/* ---- Active filter chips (above the product grid) ------------------------- */
.ckm-filter-chips { margin: 0 0 14px; }
.ckm-filter-chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ckm-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  color: var(--c-ink-2);
  background: var(--c-surface-raised);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.ckm-chip:hover { color: var(--c-accent); border-color: var(--c-primary); text-decoration: none; }
.ckm-chip__remove { color: var(--c-primary); font-size: 17px; line-height: 1; }
.ckm-chip--reset {
  color: var(--c-muted);
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ckm-chip--reset:hover { color: var(--c-accent); background: transparent; border-color: transparent; }

/* ---- Loading / error ------------------------------------------------------ */
.ckm-shop__main.is-loading {
  opacity: .55;
  transition: opacity .15s ease;
  pointer-events: none;
}

/* Two things must not happen to the sidebar while a request is in flight.
   An opacity below 1 turns it into a stacking context, which traps the
   position:fixed drawer inside it — on mobile the panel drops behind the page
   and the product grid shows straight through it. And pointer-events:none on
   the whole sidebar lets taps fall through the panel onto the backdrop, whose
   job is to close the drawer, so tapping a second filter would dismiss it.
   So: the fade goes one level down, and only the controls stop responding. */
.ckm-shop__sidebar.is-loading .ckm-filters__item,
.ckm-shop__sidebar.is-loading .ckm-filters__search,
.ckm-shop__sidebar.is-loading .ckm-price,
.ckm-shop__sidebar.is-loading .ckm-filters__reset {
  pointer-events: none;
}

/* Desktop only: in the drawer the same fade reads as a flash, so the open panel
   stays visually still and merely stops accepting taps. */
@media (min-width: 922px) {
  .ckm-shop__sidebar.is-loading .ckm-filters {
    opacity: .55;
    transition: opacity .15s ease;
  }
}
.ckm-filters__error {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--c-danger-border);
  border-radius: var(--r-sm);
  background: var(--c-danger-surface);
  color: var(--c-danger);
}

/* ---- Backdrop (drawer only) ----------------------------------------------- */
.ckm-filters__backdrop { display: none; }

/* The panel deliberately has no scrollbar of its own on desktop. Capping its
   height would put a second, full-height scrollbar right next to the per-facet
   ones on shorter screens. The facet lists scroll individually; the panel just
   grows and the page scrolls — which is also why the sidebar is not sticky (see
   woo-shop.css): a pinned panel taller than the viewport hides its own bottom
   with no way to reach it. */

/* ==== Drawer layout ======================================================== */
@media (max-width: 921px) {
  .ckm-filters-open { display: inline-flex; }

  /* The toolbar stays at the top of the screen while the products scroll.
     It is the sidebar that sticks — the toolbar is its only in-flow content
     once the panel is a drawer, and a sticky element only travels within its
     parent. Sticky also makes the sidebar a stacking context, which would
     trap the fixed drawer below the site header, so it is lifted above
     everything while the drawer is open. */
  .ckm-filters-js .ckm-shop__sidebar {
    --ckm-gutter: var(--container-pad);
    position: sticky;
    top: 0;
    z-index: 20;
    margin-inline: calc(-1 * var(--ckm-gutter));
    padding: 10px var(--ckm-gutter);
    background: var(--c-page);
  }
  body.ckm-filters-locked .ckm-shop__sidebar { z-index: 99980; }

  /* The opener takes what its label needs; sorting gets the rest, since its
     labels ("Price: high to low") are the longer ones. */
  .ckm-filters-js .ckm-shop-bar {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 10px;
  }
  .ckm-filters-js .ckm-shop-bar:not(:has(.ckm-sort)) { grid-template-columns: minmax(0, 1fr); }
  .ckm-shop-bar .ckm-filters-open { min-width: 0; padding-inline: 18px; }

  /* The toolbar's sorting replaces WooCommerce's dropdown here. */
  .ckm-filters-js .ckm-shop:has(.ckm-sort) .woocommerce-ordering { display: none; }

  /* "Show results (n)" pinned to the bottom of the drawer. */
  .ckm-filters-js .ckm-filters__actions {
    position: sticky;
    bottom: -18px; /* The drawer's own bottom padding. */
    z-index: 2;
    margin: 12px -18px -18px;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
    background: var(--c-surface-raised);
    border-top: 1px solid var(--c-border-soft);
    box-shadow: 0 -6px 16px rgba(17, 24, 39, .06);
  }
  .ckm-filters-js .ckm-filters__done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 auto;
    min-height: 46px;
    padding: 10px 20px;
    color: var(--c-primary-ink);
    background: var(--c-primary);
    border: 0;
    border-radius: var(--r-btn);
    font-size: 15px;
    font-weight: var(--fw-semibold);
    cursor: pointer;
  }
  .ckm-filters-js .ckm-filters__done:hover { background: var(--c-primary-hover); }
  .ckm-filters__done-count {
    padding: 1px 8px;
    background: rgba(0, 0, 0, .22); /* Darker than the button: white stays readable. */
    border-radius: var(--r-pill);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
  }

  /* Above the sticky site header (z-index 30000–30080), in line with the
     cart drawer at 99990 — otherwise the panel's own header and search field
     disappear behind it. */
  .ckm-filters__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: var(--c-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .ckm-filters {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99990;
    width: min(86vw, 360px);
    height: 100%;
    padding: 18px;
    border: 0;
    border-radius: 0 18px 18px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
  }

  .ckm-filters__head { display: flex; }

  .ckm-filters-wrap.is-open .ckm-filters {
    transform: translateX(0);
    visibility: visible;
  }
  .ckm-filters-wrap.is-open .ckm-filters__backdrop {
    opacity: 1;
    visibility: visible;
  }

  body.ckm-filters-locked { overflow: hidden; }

  /* In the drawer the lists are uncapped and the drawer itself scrolls. The
     list must stop being a scroll container too: with overflow:auto and
     overscroll-behavior:contain it still catches every swipe that starts on
     it, has nothing to scroll and refuses to hand the gesture on — so the
     drawer only moved when dragged by its thin edge. */
  .ckm-filters__list {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }

  /* Without scripting the drawer cannot open, so the panel stays in flow. */
  html:not(.ckm-filters-js) .ckm-filters-open { display: none; }
  html:not(.ckm-filters-js) .ckm-filters {
    position: static;
    width: auto;
    height: auto;
    border-radius: var(--r-md);
    transform: none;
    visibility: visible;
  }
  html:not(.ckm-filters-js) .ckm-filters__head { display: none; }
}

/* Same gutter as .ckm-container on small phones (base.css). */
@media (max-width: 480px) {
  .ckm-filters-js .ckm-shop__sidebar { --ckm-gutter: 12px; }
}

/* Logged-in visitors: the admin bar is fixed from 601px up and would cover
   the toolbar. */
@media (min-width: 601px) and (max-width: 921px) {
  .ckm-filters-js .admin-bar .ckm-shop__sidebar { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .ckm-filters,
  .ckm-filters__backdrop,
  .ckm-filters__chevron { transition: none; }
}
