/* ========== BASE RESET & FOUNDATION ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefcf6;
}
::-webkit-scrollbar-thumb {
  background: #d44356;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9c1a2b;
}

/* ========== NAV SCROLLED STATE ========== */
#site-header.scrolled {
  background: rgba(254, 252, 246, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

/* ========== HERO GRADIENT ANIMATION ========== */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========== PRODUCT CARD SHINE ========== */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ========== BUTTON RIPPLE ========== */
button, a[role="button"] {
  position: relative;
  overflow: hidden;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
  outline: 2px solid #b82031;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== MOBILE MENU TRANSITION ========== */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ACCESSIBILITY: REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== SELECTION ========== */
::selection {
  background: #f9d4d8;
  color: #550f17;
}
