/* ==========================================================
   รถเข็นห้างมือสอง — style.css (ใช้ร่วมกันทุกหน้า)
   โทน: เทาเข้มเกือบดำ + แสงเรืองแดงเข้ม สลับกับพื้นสว่าง
   ========================================================== */

:root {
  /* แบรนด์ */
  --red: #b3141c;          /* ปุ่มหลัก (ตัวอักษรขาวบนแดง 6.9:1) */
  --red-strong: #8f0f15;
  --red-soft: #fbeceb;
  --red-on-dark: #ff6d72;  /* ตัวอักษรแดงบนพื้นมืด (≥ 5.5:1) */
  --glow: rgba(179, 20, 28, .55);

  /* พื้นสว่าง */
  --ink: #1b1d21;
  --ink-2: #383d44;
  --muted: #5f656d;        /* 5.9:1 บนขาว */
  --line: #e3e5e8;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #ebecee;

  /* พื้นมืด */
  --night: #111214;
  --night-2: #17191c;
  --night-card: #1e2125;
  --night-line: rgba(255, 255, 255, .10);
  --on-dark: #f4f5f6;
  --on-dark-muted: #b6bbc2; /* 9:1 บน --night-2 */

  --ok: #1d7a46;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .06), 0 4px 14px rgba(20, 22, 26, .06);
  --shadow: 0 14px 40px rgba(20, 22, 26, .14);
  --shadow-dark: 0 18px 50px rgba(0, 0, 0, .45);
  --container: 1180px;
  --gutter: 20px;
  --header-h: 68px;
  --bar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Noto Sans Thai", "Sarabun", "Leelawadee UI", "Leelawadee", "Tahoma", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--night);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}
body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-strong); }
h1, h2, h3 { line-height: 1.28; margin: 0 0 .5em; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid #f2a33a;
  outline-offset: 2px;
  border-radius: 6px;
}

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

.visually-hidden {
  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-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- Icons ---------- */
.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons (ทรงแคปซูล) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .65em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(179, 20, 28, .35); }
.btn-primary:hover { background: var(--red-strong); color: #fff; box-shadow: 0 8px 26px rgba(179, 20, 28, .45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: #c9ccd1; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
/* ปุ่มรองบนพื้นมืด = เส้นขอบ */
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: .45em 1.1em; font-size: .95rem; }

.link-btn {
  display: inline-flex; align-items: center; gap: .4em;
  background: none; border: 0; padding: 6px 2px;
  font: inherit; font-size: .95rem; font-weight: 500;
  color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--red); }

/* ---------- Header (แถบเรียบ โปร่งแสง ติดบน) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 18, 20, .82);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--night-line);
  color: var(--on-dark);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.2rem; line-height: 1.2;
  margin-right: auto;
}
.brand:hover { color: #fff; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(179,20,28,.45);
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--on-dark-muted); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 9px 15px; border-radius: 999px;
  color: #d5d8dc; text-decoration: none; font-weight: 500;
  transition: background-color .2s ease, color .2s ease;
}
.site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(255,255,255,.12); box-shadow: inset 0 -2px 0 var(--red-on-dark); }

.header-cta { display: inline-flex; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--night-line); border-radius: 14px;
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(17,18,20,.97);
    border-bottom: 1px solid var(--night-line);
    box-shadow: var(--shadow-dark);
    padding: 8px var(--gutter) 18px;
    display: none;
  }
  .site-nav.is-open { display: block; animation: drop .22s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 14px 14px; font-size: 1.05rem; border-radius: 12px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red-on-dark); }
  .site-nav .nav-line { display: flex; margin-top: 12px; }
}
@media (min-width: 900px) { .site-nav .nav-line { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Sections (สลับมืด/สว่าง) ---------- */
.section { padding: 80px 0; position: relative; }
.section-alt { background: var(--surface-2); }
.section-dark {
  background: var(--night-2); color: var(--on-dark);
  isolation: isolate; overflow: hidden;
}
.section-dark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  left: 50%; top: -360px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(179,20,28,.28), rgba(179,20,28,0));
}
.section-head { max-width: 700px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  color: var(--red);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head.center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-title { font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.4rem); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-foot { margin-top: 36px; display: flex; justify-content: center; }

.section-dark .eyebrow { color: var(--red-on-dark); }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead, .section-dark .modal-note { color: var(--on-dark-muted); }
.section-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.45); }
.section-dark .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Hero (โทนมืด + แสงเรืองแดง) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night);
  color: #fff;
  padding: 72px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(179,20,28,.55), rgba(179,20,28,0) 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(179,20,28,.22), rgba(179,20,28,0) 70%);
}
.hero::after {
  /* ลายจุดจาง ๆ ให้ความรู้สึกโมเดิร์น */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid {
  display: grid; align-items: center; gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #e3e5e8; font-size: .9rem; font-weight: 500;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-on-dark); box-shadow: 0 0 10px var(--red-on-dark); }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 800; line-height: 1.18; margin-bottom: .4em; }
.hero h1 .accent {
  display: block;
  background: linear-gradient(90deg, #ff8a8e, #ff4d55);
  -webkit-background-clip: text; background-clip: text;
  color: #ff6d72; -webkit-text-fill-color: transparent;
}
.hero-lead { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); color: #cfd3d8; margin-bottom: 30px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%; z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, var(--glow), rgba(179,20,28,0));
  filter: blur(30px);
}
.hero-frame {
  border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-dark);
  aspect-ratio: 4 / 3.2;
  background: var(--night-card);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-chip {
  position: absolute; left: -18px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 16px;
  background: rgba(17,18,20,.86); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .92rem; font-weight: 600; color: #fff;
  box-shadow: var(--shadow-dark);
}
.hero-chip .icon { color: var(--red-on-dark); }

@media (max-width: 899px) {
  .hero { padding: 44px 0 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-chip { left: 12px; bottom: 12px; }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Page hero (หน้าย่อย) */
.page-hero {
  background: var(--night); color: #fff;
  padding: 60px 0 56px;
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(45% 90% at 85% 30%, rgba(179,20,28,.5), rgba(179,20,28,0) 70%),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px) 0 0 / 26px 26px;
}
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); font-weight: 800; }
.page-hero p { color: #cfd3d8; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .9rem; margin-bottom: 12px; }
.breadcrumb a { color: #cfd3d8; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #9aa0a8; }

/* ---------- Category tabs (ใต้ส่วนเปิด) ---------- */
.cat-section { padding-top: 0; }
.cat-shell {
  position: relative; z-index: 2;
  margin-top: -64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 12px;
}
.cat-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  padding: 6px; border-radius: 18px; background: var(--surface-2);
}
.cat-tab {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 12px;
  border: 0; border-radius: 14px;
  background: transparent; color: var(--ink-2);
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.cat-tab .tab-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: #fff; color: var(--red); flex: none;
  transition: background-color .25s ease, color .25s ease;
}
.cat-tab .tab-icon .icon { width: 20px; height: 20px; }
.cat-tab:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.cat-tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(17,18,20,.25); }
.cat-tab[aria-selected="true"] .tab-icon { background: var(--red); color: #fff; }
@media (max-width: 640px) {
  .cat-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tab { justify-content: flex-start; font-size: .95rem; }
}

.cat-panel {
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  padding: 28px 22px 22px;
}
.cat-panel.is-entering { animation: panelIn .42s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cat-panel-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); aspect-ratio: 4 / 3;
}
.cat-panel-media img { width: 100%; height: 100%; }
.cat-panel-media.cover img { object-fit: cover; }
.cat-panel-media.contain img { object-fit: contain; }
.cat-panel-media .badge { position: absolute; left: 12px; top: 12px; background: rgba(17,18,20,.85); color: #fff; }
.cat-panel h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); font-weight: 800; }
.cat-panel p { color: var(--muted); }
.cat-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cat-steps li {
  display: flex; gap: 14px; align-items: center;
  padding: 16px; border-radius: 14px; background: var(--surface-2);
}
.cat-steps .tab-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--red); flex: none; }
.cat-steps strong { display: block; line-height: 1.35; }
.cat-steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .cat-panel { grid-template-columns: 1fr; gap: 20px; padding: 20px 8px 10px; }
}

/* ---------- Features ---------- */
.features {
  display: grid; gap: 16px; margin-top: 40px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--red-soft); color: var(--red);
  margin-bottom: 14px;
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .3em; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; }
  .feature-icon { grid-row: span 2; margin: 0; }
}

/* ---------- Products ---------- */
.product-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  display: flex; flex-direction: column;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.section-dark .product-card { border-color: transparent; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.section-dark .product-card:hover { box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.product-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 3; /* ทุกการ์ดรูปขนาดเท่ากัน */
  overflow: hidden;
  padding: 0; border: 0; cursor: zoom-in;
  background: linear-gradient(180deg, #fafafa, #eeeff1); /* พื้นสว่างให้เห็นตัวรถเข็นชัด */
}
.product-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform .4s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.02); }
.product-media .zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(17,18,20,.8); color: #fff; font-size: .82rem; font-weight: 500;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; line-height: 1.4;
}
.badge .icon { width: 14px; height: 14px; }
.badge-example { background: #fff7d6; color: #5c4100; border: 1px solid #ecd27a; }
.badge-cat { background: var(--surface-2); color: var(--ink-2); }

.product-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 30px; }
.product-code { font-size: .9rem; color: var(--muted); margin: 0; }
.product-code strong { color: var(--ink-2); font-weight: 600; }
.product-name { font-size: 1.2rem; margin: 2px 0 4px; min-height: 2.9em; line-height: 1.45; }
.product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0 14px; }
.product-price .amount { font-size: 1.8rem; font-weight: 800; color: var(--red); line-height: 1.2; }
.product-price .amount.ask { font-size: 1.4rem; font-weight: 700; }
.product-price .unit { color: var(--muted); font-size: .95rem; }
.product-actions { margin-top: auto; display: grid; gap: 8px; }
.product-help { font-size: .86rem; color: var(--muted); line-height: 1.55; margin: 0; }
.product-actions .link-btn { justify-self: start; }

.filter-bar {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px; padding: 6px;
  background: var(--surface-2); border-radius: 999px;
}
.filter-btn {
  min-height: 44px; padding: 8px 20px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.filter-btn:hover { background: #fff; }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter-btn .count { opacity: .7; font-weight: 500; margin-left: 4px; }
.product-card.is-filtered-in { animation: panelIn .35s var(--ease); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--red-soft); color: var(--ink);
  border: 1px solid #f2c9c7;
  margin-bottom: 24px;
}
.notice .icon { color: var(--red); margin-top: 3px; }
.notice p { margin: 0; }

.empty-state { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; grid-column: 1 / -1; }

/* Image placeholder (เมื่อรูปไม่มี/โหลดไม่ได้) */
.img-placeholder {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 12px, rgba(0,0,0,0) 12px 24px),
    var(--surface-2);
  color: var(--muted); font-size: .92rem; text-align: center; padding: 16px;
}
.img-placeholder .icon { width: 44px; height: 44px; color: #b9bdc3; stroke-width: 1.5; }

/* ---------- Split / service blocks ---------- */
.split {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } }
.split-media {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--surface-3);
  position: relative; box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.media-caption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(17,18,20,.82); color: #fff;
  padding: 5px 12px; border-radius: 999px; font-size: .85rem;
}
.check-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--red); margin-top: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 22px;
  display: flex; flex-direction: column; gap: 16px;
  margin: 0;
  transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-card .quote-mark { width: 32px; height: 32px; color: var(--red); }
.review-card blockquote { margin: 0; font-size: 1.15rem; line-height: 1.65; font-weight: 500; }
.review-card blockquote p { margin: 0; }
.review-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted); }
.review-avatar {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-2);
}
.review-avatar .icon { width: 20px; height: 20px; }
.review-card figcaption strong { color: var(--ink); font-weight: 600; display: block; line-height: 1.3; }
.review-photo { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; width: 120px; aspect-ratio: 1; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.reviews-source { text-align: center; color: var(--muted); font-size: .92rem; margin: 22px 0 0; }
.reviews-nav { display: none; }

/* รีวิวบนพื้นมืด */
.section-dark .review-card { background: var(--night-card); border-color: var(--night-line); color: var(--on-dark); }
.section-dark .review-card:hover { border-color: rgba(255,109,114,.45); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.section-dark .review-card .quote-mark { color: var(--red-on-dark); }
.section-dark .review-card figcaption { color: var(--on-dark-muted); }
.section-dark .review-card figcaption strong { color: #fff; }
.section-dark .review-avatar { background: rgba(255,255,255,.08); color: #fff; }
.section-dark .reviews-source { color: var(--on-dark-muted); }

@media (max-width: 720px) {
  .reviews {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 10px;
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review-card { flex: 0 0 100%; scroll-snap-align: center; }
  .review-card:hover { transform: none; }
  .reviews-nav { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
  .reviews-nav button {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    display: grid; place-items: center; cursor: pointer;
  }
  .section-dark .reviews-nav button { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
  .reviews-nav button:disabled { opacity: .35; cursor: default; }
  .reviews-count { font-size: .92rem; color: var(--muted); min-width: 48px; text-align: center; }
  .section-dark .reviews-count { color: var(--on-dark-muted); }
}

/* ---------- Gallery (brand mockups) ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery-item {
  position: relative; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; cursor: zoom-in; aspect-ratio: 1;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; }
.gallery-item .badge { position: absolute; left: 8px; top: 8px; background: rgba(17,18,20,.85); color: #fff; }

/* ---------- แกลเลอรีภาพงานจริง (หน้าสินค้า, ข้อมูลจาก gallery.js) ---------- */
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.photo-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius-sm); background: var(--surface-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s var(--ease);
}
.photo-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.photo-item:hover img { transform: scale(1.03); }
.photo-item .img-placeholder { min-height: 0; height: 100%; }
.btn .count { opacity: .75; font-weight: 500; }

/* ---------- กันการเซฟ/ลากรูป (เฉพาะรูป ไม่กระทบการเลือกข้อความ) ---------- */
img {
  -webkit-user-drag: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; /* กันกดค้างบน iOS */
}
/* รูปที่ไม่ต้องกดขยาย: ไม่รับเมาส์เลย (รูปที่กดขยายได้ ปุ่มที่ครอบอยู่รับคลิกแทน) */
img:not([data-lightbox] img):not(.photo-item img):not([data-allow-save]) { pointer-events: none; }
img[data-allow-save] { -webkit-user-drag: auto; -webkit-touch-callout: default; }
[data-lightbox], .photo-item { -webkit-touch-callout: none; }
/* ชั้นโปร่งใสทับรูปในการ์ดและ lightbox: คลิกขวาจะโดนชั้นนี้แทนรูป */
.review-photo { position: relative; }
.product-media::after, .customer-thumb::after, .service-photo::after, .gallery-item::after,
.review-photo::after, .photo-item::after, .lightbox-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; background: transparent;
}
.product-media .zoom-hint, .customer-thumb .zoom-hint, .service-photo .media-caption, .gallery-item .badge { z-index: 2; pointer-events: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); counter-reset: step; }
.steps li {
  counter-increment: step;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps h3 { font-size: 1.08rem; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
.section-dark .steps li { background: var(--night-card); border-color: var(--night-line); }
.section-dark .steps h3 { color: #fff; }
.section-dark .steps p { color: var(--on-dark-muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 0; }
.contact-card h3 .icon { color: var(--red); }
.contact-card p { margin: 0; color: var(--muted); }
.phone-big { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.2rem); font-weight: 800; color: var(--ink); letter-spacing: .01em; text-decoration: none; }
.phone-big:hover { color: var(--red); }
.contact-card .btn-row { margin-top: 4px; }
.qr-box img { width: 180px; height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.info-list { margin: 0; display: grid; gap: 10px; }
.info-list dt { font-weight: 600; }
.info-list dd { margin: 0 0 6px; color: var(--muted); }

.status { min-height: 1.5em; font-size: .93rem; margin: 0; }
.status:empty { min-height: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--red); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s ease; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq-answer { padding: 0 22px 18px; color: var(--ink-2); margin: 0; }
.section-dark .faq details { background: var(--night-card); border-color: var(--night-line); }
.section-dark .faq details[open] { border-color: rgba(255,109,114,.4); }
.section-dark .faq summary { color: #fff; }
.section-dark .faq summary .icon { color: var(--on-dark-muted); }
.section-dark .faq .faq-answer { color: var(--on-dark-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: #fff;
  border-radius: 26px; padding: 44px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(60% 120% at 100% 50%, rgba(179,20,28,.6), rgba(179,20,28,0) 70%);
}
.cta-band h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); font-weight: 800; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #cfd3d8; }
@media (max-width: 600px) { .cta-band { padding: 30px 22px; } .cta-band .btn-row, .cta-band .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding: 60px 0 28px; font-size: .97rem; border-top: 1px solid var(--night-line); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ff9a9e; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer .brand { color: #fff; margin: 0 0 12px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-list a { display: inline-block; padding: 4px 0; }
.footer-phone { font-size: 1.35rem; font-weight: 700; }
.footer-line-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.footer-line-btn:hover { background: #fff; color: var(--ink); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center;
  font-size: .88rem; color: #9aa0a8;
}
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffd84d; color: #3d2d00; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; font-size: .9rem;
}
.demo-badge .icon { width: 18px; height: 18px; }

/* ---------- Mobile contact bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 899px) {
  :root { --bar-h: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(17,18,20,.9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--night-line);
  }
  .mobile-bar .btn { min-height: 52px; }
  .mobile-bar .btn-dark { background: transparent; border-color: rgba(255,255,255,.45); }
}

/* ---------- Dialogs ---------- */
dialog.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  color: var(--ink);
  overflow: auto;
}
dialog.modal[open] { animation: panelIn .28s var(--ease); }
dialog.modal::backdrop { background: rgba(10,11,12,.7); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { font-size: 1.2rem; margin: 0; }
.modal-body { padding: 14px 22px 22px; display: grid; gap: 14px; }
.modal-close {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.modal-close:hover { background: var(--surface-2); }
.msg-text {
  width: 100%; min-height: 168px; resize: vertical;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--surface-2);
}
.modal-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.modal-actions .btn { width: 100%; }
@media (max-width: 420px) { .modal-actions { grid-template-columns: 1fr; } }
.modal-note { font-size: .9rem; color: var(--muted); margin: 0; }

dialog.lightbox {
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 18px; background: var(--night); color: #fff;
  overflow: hidden;
}
dialog.lightbox[open] { animation: panelIn .28s var(--ease); }
dialog.lightbox::backdrop { background: rgba(8,8,10,.88); }
.lightbox-inner { position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.lightbox-figure { align-items: center; }
/* รูปขยายเป็น background-image ของ div (ไม่มีเมนู "บันทึกรูปภาพ") */
.lightbox-stage { position: relative; width: 100%; display: flex; justify-content: center; background: var(--night); }
.lightbox-photo {
  width: 100%; max-height: calc(100dvh - 110px); margin-inline: auto;
  background: var(--night) center / contain no-repeat;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.lightbox-photo[hidden] { display: none; }
.lightbox-stage .img-placeholder { min-height: 50vh; }
.lightbox-nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
.lightbox-nav:hover { background: #fff; }
.lightbox-nav[hidden] { display: none; }
.lightbox-figure figcaption { align-self: stretch; }
.lightbox-figure .img-placeholder { min-height: 50vh; background: var(--night-card); color: var(--on-dark-muted); }
.lightbox-figure figcaption { padding: 12px 64px 14px 18px; font-size: .95rem; color: #d5d8dc; }
.lightbox .modal-close { position: absolute; right: 10px; top: 10px; z-index: 2; background: rgba(255,255,255,.92); border-color: transparent; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 20px); z-index: 300;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 14px; box-shadow: var(--shadow);
  font-size: .95rem; max-width: calc(100vw - 32px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* ---------- สินค้า: คำอธิบายและป้ายเล็ก ---------- */
.product-desc { margin: 0 0 4px; font-size: .95rem; color: var(--muted); line-height: 1.6; }
.badge-tag { background: #e8f5ee; color: #155f37; border: 1px solid #b9dfc8; }

/* ---------- แถบสโลแกนจัดส่ง ---------- */
.slogan-band {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch;
  background: var(--night); color: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.slogan-band::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(70% 120% at 0% 0%, rgba(179,20,28,.55), rgba(179,20,28,0) 65%);
}
.slogan-body { padding: 40px 40px 36px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.slogan-body .eyebrow { color: var(--red-on-dark); margin: 0; }
.slogan-quote {
  margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 700; line-height: 1.5; color: #fff;
}
.qty-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qty-chips li {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  font-weight: 600; color: #e9ebee; font-size: .95rem;
}
.qty-chips li strong { font-size: 1.15rem; font-weight: 800; color: #fff; }
.qty-chips li:last-child { background: var(--red); border-color: var(--red); }
.slogan-note { margin: 0; font-size: .92rem; color: var(--on-dark-muted); display: flex; gap: 8px; align-items: center; }
.slogan-note .icon { color: var(--red-on-dark); }
.slogan-media { position: relative; min-height: 260px; background: var(--night-card); }
.slogan-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .slogan-band { grid-template-columns: 1fr; }
  .slogan-body { padding: 28px 22px 26px; }
  .slogan-media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* แถบสโลแกนแบบสั้น (หน้าบริการ) */
.slogan-mini {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  margin-top: 24px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.slogan-mini .icon-wrap { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--red); color: #fff; flex: none; }
.slogan-mini p { margin: 0; flex: 1 1 300px; font-weight: 600; }
.slogan-mini small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* ---------- ภาพงานบริการ 3 รูป ---------- */
.service-photos {
  display: grid; gap: 12px;
  grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr;
  aspect-ratio: 4 / 3.1;
}
.service-photo {
  position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius-sm); background: var(--surface-3);
  box-shadow: var(--shadow-sm);
}
.service-photo:first-child { grid-row: span 2; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.service-photo:hover img { transform: scale(1.03); }
.service-photo .media-caption { font-size: .8rem; padding: 4px 10px; left: 8px; bottom: 8px; max-width: calc(100% - 16px); text-align: left; }
@media (max-width: 520px) {
  .service-photos { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .service-photo:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 3; }
  .service-photo { aspect-ratio: 1; }
}
.service-heading { display: flex; gap: 14px; align-items: flex-start; }
.service-heading .icon-wrap { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red-soft); color: var(--red); flex: none; margin-top: 4px; }
.service-heading .icon-wrap .icon { width: 26px; height: 26px; }

/* ---------- ลูกค้าที่ไว้ใจเรา ---------- */
/* การ์ดทุกใบสูงเท่ากันในแถวเดียวกัน แกลเลอรีชิดล่างและสูงเท่ากัน ช่องไฟคงที่ */
.customer-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 760px) { .customer-grid { grid-template-columns: 1fr; gap: 18px; } }
.customer-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.customer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.customer-card.is-featured { grid-column: 1 / -1; }
.customer-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.customer-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--red-soft); color: var(--red); flex: none; }
.customer-icon .icon { width: 20px; height: 20px; }
.customer-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.customer-text { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.6; color: var(--ink); }
.customer-card:not(.is-featured) .customer-text { min-height: 3.2em; }
.customer-card.is-featured .customer-text { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); font-weight: 700; }
.customer-gallery {
  display: grid; gap: 10px; margin-top: auto;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  aspect-ratio: 16 / 9;
}
.customer-card.is-featured .customer-gallery { aspect-ratio: 4 / 1; }
.customer-gallery[data-count="1"] { --cols: 1; }
.customer-gallery[data-count="2"] { --cols: 2; }
.customer-gallery[data-count="3"] { --cols: 3; }
.customer-gallery[data-count="4"] { --cols: 4; }
@media (max-width: 760px) {
  .customer-gallery { aspect-ratio: 16 / 10; }
  .customer-card.is-featured .customer-gallery { aspect-ratio: 16 / 12; }
  .customer-gallery[data-count="4"] { --cols: 2; }
}
.customer-thumb {
  position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
  border-radius: 10px; background: var(--surface-2); min-height: 0; height: 100%;
}
.customer-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); display: block; }
.customer-thumb:hover img { transform: scale(1.04); }
.customer-thumb .zoom-hint {
  position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: rgba(17,18,20,.75); color: #fff;
}
.customer-thumb .zoom-hint .icon { width: 15px; height: 15px; }
.customer-thumb .img-placeholder { min-height: 0; height: 100%; }
.customer-more { margin-top: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.customer-more-text { margin: 0; max-width: 40rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 700; line-height: 1.6; color: var(--ink); }
.customer-ref { margin-top: 28px; }
/* การ์ดอ้างอิงในหน้าบริการกว้างเต็มแถว: ให้แถบรูปเตี้ยลงแบบการ์ดใหญ่ ไม่สูงเกินจอ */
.customer-ref .customer-card:not(.is-featured) .customer-text { min-height: 0; }
.customer-ref .customer-gallery { aspect-ratio: 3.4 / 1; }
@media (max-width: 760px) { .customer-ref .customer-gallery { aspect-ratio: 16 / 7; } }
.customer-ref-title { font-size: 1.05rem; margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }
.section-dark .customer-ref-title { color: #fff; }
.section-dark .customer-ref-title .icon { color: var(--red-on-dark); }

/* ---------- Motion: โผล่ขึ้นเมื่อเลื่อนถึง ---------- */
/* ใช้ translate แยกจาก transform เพื่อไม่ชนกับ hover ยกการ์ด */
.reveal-ready .reveal { opacity: 0; translate: 0 22px; transition: opacity .6s var(--ease), translate .6s var(--ease), transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal-ready .reveal { opacity: 1; translate: none; }
  .product-card:hover, .review-card:hover, .feature:hover, .gallery-item:hover, .customer-card:hover { transform: none; }
  .customer-thumb:hover img, .service-photo:hover img, .product-card:hover .product-media img, .photo-item:hover img { transform: none; }
  .photo-item:hover { transform: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  body { font-size: 1rem; }
}

[hidden] { display: none !important; }


/* ---------- พื้นหลังเคลื่อนไหว (bg-fx.js) ---------- */
.fx-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; display: block; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .fx-canvas { opacity: .6; } }
