/* Keep direct product actions responsive on touch screens without disabling
   normal page scrolling or pinch zoom. Desktop hover effects remain intact. */
.product-grid .product-card,
.product-grid .product-card a,
.product-grid .product-card button,
[data-featured-products] .featured-product-card,
[data-featured-products] .featured-product-card a,
.request-list-pill,
.home-header-request-list,
.catalog-header-request-list {
  touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
  .product-grid .product-card:hover,
  [data-featured-products] .featured-product-card:hover,
  .product-grid .product-request-add:hover {
    transform: none !important;
  }

  /* Catalogue images use a translate to centre their measured alpha bounds.
     Their shared layout already disables hover scaling. Resetting transform
     here moves the image down/right whenever a dosage button receives focus. */
  [data-featured-products] .featured-product-card:hover .featured-product-media img {
    transform: none !important;
  }

  .product-grid .product-card:hover .product-image-wrap::before,
  .product-grid .product-card:focus-within .product-image-wrap::before,
  [data-featured-products] .featured-product-card:hover .featured-product-media::before {
    opacity: 0 !important;
  }
}
