/*
 * หน้าแรก + หน้าสินค้า แบบพื้นเข้ม (อ้างอิงเว็บขายธีม Kalles — เจ้าของขอ 19 ต.ค. 2026)
 * สีหลักชมพู #ff1a8c / ชมพูเข้ม #d6006a + พื้นดำอมม่วง (กลับมาโทนชมพูเดิม 23 ต.ค. 2026) · แถบประกาศวิ่ง → เมนูกลาง → หัวเว็บตัวใหญ่ + จอจำลอง → สินค้ากรองตามกลุ่ม → ตารางเปรียบเทียบ
 * ใช้แทน theme.css ในหน้าที่มี <body class="dark"> (หน้าใน เช่น สมัคร/คู่มือ ยังใช้ theme.css สีสว่าง)
 */
:root {
  --bg: #0d0710;
  --bg-2: #160c18;
  --panel: #1c1020;
  --panel-2: #26152b;
  --edge: rgba(255, 255, 255, .09);
  --text: #f3e9f0;
  --dim: #ab98a8;
  --faint: #7a6676;
  --pink: #d6006a;
  --pink-2: #d6006a;
  --glow: #ff3d9a;
  --ok: #3ddc97;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.dark { margin: 0; background: var(--bg); color: var(--text); font-family: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: hidden; }
body.dark a { color: inherit; }
body.dark h1, body.dark h2, body.dark h3 { line-height: 1.15; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.grad-text { background: linear-gradient(90deg, #ffb3d6, var(--glow) 40%, #f6c453); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- แถบประกาศวิ่ง ---------- */
.marquee { background: #170d19; border-bottom: 1px solid var(--edge); overflow: hidden; white-space: nowrap; font-size: 14px; color: var(--dim); }
.marquee-track { display: inline-flex; gap: 40px; padding: 9px 0; animation: marquee 40s linear infinite; }
.marquee a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.marquee b { color: var(--glow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- เมนู ---------- */
.dnav { position: sticky; top: 0; z-index: 40; background: rgba(13, 7, 16, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--edge); }
.dnav-in { max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.dnav .logo { height: 44px; width: auto; display: block; }
.dnav nav { flex: 1; display: flex; justify-content: center; gap: 6px; }
.dnav nav > a, .dnav summary { position: relative; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 16px; cursor: pointer; list-style: none; }
.dnav summary::-webkit-details-marker { display: none; }
/* ลูกศรชี้ลงบอกว่าเมนูนี้กางได้ (เจ้าของขอ 19 ต.ค. 2026) — หมุนขึ้นเมื่อเปิด */
.dnav summary { display: inline-flex; align-items: center; gap: 6px; }
.dnav summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .2s; }
.dnav details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.dnav nav > a:hover, .dnav summary:hover, .dnav details[open] summary { background: rgba(255, 255, 255, .06); }
.dnav .drop { position: relative; }
.dnav .drop-panel { position: absolute; top: calc(100% + 12px); left: -12px; width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; box-shadow: 0 30px 60px -20px #000; }
.dnav .drop-panel a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 10px; border-radius: 12px; text-decoration: none; }
.dnav .drop-panel a:hover { background: rgba(255, 255, 255, .05); }
.dnav .drop-panel .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 61, 154, .12); color: var(--glow); }
.dnav .drop-panel .ic svg { width: 20px; height: 20px; }
.dnav .drop-panel b { font-size: 15px; }
.dnav .drop-panel small { color: var(--dim); font-size: 13px; }
.dnav .right { display: flex; gap: 10px; align-items: center; }
.dnav .login { color: var(--dim); text-decoration: none; font-size: 15px; }
.dnav .login:hover { color: #fff; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--edge); background: transparent; color: #fff; font-size: 20px; cursor: pointer; }

/* ---------- ปุ่ม ---------- */
.dbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; border: 1px solid var(--edge); background: #180d1b; color: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dbtn:hover { transform: translateY(-2px); border-color: rgba(255, 61, 154, .5); }
.dbtn.glow { background: radial-gradient(120% 140% at 70% 50%, rgba(255, 61, 154, .45), transparent 60%), #180d1b; box-shadow: 0 0 0 1px rgba(255, 61, 154, .35), 0 12px 40px -12px rgba(255, 61, 154, .6); }
.dbtn.solid { background: linear-gradient(135deg, var(--pink-2), var(--pink)); border-color: transparent; }
.dbtn.ghost { background: transparent; border-color: transparent; }
.dbtn.big { padding: 16px 26px; font-size: 17px; }
.dbtn svg { width: 18px; height: 18px; }

/* ---------- หัวเว็บ ---------- */
.dhero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 70% 0%, rgba(120, 0, 62, .75), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(120, 0, 62, .35), transparent 70%), var(--bg); }
.dhero::before { content: ''; position: absolute; left: 50%; top: 70px; width: 64%; height: 3px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #ffc2e0, transparent); filter: blur(1px); box-shadow: 0 0 60px 18px rgba(255, 61, 154, .35); }
.dhero-in { max-width: 1240px; margin: 0 auto; padding: 120px 20px 90px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; position: relative; }
.dhero .kick { font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; }
.dhero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 600; letter-spacing: -.01em; margin: 14px 0 22px; color: #fff; }
.dhero p.lead { color: var(--dim); font-size: 18px; max-width: 560px; margin: 0 0 30px; }
.dhero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dhero .fine { margin-top: 22px; color: var(--faint); font-size: 14px; }

/* จอจำลอง: เมนูสินค้าซ้าย + ตัวอย่างขวา (กดสลับได้) */
.window { background: #120914; border: 1px solid var(--edge); border-radius: 20px; padding: 14px; box-shadow: 0 50px 100px -30px #000, 0 0 0 1px rgba(255, 61, 154, .08); }
.window .dots { display: flex; gap: 6px; margin: 2px 4px 12px; }
.window .dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--faint); }
.window-in { display: grid; grid-template-columns: 210px 1fr; gap: 14px; min-height: 380px; }
.wlist { display: grid; gap: 6px; align-content: start; }
.wlist button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--dim); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.wlist button .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); flex: none; }
.wlist button .ic svg { width: 16px; height: 16px; }
.wlist button[aria-selected="true"] { background: rgba(255, 255, 255, .06); border-color: var(--edge); color: #fff; }
.wlist button[aria-selected="true"] .ic { background: linear-gradient(135deg, var(--glow), var(--pink)); color: #fff; }
.wview { background: #fdf6fa; color: #1d1220; border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.wview .tag { font-size: 12px; font-weight: 700; color: var(--pink); letter-spacing: .05em; }
.wview h3 { font-size: 24px; font-weight: 700; }
.wview p { margin: 0; color: #5a4a60; font-size: 14px; }
.wview ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: #3a2a40; display: grid; gap: 4px; }
.wview a { justify-self: start; margin-top: 6px; background: #1d1220; color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 8px; }

/* ---------- ส่วนทั่วไป ---------- */
.dsec { max-width: 1240px; margin: 0 auto; padding: 100px 20px; }
.dsec-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.dsec-head h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 600; color: #fff; }
.dsec-head h2 .big { font-size: 1.5em; font-weight: 500; margin-right: 18px; }
.dsec-head p { color: var(--dim); font-size: 18px; margin: 18px 0 0; }

/* ปุ่มกรองกลุ่มสินค้า */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
.chips button { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--edge); background: transparent; color: var(--dim); font: inherit; font-size: 16px; cursor: pointer; }
.chips button[aria-pressed="true"] { color: #fff; border-color: var(--glow); background: rgba(255, 61, 154, .08); }
.chips button svg { width: 18px; height: 18px; }

/* การ์ดสินค้า */
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dcard { background: #170c1a; border: 1px solid var(--edge); border-radius: 22px; padding: 14px; text-decoration: none; display: grid; gap: 14px; transition: transform .25s, border-color .25s; }
.dcard:hover { transform: translateY(-6px); border-color: rgba(255, 61, 154, .45); }
.dcard[hidden] { display: none; }
.thumb { aspect-ratio: 16 / 10; border-radius: 14px; background: linear-gradient(135deg, #fdf0f6, #f9dcea); position: relative; overflow: hidden; display: grid; place-items: center; color: #1d1220; }
.thumb .big-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #fff; box-shadow: 0 16px 30px -12px rgba(120, 0, 62, .5); color: var(--pink); }
.thumb .big-ic svg { width: 34px; height: 34px; }
.thumb .chip { position: absolute; font-size: 12px; font-weight: 600; background: #fff; border-radius: 999px; padding: 4px 10px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); }
.thumb .c1 { top: 14px; left: 14px; }
.thumb .c2 { bottom: 14px; right: 14px; background: var(--pink); color: #fff; }
.dcard .body { padding: 0 6px 6px; display: grid; gap: 6px; }
.dcard h3 { font-size: 20px; font-weight: 600; color: #fff; }
.dcard p { margin: 0; color: var(--dim); font-size: 15px; }
.dcard .go { color: var(--glow); font-weight: 600; font-size: 14px; }

/* ตารางเปรียบเทียบ */
.compare { border: 1px solid rgba(255, 61, 154, .4); border-radius: 26px; padding: 30px; background: linear-gradient(180deg, rgba(120, 0, 62, .18), transparent 40%); overflow-x: auto; }
.compare table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
.compare th { font-size: 20px; font-weight: 600; color: #fff; padding: 10px 16px 24px; text-align: center; }
.compare th:first-child { text-align: left; }
.compare td { padding: 18px 16px; border-bottom: 1px solid var(--edge); text-align: center; color: var(--dim); }
.compare td:first-child { text-align: left; color: var(--text); }
.compare td.mu { background: rgba(255, 255, 255, .03); color: var(--ok); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare .x { color: var(--faint); }

/* ความน่าเชื่อถือ */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { background: #170c1a; border: 1px solid var(--edge); border-radius: 18px; padding: 22px; }
.fact b { display: block; font-size: 30px; font-weight: 600; color: #fff; }
.fact span { color: var(--dim); font-size: 14px; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.reason { background: #170c1a; border: 1px solid var(--edge); border-radius: 18px; padding: 24px; }
.reason h3 { font-size: 18px; color: #fff; font-weight: 600; margin-bottom: 8px; }
.reason p { margin: 0; color: var(--dim); font-size: 15px; }

/* ราคา */
.dplans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dplan { background: #170c1a; border: 1px solid var(--edge); border-radius: 22px; padding: 28px; display: grid; gap: 14px; align-content: start; position: relative; }
.dplan.best { border-color: rgba(255, 61, 154, .6); box-shadow: 0 0 0 1px rgba(255, 61, 154, .25), 0 30px 60px -30px rgba(255, 61, 154, .5); }
.dplan .rib { position: absolute; top: -12px; right: 20px; background: var(--glow); color: #2a0016; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.dplan h3 { font-size: 22px; color: #fff; font-weight: 600; }
.dplan .for { color: var(--dim); font-size: 14px; margin: 0; }
.dplan .price b { font-size: 44px; font-weight: 600; color: #fff; }
.dplan .price span { color: var(--dim); }
.dplan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--text); font-size: 15px; }
.dplan li::before { content: '✓'; color: var(--ok); margin-right: 8px; }
.dplan li.soon { color: var(--faint); }
.dplan li.soon::before { color: var(--faint); }
.founder-d { text-align: center; margin: 0 auto 30px; max-width: 760px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(246, 196, 83, .4); background: rgba(246, 196, 83, .08); color: #f6dfa4; }
.founder-d small { display: block; color: var(--dim); margin-top: 4px; }
.note-d { text-align: center; color: var(--faint); font-size: 14px; margin-top: 24px; }

/* คำถาม */
.dfaq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.dfaq details { background: #170c1a; border: 1px solid var(--edge); border-radius: 14px; padding: 4px 20px; }
.dfaq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: #fff; }
.dfaq p { color: var(--dim); margin: 0 0 16px; }

/* ปิดท้าย */
.dfinal { text-align: center; border-radius: 28px; padding: 70px 24px; background: radial-gradient(600px 300px at 50% 0%, rgba(255, 61, 154, .35), transparent 70%), linear-gradient(180deg, #2e0b20, #12080f); border: 1px solid rgba(255, 61, 154, .3); }
.dfinal h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 600; color: #fff; }
.dfinal p { color: var(--dim); margin: 14px 0 28px; }
.dfinal .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ท้ายเว็บ */
.dfoot { border-top: 1px solid var(--edge); background: #0a050c; }
.dfoot-in { max-width: 1240px; margin: 0 auto; padding: 50px 20px 30px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.dfoot h4 { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 600; }
.dfoot a { display: block; color: var(--dim); text-decoration: none; font-size: 14px; padding: 4px 0; }
.dfoot a:hover { color: #fff; }
.dfoot p { color: var(--dim); font-size: 14px; }
.dfoot .copy { max-width: 1240px; margin: 0 auto; padding: 0 20px 30px; color: var(--faint); font-size: 13px; }

/* ปุ่มแชท LINE ลอย */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 10px; }
.chat-card { background: #fff; color: #1d1220; border-radius: 18px; padding: 12px 14px; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .6); display: grid; gap: 8px; width: 270px; }
.chat-card b { font-size: 15px; }
.chat-card small { color: #6a5a70; display: flex; gap: 6px; align-items: center; }
.chat-card small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #06c755; }
.chat-card a { display: flex; align-items: center; justify-content: center; gap: 8px; background: #06c755; color: #fff !important; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 9px 12px; font-size: 14px; }
.chat-x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #3e2f44; color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.chat-wrap { position: relative; }

/* โผล่ตอนเลื่อน */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .js .rv { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .dhero-in { grid-template-columns: 1fr; padding-top: 90px; }
  .dgrid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .reasons, .dplans { grid-template-columns: 1fr; }
  .dfoot-in { grid-template-columns: 1fr 1fr; }
  .dnav nav, .dnav .login { display: none; }
  .burger { display: block; }
  .dnav.open nav { display: grid; position: absolute; top: 100%; left: 12px; right: 12px; background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; padding: 10px; justify-content: stretch; }
  .dnav.open .drop-panel { position: static; transform: none; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0; background: transparent; }
}
@media (max-width: 640px) {
  .dgrid, .facts { grid-template-columns: 1fr; }
  .window-in { grid-template-columns: 1fr; }
  .wlist { grid-template-columns: repeat(2, 1fr); }
  .dfoot-in { grid-template-columns: 1fr; }
  .dsec { padding: 70px 20px; }
  .chat-card, .chat-x { display: none; }
  .dnav .right .dbtn { padding: 10px 14px; font-size: 14px; }
}

/* ปุ่มแชทกลม (เห็นเสมอ · กล่องข้อความซ่อนได้) */
.chat-fab { width: 56px; height: 56px; border-radius: 50%; background: #06c755; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(6, 199, 85, .7); flex: none; }
.chat-fab svg { width: 28px; height: 28px; }
.chat.closed .chat-wrap { display: none; }

/* ปัญหาที่ร้านเจอ → ทางแก้ (หน้าแรก #pain) */
.pn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pn { background: #170c1a; border: 1px solid var(--edge); border-radius: 18px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.pn h3 { font-size: 20px; color: #fff; font-weight: 600; }
.pn p { margin: 0; font-size: 15px; padding-left: 28px; position: relative; }
.pn .pn-bad { color: var(--dim); }
.pn .pn-bad::before { content: '✕'; position: absolute; left: 0; color: #f0716f; font-weight: 700; }
.pn .pn-fix { color: var(--text); }
.pn .pn-fix::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
@media (max-width: 760px) { .pn-grid { grid-template-columns: 1fr; } }

/* ---------- โทนนิ่งแบบ Apple (เจ้าของเลือก 19 ต.ค. 2026): ไม่มีแสงเรือง ไม่ไล่สี ภาพหน้าจอจริงเป็นพระเอก ---------- */
.grad-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
.dhero { background: radial-gradient(1100px 520px at 75% 30%, rgba(120, 0, 62, .32), transparent 70%), var(--bg); }
.dhero::before { display: none; }
.dhero-in { padding-top: 96px; grid-template-columns: 1fr 1.25fr; }
.dhero .kick { color: var(--glow); font-size: clamp(18px, 2vw, 22px); font-weight: 500; }
.dhero h1 { font-weight: 600; }
.dbtn.glow { background: #fff; color: #12080f; border-color: #fff; box-shadow: none; }
.dbtn.glow:hover { border-color: #fff; background: #fdf0f6; }
.dsec-head h2 .big { color: var(--glow); }

/* ภาพหน้าจอจริงในกรอบ */
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); background: #120914; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.shot img { display: block; width: 100%; height: auto; }
.hero-shot { transform: perspective(1600px) rotateY(-6deg); }

/* ทีละเรื่อง ซ้าย-ขวา */
.rows { display: grid; gap: 90px; }
.row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.row.flip .row-copy { order: 2; }
.row-copy h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; color: #fff; margin-bottom: 14px; }
.row-copy p { color: var(--dim); font-size: 17px; margin: 0 0 18px; }
.row-copy a { color: var(--glow); text-decoration: none; font-weight: 600; }

/* การ์ดสินค้า: ภาพจริง + ราคา */
.thumb.photo { background: #120914; place-items: stretch; }
.thumb.photo img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.price-line { display: block; margin-top: 4px; color: #fff; font-weight: 600; font-size: 14px; }

/* ทีมงานช่วยคุณ */
.help { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.help-item { background: #170c1a; border: 1px solid var(--edge); border-radius: 18px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.help-item h3 { font-size: 18px; color: #fff; font-weight: 600; }
.help-item p { margin: 0; color: var(--dim); font-size: 15px; }
.help-item a { color: var(--glow); text-decoration: none; font-weight: 600; font-size: 14px; }

@media (max-width: 1024px) {
  .dhero-in { grid-template-columns: 1fr; }
  .hero-shot { transform: none; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 24px; }
  .row.flip .row-copy { order: 0; }
  .help { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .help { grid-template-columns: 1fr; } .rows { gap: 56px; } }

/* moonup.co (เว็บหาร้านของลูกค้า) — ภาพมือถือ 3 เครื่อง */
.mco { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.kick-sm { color: var(--glow); font-weight: 600; margin: 0 0 10px; letter-spacing: .02em; }
.mco-copy h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; color: #fff; margin-bottom: 16px; }
.mco-copy > p { color: var(--dim); font-size: 17px; margin: 0 0 18px; }
.mco-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; color: var(--text); }
.mco-list li::before { content: '✓'; color: var(--ok); margin-right: 10px; font-weight: 700; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: center; }
.phone { margin: 0; border-radius: 28px; overflow: hidden; border: 6px solid #241628; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); background: #000; }
.phone img { display: block; width: 100%; height: auto; }
.phone.mid { transform: translateY(-24px) scale(1.06); }

/* ร้านที่ใช้งานจริง */
.realshop { position: relative; margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--edge); }
.realshop img { display: block; width: 100%; height: clamp(320px, 48vw, 560px); object-fit: cover; }
.realshop figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 32px 28px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); display: grid; gap: 4px; }
.realshop figcaption span { color: var(--glow); font-weight: 600; font-size: 14px; }
.realshop figcaption b { color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; }
.realshop figcaption small { color: #e6d8e2; font-size: 15px; }
.thumb.photo img[src*="society"] { object-position: center; }
@media (max-width: 1024px) { .mco { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .phones { gap: 8px; } .phone { border-width: 3px; border-radius: 18px; } }
/* ภาพมือถือ (สูง) ในการ์ดแนวนอน: ตัดให้เห็นผังโต๊ะ */
.thumb.photo.floor img { object-position: 50% 52%; }
/* ภาพเต็มกรอบการ์ดเสมอ (ความสูง % ในกริดไม่ทำงาน — ใช้ absolute แทน) */
.thumb.photo { position: relative; }
.thumb.photo img { position: absolute; inset: 0; }

/* ---------- หน้าสินค้า (pos.html, warp.html, …) ---------- */
.crumbs-d { max-width: 1240px; margin: 0 auto; padding: 20px 20px 0; font-size: 14px; color: var(--faint); }
.crumbs-d a { color: var(--dim); text-decoration: none; }
.crumbs-d a:hover { color: #fff; }
.p-hero .dhero-in { padding-top: 56px; }
.p-hero .shot.tall { max-width: 380px; justify-self: center; border-radius: 28px; border: 6px solid #241628; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: st; }
.step3 { background: #170c1a; border: 1px solid var(--edge); border-radius: 18px; padding: 26px; }
.step3::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 61, 154, .14); color: var(--glow); font-weight: 700; margin-bottom: 14px; }
.step3 h3 { color: #fff; font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step3 p { color: var(--dim); margin: 0; font-size: 15px; }
.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-item { background: #170c1a; border: 1px solid var(--edge); border-radius: 18px; padding: 26px; }
.price-item b { display: block; font-size: 32px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.price-item span { color: var(--dim); font-size: 15px; }
.related { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 1024px) { .steps3, .feat3, .price-box { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps3, .feat3, .price-box { grid-template-columns: 1fr; } }
/* จอเล็ก: เมนูกลางซ่อน → ดันปุ่มทดลองใช้ + ปุ่ม ☰ ไปชิดขวา */
.dnav .right { margin-left: auto; }
/* ภาพมือถือ (แนวตั้ง) ในแถวภาพหน้าจอ */
.row .shot.tall { max-width: 340px; justify-self: center; border-radius: 28px; border: 6px solid #241628; }

/* ---------- เอฟเฟกต์ (เจ้าของขอ 19 ต.ค. 2026) — นุ่ม ไม่ฉูดฉาด · ลดการเคลื่อนไหว = ปิดทั้งหมด ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* แสงเขียวหลังหัวเว็บเคลื่อนช้าๆ */
  .dhero::after { content: ''; position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(600px 360px at 30% 40%, rgba(255, 61, 154, .16), transparent 70%), radial-gradient(500px 300px at 75% 70%, rgba(120, 0, 62, .35), transparent 70%); animation: glowdrift 18s ease-in-out infinite alternate; }
  @keyframes glowdrift { to { transform: translate(6%, -4%) scale(1.08); } }
  .dhero-in { z-index: 1; }
  /* ภาพหัวเว็บลอย + เอียงตามเมาส์ (store.js ตั้ง --rx --ry) */
  .hero-shot { animation: floaty 7s ease-in-out infinite; transform: perspective(1600px) rotateY(var(--ry, -6deg)) rotateX(var(--rx, 0deg)); transition: transform .25s ease-out; }
  @keyframes floaty { 50% { translate: 0 -10px; } }
  /* แถวภาพหน้าจอ: เลื่อนเข้าจากด้านข้าง */
  .js .row.rv .shot { opacity: 0; transform: translateX(40px); transition: opacity .9s ease .15s, transform .9s cubic-bezier(.2, .7, .2, 1) .15s; }
  .js .row.flip.rv .shot { transform: translateX(-40px); }
  .js .row.rv.in .shot { opacity: 1; transform: none; }
  /* การ์ดสินค้า: ภาพขยายเบาๆ + ขอบเรือง */
  .dcard .thumb img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .dcard:hover .thumb img { transform: scale(1.05); }
  .dcard:hover { box-shadow: 0 0 0 1px rgba(255, 61, 154, .35), 0 30px 60px -30px rgba(255, 61, 154, .45); }
  /* โผล่ไล่กันทีละใบ (store.js ใส่ --d) */
  .js .rv { transition-delay: var(--d, 0ms); }
  /* มือถือ moonup.co ลอยสลับจังหวะ */
  .phone { animation: floaty 6s ease-in-out infinite; }
  .phone.mid { animation-delay: -2s; }
  .phone:last-child { animation-delay: -4s; }
  /* ปุ่มหลัก: แสงวิ่งผ่านเป็นระยะ */
  .dbtn.glow { position: relative; overflow: hidden; }
  .dbtn.glow::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 61, 154, .35), transparent); transform: skewX(-20deg); animation: btnshine 4.5s ease-in-out infinite; }
  @keyframes btnshine { 0%, 65% { left: -60%; } 100% { left: 130%; } }
}
.fact b em.cnt { font-style: normal; }

/* ปุ่ม LINE ลอยแบบเด่น: เม็ดยาวมีคำ + วงแสงกระเพื่อม (เจ้าของขอ 19 ต.ค. 2026) */
.chat-fab { width: auto; height: 56px; border-radius: 999px; padding: 0 20px 0 16px; display: inline-flex; gap: 10px; align-items: center; text-decoration: none; position: relative; font-weight: 700; font-size: 16px; box-shadow: 0 14px 34px -8px rgba(6, 199, 85, .75); }
.chat-fab .fab-text { color: #fff; white-space: nowrap; }
.chat-fab:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) {
  .chat-fab::before, .chat-fab::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(6, 199, 85, .7); animation: fabpulse 2.4s ease-out infinite; pointer-events: none; }
  .chat-fab::after { animation-delay: 1.2s; }
  @keyframes fabpulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
}
@media (max-width: 640px) { .chat-fab { height: 52px; padding: 0 16px 0 13px; font-size: 15px; } }
em.cnt { font-style: normal; }

/* แสงตามเมาส์บนพื้นหลัง (เจ้าของขอ 19 ต.ค. 2026) — store.js ตั้ง --mx --my · อยู่หลังเนื้อหา ไม่บังการกด */
body.dark.spot::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 61, 154, .2), rgba(255, 61, 154, .07) 40%, transparent 70%);
  transition: opacity .4s; }
body.dark.spot.spot-off::before { opacity: 0; }
body.dark.spot > header, body.dark.spot > main, body.dark.spot > nav, body.dark.spot > footer { position: relative; z-index: 1; }
body.dark.spot .dnav { position: sticky; z-index: 40; }
/* การ์ดสว่างตรงจุดที่เมาส์ชี้ */
body.dark.spot .dcard, body.dark.spot .help-item, body.dark.spot .pn, body.dark.spot .step3, body.dark.spot .price-item, body.dark.spot .fact, body.dark.spot .dplan { background-image: radial-gradient(200px circle at var(--cx, -999px) var(--cy, -999px), rgba(255, 61, 154, .16), transparent 60%); }

/* ---------- บล็อก / คู่มือ (blog/) ---------- */
.blog-hero { padding-bottom: 20px; }
.blog-hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 600; color: #fff; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bcard { background: #170c1a; border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; text-decoration: none; display: grid; grid-template-rows: auto 1fr; transition: transform .25s, border-color .25s; }
.bcard:hover { transform: translateY(-4px); border-color: rgba(255, 61, 154, .45); }
.bthumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2e0b20, #120914); overflow: hidden; }
.bthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.bkind { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 700; color: #2a0016; background: var(--glow); border-radius: 999px; padding: 3px 10px; }
.bkind.inline { position: static; display: inline-block; margin-bottom: 14px; }
.bbody { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.bbody h3 { font-size: 19px; font-weight: 600; color: #fff; line-height: 1.35; }
.bbody p { margin: 0; color: var(--dim); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bmeta { color: var(--faint); font-size: 13px; }
/* หน้าอ่านบทความ */
.art { max-width: 760px; margin: 0 auto; padding: 40px 20px 20px; }
.art-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; color: #fff; line-height: 1.25; }
.art-lead { color: var(--text); font-size: 19px; margin: 16px 0 10px; }
.art-meta { color: var(--faint); font-size: 14px; margin: 0 0 28px; }
.afig { margin: 26px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); background: #120914; }
.afig img { display: block; width: 100%; height: auto; }
.afig.tall { max-width: 340px; margin-left: auto; margin-right: auto; border-radius: 26px; border: 6px solid #241628; }
.afig figcaption { padding: 10px 14px; color: var(--dim); font-size: 14px; }
.toc { background: #170c1a; border: 1px solid var(--edge); border-radius: 16px; padding: 18px 22px; margin: 10px 0 30px; }
.toc b { color: #fff; }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--dim); text-decoration: none; }
.toc a:hover { color: var(--glow); }
.art-body { color: #e7d9e3; font-size: 17.5px; line-height: 1.85; }
.art-body h2 { color: #fff; font-size: clamp(23px, 3vw, 29px); font-weight: 600; margin: 44px 0 14px; scroll-margin-top: 90px; }
.art-body p { margin: 0 0 16px; }
.art-body b { color: #fff; }
.art-body ul, .art-body ol { margin: 0 0 18px; padding-left: 24px; display: grid; gap: 8px; }
.art-body .steps-ol { list-style: none; padding: 0; counter-reset: s; }
.art-body .steps-ol li { position: relative; padding: 14px 16px 14px 56px; background: #170c1a; border: 1px solid var(--edge); border-radius: 14px; counter-increment: s; }
.art-body .steps-ol li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 61, 154, .15); color: var(--glow); font-weight: 700; font-size: 14px; }
.atip { margin: 18px 0 22px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 61, 154, .08); border: 1px solid rgba(255, 61, 154, .3); color: var(--text); }
.atip::before { content: 'เคล็ดลับ'; display: block; color: var(--glow); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.art-faq { margin-top: 48px; }
.art-faq h2 { color: #fff; font-size: 26px; font-weight: 600; margin-bottom: 16px; }
.art-cta { margin: 48px 0 10px; padding: 30px; border-radius: 22px; border: 1px solid rgba(255, 61, 154, .3); background: linear-gradient(180deg, rgba(120, 0, 62, .35), rgba(18, 8, 15, .8)); }
.art-cta h2 { color: #fff; font-size: 24px; font-weight: 600; }
.art-cta p { color: var(--dim); margin: 10px 0 18px; }
.art-cta .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.art-prods { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 14px; }
.art-prods .dbtn { padding: 8px 14px; font-size: 14px; }
@media (max-width: 1024px) { .bgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bgrid { grid-template-columns: 1fr; } .art-body { font-size: 16.5px; } }
.bthumb .bph { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: rgba(255, 255, 255, .85); font-size: 22px; font-weight: 600; background: radial-gradient(circle at 30% 20%, rgba(255, 61, 154, .25), transparent 60%); }
.blog-hero { padding-top: 40px; }
.blog-hero + .dsec { padding-top: 30px; }
.toc ul.plain { list-style: none; padding-left: 0; margin: 10px 0 0; display: grid; gap: 6px; }
