/* One product thumbnail grid across homepage sections and catalogue listings.
   20261011: native photo files, aspect ratios, IDs and product URLs stay intact. */
body#index .featured-products .products,
body #products .products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 0 !important;
  width: 100%;
}
body#index .featured-products .products > .product,
body #products .products > .product {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
body .product-miniature,
body .product-miniature .thumbnail-container,
body .product-miniature .product-description {
  width: 100% !important;
  max-width: 100% !important;
}
body .product-miniature { margin: 0 !important; height: 100%; }
body .product-miniature .thumbnail-container {
  height: auto !important;
  display: flex;
  flex-direction: column;
}
body .product-miniature .thumbnail-top {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
body .product-miniature .product-thumbnail {
  display: block !important;
  position: relative;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  background: #fff;
}
body .product-miniature .product-thumbnail picture {
  display: block;
  width: 100%;
  height: 100%;
}
body .product-miniature .product-thumbnail img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
  transform: translate(var(--cs-photo-x, 0%), var(--cs-photo-y, 0%)) scale(var(--cs-photo-scale, 1));
  transform-origin: center;
}
body .product-miniature .product-description {
  position: static !important;
  height: auto !important;
  min-height: 160px;
  padding: 12px 8px !important;
}
body .product-miniature .product-title {
  font-size: 1rem;
  line-height: 1.4;
  min-height: 4.2em;
  margin: 0 0 10px !important;
  overflow-wrap: anywhere;
}
body .product-miniature .product-price-and-shipping { min-height: 28px; }
/* Productcomments normally positions reviews against an absolutely positioned
   description. Keep them visible in the new normal-flow cards. */
body .product-miniature .product-list-reviews {
  position: static !important;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 24px;
  margin: 8px 0 0;
}
body .product-miniature .highlighted-informations { width: 100% !important; }
@media (min-width: 992px) {
  body#index .featured-products .products,
  body #products .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  body#index .featured-products .products,
  body #products .products { grid-template-columns: minmax(0, 1fr); }
}
/* Calibrated from photographed-can bounds on the 1000px source canvas.
   Width is 85% for each can; retain real perspective/height, never stretch. */
body .product-miniature[data-id-product="23"] { --cs-photo-scale: 1.0095; --cs-photo-x: -.202%; --cs-photo-y: .0505%; }
body .product-miniature[data-id-product="27"] { --cs-photo-scale: 1.0107; --cs-photo-x: -.0505%; --cs-photo-y: .2527%; }
body .product-miniature[data-id-product="41"] { --cs-photo-scale: 1.0071; --cs-photo-x: -.1007%; --cs-photo-y: .2518%; }
body .product-miniature[data-id-product="42"] { --cs-photo-scale: 1.0047; --cs-photo-x: .2009%; }
body .product-miniature[data-id-product="44"] { --cs-photo-scale: 1.0119; --cs-photo-x: .1012%; --cs-photo-y: .1518%; }
body .product-miniature[data-id-product="47"] { --cs-photo-scale: 1.0095; --cs-photo-y: .1514%; }
body .product-miniature[data-id-product="73"] { --cs-photo-y: .3%; }
