/* Приховані чекбокси (розгортаються кнопкою) */
.filter-checkbox--hidden {
  display: none !important;
}

.filter-section__content.expanded .filter-checkbox--hidden {
  display: flex !important;
}

/* Кнопка "Розгорнути" */
.filter-section__expand {
  background: none;
  border: none;
  color: #999;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  padding: 12px 0 0 0;
  margin-top: 8px;
  transition: color 0.2s ease;
  width: 100%;
  text-align: left;
  text-decoration: underline;
}

.filter-section__expand:hover {
  color: #000;
  text-decoration: none;
}

/* Чекбокс з hex кружечком для кольорів */
.filter-checkbox--color {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-checkbox__color-circle {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}

/* Кнопка "Очистити фільтр" (внизу сайдбара) */
.catalog-filter__reset {
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  color: #000;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.catalog-filter__reset:hover {
  background: #f5f5f5;
  border-color: #000;
}

.catalog-filter__reset svg {
  width: 20px;
  height: 20px;
}

/* Пусте повідомлення */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.catalog-empty p {
  font-size: 16px;
  color: #999;
}

/* Лоадер для AJAX */
.catalog-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

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

.catalog-content {
  position: relative;
}

/* Mobile адаптив */
@media (max-width: 768px) {
  .filter-colors {
    gap: 8px;
  }

  .filter-color__circle {
    width: 32px;
    height: 32px;
  }

  .filter-size-btn__label {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 40px;
  }

  .filter-reset {
    margin-top: 16px;
    padding-top: 16px;
  }

  .filter-reset__btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}
