.dch-catalog-home {
  clear: both;
  min-width: 0;
  position: relative;
  width: 100%;
}

.dch-catalog-home[hidden] {
  display: none !important;
}

.dch-status {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  min-height: 10rem;
  padding: 2rem 1rem;
  text-align: center;
}

.dch-status p {
  margin: 0;
}

.dch-catalog-home.dch-is-ready .dch-status,
.dch-catalog-home.dch-is-loading .dch-retry {
  display: none;
}

.dch-catalog-home[data-dch-has-content="true"].dch-is-loading .dch-status {
  display: none;
}

.dch-catalog-home.dch-is-empty .dch-status,
.dch-catalog-home.dch-is-error .dch-status,
.dch-catalog-home.dch-is-disabled .dch-status {
  display: flex;
  min-height: 6rem;
}

.dch-catalog-home.dch-is-empty .dch-skeleton,
.dch-catalog-home.dch-is-error .dch-skeleton,
.dch-catalog-home.dch-is-disabled .dch-skeleton {
  display: none;
}

.dch-catalog-home.dch-is-error .dch-retry {
  display: inline-block;
}

.dch-skeleton {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 48rem;
  width: 100%;
}

.dch-skeleton span {
  animation: dch-pulse 1.2s ease-in-out infinite alternate;
  background: currentColor;
  border-radius: 0.25rem;
  display: block;
  height: 7rem;
  opacity: 0.08;
}

.dch-layout {
  min-width: 0;
}

.dch-results {
  min-width: 0;
  width: 100%;
}

.dch-catalog-home.dch-hide-filters #facets_search_center,
.dch-catalog-home.dch-hide-filters .facated-toggler,
.dch-catalog-home.dch-hide-sort .products-sort-order,
.dch-catalog-home.dch-hide-count .showing,
.dch-catalog-home.dch-hide-pagination .pagination,
.dch-catalog-home.dch-hide-pagination .pagination-wrapper {
  display: none !important;
}

@media (min-width: 992px) {
  .dch-layout {
    align-items: flex-start;
    display: flex;
    gap: 2rem;
  }

  .dch-catalog-home #facets_search_center {
    display: block !important;
    flex: 0 0 25rem;
    margin: 0;
    padding: 1rem;
  }

  .dch-catalog-home #facets_search_center #search_filters {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .dch-catalog-home #facets_search_center #search_filters .facet {
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .dch-results {
    flex: 1 1 auto;
  }
}

@media (max-width: 575.98px) {
  .dch-skeleton {
    grid-template-columns: 1fr;
  }
}

@keyframes dch-pulse {
  to {
    opacity: 0.16;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dch-skeleton span {
    animation: none;
  }
}
