/* ============================================================
   ITjing storefront — v2 design
   Concept : "patch panel" — โทนกราไฟต์เข้ม + สีคู่สายแลน (ส้ม/น้ำเงิน)
   Type    : Bai Jamjuree (หัวข้อ) · IBM Plex Sans Thai (เนื้อหา) · JetBrains Mono (ราคา/รหัส)
   หมายเหตุ: ชื่อ class/id ทั้งหมดคงเดิมเพื่อให้ storefront.js / cart.js / checkout.js ใช้ได้
   ============================================================ */
:root {
  --ink: #0b1326;            /* พื้นเข้ม header/hero/footer */
  --ink-2: #14203a;
  --ink-3: #1d2b4a;
  --paper: #f3f5f9;          /* พื้นหน้า */
  --card: #ffffff;
  --text: #111827;
  --muted: #5b6478;
  --line: #e2e6ef;
  --line-strong: #c9d0dd;

  --brand: #1e56e8;          /* น้ำเงินไฟฟ้า = ปุ่มหลัก/ลิงก์ */
  --brand-dark: #1746c4;
  --brand-light: #e9efff;
  --accent: #ff7a1a;         /* ส้มสายแลน = จุดเน้นเล็ก ๆ */
  --accent-soft: #fff0e4;
  --cyan: #38bdf8;
  --ok: #12905a;
  --warn: #b25000;
  --danger: #d92b2b;
  --star: #ffb020;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(11, 19, 38, .10);
  --shadow-sm: 0 1px 2px rgba(11, 19, 38, .06), 0 0 0 1px var(--line);
  --maxw: 1160px;

  --font-display: "Bai Jamjuree", "Prompt", "Kanit", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;

  /* alias ของเดิม */
  --bg: var(--paper);
  --border: var(--line);
  --accent-link: var(--brand);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; letter-spacing: -.005em; text-wrap: balance; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: .18s ease;
  white-space: nowrap; line-height: 1.1;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(30, 86, 232, .25); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); background: #fff; }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header (เข้ม) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 38, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; gap: 18px; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.brand .logo { width: auto; height: 62px; display: grid; place-items: center; flex-shrink: 0; }
.brand .logo svg { width: auto; height: 62px; }
.brand .logo svg { display: block; }
.brand .brand-text { letter-spacing: .01em; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 13px; border-radius: 8px; color: rgba(255,255,255,.78); font-weight: 500; font-size: .95rem;
  position: relative;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-links a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 600; cursor: pointer; border: none; font-size: .95rem;
}
.cart-btn:hover { background: var(--brand-dark); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; font-family: var(--font-mono);
  font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink);
}
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; cursor: pointer; padding: 7px 8px; }
.nav-toggle svg { display: block; width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  background-image:
    radial-gradient(900px 420px at 88% 10%, rgba(30,86,232,.45), transparent 60%),
    radial-gradient(500px 300px at 8% 100%, rgba(255,122,26,.22), transparent 60%),
    radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 40px, #fff 40px 48px, var(--brand) 48px 88px, #fff 88px 96px); }
/* เมื่ออัปโหลดรูปพื้นหลังในหลังบ้าน (storefront.js ใส่ background-image + class) */
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image .hero-inner { text-shadow: 0 2px 12px rgba(0,0,0,.45); }

.hero-inner { position: relative; z-index: 1; padding: 64px 0 72px; max-width: 640px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-layout .hero-inner { max-width: none; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .76rem;
  letter-spacing: .12em; text-transform: uppercase; color: #ffd0ad; margin-bottom: 18px;
}
.hero .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.18; font-weight: 700; white-space: pre-line; color: #fff; }
.hero p.sub { margin-top: 16px; font-size: 1.1rem; color: rgba(255,255,255,.78); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: .88rem; color: rgba(255,255,255,.72); }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--cyan); }

/* rate card ด้านขวา hero */
.rate-card {
  position: relative; z-index: 1; background: #fff; color: var(--text); border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden;
}
.rate-card::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--accent) 0 50%, var(--brand) 50%); }
.rate-card .rc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; }
.rate-card .rc-head h3 { font-size: 1rem; }
.rate-card .rc-head span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.rate-card ul { list-style: none; }
.rate-card li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 20px; border-top: 1px solid var(--line); }
.rate-card li .ri { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; }
.rate-card li .ri svg { width: 18px; height: 18px; }
.rate-card li .rt { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.rate-card li .ru { font-size: .74rem; color: var(--muted); }
.rate-card li .rp { font-family: var(--font-mono); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.rate-card li .rp small { font-size: .7rem; color: var(--muted); font-weight: 400; }
.rate-card li .btn { padding: 7px 10px; font-size: .8rem; }
.rate-card .rc-foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--muted); }
.rate-card .rc-foot a { color: var(--brand); font-weight: 600; }

/* ---------- Trust stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 auto; position: relative; z-index: 5;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -1px; transform: translateY(-34px); box-shadow: var(--shadow); }
.stat { padding: 18px 20px; text-align: left; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat .lbl { font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { text-align: left; max-width: none; margin: 0 auto 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head > div:first-child, .section-head .sh-main { max-width: 640px; }
.section-head .kicker {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.section-head .kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 46em; }
.section-head .sh-aside { color: var(--muted); font-size: .9rem; max-width: 34em; }
.section-head .sh-aside a { color: var(--brand); font-weight: 600; }
/* หน้าเดิมบางหน้ามี section-head ไม่มี wrapper ให้ครอบทั้งหมด */
.section-head:not(:has(> div)) { display: block; }

/* ---------- Filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin-bottom: 24px; }
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff;
  cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--muted); transition: .15s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Service grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px; display: flex; flex-direction: column;
  transition: .2s ease; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent) 0 38%, var(--brand) 38%); opacity: 0; transition: .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: #fff; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card .badge {
  position: absolute; top: 16px; right: 16px; background: var(--accent-soft); color: #9a3d00;
  font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); letter-spacing: .04em;
}
.card h3 { font-size: 1.08rem; line-height: 1.4; }
.card .short { color: var(--muted); font-size: .9rem; margin-top: 8px; flex: 1; }
.card .price-row { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 2px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.card .price { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.card .price .cur { font-size: .95rem; font-weight: 500; color: var(--muted); margin-right: 2px; }
.card .unit { font-size: .8rem; color: var(--muted); }
.card .actions { display: flex; gap: 10px; margin-top: 14px; }
.card .actions .btn { flex: 1; }

/* ---------- Portfolio (ผลงาน) สไลเดอร์ ---------- */
.slider-wrap { position: relative; }
.work-slider {
  display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 6px 2px 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.work-slider::-webkit-scrollbar { display: none; }
.work-slider > .work { flex: 0 0 340px; scroll-snap-align: start; }
.slider-btn {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; z-index: 5;
  box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: .15s; padding-bottom: 3px;
}
.slider-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.slider-btn:disabled { opacity: .3; cursor: default; }
.slider-btn.prev { left: -18px; }
.slider-btn.next { right: -18px; }
.slider-hint { text-align: left; color: var(--muted); font-size: .82rem; margin-top: 4px; font-family: var(--font-mono); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s ease; display: flex; flex-direction: column;
}
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; background: var(--ink); }
@supports not (aspect-ratio: 16 / 10) { .work .thumb { min-height: 170px; } .m-works .mw-item { min-height: 62px; } }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: .4s ease; }
.work:hover .thumb img { transform: scale(1.04); }
.work .thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 16px; }
.work .thumb .ph .ph-letter { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: #fff; line-height: 1; }
.work .thumb .ph .ph-domain { color: rgba(255,255,255,.85); font-size: .8rem; margin-top: 8px; word-break: break-all; font-family: var(--font-mono); }
.work .kind {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.95); color: var(--text);
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; font-family: var(--font-mono);
}
.work .w-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.work h3 { font-size: 1.04rem; line-height: 1.4; }
.work .w-desc { color: var(--muted); font-size: .88rem; margin-top: 8px; flex: 1; }
.work .w-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.work .w-tags span { background: var(--paper); color: var(--muted); font-size: .72rem; padding: 4px 9px; border-radius: 6px; font-family: var(--font-mono); }
.work .w-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: .9rem; }
.work .w-link:hover { gap: 10px; }

/* ผลงานย่อในป๊อปอัปบริการ */
.m-works { margin: 18px 0; }
.m-works .mw-head { font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.m-works .mw-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-works .mw-item { border-radius: 8px; overflow: hidden; aspect-ratio: 16/11; position: relative; display: grid; place-items: center; text-align: center; padding: 6px; }
.m-works .mw-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.m-works .mw-item .mw-t { color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.25; }
.m-works .mw-more { text-align: center; margin-top: 10px; font-size: .85rem; }

/* ---------- รีวิวลูกค้า ---------- */
.rating-summary { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.rating-summary .rs-score { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.rating-summary .rs-stars { color: var(--star); font-size: 1.1rem; letter-spacing: 2px; }
.rating-summary .rs-count { color: var(--muted); font-size: .88rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; position: relative; }
.review::before { content: "“"; position: absolute; top: 6px; right: 18px; font-family: var(--font-display); font-size: 4rem; color: var(--line); line-height: 1; }
.review .rv-stars { color: var(--star); letter-spacing: 2px; font-size: 1rem; }
.review .rv-comment { margin-top: 12px; flex: 1; line-height: 1.65; }
.review .rv-comment.empty { color: var(--muted); font-style: italic; }
.review .rv-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.review .rv-avatar { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.review .rv-name { font-weight: 600; font-size: .93rem; }
.review .rv-sub { color: var(--muted); font-size: .76rem; font-family: var(--font-mono); }
.review .rv-badge { margin-left: auto; font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: #9a3d00; white-space: nowrap; font-family: var(--font-mono); }
.reviews-empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.star-input { display: flex; align-items: center; gap: 4px; }
.star-input button { background: none; border: none; cursor: pointer; font-size: 2rem; line-height: 1; color: var(--line-strong); padding: 2px; transition: transform .12s, color .12s; }
.star-input button:hover { transform: scale(1.15); }
.star-input button.on { color: var(--star); }
.star-input .star-label { margin-left: 10px; font-size: .88rem; color: var(--muted); }

/* ---------- Why us ---------- */
.why { background: #fff; border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.why-item { text-align: left; padding: 24px 22px; border-right: 1px solid var(--line); }
.why-item:last-child { border-right: 0; }
.why-item .wico { width: 46px; height: 46px; margin: 0 0 14px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.why-item .wico svg { width: 24px; height: 24px; }
.why-item h4 { font-size: 1rem; }
.why-item p { color: var(--muted); font-size: .88rem; margin-top: 6px; }

/* ---------- พื้นที่ให้บริการ ---------- */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.area h4 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.area h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.area p { color: var(--muted); font-size: .88rem; margin-top: 6px; line-height: 1.7; }
@media (max-width: 900px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- Process (timeline) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; position: relative; }
.process-grid::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.step { background: transparent; border: 0; padding: 0 6px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: #fff; border: 4px solid var(--paper);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; margin-bottom: 14px; position: relative; z-index: 1; font-size: .95rem;
}
.step:nth-child(2n)::before { background: var(--brand); }
.step h4 { font-size: 1rem; }
.step p { color: var(--muted); font-size: .88rem; margin-top: 4px; }

/* ---------- Contact / CTA ---------- */
.cta {
  background: var(--ink); color: #fff; border-radius: 18px; padding: 44px 46px; text-align: left; position: relative; overflow: hidden;
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(30,86,232,.5), transparent 60%), radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: auto, 26px 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center;
}
.cta h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.cta p { color: rgba(255,255,255,.75); margin-top: 8px; max-width: 40em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; margin-top: 0; grid-column: 2; grid-row: 1; flex-direction: column; align-items: stretch; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.cta > div:first-child { grid-column: 1; }

/* ---------- Footer (เข้ม) ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 52px 0 26px; margin-top: 30px; border-top: 4px solid var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { color: #fff; margin-bottom: 12px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 600; }
.footer a, .footer p { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { color: #fff; margin-bottom: 10px; }
.footer .foot-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 18px; text-align: left; font-size: .76rem; color: rgba(255,255,255,.5); font-family: var(--font-mono); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(11,19,38,.55); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; z-index: 100;
  background: #fff; box-shadow: -20px 0 40px -20px rgba(0,0,0,.4);
  transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--ink); color: #fff; }
.drawer-head h3 { font-size: 1.1rem; }
.drawer-head .icon-btn { color: #fff; }
.drawer-head .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.icon-btn { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: var(--paper); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; display: block; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.cart-empty svg { width: 60px; height: 60px; opacity: .3; margin-bottom: 12px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.cart-item .ci-icon svg { width: 22px; height: 22px; }
.cart-item .ci-main { flex: 1; min-width: 0; }
.cart-item .ci-title { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.cart-item .ci-price { color: var(--muted); font-size: .84rem; margin-top: 2px; font-family: var(--font-mono); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; margin-top: 8px; }
.qty button { width: 28px; height: 28px; border: none; background: none; cursor: pointer; font-size: 1.1rem; color: var(--brand); border-radius: 8px; }
.qty button:hover { background: var(--paper); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: .9rem; font-family: var(--font-mono); }
.ci-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: .82rem; padding: 0; align-self: flex-start; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 20px; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .92rem; color: var(--muted); }
.sum-row span:last-child { font-family: var(--font-mono); }
.sum-row.total { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 10px 0 16px; }

/* ---------- Modal ---------- */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(11,19,38,.6); }
.modal-box { position: relative; background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); padding: 28px; }
.modal-box .m-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.modal-box .m-icon svg { width: 28px; height: 28px; }
.modal-box h3 { font-size: 1.3rem; }
.modal-box .m-short { color: var(--muted); margin-top: 8px; }
.feature-list { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.feature-list li svg { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.m-note { background: var(--accent-soft); border: 1px solid #ffd3b3; color: #7c3100; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .88rem; }
.m-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0; }
.m-price .price { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; }
.m-price .unit { color: var(--muted); font-size: .88rem; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 500; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: .92rem; animation: toastin .3s ease; }
.toast.ok { background: var(--ok); }
.toast svg { width: 18px; height: 18px; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } }

/* ============================================================
   Checkout
   ============================================================ */
.checkout-wrap { padding: 40px 0 70px; }
.checkout-wrap h1 { font-size: 1.7rem; }
.breadcrumb { color: var(--muted); font-size: .8rem; margin-bottom: 8px; font-family: var(--font-mono); }
.breadcrumb a:hover { color: var(--brand); }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.checkout-grid > * { min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { font-size: 1.1rem; margin-bottom: 4px; }
.panel .panel-sub { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; transition: .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.field textarea { resize: vertical; min-height: 88px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pay-opt { border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; transition: .15s; }
.pay-opt:hover { border-color: var(--brand); }
.pay-opt.active { border-color: var(--brand); background: var(--brand-light); }
.pay-opt .po-title { font-weight: 600; font-size: .95rem; }
.pay-opt .po-amt { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--brand); margin-top: 4px; }
.pay-opt .po-desc { font-size: .8rem; color: var(--muted); }
.qr-box { text-align: center; background: var(--paper); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; border: 1px solid var(--line); }
.qr-box .pp-logo { font-weight: 700; color: #003b6f; letter-spacing: .5px; margin-bottom: 6px; font-family: var(--font-display); }
.qr-box .qr-img { width: min(220px, 100%); aspect-ratio: 1; height: auto; margin: 6px auto; background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.qr-box .qr-img svg, .qr-box .qr-img img { width: 100%; height: 100%; }
.qr-box .pp-name { font-weight: 600; margin-top: 8px; }
.qr-box .pp-amt { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--brand); }
.slip-drop { border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 22px; text-align: center; cursor: pointer; transition: .15s; color: var(--muted); }
.slip-drop:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.slip-drop svg { width: 34px; height: 34px; margin-bottom: 6px; }
.slip-preview { margin-top: 12px; position: relative; display: none; }
.slip-preview img { max-height: 200px; margin: 0 auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.slip-preview .rm { margin-top: 8px; }
.osum-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.osum-item .oi-qty { color: var(--muted); font-family: var(--font-mono); }
.osum-total { margin-top: 14px; }
.note-box { background: var(--brand-light); border: 1px solid #c7d6ff; color: #12358f; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .86rem; margin-top: 14px; }
.success { text-align: center; padding: 50px 20px; max-width: 520px; margin: 0 auto; }
.success .s-ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; }
.success .s-ico svg { width: 46px; height: 46px; }
.success h2 { font-size: 1.6rem; }
.success .ordercode { display: inline-block; background: var(--paper); border: 1px dashed var(--brand); color: var(--brand); font-weight: 700; padding: 8px 18px; border-radius: 8px; margin: 14px 0; font-family: var(--font-mono); }

/* ---------- หน้ากฎหมาย ---------- */
.legal-wrap { padding: 46px 0 70px; }
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.legal .updated { color: var(--muted); font-size: .85rem; margin-top: 6px; font-family: var(--font-mono); }
.legal h2 { font-size: 1.15rem; margin: 32px 0 10px; padding-top: 4px; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.legal li { line-height: 1.65; }
.legal-note { background: var(--brand-light); border: 1px solid #c7d6ff; color: #12358f; padding: 14px 16px; border-radius: var(--radius-sm); margin: 18px 0; font-size: .93rem; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .89rem; margin: 14px 0 18px; min-width: 560px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { background: var(--paper); font-weight: 600; font-size: .84rem; }
.cookie-table code { background: var(--paper); padding: 2px 7px; border-radius: 5px; font-size: .85em; font-family: var(--font-mono); }
.legal-foot { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-foot a { color: var(--brand); font-weight: 600; }
.legal-foot a:hover { text-decoration: underline; }

/* ---------- หัวหน้าเพจย่อย (เข้ม เหมือน hero ย่อ) ---------- */
.page-head {
  padding: 46px 0 40px; background: var(--ink); color: #fff; margin-bottom: 36px;
  background-image: radial-gradient(700px 300px at 90% 0%, rgba(30,86,232,.45), transparent 60%), radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: auto, 26px 26px; position: relative;
}
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 40px, #fff 40px 48px, var(--brand) 48px 88px, #fff 88px 96px); }
.page-head .breadcrumb { color: rgba(255,255,255,.6); }
.page-head .breadcrumb a { color: #fff; }
.page-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 6px; color: #fff; }
.page-head > .container > p { color: rgba(255,255,255,.78); max-width: 760px; margin-top: 14px; line-height: 1.75; }
.page-head strong { color: #fff; }
.page-head + section, .page-head + main > section:first-child { padding-top: 0; }

/* ---------- การ์ดช่องทางติดต่อ ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { background: var(--card); border-radius: var(--radius); padding: 26px 22px; text-align: left; transition: .2s ease; border: 1px solid var(--line); display: block; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-card .cc-ico { width: 48px; height: 48px; margin: 0 0 14px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.contact-card .cc-ico svg { width: 24px; height: 24px; }
.contact-card.line .cc-ico { background: #06c755; color: #fff; }
.contact-card h3 { font-size: 1rem; }
.contact-card .cc-value { color: var(--brand); font-weight: 700; margin-top: 6px; word-break: break-word; font-size: .95rem; font-family: var(--font-mono); }
.contact-card .cc-note { color: var(--muted); font-size: .82rem; margin-top: 6px; }

/* ---------- ศูนย์ช่วยเหลือ / Ticket ---------- */
.support-wrap { padding: 46px 0 70px; }
.tk-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tk-code { font-family: var(--font-mono); font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.tk-meta { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.tk-status { padding: 6px 14px; border-radius: 8px; font-weight: 700; font-size: .82rem; white-space: nowrap; font-family: var(--font-mono); }
.tk-thread { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.tk-msg { padding: 14px 16px; border-radius: var(--radius-sm); max-width: 88%; }
.tk-msg.customer { background: var(--paper); align-self: flex-start; border-bottom-left-radius: 4px; }
.tk-msg.admin { background: var(--brand-light); align-self: flex-end; border-bottom-right-radius: 4px; }
.tk-msg-who { font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; display: flex; gap: 10px; align-items: baseline; }
.tk-msg-who span { font-weight: 400; font-size: .74rem; }
.tk-msg-body { white-space: pre-wrap; line-height: 1.6; font-size: .93rem; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { padding: 10px 16px; border: 0; background: none; font: inherit; font-family: var(--font-display); font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- แถบแจ้งเตือนคุกกี้ ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95;
  background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 760px; margin: 0 auto; animation: cookieIn .35s ease;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } }
.cookie-bar p { font-size: .86rem; color: rgba(255,255,255,.8); flex: 1; min-width: 240px; line-height: 1.55; }
.cookie-bar p strong { color: #fff; }
.cookie-bar a { color: #ffd0ad; font-weight: 600; }
.cookie-bar a:hover { text-decoration: underline; }
.cookie-bar .btn { flex-shrink: 0; }

/* ---------- ปุ่มลอยติดต่อ (มือถือ) ---------- */
.fab-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: none; flex-direction: column; gap: 10px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .15s; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 26px; height: 26px; }
.fab-line { background: #06c755; }
.fab-call { background: var(--brand); }
@media (max-width: 900px) { .fab-wrap { display: flex; } }

/* ---------- ยอมรับเงื่อนไข ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.consent a { color: var(--brand); font-weight: 600; }
.consent a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: 1fr; }
  .rate-card { max-width: 560px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.1); padding: 10px 22px 16px; gap: 2px; box-shadow: var(--shadow);
  }
  .nav-links.open a { margin: 0; min-height: 44px; display: flex; align-items: center; color: #fff; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }
  .cart-btn span:nth-child(2) { display: none; }
}
@media (max-width: 900px) {
  .grid, .work-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(2n) { border-right: 0; }
  .why-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .process-grid::before { display: none; }
  .slider-btn { display: none; }
  .work-slider > .work { flex-basis: 76%; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 32px 26px; }
  .cta-actions { grid-column: 1; grid-row: auto; flex-direction: row; }
  .stats { transform: none; margin-top: 24px; }
}
@media (max-width: 640px) {
  .brand .logo, .brand .logo svg { height: 46px; }
  .hero-inner { padding: 44px 0 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid, .work-grid, .review-grid { grid-template-columns: 1fr; }
  .why-grid, .process-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .why-item:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row, .pay-toggle { grid-template-columns: 1fr; }
  .cta { padding: 28px 20px; }
  .cta-actions { flex-direction: column; }
  section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .rate-card li { grid-template-columns: 34px 1fr auto; }
  .rate-card li .btn { grid-column: 2 / -1; justify-self: start; }
  .btn, .chip { min-height: 44px; }
  .btn-sm { padding: 11px 16px; }
  .nav-links.open a { padding: 12px 14px; }
  .cart-btn { min-height: 44px; }
  .icon-btn { min-width: 42px; min-height: 42px; display: grid; place-items: center; }
  .qty button { width: 36px; height: 36px; font-size: 1.2rem; }
  .star-input button { min-width: 44px; min-height: 44px; font-size: 2.1rem; }
  .star-input .star-label { margin-left: 4px; }
  .qr-box { padding: 18px 12px; }
  .ci-remove { padding: 8px 4px; }
  .field input, .field textarea, .field select { font-size: 16px; }
}

/* ---------- บทความ (Blog) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; color: inherit; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
@supports not (aspect-ratio: 16 / 9) { .post-thumb { min-height: 170px; } }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.post:hover .post-thumb img { transform: scale(1.04); }
.post-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  background: radial-gradient(500px 200px at 90% 0%, rgba(30,86,232,.6), transparent 60%), radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: auto, 22px 22px; position: relative; }
.post-ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--accent) 0 40px, #fff 40px 48px, var(--brand) 48px 88px, #fff 88px 96px); }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-bottom: 10px; }
.post-cat { background: var(--brand-light, #e9efff); color: var(--brand); padding: 3px 9px; border-radius: 6px; font-weight: 700; }
.post h3 { font-size: 1.04rem; line-height: 1.4; }
.post p { color: var(--muted); font-size: .88rem; margin-top: 8px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { margin-top: 14px; color: var(--brand); font-weight: 600; font-size: .9rem; }
.empty-note { color: var(--muted); text-align: center; padding: 40px 0; }

.art-wrap { padding: 0 0 60px; }
.art-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 40px; justify-content: center; }
.art-cover { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.art-cover img { width: 100%; display: block; }
.article { font-size: 1.02rem; line-height: 1.85; }
.article h2 { font-size: 1.35rem; margin: 34px 0 12px; padding-top: 6px; position: relative; padding-left: 16px; }
.article h2::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--accent); }
.article h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 16px 22px; display: flex; flex-direction: column; gap: 6px; }
.article a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--brand-light, #e9efff); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #12358f; }
.article code { font-family: var(--font-mono); background: var(--paper); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.article .table-scroll { overflow-x: auto; margin: 16px 0 20px; }
.art-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.art-table th, .art-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.art-table th { background: var(--paper); font-weight: 600; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-family: var(--font-mono); font-size: .78rem; color: rgba(255,255,255,.7); margin-top: 14px; }
.art-meta .post-cat { color: #fff; background: rgba(255,255,255,.14); }
.art-side { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.art-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.art-box h4 { font-size: .95rem; margin-bottom: 8px; }
.art-box p { color: var(--muted); font-size: .88rem; }
.art-box .btn { width: 100%; margin-top: 12px; }
.art-svc { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 34px 0 0; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #fff;
  background-image: radial-gradient(500px 200px at 90% 0%, rgba(30,86,232,.5), transparent 60%); }
.art-svc h3 { font-size: 1.15rem; margin-top: 6px; }
.art-svc p { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: 6px; }
.art-svc .kicker { color: var(--accent); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.art-svc-cta { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.art-svc-price { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; }
.art-svc-price span { display: block; font-size: .72rem; color: rgba(255,255,255,.6); font-weight: 500; }
.art-svc-price small { display: block; font-size: .72rem; color: rgba(255,255,255,.6); font-weight: 500; }
.art-svc .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.art-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); align-items: center; font-size: .88rem; color: var(--muted); }
.art-share a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-weight: 600; font-size: .85rem; }
.art-share a:hover { border-color: var(--brand); color: var(--brand); }
.art-related { margin-top: 48px; }
.art-related h2 { font-size: 1.3rem; margin-bottom: 18px; }
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .art-layout { grid-template-columns: 1fr; }
  .art-side { position: static; }
  .art-svc { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .article { font-size: .98rem; }
}
.art-rates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.art-rates li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.art-rates li:first-child { border-top: 0; }
.art-rates li .ri { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; }
.art-rates li .ri svg { width: 16px; height: 16px; }
.art-rates li .rt { font-weight: 600; font-size: .84rem; line-height: 1.3; }
.art-rates li .ru { font-size: .7rem; color: var(--muted); }
.art-rates li .rp { font-family: var(--font-mono); font-weight: 700; font-size: .9rem; }
.art-rates li .btn { display: none; }

/* ปุ่มบนแถบหัวสีเข้ม (เช่น "← กลับหน้าแรก" ในหน้าชำระเงิน/นโยบาย) ต้องเป็นตัวหนังสือขาว */
.site-header .btn-ghost { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.38); }
.site-header .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.14); border-color: #fff; }


/* ============================================================
   v16 — หน้ารายละเอียดบริการ / แพ็กเกจรวม / ขอใบเสนอราคา / ติดตามออเดอร์ / ปุ่ม LINE ลอย / แผนที่
   ============================================================ */
.card .price-row .price-was, .price-was { font-family: var(--font-mono); color: var(--muted); text-decoration: line-through; font-size: .85rem; margin-right: 2px; }
.card h3 a:hover { color: var(--brand); }
.sp-head .sp-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; margin-top: 8px; }
.sp-icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.sp-icon svg { width: 28px; height: 28px; }
.sp-badge { display: inline-block; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; letter-spacing: .04em; }
.sp-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.sp-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; }
.sp-meta-item .k { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.sp-meta-item strong { color: #fff; font-size: .9rem; font-weight: 600; }
.sp-buy { background: #fff; color: var(--text); border-radius: var(--radius); padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.sp-buy::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--accent) 0 50%, var(--brand) 50%); }
.sp-buy-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sp-price { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.sp-price .cur { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.sp-price small { font-size: .78rem; color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.sp-compare { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp-compare:empty { display: none; }
.sp-was { text-decoration: line-through; color: var(--muted); font-family: var(--font-mono); font-size: .88rem; }
.sp-save { background: var(--accent-soft); color: #9a3d00; font-family: var(--font-mono); font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.sp-buy .btn-ghost { color: var(--text); border-color: var(--line-strong); }
.sp-buy-note { font-size: .78rem; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.sp-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.sp-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.sp-box h3 { font-size: 1.05rem; margin-bottom: 6px; }
.sp-box .feature-list { margin: 8px 0 0; }
.feature-list .fi { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; margin-top: 2px; display: inline-block; }
.feature-list .fi svg { width: 20px; height: 20px; }
.sp-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px 24px; margin-bottom: 22px; }
.sp-detail h2:first-child { margin-top: 20px; }
.sp-faq { margin: 30px 0 10px; }
.sp-faq h2 { font-size: 1.3rem; margin-bottom: 14px; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--brand); font-size: 1.2rem; flex-shrink: 0; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); padding: 0 0 16px; line-height: 1.7; }
.sp-steps { margin: 10px 0 14px 18px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
.sp-steps li::marker { color: var(--brand); font-weight: 700; font-family: var(--font-mono); }
.sp-works, .sp-posts, .sp-related, .sp-bundles { margin-top: 44px; }
.sp-works .work-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .sp-head .sp-head-grid, .sp-layout { grid-template-columns: 1fr; } .sp-side { position: static; } .sp-works .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sp-works .work-grid { grid-template-columns: 1fr; } .sp-detail { padding: 4px 18px 18px; } }

/* ขอใบเสนอราคา */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.quote-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } .quote-side { position: static; } }

/* ติดตามออเดอร์ */
.ot-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 6px; counter-reset: ot; }
.ot-step { position: relative; padding: 12px 10px 10px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); text-align: center; }
.ot-step::before { counter-increment: ot; content: counter(ot); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 6px; background: #fff; border: 2px solid var(--line-strong); font-family: var(--font-mono); font-weight: 700; font-size: .78rem; }
.ot-step.done { background: #e8f8ee; border-color: #a7e3bd; color: #166534; }
.ot-step.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.ot-step.now { background: var(--brand-light); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.ot-step.now::before { background: var(--brand); border-color: var(--brand); color: #fff; }
.ot-cancel { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 600; margin-top: 14px; }
@media (max-width: 640px) { .ot-steps { grid-template-columns: repeat(2, 1fr); } }

/* ปุ่ม LINE ลอย — แสดงทุกขนาดจอ (ปุ่มโทรเฉพาะมือถือ) */
.fab-wrap { display: flex; }
@media (min-width: 901px) {
  .fab-call { display: none; }
  .fab-wrap { right: 22px; bottom: 22px; }
  .fab { position: relative; }
  .fab-line { width: 58px; height: 58px; }
  .fab-line::after { content: "แชท LINE"; position: absolute; right: 68px; top: 50%; transform: translate(6px, -50%); background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; transition: .2s; pointer-events: none; }
  .fab-line:hover::after { opacity: 1; transform: translate(0, -50%); }
}

/* แผนที่ในหน้าติดต่อ */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); margin: 34px auto 0; max-width: 760px; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-wrap .map-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; font-size: .88rem; color: var(--muted); }
.map-wrap .map-foot a { color: var(--brand); font-weight: 600; }
