/* Cloud Lifescience — สไตล์หลักของเว็บไซต์ */
:root {
  --ink: #12211e;
  --ink-2: #3c4f49;
  --ink-3: #5f7069;
  --brand-950: #072320;
  --brand-900: #0b2f2b;
  --brand-800: #0f3d38;
  --brand-700: #115a4f;
  --brand-600: #12765c;
  --brand-500: #1d9a6b;
  --leaf: #45c483;
  --mint-50: #f3fbf7;
  --mint-100: #e5f5ed;
  --mint-200: #cbeddb;
  --sky-50: #f0f8fb;
  --sky-100: #dff0f7;
  --line: #dce7e2;
  --line-2: #c5d6cf;
  --cream: #fbfcf8;
  --amber: #f2b63f;
  --amber-50: #fff8e8;
  --danger: #b42318;
  --line-green: #06c755;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 47, 43, .06), 0 2px 8px rgba(11, 47, 43, .04);
  --shadow: 0 1px 2px rgba(11, 47, 43, .06), 0 10px 30px rgba(11, 47, 43, .08);
  --shadow-lg: 0 2px 6px rgba(11, 47, 43, .08), 0 24px 60px rgba(11, 47, 43, .14);
  --font: 'Noto Sans Thai', 'Leelawadee UI', 'Thonburi', Tahoma, sans-serif;
  --font-h: 'Prompt', 'Noto Sans Thai', 'Leelawadee UI', 'Thonburi', Tahoma, sans-serif;
  --mb: 58px;
}

/* ---------- พื้นฐาน ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.75; color: var(--ink);
  background: #fff; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.38; color: var(--brand-900); margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(29, 154, 107, .6); outline-offset: 2px; border-radius: 6px; }
.ic {
  width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.22em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: .875rem; color: var(--ink-3); }
.break { overflow-wrap: anywhere; word-break: break-word; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ---------- ปุ่ม ---------- */
.btn {
  --bg: var(--brand-700); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px;
  padding: .55em 1.3em; border-radius: 999px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  font-family: var(--font-h); font-weight: 500; font-size: 1rem; line-height: 1.3; text-align: center;
  text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .15s, border-color .15s;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary:hover { --bg: var(--brand-800); box-shadow: 0 8px 20px rgba(17, 90, 79, .25); }
.btn--line { --bg: var(--line-green); --lt: var(--line-green); }
.btn--line:hover { --bg: #05b14b; box-shadow: 0 8px 20px rgba(6, 199, 85, .28); }
.btn--ghost { --bg: #fff; --fg: var(--brand-800); --bd: var(--line-2); }
.btn--ghost:hover { --bd: var(--brand-600); }
.btn--light { --bg: #fff; --fg: var(--brand-900); }
.btn--light:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn--sm { min-height: 44px; padding: .4em 1em; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: .7em 1.6em; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--brand-800); cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand-600); }
.icon-btn--sm { width: 36px; height: 36px; border-radius: 10px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: inherit; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btnrow--center { justify-content: center; }

/* ---------- แถบบนและส่วนหัว ---------- */
.topbar { background: var(--brand-900); color: #d3e9e1; font-size: .8125rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 6px; }
.topbar strong { color: #fff; letter-spacing: .04em; font-weight: 600; }
.topbar__links { gap: 18px !important; }
.topbar a { color: #d3e9e1; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .ic { --lt: var(--brand-900); }
@media (max-width: 700px) { .topbar__links { display: none !important; } .topbar__in { justify-content: center; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 47, 43, .08); }
.header__in { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-900); margin-right: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand__text strong { font-family: var(--font-h); font-size: 1.125rem; font-weight: 600; }
.brand__text small { font-size: .75rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { color: var(--brand-900); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light small { color: #a8cdc1; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__line { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--brand-900); cursor: pointer; position: relative; z-index: 65; }
.menu-btn .ic { width: 24px; height: 24px; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(6, 30, 27, .45); z-index: 45; }

@media (min-width: 640px) { .header__line { display: inline-flex; } }

@media (max-width: 1079.98px) {
  /* ไม่ใช้ backdrop-filter บนจอเล็ก เพราะจะทำให้เมนูแบบ fixed ถูกจำกัดอยู่ในกรอบส่วนหัว */
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 60;
    display: none; flex-direction: column; padding: 84px 20px 24px; box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  .nav.is-open { display: flex; animation: nav-in .25s ease; }
  @keyframes nav-in { from { transform: translateX(100%); } to { transform: none; } }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: 13px 4px; text-decoration: none; color: var(--brand-900); font-family: var(--font-h); font-weight: 500; font-size: 1.0625rem; }
  .nav__list a[aria-current] { color: var(--brand-600); }
  .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .sub-toggle { width: 44px; height: 44px; border: 0; background: none; color: var(--brand-800); cursor: pointer; display: grid; place-items: center; }
  .sub-toggle .ic { transition: transform .2s; }
  .has-sub.is-open .sub-toggle .ic { transform: rotate(180deg); }
  .sub { grid-column: 1 / -1; list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; display: none; }
  .has-sub.is-open .sub { display: block; }
  .sub a { padding: 9px 4px; font-size: 1rem; font-weight: 400; color: var(--ink-2); }
  .nav__cta { display: grid; gap: 10px; margin-top: 22px; }
}
@media (min-width: 1080px) {
  .menu-btn, .nav__cta { display: none; }
  .nav__list { display: flex; align-items: center; gap: 2px; }
  .nav__list > li { position: relative; }
  .nav__list > li > a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--brand-900); font-family: var(--font-h); font-weight: 500; font-size: .98rem; white-space: nowrap; }
  .nav__list > li > a:hover { background: var(--mint-100); }
  .nav__list > li > a[aria-current] { color: var(--brand-600); background: var(--mint-50); }
  .has-sub { display: flex; align-items: center; }
  .has-sub > a { padding-right: 2px !important; }
  .sub-toggle { width: 28px; height: 36px; border: 0; background: none; color: var(--brand-800); cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
  .sub {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
  }
  .sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
  .sub a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .95rem; }
  .sub a:hover { background: var(--mint-100); color: var(--brand-800); }
}

/* ---------- ส่วนหัวหน้าแรก ---------- */
.hero {
  position: relative; overflow: hidden; padding: 36px 0 76px;
  background:
    radial-gradient(900px 520px at 88% 6%, var(--sky-100), transparent 62%),
    radial-gradient(760px 460px at 2% 98%, var(--mint-100), transparent 60%),
    linear-gradient(180deg, #f8fcfa, #f2f9f5);
}
.hero__grid { display: grid; gap: 28px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-h); font-weight: 500; font-size: .88rem;
  color: var(--brand-600); background: #fff; border: 1px solid var(--mint-200); padding: 5px 14px; border-radius: 999px; margin: 0 0 16px;
}
.hero h1 { font-size: clamp(1.95rem, 1.2rem + 3.2vw, 3.25rem); line-height: 1.3; font-weight: 700; margin-bottom: 16px; }
.hl { color: var(--brand-600); background: linear-gradient(transparent 68%, rgba(69, 196, 131, .26) 0); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 38em; margin-bottom: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--ink-2); line-height: 1.6; }
.ticks .ic, .list-check .ic { color: #fff; background: var(--brand-500); border-radius: 50%; padding: 4px; width: 22px; height: 22px; stroke-width: 3; margin-top: 2px; }
.hero__visual { display: grid; justify-items: center; }
.hero__img { width: 100%; max-width: 520px; }
@media (min-width: 560px) { .ticks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .hero { padding: 60px 0 96px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 48px; }
  .hero__visual { justify-items: end; }
}

/* แถบข้อมูลนิติบุคคล */
.vbar-wrap { position: relative; z-index: 2; margin-top: -44px; }
.vbar {
  position: relative; overflow: hidden; display: grid; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: 22px; padding: 18px 22px 18px 26px; box-shadow: var(--shadow-lg);
}
.vbar::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 6px; background: linear-gradient(180deg, var(--brand-600), var(--leaf)); }
.vbar p { margin: 0; }
.vbar__head { display: flex; gap: 12px; align-items: center; }
.vbar__head img { border-radius: 12px; flex: none; }
.vbar__k { font-size: .8rem; color: var(--ink-3); line-height: 1.5; }
.vbar__v { font-family: var(--font-h); font-weight: 600; color: var(--brand-900); display: flex; align-items: center; gap: 8px; line-height: 1.45; }
.vbar__reg { font-size: 1.4rem; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .vbar { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .vbar { grid-template-columns: auto auto auto auto; justify-content: space-between; } }

/* แถบจุดเด่น */
.trust { padding: 28px 0 0; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.trust__list li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--mint-50); border: 1px solid var(--mint-200); }
.trust__list .ic { color: var(--brand-600); width: 24px; height: 24px; margin-top: 2px; }
.trust__list strong { display: block; font-family: var(--font-h); font-weight: 600; font-size: .95rem; color: var(--brand-900); line-height: 1.4; }
.trust__list small { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }
@media (min-width: 760px) { .trust__list { grid-template-columns: repeat(3, 1fr); } .trust__list li { align-items: center; padding: 16px 18px; } }
.nw { white-space: nowrap; }

/* ---------- Section ---------- */
.section { padding: 60px 0; }
.section--tight { padding: 36px 0; }
.section--tint { background: linear-gradient(180deg, var(--mint-50), #f7fbf9); }
.section--deep { background: var(--brand-900); color: #d3e9e1; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .kicker { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #9fe0bf; }
.section--deep .shead p { color: #b7d6cb; }
@media (min-width: 980px) { .section { padding: 84px 0; } .section--tight { padding: 52px 0; } }
.shead { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.shead h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem); margin-bottom: 10px; }
.shead p { color: var(--ink-2); margin: 0; }
.h-center { text-align: center; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 24px; }
.h-sm { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }

/* หมวดสินค้า */
.cats { display: grid; gap: 16px; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mint-200); color: var(--ink); }
.cat__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mint-100); color: var(--brand-600); }
.cat__ic .ic { width: 28px; height: 28px; }
.cat__t strong { display: block; font-family: var(--font-h); font-size: 1.2rem; color: var(--brand-900); font-weight: 600; line-height: 1.4; }
.cat__t small { color: var(--ink-3); font-size: .85rem; }
.cat__d { grid-column: 1 / -1; color: var(--ink-2); font-size: .97rem; margin-top: 10px; line-height: 1.65; }
.cat__go { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: var(--brand-600); font-family: var(--font-h); font-weight: 500; font-size: .95rem; margin-top: 8px; }

/* การ์ดสินค้า */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -6px 0 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--brand-900); font-family: var(--font-h); font-size: .95rem;
  cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--brand-600); color: var(--brand-700); }
.chip[aria-pressed="true"] { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.chip .ic { color: var(--brand-600); }
.pgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.pcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; background: radial-gradient(circle at 50% 42%, #fff 0, var(--tint) 72%); }
.pcard__media img { width: 74%; transition: transform .3s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.badge { position: absolute; top: 14px; left: 14px; background: var(--amber); color: #3a2700; font-family: var(--font-h); font-weight: 600; font-size: .8rem; line-height: 1.6; padding: 3px 12px; border-radius: 999px; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.pcard__cat { font-size: .8rem; color: var(--brand-600); font-weight: 600; margin: 0 0 4px; }
.pcard__title { font-size: 1.15rem; line-height: 1.45; margin: 0 0 6px; }
.pcard__title a { color: var(--brand-900); text-decoration: none; }
.pcard__title a:hover { color: var(--brand-600); text-decoration: underline; }
.pcard__meta { font-size: .875rem; color: var(--ink-3); margin: 0 0 10px; line-height: 1.55; }
.pcard__desc { font-size: .95rem; color: var(--ink-2); margin: 0 0 16px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { margin-top: auto; }
.pcard__hint { text-align: center; font-size: .8rem; color: var(--ink-3); margin: 8px 0 0; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0 0 12px; }
.price__num { font-family: var(--font-h); font-size: 1.9rem; font-weight: 700; color: var(--brand-900); line-height: 1.1; }
.price__unit { font-family: var(--font-h); font-weight: 500; color: var(--brand-800); }
.price small { flex-basis: 100%; font-size: .82rem; color: var(--ink-3); }
.price--lg .price__num { font-size: 2.6rem; }
.pnotes { list-style: none; padding: 0; margin: 28px auto 0; max-width: 900px; display: grid; gap: 10px; }
.pnotes li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.pnotes .ic { color: var(--brand-600); margin-top: 4px; }
.pnotes a { margin: 0 .25em; }

/* จุดเด่น / ค่านิยม */
.values { display: grid; gap: 18px; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.value__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mint-100); color: var(--brand-600); margin-bottom: 14px; }
.value__ic .ic { width: 26px; height: 26px; }
.value__ic--line { background: #e3f8eb; color: var(--line-green); }
.value h3, .value .h-sm { font-size: 1.15rem; margin-bottom: 8px; }
.value p { color: var(--ink-2); font-size: .97rem; margin: 0 0 14px; }
.value p:last-child { margin: 0; }

/* ขั้นตอน */
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps__item { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--leaf); color: var(--brand-950); font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.steps__item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps__item p { margin: 0; color: #b7d6cb; font-size: .97rem; }

/* ลูกค้าของเรา */
.custs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 560px) { .custs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .custs { grid-template-columns: repeat(4, 1fr); } }
.cust { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.cust > .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--sky-100); color: var(--brand-700); }
.cust strong { display: block; font-family: var(--font-h); font-weight: 600; color: var(--brand-900); line-height: 1.45; margin-bottom: 2px; }
.cust small { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.6; }
.b2b { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-800), var(--brand-700)); color: #d6eee5; }
.b2b strong { color: #fff; font-family: var(--font-h); font-size: 1.1rem; font-weight: 600; }
.b2b p { margin: 0; }
.b2b__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* เกี่ยวกับเรา */
.about { display: grid; gap: 36px; align-items: start; }
.about > *, .values > *, .ccards > *, .contact-map > *, .guide > *, .pdp__grid > *, .pdp__content > *, .footer__grid > * { min-width: 0; }
@media (min-width: 980px) { .about { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.about .shead { text-align: left; margin: 0 0 18px; }
.about__text > p { color: var(--ink-2); }
.about h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }
.table-wrap { border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; background: #fff; margin-bottom: 12px; }
.ctable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ctable th, .ctable td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; overflow-wrap: anywhere; }
.ctable th { width: 36%; color: var(--ink-3); font-weight: 500; background: var(--mint-50); }
.ctable tr:last-child th, .ctable tr:last-child td { border-bottom: 0; }
.mv { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 640px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv > div { padding: 18px; border-radius: 16px; background: var(--mint-50); border: 1px solid var(--mint-200); }
.mv h3 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; color: var(--brand-800); }
.mv p { margin: 0; color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0 0 28px 6px; border-left: 2px solid var(--mint-200); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-500); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--mint-200); }
.timeline__when { font-family: var(--font-h); font-weight: 600; color: var(--brand-700); }
.timeline p { margin: 0; color: var(--ink-2); }

/* การ์ดข้อมูลบริษัท */
.verify { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px 20px; box-shadow: var(--shadow-lg); }
.verify::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brand-600), var(--leaf)); }
.verify__head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.verify__head img { border-radius: 12px; flex: none; }
.verify__name { font-family: var(--font-h); font-weight: 600; color: var(--brand-900); margin: 0; line-height: 1.4; }
.verify__en { margin: 0; font-size: .8rem; color: var(--ink-3); letter-spacing: .03em; }
.verify__label { margin: 0; font-size: .82rem; color: var(--ink-3); }
.verify__reg { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; font-family: var(--font-h); font-size: 1.65rem; font-weight: 600; letter-spacing: .06em; color: var(--brand-800); font-variant-numeric: tabular-nums; }
.verify__rows { margin: 0 0 14px; border-top: 1px dashed var(--line-2); }
.verify__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: .93rem; }
.verify__rows dt { color: var(--ink-3); }
.verify__rows dd { margin: 0; font-weight: 500; text-align: right; display: flex; align-items: center; gap: 8px; }
.verify__link { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--brand-700); }
.verify__link span { text-decoration: underline; text-underline-offset: 3px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); flex: none; }

/* คำถามที่พบบ่อย */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: var(--mint-200); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 20px; font-family: var(--font-h); font-weight: 500; font-size: 1.04rem; color: var(--brand-900); line-height: 1.5; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ic { color: var(--brand-600); transition: transform .2s; }
.faq__item[open] .faq__ic { transform: rotate(45deg); }
.faq__a { padding: 0 20px 18px; color: var(--ink-2); }
.faq__a p { margin: 0; }
.faq__group { font-size: 1.3rem; margin: 40px 0 14px; }
.faq__group:first-child { margin-top: 0; }

/* ติดต่อ */
.ccards { display: grid; gap: 16px; }
@media (min-width: 860px) { .ccards { grid-template-columns: repeat(3, 1fr); } }
.ccard { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.ccard__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mint-100); color: var(--brand-600); margin-bottom: 12px; }
.ccard__ic .ic { width: 26px; height: 26px; }
.ccard--line .ccard__ic { background: #e3f8eb; color: var(--line-green); }
.ccard h3 { font-size: 1.1rem; margin-bottom: 2px; }
.ccard__v { font-family: var(--font-h); font-size: 1.3rem; font-weight: 600; color: var(--brand-800); margin: 0 0 4px; line-height: 1.45; }
.ccard p { color: var(--ink-3); font-size: .93rem; }
.ccard__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.contact-map { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 860px) { .contact-map { grid-template-columns: 1.6fr 1fr; } }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #e9f5ef, #e2eff6); min-height: 340px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px;
  background-image: repeating-linear-gradient(0deg, transparent 0 38px, rgba(15, 61, 56, .05) 38px 39px), repeating-linear-gradient(90deg, transparent 0 38px, rgba(15, 61, 56, .05) 38px 39px);
}
.map__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-700); color: #fff; box-shadow: 0 10px 24px rgba(17, 90, 79, .3); margin-bottom: 12px; }
.map__pin .ic { width: 28px; height: 28px; }
.map__addr { color: var(--ink-2); max-width: 32em; }
.map__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.map__note { font-size: .8rem; color: var(--ink-3); margin: 12px 0 0; }
.addrcard { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.addrcard h3, .addrcard .h-sm { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; margin-bottom: 6px; }
.addrcard .ic { color: var(--brand-600); }
.addrcard p { color: var(--ink-2); margin-bottom: 18px; }
.addrcard p:last-child { margin-bottom: 0; }

/* แถบชวนติดต่อ */
.cta { padding: 52px 0; background: radial-gradient(600px 300px at 92% 0, rgba(69, 196, 131, .25), transparent 60%), var(--brand-900); color: #cfe7de; }
.cta__in { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 6px; }
.cta p { margin: 0; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ข้อความเตือนและส่วนท้าย */
.disclaimer { background: var(--amber-50); border-top: 1px solid #f1dfb2; color: #5b4512; font-size: .85rem; }
.disclaimer__in { display: flex; gap: 10px; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.disclaimer .ic { color: #b7791f; margin-top: 3px; }
.disclaimer p { margin: 0; line-height: 1.7; }
.footer { background: var(--brand-950); color: #a7c8bd; font-size: .93rem; padding: 56px 0 calc(24px + var(--mb)); }
.footer a { color: #d6ece4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } .footer__grid > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.5fr .9fr 1.1fr 1.4fr; } .footer__grid > :last-child { grid-column: auto; } }
.footer__brand p { margin: 14px 0 0; line-height: 1.7; }
.footer__reg strong { color: #fff; letter-spacing: .04em; }
.footer__reg a { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.footer__h { font-family: var(--font-h); color: #fff; font-weight: 600; font-size: 1rem; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ic { color: var(--leaf); margin-top: 4px; --lt: var(--brand-950); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.brands { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.brands svg { display: block; }

/* แถบติดต่อด่วนบนมือถือ */
.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 47, 43, .08); padding-bottom: env(safe-area-inset-bottom); }
.mobilebar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; text-decoration: none; color: var(--brand-800); font-family: var(--font-h); font-size: .8rem; font-weight: 500; line-height: 1.3; }
.mobilebar .ic { width: 22px; height: 22px; }
.mobilebar .mobilebar__line { color: var(--line-green); }
@media (min-width: 900px) { .mobilebar { display: none; } :root { --mb: 0px; } }

/* คุกกี้และ toast */
.cookie { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + var(--mb)); max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px 18px; font-size: .9rem; }
.cookie p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.65; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .cookie { left: 24px; right: auto; bottom: 24px; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--mb)); transform: translate(-50%, 20px); background: var(--brand-900); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .92rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 90; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- หน้าภายใน ---------- */
.crumbs { background: var(--mint-50); border-bottom: 1px solid var(--line); font-size: .85rem; }
.crumbs ol { list-style: none; margin: 0; padding: 11px 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li { display: flex; align-items: center; color: var(--ink-3); }
.crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--brand-700); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.phead { padding: 40px 0 16px; background: linear-gradient(180deg, var(--mint-50), #fff); }
.phead h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); font-weight: 700; max-width: 24em; }
.phead__lead { font-size: 1.08rem; color: var(--ink-2); max-width: 50em; margin: 0; }
.phead__meta { color: var(--ink-3); font-size: .9rem; margin: 0; }
.cathead { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.cathead h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 4px; }
.cathead h2 .ic { color: var(--brand-600); }
.cathead p { margin: 0; color: var(--ink-2); }
.guide { display: grid; gap: 20px; }
@media (min-width: 900px) { .guide { grid-template-columns: repeat(2, 1fr); } }
.guide__block { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.guide__block h2 { font-size: 1.3rem; }
.guide__block p { color: var(--ink-2); }
.list-check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-num { padding-left: 1.4em; display: grid; gap: 8px; }
.list-num li::marker { color: var(--brand-600); font-weight: 600; }
.list-dot { padding-left: 1.1em; display: grid; gap: 6px; margin: 0; }
.list-dot li::marker { color: var(--brand-500); }
.othercats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 32px; }
.othercats p { margin: 0 6px 0 0; color: var(--ink-3); }

/* หน้าสินค้า */
.pdp { padding: 28px 0 56px; }
.pdp__grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .pdp__grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.pdp__media { position: relative; border-radius: 28px; background: radial-gradient(circle at 50% 45%, #fff 0, var(--tint) 72%); display: grid; place-items: center; aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.pdp__media img { width: 84%; }
@media (min-width: 960px) { .pdp__media { position: sticky; top: 100px; } }
.pdp__cat { margin: 0; }
.pdp__cat a { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--brand-600); background: var(--mint-100); padding: 4px 12px; border-radius: 999px; }
.pdp__info h1 { font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.4rem); margin: 14px 0 4px; }
.pdp__en { color: var(--ink-3); margin: 0 0 14px; font-size: .95rem; }
.pdp__short { color: var(--ink-2); font-size: 1.05rem; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--sky-50); border: 1px solid var(--sky-100); font-size: .9rem; color: var(--brand-800); line-height: 1.5; }
.buybox { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); margin-bottom: 22px; }
.buybox__btns { display: grid; gap: 10px; margin: 16px 0; }
@media (min-width: 560px) { .buybox__btns { grid-template-columns: 1.3fr 1fr; } }
.buybox__notes { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.buybox__notes li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.buybox__notes .ic { color: var(--brand-600); margin-top: 3px; }
.specs { width: 100%; border-collapse: collapse; font-size: .93rem; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.specs th { color: var(--ink-3); font-weight: 500; width: 40%; padding-right: 12px; }
.pdp__content { display: grid; gap: 24px; }
@media (min-width: 960px) { .pdp__content { grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; } }
.pdp__main { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.pdp__main h2 { font-size: 1.35rem; margin-top: 30px; }
.pdp__main h2:first-child { margin-top: 0; }
.pdp__main p { color: var(--ink-2); }
.pdp__side { display: grid; gap: 16px; }
.sidecard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.sidecard .h-sm .ic { color: var(--brand-600); }
.sidecard--warn { background: #fffaf0; border-color: #f1dfb2; }
.sidecard--warn .h-sm .ic { color: #b7791f; }
.sidecard p { margin: 0; color: var(--ink-2); }
.sidecard li { color: var(--ink-2); }

/* จำนวนสินค้า */
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.qty label { font-weight: 500; }
.qty--inline { justify-content: flex-start; margin: 12px 0 0; }
.qty__ctl { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty__ctl button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--brand-800); display: grid; place-items: center; }
.qty__ctl button:hover { background: var(--mint-100); }
.qty__ctl input { width: 56px; height: 44px; border: 0; text-align: center; font-weight: 600; font-size: 1.05rem; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty__ctl input::-webkit-outer-spin-button, .qty__ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* เนื้อหายาว (นโยบาย) */
.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: 1.3rem; margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.6; }
.prose thead th { background: var(--mint-50); color: var(--brand-900); }
.prose .brands { margin-bottom: 8px; }
.alert { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: #f0f8ff; border: 1px solid #cfe6f7; margin-top: 28px; }
.alert > .ic { width: 28px; height: 28px; color: var(--brand-700); flex: none; }
.alert > div { min-width: 0; overflow-wrap: anywhere; }
.alert ul { margin: 0; }
.alert p { margin: 0; }
.alert .h-sm { margin: 0 0 6px; }

/* หน้าสถานะคำสั่งซื้อ / 404 */
.ocard { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); text-align: center; }
.ocard .spinner { margin: 0 auto 10px; }
.otable { width: 100%; max-width: 460px; margin: 16px auto 0; border-collapse: collapse; text-align: left; font-size: .95rem; }
.otable th, .otable td { padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.otable th { font-weight: 500; color: var(--ink-3); }
.otable td { text-align: right; }
.ohelp { margin-top: 24px; padding: 22px; border-radius: 18px; background: var(--mint-50); border: 1px solid var(--mint-200); text-align: center; }
.ohelp .h-sm { justify-content: center; }
.ohelp .btnrow { justify-content: center; }
.notfound__code { font-family: var(--font-h); font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; color: var(--mint-200); line-height: 1; margin: 0 0 8px; }

/* ---------- หน้าต่างสั่งซื้อ ---------- */
html.modal-open { overflow: hidden; }
.modal {
  width: min(640px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); background: #fff; color: var(--ink); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(6, 30, 27, .55); backdrop-filter: blur(3px); }
@media (max-width: 640px) {
  .modal { width: 100vw; max-height: 94vh; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.modal__kicker { margin: 0; font-size: .82rem; color: var(--brand-600); font-weight: 600; }
.modal__title { margin: 0; font-size: 1.2rem; line-height: 1.45; outline: none; }
.modal__body { padding: 16px 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.stepper { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
.stepper li { flex: 1; font-size: .78rem; color: var(--ink-3); padding-top: 9px; position: relative; line-height: 1.4; }
.stepper li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--line); }
.stepper li.is-done::before, .stepper li.is-on::before { background: var(--brand-500); }
.stepper li.is-on { color: var(--brand-800); font-weight: 600; }
.mini { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--mint-50); border: 1px solid var(--mint-200); }
.mini img { width: 72px; height: 72px; border-radius: 12px; background: #fff; flex: none; }
.mini p { margin: 0; }
.mini__name { font-family: var(--font-h); font-weight: 600; color: var(--brand-900); line-height: 1.45; }
.mini__meta { font-size: .85rem; color: var(--ink-3); }
.mini__price { font-family: var(--font-h); font-weight: 700; color: var(--brand-800); font-size: 1.15rem; }
.field-label { font-weight: 600; margin: 8px 0 10px; font-size: .95rem; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice:hover, .choice:focus-visible { border-color: var(--brand-500); background: var(--mint-50); }
.choice__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-700); color: #fff; flex: none; }
.choice__ic--line { background: var(--line-green); }
.choice__t { flex: 1; display: flex; flex-direction: column; line-height: 1.5; }
.choice__t strong { font-family: var(--font-h); font-weight: 600; color: var(--brand-900); font-size: 1.05rem; }
.choice__t span { font-size: .88rem; color: var(--ink-3); }
.choice__go { color: var(--ink-3); }
.note { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-3); margin: 14px 0 0; line-height: 1.55; }
.note .ic { color: var(--brand-600); }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--brand-700); font-weight: 500; cursor: pointer; padding: 6px 0; margin-bottom: 8px; min-height: 40px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; line-height: 1.5; }
.req { color: var(--danger); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(29, 154, 107, .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .82rem; margin: 4px 0 0; line-height: 1.5; }
.err:empty { display: none; }
.grid2 { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.input-ic { position: relative; }
.input-ic input { padding-right: 46px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.input-ic .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin: 6px 0 4px; cursor: pointer; line-height: 1.6; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand-600); flex: none; }
.summary { border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; margin: 6px 0 16px; background: var(--cream); }
.summary table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.summary td { padding: 5px 0; vertical-align: top; }
.summary td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.summary .total td { border-top: 1px dashed var(--line-2); padding-top: 9px; font-weight: 700; font-family: var(--font-h); color: var(--brand-900); font-size: 1.05rem; }
.summary .free { color: var(--brand-600); font-weight: 600; }
.summary__ship { font-size: .85rem; color: var(--ink-3); margin: 6px 0 2px; line-height: 1.55; }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--ink-3); margin: 12px 0 0; line-height: 1.6; }
.secure .ic { color: var(--brand-600); margin-top: 2px; }
.formerr { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #8a1c12; font-size: .9rem; line-height: 1.6; }
.paybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--brand-500); background: var(--mint-50); margin-bottom: 14px; }
.paybox__t { display: flex; gap: 8px; align-items: center; color: var(--brand-900); }
.paybox__t .ic { color: var(--brand-600); }
.cardform.is-off .field, .cardform.is-off .check, .cardform.is-off #payBtn, .cardform.is-off .cardui, .cardform.is-off .secure { opacity: .45; pointer-events: none; }
.payoff { margin: 0 0 16px; padding: 16px; border-radius: 14px; background: #fff8e8; border: 1px solid #f1dda8; }
.payoff__t { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; color: #6b4e0b; }
.payoff p { font-size: .92rem; color: #5b4512; }
.payoff__btns { display: grid; gap: 8px; }
@media (min-width: 520px) { .payoff__btns { grid-template-columns: 1fr 1fr; } .payoff__btns .btn--line { grid-column: 1 / -1; } }

/* ภาพบัตรตัวอย่าง */
.cardui { perspective: 1000px; margin: 0 auto 16px; max-width: 340px; }
.cardui__in { position: relative; aspect-ratio: 1.586; transition: transform .6s; transform-style: preserve-3d; }
.cardui.is-flip .cardui__in { transform: rotateY(180deg); }
.cardui__front, .cardui__back {
  position: absolute; inset: 0; border-radius: 16px; color: #fff; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .2), transparent 45%), linear-gradient(135deg, #0f3d38, #12765c 60%, #2fa36b);
  box-shadow: 0 14px 30px rgba(15, 61, 56, .3);
}
.cardui__front { display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px; }
.cardui__chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f6d27a, #c99a2e); }
.cardui__brand { position: absolute; top: 16px; right: 20px; font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-style: italic; font-size: 1.15rem; letter-spacing: .04em; }
.cardui__num { font-family: 'Courier New', ui-monospace, monospace; font-size: clamp(1rem, 4.4vw, 1.28rem); letter-spacing: .08em; white-space: nowrap; font-weight: 700; }
.cardui__row { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; line-height: 1.3; }
.cardui__row small { display: block; font-size: .6rem; opacity: .75; }
.cardui__row b { display: block; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.cardui__back { transform: rotateY(180deg); }
.cardui__strip { display: block; height: 44px; background: #0b1f1c; margin-top: 22px; }
.cardui__cvv { display: flex; flex-direction: column; align-items: flex-end; margin: 16px 20px 0 auto; width: 60%; }
.cardui__cvv small { font-size: .65rem; opacity: .8; margin-bottom: 4px; }
.cardui__cvv b { display: block; width: 100%; background: #fff; color: #111; text-align: right; padding: 4px 10px; border-radius: 6px; font-family: 'Courier New', monospace; letter-spacing: .15em; }

/* ช่องทางติดต่อในหน้าต่าง */
.lead-sm { color: var(--ink-2); font-size: .95rem; }
.copts { display: grid; gap: 10px; margin-bottom: 16px; }
.copt { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 16px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, background-color .15s; }
.copt:hover { border-color: var(--brand-500); background: var(--mint-50); color: var(--ink); }
.copt__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mint-100); color: var(--brand-600); flex: none; }
.copt--line .copt__ic { background: var(--line-green); color: #fff; --lt: var(--line-green); }
.copt > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.copt strong { font-family: var(--font-h); font-weight: 600; }
.copt > span:nth-child(2) span { font-size: .88rem; color: var(--ink-3); }
.copt__go { font-size: .85rem; font-weight: 600; color: var(--brand-700); white-space: nowrap; }
.copybox { border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px 14px; background: var(--cream); }
.copybox .field-label { margin-top: 0; }
.copybox pre { white-space: pre-wrap; font-family: var(--font); font-size: .88rem; line-height: 1.6; margin: 0 0 10px; color: var(--ink-2); max-height: 180px; overflow: auto; }

/* ผลการชำระเงิน */
.result { text-align: center; padding: 8px 4px; }
.result__ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; background: var(--mint-100); color: var(--brand-600); }
.result__ic .ic { width: 36px; height: 36px; stroke-width: 2.4; }
.result--bad .result__ic { background: #fdecea; color: var(--danger); }
.result--wait .result__ic { background: var(--amber-50); color: #b7791f; }
.result h2, .result h3 { font-size: 1.3rem; }
.result p { color: var(--ink-2); }
.modal__busy { position: absolute; inset: 0; z-index: 3; background: rgba(255, 255, 255, .94); display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--mint-200); border-top-color: var(--brand-600); animation: spin 1s linear infinite; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .header, .mobilebar, .cookie, .cta, .disclaimer { display: none !important; }
}
