/* =========================================================
   HITTONIC — เว็บร้าน · style.css (หน้าร้าน + ส่วนที่ใช้ร่วมกับหลังบ้าน)
   ดำ · ขาว · แดง · แนวเทคโนโลยี
   ========================================================= */
:root {
  --black: #0b0b0c;
  --bg: #0b0b0c;
  --bg-2: #111114;
  --card: #151519;
  --card-2: #1b1b20;
  --line: #26262d;
  --line-2: #33333b;
  --text: #f4f4f5;
  --muted: #9a9aa6;
  --red: #e10a2f;
  --red-2: #b8061f;
  --red-glow: rgba(225, 10, 47, .45);
  --green: #22c55e;
  --yellow: #f5b50b;
  --radius: 18px;
  --head: "Kanit", "Anuphan", sans-serif;
  --font: "Anuphan", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.site { background: var(--bg); color: var(--text); }
body.no-scroll { overflow: hidden; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0; letter-spacing: .2px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i { width: 18px; height: 18px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
button, a, input, select, textarea { touch-action: manipulation; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 15px;
  border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s, background .15s, box-shadow .2s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 24px -6px var(--red-glow); }
.btn-red:hover { background: var(--red-2); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-white { background: #fff; color: var(--black); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 20px;
  padding: 0 max(16px, calc((100vw - 1180px) / 2)); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11,11,12,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: 1.5px; }
.nav-brand img { width: 46px; height: auto; }
.nav-brand em { color: var(--red); font-style: normal; }
.nav-links { display: none; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: #d4d4d8; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: auto; }
@media (min-width: 860px) { .nav-links { display: flex; } .nav-cta { margin-left: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 92vh; min-height: 92svh; display: flex; align-items: center;
  padding: 96px 16px 56px; background: radial-gradient(ellipse at 70% 40%, rgba(225,10,47,.14), transparent 55%), var(--bg); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-circuit .traces path { stroke: #2a2a31; stroke-width: 2.5; fill: none; }
.hero-circuit .pads circle { fill: #0b0b0c; stroke: #3a3a43; stroke-width: 2.5; }
.hero-circuit .pulses path { stroke: var(--red); stroke-width: 3; fill: none; stroke-dasharray: 60 900; stroke-dashoffset: 960; filter: drop-shadow(0 0 6px var(--red)); animation: pulse 5.5s linear infinite; }
.hero-circuit .pulses path:nth-child(2) { animation-delay: 1.4s; }
.hero-circuit .pulses path:nth-child(3) { animation-delay: 2.8s; }
.hero-circuit .pulses path:nth-child(4) { animation-delay: 4.1s; }
@keyframes pulse { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-circuit .pulses path { animation: none; opacity: 0; } html { scroll-behavior: auto; } }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; display: grid; gap: 36px; align-items: center; }
.chip-tag { display: inline-block; font-size: 13px; font-weight: 600; color: #ffb3bf; background: rgba(225,10,47,.14); border: 1px solid rgba(225,10,47,.4);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 7.5vw, 62px); font-weight: 700; }
.hero-sub { color: #c4c4cc; font-size: clamp(15.5px, 2.2vw, 18px); max-width: 560px; margin: 18px 0 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; max-width: 540px; }
.hero-stats div { border-left: 2px solid var(--red); padding: 2px 0 2px 12px; }
.hero-stats b { display: block; font-family: var(--head); font-size: 26px; }
.hero-stats span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; }
.hero-logo { position: relative; display: grid; place-items: center; order: -1; }
.hero-logo img { position: relative; width: min(78%, 420px); height: auto; filter: drop-shadow(0 0 30px rgba(255,255,255,.08)); }
.logo-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(225,10,47,.35), transparent 65%); filter: blur(20px); }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-logo { order: 0; }
  .hero-logo img { width: 100%; }
}
@media (max-width: 899px) { .hero { min-height: auto; padding-top: 84px; } .hero-logo img { width: min(62%, 300px); } }

/* ---------- sections ---------- */
.sec { padding: 72px 16px; max-width: 1212px; margin: 0 auto; }
.sec-alt { max-width: none; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-left: max(16px, calc((100% - 1180px) / 2)); padding-right: max(16px, calc((100% - 1180px) / 2)); }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(26px, 5vw, 38px); }
.sec-head p { margin: 8px 0 0; }
.kicker { font-family: var(--head); color: var(--red); font-weight: 600; font-size: 13.5px; letter-spacing: 2px; display: block; margin-bottom: 8px; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.svc { background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.svc:hover { border-color: rgba(225,10,47,.55); transform: translateY(-2px); }
.svc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(225,10,47,.12); color: var(--red); margin-bottom: 14px; border: 1px solid rgba(225,10,47,.3); }
.svc-ic svg { width: 26px; height: 26px; }
.svc h3 { font-size: 19px; }
.svc p { color: var(--muted); margin: 6px 0 0; font-size: 14.5px; }

/* ---------- chips / filter ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1.5px solid var(--line-2); background: transparent; color: #d4d4d8; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.chips button em { font-style: normal; color: var(--muted); margin-left: 4px; font-weight: 500; }
.chips button.on { background: var(--red); border-color: var(--red); color: #fff; }
.chips button.on em { color: #ffd0d8; }

/* ---------- work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.work-grid-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.wcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.wcard:hover { border-color: rgba(225,10,47,.6); transform: translateY(-3px); }
.wcard:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wcard-img { position: relative; aspect-ratio: 4 / 3; background: #0f0f12; }
.wcard-img img { width: 100%; height: 100%; object-fit: cover; }
.wcard-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #3a3a43; aspect-ratio: 4 / 3; }
.wcard-ph svg { width: 56px; height: 56px; }
.wbadge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.wbadge svg { width: 13px; height: 13px; }
.wcount { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 8px; }
.wcard-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wcat { font-size: 12.5px; color: var(--red); font-weight: 600; letter-spacing: .3px; }
.wcard h3 { font-size: 18px; }
.wcard p { color: var(--muted); margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wreason { display: flex; flex-wrap: wrap; gap: 6px; }
.wreason em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; background: rgba(34,197,94,.12); color: #86efac; padding: 2px 8px; border-radius: 999px; }
.wreason svg { width: 12px; height: 12px; }
.wfoot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.wfoot b { font-size: 15px; }
.wfoot span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.wfoot svg { width: 15px; height: 15px; }
.skeleton { height: 330px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-dark { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); }
.empty-dark svg { width: 44px; height: 44px; margin: 0 auto 10px; color: #4a4a55; }

/* ---------- finder ---------- */
.finder { background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 20px; }
.fs-label { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.fs-label span { width: 26px; height: 26px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-family: var(--head); font-size: 14px; flex: none; }
.fs-label em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 13px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { border: 1.5px solid var(--line-2); background: rgba(255,255,255,.03); color: #e4e4e7; font: inherit; font-size: 14.5px; padding: 9px 14px; border-radius: 12px; cursor: pointer; transition: all .15s; }
.pick button:hover { border-color: #55555f; }
.pick button.on { border-color: var(--red); background: rgba(225,10,47,.16); color: #fff; box-shadow: 0 0 0 1px var(--red) inset; }
.res-title { font-size: 20px; margin: 6px 0 14px; font-weight: 600; }
.res-title b { color: var(--red); }
.lead-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 18px; border-radius: 16px;
  background: linear-gradient(120deg, var(--red-2), var(--red)); }
.lead-cta b { display: block; font-size: 17px; }
.lead-cta span { font-size: 14px; color: #ffe1e6; }

/* ---------- queue ---------- */
.queue-form { display: flex; gap: 10px; max-width: 560px; }
.queue-form input { flex: 1; min-width: 0; font: inherit; font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  background: var(--card); color: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 16px; }
.queue-form input::placeholder { color: #55555f; letter-spacing: 1px; }
.queue-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,10,47,.2); }
.q-last { margin: 12px 0 0; }
.q-last button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 4px 0; }
.q-last b { color: #fff; font-family: var(--head); letter-spacing: 1px; }
.q-last svg { width: 16px; height: 16px; }
.q-card { max-width: 640px; margin-top: 18px; background: #fff; color: #18181b; border-radius: 22px; padding: 22px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); }
.q-loading { display: grid; place-items: center; min-height: 120px; }
.q-empty { text-align: center; color: #52525b; }
.q-empty svg { width: 40px; height: 40px; margin: 0 auto 8px; color: #a1a1aa; }
.q-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.q-head small { color: #71717a; font-family: var(--head); font-weight: 600; letter-spacing: .5px; }
.q-head h3 { font-size: 21px; margin: 2px 0; }
.q-head .muted { color: #71717a; font-size: 14px; }
.q-pct { text-align: right; flex: none; }
.q-pct small { white-space: nowrap; }
.q-pct b { display: block; font-family: var(--head); font-size: 30px; color: var(--red); line-height: 1; }
.q-pct small { font-size: 12px; color: #71717a; }
.q-bar { height: 8px; background: #f0f0f3; border-radius: 99px; overflow: hidden; margin: 16px 0 18px; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-2), var(--red)); border-radius: 99px; transition: width .6s ease; }
.q-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.q-steps li { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.q-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: #e6e6ea; }
.q-steps li.done:not(:last-child)::before { background: var(--red); }
.q-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #f0f0f3; color: #a1a1aa; font-family: var(--head); font-weight: 700; position: relative; z-index: 1; }
.q-dot svg { width: 17px; height: 17px; stroke-width: 3; }
.q-steps li.done .q-dot { background: var(--red); color: #fff; }
.q-steps li.now .q-dot { background: #fff; color: var(--red); box-shadow: 0 0 0 3px var(--red), 0 0 0 7px rgba(225,10,47,.18); animation: ring 1.8s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 3px var(--red), 0 0 0 10px rgba(225,10,47,.06); } }
.q-steps b { display: block; font-size: 15.5px; }
.q-steps li:not(.done):not(.now) b { color: #a1a1aa; font-weight: 500; }
.q-steps small { color: #71717a; font-size: 13px; }
.q-steps li.now small { color: #3f3f46; }
.q-msg { background: #fff5f6; border-left: 4px solid var(--red); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin-top: 4px; }
.q-msg b { display: block; font-size: 13px; color: var(--red); }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: #3f3f46; }
.q-foot span { display: inline-flex; align-items: center; gap: 6px; }
.q-foot svg { width: 16px; height: 16px; color: var(--red); }
.q-done { display: flex; align-items: center; gap: 8px; margin-top: 14px; background: #e7f6ec; color: #15803d; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.spinner { width: 34px; height: 34px; border: 4px solid #e6e6ea; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- how ---------- */
.how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; counter-reset: h; }
.how { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); }
.how b { font-family: var(--head); font-size: 34px; color: transparent; -webkit-text-stroke: 1.5px var(--red); display: block; line-height: 1; margin-bottom: 10px; }
.how h3 { font-size: 18px; }
.how p { color: var(--muted); margin: 6px 0 0; font-size: 14.5px; }

/* ---------- contact ---------- */
.sec-contact { padding-bottom: 40px; }
.contact-card { display: grid; gap: 24px; background: radial-gradient(ellipse at 100% 0%, rgba(225,10,47,.22), transparent 55%), var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.contact-card h2 { font-size: clamp(26px, 5vw, 36px); }
.contact-card > div > p { margin: 10px 0 0; white-space: pre-line; }
.contact-meta { display: grid; gap: 8px; margin-top: 16px; }
.contact-meta div { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: #d4d4d8; }
.contact-meta svg { color: var(--red); margin-top: 2px; }
.contact-btns { display: grid; gap: 10px; align-content: start; }
.cbtn { display: flex; align-items: center; gap: 14px; text-decoration: none; background: rgba(255,255,255,.04); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 13px 16px; transition: border-color .15s, background .15s; }
.cbtn:hover { border-color: var(--red); background: rgba(225,10,47,.08); }
.cbtn svg { width: 26px; height: 26px; color: var(--red); }
.cbtn span { display: flex; flex-direction: column; line-height: 1.3; font-size: 14px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.cbtn b { color: #fff; font-size: 16px; }
.cbtn-line { background: #06c755; border-color: #06c755; }
.cbtn-line svg, .cbtn-line span { color: #fff; }
.cbtn-line:hover { background: #05b04c; border-color: #05b04c; }
@media (min-width: 860px) { .contact-card { grid-template-columns: 1.2fr 1fr; padding: 38px; } }

.foot { text-align: center; padding: 30px 16px calc(96px + var(--safe-b)); color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
.foot img { width: 120px; height: auto; margin: 0 auto 10px; opacity: .8; }
.foot p { margin: 0 0 8px; }
.foot-staff { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #6b6b75; }
.foot-staff a { color: #d4d4d8; text-decoration: none; border: 1px solid var(--line-2); padding: 5px 12px; border-radius: 999px; }
.foot-staff a:hover { border-color: var(--red); color: #fff; }
@media (min-width: 860px) { .foot { padding-bottom: 30px; } }

/* ---------- quick bar (มือถือ) ---------- */
.quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; gap: 6px;
  padding: 8px 10px calc(8px + var(--safe-b)); background: rgba(11,11,12,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.quickbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-weight: 600; font-size: 12.5px; padding: 8px 4px; border-radius: 12px; background: rgba(255,255,255,.06); white-space: nowrap; }
.quickbar svg { width: 18px; height: 18px; }
.quickbar .qb-red { background: var(--red); }
body.no-scroll .quickbar { display: none; }
@media (min-width: 860px) { .quickbar { display: none; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(3px); }
.modal-box { position: relative; width: 100%; max-width: 480px; max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + var(--safe-b)); animation: up .22s ease-out; }
.modal-wide { max-width: 760px; padding: 0 0 calc(18px + var(--safe-b)); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 640px) { .modal { align-items: center; padding: 20px; } .modal-box { border-radius: 22px; } }
.mclose { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.m-title { font-size: 22px; padding-right: 40px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #09090b; aspect-ratio: 4 / 3; scrollbar-width: none; border-radius: 22px 22px 0 0; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img, .gallery .wcard-ph { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.gal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; min-height: 8px; }
.gal-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3a3a43; transition: all .2s; }
.gal-dots i.on { background: var(--red); width: 20px; border-radius: 4px; }
.wd-body { padding: 10px 20px 0; display: grid; gap: 12px; }
.wd-body h2 { font-size: 25px; }
.wd-sum { margin: 0; color: #d4d4d8; }
.wd-price { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; background: rgba(225,10,47,.1); border: 1px solid rgba(225,10,47,.35); border-radius: 14px; padding: 12px 14px; }
.wd-price svg { color: var(--red); }
.wd-price b { font-size: 19px; font-family: var(--head); }
.wd-price span { font-size: 12.5px; color: var(--muted); flex-basis: 100%; }
.wd-detail { color: #d4d4d8; font-size: 15px; }
.wd-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wd-tags span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-basis: 100%; }
.wd-tags span svg { width: 16px; height: 16px; }
.wd-tags em { font-style: normal; font-size: 13px; border: 1px solid var(--line-2); padding: 3px 10px; border-radius: 999px; }
.wd-actions { display: grid; gap: 8px; margin-top: 4px; }

/* forms (dark) */
.lead-form label { display: block; font-size: 13.5px; font-weight: 600; margin: 12px 0 6px; color: #d4d4d8; }
.lead-form label em { font-style: normal; font-weight: 400; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; font: inherit; font-size: 16px; color: #fff; background: #0e0e11; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 13px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--red); }
.lead-form .btn { margin-top: 18px; }
.lead-sum { background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; color: #d4d4d8; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }
.done-box { text-align: center; padding: 10px 4px; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.done-ic svg { width: 34px; height: 34px; stroke-width: 3; color: #fff; }
.done-box h3 { font-size: 22px; }
.done-btns { display: grid; gap: 8px; margin-top: 18px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translate(-50%, 12px); width: max-content; max-width: calc(100vw - 32px);
  background: #fff; color: #18181b; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 500; z-index: 300; opacity: 0; pointer-events: none; transition: all .22s; box-shadow: 0 10px 30px rgba(0,0,0,.4); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); color: #fff; }
.toast.success { background: #16a34a; color: #fff; }
@media (min-width: 860px) { .toast { bottom: 28px; } }
.wreason em.warn { background: rgba(245,181,11,.14); color: #fcd34d; }

/* =========================================================
   ร้านอุปกรณ์ออนไลน์
   ========================================================= */
.shop-search { display: flex; align-items: center; gap: 10px; max-width: 560px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 0 14px; margin-bottom: 14px; }
.shop-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,10,47,.2); }
.shop-search svg { color: var(--muted); }
.shop-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; padding: 13px 0; outline: none; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.shop-grid .skeleton { height: 280px; }
.sp-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.sp-card:hover { border-color: rgba(225,10,47,.6); transform: translateY(-2px); }
.sp-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sp-img { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.sp-img img { width: 100%; height: 100%; object-fit: contain; }
.sp-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 30px; color: rgba(255,255,255,.88); }
.sp-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sp-cat { font-size: 12px; color: var(--red); font-weight: 600; }
.sp-body h3 { font-family: var(--font); font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.sp-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.sp-foot b { display: block; font-family: var(--head); font-size: 18px; }
.sp-stk { display: inline-block; font-size: 11.5px; font-weight: 600; }
.sp-stk.ok { color: #86efac; }
.sp-stk.low { color: #fcd34d; }
.sp-stk.out { color: #ff8fa3; }
.sp-add { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px -6px var(--red-glow); }
.sp-add:active { transform: scale(.92); }
#shop-more { margin-top: 16px; }
.my-orders { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.my-orders:empty { display: none; }
.my-orders span { display: inline-flex; align-items: center; gap: 6px; }
.my-orders svg { width: 16px; height: 16px; }
.my-orders button { border: 1.5px solid var(--line-2); background: transparent; color: #fff; font-family: var(--head); font-weight: 600; letter-spacing: 1px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }

.cart-fab { position: fixed; right: 16px; bottom: calc(84px + var(--safe-b)); z-index: 46; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--red); color: #fff; padding: 12px 18px 12px 14px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 6px 24px -6px var(--red-glow); }
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab b { background: #fff; color: var(--red); min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; padding: 0 6px; }
.cart-fab span { font-family: var(--head); font-size: 17px; }
.cart-fab.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }
@media (min-width: 860px) { .cart-fab { bottom: 24px; right: 24px; } }
body.no-scroll .cart-fab { display: none; }

.cart-lines { display: grid; margin-top: 10px; }
.cl { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cl-img { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.cl-img img { width: 100%; height: 100%; object-fit: contain; }
.cl-img .sp-ph { font-size: 15px; }
.cl-mid { min-width: 0; }
.cl-mid b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cl-mid small { color: var(--muted); font-size: 12.5px; }
.cl-right { display: grid; justify-items: end; gap: 4px; }
.cl-right > b { font-family: var(--head); }
.qty { display: inline-flex; align-items: center; background: #0e0e11; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 18px; cursor: pointer; }
.qty b { min-width: 28px; text-align: center; }
.qty-lg button { width: 46px; height: 50px; font-size: 22px; }
.qty-lg b { min-width: 40px; font-size: 18px; }
.cart-sum { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 4px; font-weight: 600; }
.cart-sum b { font-family: var(--head); font-size: 26px; }
.ship-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ship-pick label { margin: 0 !important; cursor: pointer; }
.ship-pick input { position: absolute; opacity: 0; }
.ship-pick span { display: block; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; height: 100%; }
.ship-pick span b { display: block; color: #fff; }
.ship-pick span small { color: var(--muted); font-size: 12px; font-weight: 400; }
.ship-pick input:checked + span { border-color: var(--red); background: rgba(225,10,47,.12); box-shadow: 0 0 0 1px var(--red) inset; }
.order-code { font-family: var(--head); font-size: 34px; letter-spacing: 4px; font-weight: 700; margin: 4px 0 8px; color: #fff; }

.sp-detail-img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; border-radius: 22px 22px 0 0; overflow: hidden; }
.sp-detail-img img { width: 100%; height: 100%; object-fit: contain; }
.sp-detail-img .sp-ph { font-size: 60px; }
.sd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sd-price b { font-family: var(--head); font-size: 28px; }
.sd-buy { display: flex; gap: 10px; }
.sd-buy .btn { flex: 1; }

.os-card { margin-top: 0; box-shadow: none; padding: 6px 2px 0; }
.modal-box .os-card { background: transparent; color: var(--text); }
.os-card .q-head h3, .os-card .q-steps b { color: #fff; }
.os-card .q-steps li:not(.done):not(.now) b { color: #6b6b75; }
.os-card .q-dot { background: #26262d; }
.os-card .q-steps li:not(:last-child)::before { background: #33333b; }
.os-card .q-steps li.now .q-dot { background: var(--card); }
.os-card .q-steps small, .os-card .q-head small, .os-card .q-head .muted, .os-card .q-pct small { color: var(--muted); }
.os-card .q-steps li.now small { color: #d4d4d8; }
.os-card .q-pct b { font-size: 22px; }
.os-card .q-msg { background: rgba(225,10,47,.1); color: #f4f4f5; }
.os-card .q-foot { color: var(--muted); }
.os-pay { background: #fff; color: #111; border-radius: 18px; padding: 14px; text-align: center; margin: 12px 0; }
.os-pay img { width: 220px; height: 220px; margin: 0 auto; image-rendering: pixelated; }
.os-pay b { display: block; font-family: var(--head); font-size: 24px; }
.os-pay small { color: #52525b; }
.pp-head { background: #113566; color: #fff; border-radius: 10px; padding: 6px; font-weight: 700; margin-bottom: 8px; }
.os-items { display: grid; gap: 2px; font-size: 14px; margin-top: 12px; }
.os-items div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
.os-items em { font-style: normal; color: var(--muted); }
.os-card .q-head { padding-right: 46px; }

/* ---- สินค้าแนะนำ · ชุดเซ็ต · ราคาก่อนลด ---- */
.shop-feat { margin: 0 0 22px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(225,10,47,.14), rgba(225,10,47,.03)); border: 1px solid rgba(225,10,47,.35); }
.sf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sf-head h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0; }
.sf-head h3 svg { color: #fcd34d; }
.sf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 210px); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.sf-row .sp-card { scroll-snap-align: start; }
@media (max-width: 520px) { .sf-row { grid-auto-columns: 46%; } .shop-feat { padding: 12px; margin-left: -4px; margin-right: -4px; } }
.sp-img { position: relative; }
.sp-off { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.sp-kit { position: absolute; bottom: 8px; left: 8px; right: 8px; background: rgba(10,10,12,.86); color: #fcd34d; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; text-align: center; }
.sp-was { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.1; }
.sd-price .sp-was { display: inline; font-size: 16px; margin-right: 8px; }
.sd-off { display: inline-block; background: rgba(34,197,94,.14); color: #86efac; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin: 0 8px; }
.sd-kit { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.sd-kit b { display: block; margin-bottom: 6px; }
.sd-kit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sd-kit li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.sd-kit li em { font-style: normal; color: var(--muted); }
.cl-mid s { color: var(--muted); }

/* เช็คงาน: ข้อมูลโปรเจกต์ + แจ้งร้าน */
.q-proj { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #0b0b0c; color: #fff; text-decoration: none; }
.q-proj > svg { width: 26px; height: 26px; color: var(--red); flex: none; }
.q-proj > svg:last-child { width: 20px; height: 20px; color: #a1a1aa; margin-left: auto; }
.q-proj b { display: block; font-size: 15.5px; }
.q-proj small { color: #a1a1aa; font-size: 12.5px; }
.q-ask { margin-top: 16px; border-top: 1px dashed #e4e4e7; padding-top: 14px; }
.q-ask > b { display: block; font-size: 15px; margin-bottom: 8px; }
.q-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.q-chips button { border: 1.5px solid #e4e4e7; background: #fff; color: #3f3f46; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.q-chips button.on { border-color: var(--red); background: #fff1f3; color: var(--red); }
.q-ask-f { display: grid; gap: 8px; margin-top: 10px; }
.q-ask-f textarea { font: inherit; font-size: 16px; border: 1.5px solid #e4e4e7; border-radius: 12px; padding: 10px 12px; resize: vertical; color: #18181b; background: #fff; width: 100%; }
.q-ask-f textarea:focus { outline: none; border-color: var(--red); }
.q-sent { display: flex; gap: 10px; align-items: center; background: #e7f6ec; color: #15803d; border-radius: 12px; padding: 12px 14px; }
.q-sent svg { width: 24px; height: 24px; stroke-width: 3; flex: none; }
.q-sent b { display: block; }
.q-sent span { font-size: 14px; }

/* ---------- v14: ช่องทางติดต่อ · ส่งข้อความถึงร้าน ---------- */
button.cbtn { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cbtn-main { border-color: var(--red); background: rgba(225,10,47,.14); box-shadow: 0 6px 24px -10px var(--red-glow); }
.cbtn-main svg { color: #fff; }
.c-note { margin: 0 0 2px; padding: 10px 14px; border-radius: 12px; background: rgba(225,10,47,.12); border: 1px dashed rgba(225,10,47,.5); color: #fff; font-weight: 600; font-size: 14.5px; }
.q-rush { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--red); padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.chat-pill { position: fixed; left: 16px; bottom: calc(84px + var(--safe-b)); z-index: 46; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #1b1b20; color: #fff; padding: 10px 16px 10px 12px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.chat-pill svg { width: 20px; height: 20px; color: var(--red); }
.chat-pill i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
.chat-pill.is-new { background: var(--red); border-color: var(--red); }
.chat-pill.is-new svg { color: #fff; }
@keyframes blink { 50% { opacity: .25; } }
@media (min-width: 860px) { .chat-pill { bottom: 24px; left: 24px; } }
body.no-scroll .chat-pill { display: none; }
.wc-msgs { background: #0e0e11; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 14px 0 10px; min-height: 120px; max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.wb { max-width: 84%; padding: 8px 12px; border-radius: 16px; font-size: 15px; }
.wb p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.wb b { display: block; font-size: 12px; color: var(--red); }
.wb small { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.wb-c { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.wb-s { align-self: flex-start; background: #fff; color: #18181b; border-bottom-left-radius: 4px; }
.wc-wait { text-align: center; color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.wc-send { display: flex; gap: 8px; align-items: stretch; }
.wc-send textarea { flex: 1; font: inherit; font-size: 16px; color: #fff; background: #0e0e11; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; resize: none; }
.wc-send textarea:focus { outline: none; border-color: var(--red); }
.wc-link { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.wc-link svg { width: 15px; height: 15px; }
/* ตัวเลือกสินค้า */
.sp-opt { background: rgba(29,78,216,.88) !important; color: #fff !important; }
.sd-opts b { display: block; font-size: 14px; margin-bottom: 6px; }
.sd-opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-opt-list button { border: 1.5px solid var(--line-2); background: rgba(255,255,255,.04); color: #fff; border-radius: 12px; padding: 9px 14px; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; display: grid; line-height: 1.2; text-align: left; }
.sd-opt-list button small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.sd-opt-list button.on { border-color: var(--red); background: rgba(225,10,47,.18); box-shadow: 0 0 0 1px var(--red) inset; }
.sd-opt-list button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.sd-opt-list.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.cl-opt { display: table; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border-radius: 6px; padding: 0 6px; margin: 2px 0; }
/* จ่ายเงิน + แนบสลิป */
.cart-sum2 { display: grid; gap: 4px; padding: 12px 0 4px; font-size: 14.5px; }
.cart-sum2 > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: #d4d4d8; }
.cart-sum2 small { color: var(--muted); font-size: 12px; }
.cart-sum2 .cs-total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; color: #fff; font-weight: 600; }
.cart-sum2 .cs-total b { font-family: var(--head); font-size: 26px; }
.co-paybox { margin-top: 10px; }
.os-pay small { display: block; margin-top: 2px; }
.os-pay .btn-ghost { color: #18181b; border: 1.5px solid #d4d4d8; background: #fff; margin-top: 10px; }
.slip-pick { display: flex !important; align-items: center; gap: 12px; border: 2px dashed var(--red); border-radius: 14px; padding: 12px 14px; margin: 10px 0 0 !important; cursor: pointer; background: rgba(225,10,47,.08); color: #fff !important; }
.slip-pick > svg { width: 28px; height: 28px; color: var(--red); flex: none; }
.slip-pick span { display: grid; line-height: 1.3; }
.slip-pick b { font-size: 15px; }
.slip-pick small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.slip-pick img { width: 54px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; background: #fff; }
.slip-pick.has { border-style: solid; border-color: var(--green); background: rgba(34,197,94,.1); }
.slip-pick-red { margin: 0 0 12px !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modal-box.nudge { animation: nudge .35s ease; }
@keyframes nudge { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* =========================================================
   v16: หน้าร้านใหม่ — แถบประกาศ · แบนเนอร์ · Flash Sale · หมวด · ป้ายสินค้า · บัญชีลูกค้า
   ========================================================= */
.announce { position: fixed; top: 0; left: 0; right: 0; z-index: 51; height: 32px; overflow: hidden; background: linear-gradient(90deg, #b8061f, #e10a2f 50%, #b8061f); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; }
.an-track { width: 100%; overflow: hidden; }
.an-run { display: inline-flex; gap: 48px; white-space: nowrap; padding-left: 100%; animation: marquee 28s linear infinite; }
.an-run span { display: inline-flex; align-items: center; gap: 6px; }
.an-run svg { width: 14px; height: 14px; }
@keyframes marquee { to { transform: translateX(-66.66%); } }
@media (prefers-reduced-motion: reduce) { .an-run { animation: none; padding-left: 16px; } }
body.has-announce .nav { top: 32px; }
body.has-announce { scroll-padding-top: 104px; }
html:has(body.has-announce) { scroll-padding-top: 104px; }
body.has-announce .hero { padding-top: 116px; }
@media (min-width: 900px) { body.has-announce .hero { padding-top: 96px; } }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 860px) { .nav-right { margin-left: 0; } }
.nav-right .nav-cta { margin-left: 0; }
.nav-acc { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.05); color: #fff; font: inherit; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 10px; cursor: pointer; max-width: 150px; }
.nav-acc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-acc svg { width: 18px; height: 18px; }
.nav-acc.is-on { border-color: rgba(225,10,47,.7); background: rgba(225,10,47,.14); }
@media (max-width: 420px) { .nav-acc span { display: none; } .nav-acc { padding: 7px 9px; } }
.quickbar { grid-template-columns: repeat(4, 1fr) 1.1fr; }
.quickbar a { font-size: 12px; }
.quickbar a span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.sec-shop { padding-top: 26px; }
.sh-left { margin: 30px 0 18px; }

/* แบนเนอร์ */
.bn { position: relative; margin: 0 0 14px; }
.bn-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 22px; scrollbar-width: none; }
.bn-track::-webkit-scrollbar { display: none; }
.bn-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; min-height: 210px; display: flex; align-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(120% 140% at 100% 0%, rgba(225,10,47,.55), transparent 55%), linear-gradient(120deg, #1a0a0e, #0e0e12 60%, #18060a); border: 1px solid rgba(225,10,47,.35); border-radius: 22px; }
.bn-slide.has-img { background-size: cover; background-position: center; border-color: var(--line); }
.bn-slide.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.25) 65%, transparent); }
.bn-txt { position: relative; z-index: 1; padding: 22px 22px 26px; max-width: 620px; }
.bn-tag { display: inline-block; font-family: var(--head); font-size: 12px; letter-spacing: 2px; font-weight: 700; background: #fff; color: var(--red); padding: 3px 10px; border-radius: 6px; margin-bottom: 8px; }
.bn-txt h3 { font-size: clamp(22px, 5.4vw, 40px); font-weight: 700; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.bn-txt p { margin: 6px 0 0; color: #e4e4e7; font-size: 14.5px; max-width: 440px; }
.bn-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; background: var(--red); color: #fff; font-weight: 700; padding: 9px 16px; border-radius: 12px; box-shadow: 0 8px 24px -8px var(--red-glow); }
.bn-btn svg { width: 16px; height: 16px; }
.bn-logo { position: absolute; right: -30px; bottom: -20px; width: 46%; max-width: 380px; opacity: .22; pointer-events: none; }
.bn-txt .cd { margin-top: 12px; }
.bn-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.bn-dots button { pointer-events: auto; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); cursor: pointer; transition: width .25s; }
.bn-dots button.on { width: 22px; background: #fff; }
@media (min-width: 860px) { .bn-slide { min-height: 300px; } .bn-txt { padding: 36px 44px; } .bn-txt p { font-size: 16px; } }

/* จุดเด่น */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 18px; }
.perk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.perk > svg { width: 26px; height: 26px; color: var(--red); flex: none; }
.perk b { display: block; font-size: 13.5px; line-height: 1.25; }
.perk small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
@media (min-width: 860px) { .perks { grid-template-columns: repeat(4, 1fr); } .perk b { font-size: 14.5px; } }

/* นับถอยหลัง */
.cd { display: inline-flex; align-items: center; gap: 5px; font-family: var(--head); }
.cd span { font-family: var(--font); font-size: 12.5px; font-weight: 600; margin-right: 2px; }
.cd i { font-style: normal; background: #fff; color: #111; font-weight: 700; font-size: 16px; min-width: 34px; padding: 3px 6px; border-radius: 8px; text-align: center; line-height: 1.15; }
.cd i small { display: block; font-family: var(--font); font-size: 9.5px; font-weight: 600; color: #71717a; }

/* Flash Sale */
.flash { margin: 0 0 8px; padding: 14px; border-radius: 22px; background: linear-gradient(135deg, #e10a2f, #8f0518 70%); box-shadow: 0 20px 50px -24px var(--red-glow); position: relative; overflow: hidden; }
.flash::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(rgba(255,255,255,.25), transparent 70%); pointer-events: none; }
.fl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; position: relative; z-index: 1; }
.fl-t { display: flex; align-items: center; gap: 10px; }
.fl-bolt { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--red); display: grid; place-items: center; animation: pulse 1.4s ease-in-out infinite; }
.fl-bolt svg { width: 24px; height: 24px; fill: currentColor; }
.fl-t b { display: block; font-family: var(--head); font-size: 22px; letter-spacing: 1.5px; font-style: italic; line-height: 1; }
.fl-t small { display: block; color: #ffe4e8; font-size: 13px; font-weight: 600; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.flash .sf-row { position: relative; z-index: 1; }
.flash .sp-card { border-color: transparent; }

/* หมวดสินค้า */
.cat-tiles { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 86px; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
.cat-tiles::-webkit-scrollbar { display: none; }
.cat-tiles button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: #e4e4e7; font: inherit; cursor: pointer; text-align: center; }
.cat-tiles .ct-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #26262d; color: #fff; }
.cat-tiles .ct-ic svg { width: 22px; height: 22px; }
.cat-tiles b { font-size: 12px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tiles em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.cat-tiles button.on { border-color: var(--red); background: rgba(225,10,47,.14); }
.cat-tiles button.on .ct-ic { background: var(--red) !important; }
@media (min-width: 860px) { .cat-tiles { grid-template-rows: auto; grid-auto-columns: 104px; } }

/* แท็บ + ค้นหา + เรียง */
.shop-bar { position: sticky; top: 64px; z-index: 20; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; margin: 0 0 6px; background: var(--bg-2); }
body.has-announce .shop-bar { top: 96px; }
.shop-bar .tabs { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.shop-bar .tabs button { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 0; background: rgba(255,255,255,.06); color: #d4d4d8; font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.shop-bar .tabs button svg { width: 15px; height: 15px; }
.shop-bar .tabs button.on { background: #fff; color: #111; }
.shop-bar .tabs button[data-stab=sale].on, .shop-bar .tabs button[data-stab=hot].on { background: var(--red); color: #fff; }
.shop-bar .shop-search { margin: 0; max-width: none; }
.shop-bar .shop-search input { padding: 10px 0; }
.shop-bar select { font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 11px 10px; max-width: 132px; }
@media (min-width: 860px) { .shop-bar { grid-template-columns: auto 1fr auto; } .shop-bar .tabs { grid-column: auto; } }
.shop-found { margin: 0 0 8px; }
.shop-found:empty { display: none; }

/* การ์ดสินค้า */
.sp-card { position: relative; }
.sp-body { position: relative; padding: 9px 11px 12px; gap: 2px; }
.sp-body h3 { font-size: 14px; min-height: 37px; }
.sp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; padding-right: 44px; margin-top: 4px; }
.sp-price .pz { font-family: var(--head); font-size: 19px; color: #fff; line-height: 1.15; }
.sp-price .pz small { font-size: 14px; }
.sp-price .pz.is-sale { color: #ff4d6a; }
.sp-price .sp-was { display: inline; font-size: 12px; }
.sp-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); padding-right: 44px; min-height: 17px; }
.sp-meta em { font-style: normal; color: #fcd34d; font-weight: 600; }
.sp-body .sp-add { position: absolute; right: 10px; bottom: 11px; width: 38px; height: 38px; }
.sp-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; z-index: 1; }
.sp-badges span { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 7px; line-height: 1.5; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.sp-badges svg { width: 12px; height: 12px; }
.b-off { background: var(--red); color: #fff; font-size: 13px !important; }
.b-hot { background: #f97316; color: #fff; }
.b-new { background: #16a34a; color: #fff; }
.b-flash { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 2px; background: #111; color: #fde047; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 7px; letter-spacing: .5px; }
.b-flash svg { width: 11px; height: 11px; fill: currentColor; }
.sp-card.is-out .sp-img img, .sp-card.is-out .sp-ph { opacity: .45; filter: grayscale(.8); }
.sp-soldout { position: absolute; inset: auto 0 42% 0; margin: auto; width: max-content; background: rgba(10,10,12,.86); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.sp-card.is-flash { background: #fff; color: #111; }
.sp-card.is-flash .sp-body h3, .sp-card.is-flash .pz { color: #111; }
.sp-card.is-flash .pz.is-sale { color: var(--red); }
.sp-card.is-flash .sp-meta { color: #71717a; }
.sp-card.is-feat::after { content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: 0 0 0 1px rgba(252,211,77,.35) inset; pointer-events: none; }

/* รายละเอียดสินค้า */
.sp-detail-img { position: relative; }
.sd-promo { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; padding: 9px 12px; border-radius: 14px; background: linear-gradient(135deg, #e10a2f, #8f0518); }
.sd-promo > svg { width: 20px; height: 20px; fill: #fde047; stroke: #fde047; }
.sd-promo > b { flex: 1; font-size: 14.5px; }
.sd-promo .cd i { font-size: 14px; min-width: 30px; }
.sd-price .pz { font-family: var(--head); font-size: 30px; }
.sd-price .pz.is-sale { color: #ff4d6a; }
.sd-price .pz small { font-size: 20px; }
.sd-buy + .btn { margin-top: 10px; }
.sd-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sd-mini > * { flex: 1; }
.sd-rel { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.sd-rel > b { display: block; font-family: var(--head); font-size: 16px; margin-bottom: 10px; }
.sd-rel .sf-row { grid-auto-columns: minmax(150px, 170px); }

/* ตะกร้า: ส่งฟรี · โค้ด · บัญชี */
.free-bar { margin: 12px 0 2px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.fb-txt { font-size: 13.5px; color: #e4e4e7; margin-bottom: 6px; }
.fb-txt b { color: #fff; }
.fb-track { height: 8px; border-radius: 99px; background: #26262d; overflow: hidden; }
.fb-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f97316, #e10a2f); transition: width .4s; }
.free-bar.done { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.08); }
.free-bar.done .fb-track i { background: var(--green); }
.coupon { display: flex; gap: 8px; margin-top: 12px; }
.coupon input { flex: 1; min-width: 0; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: #0e0e11; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 9px 12px; }
.coupon input:focus { outline: none; border-color: var(--red); border-style: solid; }
.coupon input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.coupon-msg { margin: 4px 0 0; font-size: 13px; min-height: 0; }
.coupon-msg:empty { display: none; }
.coupon-msg.ok { color: #86efac; }
.coupon-msg.bad { color: #ff8fa3; }
.cart-sum2 .cs-save b { color: #86efac; }
.acc-box { margin: 6px 0 4px; padding: 12px 14px; border-radius: 16px; background: rgba(225,10,47,.07); border: 1px solid rgba(225,10,47,.35); }
.acc-h { display: flex; align-items: center; gap: 6px; font-size: 14.5px; margin-bottom: 4px; }
.acc-h svg { width: 18px; height: 18px; color: var(--red); }
.acc-h em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.acc-hint { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 4px; }
.acc-hint.on b { color: #fff; }
.acc-on { display: flex; align-items: center; gap: 10px; }
.acc-on > svg { width: 26px; height: 26px; color: var(--red); }
.acc-on b { display: block; font-size: 14.5px; }
.acc-on small { color: var(--muted); font-size: 12.5px; }
.ship-pick.ship-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .ship-pick.ship-3 { grid-template-columns: 1fr; } .ship-pick.ship-3 span { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } }
.shop-addr, .rider-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13.5px; color: #d4d4d8; }
.shop-addr > svg, .rider-note > svg { width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.shop-addr b, .rider-note b { display: block; color: #fff; font-size: 14px; }
.shop-addr a { color: #ff8fa3; }
.rider-note { background: rgba(245,181,11,.1); border-color: rgba(245,181,11,.45); }
.rider-note > svg { color: var(--yellow); }

/* สถานะออเดอร์: เลขพัสดุ · แจ้งร้าน */
.track-box { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.45); }
.track-box > svg { width: 26px; height: 26px; color: #86efac; }
.track-box span { flex: 1; min-width: 0; }
.track-box small { display: block; color: var(--muted); font-size: 12px; }
.track-box b { font-family: var(--head); font-size: 19px; letter-spacing: 1px; word-break: break-all; }
.os-cut b { color: #86efac; }
.o-ask { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.o-ask > b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; margin-bottom: 8px; }
.o-ask > b svg { width: 16px; height: 16px; color: var(--red); }
.o-ask > b small { color: var(--muted); font-weight: 400; }
.o-ask .q-chips button { background: rgba(255,255,255,.05); border-color: var(--line-2); color: #fff; }
.o-ask .q-chips button:hover { border-color: var(--red); }
.q-foot .btn { margin-left: auto; }
.btn-xs { padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }

/* บัญชีของฉัน */
.my-orders .mo-acc { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font); letter-spacing: 0; border-color: rgba(225,10,47,.6); }
.my-orders .mo-acc svg { color: var(--red); }
.acc-login { text-align: center; }
.acc-login .lead-form { text-align: left; }
.al-ic { width: 60px; height: 60px; margin: 4px auto 8px; border-radius: 20px; display: grid; place-items: center; background: rgba(225,10,47,.15); color: var(--red); }
.al-ic svg { width: 30px; height: 30px; }
.al-new { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(34,197,94,.1); color: #86efac; font-size: 13.5px; font-weight: 600; }
.al-new svg { width: 18px; height: 18px; }
.acc-head { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.ah-av { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--red); font-family: var(--head); font-size: 22px; font-weight: 700; flex: none; }
.acc-head > div { flex: 1; min-width: 0; }
.acc-head b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-head small { color: var(--muted); }
@media (max-width: 520px) { .acc-head { flex-wrap: wrap; } .acc-head .btn { width: 100%; } }
.acc-tabs { display: flex; gap: 6px; margin: 14px 0 10px; overflow-x: auto; scrollbar-width: none; }
.acc-tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line-2); background: transparent; color: #d4d4d8; font: inherit; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.acc-tabs button svg { width: 16px; height: 16px; }
.acc-tabs button.on { background: #fff; color: #111; border-color: #fff; }
.acc-body { display: grid; gap: 8px; min-height: 120px; }
.acc-row { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); cursor: pointer; }
.acc-row:hover { border-color: rgba(225,10,47,.55); }
.ar-main { min-width: 0; flex: 1; }
.ar-main b { display: block; font-family: var(--head); letter-spacing: .5px; }
.ar-main small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-main .ar-track { display: flex; align-items: center; gap: 4px; color: #86efac; }
.ar-main .ar-track svg { width: 13px; height: 13px; }
.ar-bar { margin: 6px 0 0; height: 6px; background: #26262d; }
.ar-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.ar-side > b { font-family: var(--head); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill-yellow { background: rgba(245,181,11,.16); color: #fcd34d; }
.pill-blue { background: rgba(59,130,246,.16); color: #93c5fd; }
.pill-green { background: rgba(34,197,94,.16); color: #86efac; }
.pill-gray { background: rgba(255,255,255,.08); color: #a1a1aa; }
.acc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.acc-body .empty-dark .btn { margin-top: 10px; }
.wd-body > * { min-width: 0; }
.modal-box { overflow-x: hidden; }
.sd-buy + .btn { margin-top: 0; }
.shop-bar { grid-template-columns: minmax(0, 1fr) auto; }
.shop-bar .shop-search { min-width: 0; }
@media (min-width: 860px) { .shop-bar { grid-template-columns: auto minmax(0, 1fr) auto; } }
.ship-pick label { position: relative; }
.ship-pick input { width: 1px !important; height: 1px !important; padding: 0 !important; left: 8px; top: 8px; pointer-events: none; }
.acc-body { grid-template-columns: minmax(0, 1fr); }
.acc-tabs button { flex: 1 1 0; padding: 8px 6px; }
.sd-guide { border-color: rgba(59,130,246,.6) !important; color: #bfdbfe !important; }


/* =========================================================
   v30 — หน้าแรก · ร้านค้า · เช็คงาน แบบใหม่ (รูปพื้นหลังจริง + เอฟเฟกต์)
   ========================================================= */
/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; background: #050506; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; animation: heroZoom 16s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,6,.92) 0%, rgba(5,5,6,.78) 34%, rgba(5,5,6,.25) 62%, rgba(5,5,6,.1) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero::after { z-index: 1; opacity: .6; }
.hero-circuit { z-index: 1; opacity: .55; }
.hero-circuit .traces path, .hero-circuit .pads circle { stroke: transparent; fill: transparent; }
.hero-text { max-width: 640px; animation: heroIn .9s .15s ease-out both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } }
.hero h1 { font-size: clamp(38px, 8vw, 72px); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero h1::after { content: ""; display: block; width: 84px; height: 4px; margin-top: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--red), transparent); box-shadow: 0 0 18px var(--red); }
.hero-sub { color: #d4d4d8; }
.hero-btns .btn-ghost { background: rgba(10,10,12,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-stats div { background: linear-gradient(90deg, rgba(225,10,47,.12), transparent); border-radius: 0 10px 10px 0; padding: 8px 0 8px 12px; }
@media (max-width: 760px) {
  .hero { align-items: flex-start; padding-top: 96px; min-height: 100svh; }
  .hero-bg img { object-position: 50% 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(5,5,6,.9) 0%, rgba(5,5,6,.72) 48%, rgba(5,5,6,.1) 72%, var(--bg) 100%); }
  .hero-btns .btn { flex: 1 1 100%; }
}

/* ---------- reveal ---------- */
.js-rv .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js-rv .rv.in { opacity: 1; transform: none; }
.js-rv .svc-grid .rv:nth-child(2) { transition-delay: .08s; }
.js-rv .svc-grid .rv:nth-child(3) { transition-delay: .16s; }
.js-rv .svc-grid .rv:nth-child(5) { transition-delay: .08s; }
.js-rv .svc-grid .rv:nth-child(6) { transition-delay: .16s; }

/* ---------- services (การ์ดรูป) ---------- */
.svc-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.svc { padding: 0; display: flex; flex-direction: column; background: #0d0d10; }
.svc-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.95) brightness(.9); }
.svc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0d0d10 0%, transparent 55%); }
.svc:hover .svc-img img { transform: scale(1.07); filter: saturate(1.1) brightness(1); }
.svc:hover { box-shadow: 0 18px 50px -20px var(--red-glow); }
.svc-tx { position: relative; padding: 0 20px 20px; margin-top: -30px; z-index: 1; }
.svc-ic { margin-bottom: 10px; background: rgba(12,12,14,.85); backdrop-filter: blur(6px); }
.svc-more { text-align: center; margin: 18px 0 0; font-size: 14px; }

/* ---------- shop hero ---------- */
.shop-hero { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; min-height: 260px; display: grid; place-items: center; background: #050506; }
.shop-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,5,6,.55) 0%, rgba(5,5,6,.2) 60%, rgba(5,5,6,.5) 100%); }
.sh-in { position: relative; z-index: 1; text-align: center; padding: 34px 18px; max-width: 640px; width: 100%; }
.sh-in .kicker { margin-bottom: 6px; }
.sh-in h2 { font-size: clamp(28px, 5.5vw, 46px); text-shadow: 0 4px 24px rgba(0,0,0,.8); }
.sh-in h2 span { display: block; color: transparent; -webkit-text-stroke: 1.5px #fff; background: linear-gradient(90deg, #fff, #ffb3bf); -webkit-background-clip: text; background-clip: text; }
.sh-in p { color: #d4d4d8; margin: 10px auto 18px; max-width: 460px; text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.sh-q { display: flex; align-items: center; gap: 8px; background: rgba(10,10,12,.82); border: 1.5px solid var(--line-2); border-radius: 16px; padding: 6px 6px 6px 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sh-q:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,10,47,.18); }
.sh-q svg { color: var(--muted); }
.sh-q input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: inherit; font-size: 15.5px; padding: 8px 0; outline: none; }
@media (max-width: 640px) { .shop-hero { min-height: 300px; } .shop-hero > img { object-position: 50% 50%; } .shop-hero::after { background: rgba(5,5,6,.55); } }
.buy-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: b; }
.buy-steps li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: linear-gradient(160deg, #18181d, #111114); border: 1px solid var(--line); position: relative; }
.buy-steps li:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 8px; height: 2px; background: var(--red); }
.buy-steps span { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--head); font-weight: 700; color: #fff; background: var(--red); box-shadow: 0 0 18px var(--red-glow); }
.buy-steps b { display: block; font-size: 14px; line-height: 1.3; }
.buy-steps small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
@media (max-width: 700px) { .buy-steps { grid-template-columns: 1fr; } .buy-steps li:not(:last-child)::after { right: auto; left: 28px; top: auto; bottom: -8px; width: 2px; height: 8px; } }
.sh-cats { margin: 26px 0 12px; }
.sh-cats h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.sh-cats h3::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); }
/* การ์ดสินค้าเด่นขึ้น */
.sp-card { transition: transform .2s, border-color .2s, box-shadow .25s; }
.sp-card:hover { transform: translateY(-3px); border-color: rgba(225,10,47,.55); box-shadow: 0 16px 40px -18px var(--red-glow); }
.sp-add { box-shadow: 0 6px 18px -4px var(--red-glow); }
.cart-fab { animation: fabIn .35s ease-out; }
@keyframes fabIn { from { transform: translateY(20px) scale(.8); opacity: 0; } }

/* ---------- queue section ---------- */
.sec-queue { position: relative; max-width: none; padding-left: max(16px, calc((100% - 1180px) / 2)); padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, rgba(5,5,6,.95) 0%, rgba(5,5,6,.75) 45%, rgba(5,5,6,.35) 100%), url("img/q-bg.webp") center / cover no-repeat;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .sec-queue { background: linear-gradient(180deg, rgba(5,5,6,.9), rgba(5,5,6,.7)), url("img/q-bg-m.webp") center / cover no-repeat; } }
.q-hints { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: #c4c4cc; font-size: 14px; }
.q-hints span { display: inline-flex; align-items: center; gap: 6px; }
.q-hints svg { width: 16px; height: 16px; color: var(--red); }

/* ---------- หน้าต่างผลเช็คงาน (เต็มจอ) ---------- */
.q-ov { position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(5,5,6,.72), rgba(5,5,6,.9)), url("img/q-bg.webp") center / cover fixed no-repeat; animation: ovIn .25s ease-out; }
@media (max-width: 760px) { .q-ov { background: linear-gradient(180deg, rgba(5,5,6,.7), rgba(5,5,6,.92)), url("img/q-bg-m.webp") center / cover no-repeat; } }
@keyframes ovIn { from { opacity: 0; } }
.q-ov-wrap { min-height: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 64px 14px calc(30px + var(--safe-b)); }
.q-ov-x { position: fixed; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,10,12,.8); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.q-ov-x:hover { border-color: var(--red); }
#q-ov-in { width: 100%; max-width: 620px; }
.qx { position: relative; background: linear-gradient(165deg, rgba(28,28,34,.92), rgba(14,14,17,.94)); border: 1px solid rgba(255,255,255,.1); border-radius: 26px; padding: 24px 20px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(225,10,47,.08), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: qxIn .45s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.qx::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--red), transparent); box-shadow: 0 0 20px var(--red); }
@keyframes qxIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.qx-loading { display: grid; place-items: center; gap: 12px; min-height: 220px; text-align: center; color: var(--muted); }
.qx-loading .spinner { border-color: #2a2a31; border-top-color: var(--red); }
.qx-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qx-code { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.qx-code b { color: #fff; font-family: var(--head); letter-spacing: 1.5px; }
.qx-code svg { color: var(--red); }
.qx-rush { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.qx-hi { margin: 14px 0 2px; color: #d4d4d8; font-size: 15px; }
.qx-hi b { color: #fff; }
.qx-title { font-size: clamp(22px, 5vw, 28px); }
.qx-main { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 20px 0 6px; padding: 16px; border-radius: 20px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06); }
.qx-ring { position: relative; width: 132px; height: 132px; }
.qx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.qx-ring circle { fill: none; stroke-width: 10; }
.qx-ring .rg-bg { stroke: #26262d; }
.qx-ring .rg-fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: var(--L); stroke-dashoffset: var(--L); filter: drop-shadow(0 0 8px var(--red)); animation: ringFill 1s .1s cubic-bezier(.3,.8,.3,1) forwards; }
@keyframes ringFill { to { stroke-dashoffset: var(--off); } }
.qx-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.qx-ring b { font-family: var(--head); font-size: 34px; line-height: 1; }
.qx-ring small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.qx-now { min-width: 0; }
.qx-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #ffb3bf; background: rgba(225,10,47,.14); border: 1px solid rgba(225,10,47,.35); padding: 4px 10px; border-radius: 999px; }
.qx-badge.ok { color: #86efac; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }
.qx-badge svg { width: 14px; height: 14px; }
.qx-live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: live 1.6s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(225,10,47,0); } 100% { box-shadow: 0 0 0 0 rgba(225,10,47,0); } }
.qx-now > b { display: block; font-family: var(--head); font-size: 21px; margin-top: 8px; }
.qx-now p { margin: 4px 0 0; color: #c4c4cc; font-size: 14px; line-height: 1.5; }
.qx-due { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; color: #d4d4d8; }
.qx-due svg { color: var(--red); width: 16px; height: 16px; }
@media (max-width: 480px) { .qx-main { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qx-ring { width: 150px; height: 150px; } }
.qx-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.qx-steps li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; }
.qx-steps li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: #2a2a31; }
.qx-steps li.done:not(:last-child)::after { background: var(--red); box-shadow: 0 0 8px var(--red); }
.qx-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1f1f25; color: #6b6b75; border: 1.5px solid #33333b; font-family: var(--head); font-weight: 700; font-size: 14px; position: relative; z-index: 1; }
.qx-dot svg { width: 16px; height: 16px; stroke-width: 3; }
.qx-steps li.done .qx-dot { background: var(--red); border-color: var(--red); color: #fff; }
.qx-steps li.now .qx-dot { background: #0b0b0c; color: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,10,47,.25), 0 0 18px var(--red-glow); animation: ring 1.8s ease-in-out infinite; }
.qx-steps b { font-size: 12.5px; line-height: 1.25; font-weight: 600; color: #e4e4e7; }
.qx-steps li:not(.done):not(.now) b { color: #6b6b75; font-weight: 500; }
.qx-steps small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.qx-steps li.now small { color: #ffb3bf; }
@media (max-width: 480px) { .qx-steps b { font-size: 11px; } .qx-steps small { display: none; } }
.qx-msg { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(225,10,47,.08); border-left: 3px solid var(--red); font-size: 14.5px; color: #e4e4e7; }
.qx-msg b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #ffb3bf; margin-bottom: 4px; }
.qx-msg svg { width: 15px; height: 15px; }
.qx-ok { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #bbf7d0; }
.qx-ok > svg { width: 28px; height: 28px; color: #4ade80; flex: none; }
.qx-ok b { display: block; color: #fff; }
.qx-ok span { font-size: 14px; }
.qx-hero { margin: -24px -20px 16px; aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.qx-hero img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 8s ease-out both; }
.qx-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,20,24,1) 0%, transparent 45%); }
.qx-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
@media (max-width: 420px) { .qx-acts { grid-template-columns: 1fr; } }
.qx .q-proj { background: rgba(0,0,0,.45); border: 1px solid var(--line-2); }
.qx .q-ask { border-top-color: rgba(255,255,255,.12); }
.qx .q-chips button { background: rgba(255,255,255,.04); border-color: var(--line-2); color: #d4d4d8; }
.qx .q-chips button.on { background: rgba(225,10,47,.15); border-color: var(--red); color: #fff; }
.qx .q-ask-f textarea { background: rgba(0,0,0,.4); color: #fff; border-color: var(--line-2); }
.qx-404 { text-align: center; }
.qx-404 img { width: min(260px, 70%); margin: -6px auto 6px; border-radius: 20px; mask-image: radial-gradient(circle, #000 55%, transparent 72%); -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%); }
.qx-404 h2 { font-size: 22px; }
.qx-404 h2 span { color: var(--red); font-family: var(--head); letter-spacing: 1px; }
.qx-404 p { color: #c4c4cc; font-size: 14.5px; margin: 8px 0 16px; }
.qx-retry { margin: 0 auto; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .hero-btns .btn-ghost { flex: 1 1 calc(50% - 6px); padding: 13px 10px; font-size: 14.5px; }
  .hero-stats { background: rgba(5,5,6,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px; margin-top: 26px; }
  .hero-stats div { background: none; }
}
.qx-404 img { height: auto; aspect-ratio: 1; object-fit: cover; }
.qx-steps li > div { display: grid; gap: 2px; }
.shop-hero { grid-template-columns: minmax(0, 1fr); }
.sh-in { justify-self: center; }
@media (max-width: 640px) { .shop-hero > img { object-position: 14% 50%; } }

/* ฟอนต์ใหม่: หัวข้อ Kanit (หนา คม แบบไทย) · เนื้อหา Anuphan (อ่านง่าย ทันสมัย) */
.hero h1, .sec-head h2, .sh-in h2, .qx-title, .qx-now > b { font-weight: 600; letter-spacing: 0; }
.hero h1 { line-height: 1.15; }
.kicker { letter-spacing: 1.5px; font-weight: 500; }
.btn { font-weight: 600; }

/* โลโก้ใหญ่บนหน้าแรก + พื้นหลังเวิร์กช็อป */
.hero::before { background: radial-gradient(ellipse 45% 55% at 74% 48%, rgba(5,5,6,.82) 0%, rgba(5,5,6,.45) 60%, transparent 100%),
  linear-gradient(90deg, rgba(5,5,6,.93) 0%, rgba(5,5,6,.72) 40%, rgba(5,5,6,.45) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero-logo { display: grid; place-items: center; position: relative; animation: heroIn 1s .35s ease-out both; }
.hero-logo img { position: relative; z-index: 1; width: min(100%, 520px); height: auto; filter: drop-shadow(0 0 22px rgba(255,255,255,.18)) drop-shadow(0 0 60px rgba(225,10,47,.45)); animation: logoFloat 6s ease-in-out infinite; }
@keyframes logoFloat { 50% { transform: translateY(-10px); } }
.logo-glow { width: 85%; background: radial-gradient(circle, rgba(225,10,47,.5), transparent 62%); filter: blur(30px); animation: glowPulse 4s ease-in-out infinite; }
@keyframes glowPulse { 50% { opacity: .55; transform: scale(.92); } }
.logo-ring { position: absolute; width: min(108%, 600px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(225,10,47,.35);
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(225,10,47,.55) 85%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 69%, transparent 70%); mask: radial-gradient(circle, transparent 66%, #000 67%, #000 69%, transparent 70%); animation: spin 9s linear infinite; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr .9fr; } .hero-logo { order: 0; } }
@media (max-width: 899px) {
  .hero-logo { order: -1; margin: 4px 0 -6px; }
  .hero-logo img { width: min(64%, 300px); }
  .logo-ring { width: min(78%, 330px); }
  .hero::before { background: radial-gradient(ellipse 70% 30% at 50% 16%, rgba(5,5,6,.6), transparent 100%), linear-gradient(180deg, rgba(5,5,6,.88) 0%, rgba(5,5,6,.7) 50%, rgba(5,5,6,.2) 76%, var(--bg) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-logo img, .logo-glow, .logo-ring { animation: none; } }
