/* Small hover highlight on product & category boxes */

/* center image title text */

.pswp__caption__center {
  text-align: center !important;
}

/* Base */
.products li.product,
.products li.product-category {
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Precise hover via :has() */
@supports selector(:has(*)) {
  @media (hover:hover) and (pointer:fine) {
    .products li.product:has(.woocommerce-LoopProduct-link:hover, .button:hover, .added_to_cart:hover),
    .products li.product-category:has(a:hover) {
      transform: translateY(-4px);
      box-shadow: 0 14px 34px rgba(0,0,0,.14), 0 3px 10px rgba(0,0,0,.05);
      z-index: 2;
      will-change: transform, box-shadow;
    }
  }
}

/* Fallback hover (only for browsers without :has() support) */
@supports not selector(:has(*)) {
  @media (hover:hover) and (pointer:fine) {
    .products li.product:hover,
    .products li.product-category:hover {
      transform: translateY(-4px);
      box-shadow: 0 14px 34px rgba(0,0,0,.14), 0 3px 10px rgba(0,0,0,.05);
      z-index: 2;
      will-change: transform, box-shadow;
    }
  }
}

/* Focus lift */
.products li.product:focus-within,
.products li.product-category:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.16), 0 3px 10px rgba(0,0,0,.06);
  z-index: 2;
  will-change: transform, box-shadow;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .products li.product,
  .products li.product-category {
    transition: none;
  }
}