/* Equal-size catalog cards. Scoped to catalog lists, not product carousels. */
#product-list-module :is(.adaptive-product__list, .t3__adaptive-product__list) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 30px 20px;
  margin: 0 0 20px;
}
#product-list-module :is(.adaptive-product__list, .t3__adaptive-product__list)::after { display: none; }
#product-list-module .adaptive-product__item {
  display: flex;
  flex-direction: column;
  float: none;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  min-width: 0;
  padding: 0;
  margin: 0;
}
#product-list-module .adaptive-product {
  display: flex;
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0 0 20px !important;
}
#product-list-module .product-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
#product-list-module .product_img {
  position: relative;
  flex: none;
  height: auto;
  aspect-ratio: 5 / 6;
  line-height: normal;
  padding: 0;
  margin: 0 0 10px;
}
#product-list-module .product_img > a {
  position: absolute;
  inset: 4px 3px 0;
  width: auto;
  height: auto;
}
#product-list-module .product_img > a > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
#product-list-module .product_name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 78px;
  margin-bottom: 15px !important;
}
#product-list-module .product_name a {
  height: auto;
  overflow: visible;
  overflow-wrap: anywhere;
}
#product-list-module .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
  min-height: 50px;
  height: auto;
  width: 100%;
  max-width: none;
  margin: 0 !important;
}
#product-list-module .product-footer::after { display: none; }
#product-list-module .product_price { white-space: nowrap; }
#product-list-module .product_button { float: none; }
@media (max-width: 991px) {
  #product-list-module :is(.adaptive-product__list, .t3__adaptive-product__list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
  }
  #product-list-module .product-footer { flex-direction: column; }
  #product-list-module .product_price { line-height: 1.5; }
  #product-list-module .product_button { width: 100%; }
  #product-list-module .product_button .btn { display: block; width: 100%; white-space: normal; }
}
@media (max-width: 600px) {
  #product-list-module :is(.adaptive-product__list, .t3__adaptive-product__list) { grid-template-columns: minmax(0, 1fr); }
}

/* Bootstrap row pseudo-elements must not create empty grid cells in search. */
#product-list-module .t3__adaptive-product__list::before { display: none; }
#product-list-module .product_name .product-details-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
  font-weight: normal;
  color: #666;
}
#product-list-module .product-details-hint:hover,
#product-list-module .product-details-hint:focus { text-decoration: underline; }
