/* Gal-Up Boutique — "The Spur Star" signature motion.
   Sites animate regardless of OS reduced-motion settings — no
   prefers-reduced-motion opt-outs here on purpose. */

/* ---------------------------------------------------------------------
   Intro — walnut panel, logo plaque, spinning spur-star badge, rope
   border draw, curtain lift. Covers the site from the very first frame
   (markup + critical CSS are inlined in <head>, this file only adds the
   keyframes once it loads — by which point nothing has painted yet).
--------------------------------------------------------------------- */
#spur-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--walnut-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: intro-curtain 0.7s cubic-bezier(.65,0,.35,1) 2.15s forwards;
}
#spur-intro.intro-done { display: none; }
#spur-intro .intro-rope-frame {
  position: absolute;
  inset: 18px;
  border: 3px solid var(--rope-gold);
  border-radius: 18px;
  opacity: 0;
  animation: intro-rope-draw 0.6s ease-out 0.15s forwards;
}
#spur-intro .intro-stage {
  display: flex;
  align-items: center;
  gap: 28px;
  opacity: 0;
  animation: intro-stage-in 0.5s ease-out 0.05s forwards;
}
#spur-intro .intro-plaque {
  background: var(--cream);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transform: scale(0.92);
}
#spur-intro .intro-plaque img { display: block; height: 108px; width: auto; border-radius: 8px; }
#spur-intro .intro-star-wrap { position: relative; width: 74px; height: 74px; }
#spur-intro .intro-star {
  width: 74px; height: 74px;
  filter: drop-shadow(0 4px 14px rgba(23,179,184,.65));
  opacity: 0;
  animation: intro-star-spin-in 0.9s cubic-bezier(.3,1.4,.4,1) 0.55s forwards;
}
#spur-intro .intro-glint {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 12px 4px rgba(255,255,255,.9);
  animation: intro-glint-pop 0.5s ease-out 1.3s forwards;
}
@keyframes intro-rope-draw { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes intro-stage-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes intro-star-spin-in {
  0% { opacity: 0; transform: rotate(-200deg) scale(0.4); }
  70% { opacity: 1; transform: rotate(18deg) scale(1.08); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes intro-glint-pop {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(0.2); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.6); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(2.4); }
}
@keyframes intro-curtain {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* ---------------------------------------------------------------------
   Marquee ribbon
--------------------------------------------------------------------- */
.marquee-ribbon {
  overflow: hidden;
  background: var(--walnut-ink);
  color: var(--cream);
  border-top: 3px solid var(--rope-gold);
  border-bottom: 3px solid var(--rope-gold);
  white-space: nowrap;
}
.marquee-ribbon .marquee-track {
  display: inline-flex;
  animation: marquee-scroll 156s linear infinite;
}
.marquee-ribbon .marquee-seg {
  display: inline-block;
  padding: 10px 0;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--turquoise);
}
.marquee-ribbon .marquee-seg span.dot { color: var(--blush); margin: 0 18px; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------
   Hero photo float
--------------------------------------------------------------------- */
.hero-float { animation: hero-float 5.5s ease-in-out infinite; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-10px) rotate(0.4deg); }
}

/* ---------------------------------------------------------------------
   Product card hover: lift + shadow + shine sweep
--------------------------------------------------------------------- */
.product-card { position: relative; transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.product-card:hover, .product-card:focus-within { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(46,27,15,.28); }
.product-card .shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  background-size: 250% 250%;
  background-position: -120% -120%;
  transition: background-position .65s ease;
}
.product-card:hover .shine, .product-card:focus-within .shine { background-position: 120% 120%; }

/* ---------------------------------------------------------------------
   Rope-twist divider — CSS, never an image recreation of the logo
--------------------------------------------------------------------- */
.rope-divider {
  height: 14px;
  background: repeating-linear-gradient(135deg, var(--rope-gold) 0 10px, var(--walnut-ink) 10px 20px);
  background-size: 28px 28px;
  opacity: 0.9;
}

/* ---------------------------------------------------------------------
   Cart bubble bounce + drawer slide
--------------------------------------------------------------------- */
@keyframes cart-bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.28); }
  55% { transform: scale(0.92); }
  75% { transform: scale(1.08); }
}
.cart-bump { animation: cart-bounce 0.5s ease; }

#cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream);
  box-shadow: -14px 0 40px rgba(46,27,15,.35);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.3,.9,.3,1);
  z-index: 500;
  display: flex;
  flex-direction: column;
}
#cart-drawer.open { transform: translateX(0); }
#cart-backdrop {
  position: fixed; inset: 0; background: rgba(46,27,15,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  z-index: 499;
}
#cart-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------------
   Order success — spur star spins once with sparkle puffs
--------------------------------------------------------------------- */
.success-star { width: 86px; height: 86px; animation: success-spin 0.9s cubic-bezier(.3,1.5,.4,1) both; }
@keyframes success-spin {
  0% { transform: rotate(0deg) scale(0.6); opacity: 0; }
  60% { transform: rotate(300deg) scale(1.1); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 1; }
}
.sparkle-puff {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--turquoise); opacity: 0;
  animation: sparkle-out 0.8s ease-out both;
}
@keyframes sparkle-out {
  0% { opacity: 0; transform: translate(0,0) scale(0.4); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: var(--puff-end, translate(40px,-40px)) scale(1.1); }
}

/* ---------------------------------------------------------------------
   Floating mobile cart bubble
--------------------------------------------------------------------- */
#cart-bubble-mobile {
  position: fixed;
  bottom: 18px; right: 18px;
  z-index: 480;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--turquoise);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(23,179,184,.5);
  border: none;
  cursor: pointer;
}
@media (max-width: 760px) { #cart-bubble-mobile { display: flex; } }
