/* Original product-card hover — silver sheen, not an orange copy. */
.card {
  position: relative;
  isolation: isolate;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 1px;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.0) 40%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.0) 60%,
    transparent 80%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease, background-position 0.7s ease;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 65%
  );
  transform: translateX(-130%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-media img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 28px rgba(255, 255, 255, 0.06);
}
.card:hover::before,
.card:focus-within::before {
  opacity: 1;
  background-position: -20% 0;
}
.card:hover .card-media::after,
.card:focus-within .card-media::after {
  transform: translateX(130%);
}
.card:hover .card-media img,
.card:focus-within .card-media img {
  transform: scale(1.05);
}
.card:hover .cart-round,
.card:focus-within .cart-round {
  background: #f3f3f3;
  color: #0a0a0a;
  border-color: #f3f3f3;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card::before,
  .card-media::after,
  .card-media img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .card:hover,
  .card:focus-within {
    transform: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  }
}

/* Struck Steam price + discount badge on product cards */
.card-off {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #06210e;
  background: #22ff6a;
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
  line-height: 1;
}
.card-compare {
  display: block;
  font-size: 0.72rem;
  color: var(--muted, #8b9196);
  text-decoration: line-through;
  margin-bottom: 0.08rem;
}
