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

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Cinzel', serif;
}

body {
  font-family: var(--font-sans);
  background-color: #faf9f6;
  color: #1c1917;
  overflow-x: hidden;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
}

.font-brand {
  font-family: var(--font-display);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f4f0;
}
::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}

/* Hotspot Pulse */
@keyframes ping-slow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.hotspot-pulse {
  animation: ping-slow 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Smooth Drawer Transition */
#cart-drawer {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphism Classes */
.glass-header {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Subtle image zoom container */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.img-zoom-container:hover img {
  transform: scale(1.06);
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Modal Pop-in Keyframes */
@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-animate-in {
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Luxury Navbar Enhancements */
.nav-link-pill {
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-pill::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: #1c1917;
  border-radius: 9999px;
  transform: translateX(-50%);
  transition: width 0.25s ease-out;
}
.nav-link-pill:hover::after {
  width: 75%;
}

/* Header scrolled state */
header.nav-scrolled {
  background: rgba(250, 249, 246, 0.94);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  border-color: rgba(231, 229, 224, 0.9);
}
header.nav-scrolled .nav-container-inner {
  height: 4.25rem; /* shrinks smoothly from 5rem (h-20) to 4.25rem */
}

/* Mega-Menu Dropdown */
.mega-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.group-dropdown:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Shimmer badge */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.badge-shimmer {
  background: linear-gradient(90deg, #b46447 0%, #f59e0b 50%, #b46447 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

/* ================= MOBILE OPTIMIZATIONS ================= */
* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  -webkit-overflow-scrolling: touch;
}

/* Safe Area Inset Utility for iOS */
.safe-pb {
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom, 0.6rem));
}

/* Prevent iOS Safari from auto-zooming into inputs when font-size is < 16px */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
  
  /* Touch target helpers */
  .touch-target {
    min-height: 44px;
    min-width: 44px;
  }
}
