/* MiniMe 3D Studio — Static-page premium polish layer.
   Applied to /shop.html, /intake-form.html, /gift-card.html.
   Pure CSS + tiny IntersectionObserver — touches NO business logic.
   Goal: cinematic feel (grain, scroll reveal, magnetic CTA, premium scrollbar). */

/* Custom premium scrollbar — gold thumb on charcoal track to match React app */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1A1A1A; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #E8231A 0%, #B91C16 100%);
  border-radius: 5px;
  border: 2px solid #1A1A1A;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #F5C518 0%, #C9A200 100%);
}

/* Selection in brand gold */
::selection { background: #F5C518; color: #1A1A1A; }

/* Smooth scroll site-wide (respect prefers-reduced-motion) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fixed cinematic grain overlay — 3.5% opacity SVG noise on top of viewport */
.brand-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Magnetic hover — used by any CTA-style button.
   Subtle lift + soft glow. GPU transforms only. */
.add-to-cart-btn,
.btn-submit,
.btn-buy,
.btn-primary {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}
.add-to-cart-btn:hover,
.btn-submit:hover,
.btn-buy:hover,
.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 12px 32px -8px rgba(232, 35, 26, 0.45), 0 0 0 1px rgba(232, 35, 26, 0.15) inset;
}

/* Tactile cards — style picker, type picker, size picker etc. */
.style-card,
.type-pill,
.size-pill,
.sf-item,
.hiw-card,
.sr-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
  will-change: transform;
}
.style-card:hover,
.type-pill:hover,
.size-pill:hover,
.sf-item:hover,
.hiw-card:hover,
.sr-card:hover {
  transform: translateY(-3px);
}

/* Reveal-on-scroll — pair with the IntersectionObserver script below */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated underline for nav links — premium drawn-in feel */
.topnav a:not(.btn-primary),
.topnav-mobile a:not(.btn-primary) {
  position: relative;
}
.topnav a:not(.btn-primary)::after,
.topnav-mobile a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.topnav a:not(.btn-primary):hover::after,
.topnav-mobile a:not(.btn-primary):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
