@charset "UTF-8";
/* ===== Filter Bar ===== */
.filter-bar {
  display: inline-flex;
  gap: 8px;
  position: relative; }

.filter-bar__item {
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px; }

.filter-bar__item:hover {
  background: #eee; }

/* ===== Overlay ===== */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
  z-index: 98; }

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

/* ===== Popup ===== */
.filter-popup {
  top: 100%;
  min-width: 360px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: absolute;
  transition: 0.25s;
  z-index: 99;
  display: flex;
  flex-direction: column;
  display: none; }
  @media (max-width: 767px) {
    .filter-popup {
      position: fixed;
      bottom: 0;
      left: 0;
      z-index: 999999999999;
      top: auto;
      max-height: 90vh;
      width: 100%; } }

.filter-bar.active .filter-popup {
  display: block; }

.filter-popup.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1); }

/* ===== Header ===== */
.filter-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eee; }

.filter-popup__title {
  font-weight: 600; }

.filter-popup__close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer; }

/* ===== Search ===== */
.filter-popup__search {
  padding: 12px 16px; }

.filter-popup__search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  font-size: 14px; }

/* ===== List ===== */
.filter-popup__list {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden; }

.filter-popup__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
  cursor: pointer; }

.filter-popup__item:last-child {
  border-bottom: none; }

/* ===== Actions ===== */
.filter-popup__actions {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #eee; }

.filter-popup__btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none; }

.filter-popup__btn--reset {
  background: #fff;
  border: 1px solid #ddd; }

.filter-popup__btn--apply {
  background: #FFD400;
  color: #fff; }

/* ===== Filter Item ===== */
.filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease; }

.filter-item:hover {
  background: #f5f5f5; }

/* Text */
.filter-item__text {
  font-size: 14px;
  color: #222; }

/* Hide native checkbox */
.filter-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none; }

/* Custom checkbox */
.filter-item__checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #d0d0d0;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: inline-block; }

/* Tick */
.filter-item__checkbox::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0; }

/* Checked */
.filter-item input:checked + .filter-item__checkbox {
  background: #ffd400;
  /* vàng như hình */
  border-color: #ffd400;
  display: inline-block; }

.filter-item input:checked + .filter-item__checkbox::after {
  opacity: 1; }

.collection-tools label {
  width: 100%;
  display: flex; }

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff; }

.menu-list__item + .menu-list__item {
  border-top: 1px solid #f0f0f0; }

.menu-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  text-decoration: none;
  color: #111;
  font-size: 15px;
  transition: background 0.2s ease; }

.menu-list__link:hover {
  background: #f5f5f5;
  text-decoration: none; }

.menu-list__text {
  font-weight: 400; }

.menu-list__arrow {
  font-size: 18px;
  color: #999; }

.collection-tools {
  padding-top: 10px;
  gap: 10px;
  display: flex;
  flex-wrap: wrap; }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; }

.filter-bar__item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease; }

.filter-bar__item:hover {
  background: #f8fafc;
  border-color: #d1d5db; }

.filter-bar.active .filter-bar__item {
  background: #111;
  color: #fff;
  border-color: #111; }

.filter-popup {
  top: calc(100% + 10px);
  left: 0;
  min-width: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden; }

@media (max-width: 767px) {
  .filter-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    animation: slideUp .25s ease; } }

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0; }
  to {
    transform: translateY(0);
    opacity: 1; } }

.filter-popup__header {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa; }

.filter-popup__title {
  font-size: 15px;
  font-weight: 600; }

.filter-popup__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9; }

.filter-popup__close:hover {
  background: #e5e7eb; }

.filter-item {
  padding: 10px 16px;
  border-radius: 10px; }

.filter-item:hover {
  background: #f8fafc; }

.filter-item__text {
  font-size: 14px;
  color: #111; }

.filter-item__checkbox {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid #d1d5db; }

.filter-item input:checked + .filter-item__checkbox {
  background: #111;
  border-color: #111; }

.filter-item input:checked + .filter-item__checkbox::after {
  border-color: #fff; }

.filter-popup__actions {
  padding: 14px;
  gap: 12px;
  background: #fafafa; }

.filter-popup__btn {
  height: 44px;
  border-radius: 12px;
  font-weight: 600; }

.filter-popup__btn--reset {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111; }

.filter-popup__btn--apply {
  background: #111;
  color: #fff; }

.filter-popup__btn--apply:hover {
  background: #000; }

.filter-popup__list {
  position: relative; }
