/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Nav Scroll State ─── */
nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
}

/* ─── Floating Cards Animation ─── */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(2) { animation-delay: -2s; }
.floating-card:nth-child(3) { animation-delay: -4s; }

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

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,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 Hover ─── */
.group:hover img {
  transform: scale(1.05);
}

/* ─── Mobile Menu Transition ─── */
#mobileMenu {
  animation: slideDown 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff5f2; }
::-webkit-scrollbar-thumb { background: #ffd5c4; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #ffb896; }

/* ─── Selection ─── */
::selection { background: #ffd5c4; color: #16171e; }
