/* TCJ centered catalog crops. Original images and product records stay untouched. */
.site-content .products:not(.list-style) .product .thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
  flex: none;
  box-sizing: border-box;
  overflow: hidden;
  background: #f5f6f8;
  border-radius: 10px;
}

.site-content .products:not(.list-style) .product .thumbnail-wrapper > a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.site-content .products:not(.list-style) .product .thumbnail-wrapper > a img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover !important;
  object-position: center;
}

/* Reserve two title lines, but allow longer names to wrap without truncation. */
.site-content .products:not(.list-style) .product .content-wrapper > .product-title {
  line-height: 1.35;
  min-height: 2.7em;
}

/* Stretch each card within its own row; keep price and stock below the full name. */
.site-content .products:not(.list-style) > .column-item {
  display: flex;
}

.site-content .products:not(.list-style) > .column-item > .product,
.site-content .products:not(.list-style) .product-wrapper,
.site-content .products:not(.list-style) .product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.site-content .products:not(.list-style) .product-content > .content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.site-content .products:not(.list-style) .content-wrapper > .price,
.site-content .products:not(.list-style) .content-wrapper > .product-cart-form {
  margin-top: auto;
}
