:root {
  --bg: #F5F7FB; --card: #FFFFFF; --ink: #0B1220; --ink2: #475467; --muted: #8A94A6; --line: #E6EAF2;
  --brand: #0EA5E9; --brand2: #2563EB; --dark: #0B1220; --ok: #16A34A; --warn: #D97706; --bad: #DC2626;
  --gold: #F59E0B; --sale: #FF1A1A; --radius: 16px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  font-family: 'Inter', 'IBM Plex Sans Thai', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: 'IBM Plex Sans Thai', 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.num { font-family: 'Inter', sans-serif; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.topbar { background: var(--dark); color: #CBD5E1; font-size: 12.5px; display: flex; gap: 28px; justify-content: center; padding: 6px 16px; flex-wrap: wrap; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; white-space: nowrap; }
.logo small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: -3px; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #0B1220, #1E3A8A); color: #38BDF8; display: grid; place-items: center; font-weight: 900; font-family: Inter; font-size: 20px; }
.search { flex: 1; display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 11px 14px; font: inherit; outline: none; min-width: 0; }
.search button { border: 0; background: var(--ink); color: #fff; padding: 0 16px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.nav a:hover, .nav a.active { background: var(--bg); color: var(--ink); }
.nav-apple { color: var(--ink) !important; font-weight: 700 !important; }
.owner-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); padding: 6px 10px; border: 1px dashed var(--line); border-radius: 10px; margin-left: 6px; cursor: pointer; white-space: nowrap; }
.floors { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.floors a { flex: none; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--ink2); border: 1px solid transparent; }
.floors a b { font-family: Inter; color: var(--brand2); margin-right: 4px; }
.floors a.active { background: var(--ink); color: #fff; }
.floors a.active b { color: #38BDF8; }

/* ---------- Hero ---------- */
.hero { margin: 22px 0; display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.hero-main { background: radial-gradient(1200px 400px at 80% -10%, #1E40AF 0%, transparent 60%), linear-gradient(135deg, #020617, #0B1220 60%, #111827); color: #fff; border-radius: 24px; padding: 38px; position: relative; overflow: hidden; min-height: 300px; }
.hero-main h1 { font-size: 38px; line-height: 1.15; margin: 10px 0 12px; letter-spacing: -.01em; }
.hero-main h1 span { background: linear-gradient(90deg, #38BDF8, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-main p { color: #CBD5E1; max-width: 520px; }
.hero-main .apple-big { position: absolute; right: 24px; bottom: -30px; font-size: 220px; opacity: .12; }
.pill { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(56,189,248,.15); color: #7DD3FC; font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 600; background: var(--ink); color: #fff; transition: transform .1s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--ink2); border: 1px solid var(--line); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: wait; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-side { display: grid; gap: 16px; }
.hero-card { background: var(--card); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.hero-card h3 { margin: 0 0 6px; font-size: 16px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.trust-grid div { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.trust-grid b { display: block; font-size: 14px; }
.platform-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- Sections ---------- */
.section { margin: 30px 0; }
.section-h { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section-h h2 { margin: 0; font-size: 22px; }
.section-h a { color: var(--brand2); font-weight: 600; font-size: 14px; }
.directory { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.floor-card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid transparent; transition: .15s; }
.floor-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.floor-card .fl { font-family: Inter; font-weight: 800; font-size: 12px; color: var(--brand2); }
.floor-card .ic { font-size: 28px; margin: 6px 0; }
.floor-card h3 { font-size: 15px; margin: 0; }
.floor-card p { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.floor-card.apple { background: linear-gradient(160deg, #0B1220, #1F2937); color: #fff; }
.floor-card.apple p { color: #94A3B8; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid transparent; transition: .15s; position: relative; }
.card:hover { border-color: #BAE6FD; transform: translateY(-2px); }
.card-img { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 72px; background: linear-gradient(160deg, #F8FAFC, #EEF2FF); position: relative; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 14.5px; margin: 0; line-height: 1.35; min-height: 2.7em; }
.brand { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.price { font-size: 20px; font-weight: 800; font-family: Inter; }
.price small { font-size: 12.5px; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.disc { position: absolute; top: 10px; left: 10px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 8px; font-family: Inter; }
.score { position: absolute; top: 10px; right: 10px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; font-family: Inter; }
.score b { color: #38BDF8; }
.meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink2); flex-wrap: wrap; }
.star { color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #ECFDF5; color: var(--ok); white-space: nowrap; }
.badge.blue { background: #EFF6FF; color: var(--brand2); }
.badge.warn { background: #FFFBEB; color: var(--warn); }
.badge.bad { background: #FEF2F2; color: var(--bad); }
.badge.dark { background: var(--ink); color: #fff; }
.badge.gold { background: #FEF3C7; color: #92400E; }
.pf { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; color: #fff; white-space: nowrap; }
.owner-only { display: none !important; }
body.owner .owner-only { display: revert !important; }
body.owner .owner-only.flex { display: flex !important; }
.earn { font-size: 12px; color: #7C3AED; font-weight: 600; background: #F5F3FF; padding: 2px 8px; border-radius: 6px; }

/* ---------- Layout with filters ---------- */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin: 22px 0; }
.filters { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 130px; }
.filters h4 { margin: 14px 0 8px; font-size: 13px; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; }
.filters h4:first-child { margin-top: 0; }
.filters label { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; cursor: pointer; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.toolbar h1 { font-size: 22px; margin: 0; }
select, input[type=number], input[type=text], textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; color: var(--ink); }
.cat-banner { border-radius: 20px; padding: 22px 26px; background: linear-gradient(135deg, #0B1220, #1E3A8A); color: #fff; margin: 22px 0 0; display: flex; align-items: center; gap: 18px; }
.cat-banner .ic { font-size: 46px; }
.cat-banner h1 { margin: 0; font-size: 26px; }
.cat-banner p { margin: 2px 0 0; color: #CBD5E1; }

/* ---------- Product detail ---------- */
.pd { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; margin: 22px 0; }
.pd-img { background: linear-gradient(160deg, #fff, #EEF2FF); border-radius: 24px; display: grid; place-items: center; font-size: 180px; aspect-ratio: 1; box-shadow: var(--shadow); position: relative; }
.pd h1 { font-size: 28px; margin: 4px 0 8px; line-height: 1.25; }
.best-box { background: var(--card); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); margin: 14px 0; border: 2px solid #BAE6FD; }
.best-box .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.big-price { font-size: 34px; font-weight: 800; font-family: Inter; }
.hl { padding-left: 18px; margin: 10px 0; }
.hl li { margin: 3px 0; }
table.cmp { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cmp th, .cmp td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.cmp th { background: #F8FAFC; font-size: 12.5px; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.cmp tr.best td { background: #F0F9FF; }
.cmp tr.risky td { opacity: .6; }
.trustbar { height: 6px; width: 70px; background: var(--line); border-radius: 9px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.trustbar i { display: block; height: 100%; background: var(--ok); }
.spark { width: 100%; height: 70px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 10px; font-size: 16px; }
.risk-note { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-top: 12px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ---------- Studio / Admin ---------- */
.studio { display: grid; grid-template-columns: 360px 1fr; gap: 20px; margin: 22px 0; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.scene { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.scene .t { font-family: Inter; font-weight: 700; color: var(--brand2); font-size: 13px; }
.scene .v { font-size: 13px; color: var(--ink2); }
.scene .vo { font-weight: 600; margin: 2px 0; }
.scene .os { display: inline-block; background: #FEF9C3; padding: 1px 8px; border-radius: 6px; font-size: 12.5px; }
.copybox { position: relative; background: #F8FAFC; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; white-space: pre-wrap; margin: 6px 0 14px; }
.copybox button { position: absolute; top: 8px; right: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font-size: 26px; font-family: Inter; }
.cand { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cand .e { font-size: 40px; text-align: center; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.loader { text-align: center; padding: 40px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; transition: .25s; z-index: 50; font-size: 14px; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #CBD5E1; margin-top: 50px; padding: 36px 0; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 30px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer ul { padding-left: 18px; margin: 0; }
.footer .logo { color: #fff; margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero, .pd, .studio { grid-template-columns: 1fr; }
  .directory { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr; }
  .header-in { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .nav { overflow-x: auto; max-width: 100%; margin-left: auto; }
}
@media (max-width: 720px) {
  .header-in { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .nav { overflow-x: auto; max-width: 100%; }
  .logo small { display: none; }
  .hero-main { padding: 26px; }
  .hero-main h1 { font-size: 28px; }
  .directory { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-img { font-size: 54px; }
  .pd-img { font-size: 120px; }
  .topbar { gap: 12px; font-size: 11.5px; }
}
.demo-bar { background: #FEF3C7; color: #92400E; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 16px; border-bottom: 1px solid #FDE68A; }

/* ===== Deal cards (reference style) ===== */
.grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.dcard { background: #fff; border: 1px solid #E5E7EB; border-radius: 6px; position: relative; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.dcard:hover { box-shadow: 0 8px 24px rgba(16,24,40,.10); border-color: #D1D5DB; }
.dcard-img { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.dcard-img img, .dcard-img svg { width: 100%; height: 100%; object-fit: contain; }
.art-emoji { font-size: 96px; line-height: 1; }
.ribbon { position: absolute; top: 0; right: 18px; width: 52px; padding: 5px 0 12px; background: var(--sale); color: #fff; text-align: center; font-family: Inter, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.05; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); text-shadow: 0 1px 0 rgba(0,0,0,.15); z-index: 1; }
.ribbon small { display: block; font-size: 12px; font-weight: 600; font-family: 'IBM Plex Sans Thai', sans-serif; }
.ribbon.big { width: 72px; right: 28px; font-size: 22px; padding: 8px 0 18px; }
.ribbon.big small { font-size: 15px; }
.dcard-body { padding: 4px 10px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dcard-name { font-size: 15px; color: #374151; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.dcard-name:hover { color: var(--brand2); }
.dcard-price { font-size: 13px; color: #6B7280; }
.dcard-price .lbl { font-size: 12px; }
.dcard-price b { font-size: 18px; color: #111827; font-family: Inter, sans-serif; }
.dcard-price s { color: #9CA3AF; font-size: 14px; font-family: Inter, sans-serif; }
.dcard-badges { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.dcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 10px; }
.pf-logo { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12.5px; color: var(--c); white-space: nowrap; letter-spacing: -.01em; }
.pf-logo i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); display: inline-block; }
.dcard-rate { font-size: 13px; color: #4B5563; white-space: nowrap; }
.dcard-rate b { color: #111827; font-family: Inter, sans-serif; }
.dcard-rate .muted { font-size: 12px; }
.btn-check { background: #1D74E8; color: #fff; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 4px; white-space: nowrap; }
.btn-check:hover { background: #155FC4; }
.pd-img { overflow: hidden; }
.pd-img img, .pd-img svg { width: 78%; height: 78%; object-fit: contain; }

/* ===== Hot Deal section ===== */
.hotdeal { background: #fff; margin: 22px 0; padding: 22px 20px 16px; border-radius: 10px; box-shadow: var(--shadow); }
.hd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hd-head h2 { margin: 0; font-size: 24px; color: #1F2937; }
.hd-sub { color: #4B5563; font-size: 15px; }
.countdown { display: inline-flex; align-items: center; gap: 4px; }
.countdown b { background: #2F3A44; color: #fff; font-family: Inter, sans-serif; font-size: 20px; min-width: 38px; text-align: center; padding: 3px 6px; border-radius: 6px; }
.countdown i { font-style: normal; font-weight: 700; color: #2F3A44; }
.cat-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 18px 0 14px; padding-bottom: 4px; scrollbar-width: thin; }
.cat-tab { flex: 1 0 auto; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 8px 8px; color: #4B5563; font-size: 14px; }
.cat-tab svg { width: 30px; height: 30px; }
.cat-tab:hover { color: #111827; }
.cat-tab.on { color: #F2662B; border-bottom-color: #F2662B; }
.hd-more { text-align: center; margin-top: 14px; }
.hd-more a { color: var(--brand2); font-weight: 600; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.trust-strip div { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.trust-strip b { display: block; color: var(--ink); font-size: 14.5px; }
@media (max-width: 1000px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dcard-foot { flex-wrap: wrap; }
  .btn-check { width: 100%; text-align: center; }
  .dcard-name { font-size: 13.5px; }
  .hd-head h2 { font-size: 20px; }
  .countdown b { font-size: 16px; min-width: 30px; }
}
.art-emoji span { display: grid; place-items: center; width: 70%; aspect-ratio: 1; margin: auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #EEF2FF 70%); font-size: 84px; }
.art-emoji { width: 100%; display: grid; place-items: center; }

/* ===================== v3: Price-comparison layout ===================== */
.sm { font-size: 12.5px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand2); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.h-sm { font-size: 18px; margin: 0 0 12px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { color: var(--ink2); }
.crumbs a:hover { color: var(--brand2); }

/* header */
.mega-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.mega-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.search { position: relative; overflow: visible; }
.search input { border-radius: 12px 0 0 12px; }
.search > button { border-radius: 0 12px 12px 0; }
.nav sup { background: var(--bad); color: #fff; border-radius: 999px; font-size: 10.5px; padding: 0 5px; font-family: Inter; }
.nav sup:empty { display: none; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.14); z-index: 40; padding: 6px; max-height: 70vh; overflow: auto; }
.sg-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.sg-item:hover, .sg-item.on { background: var(--bg); }
.sg-item .sg-e { width: 28px; text-align: center; font-size: 18px; }
.sg-item .sg-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-item b { font-family: Inter; font-size: 13.5px; }
.sg-cat span { margin-left: auto; font-size: 12px; color: var(--muted); }
.sg-all { color: var(--brand2); font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px; }
.mega { position: absolute; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(16,24,40,.12); z-index: 30; }
.mega-in { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 24px; padding-top: 20px; padding-bottom: 24px; max-height: 75vh; overflow: auto; }
.mega-col { display: flex; flex-direction: column; gap: 4px; }
.mega-col a { font-size: 14px; color: var(--ink2); padding: 2px 0; }
.mega-col a:hover { color: var(--brand2); }
.mega-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink) !important; margin-bottom: 4px; }
.mega-ic svg { width: 22px; height: 22px; display: block; color: #F2662B; }

/* home hero */
.hero2 { margin: 22px 0 6px; padding: 34px 32px 28px; border-radius: 20px; background: radial-gradient(900px 300px at 85% -20%, #1E40AF 0%, transparent 60%), linear-gradient(135deg, #020617, #0B1220 55%, #111827); color: #fff; }
.hero2 h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.2; text-wrap: balance; }
.hero2 h1 span { color: #38BDF8; }
.hero2 p { margin: 0 0 18px; color: #CBD5E1; max-width: 760px; }
.hero2 p b { color: #fff; }
.hero-search { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 14px; max-width: 780px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 16px; padding: 10px 12px; color: var(--ink); background: transparent; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; color: #94A3B8; align-items: center; }
.hero-tags a { color: #E2E8F0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 3px 10px; border-radius: 999px; }
.hero-tags a:hover { background: rgba(255,255,255,.16); }

/* category grid */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.catbox { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.catbox-h { display: flex; align-items: center; gap: 12px; }
.catbox-h b { display: block; font-size: 15px; }
.catbox-h small { color: var(--muted); font-size: 12.5px; }
.catbox-ic { width: 42px; height: 42px; border-radius: 12px; background: #FFF4EE; color: #F2662B; display: grid; place-items: center; flex: none; }
.catbox-ic svg { width: 24px; height: 24px; }
.catbox.apple .catbox-ic { background: #0B1220; color: #fff; }
.catbox-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.catbox-subs a { font-size: 13px; color: var(--ink2); background: var(--bg); padding: 3px 10px; border-radius: 999px; }
.catbox-subs a:hover { background: #E0F2FE; color: var(--brand2); }
.catbox-subs a.more { color: var(--brand2); background: none; }
.subchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: thin; }
.subchips a { flex: none; font-size: 13.5px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink2); }
.subchips a:hover { border-color: var(--brand); color: var(--brand2); }
.kwchips { display: flex; flex-wrap: wrap; gap: 8px; }
.kwchips a { font-size: 13.5px; padding: 6px 12px; border-radius: 8px; background: #F0F7FF; color: #1D4ED8; }
.kwchips a:hover { background: #DBEAFE; }
.kwchips.plain a { background: none; padding: 2px 4px; color: var(--ink2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.about { color: var(--ink2); font-size: 14px; max-width: 900px; }
.about p { margin: 0 0 10px; }

/* search page */
.sr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.sr-head h1 { margin: 0; font-size: 24px; }
.sr-head p { margin: 2px 0 0; }
.layout { margin-top: 6px; }
.filters { top: 150px; max-height: calc(100vh - 170px); overflow: auto; }
.f-head { display: none; }
.fopt { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; color: var(--ink); }
.fopt i { width: 16px; height: 16px; border: 1.5px solid #CBD5E1; border-radius: 4px; flex: none; display: grid; place-items: center; }
.fopt.radio i { border-radius: 50%; }
.fopt.on i { background: var(--brand2); border-color: var(--brand2); }
.fopt.on i::after { content: ''; width: 6px; height: 6px; background: #fff; border-radius: 1px; }
.fopt span { margin-left: auto; color: var(--muted); font-size: 12.5px; font-family: Inter; }
.fopt:hover { color: var(--brand2); }
.price-form { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.price-form input { width: 0; flex: 1; padding: 6px 8px; font-size: 13px; }
.f-note { font-size: 12.5px; margin-top: 16px; }
.toolbar { align-items: center; }
.chips-active { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-items: center; }
.achip { font-size: 13px; background: #EFF6FF; color: var(--brand2); padding: 3px 10px; border-radius: 999px; }
.sortsel { font-size: 13.5px; color: var(--ink2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.f-open { display: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 22px 0 6px; flex-wrap: wrap; }
.pager a { min-width: 36px; text-align: center; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-family: Inter; font-weight: 600; }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* card compare toggle */
.cmp-toggle { position: absolute; top: 10px; left: 10px; z-index: 2; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink2); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; opacity: 0; transition: opacity .15s; }
.dcard:hover .cmp-toggle, .cmp-toggle.on, .cmp-toggle:focus-visible { opacity: 1; }
.cmp-toggle.on { background: var(--brand2); color: #fff; border-color: var(--brand2); }
@media (hover: none) { .cmp-toggle { opacity: 1; } }

/* compare bar */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(16,24,40,.12); padding-bottom: env(safe-area-inset-bottom, 0px); }
.cb-in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.cb-items { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; }
.cb-item { flex: 0 0 200px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 12.5px; position: relative; }
.cb-item span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cb-item.empty { justify-content: center; color: var(--muted); border-style: dashed; }
.cb-img { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.cb-img svg, .cb-img img { width: 100%; height: 100%; object-fit: contain; }
.cb-img .art-emoji span { font-size: 22px; }
.cb-item button { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 13px; line-height: 1; }
.cb-actions { display: flex; gap: 8px; align-items: center; flex: none; }
body:has(.compare-bar:not([hidden])) .footer { padding-bottom: 110px; }

/* product page */
.pd { align-items: start; }
.pd-info h1 { font-size: 26px; }
.pd .brand { color: var(--brand2); }
.price-range { margin: 10px 0 0; font-size: 14.5px; color: var(--ink2); }
.big-price s { font-size: 15px; font-weight: 400; }
.pd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.ghost.on { background: #EFF6FF; color: var(--brand2); border-color: #BFDBFE; }
.pd-tabs { position: sticky; top: 118px; z-index: 5; display: flex; gap: 4px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 6px; overflow-x: auto; margin-top: 8px; }
.pd-tabs a { flex: none; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.pd-tabs a:hover { background: var(--bg); color: var(--ink); }
.shopname { font-weight: 600; margin-top: 4px; }
.price-cell { font-weight: 800; font-size: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col > * { min-width: 0; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 40%; color: var(--ink2); font-weight: 500; background: #F8FAFC; }
.pchart { width: 100%; height: auto; display: block; }
.pchart .gl { stroke: var(--line); stroke-dasharray: 3 4; }
.pchart .area { fill: #2563EB; opacity: .08; }
.pchart .ln { fill: none; stroke: #2563EB; stroke-width: 2.4; stroke-linejoin: round; }
.pchart .pt { fill: #2563EB; stroke: #fff; stroke-width: 2; }
.pchart .tx { fill: var(--muted); font-size: 12px; font-family: Inter, sans-serif; }
.pc-legend { margin-top: 6px; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.mini { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.mini:hover { border-color: var(--brand); }
.mini-img { width: 56px; height: 56px; flex: none; display: grid; place-items: center; }
.mini-img svg, .mini-img img { width: 100%; height: 100%; object-fit: contain; }
.mini-img .art-emoji span { font-size: 26px; }
.mini-n { font-size: 13.5px; line-height: 1.4; }
.mini b { font-family: Inter; }

/* compare page */
table.compare { table-layout: fixed; min-width: 640px; }
.compare th { width: 160px; background: #F8FAFC; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink2); }
.compare td { vertical-align: top; font-size: 14px; }
.cmp-img { width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 6px; }
.cmp-img svg, .cmp-img img { width: 100%; height: 100%; object-fit: contain; }
.cmp-name { display: block; font-weight: 600; margin-bottom: 4px; }
.compare .win { color: var(--ok); }
.pfs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.empty-page { text-align: center; padding: 70px 16px; }
.empty-page h1 { margin: 0 0 8px; }

/* watchlist */
.watchlist { display: grid; gap: 10px; }
.wl-row { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 16px; align-items: center; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 10px 16px; }
.wl-img { width: 80px; height: 80px; display: grid; place-items: center; }
.wl-img svg, .wl-img img { width: 100%; height: 100%; object-fit: contain; }
.wl-name { font-weight: 600; }
.wl-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wl-price b { font-size: 18px; }
.wl-act { display: flex; flex-direction: column; gap: 6px; align-items: center; }

@media (max-width: 1000px) {
  .two-col { grid-template-columns: 1fr; }
  .f-open { display: inline-flex; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(320px, 88vw); max-height: none; z-index: 50; border-radius: 0 16px 16px 0; transform: translateX(-105%); transition: transform .2s; padding-top: max(16px, env(safe-area-inset-top, 0px)); }
  .filters.open { transform: none; box-shadow: 0 0 0 100vmax rgba(2,6,23,.4); }
  .f-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
  .pd-tabs { top: 0; }
}
@media (max-width: 720px) {
  .mega-btn span { display: none; }
  .hero2 { padding: 22px 18px; }
  .hero2 h1 { font-size: 24px; }
  .hero-search { flex-direction: column; }
  .catgrid { grid-template-columns: 1fr; }
  .wl-row { grid-template-columns: 64px 1fr; }
  .wl-price, .wl-act { grid-column: 2; align-items: flex-start; flex-direction: row; }
  .cb-item { flex-basis: 150px; }
  .cb-actions .ghost { display: none; }
  .sortsel { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.header-in .search { min-width: 260px; }
.nav a { padding: 8px 9px; }
@media (max-width: 1360px) { .owner-toggle span { display: none; } .logo small { display: none; } }

/* ---------- v4: Tagline, Banner carousel, Flash Sale ---------- */
.tagline { margin: 18px 0 10px; font-size: 15px; color: var(--ink2); text-align: center; }
.tagline b { color: var(--ink); font-family: Inter, sans-serif; margin-right: 6px; }
.tagline span { color: var(--brand2); font-weight: 600; }

.banner { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.bn-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bn-track::-webkit-scrollbar { display: none; }
.bn-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 16px; min-height: 300px; padding: 34px 56px; color: #fff; position: relative; overflow: hidden; }
.bn-slide::after { content: ''; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); pointer-events: none; }
.bn-apple { background: radial-gradient(700px 300px at 85% 10%, #3B4252 0%, transparent 60%), linear-gradient(135deg, #000 0%, #111827 70%, #1F2937 100%); }
.bn-apple h2 span { background: linear-gradient(90deg, #A5B4FC, #F0ABFC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bn-flash { background: radial-gradient(600px 260px at 80% 0%, #FDE047 0%, transparent 55%), linear-gradient(120deg, #DC2626 0%, #EA580C 60%, #F59E0B 100%); }
.bn-flash h2 span { color: #FEF08A; }
.bn-acc { background: radial-gradient(600px 260px at 85% 0%, #5EEAD4 0%, transparent 55%), linear-gradient(120deg, #0F766E 0%, #0891B2 100%); }
.bn-acc h2 span { color: #CCFBF1; }
.bn-game { background: radial-gradient(600px 260px at 85% 0%, #F472B6 0%, transparent 55%), linear-gradient(120deg, #3B0764 0%, #6D28D9 60%, #2563EB 100%); }
.bn-game h2 span { color: #F5D0FE; }
.bn-text { position: relative; z-index: 1; }
.bn-kicker { display: inline-block; font: 700 12.5px/1 Inter, 'IBM Plex Sans Thai', sans-serif; letter-spacing: .08em; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 7px 12px; border-radius: 999px; }
.bn-slide h2 { margin: 14px 0 10px; font-size: 34px; line-height: 1.2; text-wrap: balance; }
.bn-slide p { margin: 0 0 20px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bn-cta { display: inline-block; background: #fff; color: #0B1220; font-weight: 700; padding: 11px 22px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: transform .15s; }
.bn-cta:hover { transform: translateY(-2px); }
.bn-art { position: relative; height: 240px; z-index: 1; }
.bn-prod { position: absolute; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.3); display: grid; place-items: center; transition: transform .2s; }
.bn-prod:hover { transform: translateY(-4px) rotate(0deg) !important; }
.bn-prod img, .bn-prod svg { width: 100%; height: 100%; object-fit: contain; }
.bn-prod.p0 { width: 200px; height: 200px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.bn-prod.p1 { width: 140px; height: 140px; left: 4%; top: 18%; transform: rotate(-8deg); }
.bn-prod.p2 { width: 140px; height: 140px; right: 4%; top: 30%; transform: rotate(7deg); }
.bn-off { position: absolute; top: -10px; right: -10px; background: var(--sale); color: #fff; border: 2px solid #fff; font: 800 14px/1 Inter, sans-serif; padding: 7px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.bn-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #0B1220; font-size: 24px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); }
.bn-nav.prev { left: 10px; } .bn-nav.next { right: 10px; }
.bn-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.bn-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); transition: width .2s, background .2s; }
.bn-dots button.on { width: 24px; background: #fff; }
.countdown.sm b { font-size: 14px; min-width: 26px; padding: 2px 4px; background: rgba(0,0,0,.35); }
.countdown.sm i { color: #fff; }

.flash { margin: 22px 0; padding: 18px 20px 20px; border-radius: 16px; background: linear-gradient(180deg, #FFF1F2 0%, #fff 140px); border: 1px solid #FECACA; box-shadow: var(--shadow); }
.flash-head { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.flash-head h2 { margin: 0; font-size: 24px; color: #DC2626; font-family: Inter, 'IBM Plex Sans Thai', sans-serif; font-style: italic; font-weight: 800; }
.flash-head h2 small { font-style: normal; font-weight: 500; font-size: 14px; color: var(--ink2); margin-left: 6px; }
.flash-head .bolt { display: inline-block; animation: bolt 1.2s ease-in-out infinite; }
@keyframes bolt { 50% { transform: scale(1.25) rotate(-8deg); } }
.flash-ends { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); }
.flash-ends .countdown b { background: #DC2626; font-size: 18px; }
.flash-ends .countdown i { color: #DC2626; }
.flash-note { margin-left: auto; color: var(--muted); font-size: 13px; }
.flash-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.fcard { background: #fff; border: 1px solid #F3D4D4; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .15s, transform .15s; }
.fcard:hover { box-shadow: 0 10px 24px rgba(220,38,38,.12); transform: translateY(-2px); }
.fcard-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 8px; }
.fcard-img img, .fcard-img > svg { width: 100%; height: 100%; object-fit: contain; }
.fcard-off { position: absolute; top: 0; left: 0; background: var(--sale); color: #fff; font: 800 15px/1 Inter, sans-serif; padding: 7px 9px; border-radius: 8px; }
.fcard-top { position: absolute; top: 0; right: 0; background: #FACC15; color: #713F12; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.fcard-name { font-size: 14px; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fcard-price b { color: #DC2626; font: 800 20px/1.2 Inter, sans-serif; }
.fcard-price s { color: var(--muted); font-size: 13px; }
.fcard-save { font-size: 12.5px; color: var(--ok); font-weight: 600; }
.fcard-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; font-size: 12px; }
.tag-low { background: #ECFDF5; color: #047857; border-radius: 6px; padding: 2px 7px; font-weight: 600; }
.fcard-btn { margin-top: auto; text-align: center; background: #DC2626; color: #fff; font-weight: 700; border-radius: 8px; padding: 8px; }

@media (max-width: 1000px) {
  .flash-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .fcard { scroll-snap-align: start; }
  .bn-slide { padding: 28px 40px; }
  .bn-slide h2 { font-size: 28px; }
}
@media (max-width: 720px) {
  .tagline { font-size: 13.5px; }
  .banner { border-radius: 14px; }
  .bn-slide { grid-template-columns: 1fr; min-height: 0; padding: 22px 20px 40px; gap: 6px; }
  .bn-slide h2 { font-size: 22px; margin: 10px 0 6px; }
  .bn-slide p { font-size: 13.5px; margin-bottom: 14px; }
  .bn-art { height: 130px; order: -1; }
  .bn-prod.p0 { width: 120px; height: 120px; }
  .bn-prod.p1, .bn-prod.p2 { width: 84px; height: 84px; }
  .bn-nav { display: none; }
  .flash { padding: 14px 12px; }
  .flash-head h2 { font-size: 20px; }
  .flash-note { margin-left: 0; width: 100%; }
  .flash-row { grid-auto-columns: 62%; }
}
@media (prefers-reduced-motion: reduce) { .flash-head .bolt { animation: none; } }

/* ---------- v5: DotD Score + ความเห็นจาก DotD (หน้าสินค้า) ---------- */
.verdict { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 150px 1fr; gap: 18px 22px; scroll-margin-top: 140px; }
.vd-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vd-ring { position: relative; width: 136px; height: 136px; --c: var(--ok); }
.vd-ring.top { --c: #16A34A; } .vd-ring.good { --c: #0EA5E9; } .vd-ring.ok { --c: #D97706; } .vd-ring.low { --c: #DC2626; }
.vd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vd-ring circle { fill: none; stroke-width: 11; }
.vd-ring .bg { stroke: #EEF2F7; }
.vd-ring .fg { stroke: var(--c); stroke-linecap: round; }
.vd-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: Inter, sans-serif; }
.vd-num b { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.vd-num small { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.vd-grade { font-weight: 700; font-size: 15px; padding: 3px 14px; border-radius: 999px; background: #ECFDF5; color: #15803D; }
.vd-grade.good { background: #E0F2FE; color: #0369A1; } .vd-grade.ok { background: #FEF3C7; color: #B45309; } .vd-grade.low { background: #FEE2E2; color: #B91C1C; }
.vd-cap { font: 700 12px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vd-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; align-content: center; }
.vd-bar-h { display: flex; justify-content: space-between; font-size: 14px; }
.vd-bar-h b { font-size: 16px; }
.vd-track { height: 8px; background: #EEF2F7; border-radius: 999px; overflow: hidden; margin: 4px 0 3px; }
.vd-track i { display: block; height: 100%; background: linear-gradient(90deg, #0EA5E9, #2563EB); border-radius: inherit; }
.vd-note { font-size: 12.5px; color: var(--muted); }
.vd-body { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 14px; }
.vd-body h3 { margin: 0 0 8px; font-size: 17px; }
.vd-h { font-weight: 700; font-size: 14px; color: var(--ink); margin: 12px 0 6px; }
.vd-feat { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.vd-feat li { background: #F1F5FF; color: #1E3A8A; border-radius: 8px; padding: 4px 10px; font-size: 13.5px; }
.vd-feat li::before { content: '✓ '; color: var(--brand2); font-weight: 700; }
.vd-why { margin: 0; color: var(--ink2); }
.vd-price { border-radius: 12px; padding: 12px 14px; background: #F0FDF4; border: 1px solid #BBF7D0; }
.vd-price.good { background: #F0F9FF; border-color: #BAE6FD; }
.vd-price.wait { background: #FFFBEB; border-color: #FDE68A; }
.vd-pill { display: inline-block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.vd-price ul { margin: 0; padding-left: 20px; color: var(--ink2); font-size: 14px; }
.vd-price li { margin: 2px 0; }
@media (max-width: 720px) {
  .verdict { grid-template-columns: 1fr; padding: 16px; }
  .vd-bars { grid-template-columns: 1fr; }
}
.vd-fair { font-size: 11.5px; line-height: 1.35; color: var(--muted); text-align: center; margin-top: 2px; }

/* ---------- v6: หน้าข้อมูล (เกี่ยวกับเรา / นโยบาย / ติดต่อ) ---------- */
.info { max-width: 900px; margin: 22px auto 0; }
.info-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.info-nav a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.info-nav a.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.info-hero { padding: 30px 28px; border-radius: 18px; color: #fff; background: radial-gradient(700px 260px at 85% -20%, #1E40AF 0%, transparent 60%), linear-gradient(135deg, #020617, #0B1220 55%, #111827); }
.info-hero h1 { margin: 0 0 6px; font-size: 30px; }
.info-hero .muted { color: #94A3B8; margin: 0; }
.info-lead { margin: 0; font-size: 17px; color: #CBD5E1; }
.info-lead b { color: #38BDF8; }
.info-body { background: #fff; border-radius: 16px; padding: 24px 28px; margin-top: 14px; box-shadow: var(--shadow); line-height: 1.75; }
.info-body h2 { font-size: 18px; margin: 22px 0 8px; }
.info-body h2:first-child { margin-top: 0; }
.info-body a { color: var(--brand2); text-decoration: underline; text-underline-offset: 2px; }
.info-body a.btn { text-decoration: none; }
.info-body a.btn.primary { color: #fff; }
.info-list { padding-left: 20px; margin: 6px 0; }
.info-list li { margin: 4px 0; }
.info-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.info-stats div { background: #F5F7FB; border-radius: 12px; padding: 14px; text-align: center; }
.info-stats b { display: block; font-size: 24px; }
.info-stats span { font-size: 13px; color: var(--muted); }
.info-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.contact-form .consent { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--ink2); }
.contact-form .consent input { margin-top: 5px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.contact-form button { align-self: flex-start; }
.form-msg { font-size: 14px; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); } .form-msg.bad { color: var(--bad); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links span { margin-left: auto; color: #64748B; }
.msg-row { border-top: 1px solid var(--line); padding: 10px 0; }
.msg-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; }
.msg-h .sm { margin-left: auto; }
.msg-b { white-space: pre-wrap; color: var(--ink2); margin-top: 4px; }
@media (max-width: 720px) {
  .info-hero { padding: 22px 18px; } .info-hero h1 { font-size: 24px; }
  .info-body { padding: 18px 16px; }
  .info-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-links span { margin-left: 0; width: 100%; }
}

/* ---------- v7: หลังร้าน สินค้าจริง & ลิงก์ Affiliate ---------- */
.real-cta { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #FFF7ED, #FFEDD5); border: 1px solid #FED7AA; }
.real-cta .ic { font-size: 28px; }
.real-cta small { display: block; color: var(--ink2); font-size: 13px; }
.real-cta .go { margin-left: auto; font-weight: 700; color: #C2410C; white-space: nowrap; }
.live-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 16px; border-radius: 14px; background: #FFFBEB; border: 1px solid #FDE68A; }
.live-card.on { background: #F0FDF4; border-color: #BBF7D0; }
.live-card p { margin: 4px 0 0; color: var(--ink2); max-width: 720px; font-size: 14px; }
.live-state { font-weight: 800; font-size: 17px; }
.real-q { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; }
.real-hits { display: grid; gap: 4px; margin-top: 8px; }
.real-hits a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); }
.real-hits a:hover { border-color: var(--brand); background: #F0F9FF; }
.real-list { display: grid; gap: 6px; }
.real-row { display: grid; grid-template-columns: 1fr auto 110px 100px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.real-row:hover { border-color: var(--brand); }
.real-name small { display: block; }
.how ol { margin: 6px 0 0; padding-left: 20px; color: var(--ink2); line-height: 1.8; }
.offer-form .of-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.offer-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13.5px; }
.offer-form .span2 { grid-column: span 2; }
.offer-form input, .offer-form select, .offer-form textarea { font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
.offer-form input:focus, .offer-form select:focus, .offer-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.of-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 1000px) { .offer-form .of-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .offer-form .of-grid { grid-template-columns: 1fr; } .offer-form .span2 { grid-column: auto; }
  .real-row { grid-template-columns: 1fr auto; } .real-cta { flex-wrap: wrap; } .real-cta .go { margin-left: 0; }
}

/* ---------- v8: แบนเนอร์รูปสินค้าจริง ---------- */
.bn-art { height: 260px; }
.bn-prod { padding: 10px 10px 28px; overflow: visible; }
.bn-prod img { border-radius: 10px; }
.bn-prod.p0 { width: 230px; height: 250px; }
.bn-prod.p1, .bn-prod.p2 { width: 150px; height: 170px; }
.bn-price { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; font: 800 14px/1 Inter, sans-serif; color: #0B1220; }
.bn-prod.p0 .bn-price { font-size: 17px; }
@media (max-width: 720px) {
  .bn-art { height: 150px; }
  .bn-prod { padding: 6px 6px 20px; }
  .bn-prod.p0 { width: 130px; height: 145px; }
  .bn-prod.p1, .bn-prod.p2 { width: 92px; height: 105px; }
  .bn-price { font-size: 11.5px; bottom: 4px; } .bn-prod.p0 .bn-price { font-size: 13px; }
}

/* ---------- v9: โลโก้แบรนด์ ---------- */
.blogo { display: block; height: 22px; width: auto; max-width: 96px; object-fit: contain; opacity: .88; }
.blogo.sm { height: 15px; max-width: 70px; }
.blogo.md { height: 26px; max-width: 110px; }
.blogo-txt { font: 800 14px/1 Inter, sans-serif; letter-spacing: .02em; color: var(--ink); text-transform: uppercase; }
.blogo-txt.sm { font-size: 11px; color: var(--ink2); }
.blogo-txt.md { font-size: 16px; }
.dcard-brand { display: inline-flex; align-items: center; height: 18px; margin-bottom: 4px; }
.pd-info .brand { display: inline-flex; align-items: center; gap: 10px; }
.pd-info .brand span { font-size: 12.5px; color: var(--brand2); font-weight: 600; }
.brandstrip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.brandtile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 88px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.brandtile:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.brandtile .blogo { height: 28px; max-width: 100px; }
.brandtile small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 1000px) { .brandstrip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .brandstrip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; overflow-x: auto; padding-bottom: 4px; } .brandtile { height: 76px; } }

/* ---------- v10: แบนเนอร์แบรนด์ DotD ---------- */
.bn-dotd { background: radial-gradient(520px 300px at 88% 18%, rgba(56,189,248,.35) 0%, transparent 60%), radial-gradient(420px 260px at 60% 120%, rgba(37,99,235,.55) 0%, transparent 60%), linear-gradient(135deg, #020617 0%, #0B1A3A 55%, #0B1220 100%); }
.bn-dotd::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.bn-dotd h2 span { background: linear-gradient(90deg, #38BDF8, #A5B4FC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bn-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 6px; background: linear-gradient(135deg, #0EA5E9, #2563EB); color: #fff; font: 900 12px/1 Inter, sans-serif; vertical-align: -4px; }
.bn-chip { display: inline-block; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13px; color: #E2E8F0; }
.bn-compare { background: radial-gradient(520px 280px at 85% 10%, rgba(52,211,153,.45) 0%, transparent 60%), linear-gradient(120deg, #064E3B 0%, #047857 55%, #0F766E 100%); }
.bn-compare h2 span { color: #FDE68A; font-family: Inter, sans-serif; font-size: 1.25em; }
.bn-vs { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; }
.bn-vs .bn-prod.p0 { position: relative; left: auto; top: auto; transform: none; width: 200px; height: 200px; padding: 10px; }
.bn-shops { display: grid; gap: 10px; }
.bn-shop { background: #fff; color: #0B1220; border-radius: 14px; padding: 10px 14px; min-width: 170px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.bn-shop small { display: block; font-size: 12px; color: #64748B; margin-bottom: 2px; }
.bn-shop s { font: 700 18px/1.2 Inter, sans-serif; color: #94A3B8; }
.bn-shop b { font: 800 24px/1.2 Inter, sans-serif; color: #047857; }
.bn-shop.lo { outline: 3px solid #FDE68A; }
@media (max-width: 720px) {
  .bn-vs { gap: 10px; } .bn-vs .bn-prod.p0 { width: 110px; height: 110px; }
  .bn-shop { min-width: 0; padding: 7px 10px; } .bn-shop s { font-size: 13px; } .bn-shop b { font-size: 17px; } .bn-shop small { font-size: 10.5px; }
  .bn-chip { font-size: 11.5px; padding: 4px 8px; }
}

/* ---------- v11: โลโก้ DotD (ป้ายราคา) + โลโก้แบรนด์ทั่วเว็บ ---------- */
img.logo-mark { width: 44px; height: auto; border-radius: 0; background: none; box-shadow: none; display: block; }
.footer img.logo-mark { width: 40px; }
img.bn-mark { width: 22px; height: auto; margin-right: 4px; vertical-align: -5px; background: none; border-radius: 0; }
.nav-logo { height: 15px; width: auto; vertical-align: -2px; margin-right: 5px; }
.apple-inline { width: .9em; height: .9em; vertical-align: -.08em; margin-right: 2px; }
.brand-glyph { width: 22px; height: 22px; }
.catbox.apple .catbox-ic .brand-glyph { color: #fff; }
.cat-tab .brand-glyph, .mega-ic .brand-glyph { width: 20px; height: 20px; }
.catbox-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.catbox-brands a { display: inline-flex; align-items: center; height: 20px; opacity: .8; transition: opacity .15s; }
.catbox-brands a:hover { opacity: 1; }
.catbox-brands .blogo.sm { height: 16px; }
.fopt-logo { height: 14px; width: 22px; object-fit: contain; margin-right: 6px; vertical-align: -2px; opacity: .85; }
.blogo.lg { height: 40px; max-width: 160px; }
.blogo-txt.lg { font-size: 26px; }
.sr-brandlogo { margin-bottom: 8px; }
.catbox-brands { gap: 8px 18px; }
.catbox-brands a { height: 26px; opacity: .92; }
.catbox-brands .blogo.sm { height: 22px; max-width: 84px; }
.catbox-brands .blogo-txt.sm { font-size: 12.5px; color: var(--ink); }

/* ---------- v12: ป้ายสินค้า ---------- */
.dcard-img { position: relative; }
.pbadges { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.pbadges.pd { position: static; margin: 4px 0 6px; }
.pbadge { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 999px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); white-space: nowrap; }
.pbadges.pd .pbadge { font-size: 13px; padding: 6px 10px; box-shadow: none; }
.pbadge.new { background: #7C3AED; }
.pbadge.best { background: #F97316; }
.pbadge.deal { background: var(--sale); }
.pbadge.save { background: #047857; }
.pbadge { font-size: 12.5px; padding: 6px 10px; }
@media (max-width: 720px) { .pbadge { font-size: 11px; padding: 5px 8px; } }

/* ---------- v13: ป้ายแพลตฟอร์ม (โลโก้จริง) ---------- */
.pfl { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px; border-radius: 7px; background: color-mix(in srgb, var(--c, #888) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c, #888) 28%, #fff); color: var(--c); white-space: nowrap; line-height: 1; }
.pfl svg { width: 15px; height: 15px; flex: none; }
.pfl b { font: 800 12.5px/1 Inter, sans-serif; letter-spacing: -.01em; }
.pfl.shopee { --c: #EE4D2D; }
.pfl.tiktok { --c: #111111; }
.pfl.amazon { --c: #E68A00; }
.pfl.lazada { background: #F4F3FF; border-color: #D9D6FB; padding: 0 8px; }
.pfl.lazada img { height: 14px; width: auto; display: block; }
.pfl.lazada img { height: 17px; }
.pfl.thaimart { --c: #E3262A; } .pfl-ic { width: 16px; height: 16px; border-radius: 50%; display: block; flex: none; }

/* ---------- v14: กล่องหมวดหมู่ไล่สีอ่อน แต่ละหมวดคนละโทน ---------- */
.catbox { --h: #F2662B; position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--h) 14%, #fff);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--h) 13%, #fff) 0%, color-mix(in srgb, var(--h) 5%, #fff) 38%, #fff 72%);
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.catbox:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--h) 35%, #fff); box-shadow: 0 10px 28px color-mix(in srgb, var(--h) 18%, transparent); }
.catbox::after { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: color-mix(in srgb, var(--h) 9%, transparent); pointer-events: none; }
.catbox-ic { background: color-mix(in srgb, var(--h) 14%, #fff); color: var(--h); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 18%, #fff); }
.catbox-subs a { background: color-mix(in srgb, var(--h) 7%, #fff); color: color-mix(in srgb, var(--h) 55%, #1f2937); border: 1px solid color-mix(in srgb, var(--h) 12%, #fff); }
.catbox-subs a:hover { background: color-mix(in srgb, var(--h) 16%, #fff); color: var(--h); }
.catbox-subs a.more { border: 0; background: none; color: var(--h); font-weight: 600; }
.catbox-brands { border-top-color: color-mix(in srgb, var(--h) 18%, #fff); }
.catbox[data-cat="apple"]      { --h: #4B5563; }
.catbox[data-cat="smartphone"] { --h: #2563EB; }
.catbox[data-cat="notebook"]   { --h: #7C3AED; }
.catbox[data-cat="gaming"]     { --h: #DB2777; }
.catbox[data-cat="components"] { --h: #0891B2; }
.catbox[data-cat="audio"]      { --h: #EA580C; }
.catbox[data-cat="wearable"]   { --h: #16A34A; }
.catbox[data-cat="camera"]     { --h: #D97706; }
.catbox[data-cat="smarthome"]  { --h: #0D9488; }
.catbox[data-cat="accessory"]  { --h: #4F46E5; }
.catbox[data-cat="office"]     { --h: #475569; }
.catbox[data-cat="auto"]       { --h: #DC2626; }
.catbox.apple .catbox-ic { background: #0B1220; color: #fff; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .catbox:hover { transform: none; } }

/* ===== v15: น้ำหวาน — โซนคัดมาให้ + ผู้ช่วยแชท ===== */
.nw-picks { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; margin: 18px 0; padding: 18px; border-radius: 22px;
  background: radial-gradient(120% 120% at 0% 0%, #FFF1F5 0%, #FFF8F0 45%, #fff 80%); border: 1px solid #F8E1E8; }
.nw-hero { position: relative; border-radius: 18px; overflow: hidden; background: #F3EEE9; min-height: 380px; }
.nw-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.nw-say { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(16,24,40,.12); }
.nw-say b { font-size: 16px; color: #BE185D; }
.nw-say p { margin: 4px 0 10px; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.nw-say .btn { background: #BE185D; color: #fff; border: 0; padding: 8px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.nw-grid { min-width: 0; }
.nw-grid .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .nw-grid .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .nw-picks { grid-template-columns: 1fr; padding: 12px; } .nw-hero { min-height: 420px; } }

.nw-face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 18%; display: block; background: #FCE7F3; }
.nw-face.lg { width: 44px; height: 44px; } .nw-face.sm { width: 28px; height: 28px; flex: none; }
.nw-ini { display: grid; place-items: center; color: #BE185D; font-weight: 700; font-size: 20px; }
.nw-fab { position: fixed; right: 18px; bottom: 22px; z-index: 40; width: 60px; height: 60px; padding: 3px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #F472B6, #BE185D); box-shadow: 0 10px 28px rgba(190,24,93,.35); transition: transform .15s; }
.nw-fab:hover { transform: scale(1.06); } .nw-fab .nw-face { width: 54px; height: 54px; border: 2px solid #fff; }
.nw-dot { position: absolute; right: 3px; bottom: 3px; width: 13px; height: 13px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }
body:has(#compareBar:not([hidden])) .nw-fab { bottom: 104px; }
.nw-panel { position: fixed; right: 18px; bottom: 92px; z-index: 45; width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(16,24,40,.25); border: 1px solid var(--line); }
.nw-panel[hidden] { display: none; }
body:has(#compareBar:not([hidden])) .nw-panel { bottom: 174px; height: min(520px, calc(100dvh - 200px)); }
.nw-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #EC4899, #9D174D); }
.nw-head b { display: block; font-size: 15px; } .nw-head small { opacity: .85; font-size: 11.5px; }
.nw-head .nw-face { border: 2px solid rgba(255,255,255,.8); }
.nw-x { margin-left: auto; background: rgba(255,255,255,.2); color: #fff; border: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.nw-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #FDF7FA; }
.nw-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.nw-msg.me { align-self: flex-end; }
.nw-b { background: #fff; border: 1px solid #F3E1EA; padding: 9px 12px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.nw-msg.me .nw-b { background: #BE185D; color: #fff; border-color: #BE185D; border-radius: 14px 14px 4px 14px; }
.nw-b a { color: #BE185D; font-weight: 600; }
.nw-prod { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 7px 10px; border-radius: 10px; background: #FDF2F8; text-decoration: none; }
.nw-prod span { color: var(--ink); font-weight: 500; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nw-prod b { color: var(--sale); white-space: nowrap; font-size: 13px; }
.nw-more { display: inline-block; margin-top: 8px; font-size: 12.5px; }
.nw-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; border-top: 1px solid var(--line); scrollbar-width: none; }
.nw-chips button { flex: none; border: 1px solid #F3C6DA; background: #fff; color: #9D174D; border-radius: 999px; padding: 6px 11px; font-size: 12.5px; cursor: pointer; }
.nw-chips button:hover { background: #FDF2F8; }
.nw-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.nw-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 14px; }
.nw-form .btn { border-radius: 999px; background: #BE185D; border-color: #BE185D; }
@media (max-width: 700px) { .nw-fab { right: 12px; bottom: 16px; width: 56px; height: 56px; } .nw-fab .nw-face { width: 50px; height: 50px; }
  .nw-panel { right: 8px; left: 8px; width: auto; bottom: 82px; } }
/* การ์ดในโซนน้ำหวานแคบกว่าปกติ: ซ่อนจำนวนรีวิวและย่อปุ่ม ไม่ให้ล้นจอ */
.nw-grid .dcard-foot { gap: 4px; padding: 8px 8px 10px; }
.nw-grid .dcard-rate .muted { display: none; }
.nw-grid .btn-check { padding: 7px 10px; font-size: 13px; }

/* ===== v16: แถบเทียบราคาแต่ละแพลตฟอร์ม (หน้าสินค้า) ===== */
.pf-strip { margin: 12px 0 4px; }
.pf-strip-h { font-size: 12.5px; color: var(--ink2); margin-bottom: 6px; font-weight: 600; }
.pf-strip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.pf-chip:hover { border-color: #93C5FD; box-shadow: 0 4px 12px rgba(37,99,235,.12); }
.pf-chip b { font-size: 15px; }
.pf-chip.low { border-color: #86EFAC; background: #F0FDF4; }
.pf-chip.low b { color: #15803D; }
.pf-tag { font-size: 11px; font-weight: 700; color: #fff; background: #16A34A; padding: 2px 7px; border-radius: 999px; }
.pf-diff { font-size: 11.5px; color: var(--muted); }
@media (max-width: 520px) { .pf-chip { flex: 1 1 calc(50% - 8px); justify-content: space-between; padding: 7px 10px; } .pf-chip b { font-size: 14px; } }
