/* Let wall modules stretch their cards to the natural height of each row. */
.products-wall > .m-n1 > .row > .col,
.products-wall > .m-n1 > .row > .col > .product-item {
  display: flex;
}

.products-wall > .m-n1 > .row > .col > .product-item,
.products-wall > .m-n1 > .row > .col > .product-item > .flex-column {
  flex: 1;
  min-width: 0;
}

/* Keep the price, pack and action together at the bottom of each tile. */
.product-item:not(.products-container > .list .product-item) > .flex-column > .product-controls,
.products-wall > .m-n1 > .row > .col > .product-item > .flex-column > .border-0 {
  margin-top: auto;
}

.product-item:not(.products-container > .list .product-item) .proso-category-photo-stock {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -.5rem;
  display: flex !important;
  justify-content: center;
  margin-inline: auto;
  line-height: 1rem;
  pointer-events: none;
}

.product-item:not(.products-container > .list .product-item) .proso-category-photo-stock .row {
  flex-wrap: nowrap;
}

.product-item:not(.products-container > .list .product-item) .proso-category-photo-stock .col {
  flex: 0 1 auto;
  width: auto;
}

.product-item:not(.products-container > .list .product-item) .proso-category-purchase-stock {
  display: none !important;
}

.product-item:not(.products-container > .list .product-item) .proso-category-maker,
.product-item:not(.products-container > .list .product-item) .proso-category-pack {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-item:not(.products-container > .list .product-item) .proso-category-pack {
  font-size: 1rem;
}

.product-item:not(.products-container > .list .product-item) .proso-category-maker:not([data-title-prefix]),
.product-item:not(.products-container > .list .product-item) .proso-category-maker.proso-category-maker-visible,
.product-item:not(.products-container > .list .product-item) .proso-category-pack {
  display: block !important;
}

.product-item:not(.products-container > .list .product-item) .proso-category-maker {
  font-size: .9375rem;
  margin-top: .25rem;
}

.product-item:not(.products-container > .list .product-item) .price > .proso-category-regular-price {
  font-size: 16.5px;
}

.product-item:not(.products-container > .list .product-item) .proso-category-price-with-pack {
  --proso-price-divider-space: .75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: var(--proso-price-divider-space);
  overflow: hidden;
}

.product-item:not(.products-container > .list .product-item) .proso-category-price-with-pack > span {
  flex: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.product-item:not(.products-container > .list .product-item) .proso-category-price-with-pack > .proso-category-pack {
  position: relative;
}

.product-item:not(.products-container > .list .product-item) .proso-category-price-with-pack .proso-category-price-divider {
  position: absolute;
  inset-inline-end: 100%;
  inset-block-start: 0;
  inline-size: var(--proso-price-divider-space);
  font-size: .9375rem;
  text-align: center;
}

.product-item:not(.products-container > .list .product-item) .proso-category-price-wrapped .proso-category-price-divider {
  visibility: hidden;
}

.product-item:not(.products-container > .list .product-item) .proso-category-title-measuring {
  -webkit-line-clamp: none;
}

/* Offset the tile's px-2 and px-sm-3 padding to leave 6px at each edge. */
.product-item:not(.products-container > .list .product-item) .proso-category-title-wide {
  margin-inline: calc(6px - .5rem);
}

@media (min-width: 576px) {
  .product-item:not(.products-container > .list .product-item) .proso-category-title-wide {
    margin-inline: calc(6px - 1rem);
  }
}

@media (min-width: 992px) {
  .product-item:not(.products-container > .list .product-item) .proso-category-maker {
    font-size: 1rem;
  }

  .product-item:not(.products-container > .list .product-item) .product-name > a.line-clamp-2,
  .product-item:not(.products-container > .list .product-item) .price > .proso-category-regular-price {
    font-size: 17px;
  }
}
