/* SUSHI MAX v5.31.7 — softer catalogue imagery, homepage only.
   Does not change photos, product cards, badges or cart actions. */

/* Continuously blend photo area into the light card surface. */
#productsGrid .food-card .food-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 66% 64% at 50% 52%,
      rgba(255,255,255,.96) 0%,
      rgba(255,252,247,.84) 42%,
      rgba(255,245,234,.34) 71%,
      rgba(255,255,255,0) 100%),
    linear-gradient(180deg, #fffaf6 0%, #fff 100%);
}

/* Light cream halo behind the image; the food itself remains sharp. */
#productsGrid .food-card .food-image::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 10% 2% 3%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 52%,
    rgba(255,216,177,.33) 0%,
    rgba(255,236,215,.21) 43%,
    rgba(255,236,215,0) 76%);
}

/* Soft side/corner fade (only the photo, never the bestseller badges). */
#productsGrid .food-card .food-image > img {
  position: relative;
  z-index: 1;
  padding: 4px !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  background: transparent !important;
  -webkit-mask-image: radial-gradient(ellipse 61% 65% at 50% 50%,
    #000 69%, rgba(0,0,0,.96) 78%,
    rgba(0,0,0,.68) 90%, transparent 100%);
  mask-image: radial-gradient(ellipse 61% 65% at 50% 50%,
    #000 69%, rgba(0,0,0,.96) 78%,
    rgba(0,0,0,.68) 90%, transparent 100%);
}

/* Labels float above the photo and must not inherit its mask. */
#productsGrid .food-card .food-image .food-badge,
#productsGrid .food-card .food-image .smx5315-bestseller-badge {
  z-index: 3;
}

/* A missing photo should not fade or hide its readable placeholder. */
#productsGrid .food-card .food-image .food-placeholder {
  position: relative;
  z-index: 1;
  background: transparent;
}

@media (max-width: 600px) {
  #productsGrid .food-card .food-image > img { padding: 3px !important; }
  #productsGrid .food-card .food-image::before { inset: 8% 0 4%; }
}
