/* NEXAVEN storefront: let animated product vials rise above the photo square/card.
   The previously approved vertical animation remains untouched. */
.product-grid,
.product-grid .product-card,
.product-grid .product-card .product-image-wrap,
.product-grid .product-card .product-photo-trigger {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
.product-grid .product-card {
  position: relative;
  z-index: 1;
}
.product-grid .product-card .product-image-wrap {
  position: relative;
  z-index: 2;
  /* keep the square and its other children fixed */
}
.product-grid .product-card .product-photo-trigger {
  position: relative;
  z-index: 3;
  /* button stays clickable, image may leave its bounds */
}
.product-grid .product-card .product-photo-trigger > img.product-image {
  position: relative;
  top: -16px;
  overflow: visible !important;
  object-fit: contain !important;
  /* WAAPI's independent translate retains its full existing stroke */
}
.product-grid .product-card:is(:hover, :focus-within) { z-index: 4; }

/* 2026-10-30 follow-up: keep the top breakout exactly as approved,
   let the vial descend lower toward the product title, and keep SOLD OUT always in front. */
.product-grid .product-card .product-photo-trigger > img.product-image {
  top: -16px !important;
  animation: nx-v20-vial-hover-lower-base 4.6s ease-in-out infinite both !important;
}
@keyframes nx-v20-vial-hover-lower-base {
  0%,100% { transform: translate3d(0,28px,0) scale(var(--nx-vial-scale)); }
  25%     { transform: translate3d(1.2px,12px,0) scale(var(--nx-vial-scale)); }
  50%     { transform: translate3d(0,-24px,0) scale(var(--nx-vial-scale)); }
  75%     { transform: translate3d(-1.2px,10px,0) scale(var(--nx-vial-scale)); }
}
.product-grid .product-card .product-image-wrap { isolation:isolate; }
.product-grid .product-card .stock-badge {
  z-index: 10 !important;
  pointer-events: none;
}

/* 2026-10-30 fine tuning: vials rest lower, almost touching the product title area,
   while still rising above the black square; motion is staggered across cards. */
.product-grid .product-card .product-photo-trigger > img.product-image {
  animation: nx-v20-vial-hover-lower-base-v2 4.9s ease-in-out infinite both !important;
}
@keyframes nx-v20-vial-hover-lower-base-v2 {
  0%,100% { transform: translate3d(0,42px,0) scale(var(--nx-vial-scale)); }
  25%     { transform: translate3d(1.2px,18px,0) scale(var(--nx-vial-scale)); }
  50%     { transform: translate3d(0,-24px,0) scale(var(--nx-vial-scale)); }
  75%     { transform: translate3d(-1.2px,16px,0) scale(var(--nx-vial-scale)); }
}
.product-grid .product-card:nth-child(4n+1) .product-photo-trigger > img.product-image { animation-delay: -0.0s !important; }
.product-grid .product-card:nth-child(4n+2) .product-photo-trigger > img.product-image { animation-delay: -1.15s !important; }
.product-grid .product-card:nth-child(4n+3) .product-photo-trigger > img.product-image { animation-delay: -2.35s !important; }
.product-grid .product-card:nth-child(4n+4) .product-photo-trigger > img.product-image { animation-delay: -3.45s !important; }
