/**
 * Nutraceutica – image-free category/search product listing.
 * Only this component is restyled. Native Hummingbird filter/toolbar,
 * pagination, quantity and AJAX APIs remain in control.
 */
.nutra-listing {
  margin-block: 1.125rem 1.5rem;
  min-width: 0;
}

.nutra-listing__scroll {
  max-width: 100%;
  overflow: visible;
  border: 1px solid var(--nutra-line, #d6e2d9);
  border-radius: .4rem;
  background: #fff;
}

.nutra-listing__table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--nutra-ink, #173c33);
  font-size: .9375rem;
  line-height: 1.45;
}

.nutra-listing__col-reference { width: 13%; }
.nutra-listing__col-name { width: 27%; }
.nutra-listing__col-stock { width: 18%; }
.nutra-listing__col-price { width: 17%; }
.nutra-listing__col-quantity { width: 8%; }
.nutra-listing__col-action { width: 17%; }

.nutra-listing__table thead { background: #f4f7f5; }
.nutra-listing__table thead th {
  padding: .875rem .75rem;
  color: var(--nutra-ink, #173c33);
  text-align: start;
  vertical-align: middle;
  font-weight: 600;
  font-size: .875rem;
  white-space: normal;
  border-bottom: 1px solid var(--nutra-line, #d6e2d9);
}
/* Quiet neutral stripes/hover; do not use the strong brand green on rows. */
.nutra-listing .nutra-listing__table tbody tr:nth-child(even) { background-color: #fcfdfc; }
.nutra-listing .nutra-listing__table tbody tr:hover { background-color: #f8faf9; }
.nutra-listing .nutra-listing__table tbody tr:hover > th,
.nutra-listing .nutra-listing__table tbody tr:hover > td { background-color: transparent; }
.nutra-listing__table tbody tr:last-child > * { border-bottom: 0; }
.nutra-listing__cell {
  padding: .875rem .75rem;
  font-size: inherit;
  font-weight: 400;
  text-align: start;
  vertical-align: middle;
  border-bottom: 1px solid var(--nutra-line, #d6e2d9);
  overflow-wrap: anywhere;
}
.nutra-listing__cell--reference { font-size: .85rem; color: var(--nutra-muted, #53645f); }
.nutra-listing__name {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--nutra-ink, #173c33);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.nutra-listing__name:hover { color: var(--nutra-action-hover, #005a3e); text-decoration: underline; }
.nutra-listing__category {
  display: block;
  margin-top: .15rem;
  font-size: .8125rem;
  color: var(--nutra-muted, #53645f);
}
.nutra-listing__flags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .3rem; }
.nutra-listing__flag {
  display: inline-flex;
  padding: .1rem .4rem;
  border: 1px solid #a8d4b9;
  border-radius: .2rem;
  background: #e5f4ea;
  color: #005a3e;
  font-size: .75rem;
  line-height: 1.35;
}
.nutra-listing__stock { font-size: .8125rem; line-height: 1.4; }
.nutra-listing__stock--lot { color: var(--nutra-ink, #173c33); }
.nutra-listing__stock-number { font-size: .9375rem; font-weight: 600; }
.nutra-listing__stock-meta { display: block; margin-top: .15rem; color: #53645f; font-size: .775rem; }
.nutra-listing__stock--native { color: var(--nutra-ink, #173c33); }
.nutra-listing__stock--in-stock::before,
.nutra-listing__stock--limited::before {
  display: inline-block;
  content: '';
  width: .5rem;
  height: .5rem;
  margin-inline-end: .45rem;
  border-radius: 50%;
  vertical-align: baseline;
  background: #087c43;
}
.nutra-listing__stock--limited::before { background: #ab6900; }
.nutra-listing__stock--neutral { color: var(--nutra-muted, #53645f); }
.nutra-listing__price { display: block; font-weight: 600; white-space: normal; }
.nutra-listing__price--from { color: #075d47; }
.nutra-listing__price-prefix { display: inline; font-size: .75rem; font-weight: 500; }
.nutra-listing__price-note { display: block; margin-top: .15rem; color: #53645f; font-size: .8rem; }
.nutra-listing__old-price { display: block; color: var(--nutra-muted, #53645f); font-size: .8125rem; }
.nutra-listing__lot-price {
  display: block;
  color: var(--nutra-muted, #53645f);
  font-size: .8125rem;
  line-height: 1.4;
}
.nutra-listing__cell--qty-placeholder { text-align: center; color: var(--nutra-muted, #53645f); }
.nutra-listing__form { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; margin: 0; }
.nutra-listing__qty { flex: 0 0 auto; width: 6.75rem; min-width: 0; }
.nutra-listing__qty .quantity-button__group { display: flex; flex-wrap: nowrap; }
.nutra-listing__qty .quantity-button__group .btn {
  flex: 0 0 2rem;
  min-width: 2rem;
  min-height: 2.625rem;
  padding: .25rem;
  border-color: var(--nutra-control-border, #758b7d);
}
.nutra-listing__qty .quantity-button__group .form-control {
  width: 2.7rem;
  min-width: 0;
  min-height: 2.625rem;
  padding: .25rem;
  text-align: center;
  font-size: .9375rem;
  border-color: var(--nutra-control-border, #758b7d);
}
.nutra-listing__buy,
.nutra-listing__details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: 2.625rem;
  padding: .45rem .7rem;
  border-radius: .25rem;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.nutra-listing__buy { flex: 1 1 auto; min-width: 6.4rem; }
.nutra-listing__buy .material-icons { font-size: 1.1rem; }
.nutra-listing__details { width: 100%; white-space: normal; }
.nutra-listing__pagination { margin-top: 1.25rem; }

/* Use stacked, fully readable rows rather than a horizontal scroller on
 * tablet/mobile when native left facets leave insufficient table width. */
@media (max-width: 1199.98px) {
  .nutra-listing__scroll { border: 0; background: transparent; }
  .nutra-listing__table,
  .nutra-listing__table tbody { display: block; width: 100%; }
  .nutra-listing__table colgroup { display: none; }
  .nutra-listing__table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nutra-listing__table tbody { display: grid; grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .nutra-listing__table tbody tr,
  .nutra-listing__table tbody tr:nth-child(even) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .4rem .75rem;
    padding: 1rem;
    border: 1px solid var(--nutra-line, #d6e2d9);
    border-radius: .4rem;
    background: #fff;
  }
  .nutra-listing .nutra-listing__table tbody tr:hover { background-color: #f8faf9; }
  .nutra-listing__cell,
  .nutra-listing__table tbody tr:last-child > * { display: block; padding: 0; border: 0; }
  .nutra-listing__cell--reference { grid-column: 1 / -1; }
  .nutra-listing__cell--name { grid-column: 1 / -1; }
  .nutra-listing__cell--stock { grid-column: 1; align-self: start; }
  .nutra-listing__cell--price { grid-column: 2; align-self: start; text-align: end; }
  .nutra-listing__cell--stock::before,
  .nutra-listing__cell--price::before {
    display: block;
    margin-bottom: .2rem;
    color: var(--nutra-muted, #53645f);
    font-size: .75rem;
    font-weight: 500;
    content: attr(data-label);
  }
  .nutra-listing__cell--purchase { grid-column: 1 / -1; margin-top: .45rem; }
  .nutra-listing__cell--qty-placeholder { display: none; }
  .nutra-listing__cell--action { grid-column: 1 / -1; margin-top: .45rem; }
  .nutra-listing__details { width: auto; min-width: 10rem; }
  .nutra-listing__form { justify-content: flex-start; }
  .nutra-listing__buy { flex: 0 1 auto; min-width: 8.5rem; }
}
@media (max-width: 575.98px) {
  .nutra-listing__table tbody tr { padding: .875rem; }
  .nutra-listing__form { width: 100%; }
  .nutra-listing__qty { width: 7rem; }
  .nutra-listing__buy { flex: 1 1 auto; }
  .nutra-listing__details { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nutra-listing__table tbody tr { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .nutra-listing__table tbody tr,
  .nutra-listing__scroll { border-color: CanvasText; }
  .nutra-listing__flag { border-color: CanvasText; color: CanvasText; }
}
@media print {
  .nutra-listing__cell--purchase, .nutra-listing__cell--action { display: none; }
  .nutra-listing__table, .nutra-listing__table tbody, .nutra-listing__table tbody tr { break-inside: avoid; }
}
