/* ==========================================================================
   RoboTerk — theme 2026 · "QUIET / LOUD"
   --------------------------------------------------------------------------
   โหลด "หลัง" site.css → site.css เก็บโครงสร้าง/layout/grid ไว้ทั้งหมด
   ไฟล์นี้แทนที่ภาษาภาพ (visual language) เท่านั้น

   แนวคิด 2026 = ดีไซน์แยกเป็นสองขั้ว:
   [QUIET] hyper-minimalist "barely there" — กระดาษเรียบ, เส้น hairline,
           whitespace มหาศาล, ตัวอักษรบาง, label แบบ mono ตัวเล็ก, AI เงียบ ๆ
   [LOUD]  raw expressive anti-design — เส้นหมึกหนา, เงาแข็ง offset,
           สติกเกอร์เอียง, แถบวิ่ง (ticker), ไม่มีมุมโค้ง, accent สีกรด
   ทั้งสองขั้วอยู่ร่วมกันโดยตั้งใจ → "ความตึง" ระหว่างความเงียบกับความดิบ
   ========================================================================== */

/* --------------------------------------------------------------------------
   1) TOKENS
   -------------------------------------------------------------------------- */
:root {
    --paper: #f4f2ed;
    --paper-2: #eae7e0;
    --card: #ffffff;
    --card2: #faf9f6;

    --bg: var(--paper);
    --bg2: var(--paper-2);

    --ink: #0b0b0b;
    --text: #0b0b0b;
    --muted: #7b7a74;

    --line: rgba(11, 11, 11, .14);
    --rule: #0b0b0b;
    --hair: rgba(11, 11, 11, .08);

    --cyan: #1e4dff;
    --violet: #5b21f0;
    --acid: #d9ff3d;
    --amber: #9a5b00;
    --green: #0b7a4b;
    --red: #c62828;

    --radius: 0px;
    --shadow: 5px 5px 0 var(--ink);
    --shadow-sm: 3px 3px 0 var(--ink);

    --font-body: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'IBM Plex Sans Thai', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

/* --------------------------------------------------------------------------
   2) BASE — ฝั่ง QUIET
   -------------------------------------------------------------------------- */
::selection { background: var(--acid); color: var(--ink); }

body {
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--hair) 1px, transparent 1px),
        linear-gradient(90deg, var(--hair) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
    margin: 0 0 .6rem;
    text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.02rem, 1.5vw, 1.22rem); }
h4 { letter-spacing: .01em; }

/* กันการตัดคำไทยกลางคำในหัวข้อเดียวของหน้าแรก */
.hero h1 {
    font-size: clamp(1.95rem, 4.1vw, 3.15rem);
    line-height: 1.14;
    letter-spacing: -.028em;
    word-break: keep-all;
    overflow-wrap: normal;
}

p { margin: 0 0 .9rem; }
a { color: inherit; }
img { max-width: 100%; }

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.container { width: min(1240px, 92%); }
.container.narrow { width: min(860px, 92%); }

.muted { color: var(--muted); }
.small { font-size: .82rem; }

/* accent ที่ดังที่สุดของทั้งไซต์ — แทน gradient เดิมด้วย "ป้ายกรด" */
.grad {
    display: inline-block;
    background: var(--acid);
    color: var(--ink);
    -webkit-text-fill-color: currentColor;
    padding: .02em .16em .06em;
    box-shadow: var(--shadow-sm);
    transform: rotate(-1.4deg);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* mono label แบบ 2026 — ใช้ทั่วระบบ */
.hero-badge,
.chip,
.badge-cat,
.badge-sale,
.brand,
.nav-links a,
.cart-pill,
.btn,
.link-more,
.result-count,
.page-head p,
.section-sub,
.float-chip,
.order-row span:first-child,
.ai-status {
    font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   3) NAV + TICKER — ขั้ว LOUD
   -------------------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(244, 242, 237, .95);
    backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 2px solid var(--rule);
}
.nav-inner { gap: 1.6rem; padding: .85rem 0; }

.brand {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.brand-logo {
    display: grid;
    place-items: center;
    width: 2.05rem;
    height: 2.05rem;
    font-size: 1.05rem;
    background: var(--acid);
    border: 2px solid var(--rule);
    box-shadow: var(--shadow-sm);
    border-radius: 0;
}
.brand.small { font-size: .95rem; }
.brand-text .accent {
    color: var(--ink);
    background: var(--acid);
    padding: 0 .18em;
}

.nav-links { gap: 1.5rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.nav-links a {
    color: var(--muted);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color .18s, border-color .18s;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--acid); }

.cart-pill {
    border: 2px solid var(--rule);
    background: var(--card);
    border-radius: 0;
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: none;
    transition: box-shadow .18s, transform .18s;
}
.cart-pill:hover { border-color: var(--rule); transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.cart-badge {
    border-radius: 0;
    background: var(--ink);
    color: var(--acid);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: .74rem;
    min-width: 1.35rem;
    height: 1.35rem;
}

.flash-bar {
    margin-top: 1.2rem;
    padding: .7rem 1rem;
    border: 2px solid var(--rule);
    border-left-width: 8px;
    border-left-color: var(--green);
    background: var(--card);
    border-radius: 0;
    font-size: .92rem;
}

/* แถบวิ่ง — signature ของ anti-design */
.ticker {
    background: var(--ink);
    border-bottom: 2px solid var(--ink);
    overflow: hidden;
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 30s linear infinite;
}
.ticker-run {
    display: flex;
    gap: 2.6rem;
    padding: .48rem 2.6rem .48rem 0;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--acid);
}
@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   4) BUTTONS — ขั้ว LOUD
   -------------------------------------------------------------------------- */
.btn {
    border: 2px solid var(--rule);
    border-radius: 0;
    padding: .66rem 1.15rem;
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .13em;
    text-transform: uppercase;
    background: var(--card);
    color: var(--ink);
    box-shadow: none;
    transition: transform .16s, box-shadow .16s, background .16s, color .16s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translate(0, 0); box-shadow: none; }

.btn-primary {
    background: var(--acid);
    color: var(--ink);
    border-color: var(--rule);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow); background: var(--acid); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--rule); }

.btn-ai { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.btn-ai:hover { background: var(--ink); color: #fff; }

.btn-lg { padding: .85rem 1.5rem; font-size: .8rem; }
.btn-sm { padding: .42rem .78rem; font-size: .68rem; }
.btn-icon {
    border: 2px solid var(--line);
    border-radius: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    transition: all .16s;
}
.btn-icon:hover { color: var(--ink); border-color: var(--rule); background: var(--acid); }

/* --------------------------------------------------------------------------
   5) HERO — QUIET typography + LOUD ของเล่น
   -------------------------------------------------------------------------- */
.hero { padding: 4.6rem 0 2rem; }
.hero-inner { gap: 3rem; grid-template-columns: 1.42fr .58fr; }

.hero-badge {
    border: 2px solid var(--rule);
    background: var(--card);
    color: var(--ink);
    border-radius: 0;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: .38rem .7rem;
    transform: rotate(-1deg);
    box-shadow: var(--shadow-sm);
}
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-sub {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 33rem;
    line-height: 1.75;
}
.hero-actions { gap: .7rem; margin: 1.6rem 0 2.4rem; }

.hero-stats { gap: 0; border-top: 2px solid var(--rule); border-left: 2px solid var(--rule); }
.hero-stats div {
    flex: 1 1 0;
    padding: .85rem 1rem;
    border-right: 2px solid var(--rule);
    border-bottom: 2px solid var(--rule);
    background: var(--card);
}
.hero-stats strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.04em;
    color: var(--ink);
}
.hero-stats span {
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ของเล่นใน hero — ทรงเรขาคณิตดิบ */
.hero-art { height: 380px; }
.orb {
    border-radius: 0;
    border: 2px solid var(--rule);
    box-shadow: var(--shadow);
}
.orb-main {
    width: 220px;
    height: 220px;
    font-size: 5.4rem;
    background: radial-gradient(circle at 34% 30%, #ffffff 0%, var(--acid) 62%, #bfe22b 100%);
    transform: translate(-50%, -50%) rotate(-2.5deg);
    animation-name: floaty-center;
}
.orb-small {
    width: 74px;
    height: 74px;
    font-size: 1.9rem;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    animation: none; /* สติกเกอร์นิ่ง — ไม่ลอย */
}
.orb-small.o1 { transform: rotate(5deg); }
.orb-small.o2 { transform: rotate(-7deg); }
.orb-small.o3 { transform: rotate(3deg); }

/* override keyframes ของ base layer เพื่อคงมุมเอียงไว้ระหว่างลอย */
@keyframes floaty-center {
    0%, 100% { transform: translate(-50%, -50%) rotate(-2.5deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(-2.5deg) translateY(-14px); }
}

.float-chip {
    background: var(--ink);
    color: var(--acid);
    border: 2px solid var(--ink);
    border-radius: 0;
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .32rem .6rem;
    backdrop-filter: none;
    box-shadow: var(--shadow-sm);
}
.float-chip.c1 { transform: rotate(-3deg); }
.float-chip.c2 { transform: rotate(2.5deg); }
.float-chip.c3 { transform: rotate(-1.5deg); }

/* --------------------------------------------------------------------------
   6) SECTIONS — QUIET
   -------------------------------------------------------------------------- */
.section { padding: 4.2rem 0; }
.section-head { margin-bottom: 1.8rem; align-items: end; }
.section-head h2 { margin: 0; }
.section-sub { color: var(--muted); max-width: 42rem; }
.link-more {
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 2px solid var(--acid);
}
.link-more:hover { text-decoration: none; border-bottom-color: var(--ink); }

.page-head { padding: 3.6rem 0 0; }
.page-head h1 { margin-bottom: .3rem; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.page-head p {
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7) PRODUCT CARD — ขั้ว LOUD
   -------------------------------------------------------------------------- */
.product-grid { gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }

.product-card {
    background: var(--card);
    border: 2px solid var(--rule);
    border-radius: 0;
    box-shadow: none;
    transition: transform .18s, box-shadow .18s;
}
.product-card:hover {
    transform: translate(-4px, -4px);
    border-color: var(--rule);
    box-shadow: var(--shadow);
}
.product-thumb {
    height: 158px;
    background-color: var(--paper-2);
    background-image:
        radial-gradient(circle at 1px 1px, var(--hair) 1.5px, transparent 0),
        radial-gradient(220px 130px at 50% 118%, color-mix(in srgb, var(--accent, #1e4dff) 26%, transparent), transparent 72%);
    background-size: 16px 16px, auto;
    border-bottom: 2px solid var(--rule);
}
.product-emoji { font-size: 3.2rem; filter: none; }
.product-card:hover .product-emoji { transform: scale(1.08) rotate(-5deg); }

/* รูปสินค้าจริง (ถ้ามี) — แทน emoji โดยยังคุมโทนขาวสะอาดแบบการ์ดภาพสินค้า */
.product-thumb.has-photo,
.detail-thumb.has-photo {
    background-image: none;
    background-color: #ffffff;
    padding: 0;
}
/* การ์ดที่มีรูปจริง: ใช้สัดส่วน 4:3 เพื่อให้สินค้าแนวตั้งเห็นเต็มตัวชัดขึ้น */
.product-thumb.has-photo {
    height: auto;
    aspect-ratio: 4 / 3;
}
.product-thumb.has-photo { overflow: hidden; }

/* absolute inset-0: height:100% ใช้ไม่ได้กับการ์ดที่ความสูงมาจากกริด (จะกลายเป็น auto แล้วรูปล้น) */
.product-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    transition: transform .25s;
}
.product-photo.photo-cover { object-fit: cover; object-position: center 42%; }
.product-photo.photo-cover-top { object-fit: cover; object-position: center 22%; }
.product-photo.photo-contain { object-fit: contain; }

/* ภาพแนวตั้งเต็มตัว: เติมพื้นหลังด้วยรูปเดิมแบบเบลอให้เต็มการ์ด แล้ววางภาพคมด้านหน้า */
.product-thumb.fill-blur::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--photo);
    background-position: center;
    background-size: cover;
    filter: blur(26px) saturate(1.1) brightness(1.02);
    transform: scale(1.25);
    opacity: .85;
}
.product-card:hover .product-photo { transform: scale(1.05) rotate(-1deg); }
.detail-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
}
/* ภาพแบบ contain: ใช้กรอบแนวตั้ง 2:3 เพื่อให้สินค้าเต็มตัวและใหญ่ขึ้น */
.detail-thumb.fit-contain {
    aspect-ratio: 2 / 3;
    min-height: 0;
    overflow: hidden;
}
.detail-thumb.fit-contain .detail-photo,
.detail-thumb.fit-contain .detail-photo.photo-contain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}
/* ภาพแบบ cover: กำหนดสัดส่วนกรอบให้เต็มเฟรม ไม่เหลือขอบ */
.detail-thumb.fit-cover {
    aspect-ratio: 4 / 3;
    min-height: 0;
}
.detail-thumb.fit-cover .detail-photo.photo-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 45%;
}

.badge-cat {
    top: .55rem;
    left: .55rem;
    background: var(--card);
    color: var(--ink);
    border: 2px solid var(--rule);
    border-radius: 0;
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .16rem .42rem;
}
.badge-sale {
    top: .55rem;
    right: .55rem;
    background: var(--acid);
    color: var(--ink);
    border: 2px solid var(--rule);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: .18rem .42rem;
    transform: rotate(3deg);
    box-shadow: var(--shadow-sm);
}
.badge-sale.big { font-size: .78rem; top: 1.1rem; right: 1.1rem; }

.product-body { gap: .5rem; padding: 1.05rem 1.1rem 1.15rem; }
.product-name { font-size: 1.02rem; letter-spacing: -.02em; }
.product-name a:hover { color: var(--cyan); }
.product-tagline { color: var(--muted); font-size: .84rem; min-height: 2.6em; line-height: 1.55; }
.product-meta {
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.rating { color: var(--ink); }
.product-foot { padding-top: .65rem; border-top: 1px solid var(--line); }
.price-box { gap: .1rem; }
.price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.28rem;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.old-price { color: var(--muted); font-size: .74rem; }

/* --------------------------------------------------------------------------
   8) TOOLS / CHIPS — QUIET + ขอบหมึก
   -------------------------------------------------------------------------- */
.shop-tools { gap: 1.2rem; }
.chips-row { gap: .45rem; }
.chip {
    border: 2px solid var(--line);
    background: transparent;
    color: var(--muted);
    border-radius: 0;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .38rem .72rem;
    transition: all .16s;
}
.chip:hover { border-color: var(--rule); color: var(--ink); }
.chip.active {
    background: var(--ink);
    color: var(--acid);
    border-color: var(--ink);
    font-weight: 500;
}
.chip.static { background: var(--acid); color: var(--ink); border-color: var(--rule); }

.search-row { gap: .5rem; }
.search-row input {
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 0;
    padding: .68rem .95rem;
    font-family: var(--font-body);
    transition: border-color .16s;
}
.search-row input::placeholder { color: var(--muted); }
.search-row input:focus { border-color: var(--rule); }
.result-count {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 1.1rem 0 1.4rem;
}

.empty-state {
    border: 2px dashed var(--line);
    border-radius: 0;
    padding: 4.5rem 1rem;
    background: transparent;
}
.empty-emoji { font-size: 2.6rem; }
.empty-state h2 { font-size: 1.4rem; }

/* --------------------------------------------------------------------------
   9) DETAILS — สเปกแบบ QUIET, กล่องแบบ LOUD
   -------------------------------------------------------------------------- */
.breadcrumbs {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.8rem;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .current { color: var(--ink); }

.detail-grid { gap: 2.6rem; }
.detail-info h1 { font-size: clamp(1.6rem, 3.1vw, 2.5rem); }
.detail-thumb {
    min-height: 380px;
    background-color: var(--paper-2);
    background-image:
        radial-gradient(circle at 1px 1px, var(--hair) 1.5px, transparent 0),
        radial-gradient(420px 260px at 50% 112%, color-mix(in srgb, var(--accent, #1e4dff) 30%, transparent), transparent 72%);
    background-size: 16px 16px, auto;
    border: 2px solid var(--rule);
    border-radius: 0;
}
.detail-emoji { font-size: 7rem; filter: drop-shadow(6px 6px 0 rgba(11, 11, 11, .12)); }
.detail-info .tagline { color: var(--muted); font-size: 1rem; }
.detail-price { gap: .9rem; margin: 1.2rem 0 1.4rem; }
.detail-price .price { font-size: 2.1rem; }
.detail-desc { color: #3b3b36; line-height: 1.8; }

.buy-row { gap: .7rem; margin: 1.5rem 0; }
.qty-label {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.qty-input, .checkout-form input, .checkout-form textarea {
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 0;
    padding: .55rem .7rem;
    font-family: var(--font-body);
    color: var(--ink);
}
.qty-input:focus, .checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--rule); }

.perks {
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    gap: 1.4rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.detail-columns { gap: 1.4rem; margin-top: 2.6rem; }
.panel {
    background: var(--card);
    border: 2px solid var(--rule);
    border-radius: 0;
    padding: 1.5rem 1.6rem;
}
.panel h2 { font-size: 1.2rem; }
.spec-list { color: #3b3b36; }
.spec-list li { margin-bottom: .5rem; }
.ai-panel-card { background: var(--paper-2); border-color: var(--rule); }
.ai-card-actions { gap: .45rem; }

/* --------------------------------------------------------------------------
   10) CART / CHECKOUT / SUCCESS
   -------------------------------------------------------------------------- */
.cart-layout { gap: 1.8rem; }
.cart-list { gap: .7rem; }
.cart-item {
    background: var(--card);
    border: 2px solid var(--rule);
    border-radius: 0;
    padding: .9rem 1.1rem;
}
.cart-emoji { font-size: 1.7rem; }
.cart-name { font-weight: 500; }
.cart-name:hover { color: var(--cyan); }
.cart-unit {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    color: var(--muted);
}
.cart-line-total {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: .95rem;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.cart-total-row {
    background: var(--ink);
    color: #f4f2ed;
    border: 2px solid var(--ink);
    border-radius: 0;
    padding: 1.05rem 1.15rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.cart-total-row strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: -.03em;
    color: var(--acid);
    font-variant-numeric: tabular-nums;
}

.checkout-card {
    background: var(--card);
    border: 2px solid var(--rule);
    border-radius: 0;
    padding: 1.6rem;
    box-shadow: var(--shadow);
}
.checkout-card h2 { font-size: 1.3rem; }
.checkout-form label {
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    gap: .4rem;
}
.checkout-form input, .checkout-form textarea { color: var(--ink); }
.field-error { color: var(--red); font-size: .76rem; }
.validation-summary { color: var(--red); font-size: .84rem; }

.success-card {
    background: var(--card);
    border: 2px solid var(--rule);
    border-radius: 0;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
}
.success-emoji { font-size: 3rem; }
.order-box, .order-items {
    border: 1px solid var(--line);
    border-radius: 0;
    margin: 1.4rem 0;
}
.order-row {
    padding: .8rem 1.15rem;
    font-size: .88rem;
    border-bottom: 1px solid var(--line);
}
.order-row span:first-child {
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.order-row.total { background: var(--acid); }
.order-row.total strong {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 1.15rem;
}
.status-chip { color: var(--amber); }
.success-actions { gap: .7rem; margin-top: 1.6rem; }

/* --------------------------------------------------------------------------
   11) AI SPOTLIGHT / FEATURES
   -------------------------------------------------------------------------- */
.ai-spotlight {
    background: var(--ink);
    color: #f4f2ed;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}
.spotlight-inner { gap: 3rem; }
.ai-spotlight h2 { color: #fff; }
.ai-spotlight p { color: rgba(244, 242, 237, .74); }
.ai-spotlight strong { color: var(--acid); }
.spotlight-list { color: rgba(244, 242, 237, .8); font-size: .92rem; }
.step-card {
    background: transparent;
    border: 2px solid rgba(244, 242, 237, .28);
    border-radius: 0;
    padding: 1.05rem 1.15rem;
    transition: border-color .18s, background .18s;
}
.step-card:hover { border-color: var(--acid); background: rgba(217, 255, 61, .06); }
.step-card p { color: rgba(244, 242, 237, .6); font-size: .86rem; }
.step-card strong { color: #fff; }
.step-num {
    border-radius: 0;
    background: var(--acid);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: .82rem;
}

.features { gap: 0; border: 2px solid var(--rule); grid-template-columns: repeat(4, 1fr); }
.feature-card {
    background: var(--card);
    border: 0;
    border-right: 2px solid var(--rule);
    border-radius: 0;
    padding: 2rem 1.5rem;
    text-align: left;
}
.feature-card:last-child { border-right: 0; }
.feature-icon { font-size: 1.7rem; margin-bottom: .7rem; }
.feature-card h3 { font-size: 1.02rem; }
.feature-card p { color: var(--muted); font-size: .87rem; }

/* --------------------------------------------------------------------------
   12) FOOTER — โซนดิบ
   -------------------------------------------------------------------------- */
.footer {
    margin-top: 0;
    border-top: 2px solid var(--rule);
    background: var(--ink);
    color: rgba(244, 242, 237, .82);
}
.footer-inner { gap: 2.4rem; padding: 2.8rem 0 1.6rem; }
.footer-col .brand-text .accent { background: var(--acid); color: var(--ink); }
.footer-col p { color: rgba(244, 242, 237, .6); font-size: .87rem; }
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--acid);
}
.footer-col ul { color: rgba(244, 242, 237, .68); font-size: .87rem; gap: .45rem; }
.footer-col ul li:has(> a) { border-bottom: 1px solid rgba(244, 242, 237, .12); padding-bottom: .3rem; }
.footer-col a:hover { color: var(--acid); }
.footer-bottom {
    border-top: 1px solid rgba(244, 242, 237, .16);
    color: rgba(244, 242, 237, .45);
    font-family: var(--font-mono);
    font-size: .64rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 1.1rem 0 1.6rem;
}

/* --------------------------------------------------------------------------
   13) AI WIDGET — QUIET shell, LOUD soul
   -------------------------------------------------------------------------- */
#ai-widget { right: 24px; bottom: 24px; }

.ai-toggle {
    width: 58px;
    height: 58px;
    border-radius: 0;
    border: 2px solid var(--rule);
    background: var(--acid);
    box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s;
}
.ai-toggle:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.ai-toggle-pulse { display: none; }
.ai-toggle-icon { font-size: 1.5rem; }

.ai-panel {
    border: 2px solid var(--rule);
    border-radius: 0;
    background: var(--ink);
    color: #f4f2ed;
    box-shadow: 8px 8px 0 rgba(11, 11, 11, .85);
}
.ai-head {
    background: transparent;
    border-bottom: 2px solid rgba(244, 242, 237, .22);
    padding: .85rem 1rem;
}
.ai-head-avatar {
    border-radius: 0;
    background: var(--acid);
    border: 2px solid var(--acid);
    color: var(--ink);
    font-size: 1.1rem;
}
.ai-head-info strong { font-size: .92rem; letter-spacing: -.01em; }
.ai-status { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 242, 237, .5); }
.ai-status.ok { color: var(--acid); }
.ai-status.off { color: #ff8a80; }
.ai-close { color: rgba(244, 242, 237, .6); font-family: var(--font-mono); }
.ai-close:hover { color: var(--acid); }

.ai-messages { gap: .8rem; }
.ai-msg-avatar {
    border-radius: 0;
    background: transparent;
    border: 1px solid rgba(244, 242, 237, .3);
    font-size: .85rem;
}
.ai-bubble {
    border-radius: 0;
    background: rgba(244, 242, 237, .07);
    border: 1px solid rgba(244, 242, 237, .2);
    color: #f4f2ed;
    font-size: .9rem;
    line-height: 1.62;
}
.ai-msg.user .ai-bubble {
    background: var(--acid);
    border-color: var(--acid);
    color: var(--ink);
}
.ai-msg.error .ai-bubble { border-color: var(--red); background: rgba(198, 40, 40, .16); }
.ai-bubble pre {
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(244, 242, 237, .2);
    border-radius: 0;
}
.ai-bubble code { color: var(--acid); font-family: var(--font-mono); }

.ai-chips { gap: .35rem; padding: 0 .9rem .6rem; }
.ai-chips button {
    border: 1px solid rgba(244, 242, 237, .28);
    background: transparent;
    color: rgba(244, 242, 237, .72);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: .66rem;
    letter-spacing: .06em;
    padding: .32rem .6rem;
    transition: all .16s;
}
.ai-chips button:hover { border-color: var(--acid); color: var(--acid); background: rgba(217, 255, 61, .08); }

.ai-input-row {
    border-top: 2px solid rgba(244, 242, 237, .22);
    background: transparent;
    padding: .8rem .85rem .95rem;
}
.ai-input-row textarea {
    border-radius: 0;
    background: rgba(244, 242, 237, .05);
    border: 1px solid rgba(244, 242, 237, .24);
    color: #f4f2ed;
    font-size: .9rem;
}
.ai-input-row textarea::placeholder { color: rgba(244, 242, 237, .38); }
.ai-input-row textarea:focus { border-color: var(--acid); }
.ai-send, .ai-mic { border-radius: 0; }
.ai-send { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.ai-mic { background: transparent; color: #f4f2ed; border-color: rgba(244, 242, 237, .28); }
.ai-mic:hover { border-color: var(--acid); color: var(--acid); }

/* --------------------------------------------------------------------------
   14) MOTION — 2026 = ขยับน้อย แต่ตั้งใจ
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
    transition: opacity .55s cubic-bezier(.2, .7, .2, 1),
                transform .55s cubic-bezier(.2, .7, .2, 1),
                filter .55s cubic-bezier(.2, .7, .2, 1);
}
.reveal.visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; filter: none; }
}

/* --------------------------------------------------------------------------
   15) RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .hero { padding-top: 3rem; }
    .hero-art { height: 320px; }
    .hero-stats { flex-wrap: wrap; }
    .hero-stats div { flex: 1 1 45%; }
    .section { padding: 3.2rem 0; }
    .spotlight-inner, .detail-grid, .detail-columns, .cart-layout, .footer-inner { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
    .feature-card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 640px) {
    h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
    .hero-art { height: 280px; }
    .orb-main { width: 170px; height: 170px; font-size: 4rem; }
    .orb-small { width: 58px; height: 58px; font-size: 1.4rem; }
    .float-chip { display: none; }
    .features { grid-template-columns: 1fr; }
    .feature-card { border-right: 0; }
    .product-grid { grid-template-columns: 1fr; }
    .checkout-card { box-shadow: var(--shadow-sm); }
    #ai-widget { right: 16px; bottom: 16px; }
    .ai-panel { box-shadow: none; }
}
