/* ── Reset & Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Dark mode ───────────────────────────────────── */
:root {
  --bg:        #FDF8F0;
  --bg-alt:    #ffffff;
  --text:      #064E3B;
  --text-muted:#065F46;
  --surface:   #ffffff;
  --border:    rgba(6,95,70,0.1);
  --card-bg:   #ffffff;
}

.dark {
  --bg:        #042f23;
  --bg-alt:    #021c14;
  --text:      #d1fae5;
  --text-muted:#a7f3d0;
  --surface:   #064e3b;
  --border:    rgba(16,185,129,0.15);
  --card-bg:   #064e3b;
}

body { background: var(--bg); color: var(--text); transition: background 0.3s, color 0.3s; }

/* ── Navigation ──────────────────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile menu ─────────────────────────────────── */
.mobile-link { transition: color 0.2s, transform 0.2s; }
.mobile-link:hover { color: #10b981; transform: translateY(-2px); }

/* ── Scroll reveal ───────────────────────────────── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Product card hover ──────────────────────────── */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ── Custom scrollbar ────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #059669; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }

/* ── Selection ───────────────────────────────────── */
::selection { background: #059669; color: #fff; }
</style>
