/* Motion layer kept separate so effects are easy to tune or disable. */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-active .hero-content {
  animation: floatUp 0.75s ease both;
}

.btn-primary {
  background-size: 180% 180%;
}

.btn-primary:hover {
  background-position: 100% 50%;
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton-card div {
  aspect-ratio: 3 / 4;
  background: var(--surface-strong);
  border-radius: 6px;
}

.skeleton-card span,
.skeleton-card strong,
.skeleton-card p {
  display: block;
  height: 12px;
  margin-top: 12px;
  background: var(--surface-strong);
  border-radius: 6px;
}

.skeleton-card strong {
  width: 70%;
}

.skeleton-card p {
  width: 48%;
}

.wishlist-btn.is-active {
  animation: softPulse 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
