.jt-category-products {
  position: relative;
}

.jt-category-products__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.jt-category-products__button {
  padding: 0.6rem 1rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.jt-category-products__button.is-active {
  background: #232323;
  color: #fff;
}

.jt-category-products__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.jt-category-products__grid {
  display: grid;
  grid-template-columns: repeat(var(--jtcp-columns-desktop, 4), minmax(0, 1fr));
  gap: 1.5rem;
  transition: opacity 160ms ease;
}

.jt-category-products__grid > * {
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.jt-category-products.is-loading .jt-category-products__grid {
  opacity: 0.45;
  pointer-events: none;
}

.jt-category-products__status {
  min-height: 1.25rem;
  color: #b42318;
}

.jt-category-products__empty,
.jt-category-products__notice {
  grid-column: 1 / -1;
}

@media (max-width: 991px) {
  .jt-category-products__grid {
    grid-template-columns: repeat(var(--jtcp-columns-tablet, 3), minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .jt-category-products__grid {
    grid-template-columns: repeat(var(--jtcp-columns-mobile, 2), minmax(0, 1fr));
    gap: 1rem;
  }
}

.jt-category-products__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.jt-category-products__pagination button {
  padding: 0.5rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.jt-category-products__pagination button[aria-current="page"] {
  background: #232323;
  color: #fff;
  opacity: 1;
}

.jt-category-products__pagination button:disabled {
  cursor: default;
  opacity: 0.5;
}

.jt-category-products__pagination button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
