/* Sports Town — shop filter drawer */

.st-shop-filters-open {
  overflow: hidden;
}

.st-shop__toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 8px 8px 8px 10px;
  background: #fff;
  border: 1px solid rgba(8, 8, 8, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(8, 8, 8, 0.04);
}

.st-shop__toolbar-left,
.st-shop__toolbar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.st-shop__filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--st-orange, #F47C4A);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(244, 124, 74, 0.22);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.st-shop__filter-btn:hover {
  background: var(--st-black, #080808);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 8, 8, 0.22);
}

.st-shop__filter-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.st-shop__filter-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #080808;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.st-shop__filter-badge:not(:empty) {
  display: inline-flex;
}

.st-shop__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  min-height: 0;
}

.st-shop__chips:empty {
  display: none;
  margin: 0;
}

.st-shop__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: rgba(244, 124, 74, 0.1);
  border: 1px solid rgba(244, 124, 74, 0.22);
  color: #080808;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.st-shop__chip span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-shop__chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.08);
  color: #080808;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.st-shop__chip-x:hover {
  background: #080808;
  color: #fff;
}

.st-shop__chip--clear {
  background: transparent;
  border-color: rgba(8, 8, 8, 0.12);
  padding-right: 12px;
  color: #5E6267;
}

.st-shop__chip--clear:hover {
  border-color: #080808;
  color: #080808;
}

/* Drawer shell — [data-st-filters] beats pages.css `.st-filters` chip styles */
.st-filters[data-st-filters] {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0;
  gap: 0;
  display: block;
  z-index: 10080;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
  transition: visibility 0s linear var(--st-drawer-ms-out, 280ms);
}

.st-filters[data-st-filters].is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.st-filters[data-st-filters] .st-filters__veil {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 8, 0.48);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  opacity: 0;
  transition: opacity var(--st-drawer-ms-out, 280ms) var(--st-drawer-ease-out, cubic-bezier(0.4, 0, 1, 1));
  cursor: pointer;
}

.st-filters[data-st-filters].is-open .st-filters__veil {
  opacity: 1;
  transition: opacity var(--st-drawer-ms, 360ms) var(--st-drawer-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.st-filters[data-st-filters] .st-filters__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  height: 100%;
  max-height: 100%;
  margin: 0;
  background: var(--st-off-white, #FFFFFB);
  box-shadow: 18px 0 48px rgba(8, 8, 8, 0.18);
  opacity: 0;
  transform: translateX(-108%) scale(0.985);
  filter: blur(6px);
  transition:
    transform var(--st-drawer-ms-out, 280ms) var(--st-drawer-ease-out, cubic-bezier(0.4, 0, 1, 1)),
    opacity var(--st-drawer-ms-out, 280ms) var(--st-drawer-ease-out, cubic-bezier(0.4, 0, 1, 1)),
    filter var(--st-drawer-ms-out, 280ms) var(--st-drawer-ease-out, cubic-bezier(0.4, 0, 1, 1)),
    box-shadow var(--st-drawer-ms-out, 280ms) var(--st-drawer-ease-out, cubic-bezier(0.4, 0, 1, 1));
  will-change: transform, opacity, filter;
}

.st-filters[data-st-filters].is-open .st-filters__panel {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
  box-shadow: 28px 0 72px rgba(8, 8, 8, 0.26);
  transition:
    transform var(--st-drawer-ms, 360ms) var(--st-drawer-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    opacity calc(var(--st-drawer-ms, 360ms) * 0.75) var(--st-drawer-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    filter var(--st-drawer-ms, 360ms) var(--st-drawer-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow var(--st-drawer-ms, 360ms) var(--st-drawer-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.st-filters[data-st-filters] .st-filters__head,
.st-filters[data-st-filters] .st-filters__body,
.st-filters[data-st-filters] .st-filters__foot {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 220ms var(--st-drawer-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform 280ms var(--st-drawer-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.st-filters[data-st-filters].is-open .st-filters__head {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 70ms;
}

.st-filters[data-st-filters].is-open .st-filters__body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 110ms;
}

.st-filters[data-st-filters].is-open .st-filters__foot {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 150ms;
}

@media (prefers-reduced-motion: reduce) {
  .st-filters[data-st-filters],
  .st-filters[data-st-filters] .st-filters__veil,
  .st-filters[data-st-filters] .st-filters__panel,
  .st-filters[data-st-filters] .st-filters__head,
  .st-filters[data-st-filters] .st-filters__body,
  .st-filters[data-st-filters] .st-filters__foot {
    transition: none !important;
    filter: none !important;
  }

  .st-filters[data-st-filters] .st-filters__panel {
    transform: none !important;
    opacity: 1 !important;
  }
}

.st-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 18px 18px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(8, 8, 8, 0.06);
}

.st-filters__head-text {
  min-width: 0;
}

.st-filters__eyebrow {
  margin: 0 0 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-orange, #F47C4A);
}

.st-filters__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #080808;
  line-height: 1.15;
  text-transform: uppercase;
}

.st-filters__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(8, 8, 8, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #080808;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.st-filters__close span {
  display: block;
  margin-top: -1px;
}

.st-filters__close:hover {
  background: #080808;
  border-color: #080808;
  color: #fff;
}

.st-filters__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-filters__section {
  margin: 0;
  padding: 14px 14px 16px;
  background: #fff;
  border: 1px solid rgba(8, 8, 8, 0.06);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(8, 8, 8, 0.03);
}

.st-filters__section--avail {
  padding: 14px;
}

.st-filters__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.st-filters__section-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #080808;
}

.st-filters__section-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(8, 8, 8, 0.45);
  background: rgba(8, 8, 8, 0.05);
  border-radius: 999px;
  padding: 4px 9px;
  line-height: 1;
}

.st-filters__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.st-filters__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(8, 8, 8, 0.1);
  border-radius: 999px;
  background: var(--st-off-white, #FFFFFB);
  color: #080808;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  user-select: none;
}

.st-filters__pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.st-filters__pill:hover {
  border-color: rgba(8, 8, 8, 0.22);
  background: #fff;
}

.st-filters__pill:has(input:checked),
.st-filters__pill.is-active {
  background: #080808;
  border-color: #080808;
  color: #fff;
}

.st-filters__scroll {
  max-height: 240px;
  overflow-y: auto;
  margin: 0 -2px;
  padding: 0 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 8, 8, 0.2) transparent;
}

.st-filters__list--cats .st-filters__scroll,
.st-filters__section:has(.st-filters__list--cats) .st-filters__scroll {
  max-height: 280px;
}

.st-filters__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-filters__check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.st-filters__check:hover {
  background: rgba(244, 124, 74, 0.08);
}

.st-filters__check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.st-filters__box {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(8, 8, 8, 0.22);
  border-radius: 5px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.st-filters__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.14s ease;
}

.st-filters__check input:checked + .st-filters__box {
  background: var(--st-orange, #F47C4A);
  border-color: var(--st-orange, #F47C4A);
}

.st-filters__check input:checked + .st-filters__box::after {
  transform: rotate(45deg) scale(1);
}

.st-filters__check input:focus-visible + .st-filters__box {
  box-shadow: 0 0 0 3px rgba(244, 124, 74, 0.25);
}

.st-filters__label {
  flex: 1 1 auto;
  min-width: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #080808;
  line-height: 1.3;
}

.st-filters__child {
  padding-left: calc(12px * var(--st-depth, 1));
}

.st-filters__child .st-filters__label {
  font-weight: 500;
  color: rgba(8, 8, 8, 0.72);
  font-size: 14px;
}

.st-filters__toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  min-height: 36px;
  cursor: pointer;
  user-select: none;
}

.st-filters__toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.st-filters__toggle-ui {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.12);
  transition: background 0.18s ease;
}

.st-filters__toggle-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(8, 8, 8, 0.18);
  transition: transform 0.18s ease;
}

.st-filters__toggle input:checked + .st-filters__toggle-ui {
  background: var(--st-orange, #F47C4A);
}

.st-filters__toggle input:checked + .st-filters__toggle-ui::after {
  transform: translateX(18px);
}

.st-filters__toggle input:focus-visible + .st-filters__toggle-ui {
  box-shadow: 0 0 0 3px rgba(244, 124, 74, 0.25);
}

.st-filters__toggle-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #080808;
  line-height: 1.25;
}

.st-filters__foot {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 10px;
  flex: 0 0 auto;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(8, 8, 8, 0.06);
  background: #fff;
  box-shadow: 0 -6px 18px rgba(8, 8, 8, 0.04);
}

.st-filters__reset,
.st-filters__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.st-filters__reset {
  border: 1px solid rgba(8, 8, 8, 0.14);
  background: transparent;
  color: #080808;
}

.st-filters__reset:hover {
  border-color: #080808;
  background: var(--st-off-white, #FFFFFB);
}

.st-filters__apply {
  border: 0;
  background: var(--st-orange, #F47C4A);
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 124, 74, 0.26);
}

.st-filters__apply em {
  font-style: normal;
  font-weight: 700;
  opacity: 0.75;
}

.st-filters__apply:hover {
  background: #080808;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 575px) {
  .st-shop__toolbar {
    border-radius: 22px;
    padding: 10px;
    flex-wrap: wrap;
  }

  .st-shop__toolbar-left,
  .st-shop__toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .st-filters[data-st-filters] .st-filters__panel {
    width: 100%;
    max-width: 100%;
  }

  .st-filters__body {
    padding: 8px 8px 12px;
  }

  .st-filters__section {
    padding: 8px 8px 10px;
    border-radius: 12px;
  }

  .st-filters__section--avail {
    padding: 8px;
  }

  .st-filters__foot {
    grid-template-columns: 1fr;
    padding-left: 8px;
    padding-right: 8px;
  }
}
