/* =========================================================
   ppgrowseeds — Design System
   Style: Organic Biophilic + Bold Typography
   Fonts: Kanit (display) / Sarabun (body) — Thai-ready
   Accessible, large-type, elderly-friendly
   ========================================================= */

:root {
  /* Brand greens */
  --green-900: #0F3D24;
  --green-800: #14532D;
  --green-700: #15803D;
  --green-600: #16A34A;
  --green-500: #22C55E;
  --green-300: #86EFAC;
  --green-100: #DCFCE7;
  --green-50:  #F0FDF4;

  /* Accents */
  --lime:   #84CC16;
  --gold:   #CA8A04;
  --gold-light: #FACC15;
  --cream:  #F7F9F0;
  --soil:   #6B4F3A;

  /* Neutrals */
  --ink:    #14532D;   /* primary text on light */
  --ink-soft: #3F6B50;
  --muted:  #5B7765;
  --line:   #E3EBE3;
  --white:  #FFFFFF;

  /* Semantic */
  --bg:     #F7FBF4;
  --surface:#FFFFFF;
  --primary:var(--green-700);
  --primary-dark:var(--green-800);
  --cta:    var(--gold);

  /* Radii & shadow */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-full: 999px;

  --shadow-sm: 0 2px 8px rgba(20,83,45,.06);
  --shadow-md: 0 10px 30px rgba(20,83,45,.10);
  --shadow-lg: 0 24px 60px rgba(20,83,45,.16);

  /* Layout */
  --maxw: 1200px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Sarabun', system-ui, -apple-system, sans-serif;
  font-size: 18px;              /* large base for readability */
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Kanit', 'Sarabun', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--green-800);
  margin: 0;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 88px; }
.section-sm { padding-block: 56px; }
@media (max-width: 700px) { .section { padding-block: 52px; } .section-sm { padding-block: 38px; } }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--green-800); color: #fff; padding: 12px 20px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 15px 28px;
  min-height: 54px;            /* large touch target */
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }

.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); box-shadow: var(--shadow-md); }

.btn-cta { background: var(--gold); color: #1c1404; }
.btn-cta:hover { background: var(--gold-light); box-shadow: var(--shadow-md); }

.btn-dark { background: var(--green-900); color: #fff; }
.btn-dark:hover { background: #0a2c19; }

.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-700); }
.btn-ghost:hover { background: var(--green-100); }

.btn-white { background: #fff; color: var(--green-800); border-color: var(--line); }
.btn-white:hover { background: var(--green-50); border-color: var(--green-300); }

.btn-block { width: 100%; }
.btn-lg { font-size: 1.15rem; min-height: 60px; padding: 18px 34px; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Kanit', sans-serif; font-weight: 500;
  font-size: .95rem;
  background: var(--green-100); color: var(--green-800);
  padding: 7px 16px; border-radius: var(--r-full);
}
.pill-gold { background: #FEF3C7; color: #92660A; }
.pill-dark { background: var(--green-800); color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Kanit', sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .82rem; color: var(--green-700);
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block;
}

/* ---------- Top bar (visitor count) ---------- */
.topbar {
  background: linear-gradient(90deg, var(--green-800), var(--green-700));
  color: #EAF5E5; font-family: 'Sarabun', sans-serif; font-size: .92rem;
}
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tb-item { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.tb-item svg { width: 17px; height: 17px; opacity: .9; flex: none; }
.tb-visits b {
  color: #fff; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: .02em; padding: 0 2px;
}
.tb-note { color: #C7E6BA; }
@media (max-width: 700px) {
  .topbar { font-size: .82rem; }
  .topbar-inner { justify-content: center; }
  .tb-note { display: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,251,244,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.4rem;
  color: var(--green-800);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--green-700);
  display: grid; place-items: center; color: #fff; flex: none;
}
.brand-mark svg { width: 26px; height: 26px; }
.footer .brand { display: flex; align-items: center; }
.footer .brand-mark { display: inline-flex; width: auto; height: auto; background: none; border-radius: 0; }
.footer .brand-mark img { width: 56px; height: 58px; object-fit: contain; }
.brand-logo { width: 50px; height: 50px; object-fit: contain; flex: none; }
.brand span b { color: var(--green-600); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: 'Kanit', sans-serif; font-weight: 500;
  padding: 10px 16px; border-radius: var(--r-full); color: var(--green-800);
  transition: background-color .2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--green-100); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  width: 50px; height: 50px; border-radius: var(--r-full);
  display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--green-800);
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--green-50); border-color: var(--green-300); }
.icon-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--gold); color: #1c1404; font-weight: 700; font-size: .78rem;
  border-radius: var(--r-full); display: grid; place-items: center;
  font-family: 'Kanit', sans-serif; border: 2px solid var(--bg);
}
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 50px; height: 50px; border-radius: var(--r-full);
    background: #fff; border: 1px solid var(--line); cursor: pointer; color: var(--green-800);
  }
  .nav-toggle svg { width: 26px; height: 26px; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 16px; right: 16px; top: calc(var(--nav-h) - 4px);
    background: #fff; padding: 14px; border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  }
  .nav-links.open a { padding: 14px 18px; font-size: 1.1rem; }
  .desktop-only { display: none !important; }
}

/* fit the header on small phones (was overflowing the viewport) */
@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .nav { gap: 10px; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand-logo { width: 40px; height: 40px; }
  .nav-actions { gap: 8px; }
  .icon-btn, .nav-toggle { width: 44px; height: 44px; }
  .icon-btn svg, .nav-toggle svg { width: 22px; height: 22px; }
  .cart-count { min-width: 19px; height: 19px; font-size: .7rem; }
}

/* ---------- Mobile bottom navigation bar ---------- */
.bottom-nav { display: none; }
@media (max-width: 940px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(160%) blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(8,40,22,.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 7px 0 5px; border-radius: 12px;
    font-family: 'Kanit', sans-serif; font-size: .72rem; font-weight: 500;
    color: var(--muted); line-height: 1;
  }
  .bottom-nav a svg { width: 24px; height: 24px; stroke-width: 2; }
  .bottom-nav .bn-ico { position: relative; display: inline-flex; }
  .bottom-nav .cart-count { top: -5px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; font-size: .62rem; border-width: 1.5px; }
  .bottom-nav a.active { color: var(--green-700); }
  .bottom-nav a.active svg { color: var(--green-700); }
  .bottom-nav a:active { background: var(--green-50); }
  /* nav now lives at the bottom — drop the hamburger and lift fixed UI clear of the bar */
  .nav-toggle { display: none !important; }
  body { padding-bottom: 66px; }
  .toast { bottom: 84px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 56px 80px; }
.hero-bgword {
  position: absolute; right: -2%; top: 8%;
  font-family: 'Kanit', sans-serif; font-weight: 800;
  font-size: clamp(120px, 26vw, 360px); line-height: .8;
  color: var(--green-100); opacity: .7; z-index: 0; pointer-events: none;
  letter-spacing: -.03em;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800; color: var(--green-800);
}
.hero h1 .leaf-word { color: var(--green-600); position: relative; }
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 30em; margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; align-items: center; }
.hero-trust .t-item { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink-soft); }
.hero-trust .t-item svg { width: 22px; height: 22px; color: var(--green-600); flex: none; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; z-index: 2;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 120% at 80% 0%, #BBF7D0 0%, rgba(187,247,208,0) 55%),
    linear-gradient(160deg, #DCFCE7 0%, #BBF7D0 60%, #A7E8B5 100%);
  aspect-ratio: 4/4.2; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #fff;
}
.hero-scene { position: absolute; inset: 0; }

/* rotating circular badge */
.spin-badge {
  position: absolute; z-index: 5; left: -34px; bottom: 46px;
  width: 132px; height: 132px;
}
.spin-badge .ring { animation: spin 16s linear infinite; transform-origin: 50% 50%; }
.spin-badge .center {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.spin-badge .center i {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-800); color: var(--gold-light);
  display: grid; place-items: center;
}
.spin-badge .center i svg { width: 28px; height: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-tag {
  position: absolute; z-index: 6; right: -10px; top: 36px;
  background: #fff; border-radius: var(--r-lg); padding: 14px 18px;
  box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line);
}
.hero-tag .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.hero-tag .ico svg { width: 24px; height: 24px; }
.hero-tag b { font-family: 'Kanit', sans-serif; display: block; color: var(--green-800); }
.hero-tag small { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .spin-badge { left: auto; right: 12px; bottom: 12px; }
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--green-800); color: #fff;
  border-radius: var(--r-lg); padding: 34px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  box-shadow: var(--shadow-md);
}
.stat b {
  font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 2.4rem;
  color: var(--gold-light); display: block; line-height: 1;
}
.stat span { color: #C9E8D4; font-size: .98rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px; } }
@media (max-width: 480px) { .stats { padding: 22px 20px; gap: 18px 14px; } .stat b { font-size: 1.85rem; } .stat span { font-size: .9rem; } }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin-top: 14px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
@media (max-width: 700px) { .sec-head { margin-bottom: 28px; } .sec-head-row { margin-bottom: 28px; gap: 14px; } .sec-head p, .sec-head-row p { font-size: 1rem; } }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; text-decoration: none;
  transition: transform .25s ease, border-color .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-5px); border-color: var(--green-300); box-shadow: var(--shadow-md); }
.cat-thumb { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--green-50); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cat-card:hover .cat-thumb img { transform: scale(1.07); }
.cat-body { padding: 16px 20px 20px; }
.cat-card h3 { font-size: 1.25rem; margin: 0 0 4px; color: var(--green-900); }
.cat-card small { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .cat-body { padding: 12px 14px 16px; } .cat-card h3 { font-size: 1.05rem; } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr 1fr; gap: 14px; } }

.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); }
.product-media {
  position: relative; aspect-ratio: 1/1; display: grid; place-items: center;
  overflow: hidden;
}
.product-media svg.veg { width: 64%; height: 64%; }
.product-flag {
  position: absolute; top: 12px; left: 12px;
  font-family: 'Kanit', sans-serif; font-weight: 600; font-size: .78rem;
  background: var(--gold); color: #1c1404; padding: 5px 12px; border-radius: var(--r-full);
}
.product-flag.sale { background: #DC2626; color: #fff; }
.product-flag.new { background: var(--green-600); color: #fff; }
.fav {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9);
  border: none; display: grid; place-items: center; cursor: pointer; color: var(--green-700);
}
.fav:hover { background: #fff; color: #DC2626; }
.fav svg { width: 22px; height: 22px; }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body .p-cat { font-size: .82rem; color: var(--muted); font-family: 'Kanit', sans-serif; }
.product-body h3 { font-size: 1.12rem; line-height: 1.25; }
.product-rate { display: flex; align-items: center; gap: 5px; color: var(--gold); font-size: .9rem; }
.product-rate span { color: var(--muted); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; }
.price { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--green-800); }
.price .old { font-size: .95rem; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-right: 6px; }
.add-btn {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  background: var(--green-700); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center; transition: background-color .2s, transform .15s;
}
.add-btn:hover { background: var(--green-800); }
.add-btn:active { transform: scale(.92); }
.add-btn svg { width: 26px; height: 26px; }
.buy-btn {
  margin-top: 12px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border: none; border-radius: var(--r-full); cursor: pointer;
  background: var(--green-600); color: #fff;
  font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 1.02rem;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.buy-btn:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(21,128,61,.25); }
.buy-btn:active { transform: translateY(0); }
.buy-btn svg { width: 19px; height: 19px; }

/* ---------- Buy modal (product summary) ---------- */
.buy-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.buy-modal.open { display: flex; }
.buy-modal-backdrop { position: absolute; inset: 0; background: rgba(6,40,20,.6); backdrop-filter: blur(4px); animation: qrFade .25s ease; }
.buy-modal.closing .buy-modal-backdrop { animation: qrFade .2s ease reverse forwards; }
.buy-modal-card {
  position: relative; z-index: 1; width: min(440px, 94vw); background: #fff;
  border-radius: 24px; padding: 30px 28px 26px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
  animation: qrBubbleIn .45s cubic-bezier(.18,.9,.32,1.25);
}
.buy-modal.closing .buy-modal-card { animation: qrBubbleOut .2s ease forwards; }
.buy-modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 50%; border: none; cursor: pointer; background: var(--green-50);
  color: var(--green-900); display: grid; place-items: center; transition: background .15s, transform .15s;
}
.buy-modal-close:hover { background: var(--green-100); transform: rotate(90deg); }
.buy-modal-close svg { width: 20px; height: 20px; }
.buy-modal-kicker {
  display: inline-flex; align-items: center; gap: 6px; color: var(--green-700);
  font-family: 'Kanit',sans-serif; font-weight: 600; font-size: .95rem; margin-bottom: 18px;
}
.buy-modal-kicker svg { width: 18px; height: 18px; }
.buy-modal-item { display: flex; align-items: center; gap: 16px; text-align: left; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 18px; padding: 14px; margin-bottom: 22px; }
.buy-modal-thumb { width: 90px; height: 90px; border-radius: 14px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--green-100); }
.buy-modal-thumb svg.veg { width: 72%; height: 72%; }
.buy-modal-info { min-width: 0; }
.buy-modal-info .bm-cat { font-family: 'Kanit',sans-serif; font-size: .82rem; color: var(--muted); }
.buy-modal-info h4 { font-family: 'Kanit',sans-serif; font-size: 1.15rem; color: var(--green-900); margin: 2px 0 6px; line-height: 1.3; }
.buy-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buy-modal-actions .btn { width: 100%; padding: 14px 12px; }
.buy-modal-actions .btn svg { width: 18px; height: 18px; }
@media (max-width: 420px){ .buy-modal-actions { grid-template-columns: 1fr; } }

/* qty stepper */
.qty { display: inline-flex; align-items: center; border: 2px solid var(--green-200, #BBF7D0); border-radius: var(--r-full); background: var(--green-50); }
.qty button {
  width: 46px; height: 46px; border: none; background: transparent; cursor: pointer;
  font-size: 1.5rem; color: var(--green-800); display: grid; place-items: center;
}
.qty button:hover { color: var(--green-600); }
.qty input {
  width: 48px; text-align: center; border: none; background: transparent;
  font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--green-800);
}

/* product media tints */
.tint-tomato  { background: linear-gradient(160deg,#FEE2E2,#FECACA); }
.tint-carrot  { background: linear-gradient(160deg,#FFEDD5,#FED7AA); }
.tint-leaf    { background: linear-gradient(160deg,#DCFCE7,#BBF7D0); }
.tint-chili   { background: linear-gradient(160deg,#FEE2E2,#FCA5A5); }
.tint-cucumber{ background: linear-gradient(160deg,#ECFCCB,#D9F99D); }
.tint-pumpkin { background: linear-gradient(160deg,#FFEDD5,#FDBA74); }
.tint-eggplant{ background: linear-gradient(160deg,#EDE9FE,#DDD6FE); }
.tint-corn    { background: linear-gradient(160deg,#FEF9C3,#FDE68A); }
.tint-herb    { background: linear-gradient(160deg,#D1FAE5,#A7F3D0); }
.tint-flower  { background: linear-gradient(160deg,#FCE7F3,#FBCFE8); }
.tint-soil    { background: linear-gradient(160deg,#EFE6DD,#E0D2C3); }

/* ---------- Feature / why us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
}
.feature .ico { width: 60px; height: 60px; border-radius: 16px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Wholesale banner ---------- */
.banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-700) 70%, var(--green-600));
  border-radius: var(--r-xl); padding: 56px; color: #fff;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
}
.banner h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.banner-title { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.18; }
.banner p { color: #CFEBD8; font-size: 1.12rem; margin: 16px 0 26px; max-width: 34em; }
.banner-deco { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 300px; height: 320px; object-fit: contain; opacity: .2; pointer-events: none; }
.banner-list { display: grid; gap: 12px; }
.banner-list li { display: flex; gap: 12px; align-items: center; list-style: none; }
.banner-list li svg { width: 26px; height: 26px; color: var(--gold-light); flex: none; }
.banner ul { padding: 0; margin: 0; }
@media (max-width: 820px) { .banner { grid-template-columns: 1fr; padding: 36px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green-100); color: var(--green-800);
  font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.8rem;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.tst {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.tst .stars { color: var(--gold); display: flex; gap: 2px; }
.tst .stars svg { width: 20px; height: 20px; }
.tst p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.tst .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tst .who .av { width: 46px; height: 46px; border-radius: 50%; background: var(--green-200,#BBF7D0); display: grid; place-items: center; font-family: 'Kanit',sans-serif; font-weight: 700; color: var(--green-800); }
.tst .who b { font-family: 'Kanit',sans-serif; color: var(--green-800); display: block; }
.tst .who small { color: var(--muted); }
@media (max-width: 860px){ .tst-grid { grid-template-columns: 1fr; } }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .25s ease, box-shadow .2s, border-color .2s; }
.bcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.bcard .thumb { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; }
.bcard .thumb svg { width: 36%; height: 36%; color: rgba(255,255,255,.92); transition: transform .4s ease; }
.bcard:hover .thumb svg { transform: scale(1.09); }
.bcard .b-cat { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--green-800); font-family: 'Kanit',sans-serif; font-weight: 600; font-size: .8rem; padding: 4px 12px; border-radius: var(--r-full); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.bcard .b-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bcard .b-meta { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--muted); font-family: 'Kanit',sans-serif; }
.bcard .b-meta svg { width: 15px; height: 15px; flex: none; }
.bcard h3 { font-size: 1.2rem; line-height: 1.35; color: var(--green-900); margin: 0; }
.bcard .read { margin-top: auto; padding-top: 4px; font-family: 'Kanit',sans-serif; font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bcard .read svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.bcard:hover .read svg { transform: translateX(4px); }
@media (max-width: 860px){ .blog-grid { grid-template-columns: 1fr; } }

/* ---------- LINE CTA ---------- */
.line-cta {
  background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: var(--r-xl); padding: 48px 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.line-cta-text h2 { margin: 12px 0 0; }
.line-cta-text p { color: var(--muted); max-width: 40em; margin: 14px 0 28px; font-size: 1.08rem; }
.btn-line { background: #06C755; color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.btn-line:hover { background: #05b34c; }
.btn-line .btn-ico { display: inline-flex; }
.btn-line svg { width: 24px; height: 24px; }
.line-cta-qr {
  position: relative; background: #fff; border-radius: var(--r-lg); padding: 18px;
  text-align: center; box-shadow: var(--shadow-md); flex: none;
  margin-right: 60px; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.line-cta-qr:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(0,0,0,.16); }
.line-cta-qr:focus-visible { outline: 3px solid var(--green-500); outline-offset: 4px; }
.line-cta-qr img { width: 190px; height: 190px; display: block; margin: 0 auto; border-radius: 10px; }
.line-cta-qr small { display: block; margin-top: 12px; color: var(--muted); font-family: 'Kanit',sans-serif; font-size: .9rem; line-height: 1.3; }
.line-cta-qr small b { display: block; color: var(--green-800); font-size: .98rem; margin-bottom: 0; line-height: 1.4; }
@media (max-width: 720px){
  .line-cta { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: center; padding: 40px 28px; }
  .line-cta-text p { margin-inline: auto; }
  .line-cta-qr { margin-right: 0; }
}

/* ---------- QR lightbox (bubble pop) ---------- */
.qr-lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.qr-lightbox.open { display: flex; }
.qr-lightbox-backdrop { position: absolute; inset: 0; background: rgba(6,40,20,.62); backdrop-filter: blur(4px); animation: qrFade .25s ease; }
.qr-lightbox.closing .qr-lightbox-backdrop { animation: qrFade .2s ease reverse forwards; }
.qr-lightbox-card {
  position: relative; z-index: 1; background: #fff; border-radius: 26px;
  padding: 30px 30px 26px; max-width: 92vw; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: qrBubbleIn .5s cubic-bezier(.18,.9,.32,1.25);
}
.qr-lightbox.closing .qr-lightbox-card { animation: qrBubbleOut .2s ease forwards; }
.qr-lightbox-img { width: min(74vw, 360px); height: auto; display: block; border-radius: 16px; }
.qr-lightbox-cap { margin-top: 18px; font-family: 'Kanit',sans-serif; }
.qr-lightbox-cap b { display: block; font-size: 1.35rem; color: var(--green-800); }
.qr-lightbox-cap span { color: var(--muted); font-size: 1rem; }
.qr-lightbox-close {
  position: absolute; top: -16px; right: -16px; width: 46px; height: 46px;
  border-radius: 50%; border: none; cursor: pointer; background: #fff;
  color: var(--green-900); box-shadow: var(--shadow-md); display: grid; place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.qr-lightbox-close:hover { background: var(--green-50); transform: rotate(90deg); }
.qr-lightbox-close svg { width: 22px; height: 22px; }
.qr-bubbles { position: absolute; inset: -40px; pointer-events: none; overflow: visible; }
.qr-bubbles span {
  position: absolute; bottom: 6%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(6,199,85,.4));
  animation: qrBubbleFloat 1.8s ease-out forwards;
}
@keyframes qrFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qrBubbleIn {
  0%   { transform: scale(.2); opacity: 0; }
  55%  { transform: scale(1.08); opacity: 1; }
  78%  { transform: scale(.97); }
  100% { transform: scale(1); }
}
@keyframes qrBubbleOut { to { transform: scale(.8); opacity: 0; } }
@keyframes qrBubbleFloat {
  0%   { transform: translateY(0) scale(.4); opacity: 0; }
  25%  { opacity: .9; }
  100% { transform: translateY(-180px) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .qr-lightbox-card, .qr-lightbox-backdrop, .qr-bubbles span { animation: none !important; }
}

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #CDE7D6; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-block: 64px; }
.footer h4 { color: #fff; font-family: 'Kanit',sans-serif; font-size: 1.05rem; margin-bottom: 18px; }
.footer a { color: #BBD9C6; display: block; padding: 6px 0; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .f-about { color: #9FC4AE; max-width: 30em; }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.f-social a:hover { background: var(--green-700); }
.f-social svg { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #9FC4AE; font-size: .92rem; }
.f-pay { display: flex; gap: 8px; align-items: center; }
.f-pay span { background: rgba(255,255,255,.1); padding: 5px 12px; border-radius: 8px; font-family: 'Kanit',sans-serif; font-size: .8rem; }
@media (max-width: 860px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 540px){ .footer-top { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.bg-cream { background: var(--cream); }
.bg-green-50 { background: var(--green-50); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px){ .grid-2 { grid-template-columns: 1fr; gap: 28px; } }

/* breadcrumb */
.crumb { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; font-family: 'Kanit',sans-serif; padding-block: 20px; }
.crumb a:hover { color: var(--green-700); }
.crumb svg { width: 16px; height: 16px; }

/* page hero (inner pages) */
.page-hero { background: var(--green-50); border-bottom: 1px solid var(--green-100); padding-block: 30px 56px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: var(--muted); font-size: 1.12rem; margin-top: 12px; max-width: 42em; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(120px);
  background: var(--green-800); color: #fff; padding: 14px 22px; border-radius: var(--r-full);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; z-index: 300;
  font-family: 'Kanit',sans-serif; transition: transform .35s cubic-bezier(.2,.8,.2,1); max-width: 90vw;
}
.toast svg { width: 22px; height: 22px; color: var(--gold-light); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   Photo hero (homepage) — full-bleed image, overlay, centered
   ============================================================ */
.hero-photo {
  position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; isolation: isolate;
}
.hero-photo .bg {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 38%;
  transform: scale(1.04); animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-photo .overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,40,22,.58) 0%, rgba(8,40,22,.28) 32%, rgba(8,40,22,.46) 68%, rgba(8,40,22,.82) 100%);
}
.hero-photo .hp-inner { max-width: 980px; padding: 150px 24px 110px; color: #fff; }
.hero-photo .kicker { color: #FDE68A; justify-content: center; font-size: .95rem; letter-spacing: .14em; margin-bottom: 6px; }
.hero-photo .kicker::before { background: var(--gold-light); }
.hero-photo h1 {
  color: #fff; font-weight: 800; font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: 1.04;
  text-shadow: 0 2px 34px rgba(0,0,0,.5);
}
.hero-photo h1 .accent { color: var(--green-300); }
.hero-photo .hp-sub {
  font-size: clamp(1.05rem, 2vw, 1.4rem); max-width: 33em; margin: 22px auto 0; color: #EAF7EE;
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.hero-photo .hp-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-photo .hp-trust { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-photo .hp-trust .t-item { display: flex; align-items: center; gap: 9px; color: #EAF7EE; font-weight: 500; }
.hero-photo .hp-trust svg { width: 22px; height: 22px; color: var(--green-300); flex: none; }
.hero-photo .scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; opacity: .9; display: grid; place-items: center; gap: 7px; }
.hero-photo .scroll-hint .mouse { width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative; }
.hero-photo .scroll-hint .mouse::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: #fff; border-radius: 4px; transform: translateX(-50%); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%,12px); } }
@media (max-width: 700px) { .hero-photo { min-height: 86vh; } .hero-photo .hp-inner { padding: 110px 20px 96px; } }

/* staggered entrance (framer-motion equivalent) */
.stagger > * { opacity: 0; transform: translateY(22px); animation: fadeUp .6s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: .30s; }
.stagger > *:nth-child(2) { animation-delay: .48s; }
.stagger > *:nth-child(3) { animation-delay: .66s; }
.stagger > *:nth-child(4) { animation-delay: .84s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Brand marquee ---------- */
.marquee { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marqueeRight 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.brand-card {
  flex: none; width: 240px; height: 140px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s; padding: 20px;
}
.brand-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.brand-card img { max-height: 96px; max-width: 200px; object-fit: contain; }

/* ---------- Fly-to-cart bubble + pop ---------- */
.fly-bubble {
  position: fixed; z-index: 400; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-100); border: 2px solid var(--green-300);
  display: grid; place-items: center; pointer-events: none; box-shadow: 0 8px 22px rgba(20,83,45,.30);
}
.fly-bubble svg { width: 30px; height: 30px; }
.pop { position: fixed; z-index: 401; pointer-events: none; width: 0; height: 0; }
.pop i { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; }
.cart-bump { animation: cartBump .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes cartBump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.28); } }
