/* =============================================
   WC Shop Filters — Drawer + Toolbar
   ============================================= */

/* ── Toolbar ── */
.wcsf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.wcsf-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 2px solid #222;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.wcsf-open-btn:hover {
  background: #222;
  color: #fff;
}

.wcsf-active-count {
  background: #e44;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.wcsf-sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wcsf-sort-label {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

.wcsf-sort-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.wcsf-sort-select:focus {
  border-color: #333;
}

/* ── Overlay ── */
.wcsf-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.wcsf-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ── Drawer ── */
.wcsf-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 320px;
  max-width: 90vw;
  background: #fff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.wcsf-drawer.is-open {
  transform: translateX(0);
}

body.wcsf-no-scroll {
  overflow: hidden;
}

/* ── Drawer header ── */
.wcsf-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #eee;
}

.wcsf-drawer__title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.wcsf-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #888;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.wcsf-close-btn:hover {
  background: #f0f0f0;
  color: #222;
}

/* ── Drawer body ── */
.wcsf-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.wcsf-section {
  margin-bottom: 28px;
}

.wcsf-section__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 12px 0;
}

/* ── Категории ── */
.wcsf-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wcsf-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.wcsf-radio:hover {
  background: #f5f5f5;
}

.wcsf-radio input[type="radio"] {
  accent-color: #222;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.wcsf-radio span {
  font-size: 14px;
  color: #333;
}

.wcsf-radio span em {
  font-style: normal;
  color: #aaa;
  font-size: 12px;
  margin-left: 4px;
}

/* ── Price slider ── */
.wcsf-price-display {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.wcsf-range-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}

.wcsf-range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
}

.wcsf-range-fill {
  position: absolute;
  height: 100%;
  background: #222;
  border-radius: 2px;
}

.wcsf-range {
  position: absolute;
  width: 100%;
  height: 4px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  outline: none;
}

.wcsf-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #222;
  pointer-events: all;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}

.wcsf-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.wcsf-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #222;
  pointer-events: all;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ── Footer ── */
.wcsf-drawer__footer {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

.wcsf-reset-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.wcsf-reset-btn:hover {
  border-color: #999;
  color: #222;
}

.wcsf-apply-btn {
  flex: 2;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.wcsf-apply-btn:hover {
  background: #444;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .wcsf-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ── Няма резултати ── */
.wcsf-no-results {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 15px;
  width: 100%;
}
