:root {
  --green: #0f9d6c;
  --green-d: #0b7d55;
  --ink: #16241f;
  --muted: #5b6b64;
  --bg: #f4f8f6;
  --card: #ffffff;
  --line: #e3ece8;
  --accent: #ffb000;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(16, 60, 45, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.container { width: min(1140px, 92%); margin: 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); }
.btn-ghost { background: #fff; color: var(--green-d); border-color: var(--green); }
.btn-ghost:hover { background: #eafaf3; }
.btn-line { background: #06c755; color: #fff; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-tel { background: var(--ink); color: #fff; }
.btn-line:hover, .btn-fb:hover, .btn-tel:hover { filter: brightness(1.06); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.brand-mark {
  background: var(--green); color: #fff; font-weight: 800; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 10px;
}
.brand-text { font-weight: 600; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--green-d); }
.nav-wrap .btn-line { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* Hero */
.hero { background: linear-gradient(160deg, #eafaf3 0%, #f4f8f6 60%); padding: 56px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--green-d); font-weight: 700; letter-spacing: .5px; margin: 0 0 8px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.15; margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 26px 0 0; color: var(--green-d); font-weight: 600; }
.hero-art img { border-radius: 24px; box-shadow: var(--shadow); }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 6px; text-align: center; }
.section-sub { color: var(--muted); text-align: center; margin: 0 0 32px; }

/* Categories */
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; box-shadow: var(--shadow); transition: .2s; cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--green); }
.cat-card img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 14px; border-radius: 14px; }
.cat-card h3 { margin: 0 0 4px; font-size: 20px; }
.cat-card p { color: var(--muted); margin: 0; font-size: 14px; }

/* Catalog */
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.cat-chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 8px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: .15s; font-family: inherit; font-size: 14px;
}
.cat-chip:hover { border-color: var(--green); color: var(--green-d); }
.cat-chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: .2s;
}
.prod-card:hover { transform: translateY(-4px); }
.prod-thumb { aspect-ratio: 1/1; background: #eef5f1; overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-code { font-size: 12px; color: var(--green-d); font-weight: 700; }
.prod-name { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.35; }
.prod-desc { font-size: 13px; color: var(--muted); margin: 0; flex: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.prod-price { font-weight: 800; color: var(--ink); font-size: 17px; }
.prod-price small { font-weight: 500; color: var(--muted); font-size: 12px; }
.prod-cart { background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 7px 12px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 13px; }
.prod-cart:hover { background: var(--green-d); }

/* Why */
.why { background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.why-ic { font-size: 36px; margin-bottom: 8px; }
.why-card h3 { margin: 0 0 6px; font-size: 18px; }
.why-card p { color: var(--muted); margin: 0; font-size: 14px; }

/* Contact */
.contact { background: linear-gradient(160deg, #0f9d6c 0%, #0b7d55 100%); color: #fff; }
.contact .section-title, .contact .section-sub { color: #fff; }
.contact-wrap { text-align: center; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* Footer */
.site-footer { background: var(--ink); color: #cfe0d8; padding: 24px 0; text-align: center; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 14px 20px; gap: 14px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-wrap .btn-line { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .cat-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-grid { grid-template-columns: 1fr; }
}
