/* ============================================================
   Vramkah Filter — Sidebar Panel Styles
   ============================================================ */

.vr-filter-panel {
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* Header */
.vr-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #1a1a1a;
}

.vr-filter-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vr-filter-clear-all {
  font-size: 0.8rem;
  color: #006AFF;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.vr-filter-clear-all:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Filter Group */
.vr-filter-group {
  border-bottom: 1px solid #f0f0f0;
}

.vr-filter-group:last-child {
  border-bottom: none;
}

.vr-filter-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.vr-filter-group__toggle:hover {
  background: #fafafa;
}

.vr-filter-group__title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vr-filter-chevron {
  transition: transform 0.25s ease;
  color: #999;
}

.vr-filter-group.is-collapsed .vr-filter-chevron {
  transform: rotate(-90deg);
}

.vr-filter-group.is-collapsed .vr-filter-options,
.vr-filter-group.is-collapsed .vr-price-slider-wrap {
  display: none;
}

/* Options List */
.vr-filter-options {
  list-style: none;
  padding: 0 1.25rem 0.75rem;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
}

.vr-filter-options::-webkit-scrollbar {
  width: 4px;
}

.vr-filter-options::-webkit-scrollbar-track {
  background: transparent;
}

.vr-filter-options::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.vr-filter-option {
  margin-bottom: 2px;
}

/* Checkbox Style */
.vr-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
  user-select: none;
}

.vr-filter-checkbox:hover {
  background: #f5f7fa;
}

.vr-filter-checkbox.is-active {
  background: rgba(0, 106, 255, 0.06);
}

.vr-filter-checkbox input {
  display: none;
}

.vr-check-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.vr-filter-checkbox.is-active .vr-check-mark,
.vr-filter-checkbox input:checked ~ .vr-check-mark {
  background: #006AFF;
  border-color: #006AFF;
}

.vr-filter-checkbox.is-active .vr-check-mark::after,
.vr-filter-checkbox input:checked ~ .vr-check-mark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.vr-filter-label {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.3;
}

.vr-filter-checkbox.is-active .vr-filter-label {
  color: #1a1a1a;
  font-weight: 500;
}

/* Color Swatches */
.vr-filter-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
  user-select: none;
}

.vr-filter-swatch:hover {
  background: #f5f7fa;
}

.vr-filter-swatch input {
  display: none;
}

.vr-swatch-color {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vr-filter-swatch.is-active .vr-swatch-color,
.vr-filter-swatch input:checked ~ .vr-swatch-color {
  border-color: #006AFF;
  box-shadow: 0 0 0 2px rgba(0, 106, 255, 0.25);
}

.vr-swatch-label {
  font-size: 0.82rem;
  color: #555;
}

.vr-filter-swatch.is-active .vr-swatch-label {
  color: #1a1a1a;
  font-weight: 500;
}

/* Price Filter */
.vr-price-slider-wrap {
  padding: 0.5rem 1.25rem 1rem;
}

.vr-price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.vr-price-input {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #333;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.vr-price-input::-webkit-inner-spin-button,
.vr-price-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vr-price-input:focus {
  border-color: #006AFF;
}

.vr-price-sep {
  color: #999;
  font-size: 0.9rem;
}

.vr-price-apply {
  width: 100%;
  padding: 0.5rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vr-price-apply:hover {
  background: #006AFF;
}

/* Mobile toggle */
@media (max-width: 991px) {
  .vr-filter-panel {
    margin-bottom: 1rem;
  }
}
