/* ==========================================================================
   OUD & AURA - HAUTE PARFUMERIE
   Design System & Master Stylesheet
   Based directly on Stitch DESIGN.md
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  /* Color Palette Tokens */
  --surface: #fbf9f6;
  --surface-dim: #dbdad7;
  --surface-bright: #fbf9f6;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f5f3f0;
  --surface-container: #efeeeb;
  --surface-container-high: #eae8e5;
  --surface-container-highest: #e4e2df;
  
  --on-surface: #1b1c1a;
  --on-surface-variant: #4b4640;
  
  --primary: #000000;
  --primary-noir: #121110;
  --on-primary: #ffffff;
  --primary-container: #1d1b1a;
  
  --secondary: #875200;
  --secondary-amber: #b57419;
  --gold-accent: #cbb279;
  --gold-bright: #d4af37;
  --on-secondary: #ffffff;
  --secondary-container: #feb154;
  
  --tertiary: #000000;
  --muted-taupe: #8c827a;
  
  --outline: #7c766f;
  --outline-variant: #cdc5bd;
  --border-subtle: #e5ddcf;
  --cream-card: #faf6f0;
  --cream-section: #f7f2eb;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Elevation */
  --shadow-bloom: 0px 24px 48px -12px rgba(18, 17, 16, 0.06), 0px 4px 16px -2px rgba(181, 116, 25, 0.08);
}

/* Base Reset */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

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

/* Hide scrollbars cleanly where desired */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Safe area padding for mobile notches */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pt-safe {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Product Card Styling */
.product-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

/* Image fallback placeholder styling */
img {
  text-indent: -10000px;
}
img:not([src]), img[src=""] {
  background-color: #efeeeb;
}

/* Smooth modal/drawer transitions */
.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel.active {
  transform: translateX(0);
}

.drawer-panel-left {
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel-left.active {
  transform: translateX(0);
}

/* WhatsApp Floating Button */
.whatsapp-floating-pulse {
  animation: auraPulse 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes auraPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 5rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: #121110;
  color: #faf8f5;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #cbb279;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
