/* ═══════════════════════════════════════════════════════════════════
   TOPCAR — Premium Automotive Design System
   Kanit (display) + Sarabun (body) · Charcoal + Champagne Gold · 5-Star Pro
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Brand — Onyx Charcoal (warm neutral black) */
    --brand-50: #f6f6f5;
    --brand-100: #e9e9e7;
    --brand-200: #d3d2cf;
    --brand-300: #adaba6;
    --brand-400: #7c7a74;
    --brand-500: #56544e;
    --brand-600: #3d3b36;
    --brand-700: #2c2a26;
    --brand-800: #211f1c;
    --brand-900: #181613;
    --brand-950: #0d0c0a;

    /* Champagne Gold accent (luxury) */
    --gold-300: #ecd9a5;
    --gold-400: #dcbf72;
    --gold-500: #c9a24a;
    --gold-600: #ab8534;
    --gold-700: #8a6a28;

    /* Neutrals */
    --ink: #17150f;
    --ink-2: #2c2a24;
    --ink-muted: #6b6a63;
    --ink-soft: #9a988f;
    --line: #eae8e3;
    --line-strong: #d6d3cc;
    --surface: #ffffff;
    --surface-2: #f8f7f4;
    --surface-3: #efede8;
    --bg: #f3f1ec;

    /* Status */
    --green: #16a34a;
    --green-bg: #dcfce7;
    --red: #dc2626;
    --red-bg: #fee2e2;
    --amber: #f59e0b;
    --amber-bg: #fef3c7;
    --blue: #2563eb;
    --blue-bg: #dbeafe;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(23, 21, 15, .08);
    --shadow: 0 6px 20px rgba(23, 21, 15, .10);
    --shadow-md: 0 12px 34px rgba(23, 21, 15, .14);
    --shadow-lg: 0 24px 60px rgba(23, 21, 15, .22);
    --shadow-gold: 0 10px 30px rgba(201, 162, 74, .38);
    --shadow-brand: 0 12px 30px rgba(23, 21, 15, .30);

    --radius: 9px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --nav-h: 72px;
    --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Sarabun', 'Kanit', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display { font-family: 'Kanit', system-ui, sans-serif; font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
a { color: var(--brand-600); text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: 72px 0; position: relative; }
.section-tight { padding: 48px 0; }
.text-center { text-align: center; }
.hl { color: var(--gold-400); }
.muted { color: var(--ink-muted); }

/* ── Section heading ── */
.sec-head { max-width: 720px; margin: 0 auto 44px; text-align: center; position: relative; }
.sec-head.left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 13px;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-600); background: var(--brand-50);
    padding: 7px 16px; border-radius: 100px; margin-bottom: 16px;
    border: 1px solid var(--brand-100);
}
.eyebrow i { color: var(--gold-500); }
.sec-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
.sec-sub { color: var(--ink-muted); font-size: 17px; margin-top: 12px; }

/* ═══════════ Buttons ═══════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 15.5px;
    padding: 13px 24px; border-radius: 8px; border: 1.5px solid transparent;
    transition: transform .18s var(--ease), box-shadow .25s, background .2s, color .2s;
    white-space: nowrap; position: relative; overflow: hidden; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(23,21,15,.45); color: #fff; }
.btn-gold {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    color: #422006; box-shadow: var(--shadow-gold); font-weight: 700;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(245, 158, 11, .5); color: #422006; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 9px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn .shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover .shine { transform: translateX(120%); transition: transform .8s; }

/* ═══════════ Announcement bar ═══════════ */
.announce {
    background: linear-gradient(90deg, var(--brand-950), var(--brand-800), var(--brand-950));
    color: #e9eefc; font-size: 14px; position: relative; overflow: hidden;
}
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 44px 9px 20px; text-align: center; }
.announce i.lead { color: var(--gold-400); }
.announce a { color: var(--gold-300); font-weight: 600; }
.announce .marq { display: inline-flex; gap: 6px; align-items: center; font-family: 'Kanit', sans-serif; }
.announce-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.announce-close:hover { background: rgba(255,255,255,.24); }

/* ═══════════ Header / Nav ═══════════ */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(20,18,15,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); transition: box-shadow .3s, padding .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.35); background: rgba(15,13,11,.96); }
.nav { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo .mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); display: grid; place-items: center; color: #1a1613; font-size: 22px; box-shadow: var(--shadow-gold); position: relative; }
.brand-logo .mark::after { content: ""; position: absolute; inset: 0; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.25); }
.brand-logo .txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo .txt b { font-family: 'Kanit', sans-serif; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .04em; }
.brand-logo .txt span { font-size: 10.5px; color: var(--gold-400); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 15px; color: rgba(255,255,255,.82); white-space: nowrap; flex-shrink: 0; transition: all .2s; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.08); color: var(--gold-400); }
.nav-link.sell-link { color: var(--gold-400); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-phone { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-family: 'Kanit', sans-serif; white-space: nowrap; border: 1px solid rgba(255,255,255,.12); }
.nav-phone i { font-size: 18px; color: var(--gold-400); }
.nav-phone small { display: block; font-size: 10px; color: var(--gold-400); opacity: .9; font-weight: 500; }
.icon-btn { width: 42px; height: 42px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 18px; position: relative; transition: all .2s; }
.icon-btn:hover { border-color: var(--gold-400); color: var(--gold-400); transform: translateY(-1px); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 2px solid #fff; }
.fav-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--gold-500); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; display: none; place-items: center; }
.fav-count.show { display: grid; }
.hamburger { display: none; }

/* ═══════════ Hero + Search ═══════════ */
.hero { position: relative; background: linear-gradient(160deg, #10131d 0%, #171d2e 48%, #0f1320 100%); color: #fff; overflow: hidden; padding: 52px 0 42px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
    radial-gradient(1000px 460px at 82% 4%, rgba(201,162,74,.16), transparent 60%),
    radial-gradient(760px 420px at 10% 110%, rgba(53,80,150,.30), transparent 60%); }
.hero-skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; z-index: 1; opacity: .10; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='190' viewBox='0 0 500 190'%3E%3Cg fill='%23ffffff'%3E%3Crect x='0' y='110' width='42' height='80'/%3E%3Crect x='48' y='70' width='34' height='120'/%3E%3Crect x='88' y='95' width='28' height='95'/%3E%3Crect x='122' y='55' width='40' height='135'/%3E%3Crect x='168' y='90' width='30' height='100'/%3E%3Crect x='204' y='40' width='36' height='150'/%3E%3Crect x='246' y='100' width='26' height='90'/%3E%3Crect x='278' y='72' width='38' height='118'/%3E%3Crect x='322' y='105' width='30' height='85'/%3E%3Crect x='358' y='60' width='42' height='130'/%3E%3Crect x='406' y='92' width='28' height='98'/%3E%3Crect x='440' y='115' width='40' height='75'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / auto 100%; }
.hero-head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 380px; }
.hero-copy { max-width: 540px; flex-shrink: 0; position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 100px; background: rgba(220,191,114,.14); border: 1px solid rgba(220,191,114,.32); color: var(--gold-300); font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 13px; margin-bottom: 18px; }
.hero-eyebrow i { color: var(--gold-400); }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.hero h1 .hl { background: linear-gradient(120deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; color: rgba(233,238,252,.82); margin: 14px 0 0; max-width: 500px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 24px; }
.hb { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: rgba(233,238,252,.92); font-family: 'Kanit', sans-serif; }
.hb i { color: var(--gold-400); font-size: 17px; }
/* Hero car lineup — ใหญ่เด่น + entrance animation แบบ cinematic */
.hero-cars { position: relative; flex: 1; height: 400px; min-width: 0; }
.hero-car {
    position: absolute; bottom: 0; height: auto;
    filter: drop-shadow(0 32px 44px rgba(0,0,0,.6));
    opacity: 0; will-change: transform, opacity;
    /* วิ่งเข้า → แล้วลอยเบา ๆ (idle float เริ่มหลังวิ่งเข้าเสร็จ) */
    animation:
        heroCarIn 1.15s cubic-bezier(.16, 1, .3, 1) var(--dly, 0s) both,
        heroCarFloat var(--fd, 7s) ease-in-out 1.8s infinite;
}
/* --o = opacity ปลายทาง · --dly = ดีเลย์วิ่งเข้า · --fl = ระยะลอย · --fd = คาบลอย (parallax: คันหลังลอยมากกว่า) */
.hc-0 { right: -6%; width: 100%;  z-index: 3;              --o: 1;   --dly: .42s; --fl: -6px;  --fd: 7s; }
.hc-1 { right: 26%; width: 86%;   z-index: 2; bottom: 34px; --o: .96; --dly: .26s; --fl: -9px;  --fd: 8s; }
.hc-2 { right: 52%; width: 72%;   z-index: 1; bottom: 62px; --o: .82; --dly: .10s; --fl: -13px; --fd: 9s; }

@keyframes heroCarIn {
    from { opacity: 0;        transform: translateX(130px) translateY(16px) scale(.9); }
    55%  { opacity: var(--o, 1); }
    to   { opacity: var(--o, 1); transform: translateX(0) translateY(0) scale(1); }
}
@keyframes heroCarFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(var(--fl, -8px)); }
}

/* Hero copy — เผยตัวประสานกับรถ (fade-up ไล่ลำดับ) */
.hero-copy > * { animation: heroCopyUp .85s cubic-bezier(.16, 1, .3, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero-copy > *:nth-child(3) { animation-delay: .21s; }
.hero-copy > *:nth-child(4) { animation-delay: .29s; }
.hero-copy > *:nth-child(5) { animation-delay: .37s; }
@keyframes heroCopyUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* เคารพผู้ใช้ที่ปิด motion — แสดงผลนิ่งทันที ไม่มี animation */
@media (prefers-reduced-motion: reduce) {
    .hero-car { animation: none; opacity: var(--o, 1); }
    .hero-copy > * { animation: none; }
}

/* Full-width horizontal search bar */
.hero-search { position: relative; z-index: 3; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); margin-top: 26px; overflow: hidden; }
.hsearch-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: var(--surface-3); }
.hst { padding: 11px 28px; border: 0; background: transparent; border-radius: 9px 9px 0 0; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.hst.active { background: #fff; color: var(--brand-800); }
.hst i { font-size: 16px; }
.hsearch-bar { display: flex; align-items: flex-end; gap: 12px; padding: 16px 18px; }
.hsf { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hsf label { font-size: 12px; font-weight: 600; color: var(--ink-muted); font-family: 'Kanit', sans-serif; }
.hsf select { width: 100%; padding: 11px 30px 11px 12px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: #fff; font-family: 'Sarabun', sans-serif; font-size: 14.5px; color: var(--ink); appearance: none; transition: border .2s, box-shadow .2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.hsf select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201,162,74,.16); }
.hsearch-btn { flex-shrink: 0; padding: 12px 30px; font-size: 16px; height: 44px; }
.hsearch-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 18px 14px; flex-wrap: wrap; gap: 8px; }
.hsearch-count { font-size: 13.5px; color: var(--ink-muted); }
.hsearch-count i { color: var(--gold-500); }
.hsearch-count b { color: var(--brand-800); font-family: 'Kanit', sans-serif; font-size: 15px; }
.hsearch-adv { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 13.5px; color: var(--brand-700); display: inline-flex; align-items: center; gap: 6px; }
.hsearch-adv:hover { color: var(--gold-600); }

/* legacy field (ใช้ในหน้าอื่น: valuation, sell, contact) */
.search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); font-family: 'Kanit', sans-serif; display: flex; align-items: center; gap: 5px; }
.field label i { color: var(--brand-500); }
.field select, .field input, .side-select {
    width: 100%; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--line-strong);
    background: #fff; font-family: 'Sarabun', sans-serif; font-size: 15px; color: var(--ink);
    transition: border .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field select:focus, .field input:focus, .side-select:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(201,162,74,.18); }
.search-submit { margin-top: 16px; }
.search-submit .btn { width: 100%; font-size: 17px; padding: 16px; }
.search-count { text-align: center; margin-top: 12px; font-size: 13.5px; color: var(--ink-muted); }
.search-count b { color: var(--brand-700); font-family: 'Kanit', sans-serif; }

/* ═══════════ Quick Category chips ═══════════ */
.cat-strip { margin-top: 26px; position: relative; z-index: 5; }
.cat-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-card { scroll-snap-align: start; background: var(--surface); border-radius: 8px; padding: 20px 16px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); transition: all .25s var(--ease); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.cat-ic { width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; font-size: 27px; background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand-700); transition: all .25s; }
.cat-card:hover .cat-ic { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; transform: rotate(-6deg) scale(1.05); }
.cat-img { width: 100%; height: 64px; display: grid; place-items: center; transition: transform .25s var(--ease); }
.cat-img img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.cat-card:hover .cat-img { transform: scale(1.06); }
.cat-card b { font-family: 'Kanit', sans-serif; font-size: 15px; color: var(--ink); }
.cat-card span { font-size: 12.5px; color: var(--ink-muted); }

/* ═══════════ Car cards ═══════════ */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 24px; }
.car-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; position: relative; display: flex; flex-direction: column; }
.car-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.car-media { position: relative; aspect-ratio: 16 / 11; background: var(--brand-950); overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.car-card:hover .car-media img { transform: scale(1.06); }
.car-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; align-items: flex-start; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 8px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 12px; color: #fff; box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); }
.badge-sale { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.badge-new { background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); }
.badge-hot { background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); }
.badge-reserved { background: linear-gradient(135deg, #64748b, #334155); }
.badge-sold { background: linear-gradient(135deg, #334155, #0f172a); }
.car-fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); border: 0; display: grid; place-items: center; color: var(--ink-muted); font-size: 17px; box-shadow: var(--shadow); transition: all .2s; }
.car-fav:hover { transform: scale(1.12); color: var(--red); }
.car-fav.active { color: #fff; background: linear-gradient(135deg, #f43f5e, #e11d48); }
.car-fav.active i::before { content: "\F415"; }
.car-inspect { position: absolute; bottom: 10px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: rgba(15,23,41,.7); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-family: 'Kanit', sans-serif; }
.car-inspect i { color: var(--gold-400); }
.car-body { padding: 16px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.car-brandline { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-muted); margin-bottom: 4px; font-weight: 600; }
.car-brandline .grade { margin-left: auto; padding: 1px 8px; border-radius: 6px; background: var(--green-bg); color: #15803d; font-family: 'Kanit', sans-serif; font-size: 11px; }
.car-title { font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.car-title a { color: inherit; }
.car-title a:hover { color: var(--brand-600); }
.car-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 11px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.car-specs .s { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.car-specs .s i { color: var(--brand-500); font-size: 14px; }
.car-price-row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.car-price .old { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; }
.car-price .now { font-family: 'Kanit', sans-serif; font-size: 23px; font-weight: 700; color: var(--brand-700); line-height: 1; }
.car-price .mo { font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.car-price .mo b { color: var(--gold-600); font-family: 'Kanit', sans-serif; }
.car-loc { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-muted); margin-top: 10px; }
.car-cta { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 13px; }

/* Tabs (featured) */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin: 0 auto 32px; }
.tab-btn { padding: 10px 20px; border: 0; background: transparent; border-radius: 10px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--ink-muted); transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.tab-btn.active { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; box-shadow: var(--shadow-brand); }
.tab-btn i { font-size: 15px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ═══════════ Trust section ═══════════ */
.trust-sec { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.trust-card { background: var(--surface); border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: all .28s var(--ease); position: relative; overflow: hidden; }
.trust-card::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: linear-gradient(var(--gold-400), var(--gold-600)); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.trust-card:hover::before { transform: scaleY(1); }
.trust-ic { width: 60px; height: 60px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); display: grid; place-items: center; color: var(--gold-400); font-size: 27px; margin-bottom: 18px; box-shadow: var(--shadow-brand); }
.trust-card h3 { font-size: 19px; margin-bottom: 8px; }
.trust-card p { color: var(--ink-muted); font-size: 15px; margin: 0; }

/* Stats strip */
.stats-strip { background: linear-gradient(135deg, var(--brand-900), var(--brand-950)); color: #fff; border-radius: var(--radius-xl); padding: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.stats-strip::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% -20%, rgba(245,158,11,.18), transparent 60%); }
.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-item .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--gold-400); font-size: 21px; margin: 0 auto 12px; }
.stat-item .num { font-family: 'Kanit', sans-serif; font-size: clamp(30px, 4vw, 42px); font-weight: 800; line-height: 1; background: linear-gradient(120deg, #fff, var(--gold-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item .lbl { font-size: 14px; color: rgba(233,238,252,.75); margin-top: 8px; }

/* ═══════════ How it works ═══════════ */
.how-sec { background: var(--surface); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.how-step { position: relative; text-align: center; padding: 8px; }
.how-step .num { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); display: grid; place-items: center; color: var(--brand-700); font-size: 30px; position: relative; transition: all .3s; box-shadow: var(--shadow-sm); }
.how-step:hover .num { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #422006; transform: translateY(-4px) rotate(-5deg); box-shadow: var(--shadow-gold); }
.how-step .num .badge-n { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-800); color: #fff; font-family: 'Kanit', sans-serif; font-size: 14px; display: grid; place-items: center; border: 3px solid #fff; }
.how-step h3 { font-size: 18px; margin-bottom: 8px; }
.how-step p { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 10px; }
.how-step .dur { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--green); font-weight: 600; font-family: 'Kanit', sans-serif; background: var(--green-bg); padding: 4px 11px; border-radius: 100px; }
.how-connector { display: none; }

/* ═══════════ Sell CTA ═══════════ */
.sell-sec { background: linear-gradient(135deg, var(--brand-950), var(--brand-800)); color: #fff; position: relative; overflow: hidden; }
.sell-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 10%, rgba(245,158,11,.16), transparent 55%); }
.sell-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.sell-grid h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.sell-grid h2 .hl { color: var(--gold-400); }
.sell-grid > div > p { color: rgba(233,238,252,.82); font-size: 17px; margin: 16px 0 24px; }
.sell-points { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.sell-points .p { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.sell-points .p i { width: 30px; height: 30px; border-radius: 9px; background: rgba(245,158,11,.18); color: var(--gold-400); display: grid; place-items: center; flex-shrink: 0; }
/* Valuation card */
.val-card { background: #fff; color: var(--ink); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-lg); }
.val-card h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.val-card h3 i { color: var(--gold-500); }
.val-card > p { color: var(--ink-muted); font-size: 14px; margin: 0 0 18px; }
.val-result { display: none; text-align: center; padding: 22px; background: linear-gradient(135deg, var(--brand-50), var(--surface-2)); border-radius: 8px; margin-top: 16px; border: 1.5px dashed var(--brand-300); }
.val-result.show { display: block; animation: fadeUp .5s var(--ease); }
.val-result .range { font-family: 'Kanit', sans-serif; font-size: 30px; font-weight: 800; color: var(--brand-700); }
.val-result .cap { font-size: 13px; color: var(--ink-muted); }

/* ═══════════ Finance calculator ═══════════ */
.calc-sec { background: var(--surface-2); }
.calc-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; background: var(--surface); border-radius: var(--radius-xl); padding: 34px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.calc-controls { display: flex; flex-direction: column; gap: 24px; }
.slider-group label { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.slider-group .val { color: var(--brand-700); font-size: 18px; }
.slider { -webkit-appearance: none; width: 100%; height: 8px; border-radius: 100px; background: var(--surface-3); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--brand-600); box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-600); border: 4px solid #fff; cursor: pointer; }
.term-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.term-chip { padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.term-chip.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); box-shadow: var(--shadow-brand); }
.calc-result { background: linear-gradient(150deg, var(--brand-900), var(--brand-950)); color: #fff; border-radius: var(--radius-lg); padding: 30px; text-align: center; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc-result::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 220px at 50% -10%, rgba(245,158,11,.2), transparent 60%); }
.calc-result .lbl { font-size: 14px; color: rgba(233,238,252,.75); position: relative; }
.calc-result .amount { font-family: 'Kanit', sans-serif; font-size: 46px; font-weight: 800; line-height: 1; margin: 10px 0; background: linear-gradient(120deg, #fff, var(--gold-300)); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.calc-result .per { font-size: 15px; color: rgba(233,238,252,.7); position: relative; }
.calc-breakdown { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; position: relative; }
.calc-breakdown .b { text-align: center; flex: 1; }
.calc-breakdown .b b { display: block; font-family: 'Kanit', sans-serif; font-size: 17px; color: var(--gold-300); }
.calc-breakdown .b span { color: rgba(233,238,252,.65); }

/* ═══════════ Testimonials ═══════════ */
.rev-sec { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.rev-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(340px, 1fr); gap: 22px; overflow-x: auto; padding: 6px 4px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rev-scroll::-webkit-scrollbar { display: none; }
.rev-card { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
.rev-stars { color: var(--gold-500); font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.rev-quote { font-size: 15.5px; color: var(--ink-2); line-height: 1.75; flex: 1; margin-bottom: 20px; position: relative; }
.rev-quote::before { content: "\201C"; font-family: Georgia, serif; font-size: 60px; color: var(--brand-100); position: absolute; top: -22px; left: -8px; z-index: 0; }
.rev-person { display: flex; align-items: center; gap: 12px; }
.rev-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-500), var(--brand-800)); display: grid; place-items: center; color: #fff; font-family: 'Kanit', sans-serif; font-size: 20px; font-weight: 600; overflow: hidden; }
.rev-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rev-person b { font-family: 'Kanit', sans-serif; font-size: 15.5px; display: block; }
.rev-person span { font-size: 12.5px; color: var(--ink-muted); }
.rev-summary { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.rev-summary .big { text-align: center; }
.rev-summary .big .n { font-family: 'Kanit', sans-serif; font-size: 46px; font-weight: 800; color: var(--gold-500); line-height: 1; }
.rev-summary .big .s { font-size: 13px; color: var(--ink-muted); }

/* Review submission form */
.review-form-wrap { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.review-form-wrap.open { max-height: 700px; }
.review-form { max-width: 640px; margin: 20px auto 0; background: var(--surface); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.review-form h3 { font-size: 19px; display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.review-form h3 i { color: var(--gold-500); }
.rev-rating-pick { display: flex; align-items: center; gap: 6px; font-family: 'Kanit', sans-serif; font-size: 14px; color: var(--ink-muted); }
.star-btn { background: none; border: 0; font-size: 24px; color: var(--line-strong); padding: 0 1px; transition: color .15s, transform .15s; }
.star-btn.on { color: var(--gold-500); }
.star-btn:hover { transform: scale(1.15); }
.review-form textarea, .review-form input { width: 100%; }

/* ═══════════ Brands grid ═══════════ */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.brand-card { background: var(--surface); border-radius: 10px; padding: 20px 14px; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: all .25s var(--ease); }
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.brand-card .logo { height: 46px; display: grid; place-items: center; margin-bottom: 10px; }
.brand-card .logo b { font-family: 'Kanit', sans-serif; font-size: 20px; color: var(--ink); font-weight: 700; }
.brand-card .name { font-family: 'Kanit', sans-serif; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.brand-card .cnt { font-size: 12px; color: var(--brand-600); font-weight: 600; }

/* ═══════════ Blog ═══════════ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: all .3s var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--brand-700), var(--brand-950)); position: relative; overflow: hidden; display: grid; place-items: center; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-media .ph { color: rgba(255,255,255,.3); font-size: 46px; }
.blog-cat { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--brand-700); font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 12px; }
.blog-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-muted); margin-bottom: 10px; }
.blog-body h3 { font-size: 18px; line-height: 1.35; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-body h3 a { color: var(--ink); }
.blog-body h3 a:hover { color: var(--brand-600); }
.blog-body p { color: var(--ink-muted); font-size: 14px; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.blog-more { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 14px; color: var(--brand-600); display: inline-flex; align-items: center; gap: 6px; }

/* ═══════════ FAQ ═══════════ */
.faq-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--brand-200); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; gap: 14px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 16.5px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex-shrink: 0; transition: all .25s; }
.faq-item[open] summary .q-ic { background: var(--brand-600); color: #fff; }
.faq-item summary .chev { margin-left: auto; transition: transform .25s; color: var(--ink-muted); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-ans { padding: 0 24px 22px 72px; color: var(--ink-muted); font-size: 15px; line-height: 1.75; }

/* ═══════════ Final CTA ═══════════ */
.final-cta { background: linear-gradient(135deg, var(--brand-800), var(--brand-950)); color: #fff; border-radius: var(--radius-xl); padding: 56px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 320px at 20% 120%, rgba(245,158,11,.2), transparent 55%), radial-gradient(500px 300px at 85% -20%, rgba(201,162,74,.28), transparent 55%); }
.final-cta h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; position: relative; }
.final-cta p { color: rgba(233,238,252,.82); font-size: 18px; margin: 16px auto 30px; max-width: 560px; position: relative; }
.final-cta .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ═══════════ Partners ═══════════ */
.partner-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.partner-chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.partner-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner-chip i { color: var(--brand-600); font-size: 18px; }
.partner-chip.award i { color: var(--gold-500); }

/* ═══════════ Footer ═══════════ */
.site-footer { background: var(--brand-950); color: #c7d0e8; padding: 60px 0 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 44px; }
.footer-brand .brand-logo .txt b { color: #fff; }
.footer-brand p { font-size: 14px; margin: 16px 0; max-width: 300px; color: #96a3c4; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #c7d0e8; font-size: 18px; transition: all .2s; }
.footer-social a:hover { background: var(--gold-500); color: #422006; transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; font-family: 'Kanit', sans-serif; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-col a { color: #96a3c4; font-size: 14px; }
.footer-col a:hover { color: var(--gold-300); }
.footer-contact .ci { display: flex; gap: 11px; margin-bottom: 14px; font-size: 14px; align-items: flex-start; }
.footer-contact .ci i { color: var(--gold-400); margin-top: 3px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7e8bb0; }
.footer-dev { display: flex; align-items: center; gap: 10px; }
.footer-dev .dev-logo { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); display: grid; place-items: center; color: #422006; font-weight: 700; }

/* ═══════════ Mobile bottom bar + FAB ═══════════ */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(255,255,255,.97); backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); grid-template-columns: repeat(3, 1fr); gap: 8px; box-shadow: 0 -6px 24px rgba(15,23,41,.1); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px; border-radius: 12px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 13px; min-height: 48px; transition: transform .12s; }
.mobile-bar a:active { transform: scale(.95); }
.mobile-bar a i { font-size: 19px; }
.mobile-bar .mb-call { background: var(--green-bg); color: #15803d; }
.mobile-bar .mb-line { background: #06c755; color: #fff; }
.mobile-bar .mb-search { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; }

.contact-fab { position: fixed; right: 22px; bottom: 26px; z-index: 55; }
.contact-fab-menu { position: absolute; bottom: 74px; right: 4px; display: flex; flex-direction: column; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); transform-origin: bottom right; transition: all .3s var(--ease); }
.contact-fab.is-open .contact-fab-menu { opacity: 1; visibility: visible; transform: none; }
.cfab-item { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.cfab-item .cfab-label { background: var(--ink); color: #fff; padding: 7px 13px; border-radius: 9px; font-family: 'Kanit', sans-serif; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow); white-space: nowrap; opacity: 0; transform: translateX(8px); transition: all .2s; }
.contact-fab.is-open .cfab-item .cfab-label { opacity: 1; transform: none; }
.cfab-item > a, .cfab-btn-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 21px; box-shadow: var(--shadow-md); background: var(--c, var(--brand-600)); transition: transform .2s; flex-shrink: 0; }
.cfab-item > a:hover { transform: scale(1.1); }
.contact-fab-toggle { width: 62px; height: 62px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--brand-600), var(--brand-900)); color: #fff; font-size: 26px; box-shadow: var(--shadow-brand); position: relative; display: grid; place-items: center; transition: transform .3s var(--ease); }
.contact-fab.is-open .contact-fab-toggle { transform: rotate(135deg); background: linear-gradient(135deg, #ef4444, #b91c1c); }
.contact-fab-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-400); animation: fabpulse 2s infinite; }
.contact-fab.is-open .contact-fab-ring { display: none; }
@keyframes fabpulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* PWA install button */
.pwa-install { position: fixed; left: 18px; bottom: 78px; z-index: 55; display: none; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 100px; border: 0; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #422006; font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-gold); animation: pwapulse 2.4s ease-in-out infinite; }
.pwa-install.show { display: inline-flex; }
@keyframes pwapulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Back to top */
.back-top { position: fixed; right: 22px; bottom: 98px; z-index: 54; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--brand-700); font-size: 20px; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* ═══════════ Compare drawer ═══════════ */
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 58; background: var(--surface); border-top: 2px solid var(--brand-600); box-shadow: 0 -10px 40px rgba(15,23,41,.18); transform: translateY(110%); transition: transform .35s var(--ease); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); }
.compare-bar.show { transform: none; }
.compare-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.compare-slots { display: flex; gap: 10px; flex: 1; overflow-x: auto; }
.compare-slot { width: 130px; flex-shrink: 0; background: var(--surface-2); border-radius: 12px; padding: 8px; position: relative; font-size: 12px; }
.compare-slot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; margin-bottom: 5px; }
.compare-slot .rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; font-size: 12px; }

/* ═══════════ Reveal animation ═══════════ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ═══════════ Skeleton ═══════════ */
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, #e9eef7 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══════════ Edit tag (inline CMS) ═══════════ */
.edit-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 8px; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #422006; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 12px; box-shadow: var(--shadow-sm); vertical-align: middle; margin-left: 8px; }
.edit-tag:hover { color: #422006; transform: translateY(-1px); box-shadow: var(--shadow); }
.edit-tag-float { position: absolute; top: 14px; right: 14px; z-index: 6; }

/* ═══════════ Page hero (subpages) ═══════════ */
.page-hero { background: linear-gradient(140deg, var(--brand-950), var(--brand-800)); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0, rgba(245,158,11,.15), transparent 55%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .bc { font-size: 13.5px; color: rgba(233,238,252,.7); margin-bottom: 12px; }
.page-hero .bc a { color: var(--gold-300); }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.page-hero p { color: rgba(233,238,252,.82); font-size: 16.5px; margin-top: 10px; max-width: 640px; }

/* Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 100px; background: var(--brand-50); color: var(--brand-700); font-size: 13px; font-weight: 600; font-family: 'Kanit', sans-serif; }
.divider-space { height: 1px; }

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
@media (max-width: 1100px) {
    .hc-2 { display: none; }
    .hero-car.hc-0 { width: 100%; right: -4%; }
    .hero-car.hc-1 { width: 84%; right: 32%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .how-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .sell-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 980px) {
    .hero-head { display: block; min-height: auto; }
    .hero-cars { display: none; }
    .hero-copy { max-width: none; }
    .hsearch-bar { flex-wrap: wrap; }
    .hsf { flex: 1 1 28%; }
    .hsearch-btn { flex: 1 1 100%; margin-top: 4px; }
}
@media (max-width: 620px) {
    .hsf { flex: 1 1 45%; }
    .hst { flex: 1; justify-content: center; }
    .hero-badges { gap: 10px 16px; }
    .hb { font-size: 13px; }
}
@media (max-width: 1220px) {
    .main-nav { display: none; }
    .hamburger { display: grid; }
}
@media (max-width: 960px) {
    .nav-phone small { display: none; }
    .calc-wrap { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; padding: 32px 24px; }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .section { padding: 52px 0; }
    .nav-phone { display: none; }
    .nav-cta { display: none; }
    body { padding-bottom: 72px; }
    .mobile-bar { display: grid; }
    /* ── Mobile header — กระชับ พอดี มืออาชีพ ── */
    .nav { gap: 10px; height: 62px; }
    .brand-logo { gap: 9px; }
    .brand-logo .mark { width: 38px; height: 38px; font-size: 19px; border-radius: 11px; }
    .brand-logo .txt b { font-size: 17px; letter-spacing: .03em; }
    .brand-logo .txt span { font-size: 9px; letter-spacing: .1em; }
    .nav-actions { gap: 7px; }
    .icon-btn { width: 40px; height: 40px; font-size: 17px; }
    .icon-btn:active { transform: scale(.92); }
    .contact-fab { bottom: calc(78px + env(safe-area-inset-bottom)); right: 16px; }
    .back-top { bottom: calc(150px + env(safe-area-inset-bottom)); right: 16px; }
    .trust-grid { grid-template-columns: 1fr; }
    .cars-grid { grid-template-columns: 1fr; gap: 18px; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .final-cta { padding: 40px 22px; }
    .footer-bottom { flex-direction: column-reverse; text-align: center; }
    .rev-summary { gap: 20px; }
    .hero { padding: 34px 0 30px; }
    .cat-strip { margin-top: 18px; }
}
@media (max-width: 560px) {
    /* จอเล็ก: เหลือ ค้นหา + รายการโปรด + เมนู (ย้ายบัญชีเข้า drawer) */
    .nav-account { display: none; }
    .brand-logo .txt span { display: none; }
    .nav { gap: 8px; }
    .nav-actions { gap: 6px; }
    .icon-btn { width: 39px; height: 39px; }
}
@media (max-width: 480px) {
    .search-fields { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .tabs { width: 100%; overflow-x: auto; }
}
@media (max-width: 360px) {
    .brand-logo .mark { width: 34px; height: 34px; font-size: 17px; }
    .brand-logo .txt b { font-size: 15.5px; }
    .icon-btn { width: 37px; height: 37px; font-size: 16px; }
}

/* ═══════════════════════════ MOBILE NAV DRAWER ═══════════════════════════ */
.nav-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.nav-drawer.open { visibility: visible; }
.nav-drawer-bg { position: absolute; inset: 0; background: rgba(15,23,41,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.nav-drawer.open .nav-drawer-bg { opacity: 1; }
.nav-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 84vw); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .32s var(--ease); display: flex; flex-direction: column; padding: 20px; overflow-y: auto; }
.nav-drawer.open .nav-drawer-panel { transform: none; }
.nav-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
/* drawer พื้นสว่าง → ตัวอักษรต้องเป็น ink เข้ม (ไม่ใช่ขาวของ header ดำ) */
.nav-drawer-panel .nav-link { padding: 13px 14px; font-size: 16.5px; border-radius: 12px; color: var(--ink); font-weight: 600; }
.nav-drawer-panel .nav-link i { color: var(--gold-600); font-size: 18px; width: 22px; }
.nav-drawer-panel .nav-link:hover, .nav-drawer-panel .nav-link:active { background: var(--surface-3); color: var(--gold-700); }
.nav-drawer-panel .nav-link.active { background: rgba(245, 158, 11, .12); color: var(--gold-700); }
.nav-drawer-panel .nav-link.active i { color: var(--gold-700); }
.nav-drawer-links { display: flex; flex-direction: column; gap: 4px; }
.nav-drawer-sub { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-drawer-panel .nav-link .nd-fav { position: static; inset: auto; margin-left: auto; }
.nav-drawer-cta { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* ═══════════════════════════ DARK-THEME-AWARE PRINT ═══════════════════════════ */
@media print {
    .site-header, .site-footer, .mobile-bar, .contact-fab, .back-top, .announce, .edit-tag { display: none !important; }
}

/* ═══════════ Accessibility bar ═══════════ */
.a11y-bar { position: fixed; left: 18px; bottom: 22px; z-index: 56; display: flex; align-items: center; gap: 8px; }
.a11y-toggle { width: 46px; height: 46px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: var(--gold-400); font-size: 21px; box-shadow: var(--shadow-md); display: grid; place-items: center; flex-shrink: 0; }
.a11y-menu { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 6px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateX(-10px); transition: all .25s var(--ease); }
.a11y-bar.open .a11y-menu { opacity: 1; visibility: visible; transform: none; }
.a11y-label { font-family: 'Kanit', sans-serif; font-size: 12px; color: var(--ink-muted); padding: 0 6px 0 10px; white-space: nowrap; }
.a11y-menu button { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; transition: all .18s; }
.a11y-menu button:hover { border-color: var(--gold-500); color: var(--brand-700); }
.a11y-menu button.active { background: var(--brand-800); color: var(--gold-400); border-color: transparent; }
.a11y-menu button span { font-size: 12px; }

/* High-contrast mode */
body.high-contrast { --ink: #000; --ink-2: #000; --ink-muted: #1a1a1a; --line: #000; --line-strong: #000; --surface-2: #fff; --surface-3: #f0f0f0; }
body.high-contrast a, body.high-contrast .nav-link, body.high-contrast .car-title a { text-decoration: underline; }
body.high-contrast .car-card, body.high-contrast .trust-card, body.high-contrast .blog-card, body.high-contrast .faq-item, body.high-contrast .brand-card { border: 2px solid #000 !important; }
body.high-contrast .btn { outline: 2px solid #000; }

/* ═══════════ Recently viewed ═══════════ */
.recent-sec { background: var(--surface-2); }

/* ═══════════ Multi-state submit ═══════════ */
.btn[data-state] { pointer-events: none; }
.btn[data-state="loading"] { color: transparent !important; }
.btn[data-state="loading"] .shine { display: none; }
.btn[data-state="loading"]::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-gold[data-state="loading"]::after, .btn-ghost[data-state="loading"]::after { border-color: rgba(66,32,6,.25); border-top-color: var(--brand-700); }
.btn[data-state="success"] { background: linear-gradient(135deg, #16a34a, #15803d) !important; color: #fff !important; }
.btn[data-state="error"] { background: linear-gradient(135deg, #ef4444, #b91c1c) !important; color: #fff !important; animation: shake .4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ═══════════ SweetAlert theming ═══════════ */
.ap-toast { font-family: 'Sarabun', sans-serif !important; border-radius: 14px !important; box-shadow: var(--shadow-lg) !important; }
.ap-swal { border-radius: 12px !important; font-family: 'Sarabun', sans-serif !important; }
.swal2-title { font-family: 'Kanit', sans-serif !important; }

/* ═══════════ Search overlay ═══════════ */
.search-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(15,23,41,.6); backdrop-filter: blur(6px); display: none; padding-top: 90px; }
.search-overlay.open { display: block; animation: fadeUp .3s; }
.search-overlay .box { max-width: 640px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 22px; box-shadow: var(--shadow-lg); }
.search-overlay form { display: flex; gap: 10px; align-items: center; }
.search-overlay input { flex: 1; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); font-size: 16px; font-family: 'Sarabun', sans-serif; }

/* ═══════════ Empty state ═══════════ */
.empty { text-align: center; padding: 60px 20px; }
.empty .ic { width: 90px; height: 90px; border-radius: 13px; margin: 0 auto 20px; background: var(--surface-3); display: grid; place-items: center; font-size: 42px; color: var(--ink-soft); }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--ink-muted); margin: 0 0 20px; }

/* ═══════════ Pagination ═══════════ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.pagination a:hover { border-color: var(--brand-400); color: var(--brand-700); }
.pagination .current { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; border-color: transparent; }
.pagination .disabled { opacity: .4; pointer-events: none; }


/* ═══════════════════════════ MOBILE APP-STYLE HOMEPAGE (≤768px) ═══════════════════════════ */
.m-app { display: none; }
.m-bnav { display: none; }
@media (max-width: 768px) {
    body.m-mobile-mode .dt-home,
    body.m-mobile-mode .site-header,
    body.m-mobile-mode .announce,
    body.m-mobile-mode .mobile-bar,
    body.m-mobile-mode .site-footer,
    body.m-mobile-mode .contact-fab,
    body.m-mobile-mode .back-top,
    body.m-mobile-mode .pwa-install,
    body.m-mobile-mode .a11y-bar { display: none !important; }
    body.m-mobile-mode { padding-bottom: 0; background: #eef0f4; }
    body.m-mobile-mode .m-app { display: block; }
    body.m-mobile-mode .m-bnav { display: flex; }
}

/* ── 1. App Header ── */
.m-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: linear-gradient(135deg, #1a1613, #2a241d); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.22); }
.m-head-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-head-logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); display: grid; place-items: center; color: #1a1613; font-size: 20px; flex-shrink: 0; box-shadow: var(--shadow-gold); }
.m-head-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.m-greet { font-size: 11px; color: var(--gold-400); font-weight: 500; white-space: nowrap; }
.m-head-txt strong { font-family: 'Kanit', sans-serif; font-size: 18px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-head-act { display: flex; gap: 8px; flex-shrink: 0; }
.m-ibtn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; font-size: 18px; position: relative; }
.m-ibtn:active { transform: scale(.92); }

.m-scroll { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ── 2. Hero Card + รถวิ่งเข้า ── */
.m-hero { position: relative; margin: 14px 14px 0; padding: 22px 20px 18px; border-radius: 22px; background: linear-gradient(150deg, #1a1613 0%, #2b2419 55%, #3a2f1c 100%); color: #fff; overflow: hidden; box-shadow: 0 14px 34px rgba(26,22,19,.32); }
.m-hero-glow { position: absolute; top: -45%; right: -32%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(245,158,11,.4), transparent 70%); pointer-events: none; }
.m-hero-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--gold-300); background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.28); padding: 5px 11px; border-radius: 999px; }
.m-hero-title { position: relative; font-family: 'Kanit', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.18; margin: 12px 0 0; letter-spacing: -.01em; }
.m-hero-title .hl { background: linear-gradient(120deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-hero-sub { position: relative; font-size: 13.5px; color: rgba(233,238,252,.8); margin: 8px 0 0; line-height: 1.6; }
.m-hero-cars { position: relative; height: 128px; margin: 4px -8px 0; }
.m-hcar { position: absolute; bottom: 0; height: auto; filter: drop-shadow(0 16px 22px rgba(0,0,0,.55)); opacity: 0; will-change: transform, opacity; animation: mHcarIn 1s cubic-bezier(.16,1,.3,1) var(--d,0s) both, mHcarFloat var(--fd,7s) ease-in-out 1.5s infinite; }
.mhc-0 { right: -4%; width: 74%; z-index: 3; --o: 1;   --d: .40s; --fl: -5px;  --fd: 7s; }
.mhc-1 { right: 24%; width: 62%; z-index: 2; bottom: 14px; --o: .95; --d: .25s; --fl: -8px; --fd: 8s; }
.mhc-2 { right: 48%; width: 52%; z-index: 1; bottom: 26px; --o: .8;  --d: .10s; --fl: -11px; --fd: 9s; }
@keyframes mHcarIn { from { opacity: 0; transform: translateX(90px) scale(.88); } 55% { opacity: var(--o,1); } to { opacity: var(--o,1); transform: none; } }
@keyframes mHcarFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(var(--fl,-8px)); } }
.m-hero-cta { position: relative; display: flex; gap: 10px; margin-top: 6px; }

/* ── App-style buttons ── */
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 16px; border-radius: 13px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; transition: transform .12s ease; white-space: nowrap; text-decoration: none; }
.m-btn:active { transform: scale(.95); }
.m-btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #422006; box-shadow: 0 8px 20px rgba(245,158,11,.35); flex: 1; }
.m-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.m-btn-line { background: #06c755; color: #fff; }
.m-btn-sm { padding: 9px 12px; font-size: 12.5px; border-radius: 11px; }

/* ── 3. Quick Stats 2×2 ── */
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 14px 0; }
.m-stat { background: #fff; border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; box-shadow: 0 4px 14px rgba(15,23,42,.05); border: 1px solid rgba(15,23,42,.04); }
.m-stat-ic { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--amber-bg), #fcd34d); color: var(--gold-700); display: grid; place-items: center; font-size: 16px; margin-bottom: 2px; }
.m-stat-num { font-family: 'Kanit', sans-serif; font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1; }
.m-stat-lbl { font-size: 11.5px; color: var(--ink-muted); }

/* ── Section wrapper ── */
.m-sec { padding: 18px 14px 0; }
.m-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.m-sec-head h2 { font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.m-sec-head h2 i { color: var(--gold-600); }
.m-sec-head a { font-size: 12.5px; color: var(--gold-700); font-weight: 600; text-decoration: none; }

/* ── 4. App Menu Grid ── */
.m-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; }
.m-menu-item { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
.m-menu-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; box-shadow: 0 6px 16px rgba(15,23,42,.09); transition: transform .15s ease; }
.m-menu-item:active .m-menu-ic { transform: scale(.9) rotate(-4deg); }
.m-menu-lbl { font-size: 11.5px; color: var(--ink); font-weight: 500; text-align: center; }

/* ── h-scroll ── */
.m-hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
.m-hscroll::-webkit-scrollbar { display: none; }
.m-hscroll > * { scroll-snap-align: start; flex-shrink: 0; }

/* ── 5. Category chips ── */
.m-cat { width: 92px; background: #fff; border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; box-shadow: 0 4px 12px rgba(15,23,42,.05); transition: transform .12s ease; }
.m-cat:active { transform: scale(.95); }
.m-cat-ic { width: 48px; height: 40px; display: grid; place-items: center; }
.m-cat-ic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.m-cat-ic i { font-size: 26px; color: var(--gold-600); }
.m-cat b { font-size: 12.5px; color: var(--ink); font-family: 'Kanit', sans-serif; text-align: center; }
.m-cat span { font-size: 10.5px; color: var(--ink-muted); }

/* ── 6. Car mini cards ── */
.m-car { width: 224px; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; box-shadow: 0 6px 18px rgba(15,23,42,.08); display: block; transition: transform .12s ease; }
.m-car:active { transform: scale(.98); }
.m-car-media { position: relative; aspect-ratio: 16/10; background: var(--surface-3); }
.m-car-media img { width: 100%; height: 100%; object-fit: cover; }
.m-car-badge { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; color: #fff; background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); }
.m-car-badge.badge-sale { background: linear-gradient(135deg,#f43f5e,#e11d48); }
.m-car-badge.badge-new { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.m-car-badge.badge-hot { background: linear-gradient(135deg,#f97316,#ea580c); }
.m-car-badge.badge-reserved { background: linear-gradient(135deg,#f59e0b,#d97706); }
.m-car-badge.badge-sold { background: linear-gradient(135deg,#64748b,#475569); }
.m-car-fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #cbd5e1; display: grid; place-items: center; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.m-car-fav.active { color: #e11d48; }
.m-car-body { padding: 10px 12px 12px; }
.m-car-title { font-family: 'Kanit', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.m-car-meta { display: flex; gap: 12px; margin: 6px 0; font-size: 11px; color: var(--ink-muted); }
.m-car-price { font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 800; color: var(--gold-700); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.m-car-price small { font-size: 11px; font-weight: 500; color: var(--ink-muted); }

/* ── 7. News cards ── */
.m-newscard { width: 258px; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.m-news-media { position: relative; aspect-ratio: 16/9; background: var(--surface-3); }
.m-news-media img { width: 100%; height: 100%; object-fit: cover; }
.m-news-media .ph { display: grid; place-items: center; height: 100%; font-size: 32px; color: var(--gold-400); }
.m-news-cat { position: absolute; top: 8px; left: 8px; background: rgba(26,22,19,.85); color: var(--gold-300); font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 7px; }
.m-news-body { padding: 11px 13px 13px; }
.m-news-body b { font-family: 'Kanit', sans-serif; font-size: 14px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-news-meta { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-muted); }

/* ── 8. Footer card ── */
.m-foot-card { background: linear-gradient(150deg,#1a1613,#2a241d); color: #fff; border-radius: 20px; padding: 22px 18px; text-align: center; margin-bottom: 4px; }
.m-foot-logo { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg,var(--gold-400),var(--gold-600)); color: #1a1613; display: inline-grid; place-items: center; font-size: 24px; box-shadow: var(--shadow-gold); }
.m-foot-card strong { display: block; font-family: 'Kanit', sans-serif; font-size: 18px; margin-top: 10px; }
.m-foot-card p { font-size: 12.5px; color: rgba(233,238,252,.72); margin: 6px 0 14px; line-height: 1.6; }
.m-foot-links { display: flex; gap: 8px; justify-content: center; }
.m-foot-links .m-btn { flex: 1; }
.m-foot-copy { display: block; margin-top: 14px; font-size: 11px; color: rgba(233,238,252,.5); }

/* ── Bottom Navigation + FAB ── */
.m-bnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(255,255,255,.97); backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: flex-end; }
.m-bnav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 54px; min-height: 44px; padding: 5px 6px; border: 0; background: none; color: var(--ink-muted); font-size: 10.5px; font-family: 'Kanit', sans-serif; text-decoration: none; position: relative; }
.m-bnav-item i { font-size: 20px; }
.m-bnav-item.is-active { color: var(--gold-700); }
.m-bnav-item.is-active::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 22px; height: 3px; background: var(--gold-500); border-radius: 0 0 4px 4px; }
.m-bnav-item:active { transform: scale(.94); }
.m-bnav-fab-wrap { margin-top: -20px; }
.m-bnav-fab { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg,var(--gold-400),var(--gold-600)); color: #3a2600; display: grid; place-items: center; font-size: 23px; box-shadow: 0 8px 20px rgba(245,158,11,.45); border: 4px solid #fff; }
.m-bnav-fab-lbl { font-size: 10px; color: var(--gold-700); font-weight: 600; margin-top: 3px; }
.m-bnav-fav { top: 2px; right: 6px; }

/* ── Bottom Sheet ── */
.m-sheet { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.m-sheet.open { pointer-events: auto; }
.m-sheet-bg { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.m-sheet.open .m-sheet-bg { opacity: 1; }
.m-sheet-panel { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 24px 24px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .32s var(--ease); max-height: 82vh; overflow-y: auto; }
.m-sheet.open .m-sheet-panel { transform: none; }
.m-sheet-handle { width: 44px; height: 4px; background: var(--line-strong); border-radius: 2px; margin: 4px auto 14px; }
.m-sheet-panel h3 { font-family: 'Kanit', sans-serif; font-size: 17px; margin-bottom: 16px; color: var(--ink); }
.m-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
.m-sheet-link { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; font-size: 12px; color: var(--ink); font-weight: 500; text-align: center; }
.m-sheet-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.m-sheet-link:active .m-sheet-ic { transform: scale(.9); }

@media (prefers-reduced-motion: reduce) {
    .m-hcar { animation: none; opacity: var(--o,1); }
}
