/* Product detail: table, toolbar, filter panel, pagination */

.product-main {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.product-table-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  border-radius: 0.25rem;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1.25rem;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: 400;
  border-radius: 0.25rem;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.product-toolbar__btn--batch {
  color: var(--color-text-muted);
  background: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

.product-toolbar__btn--batch:not(:disabled),
.product-toolbar__btn--batch.is-active {
  color: var(--color-text-inverse);
  background: var(--color-brand-primary);
  cursor: pointer;
  opacity: 1;
}

.product-toolbar__btn--batch:not(:disabled):hover,
.product-toolbar__btn--batch:not(:disabled):focus-visible,
.product-toolbar__btn--batch.is-active:hover,
.product-toolbar__btn--batch.is-active:focus-visible {
  background: #002a70;
}

.product-toolbar__btn--export {
  color: var(--color-text-inverse);
  background: var(--color-brand-primary);
}

.product-toolbar__btn--export:hover,
.product-toolbar__btn--export:focus-visible {
  background: #002a70;
}

.product-table-bar {
  display: none;
  margin-bottom: 0.75rem;
}

.product-table-fullscreen-open {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--color-brand-primary);
  background: #f0f4fa;
  border-radius: 0.25rem;
  transition: background 0.2s ease;
}

.product-table-fullscreen-open:hover,
.product-table-fullscreen-open:focus-visible {
  background: #e2eaf5;
}

.product-table-fullscreen-close {
  display: none;
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--color-text-inverse);
  background: var(--color-brand-accent);
  border-radius: 0.25rem;
}

.product-table-fullscreen-close:hover,
.product-table-fullscreen-close:focus-visible {
  background: var(--color-brand-accent-hover);
}

.product-table-fs-top {
  display: none;
}

.product-table-body {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.product-table-wrap--fullscreen {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--color-bg-page);
  overflow: hidden;
}

.product-table-wrap--fullscreen .product-table-fs-top {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  height: 3rem;
  padding: 0 0.75rem;
  background: var(--color-bg-page);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 20;
}

.product-table-wrap--fullscreen .product-table-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.product-table-wrap--fullscreen .product-table-fullscreen-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.table-fullscreen-open {
  overflow: hidden;
}

body[data-page="products"] main {
  overflow-x: hidden;
}

.product-table {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  table-layout: auto;
}

.product-table thead {
  background: var(--color-brand-primary);
  color: var(--color-text-inverse);
}

.product-table th,
.product-table td {
  box-sizing: border-box;
  padding: 0.75rem 0.5rem;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
  border-right: 1px solid #eeeeee;
}

.product-table th {
  word-break: keep-all;
  overflow: visible;
}

.product-table td {
  word-break: break-word;
}

.product-table th:last-child,
.product-table td:last-child {
  border-right: none;
}

.product-table thead th {
  height: 3.125rem;
  border-right-color: rgba(255, 255, 255, 0.25);
}

.product-table th {
  font-weight: 400;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.product-table th sub,
.product-table__th-label sub {
  font-size: 0.68em;
  line-height: 1;
  vertical-align: baseline;
  position: relative;
  top: 0.18em;
  font-weight: 400;
}

.product-table__th--check,
.product-table tbody td:first-child,
.product-table__td--check {
  width: 3rem;
  min-width: 3rem;
  max-width: 3rem;
  text-align: center;
  vertical-align: middle;
}

.product-table__check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
}

.product-table__th--check {
  left: 0;
}

.product-table__th--part,
.product-table__part {
  min-width: max-content;
}

.product-table__th--part {
  left: 3rem;
}

.product-table__th--actions,
.product-table td:last-child {
  width: var(--product-table-actions-width, calc(var(--filter-panel-width, 10.875rem) - 2px));
  min-width: var(--product-table-actions-width, calc(var(--filter-panel-width, 10.875rem) - 2px));
  max-width: var(--product-table-actions-width, calc(var(--filter-panel-width, 10.875rem) - 2px));
  white-space: nowrap;
}

/* Sticky column 1 (checkbox) & column 2 (Part No.) */
.product-table__th--check,
.product-table tbody td:first-child,
.product-table__td--check {
  position: sticky;
  left: 0;
  z-index: 2;
}

.product-table__th--part,
.product-table__part {
  position: sticky;
  left: 3rem;
  z-index: 2;
  background: var(--color-bg-page);
  box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.08);
}

.product-table__part {
  color: var(--color-brand-primary);
  font-weight: 500;
  white-space: nowrap;
}

.product-table thead .product-table__th--check,
.product-table thead .product-table__th--part {
  z-index: 4;
  background: var(--color-brand-primary);
  color: var(--color-text-inverse);
}

.product-table tbody td:first-child {
  background: var(--color-bg-page);
}

.product-table tbody tr:nth-child(even) td:first-child,
.product-table tbody tr:nth-child(even) .product-table__part {
  background: #fafafa;
}

.product-table tbody tr:hover td:first-child,
.product-table tbody tr:hover .product-table__part {
  background: #f0f4fa;
}

.product-table thead .product-table__th--part {
  box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.15);
}

/* Sticky header row + sticky col 1/2 while table body scrolls */
.product-table-body .product-table thead th,
.product-table-wrap--fullscreen .product-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--color-brand-primary);
}

.product-table-body .product-table thead .product-table__th--filterable,
.product-table-wrap--fullscreen .product-table__th--filterable {
  position: sticky;
}

.product-table-body .product-table thead .product-table__th--check,
.product-table-wrap--fullscreen .product-table__th--check {
  left: 0;
  top: 0;
  z-index: 6;
}

.product-table-body .product-table thead .product-table__th--part,
.product-table-wrap--fullscreen .product-table__th--part {
  left: 3rem;
  top: 0;
  z-index: 6;
}

.product-table-body .product-table thead .product-table__th--part.product-table__th--filterable,
.product-table-wrap--fullscreen .product-table__th--part.product-table__th--filterable {
  z-index: 6;
}

.product-table-wrap--fullscreen .product-table tbody td:first-child,
.product-table-wrap--fullscreen .product-table__part {
  z-index: 2;
}

/* Mobile portrait: rotate fullscreen to landscape for horizontal table */

.product-table__th--filterable {
  position: relative;
  padding-right: 1.25rem;
  padding-bottom: 1.25rem;
}

.product-table__th--part.product-table__th--filterable {
  position: sticky;
  left: 3rem;
  z-index: 4;
}

.product-table__th-label {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.product-table__filter-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.9375rem;
  height: 0.9375rem;
  padding: 0;
  margin: 0;
  border: none;
  background: #29519e;
  cursor: pointer;
  line-height: 0;
  transition: background 0.2s ease;
}

.product-table__filter-btn:hover {
  background: #3160b0;
}

.product-table__filter-btn:focus-visible,
.product-table__filter-btn--active:focus-visible {
  outline: none;
  box-shadow: none;
}

.product-table__filter-btn--active {
  background: #b70005;
}

.product-table__filter-btn img {
  width: 0.675rem;
  height: 0.675rem;
  object-fit: contain;
  display: block;
}

.product-table__filter-btn img.product-table__filter-icon--png {
  width: 0.4375rem;
  height: 0.4375rem;
}

.product-table tbody td {
  color: #000033;
}

.product-table tbody tr {
  border-bottom: 1px solid #eeeeee;
  transition: background 0.15s ease;
}

.product-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.product-table tbody tr:hover {
  background: #f0f4fa;
}

.product-table__check {
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  accent-color: var(--color-brand-primary);
}

.product-table__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.product-table__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
}

.product-table__action-img {
  display: block;
  width: 1.625rem;
  height: 1.625rem;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.product-table__action-img--hover {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
}

.product-table__action:hover .product-table__action-img--default,
.product-table__action:focus-visible .product-table__action-img--default {
  opacity: 0;
}

.product-table__action:hover .product-table__action-img--hover,
.product-table__action:focus-visible .product-table__action-img--hover {
  opacity: 1;
}

/* Filter panel */
.filter-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 100%;
  right: auto;
  z-index: 20;
  box-sizing: border-box;
  width: var(--filter-panel-width, 10.875rem);
  min-width: var(--filter-panel-width, 10.875rem);
  max-width: var(--filter-panel-width, 10.875rem);
  margin-top: 0;
  padding: 0;
  background: #3577cf;
  border: none;
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-align: left;
  overflow: hidden;
}

.filter-panel--open {
  display: block;
}


.filter-panel--floating {
  position: fixed;
  top: auto;
  left: auto;
  z-index: 200;
}

.product-table-wrap--empty {
  display: flex;
  flex-direction: column;
  min-height: 18.75rem;
}

.product-table-wrap--empty .product-table-body {
  flex: 0 0 auto;
}

.product-table-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 12.5rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-page);
  text-align: center;
}

.product-table-empty__title {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.product-table-empty__hint {
  margin: 0.5rem 0 0;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* .filter-panel__scroll {
  max-height: var(--filter-panel-scroll-max-height);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #5d93d9 transparent;
}

.filter-panel__scroll::-webkit-scrollbar {
  width: var(--filter-panel-scroll-scrollbar-width);
}

.filter-panel__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.filter-panel__scroll::-webkit-scrollbar-thumb {
  background: #5d93d9;
  border-radius: var(--filter-panel-scroll-scrollbar-radius);
} */

.filter-panel__sort {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 0.5rem;
  background: #4a86d4;
}

.filter-panel__sort::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 0.875rem;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.filter-panel__sort-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  font-weight: 400;
  color: #ffffff;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-panel__sort-btn:hover,
.filter-panel__sort-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.filter-panel__sort-btn--active {
  background: rgba(255, 255, 255, 0.24);
  font-weight: 500;
}

.filter-panel__sort-btn img {
  width: 0.9375rem;
  height: 0.8125rem;
  object-fit: contain;
  flex-shrink: 0;
}

.filter-panel__search {
  position: relative;
  margin: 0 0.75rem 0.5rem;
}

.filter-panel__search-input {
  width: 100%;
  height: 2rem;
  padding: 0 0.75rem 0 2rem;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  border: none;
  border-radius: 0.125rem;
  color: #ffffff;
  background: #5d93d9;
}

.filter-panel__search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.filter-panel__search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.85;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.filter-panel__range {
  margin: 0 0.75rem 0.5rem;
}

.filter-panel__range-fields {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
}

.filter-panel__search--compact {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.filter-panel__search--compact .filter-panel__search-input {
  width: 100%;
  padding-left: 0.625rem;
  box-sizing: border-box;
}

.filter-panel__range-sep {
  flex-shrink: 0;
  width: 0.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.filter-panel__search--input {
  margin-bottom: 0.5rem;
}

.filter-panel__search--lookup {
  margin-bottom: 0.5rem;
}

.filter-panel__search-field {
  position: relative;
}

.filter-panel__search--lookup .filter-panel__search-icon {
  z-index: 1;
}

.filter-panel__search-dropdown {
  position: fixed;
  z-index: 100;
  margin-top: 0.25rem;
  max-height: var(--filter-panel-scroll-max-height);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-light);
  border-radius: 0.125rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 transparent;
}

.filter-panel__search-dropdown--empty {
  min-height: calc((0.375rem * 2 + 0.875rem * 1.25) * 2);
}

.filter-panel__search-dropdown::-webkit-scrollbar {
  width: var(--filter-panel-scroll-scrollbar-width);
}

.filter-panel__search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.filter-panel__search-dropdown::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: var(--filter-panel-scroll-scrollbar-radius);
}

.filter-panel__search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filter-panel__search-item,
.filter-panel__search-empty {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-primary);
}

.filter-panel__search-item {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.filter-panel__search-item:hover,
.filter-panel__search-item--active {
  background: rgba(4, 70, 157, 0.08);
}

.filter-panel__search-item--active {
  font-weight: 500;
  color: var(--color-brand-primary);
}

.filter-panel__search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(0.375rem * 2 + 0.875rem * 1.25);
  color: var(--color-text-muted);
  cursor: default;
}

.filter-panel__search-dropdown--empty .filter-panel__search-empty {
  min-height: calc((0.375rem * 2 + 0.875rem * 1.25) * 2);
}

.filter-panel--loading .filter-panel__search-dropdown {
  opacity: 0.6;
  pointer-events: none;
}

.filter-panel--loading .filter-panel__options {
  opacity: 0.6;
  pointer-events: none;
}

.filter-panel__options {
  max-height: calc(var(--filter-panel-option-height) * 5);
  margin-bottom: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #5d93d9 transparent;
}

.filter-panel__options::-webkit-scrollbar {
  width: var(--filter-panel-scroll-scrollbar-width);
}

.filter-panel__options::-webkit-scrollbar-track {
  background: transparent;
}

.filter-panel__options::-webkit-scrollbar-thumb {
  background: #5d93d9;
  border-radius: var(--filter-panel-scroll-scrollbar-radius);
}

.filter-panel__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  height: var(--filter-panel-option-height);
  min-height: var(--filter-panel-option-height);
  box-sizing: border-box;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.filter-panel__option:hover {
  background-color: #5d93d9;
}

.filter-panel__option input {
  width: 0.875rem;
  height: 0.875rem;
  accent-color: #b70005;
}

.filter-panel__footer {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.filter-panel__footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.filter-panel__apply,
.filter-panel__reset {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-family-base);
  font-size: 0.875rem;
  font-weight: 400;
  color: #ffffff;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.filter-panel__apply:hover,
.filter-panel__apply:focus-visible,
.filter-panel__reset:hover,
.filter-panel__reset:focus-visible {
  opacity: 0.85;
}

/* Pagination */
.product-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.product-pagination__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-pagination__size {
  height: 2rem;
  padding: 0 0.5rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  border: 1px solid var(--color-border-light);
  border-radius: 0.125rem;
  background: var(--color-bg-page);
}

.product-pagination__size option {
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.product-pagination__nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.product-pagination__btn,
.product-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.75rem;
  font-family: var(--font-family-base);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  background: #eeeeee;
  border: 1px solid #eeeeee;
  border-radius: 0.375rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-pagination__page {
  width: 2rem;
  padding: 0;
}

.product-pagination__btn:hover,
.product-pagination__btn:focus-visible,
.product-pagination__page:hover,
.product-pagination__page:focus-visible {
  background: #eeeeee;
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
}

.product-pagination__page--active {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--color-text-inverse);
  background: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
}

.product-pagination__page--active:hover,
.product-pagination__page--active:focus-visible {
  color: var(--color-text-inverse);
  background: var(--color-brand-accent-hover);
  border-color: var(--color-brand-accent-hover);
}

.product-pagination__ellipsis {
  padding: 0 0.25rem;
  color: var(--color-text-muted);
}

/* Prevent flex layout from expanding page width (table scroll) */
.catalog__inner {
  min-width: 0;
}

/* Product detail: catalog max height = viewport minus nav; constrain only when content overflows */
.catalog.catalog--fixed-table {
  max-height: var(--catalog-fixed-height);
  box-sizing: border-box;
}

.catalog.catalog--fixed-table.catalog--constrained {
  display: flex;
  flex-direction: column;
  height: var(--catalog-fixed-height);
  min-height: 0;
  overflow: hidden;
}

.catalog.catalog--fixed-table.catalog--constrained .catalog-sidebar__title {
  flex-shrink: 0;
}

.catalog.catalog--fixed-table.catalog--constrained .catalog__inner {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.catalog.catalog--fixed-table.catalog--constrained .catalog-sidebar {
  min-height: 0;
  overflow-y: auto;
}

.catalog.catalog--fixed-table.catalog--constrained .catalog__main {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
}

.catalog.catalog--fixed-table.catalog--constrained .catalog__panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.catalog.catalog--fixed-table.catalog--constrained .product-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.catalog.catalog--fixed-table.catalog--constrained .product-toolbar,
.catalog.catalog--fixed-table.catalog--constrained .product-table-bar,
.catalog.catalog--fixed-table.catalog--constrained .product-pagination {
  flex-shrink: 0;
}

.catalog.catalog--fixed-table.catalog--constrained .product-table-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.catalog.catalog--fixed-table.catalog--constrained .product-table-body {
  flex: 1;
  min-height: 0;
}

