/* Product catalog (/products) — the visual language of the approved Concept A design. */
:root {
  --zc-green: #245C45; --zc-green-dark: #1B4735; --zc-ink: #26352D; --zc-text: #46564D; --zc-muted: #5A6860;
  --zc-line: #E0E7E2; --zc-line-strong: #DCE4DE; --zc-soft: #F1F4F2; --zc-mint: #E8F3EB; --zc-white: #FFFFFF;
  --zc-sale-bg: #FBF1DD; --zc-sale: #7A5A12;
  --zc-font: Anuphan, Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --zc-num: Manrope, Anuphan, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zc-white); color: var(--zc-ink); font: 400 16px/1.6 var(--zc-font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.zc-skip { position: absolute; left: -999px; top: 8px; background: var(--zc-green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.zc-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #7FB89A; outline-offset: 2px; }
.zc-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Header / footer */
.zc-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--zc-line); backdrop-filter: blur(6px); }
.zc-header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.zc-brand img { height: 48px; width: auto; }
.zc-nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; }
.zc-nav a { text-decoration: none; padding: 10px 0; color: var(--zc-text); }
.zc-nav a[aria-current="page"], .zc-nav a:hover { color: var(--zc-green); }
.zc-footer { margin-top: 72px; background: var(--zc-ink); color: #D3DED6; font-size: 14px; }
.zc-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.zc-footer strong { color: #fff; }
.zc-footer a { color: #fff; }

/* Buttons, chips, badges */
.zc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.zc-btn--primary { background: var(--zc-green); color: #fff; }
.zc-btn--primary:hover { background: var(--zc-green-dark); }
.zc-btn--ghost { border-color: var(--zc-line-strong); color: var(--zc-ink); background: #fff; }
.zc-btn--ghost:hover { border-color: var(--zc-green); color: var(--zc-green); }
.zc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; font-size: 14px; }
.zc-chip { display: inline-flex; gap: 6px; align-items: center; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--zc-line-strong); background: #fff; text-decoration: none; }
.zc-chip.is-active { background: var(--zc-green); border-color: var(--zc-green); color: #fff; font-weight: 600; }
.zc-chip__n { font: 600 12px/1 var(--zc-num); opacity: .7; }
.zc-badge { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--zc-green); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }

/* Headings */
.zc-section { padding-top: clamp(28px, 5vw, 56px); }
.zc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--zc-muted); margin-bottom: 20px; }
.zc-crumbs a { color: var(--zc-muted); }
.zc-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--zc-green); }
.zc-h1 { margin: 12px 0 0; font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.25; }
.zc-h1--product { font-size: clamp(24px, 2.8vw, 36px); margin-top: 6px; }
.zc-h2 { font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 16px; }
.zc-empty { color: var(--zc-muted); }

/* Product cards */
.zc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.zc-card { border: 1px solid var(--zc-line); border-radius: 22px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.zc-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #F4F8F4, #E3EDE5); }
.zc-card__img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.zc-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.zc-card__brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--zc-muted); text-transform: uppercase; }
.zc-card__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.zc-card__title a { text-decoration: none; }
.zc-card__title a:hover { color: var(--zc-green); }
.zc-card__cat { font-size: 13.5px; color: var(--zc-text); }
.zc-card .zc-price { margin-top: auto; padding-top: 12px; }
.zc-card .zc-btn { margin-top: 10px; }
.zc-noimg { display: flex; align-items: center; justify-content: center; color: var(--zc-muted); font-size: 13px; width: 100%; height: 100%; }

/* Prices */
.zc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.zc-price__now { font: 800 22px/1.2 var(--zc-num); color: var(--zc-ink); }
.zc-price--detail .zc-price__now { font-size: clamp(28px, 3vw, 36px); color: var(--zc-green); }
.zc-price__was { font: 500 14px/1 var(--zc-num); color: var(--zc-muted); }
.zc-price__off { font: 700 12.5px/1 var(--zc-num); color: var(--zc-sale); background: var(--zc-sale-bg); padding: 5px 9px; border-radius: 999px; }
.zc-price__ask { font-weight: 700; color: var(--zc-green); }

/* Detail page */
.zc-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.zc-gallery__main { margin: 0; border: 1px solid var(--zc-line); border-radius: 22px; background: linear-gradient(160deg, #F7FAF7, #EAF1EB); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.zc-gallery__img { width: 100%; height: 100%; object-fit: contain; padding: clamp(10px, 2vw, 24px); }
.zc-gallery__thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.zc-thumb { display: block; aspect-ratio: 1 / 1; border: 2px solid var(--zc-line); border-radius: 14px; background: var(--zc-soft); overflow: hidden; }
.zc-thumb.is-active, .zc-thumb:hover { border-color: var(--zc-green); }
.zc-thumb__img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.zc-info { display: flex; flex-direction: column; gap: 14px; }
.zc-summary { margin: 0; color: var(--zc-text); }
.zc-label { font-size: 13px; font-weight: 700; color: var(--zc-muted); }
.zc-variants ul { margin: 6px 0 0; padding-left: 20px; }
.zc-facts { margin: 0; border-top: 1px solid var(--zc-line); }
.zc-facts div, .zc-specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--zc-line); }
.zc-facts dt, .zc-specs dt { color: var(--zc-muted); font-size: 14px; }
.zc-facts dd, .zc-specs dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.zc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.zc-note { margin: 0; font-size: 13px; color: var(--zc-muted); }
.zc-block { margin-top: clamp(40px, 6vw, 64px); }
.zc-block p { color: var(--zc-text); max-width: 72ch; }

/* Kit contents table */
.zc-table-wrap { overflow-x: auto; border: 1px solid var(--zc-line); border-radius: 16px; }
.zc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.zc-table caption { text-align: left; padding: 14px 16px; font-weight: 700; background: var(--zc-mint); }
.zc-table th, .zc-table td { padding: 12px 16px; border-top: 1px solid var(--zc-line); text-align: left; vertical-align: top; }
.zc-table thead th { font-size: 13px; color: var(--zc-muted); background: var(--zc-soft); }
.zc-table tbody th { font-weight: 600; white-space: nowrap; }
.zc-num { text-align: right !important; font-family: var(--zc-num); white-space: nowrap; }
.zc-source { margin-top: 14px; font-size: 14px; color: var(--zc-muted); }
.zc-source summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.zc-source__img { margin-top: 10px; border: 1px solid var(--zc-line); border-radius: 12px; }

@media (max-width: 860px) {
  .zc-detail { grid-template-columns: 1fr; }
  .zc-header__cta { display: none; }
  .zc-nav { gap: 16px; font-size: 15px; }
}
@media (max-width: 480px) {
  .zc-header__in { gap: 12px; min-height: 64px; }
  .zc-brand img { height: 38px; }
  .zc-facts div, .zc-specs div { grid-template-columns: 7.5em 1fr; }
  .zc-actions .zc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* CMS pages (/about, /services) */
.zc-page { padding-bottom: 24px; }
.zc-lead { margin: 14px 0 0; max-width: 760px; font-size: clamp(17px, 1.6vw, 20px); color: var(--zc-text); }
.zc-prose p { margin: 0 0 14px; color: var(--zc-text); overflow-wrap: anywhere; }
.zc-page__grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.zc-page__figure { margin: 0; border-radius: 24px; overflow: hidden; background: var(--zc-mint); }
.zc-page__figure img { width: 100%; }
.zc-page__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.zc-services { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.zc-service { border: 1px solid var(--zc-line-strong); border-radius: 20px; padding: 22px; background: var(--zc-white); }
.zc-service__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 16px; background: var(--zc-mint); }
.zc-service__title { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.zc-footer__social { display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; }
@media (max-width: 860px) { .zc-page__grid { grid-template-columns: 1fr; } }
/* Narrow screens: the menu gets its own row and scrolls sideways, so Thai words never break mid-word. */
@media (max-width: 640px) {
  .zc-header__in { flex-wrap: wrap; row-gap: 0; padding-top: 6px; }
  .zc-nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .zc-nav::-webkit-scrollbar { display: none; }
  .zc-nav a { padding: 8px 0 10px; }
}
/* Articles (/articles, /articles/<slug>) */
.zc-articles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.zc-article-card { display: grid; gap: 8px; align-content: start; }
.zc-article-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--zc-mint); }
.zc-article-card__meta { font-size: 13px; color: var(--zc-muted); }
.zc-article-card__title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.4; }
.zc-article-card__title a { text-decoration: none; color: var(--zc-ink); }
.zc-article-card__title a:hover { color: var(--zc-green); }
.zc-article-card__sum { margin: 0; color: var(--zc-text); }
.zc-article { max-width: 860px; }
.zc-article__cover { margin: 24px 0; }
.zc-article__body { font-size: 17px; line-height: 1.8; }
.zc-brand img { width: auto; }
