/* =============================================================
   UNIFIED FILTER SECTION — Combined Category + Filter Bar
   ============================================================= */

/* ---- Container Card ---- */
.unified-filter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.unified-filter-section > *:first-child {
  padding-top: 20px;
}

/* ---- Circle Category Scroll ---- */
.category-filter-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 28px 20px 16px;
}

.category-filter-scroll::-webkit-scrollbar {
  display: none;
}

.category-filter-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  scroll-behavior: smooth;
}

/* ---- Individual Category Item ---- */
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  width: 90px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

/* ---- Circle Image ---- */
.category-image-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2.5px solid #e8e8e8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.category-item:hover .category-image-circle {
  transform: translateY(-4px);
  border-color: #111;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.category-item.active .category-image-circle {
  border-color: #111;
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: scale(1.08);
}

.category-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-item:hover .category-image-circle img {
  transform: scale(1.12);
}

/* ---- Label ---- */
.category-label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  transition: all 0.2s ease;
  max-width: 85px;
}

.category-item.active .category-label {
  color: #111;
  font-weight: 700;
}

.category-item:hover .category-label {
  color: #333;
}

/* ---- Divider between Sections ---- */
.filter-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
  margin: 4px 0;
}

/* ---- Filter Bar Row ---- */
.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar-inner::-webkit-scrollbar {
  display: none;
}

/* ---- Filter Group (Pill Dropdowns) ---- */
.filter-group {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-group select {
  padding: 8px 32px 8px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-group select:hover {
  border-color: #bbb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.filter-group select:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ---- Clear / Reset Button ---- */
.filter-reset-btn {
  padding: 8px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #c62828;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-reset-btn:hover {
  background: #fef0f0;
  border-color: #c62828;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.1);
}

.filter-reset-btn svg {
  stroke: #c62828;
}

/* =============================================================
   MOBILE RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
  .unified-filter-section {
    padding: 0 10px;
  }

  .category-filter-scroll {
    padding: 14px 0 10px;
  }

  .category-filter-container {
    gap: 16px;
  }

  .category-item {
    width: 70px;
    gap: 7px;
  }

  .category-image-circle {
    width: 60px;
    height: 60px;
  }

  .category-label {
    font-size: 10px;
    max-width: 65px;
  }

  .filter-divider {
    margin: 2px 0;
  }

  .filter-bar-inner {
    padding: 8px 0 12px;
    gap: 8px;
  }

  .filter-group select {
    font-size: 12px;
    padding: 7px 28px 7px 12px;
    border-radius: 18px;
  }

  .filter-reset-btn {
    padding: 7px 14px;
    font-size: 11px;
    border-radius: 18px;
  }
}