.open-filter {
  margin: 20px;
  padding: 10px 20px;
  background: #ff7a00;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

/* ===== Overlay ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 11100;
}

/* ===== Drawer ===== */
.drawer.filterDrawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: #fff;
  z-index: 11100;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Hidden by default */
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s ease, visibility 0.32s ease;
}

/* When open */
.drawer.open {
  transform: translateX(0);
  visibility: visible;
}

/* ===== Header ===== */
.drawer .header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.drawer .header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.drawer .close {
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  border: none;
  background: transparent;
}

/* ===== Content ===== */
.drawer .content {
  padding: 18px 20px;
  overflow: auto;
  flex: 1;
}

/* ===== Applied tags ===== */
.applied {
  margin-bottom: 18px;
}

.applied strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #333;
}

#applied-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--applyFilter_tag_BG);
  border: 1px solid var(--applyFilter_tag_border);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--applyFilter_tag_text);
}

.tag .remove {
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  border-radius: 3px;
  cursor: pointer;
  background: var(--applyFilter_tag_BG);
  color: #555;
  font-weight: bold;
  border: none;
}

/* ===== Filter sections ===== */
.section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: bold;
}

.section-body {
  margin-top: 12px;
}

/* ===== Checkbox styling ===== */
.chk {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  cursor: pointer;
  user-select: none;
}

.chk input[type=checkbox] {
  display: none;
}

.chk .box {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid var(--filter_checkbox_default_outline);
  display: inline-block;
  position: relative;
}

.chk input[type=checkbox]:checked + .box {
  background: var(--filter_checkbox_checked_BG);
  border-color: var(--filter_checkbox_checked_border);
}

.chk input[type=checkbox]:checked + .box::after {
  content: "✓";
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
  font-size: 12px;
}

.chk .label-text {
  font-size: 14px;
  color: #222;
}

/* ===== Nested filter rows ===== */
.items-wrap-filter .row-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
}

.nested {
  margin-left: 32px;
}

.chev-sec,
.chev-sub {
  font-size: 14px;
  margin-left: 6px;
  cursor: pointer;
}

/* ===== Apply button ===== */
.apply-wrap {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px 20px;
  background: #fff;
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
              rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}

.apply-btn {
  width: 100%;
  padding: 8px 16px;
  background: var(--filter_apply_btn_BG);
  color: var(--filter_apply_btn_text);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== Scrollbar ===== */
.drawer .content::-webkit-scrollbar {
  width: 8px;
}

.drawer .content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .drawer.filterDrawer {
    width: 100% !important;
  }
}
