@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@500;600;700;800&display=swap');

:root {
  --color-blush-50: #fff5f6;
  --color-blush-100: #ffe4e8;
  --color-blush-500: #f43f5e;
  --color-blush-600: #e11d48;
  --color-gold-400: #fbbf24;
  --color-gold-500: #f59e0b;
  --color-cream-bg: #faf7f2;
  --color-card-bg: #ffffff;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #faf7f4;
  color: #1f242d;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #fbcfe8;
  color: #831843;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-italic-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

.font-display {
  font-family: 'Syne', sans-serif;
}

/* Light Editorial Luxury Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #faf7f4;
}
::-webkit-scrollbar-thumb {
  background: #fbcfe8;
  border-radius: 9999px;
  border: 1px solid #faf7f4;
}
::-webkit-scrollbar-thumb:hover {
  background: #f43f5e;
}

/* Radiant Pastel Ambient Glows */
.editorial-glow {
  background: radial-gradient(circle at 50% 10%, rgba(254, 226, 226, 0.7) 0%, rgba(253, 242, 248, 0.5) 45%, rgba(250, 247, 244, 0) 75%);
}

/* ==========================================================================
   HIGH-FASHION ANIMATED CARD ARCHITECTURE
   ========================================================================== */
.card-editorial {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(225, 29, 72, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
  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.45s ease;
  will-change: transform, box-shadow;
  overflow: hidden;
}

/* Shimmer Border Aura on Hover */
.card-editorial::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.4), rgba(251, 191, 36, 0.3), rgba(236, 72, 153, 0.4));
  border-radius: inherit;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.card-editorial:hover::before {
  opacity: 1;
}

.card-editorial > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .card-editorial:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(244, 63, 94, 0.35);
    box-shadow: 0 24px 48px -10px rgba(244, 63, 94, 0.18), 0 12px 24px -4px rgba(0, 0, 0, 0.04);
  }
}

/* Product Card Media Box Animation */
.product-card .card-media-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
}

.product-card .card-media-box img {
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  will-change: transform;
}

.product-card:hover .card-media-box img {
  transform: scale(1.08);
}

/* Lens flare sweep on card hover */
.product-card .card-media-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
  pointer-events: none;
  z-index: 15;
}

.product-card:hover .card-media-box::after {
  left: 150%;
}

/* Action Overlay & Smooth Staggered Entrance */
.card-action-overlay {
  transform: translateY(18px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.product-card:hover .card-action-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Shimmer Rose Gold Text */
.shimmer-rose {
  background: linear-gradient(135deg, #e11d48 0%, #db2777 35%, #f59e0b 70%, #e11d48 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 7s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Floating animation */
.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(244, 63, 94, 0.6);
  }
}

/* Chic Rose Button */
.btn-rose {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 60%, #be123c 100%);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px -3px rgba(225, 29, 72, 0.35);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-rose:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -3px rgba(225, 29, 72, 0.5);
  filter: brightness(1.05);
}

.btn-rose:active {
  transform: translateY(1px) scale(0.98);
}

/* Cream Outline Button */
.btn-cream {
  background: #ffffff;
  color: #1f242d;
  border: 1px solid rgba(244, 63, 94, 0.25);
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.btn-cream:hover {
  background: #fff1f2;
  border-color: #f43f5e;
  color: #e11d48;
}

.btn-cream:active {
  transform: scale(0.98);
}

/* Lookbook Pin Pulse */
.lookbook-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #ffffff;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
}

.lookbook-pin::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  border: 2px solid rgba(244, 63, 94, 0.7);
  animation: pinPulse 2s infinite;
}

@keyframes pinPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.lookbook-pin:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   MOBILE & TOUCH SCREEN OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  /* Give cards comfortable tap targets */
  .product-card {
    border-radius: 1.25rem;
  }

  /* Make Quick View & Add buttons directly accessible without requiring hover */
  .product-card .card-action-overlay {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 0.6rem 0 0 0;
    margin-top: 0.5rem;
    background: transparent !important;
  }

  .product-card .card-action-overlay button {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  /* Mobile bottom bar compensation */
  body {
    padding-bottom: 70px;
  }

  /* Larger touch targets on mobile buttons */
  button, a {
    min-height: 40px;
  }

  /* Prevent text selection when rapid tapping */
  .no-select {
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Sticky Mobile Quick Navigation Bar */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(244, 63, 94, 0.15);
    z-index: 45;
    padding: 0 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    justify-content: space-around;
    align-items: center;
  }

  .mobile-bottom-bar a, .mobile-bottom-bar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #52525b;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    gap: 3px;
    padding: 6px;
    min-height: 48px;
    position: relative;
    transition: color 0.2s;
  }

  .mobile-bottom-bar a.active, .mobile-bottom-bar a:hover {
    color: #f43f5e;
  }

  .mobile-bottom-bar i {
    font-size: 16px;
  }
}

/* Line clamp helpers */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Safe area bottom padding for iPhone notch / home indicator */
@supports (padding: max(0px)) {
  .safe-bottom-padding {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
  @media (max-width: 768px) {
    .mobile-bottom-bar {
      height: calc(64px + env(safe-area-inset-bottom));
      padding-bottom: env(safe-area-inset-bottom);
    }
  }
}
