.catalog-smart-header {
  transition: transform 180ms ease;
  will-change: transform;
}

.catalog-smart-header.catalog-header-hidden {
  transform: translateY(-110%) !important;
}

.catalog-filter-panel {
  top: 12px !important;
  max-height: calc(100dvh - 24px) !important;
}

.catalog-filter-header-actions button:not(.catalog-filter-close) {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 11px;
}

.catalog-category-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.catalog-category-row > label {
  min-width: 0;
  flex: 1 1 auto;
}

.catalog-category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 0;
  background: transparent;
  color: #68747a;
  cursor: pointer;
  font-size: 14px;
}

.catalog-category-children {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 7px;
}

.catalog-category-children[hidden] {
  display: none;
}

.product-list-toolbar-shell {
  padding-bottom: 14px;
}

.catalog-infinite-loader {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #7b858a;
  font-size: 12px;
}

.catalog-infinite-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-primary-lighter);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: catalog-spin 700ms linear infinite;
}

.catalog-infinite-sentinel {
  width: 1px;
  height: 1px;
}

.catalog-empty-state {
  grid-column: 1 / -1;
  padding: 48px 16px;
  color: #7b858a;
  font-size: 14px;
  text-align: center;
}

.catalog-products-stage {
  position: relative;
}

.catalog-skeleton-grid {
  display: none;
}

.catalog-products-stage[loading] > .catalog-skeleton-grid {
  display: grid;
}

.catalog-products-stage[loading] > [data-product-grid] {
  position: absolute;
  inset: 0;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.catalog-skeleton-card {
  background: transparent;
}

.catalog-skeleton-shape {
  display: block;
  background: linear-gradient(90deg, #edf2f1 24%, #dce9e7 38%, #edf2f1 62%);
  background-size: 300% 100%;
  animation: catalog-skeleton-shimmer 1.35s ease-in-out infinite;
}

.catalog-skeleton-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #f9fafb;
}

.catalog-skeleton-copy {
  padding: 8px 0 4px;
}

.catalog-skeleton-title {
  width: 88%;
  height: 13px;
  margin-bottom: 4px;
  border-radius: 3px;
}

.catalog-skeleton-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}

.catalog-skeleton-price {
  width: 42%;
  max-width: 96px;
  height: 16px;
  border-radius: 3px;
}

.catalog-skeleton-action {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  flex-shrink: 0;
}

@keyframes catalog-skeleton-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

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

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

@media (max-width: 991px) {
  .catalog-filter-panel {
    top: 0 !important;
    max-height: none !important;
  }
}

@media (min-width: 992px) {
  .product-catalog-sidebar {
    align-self: stretch;
  }
}
