[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

::selection { background: #eb3489; color: #FFFFFF; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #FFFFFF; }
::-webkit-scrollbar-thumb { background: #f4a3c6; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #eb3489; }

/* Product card lift */
.product-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(235, 52, 137, 0.25);
}
.product-card .card-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-card:hover .card-icon {
  transform: scale(1.12) rotate(-4deg);
}

/* Fade-up scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button ripple-ish press */
.btn-press:active { transform: scale(0.96); }

/* Hero gradient blob animation (legacy, still used elsewhere) */
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.08); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}
.blob { animation: blob 12s ease-in-out infinite; }
.blob-delay { animation-delay: -4s; }

/* Hero background image — slow Ken Burns zoom/pan */
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1.5%, -1.5%); }
  100% { transform: scale(1.05) translate(1%, 0.5%); }
}
.hero-bg-img {
  animation: kenBurns 24s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}

/* The hero has no color overlay, so give the text its own contrast via shadow */
.hero-text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.65);
}

/* Hero particles — soft drifting sparkles rising through the frame */
@keyframes heroParticleDrift {
  0%   { transform: translateY(10vh) scale(0.6); opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-95vh) scale(1.1); opacity: 0; }
}
.hero-particle {
  bottom: 0;
  filter: blur(0.5px);
  animation-name: heroParticleDrift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Responsive tuning for the hero on small screens: gentler zoom, fewer particles */
@media (max-width: 640px) {
  .hero-bg-img { animation-duration: 30s; }
  .hero-particle:nth-child(even) { display: none; }
}

/* Ribbon underline hover for nav links */
.nav-underline { position: relative; }
.nav-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: #eb3489;
  transition: width 0.3s ease;
}
.nav-underline:hover::after { width: 100%; }

/* Quantity input */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Star rating */
.star-fill { color: #B08A4E; }

/* Loading skeleton shimmer (admin/tables) */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #F9D6E7 0px, #FDEAF3 40px, #F9D6E7 80px);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

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