/* =========================
   FILTERPANEL – FEATURE
========================= */

.st-filterpanel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.st-filterpanel.is-open {
  display: block;
}

/* Backdrop */
.st-filterpanel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

/* Panel */
.st-filterpanel__sheet {
  position: absolute;
  top: 0;
  left: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Body scroll lock */
body.st-no-scroll {
  overflow: hidden;
}

/* Header */
.st-filterpanel__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.st-filterpanel__header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  padding-right: 48px;
}

/* Close */
.st-filterpanel__close {
  position: absolute;
  top: 10px;
  right: 12px;

  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid #e2e2e2;
  background: #fff;

  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

/* Body */
.st-filterpanel__body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.st-filterpanel__body h3 {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 800;
}

/* Facet spacing */
.st-filterpanel__body .facetwp-facet {
  margin-bottom: 12px;
}

/* Footer */
.st-filterpanel__footer {
  padding: 12px 16px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  align-items: center;
}

.st-filterpanel__apply {
  flex: 1;
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

/* Close hover */
.st-filterpanel__close:hover,
.st-filterpanel__close:focus-visible {
  background: var(--st-primary, var(--vcom-primary));
  color: #fff;
  border-color: var(--st-primary, var(--vcom-primary));
}

/* Apply button */
.st-filterpanel__apply {
  background: var(--st-primary, var(--vcom-primary));
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}

.st-filterpanel__apply:hover {
  opacity: .94;
}