.products-page__toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.products-page__filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  background: rgba(143, 65, 12, 0.06);
  color: var(--color-secondary);
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
}

.products-page__filters {
  margin-bottom: 28px;
  border: 1px solid var(--color-gray-100);
  border-radius: 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.35);
}

.products-page__filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--color-primary);
  font-weight: 700;
}

.products-page__filters-head button {
  border: none;
  background: none;
  color: var(--color-secondary);
  padding: 0;
}

.products-page__filters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.products-page__filters-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--color-secondary);
}

.products-page__filters-grid input,
.products-page__filters-grid select {
  border: 1px solid var(--color-gray-100);
  border-radius: 12px;
  background: transparent;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.products-page__filters-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.products-page__reset {
  border: 1px solid var(--color-gray-100);
  border-radius: 12px;
  background: transparent;
  padding: 10px 16px;
  font-family: inherit;
  color: var(--color-secondary);
}

.products-page__content {
  min-height: 320px;
  padding-bottom: 60px;
}

.products-page__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.products-page__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 280px;
  color: var(--color-secondary);
  text-align: center;
}

.products-page__state--error {
  color: #9b2c2c;
}

.products-page__hint {
  color: var(--color-gray-300);
  font-size: 13px;
}

.products-page__spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(143, 65, 12, 0.15);
  border-top-color: var(--color-primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.products-page__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.products-page__pagination button {
  min-width: 70px;
  height: 38px;
  border: none;
  border-radius: 25px;
  background: transparent;
  color: rgba(94, 94, 94, 0.6);
  font-family: inherit;
  font-size: clamp(15px, 3vw, 20px);
}

.products-page__pagination button.is-active {
  background: rgba(143, 65, 12, 0.05);
  color: var(--color-primary);
  font-size: clamp(20px, 3vw, 25px);
}

.products-page__pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.products-page__page-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.products-page__ellipsis {
  color: rgba(94, 94, 94, 0.5);
}

@media (max-width: 1400px) {
  .products-page__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .products-page__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-page__filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .products-page__toolbar {
    margin-bottom: 16px;
  }

  .products-page__filters {
    padding: 14px 14px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .products-page__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .products-page__filters-grid {
    grid-template-columns: 1fr;
  }

  .products-page__filters-actions {
    flex-direction: column;
  }

  .products-page__filters-actions .btn-primary,
  .products-page__reset {
    width: 100%;
    justify-content: center;
  }

  .products-page__content {
    min-height: 220px;
    padding-bottom: 40px;
  }

  .products-page__pagination {
    margin-top: 28px;
    gap: 4px;
  }

  .products-page__pagination button {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .products-page__pagination button.is-active {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .products-page__grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }
}
