/* Custom Range Slider */
.price-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  outline: none;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a6b2f;
  cursor: pointer;
  transition: transform 0.1s;
}

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

.price-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a6b2f;
  cursor: pointer;
  border: none;
}

/* Custom Checkbox */
.custom-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #d1d5db;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.custom-checkbox:checked {
  background-color: #1a6b2f;
  border-color: #1a6b2f;
}

.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Horizontal Card layout for mobile: KEEP HORIZONTAL */
.archive-card {
  display: flex;
  flex-direction: row;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #f3f4f6;
  position: relative;
  flex-wrap: wrap;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.archive-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-color: #e5e7eb;
}

.archive-img-wrap {
  width: 100px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  .archive-card {
    gap: 20px;
    padding: 16px;
  }

  .archive-img-wrap {
    width: 220px;
    height: 160px;
  }
}

.archive-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.archive-card:hover .archive-img {
  transform: scale(1.05);
}

.tag-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  color: #fff;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tag-moi {
  background: #1a6b2f;
}

.tag-hot {
  background: #dc2626;
}

.archive-btn-heart {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
  z-index: 10;
  transition: all 0.2s;
}

.archive-btn-heart:hover {
  color: #ef4444;
  background: #fff;
}

.filter-acc-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-weight: 700;
  color: #374151;
  font-size: 14px;
}

.filter-acc-content {
  display: none;
  padding-bottom: 12px;
}

.filter-acc.open .filter-acc-content {
  display: block;
}

.filter-acc.open .filter-acc-icon {
  transform: rotate(180deg);
}

.filter-acc-icon {
  transition: transform 0.2s;
  font-size: 12px;
  color: #9ca3af;
}

/* Pagination */
.qn-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.qn-pagination a,
.qn-pagination span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.qn-pagination a.page-numbers {
  border: 1px solid #e5e7eb;
  color: #4b5563;
  background: #fff;
}

.qn-pagination a.page-numbers:hover {
  border-color: #1a6b2f;
  color: #1a6b2f;
}

.qn-pagination span.current {
  background: #1a6b2f;
  color: #fff;
  border: 1px solid #1a6b2f;
}

.qn-pagination a.next,
.qn-pagination a.prev {
  border-color: #e5e7eb;
  color: #6b7280;
}

/* Loader */
#archiveLoader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 50;
  align-items: center;
  justify-content: center;
}

.spinner {
  border: 3px solid rgba(26, 107, 47, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-left-color: #1a6b2f;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
