/* cajole-etoile/assets/css/style.css - Production-Grade Warm Minimalist Styling */

@layer base {
  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Custom Clean Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #FAF8F5;
}
::-webkit-scrollbar-thumb {
  background: #D7C4B7;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9E7E6B;
}

/* Hide scrollbar utility for horizontal scroll pills with smooth touch momentum */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

/* Prevent background rubber-band scrolling on iOS when modal is open */
body.overflow-hidden {
  overflow: hidden !important;
  touch-action: none;
}

/* Eliminate 300ms tap delay on mobile buttons */
button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Smooth Interactive Card Hover */
.cajole-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .cajole-card:hover {
    transform: translateY(-4px);
  }
}

/* Modal Animations */
@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-animate {
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Drawer Slide Animation */
@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.drawer-animate {
  animation: drawerSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Safe area support for mobile floating bars */
.safe-bottom {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
}

/* VIP Member Virtual Card Styling (Gold Metallic Foil Look) */
.vip-card-gradient {
  background: linear-gradient(135deg, #2D1D13 0%, #4A3222 35%, #664630 65%, #23160D 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(45, 29, 19, 0.35), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vip-card-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.vip-gold-border {
  border: 1px solid rgba(223, 206, 179, 0.4);
}

.vip-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  background-size: 200% 100%;
  animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Lookbook Gallery Hover Zoom */
.gallery-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.gallery-card:hover .gallery-zoom {
  transform: scale(1.06);
}

/* Wishlist Heart Animation */
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.wishlist-btn.active {
  color: #E11D48 !important;
  border-color: #FDA4AF !important;
  background-color: #FFF1F2 !important;
}

.wishlist-btn.active svg,
.wishlist-btn.active i {
  fill: #E11D48 !important;
  stroke: #E11D48 !important;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Toast Notification */
#cajoleToast {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

#cajoleToast.toast-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Rotating Top Announcement Bar */
.announcement-slide {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.announcement-slide.slide-out {
  opacity: 0;
  transform: translateY(-8px);
}

.announcement-slide.slide-in {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Concierge Pulse */
@keyframes pulseSubtle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 25px -5px rgba(22, 101, 52, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 15px 35px -5px rgba(22, 101, 52, 0.55);
  }
}

.wa-concierge-btn {
  animation: pulseSubtle 3.5s infinite ease-in-out;
}
.wa-concierge-btn:hover {
  animation: none;
  transform: translateY(-2px) scale(1.02);
}

/* ==================== BALENCIAGA & EDITORIAL LUXURY MOTIONS ==================== */

/* 1. Scroll-Driven Reveal Animations */
.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);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* 2. Balenciaga Custom Luxury Cursor */
.cursor-hover-active {
  transform: translate(-50%, -50%) scale(1.8) !important;
  border-color: #B08850 !important;
  background-color: rgba(176, 136, 80, 0.1) !important;
}

.cursor-view-mode {
  width: 58px !important;
  height: 58px !important;
  transform: translate(-50%, -50%) scale(1) !important;
  border-color: #3D2A1A !important;
  background-color: rgba(61, 42, 26, 0.92) !important;
  color: #DFCEB3 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 3. Dual-Angle Card Image Cross-Fade (Balenciaga / Polène Style) */
.dual-angle-box {
  position: relative;
  overflow: hidden;
}

.dual-angle-box .card-img-primary {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dual-angle-box .card-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .dual-angle-box .card-img-primary {
    opacity: 0;
    transform: scale(1.06);
  }
  .product-card:hover .dual-angle-box .card-img-hover {
    opacity: 1;
    transform: scale(1);
  }
}

/* 4. Infinite Typographic Marquee Ticker */
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-container {
  overflow: hidden;
  user-select: none;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* 5. Magnetic CTA Button Springs */
.magnetic-btn {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

