/* Reset & Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: #2B1B17;
  background-color: #FDFBF7;
  overflow-x: hidden;
}

/* Fail-safe scroll reveal animation */
html.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Badge pulse animation */
@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

.pulse-badge {
  animation: softPulse 2.8s infinite ease-in-out;
}

/* Glassmorphism elements */
.glass-panel {
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(243, 212, 197, 0.6);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
  background: #EAB69F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D26B43;
}

/* Image fallback container */
.img-fallback-wrapper {
  background: linear-gradient(135deg, #F9ECE5 0%, #F5EFE6 50%, #F3D4C5 100%);
  position: relative;
  overflow: hidden;
}

/* Cart drawer & Modal transitions */
#cart-drawer {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#cart-overlay, #modal-backdrop {
  transition: opacity 0.3s ease;
}

#product-modal-container {
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating notification */
.toast-notice {
  animation: slideInUp 0.3s ease-out forwards;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}