.filter-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  align-items: center;
}

.filter-title h2 {
  font-size: 20px;
  line-height: 24px;
  color: #0a0a0a;
  font-weight: 700;
}

.filter-wrapper {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-section h4 {
  font-size: 16px;
  line-height: 20px;
  color: #0a0a0a;
  font-weight: 600;
  margin-bottom: 16px;
}

.filter-section label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  accent-color: #dc9832;
  transition: all 0.4s;
}

.filter-section label:hover {
  cursor: pointer;
  color: #dc9832;
}

.filter-section label input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.filter-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-section .color-filter-item {
  width: 28px;
  height: 28px;
  cursor: pointer;
  border-radius: 100%;
  border: 2px solid #ccc;
  margin-bottom: 0;
  cursor: pointer;
}

.color-filter-item.active {
  border: 2px solid #dc9832;
}

/* price range slider */
.filter-section .noUi-horizontal .noUi-handle {
  width: 30px;
  height: 30px;
  border-radius: 100%;
  right: -2px;
  top: -8px;
}

.filter-section .noUi-horizontal .noUi-handle.noUi-handle-lower {
  right: -28px;
}

.filter-section .noUi-horizontal .noUi-handle::after,
.filter-section .noUi-horizontal .noUi-handle::before {
  display: none;
}

.filter-section .noUi-target {
  border-radius: 30px;
  height: 14px;
  width: 100%;
  margin: 18px auto 0;
}

.filter-section .noUi-connect {
  background-color: #dc9832;
}

.filter-section #price-value {
  margin-top: 12px;
}

/* button apply filter */
#apply-filter {
  border-radius: 12px;
  background-color: #dc9832;
  border: 1px solid #dc9832;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
  width: 100%;
  margin: 24px 0;
  font-family: "Roboto", sans-serif !important;
  transition: all 0.4s;
  text-transform: unset;
}

#apply-filter:hover {
  background-color: white;
  color: #dc9832;
}

#overlay {
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  z-index: -100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

#overlay.is-show {
  opacity: 1;
  visibility: visible;
  z-index: 9999;
}

.close-filter {
  width: 24px;
  height: 24px;
  background-image: url(./images/ic-close.svg);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .6;
  display: none;
  transition: all 0.4s;
}

.close-filter:hover {
  opacity: 1;
}

#icon-filter {
  position: fixed;
  top: 20%;
  left: 2px;
  background-color: white;
  border: 1px solid #0a0a0a;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  background-image: url(./images/icon-filter.svg);
  background-repeat: no-repeat;
  background-size: 24px;
  width: 36px;
  height: 36px;
  background-position: center;
  padding: 6px;
  border-radius: 4px;
  z-index: 1000;
  cursor: pointer;
  opacity: .5;
  transition: all 0.4s;
  display: none;
}

#icon-filter:hover {
  opacity: 1;
}

.overflow-hidden {
  overflow: hidden;
}

/* Thanh filter ngang */
.filter-bar {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
}

/* Nhãn "Bộ lọc" + icon */
.filter-bar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  border-right: 1px dashed #D1D5DB;
}

.filter-bar__icon {
  width: 24px;
  height: 24px;
  background: url('./images/icon-filter.jpg') center/20px 20px no-repeat;
  opacity: .9;
}

/* Cụm controls */
.filter-bar__controls {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
}

.filter-select {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 220px;
}

.filter-select__caption {
  display: block;
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 4px;
}

.filter-select select {
  width: 100%;
  border: none;
  outline: none;
  font-weight: 600;
  color: #111827;
  background: transparent;
  appearance: none;
}

/* Màu sắc dạng chấm tròn */
.filter-colors-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-colors {
  display: flex;
  gap: 10px;
  align-items: center;
}

.color-filter-item {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #D1D5DB;
  cursor: pointer;
}

.color-filter-item input:checked+i,
.color-filter-item:has(input:checked) {
  box-shadow: 0 0 0 2px #111827;
}

/* Nút áp dụng */
.filter-bar .button.primary {
  margin-left: auto;
  background: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
}

/* ==== Product list compact ==== */
.plist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #111827;
  font-size: 14px;
}

.plist {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.plist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px dashed #E5E7EB;
}

.plist-item:last-child {
  border-bottom: 0;
}

.plist-thumb {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 120px;
}

.plist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plist-main {
  flex: 1;
  min-width: 0;
}

.plist-title {
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: .05em;
}

.plist-title a {
  color: #111827;
  text-decoration: none;
}

.plist-desc {
  color: #6B7280;
  font-size: 13px;
}

.plist-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plist-price {
  background: #F3F4F6;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.plist-btn {
  background: #111827;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.plist-btn.disabled {
  opacity: .5;
  pointer-events: none;
}

.plist-more-wrap {
  text-align: center;
  margin-top: 12px;
}

.plist-more {
  display: inline-block;
  background: #111827;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 767px) {
  .plist-item {
    flex-wrap: wrap;
  }

  .plist-side {
    width: 100%;
    justify-content: space-between;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-bar__label {
    border-right: 0;
    padding-right: 0;
  }

  .filter-bar__controls {
    flex-wrap: wrap;
  }

  .filter-select {
    flex: 1;
    min-width: calc(50% - 8px);
  }
}


@media(max-width: 849px) {
  #icon-filter {
    display: block;
  }

  .close-filter {
    display: block;
  }

  .filter-wrapper {
    max-width: 300px;
    height: 100vh;
    overflow-y: scroll;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 10000;
    width: 100%;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.4s;
  }

  .filter-wrapper.is-open {
    opacity: 1;
    transform: translateX(0);
  }
}