/*
 * Venture Co. — Uiverse-inspired premium product card interaction
 * Adapted from "Card" by akshat-patel28 (Akshat Patel), Uiverse.io,
 * https://uiverse.io/akshat-patel28/smart-termite-33
 * MIT License. Full copyright and permission notice in UIVERSE_LICENSE.txt.
 *
 * Only existing product card surface/CTA hover styles are touched.
 * No new markup, no scripting, no image zoom/crop changes, no checkout hooks.
 */

/* Uiverse elevated-card principle: layered resting shadows, then a smooth
   hover lift and deeper layered shadow. Keep the site's existing card shape. */
body #app .product-card {
  position: relative;
  box-shadow:
    0 10px 12px rgba(27, 26, 24, 0.055),
    -4px -4px 12px rgba(27, 26, 24, 0.025) !important;
  transition:
    transform .34s cubic-bezier(.22,1,.36,1),
    box-shadow .34s cubic-bezier(.22,1,.36,1),
    border-color .34s ease !important;
}

/* Gold pinstripe appears only on hover or keyboard focus. This is not an
   overlay button: it cannot obstruct images or intercept pointer events. */
body #app .product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(199, 150, 62, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease;
}

@media (hover: hover) and (pointer: fine) {
  body #app .product-card:hover {
    transform: translateY(-9px) !important;
    border-color: rgba(191, 148, 75, .72) !important;
    box-shadow:
      0 25px 35px -15px rgba(30, 26, 21, .24),
      0 12px 26px -15px rgba(205, 156, 69, .23) !important;
  }
  body #app .product-card:hover::after { opacity: 1; }
}

/* Keyboard accessibility without relying on hover. */
body #app .product-card:focus-within {
  border-color: rgba(191, 148, 75, .72) !important;
  box-shadow:
    0 21px 30px -16px rgba(30, 26, 21, .19),
    0 8px 18px -12px rgba(205, 156, 69, .16) !important;
}
body #app .product-card:focus-within::after { opacity: 1; }

/* Uiverse-style tactile button feedback on the existing View / Buy action.
   No new buttons, bars, icon overlays or click handlers are introduced. */
body #app .product-card .card-bottom button {
  transition:
    transform .24s cubic-bezier(.22,1,.36,1),
    box-shadow .24s ease,
    background-color .24s ease,
    border-color .24s ease;
}
@media (hover: hover) and (pointer: fine) {
  body #app .product-card .card-bottom button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -9px rgba(32, 25, 14, .32);
  }
}
body #app .product-card .card-bottom button:active { transform: translateY(0); }
body #app .product-card .card-bottom button:focus-visible {
  outline: 2px solid #be8b36;
  outline-offset: 3px;
}

/* Merchandise images intentionally retain existing object-fit/contain,
   aspect-ratio, hover zoom, and gallery behavior. */
@media (prefers-reduced-motion: reduce) {
  body #app .product-card,
  body #app .product-card::after,
  body #app .product-card .card-bottom button { transition: none !important; }
  body #app .product-card:hover,
  body #app .product-card .card-bottom button:hover,
  body #app .product-card .card-bottom button:active { transform: none !important; }
}
