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

/* Color variables mapped from the React @theme */
:root {
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Inter", sans-serif;
  
  --color-brand-cream: #FCFCFA;
  --color-brand-gold: #A68A56;
  --color-brand-gold-light: #D4C4A8;
  --color-brand-dark: #121212;
  --color-brand-muted: #71717A;
}

body {
  background-color: var(--color-brand-cream);
  color: var(--color-brand-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom class implementations matching tailwind extensions */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:focus-within {
  border-color: rgba(166, 138, 86, 0.3);
}

.glass-nav {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}

.gold-gradient {
  background: linear-gradient(135deg, #A68A56 0%, #D4C4A8 50%, #A68A56 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.cinematic-glow {
  box-shadow: 0 0 40px rgba(166, 138, 86, 0.1);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .bg-orb {
    filter: blur(150px);
    -webkit-filter: blur(150px);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1) translate(2%, 2%);
    opacity: 1;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s infinite alternate ease-in-out;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cinematic-shadow {
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

.honey-glow {
  box-shadow: 0 0 30px rgba(217, 119, 6, 0.15);
}

.honey-drip {
  position: relative;
  overflow: hidden;
}

@keyframes drip {
  0% { top: -100%; }
  30% { top: 0; }
  100% { top: 100%; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 25s linear infinite;
  display: flex;
}

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

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Text clamp utilities */
.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;
}

/* Flying droplet animation */
@keyframes flyToCart {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(var(--mid-x), var(--mid-y)) scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--dest-x), var(--dest-y)) scale(0.1);
    opacity: 0;
  }
}

.flying-droplet {
  animation: flyToCart 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Responsive container fixes */
.max-w-7xl {
  max-width: 80rem;
}
