/* ============================================================
   tabienonline.com — ระบบดีไซน์หลัก
   โทนสี: แดง / ขาว / ดำ
   ============================================================ */

:root {
  --red: #d81e27;
  --red-dark: #9e1119;
  --red-soft: #fdecec;
  --ink: #101014;
  --ink-2: #1c1c22;
  --ink-3: #2a2a32;
  --gray-9: #16161a;
  --gray-7: #3d3d46;
  --gray-6: #5b5b66;
  --gray-5: #8a8a95;
  --gray-4: #b9b9c2;
  --gray-3: #dcdce2;
  --gray-2: #eeeef2;
  --gray-1: #f6f6f8;
  --white: #fff;
  --gold: #c9a227;
  --gold-2: #f2d98b;
  --gold-3: #8c6d14;
  --grad-gold: linear-gradient(100deg, #8c6d14 0%, #c9a227 22%, #f7e6b0 48%, #c9a227 74%, #8c6d14 100%);
  --grad-red: linear-gradient(120deg, #9e1119 0%, #d81e27 55%, #ef3f47 100%);
  --sh-gold: 0 6px 22px rgba(201, 162, 39, .28);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(16, 16, 20, .06), 0 2px 8px rgba(16, 16, 20, .05);
  --sh-2: 0 4px 12px rgba(16, 16, 20, .08), 0 12px 32px rgba(16, 16, 20, .08);
  --sh-3: 0 18px 50px rgba(16, 16, 20, .16);
  --sh-red: 0 8px 24px rgba(216, 30, 39, .28);

  --wrap: 1240px;
  --head-h: 74px;

  --f-head: 'Anuphan', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Thai', 'Anuphan', system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
  overflow-x: clip; /* กันเมนูมือถือที่ซ่อนอยู่ทำให้เลื่อนจอไปด้านข้างได้ */
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3.1vw, 2.15rem); }
h3 { font-size: clamp(1.06rem, 1.9vw, 1.25rem); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-md { max-width: 900px; }
.wrap-sm { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; z-index: 999; background: var(--red); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; top: 0; }
.ic { flex: none; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* กันไม่ให้เนื้อหาในกริดดันหน้าเว็บให้กว้างเกินจอ (grid blowout) */
.slide-tx, .slide-img, .cta-tx, .cta-act, .pd-info, .pd-media,
.ct-form, .ct-side, .foot-col, .cstrip-tx, .svcx-i > div,
.grid > *, .svc-grid > *, .cat-grid > *, .promo-grid > *, .why-grid > *, .steps > *, .sb-in > * { min-width: 0; }

/* ── ปุ่ม ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: transform .16s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-block { width: 100%; }

.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .38) 50%, transparent 75%);
  transform: translateX(-130%); transition: transform .7s cubic-bezier(.22, .9, .3, 1);
}
.btn:hover::after { transform: translateX(130%); }
.btn-red { background: var(--grad-red); color: #fff; box-shadow: var(--sh-red); }
.btn-red:hover { box-shadow: 0 10px 30px rgba(216, 30, 39, .42); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--gray-1); }
.btn-outline { border-color: var(--gray-3); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost-w { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost-w:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn-plain { color: var(--gray-6); }
.btn-plain:hover { color: var(--red); }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05a948; }

/* ── แถบบนสุด ───────────────────────────────────────── */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .84); font-size: .82rem; }
.topbar-in { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 0; text-align: center; }
.tb-ic { color: var(--red); }

/* ── หัวเว็บ ────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--gray-2);
  transition: box-shadow .2s ease;
}
.site-head.stuck { box-shadow: var(--sh-1); }
.head-in { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: #fff; }
.brand-tx { display: flex; flex-direction: column; line-height: 1.1; }
.brand-tx b { font-family: var(--f-head); font-size: 1.06rem; font-weight: 700; letter-spacing: .01em; }
.brand-tx i { font-style: normal; font-size: .6rem; letter-spacing: .18em; color: var(--gray-5); font-weight: 600; }

.nav { margin-inline-start: auto; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 999px;
  font-family: var(--f-head); font-weight: 500; font-size: .94rem; color: var(--gray-7);
}
.nav > ul > li > a:hover { color: var(--red); background: var(--red-soft); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r); box-shadow: var(--sh-2);
  padding: 7px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: block; padding: 9px 13px; border-radius: 9px; font-size: .92rem; color: var(--gray-7); }
.sub a:hover { background: var(--red-soft); color: var(--red); }
.sub-ar { color: var(--gray-4); }

.head-act { display: flex; align-items: center; gap: 9px; flex: none; }
.head-act .btn { padding: 9px 16px; font-size: .88rem; }
.burger { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--ink); }
.burger:hover { background: var(--gray-1); }

/* ── แบนเนอร์สไลด์ (ภาพเต็มแผ่น เต็มความกว้างเว็บ) ──── */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero-track { position: relative; }
.slide { display: none; position: relative; }
.slide.on { display: block; animation: slideIn .7s cubic-bezier(.22, .9, .3, 1); }
@keyframes slideIn { from { opacity: 0; } to { opacity: 1; } }

/* ภาพค่อยๆ ซูมช้าๆ แบบ Ken Burns ให้ดูมีชีวิต */
.slide.on .slide-photo { animation: kenburns 16s ease-out both; }
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.085); } }

/* ข้อความไล่ปรากฏทีละบรรทัด */
.slide.on .slide-tx-in > * { animation: riseIn .8s cubic-bezier(.19, 1, .22, 1) both; }
.slide.on .slide-tx-in > *:nth-child(1) { animation-delay: .12s; }
.slide.on .slide-tx-in > *:nth-child(2) { animation-delay: .22s; }
.slide.on .slide-tx-in > *:nth-child(3) { animation-delay: .32s; }
.slide.on .slide-tx-in > *:nth-child(4) { animation-delay: .42s; }
.slide.on .slide-tx-in > *:nth-child(5) { animation-delay: .52s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ภาพแบนเนอร์เต็มจอ เต็มขอบทุกด้าน ไม่มีแถบว่าง */
.slide-media { position: relative; aspect-ratio: 24 / 10; max-height: 88vh; min-height: 380px; overflow: hidden; background: #0a0a0c; }
.slide-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ไล่เงาเฉพาะฝั่งที่วางข้อความ อีกฝั่งปล่อยให้เห็นภาพชัดเต็มๆ */
.slide-scrim { position: absolute; inset: 0; }
.tx-left .slide-scrim {
  background: linear-gradient(to right, rgba(6, 6, 8, .95) 0%, rgba(6, 6, 8, .88) 26%, rgba(6, 6, 8, .55) 44%, rgba(6, 6, 8, .12) 60%, transparent 76%),
              linear-gradient(to top, rgba(6, 6, 8, .45) 0%, transparent 26%);
}
.tx-right .slide-scrim {
  background: linear-gradient(to left, rgba(6, 6, 8, .95) 0%, rgba(6, 6, 8, .88) 26%, rgba(6, 6, 8, .55) 44%, rgba(6, 6, 8, .12) 60%, transparent 76%),
              linear-gradient(to top, rgba(6, 6, 8, .45) 0%, transparent 26%);
}

.slide-tx { position: absolute; inset: 0; display: grid; align-items: center; color: #fff; }
.slide-tx-in { width: min(100% - 40px, var(--wrap)); margin-inline: auto; display: grid; justify-items: start; gap: 0; }
.slide-tx-in > * { max-width: min(540px, 52%); }
.tx-right .slide-tx-in { justify-items: end; }
.tx-right .slide-tx-in { text-align: end; }
.tx-right .slide-list, .tx-right .slide-btns { justify-content: flex-end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-head); font-weight: 600;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red);
  background: var(--red-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.eyebrow.light {
  color: var(--gold-2); background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(201, 162, 39, .5); backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}
.slide-h {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(1.75rem, 3.9vw, 3rem); line-height: 1.18;
  margin: 0 0 12px; letter-spacing: -.022em;
  background: linear-gradient(180deg, #fff 30%, #e6d9b8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 24px rgba(0, 0, 0, .6));
}
.slide-sub { font-size: clamp(.98rem, 1.5vw, 1.14rem); color: rgba(255, 255, 255, .92); margin-bottom: 14px; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.slide-list { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 22px; }
.slide-list li {
  display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: rgba(255, 255, 255, .94);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  padding: 5px 13px; border-radius: 999px; backdrop-filter: blur(6px);
}
.slide-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.slide-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(12, 12, 14, .48); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: background .18s ease, transform .18s ease;
}
.hero-nav:hover { background: var(--red); transform: translateY(-50%) scale(1.06); }
.hero-nav.prev { inset-inline-start: 16px; }
.hero-nav.next { inset-inline-end: 16px; }

.hero-dots { position: absolute; z-index: 3; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; gap: 9px; }
.dot { width: 26px; height: 6px; border: 0; padding: 0; background: rgba(255, 255, 255, .34); border-radius: 99px; transition: .2s ease; }
.dot.on { background: var(--red); width: 40px; }
.hero-prog { position: absolute; bottom: 0; inset-inline: 0; height: 3px; background: rgba(255, 255, 255, .14); z-index: 3; }
.hero-prog i { display: block; height: 100%; width: 0; background: var(--red); }

/* ── แถบค้นหา ───────────────────────────────────────── */
.searchbar { position: relative; z-index: 5; padding-top: 26px; }
.sb-in {
  background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg); box-shadow: var(--sh-2);
  padding: 20px 24px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.sb-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sb-ic { color: var(--red); }
.sb-title strong { display: block; font-family: var(--f-head); font-size: 1.06rem; }
.sb-title span { font-size: .84rem; color: var(--gray-5); }
.sb-fields { display: grid; grid-template-columns: 2fr 1.2fr 1fr auto; gap: 10px; }
.sb-fields input, .sb-fields select {
  padding: 12px 14px; border: 1.5px solid var(--gray-3); border-radius: 12px; background: #fff; min-width: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sb-fields input:focus, .sb-fields select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.sb-stats { display: flex; gap: 26px; padding-inline-start: 24px; border-inline-start: 1px solid var(--gray-2); }
.sb-stats div { text-align: center; }
.sb-stats b { display: block; font-family: var(--f-head); font-size: 1.5rem; color: var(--red); line-height: 1.2; }
.sb-stats span { font-size: .78rem; color: var(--gray-5); }

/* ── ส่วนทั่วไป ─────────────────────────────────────── */
.sec { padding: clamp(52px, 6.5vw, 84px) 0; }
.sec-top { padding-top: clamp(30px, 4vw, 48px); }
.sec-tint { background: var(--gray-1); }
.sec-dark { background: var(--ink); color: rgba(255, 255, 255, .82); }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark .sec-desc { color: rgba(255, 255, 255, .68); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 4vw, 46px); }
.sec-head.left { text-align: start; margin-inline: 0; }
.sec-desc { color: var(--gray-6); font-size: 1.02rem; margin: 0; }
.sec-more { text-align: center; margin-top: 36px; }

/* ── การ์ดบริการ ────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  position: relative; padding: 30px 26px 26px; border: 1px solid var(--gray-2); border-radius: var(--r-lg);
  background: #fff; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc::after { content: ''; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--gray-3); }
.svc:hover::after { transform: scaleX(1); }
.svc-n { position: absolute; top: 18px; inset-inline-end: 22px; font-family: var(--f-head); font-size: 2.4rem; font-weight: 700; color: var(--gray-2); line-height: 1; }
.svc-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--red-soft); color: var(--red); margin-bottom: 16px; }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--gray-6); font-size: .95rem; margin-bottom: 16px; }
.svc-go { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; font-size: .9rem; font-family: var(--f-head); }

/* ── ตารางสินค้า ────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-2);
  border-radius: var(--r-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--gray-3); }
.card.is-sold { opacity: .78; }
/* contain ทุกจุด — รูปสัดส่วนไหนก็ไม่ถูกตัดขาด */
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--gray-1); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.card-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gray-4); }
.card-flag {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  background: var(--red); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 16, 20, .25);
}
.chip {
  position: absolute; top: 12px; inset-inline-end: 12px; padding: 5px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; background: rgba(16, 16, 20, .78); color: #fff; backdrop-filter: blur(4px);
}
/* ป้ายสถานะแบบอยู่ในเนื้อการ์ด ไม่ทับรูปป้ายทะเบียน */
.chip-flow { position: static; backdrop-filter: none; padding: 3px 10px; font-size: .72rem; }
.chip-ok { background: rgba(22, 133, 63, .9); }
.chip-warn { background: rgba(199, 122, 12, .92); }
.chip-off { background: rgba(70, 70, 80, .9); }
.chip-info { background: rgba(20, 90, 180, .9); }
.chip-hot { position: static; background: var(--red); display: inline-flex; align-items: center; gap: 4px; }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.plate-tag {
  display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--f-head); font-weight: 700;
  background: var(--ink); color: #fff; padding: 5px 12px; border-radius: 8px; letter-spacing: .01em;
  border: 2px solid var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
}
.plate-tag b { font-size: .95rem; }
.plate-tag i { font-style: normal; font-size: 1.05rem; }
.plate-tag.big { padding: 10px 20px; border-radius: 11px; }
.plate-tag.big b { font-size: 1.35rem; }
.plate-tag.big i { font-size: 1.6rem; }

.card-title { font-size: 1rem; margin: 0 0 9px; }
.card-title a:hover { color: var(--red); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.card-meta li { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--gray-5); white-space: nowrap; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px dashed var(--gray-3); }
.price { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; color: var(--red); }
.price.ask { font-size: .95rem; color: var(--gray-6); }
.card-go { display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; font-weight: 600; color: var(--gray-6); }
.card-go:hover { color: var(--red); }

/* ── หมวดหมู่ ───────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat { display: block; background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.cat:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.cat-img { aspect-ratio: 3 / 2; background: var(--ink); display: grid; place-items: center; color: rgba(255, 255, 255, .3); overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: contain; }
.cat-tx { padding: 18px 22px 22px; }
.cat-head { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.cat-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.cat-tx h3 { margin: 0; }
.cat-tx p { color: var(--gray-6); font-size: .9rem; margin-bottom: 12px; }
.cat-go { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-head); font-weight: 600; font-size: .88rem; color: var(--red); }

/* ── จุดเด่น ────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { padding: 26px 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); transition: background .2s ease, transform .2s ease; }
.why:hover { background: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.why-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--red); color: #fff; margin-bottom: 15px; }
.why h3 { font-size: 1.02rem; margin-bottom: 7px; }
.why p { font-size: .9rem; color: rgba(255, 255, 255, .68); margin: 0; }

/* ── ขั้นตอน ────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: st; }
.step { position: relative; padding: 26px 22px; background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg); }
.step::after { content: ''; position: absolute; top: 44px; inset-inline-end: -13px; width: 26px; height: 2px; background: var(--gray-3); }
.step:last-child::after { display: none; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--ink); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--gray-6); margin: 0; }

/* ── โปรโมชั่น ──────────────────────────────────────── */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promo { background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
/* ใช้ contain เพื่อไม่ตัดส่วนสำคัญของภาพออก */
.promo-img { background: var(--gray-1); border-bottom: 1px solid var(--gray-2); padding: 12px; }
.promo-img img { width: 100%; height: 290px; object-fit: contain; }
.promo-tx { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.promo-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.promo h3 { margin: 0; }
.promo p { color: var(--gray-6); font-size: .92rem; margin: 0; }
.promo-date { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--gray-5); }

/* ── แกลเลอรี ───────────────────────────────────────── */
/* แกลเลอรีแบบ masonry — ภาพแสดงเต็มตามสัดส่วนจริง ไม่ถูกครอป */
.gal { columns: 3; column-gap: 18px; }
.gal > a, .gal > .gal-i { break-inside: avoid; margin: 0 0 18px; display: block; }
.gal-i { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--gray-2); background: #fff; }
.gal-i img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.gal-i:hover img { transform: scale(1.03); }
.gal-i figcaption { padding: 12px 16px; font-size: .86rem; color: var(--ink); font-family: var(--f-head); font-weight: 600; }
.gal-i figcaption span { display: block; font-weight: 400; font-size: .8rem; color: var(--gray-5); font-family: var(--f-body); }

/* ── วิดีโอ ─────────────────────────────────────────── */
.vid { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--sh-2); }
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── แถบชวนติดต่อ ───────────────────────────────────── */
.cta-band { background: linear-gradient(115deg, var(--red-dark), var(--red) 62%, #e5333c); color: #fff; }
.cta-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: clamp(38px, 5vw, 58px) 0; }
.cta-tx h2 { color: #fff; margin-bottom: 8px; }
.cta-tx p { color: rgba(255, 255, 255, .9); margin: 0; font-size: 1.02rem; }
.cta-act { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; }
.cta-act small { width: 100%; text-align: end; display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: rgba(255, 255, 255, .82); font-size: .82rem; }

/* ── คำถามที่พบบ่อย ─────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq-i { border: 1px solid var(--gray-2); border-radius: var(--r); background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-i[open] { border-color: var(--red); box-shadow: var(--sh-1); }
.faq-i summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; cursor: pointer; font-family: var(--f-head); font-weight: 600; list-style: none; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary:hover { color: var(--red); }
.faq-ar { color: var(--gray-5); transition: transform .22s ease; }
.faq-i[open] .faq-ar { transform: rotate(180deg); color: var(--red); }
.faq-a { padding: 0 20px 18px; color: var(--gray-6); }
.faq-a p { margin: 0 0 .6em; }

/* ── แถบติดต่อหน้าแรก ───────────────────────────────── */
.cstrip { display: grid; grid-template-columns: 1.4fr .6fr; gap: 34px; align-items: center; background: var(--gray-1); border: 1px solid var(--gray-2); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 42px); }
.cstrip-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0 24px; }
.cstrip-list li { display: flex; gap: 12px; align-items: flex-start; }
.cs-ic { color: var(--red); margin-top: 4px; }
.cstrip-list span { display: block; font-size: .76rem; color: var(--gray-5); }
.cstrip-list a, .cstrip-list b { font-family: var(--f-head); font-weight: 600; font-size: .98rem; }
.cstrip-list a:hover { color: var(--red); }
.cstrip-qr { text-align: center; background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg); padding: 18px; }
.cstrip-qr img { width: 100%; max-width: 220px; margin-inline: auto; }
.cstrip-qr p { margin: 12px 0 0; font-size: .84rem; color: var(--gray-6); }

/* ── หัวหน้าย่อย ────────────────────────────────────── */
.crumb { background: var(--gray-1); border-bottom: 1px solid var(--gray-2); font-size: .84rem; }
.crumb ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 0; color: var(--gray-5); }
.crumb li + li::before { content: '/'; margin-inline-end: 6px; color: var(--gray-4); }
.crumb a:hover { color: var(--red); }
.crumb [aria-current] { color: var(--ink); font-weight: 600; }

.phero { background: var(--ink); color: #fff; padding: clamp(38px, 5vw, 62px) 0; position: relative; overflow: hidden; }
.phero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 120% at 8% 0%, rgba(216, 30, 39, .34), transparent 60%); }
.phero .wrap { position: relative; }
.phero h1 { margin-bottom: 10px; }
.phero p { color: rgba(255, 255, 255, .76); max-width: 62ch; margin: 0; }

/* ── ตัวกรอง ────────────────────────────────────────── */
.filters { background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 26px; box-shadow: var(--sh-1); }
.fl-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr 1.1fr 1.1fr auto; gap: 12px; align-items: end; }
.fl label { display: block; font-size: .76rem; font-weight: 600; color: var(--gray-6); margin-bottom: 5px; }
.fl input, .fl select { width: 100%; padding: 10px 13px; border: 1.5px solid var(--gray-3); border-radius: 10px; background: #fff; }
.fl input:focus, .fl select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.fl-ic { position: relative; display: flex; align-items: center; }
.fl-ic .ic { position: absolute; inset-inline-start: 12px; color: var(--gray-4); }
.fl-ic input { padding-inline-start: 38px; }
.fl-btns { display: flex; gap: 8px; }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.list-head p { margin: 0; color: var(--gray-6); font-size: .92rem; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 40px; }
.pg { display: inline-flex; align-items: center; gap: 5px; min-width: 42px; height: 42px; padding: 0 14px; justify-content: center; border: 1px solid var(--gray-3); border-radius: 11px; font-weight: 600; font-size: .9rem; color: var(--gray-7); }
.pg:hover { border-color: var(--red); color: var(--red); }
.pg.on { background: var(--red); border-color: var(--red); color: #fff; }
.pg.dots { border: 0; }

.empty { text-align: center; padding: 60px 20px; color: var(--gray-5); border: 1.5px dashed var(--gray-3); border-radius: var(--r-lg); }
.empty .ic { color: var(--gray-4); margin-bottom: 12px; }
.empty p { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: var(--gray-7); margin: 0 0 5px; }
.empty span { font-size: .9rem; }

/* ── รายละเอียดสินค้า ───────────────────────────────── */
.pd { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 48px); align-items: start; }
.pd-main { position: relative; border: 1px solid var(--gray-2); border-radius: var(--r-lg); overflow: hidden; background: var(--gray-1); aspect-ratio: 3 / 2; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gray-4); }
.pd-sold { position: absolute; top: 18px; inset-inline-start: 18px; background: rgba(16, 16, 20, .88); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-family: var(--f-head); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-th { width: 88px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid var(--gray-3); border-radius: 10px; overflow: hidden; background: none; }
.pd-th.on { border-color: var(--red); }
.pd-th img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pd-vid { margin-top: 14px; border-radius: var(--r); overflow: hidden; }
.pd-vid video { width: 100%; display: block; }

.pd-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.pd-tags .chip { position: static; }
.tagline { background: var(--red-soft); color: var(--red); padding: 5px 13px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.pd-h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.pd-plate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.pd-prov { color: var(--gray-5); font-size: .92rem; }
.pd-price { background: var(--gray-1); border: 1px solid var(--gray-2); border-radius: var(--r); padding: 18px 22px; margin-bottom: 20px; }
.pd-price .lbl { display: block; font-size: .8rem; color: var(--gray-5); }
.pd-price b { display: block; font-family: var(--f-head); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--red); line-height: 1.25; }
.pd-price b.ask { font-size: 1.3rem; color: var(--ink); }
.pd-price small { color: var(--gray-5); font-size: .8rem; }
.pd-meaning { display: flex; gap: 13px; background: #fff; border: 1px solid var(--gray-2); border-inline-start: 4px solid var(--red); border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; }
.pm-ic { color: var(--red); margin-top: 3px; }
.pd-meaning strong { display: block; font-family: var(--f-head); margin-bottom: 3px; }
.pd-meaning p { margin: 0; color: var(--gray-6); font-size: .93rem; }
.pd-act { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pd-spec { border: 1px solid var(--gray-2); border-radius: var(--r); overflow: hidden; margin-bottom: 24px; }
.pd-spec tr:nth-child(odd) { background: var(--gray-1); }
.pd-spec th, .pd-spec td { padding: 11px 18px; text-align: start; font-size: .92rem; }
.pd-spec th { color: var(--gray-6); font-weight: 500; width: 40%; }
.pd-spec td { font-weight: 600; font-family: var(--f-head); }
.pd-desc h2 { font-size: 1.15rem; }
.pd-desc p { color: var(--gray-6); font-size: .95rem; }
.pd-trust { display: grid; gap: 10px; margin-top: 20px; padding: 18px 20px; background: var(--gray-1); border: 1px solid var(--gray-2); border-radius: var(--r); }
.pd-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--gray-6); }
.pd-trust .ic { color: var(--red); margin-top: 3px; }

/* ── บริการ (หน้าเต็ม) ──────────────────────────────── */
.svcx { display: grid; gap: 22px; }
.svcx-i { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px; background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg); scroll-margin-top: 110px; }
.svcx-ic { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 18px; background: var(--red); color: #fff; box-shadow: var(--sh-red); }
.svcx-i h2 { font-size: 1.35rem; }
.ticks { display: grid; gap: 9px; margin-bottom: 20px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--gray-6); font-size: .95rem; }
.ticks .ic { color: var(--red); margin-top: 5px; }

/* ── เกี่ยวกับเรา ───────────────────────────────────── */
.prose { font-size: 1.02rem; color: var(--gray-7); }
.prose p { margin-bottom: 1.1em; }
.page-img { width: 100%; border-radius: var(--r-lg); margin-bottom: 26px; }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.about-facts > div { padding: 20px; background: var(--gray-1); border-radius: var(--r); text-align: center; }
.about-facts .ic { color: var(--red); margin: 0 auto 8px; }
.about-facts span { display: block; font-size: .76rem; color: var(--gray-5); }
.about-facts b { font-family: var(--f-head); font-size: .95rem; }

/* ── ฟอร์มติดต่อ ────────────────────────────────────── */
.ct { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: start; }
.ct-form { background: #fff; border: 1px solid var(--gray-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--sh-1); }
.ct-sub { color: var(--gray-6); font-size: .94rem; margin-bottom: 22px; }
.frm { display: grid; gap: 16px; }
.frm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.fld label em { color: var(--red); font-style: normal; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-3); border-radius: 11px; background: #fff; font-family: var(--f-body); }
.fld textarea { resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.hp { position: absolute !important; left: -9999px !important; }
.frm-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8rem; color: var(--gray-5); margin: 0; }
.alert { display: flex; gap: 13px; padding: 16px 18px; border-radius: var(--r); margin-bottom: 22px; }
.alert.ok { background: #e9f7ee; border: 1px solid #b7e2c6; color: #14683a; }
.alert.err { background: #fdecec; border: 1px solid #f4c2c4; color: #9e1119; }
.alert strong { display: block; font-family: var(--f-head); }
.alert p { margin: 0; font-size: .92rem; }

.ct-side { display: grid; gap: 20px; }
.ct-card { background: var(--gray-1); border: 1px solid var(--gray-2); border-radius: var(--r-lg); padding: 24px; }
.ct-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.ct-list { display: grid; gap: 14px; }
.ct-list li { display: flex; gap: 12px; align-items: flex-start; }
.ct-ic { color: var(--red); margin-top: 3px; }
.ct-list span { display: block; font-size: .76rem; color: var(--gray-5); }
.ct-list a, .ct-list b { font-family: var(--f-head); font-weight: 600; font-size: .96rem; }
.ct-list a:hover { color: var(--red); }
.ct-qr { width: 100%; max-width: 200px; margin: 18px auto 0; border-radius: var(--r); }
.ct-addr { display: flex; gap: 12px; align-items: flex-start; color: var(--gray-6); font-size: .93rem; }
.ct-map { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; margin-top: 14px; }
.ct-map iframe { width: 100%; height: 100%; border: 0; }

/* ── 404 ────────────────────────────────────────────── */
.nf { text-align: center; padding-block: clamp(60px, 10vw, 120px); }
.nf-code { font-family: var(--f-head); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--red-soft); line-height: 1; display: block; }
.nf h1 { margin-top: -.2em; }
.nf p { color: var(--gray-6); }
.nf-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ── ท้ายเว็บ ───────────────────────────────────────── */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, .68); padding-top: clamp(46px, 6vw, 68px); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 42px; }
.foot-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.foot-brand img { width: 92px; height: 92px; border-radius: 14px; object-fit: contain; background: #fff; margin-bottom: 16px; }
.foot-brand p { font-size: .9rem; line-height: 1.7; }
.soc-row { display: flex; gap: 9px; margin-top: 16px; }
.soc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #fff; transition: background .18s ease, transform .18s ease; }
.soc:hover { background: var(--red); transform: translateY(-3px); }
.foot-links { display: grid; gap: 9px; }
.foot-links a { font-size: .9rem; }
.foot-links a:hover { color: var(--red); }
.foot-contact { display: grid; gap: 11px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.fc-ic { color: var(--red); margin-top: 4px; }
.foot-contact a:hover { color: var(--red); }
.foot-qr { width: 104px; height: 104px; border-radius: 10px; margin-top: 16px; background: #fff; padding: 5px; }
.foot-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.foot-tags > span { color: rgba(255, 255, 255, .45); margin-inline-end: 6px; }
.foot-tags div { display: flex; flex-wrap: wrap; gap: 7px; }
.foot-tags a { background: rgba(255, 255, 255, .06); padding: 4px 12px; border-radius: 999px; }
.foot-tags a:hover { background: var(--red); color: #fff; }
.foot-bar { border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 0; font-size: .8rem; }
.foot-bar p { margin: 0; }
.foot-note { color: rgba(255, 255, 255, .42); }

/* ── ปุ่มลอย ────────────────────────────────────────── */
.floaty { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.fbtn { display: flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; color: #fff; font-family: var(--f-head); font-weight: 600; font-size: .9rem; box-shadow: var(--sh-2); transition: transform .18s ease; }
.fbtn:hover { transform: translateY(-3px); }
.fbtn-line { background: #06c755; }
.fbtn-call { background: var(--red); }

/* ── การตอบสนองต่อขนาดจอ ────────────────────────────── */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .fl-row { grid-template-columns: repeat(3, 1fr); }
  .fl-btns { grid-column: span 3; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); background: #fff; z-index: 120;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.3, .8, .3, 1), visibility .28s;
    padding: 84px 20px 24px; box-shadow: -12px 0 40px rgba(0, 0, 0, .18); overflow-y: auto;
    visibility: hidden;
  }
  body.nav-open .nav { transform: translateX(0); visibility: visible; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(10, 10, 12, .5); z-index: 110; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav > ul > li > a { padding: 13px 14px; font-size: 1rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-inline-start: 2px solid var(--gray-2); border-radius: 0; margin-inline-start: 14px; padding: 0 0 0 6px; }
  .burger { display: inline-flex; }
  .head-act .btn span { display: none; }
  .head-act .btn { padding: 10px; }

  /* มือถือ: ภาพอยู่บน ข้อความอยู่ล่าง ไม่ทับกัน ภาพเห็นเต็มทั้งรูป */
  .slide-media { height: clamp(300px, 46vh, 420px); }
  .tx-right .slide-tx-in { text-align: start; }
  .tx-right .slide-tx-in { justify-items: start; }
  .tx-right .slide-list, .tx-right .slide-btns { justify-content: flex-start; }
  .slide-scrim { background: linear-gradient(to top, rgba(8, 8, 10, .5) 0%, rgba(8, 8, 10, .04) 42%, rgba(8, 8, 10, .22) 100%); }
  .slide-tx { position: static; display: block; padding: 24px 0 36px; background: var(--ink); }
  .slide-tx-in > * { max-width: none; }
  .hero-nav { display: none; }
  .hero-dots { position: static; padding: 14px 0 0; }
  .hero-prog { display: none; }

  .sb-in { grid-template-columns: 1fr; }
  .sb-stats { border-inline-start: 0; border-top: 1px solid var(--gray-2); padding: 16px 0 0; justify-content: space-around; }
  .sb-fields { grid-template-columns: 1fr 1fr; }

  .svc-grid, .cat-grid, .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .gal { columns: 2; }
  .cta-in, .cstrip, .pd, .ct { grid-template-columns: 1fr; }
  .cta-act { justify-content: flex-start; }
  .cta-act small { text-align: start; justify-content: flex-start; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .cat-grid, .promo-grid, .why-grid, .steps { grid-template-columns: 1fr; }
  .gal { columns: 1; }
  .sb-fields { grid-template-columns: 1fr; }
  .fl-row { grid-template-columns: 1fr 1fr; }
  .fl-btns { grid-column: span 2; }
  .f-grow { grid-column: span 2; }
  .frm-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .svcx-i { grid-template-columns: 1fr; }
  .pd-act .btn { width: 100%; }
  .fbtn span { display: none; }
  .fbtn { padding: 14px; }
  .card-body { padding: 13px 14px 15px; }
  .card-meta { gap: 3px 9px; }
}

@media (max-width: 520px) {
  /* ปุ่มยาวๆ ให้ขึ้นบรรทัดใหม่ได้ ไม่ดันจอ */
  .btn { white-space: normal; }
  .slide-btns { display: grid; gap: 10px; width: 100%; }
  .slide-btns .btn, .nf-btns .btn, .cta-act .btn { width: 100%; }
  .cta-act { display: grid; }
  .sb-title { align-items: flex-start; }
}

@media (max-width: 420px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .fl-row { grid-template-columns: 1fr; }
  .fl-btns, .f-grow { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .site-foot, .floaty, .topbar, .cta-band, .hero-nav, .hero-dots { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   ลูกเล่นและงานตกแต่งระดับพรีเมียม
   ═══════════════════════════════════════════════════════════ */

/* ── เส้นคั่นทองใต้หัวข้อแต่ละส่วน ───────────────────── */
.sec-head h2 { position: relative; display: inline-block; }
.sec-head h2::after {
  content: ''; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  width: 74px; height: 2px; background: var(--grad-gold); border-radius: 2px;
  box-shadow: 0 0 14px rgba(201, 162, 39, .55);
}
.sec-head.left h2::after { left: 0; transform: none; }
.sec-head h2 + .sec-desc { margin-top: 26px; }

/* ── การ์ดสินค้า: ขอบทองเรืองแสงและแสงวิ่งตอนชี้ ─────── */
.card { position: relative; isolation: isolate; }
.card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: var(--grad-gold); opacity: 0; transition: opacity .35s ease;
}
.card:hover::before { opacity: .9; }
.card:hover { box-shadow: 0 14px 40px rgba(16, 16, 20, .16), var(--sh-gold); }
.card-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .85s cubic-bezier(.22, .9, .3, 1);
}
.card:hover .card-media::after { transform: translateX(120%); }
.card:hover .card-media img { transform: scale(1.055); }

/* ── ราคาแบบตัวอักษรทอง ─────────────────────────────── */
.price { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price.ask { background: none; color: var(--gray-6); }
.pd-price b { background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-price b.ask { background: none; color: var(--ink); }
.pd-price { position: relative; overflow: hidden; }
.pd-price::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-gold);
}

/* ── ป้ายทะเบียนจำลอง: ขอบเงาแบบโลหะ ────────────────── */
.plate-tag {
  background: linear-gradient(165deg, #23232b 0%, #0e0e12 100%);
  border-color: #3a3a44;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 10px rgba(0, 0, 0, .22);
}
.plate-tag i { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── การ์ดบริการ: ไฮไลต์ทองและยกตัว ─────────────────── */
.svc::after { background: var(--grad-gold); height: 3px; }
.svc:hover { box-shadow: 0 16px 44px rgba(16, 16, 20, .12); }
.svc-ic { background: var(--grad-red); color: #fff; box-shadow: var(--sh-red); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.svc:hover .svc-ic { transform: translateY(-4px) rotate(-6deg) scale(1.06); }
.svc-n { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .3; }
.svc:hover .svc-n { opacity: .55; }

/* ── หมวดหมู่: ซูมภาพนุ่มๆ ──────────────────────────── */
.cat-img img { transition: transform .6s cubic-bezier(.22, .9, .3, 1); }
.cat:hover .cat-img img { transform: scale(1.06); }
.cat:hover { box-shadow: 0 16px 44px rgba(16, 16, 20, .14); }
.cat-ic { background: var(--grad-red); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.cat:hover .cat-ic { transform: rotate(-8deg) scale(1.08); }

/* ── ส่วนพื้นดำ: เพิ่มมิติแบบผ้ากำมะหยี่ ───────────── */
.sec-dark { position: relative; overflow: hidden; }
.sec-dark::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 15% 0%, rgba(216, 30, 39, .16), transparent 62%),
              radial-gradient(50% 60% at 88% 100%, rgba(201, 162, 39, .1), transparent 60%);
  pointer-events: none;
}
.sec-dark .wrap { position: relative; }
.why { backdrop-filter: blur(2px); transition: transform .35s cubic-bezier(.22, .9, .3, 1), background .3s ease, border-color .3s ease; }
.why:hover { border-color: rgba(201, 162, 39, .42); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.why-ic { background: var(--grad-red); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.why:hover .why-ic { transform: translateY(-3px) scale(1.07); }

/* ── ขั้นตอน: เลขทอง ─────────────────────────────────── */
.step { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.step:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(16, 16, 20, .12); border-color: rgba(201, 162, 39, .5); }
.step-n { background: linear-gradient(165deg, #23232b, #0e0e12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.step-n { background-clip: padding-box; }
.step:hover .step-n { background: var(--grad-red); }
.step::after { background: linear-gradient(to right, var(--gray-3), transparent); }

/* ── แถบชวนติดต่อ: ลายเส้นแสงเคลื่อนไหว ─────────────── */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(45% 120% at 12% 50%, rgba(255, 255, 255, .16), transparent 60%);
  animation: ctaGlow 9s ease-in-out infinite alternate;
}
@keyframes ctaGlow { from { transform: translateX(-8%); } to { transform: translateX(12%); } }
.cta-band .wrap { position: relative; }
.cta-band::after {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--grad-gold);
}

/* ── สถิติในกล่องค้นหา: นับเลขขึ้น ──────────────────── */
.sb-stats b { background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.sb-in { position: relative; overflow: hidden; }
.sb-in::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad-gold); }

/* ── คำถามที่พบบ่อย: เปิด-ปิดนุ่มนวล ────────────────── */
.faq-i { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.faq-i:hover { transform: translateX(3px); }
.faq-i[open] { border-color: rgba(201, 162, 39, .6); }
.faq-i[open] .faq-a { animation: faqIn .35s ease both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── แกลเลอรี: ยกและเงาลึก ──────────────────────────── */
.gal-i { transition: transform .4s cubic-bezier(.22, .9, .3, 1), box-shadow .4s ease; }
.gal-i:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(16, 16, 20, .18); }

/* ── โปรโมชั่น ──────────────────────────────────────── */
.promo { transition: transform .35s cubic-bezier(.22, .9, .3, 1), box-shadow .35s ease; }
.promo:hover { transform: translateY(-6px); box-shadow: 0 18px 46px rgba(16, 16, 20, .15); }
.promo-badge { background: var(--grad-red); }

/* ── ท้ายเว็บ: เส้นทองคั่น ──────────────────────────── */
.site-foot { position: relative; }
.site-foot::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--grad-gold); opacity: .85; }
.soc { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .25s ease; }
.soc:hover { transform: translateY(-4px) scale(1.06); }

/* ── ปุ่มลอย: เต้นเบาๆ เรียกความสนใจ ────────────────── */
.fbtn { position: relative; }
.fbtn-call::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--red);
  animation: pulseRing 2.6s cubic-bezier(.22, .9, .3, 1) infinite; pointer-events: none;
}
@keyframes pulseRing { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.28); } }

/* ── หัวเว็บเมื่อเลื่อน ─────────────────────────────── */
.site-head.stuck { box-shadow: 0 6px 26px rgba(16, 16, 20, .1); background: rgba(255, 255, 255, .96); }
.brand img { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }

/* ── หน้ารายละเอียดสินค้า ───────────────────────────── */
.pd-main { transition: box-shadow .4s ease; }
.pd-main:hover { box-shadow: 0 20px 50px rgba(16, 16, 20, .16); }
.pd-h1 { background: linear-gradient(180deg, var(--ink) 40%, #4a4a55 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { background: var(--grad-gold); color: #2a2103; font-weight: 700; }

/* ── หัวหน้าย่อย: แสงนุ่ม ───────────────────────────── */
.phero::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--grad-gold); opacity: .7;
}

/* ── เอฟเฟกต์ปรากฏตอนเลื่อนหน้า ─────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .75s cubic-bezier(.19, 1, .22, 1), transform .75s cubic-bezier(.19, 1, .22, 1); }

@media (prefers-reduced-motion: reduce) {
  .slide.on .slide-photo, .cta-band::before, .fbtn-call::before { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   เลขศาสตร์ — ผลรวม คำทำนาย คะแนน และเกรด
   ═══════════════════════════════════════════════════════════ */
.numero {
  margin-top: clamp(30px, 4vw, 48px); padding: clamp(24px, 3.4vw, 40px);
  background: linear-gradient(160deg, #16161c 0%, #0c0c10 100%);
  border: 1px solid rgba(201, 162, 39, .3); border-radius: var(--r-xl);
  color: rgba(255, 255, 255, .84); position: relative; overflow: hidden;
}
.numero::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--grad-gold);
}
.numero::after {
  content: ''; position: absolute; width: 420px; height: 420px; inset-inline-end: -140px; top: -160px;
  background: radial-gradient(circle, rgba(201, 162, 39, .16), transparent 70%); pointer-events: none;
}
.numero-head { position: relative; margin-bottom: 24px; }
.numero-head h2 { color: #fff; font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin: 0 0 6px; }
.numero-head h2::after { display: none; }
.numero-head p { color: rgba(255, 255, 255, .6); font-size: .92rem; margin: 0; }
.numero .eyebrow { background: rgba(201, 162, 39, .14); color: var(--gold-2); border: 1px solid rgba(201, 162, 39, .4); }

.numero-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.numero-grid > div {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r); padding: 18px 20px;
}
.numero-grid .lbl { display: block; font-size: .76rem; color: rgba(255, 255, 255, .55); margin-bottom: 4px; }
.numero-total b { font-family: var(--f-head); font-size: 2.6rem; line-height: 1.05; display: block;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numero-total .sub, .numero-grade .sub { font-size: .8rem; color: rgba(255, 255, 255, .5); }
.numero-grade b {
  font-family: var(--f-head); font-size: 2.6rem; line-height: 1.05; display: block; color: #fff;
}
.numero-grade.tone-top b { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numero-grade.tone-good b { color: #6ee7a0; }
.numero-grade.tone-mid b { color: #f0c765; }
.numero-grade.tone-low b { color: #ff8f8f; }
.nscore { display: flex; align-items: baseline; gap: 5px; margin-bottom: 10px; }
.nscore b { font-family: var(--f-head); font-size: 2.2rem; color: #fff; line-height: 1; }
.nscore span { font-size: .85rem; color: rgba(255, 255, 255, .5); }
.nbar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.nbar i { display: block; height: 100%; background: var(--grad-gold); border-radius: 99px; animation: barGrow 1.1s cubic-bezier(.19, 1, .22, 1) both; }
@keyframes barGrow { from { width: 0 !important; } }

.numero-calc { position: relative; margin-bottom: 18px; }
.numero-calc .lbl { display: block; font-size: .76rem; color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.nb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nb {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 11px; border-radius: 9px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--f-head); font-weight: 600; font-size: .95rem; color: #fff;
}
.nb i { font-style: normal; font-size: .78rem; color: var(--gold-2); }
.nb.letter { border-color: rgba(201, 162, 39, .4); }
.nb.sum { background: var(--grad-red); border-color: transparent; font-size: 1.05rem; }
.nb-row em { font-style: normal; color: rgba(255, 255, 255, .4); font-size: .85rem; }

.numero-say { position: relative; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-inline-start: 3px solid var(--gold); border-radius: var(--r); padding: 20px 22px; margin-bottom: 18px; }
.numero-say h3 { display: flex; align-items: center; gap: 9px; color: var(--gold-2); font-size: 1.12rem; margin: 0 0 12px; }
.numero-say p { color: rgba(255, 255, 255, .78); font-size: .95rem; margin: 0 0 .7em; }
.numero-say p:last-child { margin-bottom: 0; }
.muted-box { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6); font-size: .92rem; }
.nk-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.nk { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px;
  background: rgba(201, 162, 39, .14); border: 1px solid rgba(201, 162, 39, .34); color: var(--gold-2); font-size: .8rem; font-weight: 600; }

.numero-bonus { position: relative; margin-bottom: 20px; }
.numero-bonus .lbl { display: block; font-size: .76rem; color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.numero-bonus ul { display: grid; gap: 6px; }
.numero-bonus li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem;
  padding: 9px 14px; background: rgba(255, 255, 255, .04); border-radius: 9px; color: rgba(255, 255, 255, .74); }
.numero-bonus b { color: var(--gold-2); font-family: var(--f-head); }

.numero-act { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.numero-act .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.numero-act .btn-outline:hover { border-color: var(--gold); color: var(--gold-2); }
.numero-note { position: relative; display: flex; align-items: center; gap: 6px; margin: 16px 0 0;
  font-size: .78rem; color: rgba(255, 255, 255, .45); }

/* ป้ายเกรดบนการ์ดสินค้า */
.card-grade {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-family: var(--f-head); font-weight: 700; font-size: .74rem;
  background: rgba(12, 12, 16, .82); color: var(--gold-2); border: 1px solid rgba(201, 162, 39, .5);
  backdrop-filter: blur(4px);
}
.pd-tags .chip-grade { background: var(--grad-gold); color: #2a2103; font-weight: 700; }

@media (max-width: 700px) {
  .numero-grid { grid-template-columns: 1fr; }
  .numero-act .btn { width: 100%; }
}
