/* ORMEFA — Find What Fits You. */

:root {
  --ink: #15201e;
  --ink-2: #3a4846;
  --muted: #64736f;
  --line: #e2e7e4;
  --line-2: #cfd8d4;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --soft: #f3f6f4;
  --brand: #0e5e55;
  --brand-ink: #0a4740;
  --brand-soft: #e4f1ee;
  --accent: #f5b041;
  --accent-ink: #3d2a05;
  --accent-hover: #f0a01f;
  --good: #1d7a4c;
  --good-soft: #e8f5ee;
  --warn: #a8501a;
  --warn-soft: #fbf0e7;
  --skip: #8a3a3a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(21 32 30 / 6%), 0 6px 20px -8px rgb(21 32 30 / 14%);
  --wrap: 1140px;
  --gutter: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-th: 'IBM Plex Sans Thai', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(th), .market-th, .root [lang="th"] { font-family: var(--font-th); }
.market-th { line-height: 1.8; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
.market-th h1, .market-th h2, .market-th h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ── Bars ─────────────────────────────────────────── */
.preview-bar { background: #2b2b2b; color: #ffd98a; font-size: 13px; text-align: center; padding: 6px var(--gutter); font-weight: 600; }
.status-banner { font-size: 14px; font-weight: 600; padding: 10px 0; }
.status-banner--draft { background: #fdecec; color: #8a2a2a; }
.status-banner--review { background: #fff6dd; color: #6b4b00; }
.status-banner--example { background: #ece9fd; color: #3b2c8a; }

/* ── Header ───────────────────────────────────────── */
.site-header { background: rgb(251 250 247 / 92%); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__word { font-family: var(--font); font-weight: 800; letter-spacing: .16em; font-size: 17px; }
.logo-mark { display: block; flex: none; }
.nav { order: 3; flex: 1 0 100%; margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 4px; white-space: nowrap; }
.nav a { display: block; padding: 6px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.mswitch { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 3px 3px 10px; color: var(--muted); }
.mswitch .icon { margin-right: 4px; }
.mswitch__item { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.mswitch__item:hover { background: #fff; color: var(--ink); }
.mswitch__item.is-current { background: var(--ink); color: #fff; }
@media (min-width: 900px) {
  .nav { order: 0; flex: 1 1 auto; margin: 0; }
  .nav ul { padding: 0; justify-content: flex-start; }
  .mswitch { margin-left: 0; }
}

/* ── Buttons ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-2); color: var(--ink); }
.btn--cta { background: var(--accent); color: var(--accent-ink); }
.btn--cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--sm { padding: 8px 12px; font-size: 14px; border-radius: 8px; }
.btn .icon { width: 1em; height: 1em; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.textlink { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 48px 0 40px; background: radial-gradient(1200px 400px at 85% -10%, var(--brand-soft), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 64px; } .hero__inner { grid-template-columns: 1.25fr 1fr; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.market-th .eyebrow { letter-spacing: .02em; text-transform: none; font-size: 14px; }
.eyebrow a { text-decoration: none; }
.hero__title { font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.market-th .hero__title { font-size: clamp(30px, 5vw, 48px); letter-spacing: 0; font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.fitcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; max-width: 420px; margin: 0 auto; transform: rotate(-1.2deg); }
.fitcard__name { font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.fitcard__row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 10px; color: var(--ink-2); }
.fitcard__row b { display: block; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.market-th .fitcard__row b { text-transform: none; letter-spacing: 0; font-size: 14px; }
.fitcard__row .icon { margin-top: 4px; color: var(--muted); }
.fitcard__row--good .icon { color: var(--good); }
.fitcard__row--skip .icon { color: var(--skip); }
.fitcard__cta { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 10px; padding: 10px; font-size: 15px; }

/* Root editions */
.hero--root { padding-bottom: 56px; }
.editions__title { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 36px 0 14px; }
.editions { display: grid; gap: 14px; max-width: 760px; }
@media (min-width: 640px) { .editions { grid-template-columns: 1fr 1fr; } }
.edition { position: relative; display: grid; gap: 2px; padding: 22px 56px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.edition:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.edition.is-suggested { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.edition__code { font-family: var(--font); font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--brand); }
.edition__name { font-size: 24px; font-weight: 700; }
.edition__meta { color: var(--muted); font-size: 15px; }
.edition__suggest { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); padding: 2px 8px; border-radius: 999px; }
.edition__go { position: absolute; right: 20px; bottom: 22px; color: var(--brand); }
.edition__go .icon { width: 22px; height: 22px; }
.editions__note { color: var(--muted); font-size: 14px; margin-top: 16px; }

.formats { display: grid; gap: 16px; }
@media (min-width: 720px) { .formats { grid-template-columns: repeat(4, 1fr); } }
.format { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.format .icon { width: 26px; height: 26px; color: var(--brand); margin-bottom: 10px; }
.format h3 { font-size: 17px; }
.format p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ── Blocks ───────────────────────────────────────── */
.block { padding-top: 48px; padding-bottom: 8px; }
.block--tight { padding-top: 28px; padding-left: 0; padding-right: 0; }
.block__title { font-size: clamp(22px, 3vw, 28px); margin-bottom: 20px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0 32px; margin-top: 48px; }

.vgrid { display: grid; gap: 16px; }
@media (min-width: 720px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
.vcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.vcard:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.vcard__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.vcard__icon .icon { width: 24px; height: 24px; }
.vcard__name { font-size: 21px; }
.vcard__intro { color: var(--ink-2); font-size: 15.5px; }
.vcard__count { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); font-size: 15px; margin-top: 8px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }

.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--bg); border-radius: var(--radius); padding: 20px; }
.step__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.step h3 { font-size: 17px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }

.pillars { list-style: none; padding: 0; margin: 0 0 56px; display: grid; gap: 16px; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { border-top: 3px solid var(--brand); padding-top: 14px; }
.pillar h3 { font-size: 16px; }
.pillar p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* Article cards */
.acard-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .acard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .acard-grid { grid-template-columns: repeat(3, 1fr); } }
.related .acard-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .related .acard-grid { grid-template-columns: repeat(2, 1fr); } }
.acard__link { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.acard__link:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.acard__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.acard__type { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }
.market-th .acard__type { text-transform: none; letter-spacing: 0; font-size: 13px; }
.type--compare { background: #e9eefc; color: #2b3f8a; }
.type--review { background: #f3ecfb; color: #5a2d82; }
.type--guide { background: #fdf3e2; color: #7a4d00; }
.type--deal { background: #fde9e4; color: #8a2a12; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; }
.chip--draft { background: #fdecec; color: #8a2a2a; }
.chip--review { background: #fff1c7; color: #6b4b00; }
.acard__title { font-size: 18px; margin-bottom: 6px; }
.acard__desc { color: var(--ink-2); font-size: 15px; flex: 1; }
.acard__meta { font-size: 13px; color: var(--muted); }

/* ── Page head / crumbs ───────────────────────────── */
.crumbs { padding: 18px 0 0; font-size: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--muted); }
.crumbs li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.page-head { padding: 24px 0 28px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 44px); }
.page-head--hub .chips { margin-top: 12px; }

/* ── Article ──────────────────────────────────────── */
.article-layout { display: grid; gap: 40px; padding-bottom: 64px; }
@media (min-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr) 240px; } }
.article { min-width: 0; max-width: 780px; }
.article--page { padding-bottom: 64px; }
.article__head { padding: 20px 0 8px; }
.article__head h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.025em; }
.market-th .article__head h1 { font-weight: 700; letter-spacing: 0; }
.dek { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--muted); padding-top: 4px; }
.byline a { color: var(--ink-2); }
.research-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.research-badge:hover { border-color: var(--brand); color: var(--brand-ink); }

.disclosure { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 20px 0; font-size: 14px; color: var(--ink-2); }
.disclosure p { margin: 0; }
.disclosure .icon { margin-top: 3px; color: var(--brand); }

.answer { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0 28px; }
.answer__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-ink); margin-bottom: 6px; }
.market-th .answer__label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.answer__text p:last-child { margin-bottom: 0; }
.answer__text { font-size: 17.5px; }

.toc--side { display: none; }
@media (min-width: 1080px) {
  .toc--side { display: block; position: sticky; top: 96px; align-self: start; font-size: 14px; border-left: 2px solid var(--line); padding-left: 16px; margin-top: 120px; max-height: calc(100vh - 120px); overflow: auto; }
  .toc--mobile { display: none; }
}
.toc__title, .toc--mobile summary { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.market-th .toc__title, .market-th .toc--mobile summary { text-transform: none; letter-spacing: 0; font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.toc--mobile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 20px; background: var(--surface); }
.toc--mobile summary { cursor: pointer; margin: 0; }
.toc--mobile ol { margin-top: 10px; }

/* Prose */
.prose { font-size: 17.5px; }
.market-th .prose { font-size: 17px; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 48px; padding-top: 8px; }
.prose h3 { font-size: 21px; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose code { background: var(--soft); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table, .compare__table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--soft); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.fineprint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.callout { padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-size: 15px; }
.callout--error { background: #fdecec; color: #8a2a2a; }

/* Quick picks */
.quickpicks h2 { margin-top: 32px; }
.qp-grid { list-style: none; padding: 0 !important; margin: 0 0 8px !important; display: grid; gap: 14px; }
@media (min-width: 640px) { .qp-grid { grid-template-columns: repeat(2, 1fr); } }
.qp { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; margin: 0 !important; }
.qp__rank { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 700; }
.qp__label { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; margin: 0 36px 4px 0; }
.market-th .qp__label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.qp__name { font-size: 18px !important; margin: 0 0 6px !important; padding: 0 !important; }
.qp__name a { color: var(--ink); text-decoration: none; }
.qp__name a:hover { color: var(--brand); }
.qp__why { font-size: 15px; color: var(--ink-2); flex: 1; }
.qp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.qp__more { font-size: 14px; }

/* Comparison table */
.compare__table thead th { white-space: normal; min-width: 160px; }
.compare__table thead a { color: var(--ink); text-decoration: none; }
.compare__table tbody th { background: var(--soft); font-weight: 600; white-space: nowrap; position: sticky; left: 0; z-index: 1; font-size: 14px; }
.compare__table td, .compare__table th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare__table thead td { background: var(--soft); position: sticky; left: 0; }

/* Versus */
.vs__grid { display: grid; gap: 12px; align-items: stretch; }
@media (min-width: 720px) { .vs__grid { grid-template-columns: 1fr auto 1fr; } }
.vs__side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 15.5px; }
.vs__name { font-size: 19px !important; margin: 0 0 10px !important; }
.vs__name a { color: var(--ink); text-decoration: none; }
.vs__skip { color: var(--ink-2); }
.vs__mid { align-self: center; justify-self: center; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }

/* Product card */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; margin: 28px 0; font-size: 16px; }
@media (min-width: 720px) { .pcard { padding: 28px; } }
.pcard--example { border-style: dashed; border-color: #b9b0f0; }
.pcard__example { background: #ece9fd; color: #3b2c8a; font-size: 13px; font-weight: 600; border-radius: 8px; padding: 6px 10px; }
.pcard__head { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; }
@media (min-width: 720px) { .pcard__head { grid-template-columns: 120px 1fr; gap: 22px; } }
.pcard__media { aspect-ratio: 1; border-radius: 14px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; }
.pcard__ph { color: var(--brand); opacity: .55; }
.pcard__ph .icon { width: 36px; height: 36px; }
.pcard__label { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }
.pcard__name { font-size: 23px !important; margin: 0 0 2px !important; padding: 0 !important; }
.pcard__model { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.pcard__bestfor { margin: 0; }
.pcard__cols { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 640px) { .pcard__cols { grid-template-columns: 1fr 1fr; } }
.pcard__col { border-radius: 12px; padding: 14px 16px; }
.pcard__col--good { background: var(--good-soft); }
.pcard__col--warn { background: var(--warn-soft); }
.pcard h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.market-th .pcard h4 { text-transform: none; letter-spacing: 0; font-size: 15px; }
.pcard__col--good h4 { color: var(--good); }
.pcard__col--warn h4 { color: var(--warn); }
.list-check, .list-warn { list-style: none; padding: 0 !important; margin: 0 !important; }
.list-check li, .list-warn li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin-bottom: 6px; }
.list-check .icon, .list-warn .icon { margin-top: 4px; }
.list-check .icon { color: var(--good); }
.list-warn .icon { color: var(--warn); }
.pcard__skip { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 15px; }
.pcard__skip .icon { color: var(--skip); margin-top: 4px; }
.pcard__take { margin-top: 16px; border-left: 3px solid var(--brand); padding-left: 14px; font-size: 15.5px; }
.pcard__take h4 { color: var(--brand); }
.pcard__take p:last-child { margin: 0; }
.pcard__specs { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.pcard__specs summary { cursor: pointer; font-weight: 600; padding: 10px 0; font-size: 15px; }
.pcard__specs dl { margin: 0 0 12px; }
.spec { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 5px; vertical-align: 1px; white-space: nowrap; }
.tag--manufacturer { background: #eef1f0; color: var(--muted); }
.tag--ormefa { background: var(--brand-soft); color: var(--brand-ink); }
.tag--retailer { background: #fdf3e2; color: #7a4d00; }
.pcard__alts { font-size: 15px; margin: 14px 0 0; }
.pcard__stores { margin-top: 20px; }
.pcard__verified { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Store table */
.stores__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stores__table th, .stores__table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.stores__table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.market-th .stores__table thead th { text-transform: none; letter-spacing: 0; font-size: 13px; }
.stores__table tbody th { font-weight: 600; white-space: nowrap; }
.stores__table tbody th .icon { color: var(--muted); margin-right: 6px; }
.stores__table td:last-child { text-align: right; }
.stores__table .btn { white-space: nowrap; }
.stores-inline { margin: 20px 0 28px; }
.stores-inline__name { font-size: 18px !important; margin: 0 0 4px !important; }
.stores-inline__name a { color: var(--ink); text-decoration: none; }
.price { font-weight: 700; display: block; }
.price__checked { color: var(--muted); font-size: 12px; }
@media (max-width: 639px) {
  .stores__table thead { display: none; }
  .stores__table, .stores__table tbody, .stores__table tr, .stores__table th, .stores__table td { display: block; }
  .stores__table tr { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
  .stores__table th, .stores__table td { border: 0; padding: 2px 0; text-align: left !important; }
  .stores__table td:last-child { padding-top: 8px; }
  .stores__table td:last-child .btn { width: 100%; }
  .stores__table td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: 13px; }
}

/* Method + FAQ */
.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px 10px; margin-top: 48px; }
.method h2 { font-size: 22px !important; margin-top: 18px !important; }
.method__label { display: flex; gap: 8px; align-items: center; }
.method__label .icon { color: var(--brand); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.faq__a { padding: 0 0 12px; color: var(--ink-2); }
.related { margin-top: 56px; }
.related h2 { font-size: 22px; }

/* ── Footer ───────────────────────────────────────── */
.site-footer { background: #10201d; color: #c7d3cf; padding: 48px 0 32px; font-size: 15px; }
.site-footer a, .site-footer .linklike { color: #e9f0ee; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { text-decoration: underline; color: #fff; }
.site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8fa6a0; margin-bottom: 12px; }
.site-footer h2.mt { margin-top: 22px; }
.market-th .site-footer h2, .site-footer h2:lang(th) { letter-spacing: 0; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.brand--footer { color: #fff; }
.brand--footer:hover { color: #fff; }
.site-footer__tag { color: var(--accent); font-weight: 600; margin: 12px 0 6px; }
.site-footer__disclosure { border-top: 1px solid #23403a; margin-top: 36px; padding-top: 20px; font-size: 14px; color: #a9bab5; }
.site-footer__copy { font-size: 13px; color: #7f9690; margin: 0; }

/* Consent */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 12px 40px -10px rgb(0 0 0 / 30%); padding: 16px 18px; font-size: 14.5px; }
.consent p { margin: 0 0 12px; }
.consent__actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .consent, .toc, .preview-bar { display: none; } }

/* ── Shopee price tracker (/th/) ──────────────────── */
:root { --deal: #c2410c; --deal-soft: #fff1e8; --info: #2c5aa0; --info-soft: #e9f0fb; --shopee: #c8381c; }
[data-hide-after][hidden] { display: none !important; }

.tstrip { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; }
.tstrip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; }
.tstrip__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; color: var(--ink-2); }
.tstrip__stats li { display: inline-flex; align-items: center; gap: 6px; }
.tstrip__stats .icon { color: var(--brand); }
.tsearch { display: flex; gap: 6px; flex: 1 1 260px; max-width: 440px; margin-left: auto; }
.tsearch input, .dtoolbar input, .dtoolbar select { font: inherit; font-size: 15px; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 12px; background: #fff; color: var(--ink); min-width: 0; }
.tsearch input { flex: 1; }
.tsearch input:focus, .dtoolbar input:focus, .dtoolbar select:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); }

.thero { padding: 32px 0 10px; background: radial-gradient(900px 300px at 90% -20%, var(--brand-soft), transparent 60%), var(--bg); }
.thero__title { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; margin-bottom: 10px; }
.thero .lead { max-width: 64ch; }

.cchips { margin: 18px calc(-1 * var(--gutter)) 0; overflow-x: auto; scrollbar-width: none; }
.cchips::-webkit-scrollbar { display: none; }
.cchips ul { list-style: none; margin: 0; padding: 0 var(--gutter) 4px; display: flex; gap: 8px; white-space: nowrap; }
.cchips a { display: block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.cchips a:hover { border-color: var(--brand); color: var(--brand-ink); }
.cchips a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.block--first { padding-top: 12px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.block__head .block__title { margin-bottom: 0; }

/* Deal card */
.dgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .dgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dcard { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.dcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.dcard[hidden] { display: none; }
.dcard__media { position: relative; display: block; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.dcard__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dbadge { position: absolute; top: 8px; left: 8px; background: var(--deal); color: #fff; font-family: var(--font); font-weight: 800; font-size: 13px; line-height: 1; padding: 5px 8px; border-radius: 7px; }
.dcard__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 14px; flex: 1; }
.dlabel { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; line-height: 1.7; }
.dlabel--drop { background: var(--good-soft); color: var(--good); }
.dlabel--lowest { background: var(--deal-soft); color: var(--deal); }
.dlabel--new { background: var(--info-soft); color: var(--info); }
.dcard__title { font-size: 15px; font-weight: 600; line-height: 1.45; margin: 2px 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard__title a { color: var(--ink); text-decoration: none; }
.dcard__title a:hover { color: var(--brand); text-decoration: underline; }
.dcard__store { font-size: 12.5px; color: var(--muted); margin: 0; }
.dcard__merchant { font-weight: 700; color: var(--shopee); margin-right: 2px; }
.dcard__rating { font-size: 13px; color: var(--ink-2); margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dstars { color: #d99a06; }
.dot { color: var(--line-2); }
.dprice { margin: 6px 0 0; display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.dprice .price { display: inline; font-family: var(--font); font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.dprice .muted { font-weight: 600; }
.dprice__was { color: var(--muted); font-size: 13px; }
.dprice--big .price { font-size: clamp(28px, 4vw, 36px); }
.dprice--big .dprice__was { font-size: 16px; }
.dcard__actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.dcard__actions .btn { flex: 1 1 auto; }
.dcard__more { font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.dcard__more:hover { color: var(--brand); }

/* Featured deal */
.dfeature { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 16px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .dfeature { grid-template-columns: minmax(220px, 360px) 1fr; padding: 24px; gap: 32px; align-items: center; } }
.dfeature__media { position: relative; display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dfeature__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dfeature .dbadge, .pp__media .dbadge { font-size: 16px; top: 12px; left: 12px; padding: 6px 10px; }
.dfeature__body .eyebrow { margin-bottom: 8px; }
.dfeature__title { font-size: clamp(20px, 2.6vw, 28px); margin: 6px 0 8px; }
.dfeature__title a { color: var(--ink); text-decoration: none; }
.dfeature__title a:hover { color: var(--brand); }
.dfeature__body .dcard__store { margin-top: 6px; }
.dfeature__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Category tiles */
.ctiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ctiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ctiles--wide { grid-template-columns: 1fr; }
@media (min-width: 720px) { .ctiles--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ctiles--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ctile { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; align-content: center; align-items: center; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.ctile:hover { border-color: var(--brand); color: var(--ink); }
.ctile img { grid-row: span 3; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.ctile__name { font-weight: 600; font-size: 15px; line-height: 1.4; }
.ctile__intro { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; margin: 2px 0; }
.ctile__count { font-size: 13px; color: var(--muted); }
.ctile--wide { grid-template-columns: 72px 1fr; align-items: start; padding: 16px; }
.ctile--wide img { width: 72px; height: 72px; }

/* Sort / filter toolbar */
.dealgrid { margin-top: 8px; }
.dtoolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.dtoolbar__count { margin: 0 auto 0 0; font-weight: 600; color: var(--ink-2); }
.dtoolbar__filter { flex: 1 1 220px; max-width: 340px; }
.dtoolbar__filter input { width: 100%; }
.dtoolbar__sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.dempty { padding: 28px 12px; text-align: center; color: var(--muted); }
.dempty[hidden], .dmore [hidden] { display: none; }
.dmore { text-align: center; margin: 20px 0 0; }
.tfaq { max-width: 820px; }

/* Product page */
.pp { padding-bottom: 32px; }
.pp__top { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 860px) { .pp__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; } }
.pp__media { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; }
.pp__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pp__info .eyebrow { margin-bottom: 8px; }
.pp__title { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 10px; }
.pp__asof { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.pp__actions { margin: 18px 0 14px; }
.btn--lg { padding: 14px 26px; font-size: 17px; border-radius: 12px; }
@media (max-width: 859px) { .pp__actions .btn { width: 100%; } }
.live { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--soft); margin: 0 0 12px; }
.live__title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0; }
.live__value { font-family: var(--font); font-size: 20px; font-weight: 700; margin: 0; }
.live:not(.is-ok) .live__value { font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.live.is-ok { border-style: solid; border-color: var(--brand-soft); background: #f4faf8; }
.live__note { font-size: 12.5px; color: var(--muted); margin: 0; }
.live__note:empty { display: none; }
.pp__shop { font-size: 14px; color: var(--muted); margin: 0; }
.pp__sec { margin-top: 44px; }
.pp__sec h2 { font-size: 22px; }
.pp__why { padding-left: 20px; margin: 0; color: var(--ink-2); max-width: 75ch; }
.pp__why li { margin-bottom: 6px; }
.hchart { margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 6px; max-width: 760px; }
.hchart svg { width: 100%; height: auto; display: block; overflow: visible; }
.hc__grid { stroke: var(--line); stroke-width: 1; }
.hc__axis { font-size: 13px; fill: var(--muted); font-family: var(--font); }
.hc__line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.hc__area { fill: var(--brand-soft); opacity: .75; }
.hc__min { fill: var(--deal); stroke: #fff; stroke-width: 2; }
.hstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; max-width: 760px; }
.hstats div, .policies div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.hstats dt { font-size: 13px; color: var(--muted); }
.hstats dd { margin: 0; font-weight: 700; }
.hstats small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.policies { display: grid; gap: 10px; margin: 0; }
@media (min-width: 720px) { .policies { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.policies div { padding: 14px; }
.policies dt { font-weight: 700; margin-bottom: 4px; }
.policies dd { margin: 0; color: var(--ink-2); font-size: 15px; }
