/* Kalla Catalog — brand styles (complements Tailwind) */
:root {
  --kalla-green: #00843d;
  --kalla-green-dark: #006731;
  --kalla-green-darker: #024a25;
  --kalla-gold: #c9962f;
  --kalla-gold-light: #e9c766;
  --kalla-gold-dark: #a87a1f;
  --ink: #14211b;
  --muted: #6b776f;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* Brand gradients */
.bg-kalla-gradient {
  background: linear-gradient(135deg, #006731 0%, #00843d 55%, #0a9b4a 100%);
}
.text-gold-gradient {
  background: linear-gradient(95deg, #a87a1f, #c9962f 40%, #e9c766);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-gold-gradient {
  background: linear-gradient(95deg, #b8860b, #c9962f 45%, #e9c766);
}

/* Subtle dotted hero texture. Declares BOTH the dots and the brand gradient in
   a single background so the dots layer on top of the gradient (a separate
   .hero-pattern background-image would otherwise override .bg-kalla-gradient).
   Always used together with .bg-kalla-gradient. */
.hero-pattern {
  background-image: radial-gradient(
      circle at 1px 1px,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 0
    ),
    linear-gradient(135deg, #006731 0%, #00843d 55%, #0a9b4a 100%);
  background-size: 22px 22px, cover;
  background-position: 0 0, center;
}

/* Cards */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px -22px rgba(0, 103, 49, 0.45);
}

/* Product image zoom */
.img-zoom {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .img-zoom {
  transform: scale(1.07);
}

/* Line clamp utilities (fallback if Tailwind plugin absent) */
.clamp-1,
.clamp-2,
.clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-1 {
  -webkit-line-clamp: 1;
}
.clamp-2 {
  -webkit-line-clamp: 2;
}
.clamp-3 {
  -webkit-line-clamp: 3;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #c7d2cb;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00843d;
}

/* Floating WA pulse */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
.wa-pulse {
  animation: wa-pulse 2.4s infinite;
}

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(100deg, #eef1ef 30%, #f7f9f8 50%, #eef1ef 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

/* Spec table zebra */
.spec-row:nth-child(odd) {
  background: #f7faf8;
}

/* Toast */
#toast-wrap {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: #14211b;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  transform: none;
  opacity: 1;
}
.toast.success {
  background: #00843d;
}
.toast.error {
  background: #c23b3b;
}

/* Admin sidebar active */
.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.admin-nav-link.active .nav-bar {
  opacity: 1;
}
