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

:root {
  /* Eye-Friendly Luxury Perfume Palette: Cashmere, Warm Espresso & Rose-Copper */
  --primary: #2E2424;
  --on-primary: #FAF7F4;
  --secondary: #F3ECE6;
  --on-secondary: #2E2424;
  --accent: #C98E72;
  --on-accent: #2E2424;
  --accent-text: #8F573E;

  --surface: #FAF7F4;
  --on-surface: #3A3230;
  --surface-ivory: #F3ECE6;
  --surface-dark: #2E2424;
  --surface-container: #EAE0D7;
  --muted: #7D706D;
  --on-surface-dark-muted: #C8BCB8;

  --outline: #D2C4B9;
  --outline-subtle: #E5DBD3;
  --error: #93000A;

  /* Motion */
  --ease-state: ease-out;
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display, .font-headline, .font-serif {
  font-family: 'Lora', Georgia, serif;
}

.font-title, .font-body, .font-label {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.font-mono, .font-mono-num {
  font-family: 'Source Code Pro', monospace;
  font-variant-numeric: tabular-nums;
}

/* =====================================
   ARCHITECTURAL INTERACTIONS (0px / 2px)
   ===================================== */

button, a, .clickable {
  transition: color 200ms var(--ease-state), background-color 200ms var(--ease-state), border-color 200ms var(--ease-state), transform 200ms var(--ease-state), opacity 200ms var(--ease-state);
}

button:active {
  transform: scale(0.985);
}

/* Sticky Editorial Header */
.nav-island {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-subtle);
}

/* Product Card - High-Contrast Clean White Editorial Card */
.product-card {
  background: #FFFFFF;
  border: 1px solid #E6DFD6;
  border-radius: 1.25rem;
  box-shadow: 0 2px 10px rgba(46, 36, 36, 0.03);
  transition: border-color 200ms var(--ease-state), box-shadow 250ms var(--ease-state), transform 250ms var(--ease-state);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #C98E72;
  box-shadow: 0 14px 32px -10px rgba(46, 36, 36, 0.12);
}

/* Studio Image Frame */
.product-image-frame {
  background: #F7F3EE;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-frame img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 350ms var(--ease-enter);
}

.product-card:hover .product-image-frame img {
  transform: scale(1.03);
}

/* Volume Size Buttons (Soft Rounded) */
.size-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--outline);
  border-radius: 0.625rem;
  padding: 5px 8px;
  font-family: 'Source Code Pro', monospace;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.size-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.size-btn.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* Filter Pills (Softened Menu Tabs) */
.filter-pill {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--outline);
  border-radius: 9999px;
  padding: 9px 20px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  cursor: pointer;
}
.filter-pill:hover {
  border-color: var(--primary);
}
.filter-pill.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* Champagne Gold Coin Tag */
.coin-tag {
  background: var(--surface-ivory);
  border: 1px solid var(--outline-subtle);
  color: var(--accent-text);
  border-radius: 9999px;
  font-family: 'Source Code Pro', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

/* Pagination Buttons */
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--primary);
  font-family: 'Source Code Pro', monospace;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--surface-ivory);
}
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms var(--ease-enter), transform 350ms var(--ease-enter);
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface-ivory);
}
::-webkit-scrollbar-thumb {
  background: var(--outline);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Live Sales Social Proof Toast (Soft Rounded) */
.live-sales-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 45;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 1.25rem;
  padding: 12px 16px;
  color: var(--on-surface);
  box-shadow: 0 12px 32px -6px rgba(46, 36, 36, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  transition: transform 350ms var(--ease-enter), opacity 350ms var(--ease-enter);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.live-sales-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Lucky Wheel */
.wheel-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}
.wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 8px var(--surface-ivory);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}
.wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--primary);
  z-index: 10;
}

/* Gamified Badges */
.badge-unlocked {
  background: var(--surface-ivory);
  border: 1px solid var(--accent);
}
.badge-locked {
  background: var(--surface);
  border: 1px solid var(--outline-subtle);
  opacity: 0.6;
  filter: grayscale(80%);
}

/* =====================================
   KINETIC HERO & BENTO ANIMATIONS (GPU)
   ===================================== */
@keyframes floatBottle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

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

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

@keyframes fadeUpIn {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate-float-bottle {
  animation: floatBottle 5.5s ease-in-out infinite;
  will-change: transform;
}

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

.animate-float-chip-2 {
  animation: floatChip 4.8s ease-in-out 0.8s infinite;
}

.animate-float-chip-3 {
  animation: floatChip 5.2s ease-in-out 1.4s infinite;
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

.animate-fade-up {
  animation: fadeUpIn 0.7s var(--ease-enter) both;
}
.animate-fade-up-d1 { animation: fadeUpIn 0.7s var(--ease-enter) 0.08s both; }
.animate-fade-up-d2 { animation: fadeUpIn 0.7s var(--ease-enter) 0.16s both; }
.animate-fade-up-d3 { animation: fadeUpIn 0.7s var(--ease-enter) 0.24s both; }

.animate-spin-slow {
  animation: spinSlow 18s linear infinite;
}
