/* Homepage sections should meet without a blank strip below the main banner. */
.page-home .madeingermany {
  margin-top: 0 !important;
}

/* Advanced Search 4 replaces the homepage content with #products after the
 * finder form is submitted. Give every result the same image stage and let
 * each card stretch to the height of its row. */
body#index #products #js-product-list .product_list.grid {
  align-items: stretch;
}

body#index #products #js-product-list .product_list.grid > .product_item {
  display: flex;
}

body#index #products #js-product-list .product_list.grid > .product_item > .product-miniature {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
}

body#index #products #js-product-list .product-miniature .thumbnail-container {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto !important;
}

body#index #products #js-product-list .product-miniature .product-thumbnail {
  flex: 0 0 250px;
  height: 250px !important;
}

body#index #products #js-product-list .product-miniature .product-thumbnail > img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

body#index #products #js-product-list .product-miniature .product-description {
  flex: 1 1 auto;
  height: auto !important;
}

body#index #products #js-product-list .product-miniature .thumbnail-container > .product-flags {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
}
