/* UMAGICAL_PRODUCT_IMAGE_BORDER_R2
 * Visibly replace the old oversized 28%/16% lower scallop on storefront
 * Items, Featured Items, Sales Items with the parent card's corner radius.
 * Responsive 1:1 media box; intentional lower edge line; no other media changes.
 * Loaded AFTER the R1 image-curve stylesheet. */
:is(#items, #featured, #sales) .product-card .product-image {
  --um-product-image-card-radius: clamp(13px, 3.5vw, 27px);
  box-sizing: border-box;
  position: relative;
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  /* All four corners now follow the CARD shape, not the old 28% / 16% arc. */
  border-radius: var(--um-product-image-card-radius);
}
:is(#items, #featured, #sales) .product-card .product-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  /* Let the parent clip the photo to the identical card contour. */
  border-radius: 0;
}
:is(#items, #featured, #sales) .product-card .product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 0;
  border-bottom: 1px solid rgba(85, 91, 94, 0.68);
  border-radius: inherit;
}
