/* ==========================================================================
   Warung Bibit (https://www.warungbibit.com/) — Agro-Nursery E-Commerce UI
   Design System: Sunlit Botanical Alabaster & Deep Chlorophyll Forest
   ========================================================================== */

:root {
  --bg-canvas: #f7f6f2;
  --bg-surface: #ffffff;
  --bg-subtle: #efede6;
  --bg-forest: #143625;
  --bg-forest-deep: #0d2619;
  --text-primary: #14261c;
  --text-secondary: #3d5245;
  --text-muted: #5c7063;
  --text-on-forest: #f4f3ee;
  --text-on-forest-muted: #c2d4c8;
  --accent-emerald: #1e6b43;
  --accent-emerald-hover: #165233;
  --accent-amber: #b45309;
  --accent-amber-bg: #fef3c7;
  --border-stone: #e2dfd5;
  --border-strong: #cbc6b8;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: tabular-nums;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  padding: 0 0 72px 0;
  caret-color: var(--accent-emerald);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Bricolage Grotesque', 'Oswald', sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text-primary);
}

/* Browser Surface Theming */
::selection {
  background-color: #1e6b43;
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

a {
  text-underline-offset: 0.22em;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

::-webkit-scrollbar {
  width: 10px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}

::-webkit-scrollbar-thumb {
  background: #b8b3a4;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

/* E-Commerce Card & Image Transitions */
.wb-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-stone);
  border-radius: 14px;
  transition: border-color 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wb-card:hover {
  border-color: #9ab5a4;
}

.wb-card-img {
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wb-card:hover .wb-card-img {
  transform: scale(1.04);
}

/* Navigation Dropdown on Desktop */
.nav-dropdown-parent:hover > .nav-dropdown-menu,
.nav-dropdown-parent:focus-within > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1), visibility 180ms;
}

/* Rich Article Content Formatting */
.wb-article-content {
  max-width: 70ch;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.75;
}

.wb-article-content p {
  margin-bottom: 1.15em;
}

.wb-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem auto;
  display: block;
}

.wb-article-content a {
  color: var(--accent-emerald);
  text-decoration: underline;
  font-weight: 600;
}

/* Hide scrollbar for category pills on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
