:root {
  --color-wheat: #C8933D;
  --color-wheat-gold: #DFA54E;
  --color-wheat-amber: #B8621B;
  --color-brown-deep: #271912;
  --color-brown-medium: #3E271B;
  --color-brown-muted: #6B5547;
  --color-cream-bg: #FAF7F0;
  --color-cream-card: #F5ECE1;
  --color-cream-border: #E8DEC0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--color-cream-bg);
  color: var(--color-brown-deep);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.font-serif-heading {
  font-family: var(--font-serif);
}

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

.grain-pattern-bg {
  background-color: var(--color-cream-bg);
  background-image: 
    radial-gradient(var(--color-brown-medium) 0.5px, transparent 0.5px),
    radial-gradient(var(--color-wheat) 0.5px, var(--color-cream-bg) 0.5px);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
}

.section-anchor {
  scroll-margin-top: 5rem;
}

@keyframes pulseRingWhatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-pulsing-aura {
  animation: pulseRingWhatsapp 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes badgePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

.cart-badge-bounce {
  animation: badgePop 0.45s ease-out;
}

@keyframes softPulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.pulsing-status-dot {
  animation: softPulseDot 2s ease-in-out infinite;
}

@keyframes splashLogoReveal {
  0% { opacity: 0; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes splashGlow {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes splashBar {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.animate-splash-logo {
  animation: splashLogoReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-splash-glow {
  animation: splashGlow 2.4s ease-in-out infinite;
}

.animate-splash-bar {
  animation: splashBar 1.8s ease-in-out forwards;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .whatsapp-pulsing-aura, .pulsing-status-dot {
    animation: none !important;
  }
}

@media print {
  @page {
    margin: 8mm;
    size: A4 portrait;
  }
  body {
    background: white !important;
    color: #111 !important;
  }
  body * {
    visibility: hidden;
  }
  #printInvoiceContent, #printInvoiceContent * {
    visibility: visible;
  }
  #printInvoiceContent {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white !important;
    color: #111 !important;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print, .no-print * {
    display: none !important;
    visibility: hidden !important;
  }
}

