/* ═══════════════════════════════════════════════════════
   SmartPic — Earthy Luxury Design System
   Fonts: Cormorant Garamond (display) · Jost (body)
═══════════════════════════════════════════════════════ */

/* Fonts loaded via <link> in each HTML page for better performance */

/* ─── Variables ─────────────────────────────────────── */
:root {
  --green-900: #1A2E1B;
  --green-800: #2C4A2E;
  --green-700: #3A5E3C;
  --green-600: #4A7A4D;
  --green-200: #A8CFA9;
  --green-100: #D4E8D5;
  --green-50:  #E8F0E9;

  --gold-900:  #7A5500;
  --gold-800:  #9A6C00;
  --gold-600:  #C8960C;
  --gold-400:  #E8B83C;
  --gold-100:  #FDEDC0;
  --gold-50:   #FEF8E8;

  --terra-800: #7A3B1E;
  --terra-600: #B05A2F;
  --terra-400: #CF7848;
  --terra-100: #F3D8C8;
  --terra-50:  #FBF0EA;

  --cream:      #FAF6EF;
  --cream-dark: #F0EAE0;
  --white:      #FFFFFF;
  --charcoal:   #1C1C1A;
  --gray-800:   #3A3A37;
  --gray-600:   #6B6B68;
  --gray-400:   #9A9A96;
  --gray-200:   #D5D0C8;
  --gray-100:   #ECEAE5;
  --gray-50:    #F8F8F6;
  --gray-500:   #7A7A76;
  --gray:       #6B6B68;

  --gold-200:   #F5D980;
  --gold-300:   #EEC84A;
  --gold-500:   #D4980A;

  --terra-700:  #8A4525;

  --danger:     #DC2626;
  --success:    #16A34A;
  --warn:       #D97706;

  --font-sans:  var(--font-body);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  --nav-h:        68px;
  --bottom-nav-h: 64px;
  --container:    1200px;
  --pad:          clamp(1.25rem, 5vw, 2.5rem);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --shadow-sm: 0 1px 4px rgba(28,28,26,0.06), 0 2px 8px rgba(28,28,26,0.04);
  --shadow-md: 0 4px 16px rgba(28,28,26,0.08), 0 8px 32px rgba(28,28,26,0.05);
  --shadow-lg: 0 16px 48px rgba(28,28,26,0.10), 0 4px 16px rgba(28,28,26,0.06);
  --shadow-xl: 0 32px 80px rgba(28,28,26,0.15);

  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full:100px;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip; /* clip prevents horizontal scroll WITHOUT creating a scroll container — overflow:hidden would break position:fixed elements */
}

/* Lock ALL scroll on html too when mobile menu is open (iOS Safari scrolls html, not body) */
html:has(body.menu-open) { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Keep body free of transforms so fixed mobile UI stays pinned to the viewport. */
  animation: spFadeIn 0.45s ease both;
  padding-top: var(--nav-h); /* Push ALL content below the fixed navbar — one rule, all pages */
  /* ── Sticky footer: body is a flex column so footer always sits at viewport bottom ── */
  display: flex;
  flex-direction: column;
  min-height: 100vh;    /* fallback */
  min-height: 100svh;   /* small viewport height — excludes mobile browser chrome */
}

body.menu-open { overflow: hidden; }

img, video { max-width: 100%; display: block; }
a          { color: inherit; text-decoration: none; }
ul         { list-style: none; }
button, input, select, textarea { font-family: var(--font-body); font-size: inherit; }
button     { cursor: pointer; border: none; background: none; outline: none; }

/* ─── Page Fade-In ──────────────────────────────────── */
@keyframes spFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Scroll Reveal ─────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(52px); }
.reveal-left  { transform: translateX(-52px); }
.reveal-right { transform: translateX(52px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: translate(0); }

/* ─── Layout ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-pad { padding: clamp(2.5rem, 5.5vw, 5rem) 0; }

/* ── Sticky footer: main fills remaining viewport height ── */
main { flex: 1 0 auto; }

/* ─── Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  padding: 5px 16px;
  border-radius: var(--r-full);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

.section-header .view-all {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--green-700);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.section-header .view-all:hover { color: var(--green-900); }

/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-lg { padding: 15px 38px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--green-800);
  color: var(--cream);
  border-color: var(--green-800);
}
.btn-primary:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44,74,46,0.32);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-outline:hover {
  background: var(--green-800);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--gray-200);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-600);
  color: var(--white);
  border-color: var(--gold-600);
}
.btn-gold:hover {
  background: var(--gold-800);
  border-color: var(--gold-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,12,0.32);
}

.btn-danger {
  background: #DC2626;
  color: white;
  border-color: #DC2626;
}
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; }

/* Disabled state */
.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── Navbar ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: transform 0.4s var(--ease-out),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: #FAF6EF;                    /* Fully opaque — content scrolling behind is fully hidden */
  box-shadow: 0 1px 0 rgba(28,28,26,0.12); /* Slightly stronger separator line */
}

.navbar.hidden { transform: translateY(-100%); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.nav-logo { display: flex; align-items: center; }
.nav-logo .logo-word {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--green-800);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Desktop links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-800);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--green-800); background: var(--green-50); }
.nav-link.active { color: var(--green-800); font-weight: 500; }

/* Dropdown */
.has-dropdown { position: relative; }
.chevron { font-size: 10px; transition: transform 0.2s; }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

.dropdown {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  border: 1px solid var(--gray-100);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s var(--ease-out);
  transform: translateY(-8px);
}

.has-dropdown:hover .dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--gray-800);
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
}
.dropdown li a:hover { background: var(--green-50); color: var(--green-800); }
.dropdown li a .drop-icon { font-size: 16px; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 2px; }

.nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  color: var(--gray-700);
  transition: background 0.2s, color 0.2s;
}
.nav-icon:hover { background: var(--green-50); color: var(--green-800); }
.nav-icon svg  { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--terra-600);
  color: white;
  font-size: 9px;
  font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  padding: 11px 9px;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--green-50); }
.hamburger span {
  display: block;
  height: 1.8px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.hidden-link { display: none !important; }

@media (min-width: 768px) {
  .nav-links  { display: flex; }
  .hamburger  { display: none; }
}

/* ─── Mobile Drawer ──────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--white);
  z-index: 2000;
  transition: right 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 88px 32px 40px;
  box-shadow: var(--shadow-xl);
}
.mobile-menu.open { right: 0; }

.mobile-menu-links { flex: 1; display: flex; flex-direction: column; }

.mobile-menu-links a {
  display: block;
  padding: 15px 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
}
.mobile-menu-links a:hover { color: var(--green-800); padding-left: 10px; }
.mobile-menu-links .sub-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-600);
  padding: 11px 0 11px 16px;
  font-weight: 400;
}
.mobile-menu-links .sub-link:hover { color: var(--green-700); padding-left: 24px; }

.mobile-menu-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.mobile-menu-auth .btn { justify-content: center; }

/* Overlay */
.overlay {
  position: fixed; inset: 0;
  background: rgba(28,28,26,0.45);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  /* backdrop-filter removed — GPU overhead not worth it */
}
.overlay.open { opacity: 1; pointer-events: all; }

/* ─── Mobile Bottom Nav ──────────────────────────────── */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: #FAF6EF;
  border-top: 1px solid var(--gray-200);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.55;
}
.bnav-item.active { opacity: 1; }

/* Per-tab brand colours */
.bnav-item:nth-child(1) { color: #2C6B2F; }   /* Home   — forest green  */
.bnav-item:nth-child(2) { color: #B05A2F; }   /* Shop   — terra cotta   */
.bnav-item:nth-child(3) { color: #B08C0A; }   /* Cart   — warm gold     */
.bnav-item:nth-child(4) { color: #1A6FB5; }   /* Account — ocean blue   */

/* Soft pill behind the active icon */
.bnav-item.active::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%; transform: translateX(-50%);
  width: 44px; height: 28px;
  background: currentColor;
  opacity: 0.13;
  border-radius: 10px;
  pointer-events: none;
}

.bnav-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bnav-item .bnav-dot {
  position: absolute;
  top: 8px; right: calc(50% - 20px);
  background: var(--terra-600);
  color: white;
  font-size: 9px;
  font-weight: 600;
  width: 15px; height: 15px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) { .bottom-nav { display: none; } }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 90svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0 calc(var(--bottom-nav-h) + 2rem);
}

@media (min-width: 768px) {
  .hero { padding-bottom: 3rem; }
}

/* Animated background blobs */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero-blob.b1 {
  width: 55vw; height: 55vw;
  max-width: 650px; max-height: 650px;
  background: var(--green-100);
  top: -15%; right: -10%;
  /* Static — no continuous animation */
}
.hero-blob.b2 {
  width: 40vw; height: 40vw;
  max-width: 450px; max-height: 450px;
  background: var(--gold-100);
  bottom: -10%; left: -8%;
  /* Static — no continuous animation */
}
.hero-blob.b3 {
  width: 25vw; height: 25vw;
  max-width: 300px; max-height: 300px;
  background: var(--terra-100);
  top: 40%; left: 40%;
  /* Static — no continuous animation */
}

/* Dot grid overlay */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(108,108,104,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Hero content */
.hero-content {
  position: relative; z-index: 1;
  max-width: 760px;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(234,240,233,0.9);
  border: 1px solid var(--green-200);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
  animation: heroReveal 0.75s var(--ease-out) 0.2s both;
  /* backdrop-filter removed */
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--green-600);
  border-radius: 50%;
  /* Static dot — no pulse animation */
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  margin-bottom: 1rem;
  animation: heroReveal 0.75s var(--ease-out) 0.4s both;
}
.hero-title em {
  font-style: italic;
  color: var(--green-700);
}
.hero-title .line-gold { color: var(--gold-800); }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--gray-600);
  max-width: 520px;
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.75;
  animation: heroReveal 0.75s var(--ease-out) 0.6s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: heroReveal 0.75s var(--ease-out) 0.8s both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  animation: heroReveal 0.75s var(--ease-out) 1s both;
}

.hero-stat {}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--green-800);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 300;
  margin-top: 4px;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: calc(var(--bottom-nav-h) + 0.75rem);
  left: var(--pad);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
  animation: heroReveal 0.75s var(--ease-out) 1.3s both;
}
.scroll-bar {
  width: 44px; height: 1px;
  background: var(--gray-300);
  /* Static line — no animation, no continuous GPU load */
}

@media (min-width: 768px) { .hero-scroll { bottom: 2rem; } }

/* ── Hero mobile improvements ── */
@media (max-width: 479px) {
  /* Stack CTA buttons vertically so they don't overflow narrow screens */
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
}
@media (max-width: 399px) {
  /* Reduce stats gap on very small phones (320px) to prevent overflow */
  .hero-stats { gap: 1.25rem; }
  .hero-stat .num { font-size: 1.6rem; }
}

/* ─── Category Cards ─────────────────────────────────── */
.categories-bg { background: var(--white); }

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 560px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }

.cat-card {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.cat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.cat-inner {
  padding: clamp(1.5rem, 3vw, 2rem) 1.75rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.cat-inner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  opacity: 0.15;
  transition: transform 0.55s var(--ease-out), opacity 0.3s;
}
.cat-card:hover .cat-inner::before { transform: scale(1.5); opacity: 0.22; }

.cat-inner.terra { background: var(--terra-50); }
.cat-inner.terra::before { background: var(--terra-600); }
.cat-inner.gold  { background: var(--gold-50); }
.cat-inner.gold::before  { background: var(--gold-600); }
.cat-inner.green { background: var(--green-50); }
.cat-inner.green::before { background: var(--green-600); }

.cat-icon { font-size: 2.8rem; line-height: 1; display: block; }

.cat-inner h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
}
.cat-inner.terra h3 { color: var(--terra-800); }
.cat-inner.gold  h3 { color: var(--gold-900); }
.cat-inner.green h3 { color: var(--green-800); }

.cat-inner p { font-size: 14px; color: var(--gray-600); flex: 1; font-weight: 300; line-height: 1.6; }

.cat-arrow {
  font-size: 1.3rem;
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}
.cat-card:hover .cat-arrow { transform: translateX(8px); }
.cat-inner.terra .cat-arrow { color: var(--terra-600); }
.cat-inner.gold  .cat-arrow { color: var(--gold-600); }
.cat-inner.green .cat-arrow { color: var(--green-600); }

/* ─── About Section ──────────────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 768px) {
  .about-inner { grid-template-columns: 1fr 1fr; }
}

.about-visual { display: flex; justify-content: center; }

.about-frame {
  width: min(300px, 80vw);
  aspect-ratio: 1;
  background: var(--green-50);
  border-radius: var(--r-xl);
  border: 2px solid var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}
.about-frame:hover { transform: scale(1.02); }

.about-frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--green-200);
  border-radius: calc(var(--r-xl) - 4px);
}

/* Decorative corner leaves */
.about-frame::after {
  content: '🍃';
  position: absolute;
  font-size: 5rem;
  bottom: -16px; right: -16px;
  opacity: 0.12;
  transform: rotate(-20deg);
}

.about-frame-center {
  text-align: center;
  padding: 2rem;
  position: relative; z-index: 1;
}
.about-frame-center .icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }
.about-frame-center p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--green-700);
  line-height: 1.6;
}

.about-copy .section-title { margin-bottom: 1.5rem; }
.about-copy .lead {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.social-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.22s;
}
.social-pill.yt { background: #FEE2E2; color: #991B1B; }
.social-pill.yt:hover  { background: #EF4444; color: white; }
.social-pill.fb { background: #DBEAFE; color: #1E40AF; }
.social-pill.fb:hover  { background: #3B82F6; color: white; }
.social-pill.wa { background: #D1FAE5; color: #065F46; }
.social-pill.wa:hover  { background: #10B981; color: white; }

/* ─── Product Grid ───────────────────────────────────── */
.products-bg { background: var(--cream-dark); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 560px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 900px)  { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* Product Card */
.product-card {
  background: var(--white);
  border: 1px solid rgba(66, 94, 56, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(30, 41, 27, 0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(30, 41, 27, 0.14);
  border-color: rgba(66, 94, 56, 0.18);
}

.product-thumb {
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.92), rgba(255,255,255,0) 55%),
    linear-gradient(160deg, #f7f0e4 0%, #edf2e8 100%);
  position: relative;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}
.product-card:hover .product-thumb img { transform: scale(1.07); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px; font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.06em;
}
.badge-new  { background: var(--green-50); color: var(--green-700); }
.badge-farm { background: var(--terra-50); color: var(--terra-800); }

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}
.product-cat {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 4px;
}
.product-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 2px;
  color: var(--charcoal);
  line-height: 1.18;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.product-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 6px;
}
.product-price .original {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-left: 6px;
}
.product-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  background: var(--green-800);
  color: var(--cream);
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: auto;
}
.product-action:hover {
  background: var(--green-900);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(45, 72, 37, 0.22);
}

/* Skeleton */
@keyframes shimmer {
  from { background-position: -600px 0; }
  to   { background-position:  600px 0; }
}
.product-skeleton {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.product-skeleton::after {
  content: '';
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg,
    var(--gray-100) 0px,
    var(--gray-200) 40%,
    var(--gray-100) 80%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

/* Empty state */
.products-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-400);
}
.products-empty .emoji { font-size: 3rem; margin-bottom: 1rem; }
.products-empty p { font-size: 15px; }

/* ─── YouTube Section ────────────────────────────────── */
.yt-bg { background: var(--charcoal); }

.yt-bg .section-eyebrow { background: rgba(255,255,255,0.08); color: var(--cream); }
.yt-bg .section-title   { color: var(--cream); }

.yt-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--gray-800);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-xl);
}
.yt-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}

.yt-cta { text-align: center; }
.yt-bg .btn-outline { color: var(--cream); border-color: rgba(255,255,255,0.4); }
.yt-bg .btn-outline:hover { background: var(--cream); color: var(--charcoal); }

/* ─── Contact CTA ────────────────────────────────────── */
.cta-bg { background: var(--green-800); position: relative; overflow: hidden; }

/* Decorative circle */
.cta-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -200px; right: -200px;
}

.cta-inner {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--cream); margin-bottom: 1rem; }
.cta-inner p  { color: var(--green-100); font-size: 1.05rem; margin-bottom: 2.5rem; font-weight: 300; line-height: 1.8; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 599px) {
  /* Stack CTA buttons vertically — prevents long email address from overflowing */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 360px; justify-content: center; }
}

.cta-bg .btn-primary {
  background: var(--cream);
  color: var(--green-800);
  border-color: var(--cream);
}
.cta-bg .btn-primary:hover {
  background: var(--white); border-color: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-bg .btn-ghost {
  color: var(--cream);
  border-color: rgba(255,255,255,0.3);
}
.cta-bg .btn-ghost:hover { border-color: var(--cream); background: rgba(255,255,255,0.1); }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
  flex-shrink: 0; /* Sticky footer: don't let footer shrink in flex body */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.6fr 2fr; }
}

.footer-brand .logo-word {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600;
  color: var(--cream);
  display: block; margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 14px; color: var(--gray-400);
  max-width: 260px; line-height: 1.75; font-weight: 300;
}

.footer-socials { display: flex; gap: 10px; margin-top: 1.5rem; flex-wrap: wrap; }
.fsocial {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.fsocial svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.fsocial:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.fsocial.yt { background: #FF0000; }
.fsocial.fb { background: #1877F2; }
.fsocial.wa { background: #25D366; }
.fsocial.em { background: var(--green-600); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile — 3 cols would be too cramped */
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-600); margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px; color: var(--gray-400);
  font-weight: 300; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: var(--gray-400); }

@media (max-width: 767px) {
  /* Extra bottom padding clears the fixed bottom nav + iOS home-indicator safe area */
  .footer { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 1rem); }
}

/* ─── Forms ──────────────────────────────────────────── */
.form-group  { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.25rem; }
.form-label  { font-size: 13px; font-weight: 500; color: var(--gray-800); }

.form-input {
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: 15px; color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%; outline: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(74,122,77,0.12);
}
.form-input::placeholder { color: var(--gray-400); }

.form-hint  { font-size: 12px; color: var(--gray-400); }
.form-error { font-size: 12px; color: #DC2626; }

/* ─── Page Content (non-hero pages) ─────────────────── */
.page-top {
  padding-top: 1.5rem;
  padding-bottom: calc(var(--bottom-nav-h) + 2rem);
  min-height: 100vh;
}
@media (min-width: 768px) { .page-top { padding-bottom: 3.5rem; } }

/* ─── Auth Card ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--pad) calc(var(--bottom-nav-h) + 2rem);
}

.auth-card {
  width: 100%; max-width: 440px;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.auth-card .subtitle {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.auth-divider {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  margin: 1.5rem 0;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px; background: var(--gray-100);
}
.auth-divider span {
  position: relative;
  background: var(--white);
  padding: 0 12px;
}

/* ─── Toast Notification ─────────────────────────────── */
.sp-toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--charcoal);
  color: var(--cream);
  padding: 12px 26px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.4s var(--ease-out);
  white-space: nowrap;
  pointer-events: none;
}
.sp-toast--show { transform: translateX(-50%) translateY(0); }
.sp-toast--success { background: var(--green-800); }
.sp-toast--error   { background: #DC2626; }

@media (min-width: 768px) { .sp-toast { bottom: 24px; } }

/* ─── Utility ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--gray-600); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Divider ────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--gray-100);
  margin: 2rem 0;
}

/* ─── Loading Spinner ────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
