/* ============================================================
   VALORIAN — ANIMATIONS CSS
   Keyframes, GSAP helpers, scroll reveals, transitions
   ============================================================ */

/* ── GSAP UTILITY CLASSES ─────────────────────────────────── */
.gsap-hidden { visibility: hidden; }

/* ── FADE TRANSITIONS ─────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── HERO CHAR REVEAL ─────────────────────────────────────── */
.char-wrap {
  overflow: hidden;
  display: inline-block;
}

.char {
  display: inline-block;
  transform: translateY(110%);
}

/* ── PARALLAX ─────────────────────────────────────────────── */
[data-parallax] {
  will-change: transform;
}

/* ── HOVER EFFECTS ────────────────────────────────────────── */
.hover-lift {
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
  box-shadow: var(--shadow-gold);
}

/* ── IMAGE REVEAL ─────────────────────────────────────────── */
.img-reveal {
  overflow: hidden;
  position: relative;
}

.img-reveal__inner {
  transform: scale(1.1);
  transition: transform var(--dur-cinematic) var(--ease-out);
}

.img-reveal.is-visible .img-reveal__inner {
  transform: scale(1);
}

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  animation: marqueeScroll 20s linear infinite;
}

.marquee__track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  padding-right: var(--space-6);
  font-family: var(--font-editorial);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-mid-gray);
}

.marquee__sep {
  color: var(--color-gold);
  font-size: var(--text-xs);
}

/* ── SWIPER OVERRIDES ─────────────────────────────────────── */
.swiper-luxury {
  overflow: visible !important;
}

.swiper-luxury .swiper-wrapper {
  align-items: stretch;
}

.swiper-luxury .swiper-slide {
  height: auto;
}

.swiper-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.swiper-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast);
  flex-shrink: 0;
}

.swiper-btn:hover {
  background: var(--color-black);
  border-color: var(--color-black);
}

.swiper-btn:hover svg { stroke: var(--color-white); }

.swiper-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-black);
  fill: none;
  stroke-width: 1.5;
  transition: stroke var(--dur-fast);
}

.swiper-btn.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── SCROLL PROGRESS ──────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-gold);
  z-index: calc(var(--z-top) + 1);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── CURSOR (desktop) ─────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--color-black);
  border-radius: 50%;
  pointer-events: none;
  z-index: calc(var(--z-top) + 2);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

@media (hover: none) {
  .cursor { display: none; }
}

/* ── PRODUCT IMAGE ZOOM ───────────────────────────────────── */
.zoom-container {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.zoom-container.is-zoomed {
  cursor: zoom-out;
}

.zoom-container img {
  transition: transform 0.1s linear;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  will-change: transform;
}

.zoom-container.is-zoomed img {
  transform: scale(2.2);
}

/* ── COLLECTION GRID ANIMATIONS ───────────────────────────── */
.product-card {
  transition: transform var(--dur-normal) var(--ease-out);
}

.product-card.is-filtering {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.product-card.is-showing {
  opacity: 1;
  transform: scale(1);
}

/* ── PRODUCT PAGE GALLERY ─────────────────────────────────── */
.product-gallery {
  display: flex;
  gap: var(--space-3);
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 72px;
  flex-shrink: 0;
}

.gallery-thumb {
  width: 72px;
  aspect-ratio: 3/4;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
  border: 1px solid transparent;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--color-black);
}

.gallery-thumb:hover { opacity: 0.85; }

.product-gallery__main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.product-gallery__main-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

/* ── STICKY PRODUCT INFO ──────────────────────────────────── */
.product-info-sticky {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
  align-self: flex-start;
  max-height: calc(100vh - var(--nav-height) - var(--space-12));
  overflow-y: auto;
}

/* ── ADD TO CART ANIMATION ────────────────────────────────── */
@keyframes cartPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.btn--add-cart.is-loading {
  pointer-events: none;
  animation: cartPulse 0.5s var(--ease-in-out) infinite;
}

.btn--add-cart.is-success {
  background: var(--color-success);
  border-color: var(--color-success);
}

/* ── SECTION TRANSITIONS ──────────────────────────────────── */
section {
  position: relative;
}

.section--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.section--cream {
  background: var(--color-cream);
}

.section--white {
  background: var(--color-white);
}

.section-pad {
  padding-block: var(--space-24);
}

.section-pad--lg {
  padding-block: var(--space-32);
}

.section-pad--sm {
  padding-block: var(--space-12);
}

/* ── SPLIT REVEAL ─────────────────────────────────────────── */
.split-text {
  overflow: hidden;
}

.split-text .line {
  display: block;
  overflow: hidden;
}

.split-text .line-inner {
  display: block;
  transform: translateY(100%);
}

/* ── LOADING MORE ─────────────────────────────────────────── */
.load-more-trigger {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-cream);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── BADGE PULSE ──────────────────────────────────────────── */
@keyframes badgePop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.badge-pop {
  animation: badgePop var(--dur-normal) var(--ease-spring) forwards;
}

/* ── FEATURED COLLECTION CARD ─────────────────────────────── */
.collection-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 2/3;
  background: var(--color-cream);
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.collection-card:hover img {
  transform: scale(1.06);
}

.collection-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.1) 60%,
    transparent 100%
  );
  transition: opacity var(--dur-normal);
}

.collection-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-6);
  transform: translateY(8px);
  transition: transform var(--dur-normal) var(--ease-out);
}

.collection-card:hover .collection-card__content {
  transform: translateY(0);
}

.collection-card__overline {
  font-size: 9px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-2);
}

.collection-card__title {
  font-family: var(--font-editorial);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--weight-light);
  color: var(--color-white);
  line-height: 1.1;
}

.collection-card__cta {
  margin-top: var(--space-4);
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--dur-normal) var(--ease-out) 0.05s;
}

.collection-card:hover .collection-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.collection-card__cta::after {
  content: '→';
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           