/* UGM_MOB_IMG_ZOOM:CTqInc01
   Mobile: do not enlarge product art unless the shopper intentionally peeks.
   Sticky :hover / :focus-within / .is-ugm-3d from product-card-3d was scaling art
   on first tap and getting in the way of buy/qty — hurts purchase UX.
   Classic CSS only (new filename). Do not patch sealed index-*.css. */

@media (max-width: 768px), (hover: none), (pointer: coarse) {
  /* Rest + sticky-hover + tilt-active: framed, no extra zoom/lift */
  .item-card .product-stage .product-stage-art,
  .acc-card .product-stage .product-stage-art,
  .boost-card .product-stage .product-stage-art,
  .item-card .product-stage:hover .product-stage-art,
  .item-card:hover .product-stage-art,
  .item-card:focus-within .product-stage-art,
  .acc-card .product-stage:hover .product-stage-art,
  .acc-card:hover .product-stage-art,
  .acc-card:focus-within .product-stage-art,
  .boost-card .product-stage:hover .product-stage-art,
  .boost-card:hover .product-stage-art,
  .boost-card:focus-within .product-stage-art,
  .item-card .product-stage.is-ugm-3d .product-stage-art,
  .acc-card .product-stage.is-ugm-3d .product-stage-art,
  .boost-card .product-stage.is-ugm-3d .product-stage-art,
  .product-stage--sticker-crop.is-ugm-3d .product-stage-art,
  .product-stage--sticker-crop:hover .product-stage-art {
    animation: none !important;
    filter: none !important;
    will-change: auto !important;
    transform: translate(calc(-50% + var(--art-x, 0%)), calc(-50% + var(--art-y, 0%)))
      rotate(var(--art-rot, 0deg)) scale(var(--art-scale, 1)) !important;
  }

  .item-card .item-card-media > img,
  .product-card .media img,
  .product-gallery-main img,
  .item-detail-gallery img,
  .boost-detail-gallery-main img,
  .product-gallery-hero-wrap img,
  .acc-gallery-wrap img,
  .am-media-wrap img,
  .item-card--sku-live .product-gallery-hero,
  .item-card .item-card-media.is-ugm-3d > img,
  .product-card .media.is-ugm-3d img,
  .product-gallery-main.is-ugm-3d img,
  .item-detail-gallery.is-ugm-3d img,
  .item-card--sku-live .product-gallery-hero.is-ugm-3d,
  .home-hot-card__media img,
  .home-hot-card:hover .home-hot-card__media img,
  .home-hot-card:focus-visible .home-hot-card__media img {
    animation: none !important;
    filter: none !important;
    will-change: auto !important;
    transform: none !important;
  }

  /* Explicit peek only when JS marks the media (tap image, not buy/qty) */
  .product-stage.is-ugm-img-zoom .product-stage-art {
    transform: translate(calc(-50% + var(--art-x, 0%)), calc(-50% + var(--art-y, 0%)))
      rotate(var(--art-rot, 0deg)) scale(calc(var(--art-scale, 1) * 1.14)) !important;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)) !important;
    z-index: 3;
  }

  .item-card-media.is-ugm-img-zoom > img,
  .product-gallery-main.is-ugm-img-zoom > img,
  .item-detail-gallery.is-ugm-img-zoom > img,
  .boost-detail-gallery-main.is-ugm-img-zoom > img,
  .product-gallery-hero-wrap.is-ugm-img-zoom img,
  .acc-gallery-wrap.is-ugm-img-zoom img,
  .am-media-wrap.is-ugm-img-zoom img {
    transform: scale(1.1) !important;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.32)) !important;
  }
}
