/* Product catalog imagery: keep category photos at their own height. */
#products-view .group-body {
  grid-template-columns: minmax(0, 248px) minmax(0, 1fr);
  align-items: start;
}
#products-view .group-body:not(:has(> img)) {
  grid-template-columns: minmax(0, 1fr);
}
#products-view .group-body > img {
  display: block;
  width: calc(100% - 32px);
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  margin: 16px;
  border-radius: 12px;
  border: 1px solid #e5dddc;
  align-self: start;
  position: sticky;
  top: 112px;
}
#products-view [data-category="Altar Bread"] .group-body > img {
  object-fit: contain;
  background: #fff;
  padding: 12px;
}
#products-view .product-row {
  gap: 20px;
  align-items: center;
}
#products-view .product-media {
  flex: 0 0 128px;
  width: 128px;
}
#products-view .product-thumb {
  display: block;
  width: 128px;
  height: 128px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5dddc;
  border-radius: 12px;
}
#products-view .product-media figcaption {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 7px;
}
@media (max-width: 1000px) and (min-width: 701px) {
  #products-view .group-body {
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  }
  #products-view .product-row { flex-wrap: wrap; }
  #products-view .product-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 700px) {
  #products-view .group-body { display: block; }
  #products-view .group-body > img {
    position: static;
    width: calc(100% - 32px);
    height: 190px;
    aspect-ratio: auto;
    object-position: center 65%;
    margin: 16px;
  }
  #products-view [data-category="Altar Bread"] .group-body > img {
    object-position: center;
  }
  #products-view .product-row {
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }
  #products-view .product-media { flex: 0 0 100px; width: 100px; }
  #products-view .product-thumb { width: 100px; height: 100px; padding: 6px; }
  #products-view .product-actions { width: 100%; justify-content: flex-start; }
}
@media (max-width: 380px) {
  #products-view .product-media { flex-basis: 84px; width: 84px; }
  #products-view .product-thumb { width: 84px; height: 84px; }
}
