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

:root {
  --color-gold-400: #fbbf24;
  --color-gold-500: #f59e0b;
  --color-rose-gold: #f472b6;
  --color-velvet-dark: #0a0c14;
  --color-velvet-card: #111422;
}

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: #080a10;
  color: #e2e8f0;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #f59e0b;
  color: #050608;
}

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

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

/* Custom Scrollbar for desktop */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #080a10;
  }
  ::-webkit-scrollbar-thumb {
    background: #252b40;
    border-radius: 9999px;
    border: 2px solid #080a10;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #f59e0b;
  }
}

/* Radiant glow backgrounds */
.hero-glow {
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.16) 0%, rgba(244, 114, 182, 0.1) 40%, transparent 75%);
}

.card-luxury {
  background: linear-gradient(145deg, rgba(22, 27, 46, 0.85) 0%, rgba(13, 16, 28, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.card-luxury:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.2);
}

/* Animated Shimmer Text */
.shimmer-text {
  background: linear-gradient(90deg, #fef08a 0%, #f59e0b 25%, #f472b6 50%, #fef08a 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 6s linear infinite;
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-pulse-slow {
  animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseSlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Card 3D tilt perspective */
.product-card {
  perspective: 1000px;
  will-change: transform, box-shadow;
}

/* Touch screen optimization: make card overlay actions visible or accessible without requiring mouse hover */
@media (hover: none), (max-width: 768px) {
  .product-card .card-action-overlay {
    transform: translateY(0) !important;
    opacity: 1 !important;
    background: rgba(13, 16, 29, 0.92);
    backdrop-filter: blur(8px);
  }
}

/* Golden button glow */
.btn-gold {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  color: #090b10;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px -2px rgba(245, 158, 11, 0.35);
  touch-action: manipulation;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -2px rgba(245, 158, 11, 0.6);
  filter: brightness(1.05);
}

.btn-gold:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

/* Touch tap targets */
button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Modal mobile scroll containment */
.modal-scroll-container {
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Line Clamp utility */
.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;
}

/* Custom checkbox */
input[type="checkbox"]:checked {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

/* Marquee infinite scroll */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 24s linear infinite;
}

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

/* Safe area padding for mobile notches */
@supports (padding: max(0px)) {
  .safe-bottom-padding {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}
