/*
Theme Name: Thaikeybox
Theme URI: https://thaikeybox.com/
Author: Thaikeybox
Description: Custom theme for Thaikeybox — premium key-box store (COD, hub homepage, WooCommerce). Homepage-first custom build.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thaikeybox
*/

:root {
    --ground: #EEF2F7;
    --surface: #FFFFFF;
    --surface-2: #F4F7FB;
    --ink: #13202E;
    --ink-soft: #4C5E72;
    --ink-faint: #7F8FA1;
    --brand: #17436E;
    --brand-deep: #0E2C4A;
    --accent: #E08A16;
    --accent-soft: #F6B24A;
    --line: #D9E1EC;
    --good: #1C8A5B;
    --shadow: 20 45 75;
    --maxw: 1140px;
    --r: 14px;
    --font-display: "Prompt","Kanit","Sukhumvit Set","Noto Sans Thai",system-ui,sans-serif;
    --font-body: "Sarabun","Sukhumvit Set","Thonburi","Noto Sans Thai",system-ui,sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --ground: #0B1119; --surface: #131D28; --surface-2: #17232F;
      --ink: #E9F0F8; --ink-soft: #A2B4C7; --ink-faint: #6E8098;
      --brand: #4A85C0; --brand-deep: #2C5A88; --accent: #F2A63D; --accent-soft: #F9C070;
      --line: #26333F; --good: #3FB07E; --shadow: 0 0 0;
    }
  }
  :root[data-theme="dark"] {
    --ground: #0B1119; --surface: #131D28; --surface-2: #17232F;
    --ink: #E9F0F8; --ink-soft: #A2B4C7; --ink-faint: #6E8098;
    --brand: #4A85C0; --brand-deep: #2C5A88; --accent: #F2A63D; --accent-soft: #F9C070;
    --line: #26333F; --good: #3FB07E; --shadow: 0 0 0;
  }
  :root[data-theme="light"] {
    --ground: #EEF2F7; --surface: #FFFFFF; --surface-2: #F4F7FB;
    --ink: #13202E; --ink-soft: #4C5E72; --ink-faint: #7F8FA1;
    --brand: #17436E; --brand-deep: #0E2C4A; --accent: #E08A16; --accent-soft: #F6B24A;
    --line: #D9E1EC; --good: #1C8A5B; --shadow: 20 45 75;
  }

  * { box-sizing: border-box; }
  body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  h1,h2,h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; text-wrap: balance; margin: 0; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
  .eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

  /* buttons */
  .btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; padding: .78em 1.5em; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
  .btn-accent { background: var(--accent); color: #1a1206; box-shadow: 0 8px 22px -8px rgb(var(--shadow) / .5); }
  .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgb(var(--shadow) / .55); }
  .btn-ghost { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
  .btn-ghost:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
  @media (prefers-color-scheme: dark) { .btn-ghost { color: var(--ink); } }
  :root[data-theme="dark"] .btn-ghost { color: var(--ink); }

  /* header */
  header.site { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  /* ดันหัวเมนูลงใต้แถบแอดมิน WordPress (เฉพาะตอนล็อกอิน) ไม่ให้แถบดำบังปุ่มตะกร้า — ลูกค้าทั่วไปไม่ล็อกอินจะไม่มีแถบนี้ */
  .admin-bar header.site { top: 32px; }
  @media screen and (max-width: 782px){ .admin-bar header.site { top: 46px; } }
  .nav { display: flex; align-items: center; gap: 26px; height: 68px; }
  .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
  .brand .logo { width: 34px; height: 34px; flex: none; }
  /* logo lockup: Door Swing icon + Dark Premium wordmark */
  .kbx-mark { width: 42px; height: 42px; flex: none; overflow: visible; }
  .kbx-door { transform-box: fill-box; transform-origin: 12% 50%; transform: perspective(620px) rotateY(-63deg); transition: transform .55s cubic-bezier(.4,0,.2,1); }
  .brand:hover .kbx-door { transform: perspective(620px) rotateY(-82deg); }
  @media (prefers-reduced-motion: reduce){ .kbx-door { transition: none; } }
  .wordmark { font-family: "Space Grotesk", var(--font-display); font-weight: 700; font-size: 1.38rem; letter-spacing: -.04em; line-height: 1; text-transform: none; color: var(--ink); }
  .wm-key { background: linear-gradient(135deg,#6BBE45 0%,#F5C518 25%,#EF7E1A 50%,#E63946 75%,#2E9CE6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
  footer.site .kbx-mark { width: 38px; height: 38px; }
  footer.site .wordmark { color: #fff; font-size: 1.3rem; }
  .nav .links { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: .98rem; color: var(--ink-soft); }
  .nav .links a:hover { color: var(--brand); }
  .nav .cart { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; color: var(--brand); border: 1.5px solid var(--line); padding: .5em 1em; border-radius: 999px; }
  @media (prefers-color-scheme: dark){ .nav .cart{ color: var(--ink);} }
  :root[data-theme="dark"] .nav .cart{ color: var(--ink);}
  .hamburger { display: none; background: transparent; border: 1.5px solid var(--line); color: var(--ink-soft); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
  @media (max-width: 860px){
    .hamburger { display: grid; margin-left: auto; }
    .nav .links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 6px 22px 14px; box-shadow: 0 16px 30px -18px rgb(var(--shadow) / .4); }
    .nav .links.open { display: flex; }
    .nav .links a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav .links a:last-child { border-bottom: 0; }
  }
  @media (max-width: 480px){
    .nav { gap: 12px; }
    .nav .cart .cart-label { display: none; }
    .brand { font-size: 1.05rem; }
  }

  /* hero */
  .hero { position: relative; overflow: hidden; background:
      radial-gradient(120% 130% at 88% 8%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 55%),
      linear-gradient(165deg, var(--surface), var(--surface-2)); }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 58px; padding-bottom: 58px; }
  .hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.015em; }
  .hero h1 .hl { color: var(--brand); }
  @media (prefers-color-scheme: dark){ .hero h1 .hl{ color: var(--accent-soft);} }
  :root[data-theme="dark"] .hero h1 .hl{ color: var(--accent-soft);}
  .hero p.lede { font-size: 1.14rem; color: var(--ink-soft); margin: 18px 0 28px; max-width: 34ch; }
  .hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero .microtrust { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-faint); }
  .hero .microtrust b { color: var(--good); font-weight: 700; }
  /* social proof ใต้ CTA */
  .hero-social { margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
  .hero-social .stars { color: #F5A623; letter-spacing: 1px; }
  .hero-social b { color: var(--ink); }

  /* hero ขวา: การ์ดดีลเด่นวันนี้ (เตี้ยลง 4:3 → Flash โผล่ above-fold) */
  .hero-feature { justify-self: center; width: 100%; max-width: 380px; }
  .hf-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: 0 24px 50px -24px rgb(var(--shadow) / .4); }
  .hf-media { position: relative; }
  .hf-badge { position: absolute; top: 8px; left: 8px; z-index: 2; font-family: var(--font-display); font-weight: 800; font-size: .8rem; padding: .32em .8em; border-radius: 999px; background: #E63946; color: #fff; box-shadow: 0 4px 10px -3px rgba(230,57,70,.5); }
  .hf-badge.rec { background: var(--brand); }
  .hf-img { display: block; border-radius: 14px; overflow: hidden; background: #fff; }
  .hf-img img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; display: block; }
  .hf-body { padding: 12px 4px 4px; }
  .hf-cd-row { font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: #E63946; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
  .hf-cd-row .tkb-cd { display: inline-flex; gap: 3px; }
  .hf-cd-row .tkb-cd b { background: color-mix(in srgb, #E63946 12%, var(--surface-2)); border-radius: 5px; padding: 2px 5px; font-variant-numeric: tabular-nums; }
  .hf-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
  .hf-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; color: var(--ink); line-height: 1.3; margin: 2px 0 6px; text-decoration: none; }
  .hf-name:hover { color: var(--brand); }
  .hf-price { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 1.5rem; }
  .hf-deal .hf-price { color: #E63946; }
  .hf-price del { color: var(--ink-faint); font-weight: 400; font-size: .95rem; margin-left: 8px; }
  /* ปุ่มรอง (กรมท่า) — ไม่แย่งปุ่ม CTA หลักสีส้ม */
  .hf-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; width: 100%; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: .68em 1.4em; border-radius: 999px; text-decoration: none; transition: background .15s, color .15s; }
  .hf-btn.secondary { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
  .hf-btn.secondary:hover { background: var(--brand); color: #fff; }
  @media (prefers-color-scheme: dark){ .hf-btn.secondary { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 55%, transparent); } }
  :root[data-theme="dark"] .hf-btn.secondary { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }

  @media (max-width: 820px){
    .hero .wrap{ grid-template-columns: 1fr; gap: 22px; }
    /* มือถือ: หัวข้อ+ปุ่ม CTA มาก่อน แล้วค่อยการ์ดดีล */
    .hero .wrap > div{ order: 1; }
    .hero-feature{ order: 2; max-width: 100%; }
    /* 1.3: การ์ดดีล → แถบแนวนอนกะทัดรัด (รูปซ้าย · ข้อมูล+ปุ่มขวา) */
    .hf-card{ display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center; padding: 12px; }
    .hf-img img{ aspect-ratio: 1/1; }
    .hf-badge{ font-size: .68rem; padding: .22em .55em; top: 5px; left: 5px; }
    .hf-badge .bd-full{ display: none; }
    .hf-body{ padding: 0; }
    .hf-cd-row{ font-size: .72rem; margin-bottom: 3px; }
    .hf-name{ font-size: 1rem; margin: 1px 0 3px; }
    .hf-price{ font-size: 1.18rem; }
    .hf-btn{ margin-top: 9px; padding: .5em 1em; font-size: .92rem; }
  }

  /* trust strip */
  .strip { background: var(--brand-deep); color: #EaF1F9; }
  .strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 34px; padding: 16px 22px; justify-content: center; font-family: var(--font-display); font-weight: 500; font-size: .98rem; }
  .strip .item { display: inline-flex; align-items: center; gap: 9px; }
  .strip svg { width: 19px; height: 19px; color: var(--accent-soft); flex: none; }

  /* section shell */
  section.blk { padding: 66px 0; }
  .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
  .head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -.01em; }
  .head p { margin: 8px 0 0; color: var(--ink-soft); }
  .head a.more { font-family: var(--font-display); font-weight: 600; color: var(--brand); white-space: nowrap; }
  @media (prefers-color-scheme: dark){ .head a.more{ color: var(--accent-soft);} }
  :root[data-theme="dark"] .head a.more{ color: var(--accent-soft);}

  /* product grid */
  .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  @media (max-width: 900px){ .grid{ grid-template-columns: repeat(2,1fr);} }
  @media (max-width: 520px){ .grid{ grid-template-columns: 1fr 1fr; gap: 12px;} }
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgb(var(--shadow) / .4); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
  .card .thumb { aspect-ratio: 4/3; background: #fff; display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--line); }
  .card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
  .card .tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--accent); color: #1a1206; font-family: var(--font-display); font-weight: 700; font-size: .72rem; padding: .3em .7em; border-radius: 999px; letter-spacing: .02em; box-shadow: 0 2px 8px -2px rgb(var(--shadow) / .5); }
  .card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .card h3 { font-size: 1.03rem; font-weight: 600; line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .spec { font-size: .86rem; color: var(--ink-faint); }
  .card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
  .card .price { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; color: var(--brand); font-variant-numeric: tabular-nums; }
  @media (prefers-color-scheme: dark){ .card .price{ color: var(--accent-soft);} }
  :root[data-theme="dark"] .card .price{ color: var(--accent-soft);}
  .card .buy { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--accent); }
  a.thumb { cursor: pointer; }
  .card-title { text-decoration: none; color: inherit; }
  .card-title:hover h3 { color: var(--brand); }
  @media (prefers-color-scheme: dark){ .card-title:hover h3 { color: var(--accent-soft); } }
  :root[data-theme="dark"] .card-title:hover h3 { color: var(--accent-soft); }
  .card .btn-cart { margin-top: 12px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: .62em 1em; border-radius: 999px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; transition: background .15s ease, color .15s ease, transform .1s ease; }
  .card .btn-cart:hover { background: var(--accent); color: #1a1206; }
  .card .btn-cart:active { transform: scale(.97); }
  .card .btn-cart.added { background: var(--good); border-color: var(--good); color: #fff; }
  .card .btn-cart svg { width: 16px; height: 16px; }
  /* variable product: ปุ่ม "เลือกสี" (ลิงก์ไปหน้าสินค้า) — เติมสีแบรนด์ให้ต่างจากปุ่มหยิบใส่ตะกร้า */
  .card a.btn-choose { text-decoration: none; border-color: var(--brand); background: var(--brand); color: #fff; }
  .card a.btn-choose:hover { filter: brightness(1.07); background: var(--brand); color: #fff; }
  .card a.btn-choose svg { width: 18px; height: 18px; }
  /* จุดสีบนการ์ด (ครีม/ดำ) */
  .color-dots { display: inline-flex; align-items: center; gap: 5px; }
  .cdot { width: 15px; height: 15px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
  .cdot-cream, .cdot-ครีม { background: #ece3cf; }
  .cdot-black, .cdot-ดำ { background: #24262b; }
  /* แบบ A: swatch รูปสีบนการ์ด (หน้าแรก + shop) */
  .tkb-cardsw { display: flex; gap: 7px; margin: 6px 0 10px; }
  .tkb-cardsw button { flex: none; width: 36px; height: 36px; border-radius: 9px; border: 2px solid var(--line); background: #fff; padding: 1px; cursor: pointer; overflow: hidden; position: relative; }
  .tkb-cardsw button img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; display: block; }
  .tkb-cardsw button.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent); }
  .tkb-cardsw button.oos { cursor: not-allowed; }
  .tkb-cardsw button.oos img { opacity: .35; filter: grayscale(1); }
  .tkb-cardsw button.oos::after { content: 'หมด'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 9px; font-weight: 700; color: #b91c1c; background: rgba(255,255,255,.5); }
  /* ฟอร์มสั่งด่วน: ปุ่มเลือกสี */
  .o-colors { display: flex; flex-wrap: wrap; gap: 10px; }
  .o-color { display: inline-flex; align-items: center; gap: 7px; padding: .5em .9em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .15s, background .15s; }
  .o-color:hover { border-color: var(--brand); }
  .o-color.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent); }
  .o-color .cdot { width: 16px; height: 16px; }
  /* qty stepper on card: − [พิมพ์จำนวนได้] + | 🗑 (ลบทันที) */
  .qty-stepper { margin-top: 12px; display: flex; align-items: center; border: 1.5px solid var(--accent); border-radius: 999px; height: 42px; overflow: hidden; }
  .qty-stepper button { flex: none; width: 42px; height: 100%; border: 0; background: transparent; color: var(--accent); font-size: 1.35rem; font-weight: 500; cursor: pointer; display: grid; place-items: center; line-height: 1; transition: background .15s ease; }
  .qty-stepper button:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
  .qty-stepper .qnum-input { flex: 1; min-width: 34px; width: 100%; text-align: center; border: 0; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); padding: 0; -moz-appearance: textfield; }
  .qty-stepper .qnum-input:focus { outline: none; background: color-mix(in srgb, var(--accent) 9%, transparent); }
  .qty-stepper .qnum-input::-webkit-outer-spin-button, .qty-stepper .qnum-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .qty-stepper .qrm { color: #D64545; border-left: 1.5px solid var(--line); width: 44px; }
  .qty-stepper .qrm:hover { background: color-mix(in srgb, #D64545 14%, transparent); }
  .qty-stepper .qrm svg { width: 17px; height: 17px; }
  /* cart count badge */
  .cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #1a1206; font-family: var(--font-display); font-weight: 700; font-size: .72rem; }
  .cart-count[hidden] { display: none; }
  /* toast */
  .toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: .85em 1.3em; border-radius: 999px; box-shadow: 0 18px 44px -12px rgb(var(--shadow) / .6); display: flex; align-items: center; gap: 9px; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 200; max-width: 90vw; }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .toast svg { width: 18px; height: 18px; color: var(--good); flex: none; }

  /* use-cases */
  .usecases { background: var(--surface-2); }
  .uc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
  @media (max-width: 900px){ .uc-grid{ grid-template-columns: repeat(2,1fr);} }
  .uc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 16px; text-align: center; transition: transform .15s ease, border-color .15s ease; }
  .uc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
  .uc .ic { width: 42px; height: 42px; margin: 0 auto 12px; color: var(--brand); }
  @media (prefers-color-scheme: dark){ .uc .ic{ color: var(--accent-soft);} }
  :root[data-theme="dark"] .uc .ic{ color: var(--accent-soft);}
  .uc h3 { font-size: 1rem; font-weight: 600; }
  .uc p { margin: 5px 0 0; font-size: .85rem; color: var(--ink-faint); }

  /* articles */
  .arts { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
  @media (max-width: 820px){ .arts{ grid-template-columns: 1fr;} }
  .art { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: transform .15s ease, box-shadow .15s ease; }
  .art:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgb(var(--shadow) / .35); }
  .art .kicker { font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
  .art h3 { font-size: 1.14rem; font-weight: 600; margin: 10px 0 8px; line-height: 1.35; }
  .art p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
  .art .read { display: inline-block; margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--brand); }
  @media (prefers-color-scheme: dark){ .art .read{ color: var(--accent-soft);} }
  :root[data-theme="dark"] .art .read{ color: var(--accent-soft);}
  /* แบ่งหน้า (หน้า blog/archive) */
  .tkb-pagination { margin-top: 34px; display: flex; justify-content: center; }
  .tkb-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
  .tkb-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
    font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink-soft); background: var(--surface);
    border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .12s, color .12s, background .12s; }
  .tkb-pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
  .tkb-pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
  .tkb-pagination .page-numbers.dots { border-color: transparent; background: transparent; }
  /* รูปปกบนการ์ดบทความ */
  .art.has-cover { padding-top: 0; overflow: hidden; }
  .art .art-cover { display: block; margin: 0 -22px 16px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
  .art .art-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .art.has-cover { padding-top: 0; }
  .art.has-cover .kicker { margin-top: 4px; }

  /* หน้าบทความเดี่ยว (single post) */
  .tkb-article { max-width: 760px; margin: 0 auto; padding: 40px 22px 64px; }
  .tkb-article-head .eyebrow { display: inline-block; margin-bottom: 8px; }
  .tkb-article-head h1 { font-family: var(--font-display); font-size: clamp(1.55rem,3.4vw,2.3rem); line-height: 1.28; letter-spacing: -.01em; margin: 0 0 10px; }
  .tkb-article-meta { color: var(--ink-faint); font-family: var(--font-display); font-size: .9rem; }
  .tkb-article-cover { margin: 24px 0 30px; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
  .tkb-article-cover img { width: 100%; height: auto; display: block; }
  .tkb-article-body { color: var(--ink); line-height: 1.85; font-size: 1.06rem; }
  .tkb-article-body p { margin: 0 0 18px; }
  .tkb-article-body h2 { font-family: var(--font-display); font-size: 1.42rem; line-height: 1.3; margin: 32px 0 12px; }
  .tkb-article-body h3 { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.35; margin: 26px 0 10px; }
  .tkb-article-body img { max-width: 100%; height: auto; border-radius: 12px; }
  .tkb-article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
  @media (prefers-color-scheme: dark){ .tkb-article-body a { color: var(--accent-soft); } }
  :root[data-theme="dark"] .tkb-article-body a { color: var(--accent-soft); }
  .tkb-article-body ul, .tkb-article-body ol { margin: 0 0 18px; padding-left: 1.3em; }
  .tkb-article-body li { margin: 7px 0; }
  .tkb-article-body strong, .tkb-article-body b { color: var(--ink); }
  .tkb-article-foot { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }

  /* faq */
  .faq { background: var(--surface-2); }
  .faq-list { display: grid; gap: 12px; max-width: 820px; }
  details.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
  details.qa summary { font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; padding: 15px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  details.qa summary::-webkit-details-marker { display: none; }
  details.qa summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 400; transition: transform .2s ease; }
  details.qa[open] summary::after { transform: rotate(45deg); }
  details.qa .ans { padding: 0 0 16px; color: var(--ink-soft); }

  /* order form */
  .order { background: linear-gradient(160deg, var(--surface), var(--surface-2)); }
  .order-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
  @media (max-width: 820px){ .order-wrap{ grid-template-columns: 1fr; gap: 28px; } }
  .order-info h2 { font-size: clamp(1.5rem,3vw,2.05rem); letter-spacing: -.01em; }
  .order-benefits { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
  .order-benefits li { display: flex; gap: 11px; align-items: flex-start; font-size: 1.02rem; color: var(--ink-soft); }
  .order-benefits svg { width: 22px; height: 22px; color: var(--good); flex: none; margin-top: 2px; }
  .order-benefits b { color: var(--ink); font-weight: 700; }
  .order-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 24px 50px -26px rgb(var(--shadow) / .4); display: grid; gap: 14px; }
  .cod-badge { display: inline-flex; align-items: center; gap: 8px; justify-self: start; background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); font-family: var(--font-display); font-weight: 700; font-size: .88rem; padding: .45em .95em; border-radius: 999px; }
  .field { display: grid; gap: 6px; }
  .field label { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
  .field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: .72em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); width: 100%; }
  .field textarea { resize: vertical; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
  .field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
  .order-form .btn-accent { justify-content: center; width: 100%; font-size: 1.08rem; margin-top: 4px; }
  .order-note { font-size: .8rem; color: var(--ink-faint); text-align: center; margin: 2px 0 0; }
  .pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pay-opt { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: .72em .8em; cursor: pointer; font-size: .95rem; font-weight: 500; background: var(--surface-2); transition: border-color .15s ease, background .15s ease; }
  .pay-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .pay-opt input { width: auto; accent-color: var(--accent); margin: 0; }
  .transfer-box, .tax-box { display: grid; gap: 12px; border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); border-radius: 12px; padding: 16px; background: color-mix(in srgb, var(--accent) 7%, transparent); }
  .transfer-box[hidden], .tax-box[hidden] { display: none; }
  .tax-box { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, transparent); }
  .tax-want-field .pay-opt { cursor: pointer; }
  .bank { font-size: .95rem; line-height: 1.7; color: var(--ink-soft); }
  .bank-head { display: flex; align-items: center; gap: 12px; }
  .bank-logo { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #13a63a; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px -3px rgba(19,166,58,.6); }
  .bank-logo img { width: 34px; height: 34px; display: block; }
  .bank-meta { display: flex; flex-direction: column; }
  .bank strong { color: var(--ink); font-family: var(--font-display); }
  .bank .acc { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; color: var(--brand); letter-spacing: .03em; }
  .bank-name { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
  .bank-name b { color: var(--ink); font-family: var(--font-display); }
  @media (prefers-color-scheme: dark){ .bank .acc{ color: var(--accent-soft);} }
  :root[data-theme="dark"] .bank .acc{ color: var(--accent-soft);}
  .transfer-box input[type=file] { padding: .6em; background: var(--surface); font-size: .9rem; }
  .order-summary { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 22px 0 18px; box-shadow: 0 16px 34px -22px rgb(var(--shadow) / .35); }
  .os-thumb { width: 100px; height: 100px; flex: none; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
  .os-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
  .os-detail { flex: 1; display: grid; gap: 5px; min-width: 0; }
  .os-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
  .os-price-row, .os-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .92rem; color: var(--ink-soft); }
  .os-total-row { border-top: 1px dashed var(--line); margin-top: 5px; padding-top: 8px; }
  .os-price { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
  .os-total { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; color: var(--brand); font-variant-numeric: tabular-nums; }
  @media (prefers-color-scheme: dark){ .os-total{ color: var(--accent-soft);} }
  :root[data-theme="dark"] .os-total{ color: var(--accent-soft);}
  .order-benefits.mini { gap: 9px; margin-top: 0; }
  .order-benefits.mini li { font-size: .95rem; }

  /* compare table */
  .tbl-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  table.cmp { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .95rem; }
  .cmp th { font-family: var(--font-display); font-weight: 600; font-size: .84rem; letter-spacing: .03em; text-align: left; color: var(--ink-soft); background: var(--surface-2); padding: 12px 16px; white-space: nowrap; }
  .cmp td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
  .cmp tbody tr:hover td { background: color-mix(in srgb, var(--brand) 5%, transparent); }
  .cmp .cmp-name { display: flex; align-items: center; gap: 12px; font-weight: 600; min-width: 250px; }
  .cmp .cmp-name img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; flex: none; padding: 2px; }
  .cmp td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cmp .p { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
  @media (prefers-color-scheme: dark){ .cmp .p{ color: var(--accent-soft);} }
  :root[data-theme="dark"] .cmp .p{ color: var(--accent-soft);}
  .lockb { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .78rem; padding: .28em .75em; border-radius: 999px; white-space: nowrap; }
  .lockb.key { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
  .lockb.code { background: color-mix(in srgb, var(--accent) 18%, transparent); color: #9A6206; }
  @media (prefers-color-scheme: dark){ .lockb.key{ color: #9FC3E4; } .lockb.code{ color: var(--accent-soft); } }
  :root[data-theme="dark"] .lockb.key{ color: #9FC3E4; }
  :root[data-theme="dark"] .lockb.code{ color: var(--accent-soft); }
  .cmp a.golink { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--accent); white-space: nowrap; }

  /* form validation */
  .field .f-err { display: none; font-size: .8rem; color: #D64545; }
  .field.err input, .field.err textarea { border-color: #D64545; }
  .field.err .f-err { display: block; }
  .form-ok { display: none; gap: 9px; align-items: flex-start; background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); border-radius: 10px; padding: 12px 14px; font-family: var(--font-display); font-weight: 600; font-size: .93rem; line-height: 1.5; }
  .form-ok.show { display: flex; }
  .form-ok.err { background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }
  .form-ok.err svg { display: none; }

  /* reviews / social proof */
  .reviews { background: var(--surface-2); }
  .rv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
  @media (max-width: 780px){ .rv-stats{ grid-template-columns: 1fr 1fr; } }
  .rv-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
  .rv-stat .big { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
  @media (prefers-color-scheme: dark){ .rv-stat .big{ color: var(--accent-soft);} }
  :root[data-theme="dark"] .rv-stat .big{ color: var(--accent-soft);}
  .rv-stat .lbl { font-size: .88rem; color: var(--ink-soft); }
  .rv-stat .stars { color: #F5B301; letter-spacing: 2px; font-size: 1rem; }
  .rv-grid { column-count: 3; column-gap: 18px; }
  @media (max-width: 900px){ .rv-grid{ column-count: 2; } }
  @media (max-width: 600px){ .rv-grid{ column-count: 1; } }
  .rv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; break-inside: avoid; margin: 0 0 18px; }
  .rv-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; background: var(--surface-2); border-bottom: 1px solid var(--line); }
  .rv-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
  .rv-card.noimg .rv-body { padding-top: 20px; }
  .rv-card.noimg .rv-body::before { content: "\201C"; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: .4; color: color-mix(in srgb, var(--accent) 55%, var(--line)); height: 14px; }
  .rv-card .rv-stars { color: #F5B301; letter-spacing: 2px; font-size: .95rem; }
  .rv-card .rv-text { font-size: .95rem; color: var(--ink-soft); line-height: 1.62; flex: 1; }
  .rv-card .rv-meta { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 11px; font-size: .82rem; flex-wrap: wrap; }
  .rv-card .rv-who { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
  .rv-card .rv-var { color: var(--ink-faint); }
  .rv-card .rv-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--good); font-size: .76rem; font-weight: 700; white-space: nowrap; }
  .rv-note { text-align: center; color: var(--ink-faint); font-size: .82rem; margin-top: 20px; }

  /* final cta */
  .final { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border-radius: 22px; padding: 52px 40px; text-align: center; }
  .final h2 { font-size: clamp(1.6rem,3.4vw,2.3rem); color: #fff; }
  .final p { color: #cfe0f0; max-width: 46ch; margin: 14px auto 26px; }

  /* footer */
  footer.site { background: var(--brand-deep); color: #b9cadb; font-size: .93rem; padding: 48px 0 30px; }
  footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
  @media (max-width: 780px){ footer.site .cols{ grid-template-columns: 1fr 1fr;} }
  footer.site h4 { font-family: var(--font-display); color: #fff; font-size: .95rem; margin: 0 0 12px; letter-spacing: .04em; }
  footer.site a { display: block; color: #b9cadb; padding: 4px 0; }
  footer.site a:hover { color: var(--accent-soft); }
  footer.site .kw { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 18px; font-size: .82rem; color: #7f96ad; line-height: 1.9; }
  .theme-toggle{ background:transparent;border:1.5px solid var(--line);color:var(--ink-soft);width:38px;height:38px;border-radius:999px;cursor:pointer;font-size:1rem;display:grid;place-items:center; }

  @media (prefers-reduced-motion: reduce){ * { transition: none !important; } }

/* ---------- Thai address autofill dropdown ---------- */
.tkb-addr-wrap { position: relative; }
.tkb-addr-search label { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.tkb-addr-list {
  position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 300px; overflow-y: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(var(--shadow)/.45);
  padding: 6px;
}
.tkb-addr-item {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.tkb-addr-item:hover, .tkb-addr-item.active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tkb-addr-main { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .96rem; }
.tkb-addr-sub { color: var(--ink-soft); font-size: .85rem; }
.tkb-addr-search .input-text { width: 100%; }

/* ============ Flash Sale — carousel (mobile-first) ============ */
.flashsale { --f1:#E63946; --f2:#F07E1A; padding: 8px 0 4px; }
.flashsale .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.fhead { background: linear-gradient(90deg,var(--f1),var(--f2)); color:#fff; border-radius: 14px 14px 0 0; padding: 11px 16px; display:flex; align-items:center; justify-content:space-between; }
.fhead .ftitle { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing:.01em; }
.fhead .fcd { display:flex; align-items:center; gap:5px; font-family: var(--font-display); font-weight:700; }
.fhead .fcd .lb { font-weight:500; opacity:.9; font-size:.8rem; margin-right:2px; }
.fhead .fcd b { background: rgba(0,0,0,.26); border-radius:6px; padding:3px 7px; font-size:.9rem; min-width:28px; text-align:center; font-variant-numeric: tabular-nums; }
.fsub { background: color-mix(in srgb, var(--f2) 12%, var(--surface)); color:#c2410c; font-family: var(--font-display); font-weight:600; font-size:.82rem; text-align:center; padding:6px; border:1px solid var(--line); border-top:0; }
:root[data-theme="dark"] .fsub { color:#f4a259; }
.fcaro { display:flex; gap:14px; overflow-x:auto; padding:16px 4px 6px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.fcaro::-webkit-scrollbar { height:6px; }
.fcaro::-webkit-scrollbar-thumb { background: var(--line); border-radius:9px; }
.fcaro .fcard { flex:0 0 240px; scroll-snap-align:start; background: var(--surface); border:1px solid var(--line); border-radius:14px; padding:12px; position:relative; display:flex; flex-direction:column; }
.fcard .fdisc { position:absolute; top:10px; left:10px; z-index:2; background: var(--f1); color:#fff; font-family: var(--font-display); font-weight:800; font-size:.82rem; border-radius:8px; padding:2px 8px; box-shadow:0 4px 10px -3px rgba(230,57,70,.6); }
.fcard .fthumb { display:block; }
.fcard .fthumb img { width:100%; aspect-ratio:1/1; object-fit:contain; background:#fff; border-radius:10px; }
.fcard .fname { display:block; font-family: var(--font-display); font-weight:600; font-size:.95rem; color:var(--ink); text-decoration:none; margin:9px 0 4px; line-height:1.3; min-height:2.5em; }
.fcard .fname:hover { color: var(--f1); }
.fcard .fprice { font-family: var(--font-display); font-weight:800; color: var(--f1); font-size:1.18rem; }
.fcard .fprice del { color: var(--ink-faint); font-weight:400; font-size:.85rem; margin-left:6px; }
.fcard .fbar { height:7px; border-radius:9px; background: color-mix(in srgb, var(--f1) 12%, var(--surface-2)); overflow:hidden; margin:9px 0 3px; }
.fcard .fbar i { display:block; height:100%; background: linear-gradient(90deg,var(--f1),var(--f2)); border-radius:9px; }
.fcard .fbarlb { font-size:.73rem; color: var(--f1); font-family: var(--font-display); font-weight:600; margin-bottom:8px; }
.fcard .tkb-cardsw { margin:2px 0 8px; }
/* ปุ่มใส่ตะกร้าในการ์ด flash = โทนแดง flash */
.fcard .card-action { margin-top:auto; }
.fcard .btn-cart { border-color: var(--f1); color: var(--f1); }
.fcard .btn-cart:hover { background: var(--f1); border-color: var(--f1); color:#fff; }
.fcard .qty-stepper { border-color: var(--f1); }
.fcard .qty-stepper .qdec, .fcard .qty-stepper .qinc { color: var(--f1); }
@media (min-width: 760px){
  .fcaro { flex-wrap: nowrap; }
  .fcaro .fcard { flex: 1 1 0; min-width: 0; }
}
.fcard .btn-cart svg { width: 16px; height: 16px; flex: none; }
.fcard .btn-cart { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: .62em 1em; border-radius: 999px; border: 1.5px solid var(--f1); background: transparent; cursor: pointer; }

/* เฟส 2: แถบแจ้ง "มีของในตะกร้าแล้ว → ไปชำระเงิน" บนฟอร์มสั่งด่วน */
.order-cart-notice { display: flex; align-items: center; gap: 10px; text-decoration: none; background: color-mix(in srgb, var(--good) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--good) 38%, var(--line)); color: var(--ink); border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; transition: filter .15s; }
.order-cart-notice[hidden] { display: none; }
.order-cart-notice:hover { filter: brightness(1.04); }
.order-cart-notice svg { width: 20px; height: 20px; color: var(--good); flex: none; }
.order-cart-notice b { color: var(--good); }
.order-cart-notice .ocn-go { margin-left: auto; color: var(--good); font-weight: 700; white-space: nowrap; }

/* ============ ปุ่มแชทลอย Facebook Messenger (เฟส 4) ============ */
.tkb-chat { position: fixed; right: 18px; bottom: 20px; z-index: 55; display: inline-flex; align-items: center; gap: 9px; background: linear-gradient(135deg,#00B2FF,#006AFF); color: #fff; padding: 12px 18px 12px 13px; border-radius: 999px; box-shadow: 0 10px 26px -8px rgba(0,106,255,.55); font-family: var(--font-display); font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.tkb-chat:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(0,106,255,.6); color: #fff; }
.tkb-chat svg { width: 26px; height: 26px; flex: none; }
.tkb-chat-label { white-space: nowrap; }
/* มือถือเล็ก: เหลือไอคอนกลม */
@media (max-width: 600px){
  .tkb-chat { padding: 13px; }
  .tkb-chat .tkb-chat-label { display: none; }
}
/* หน้าสินค้า (มือถือ) มีแถบซื้อลอยล่างจอ → ยกปุ่มแชทขึ้นให้พ้น */
@media (max-width: 900px){ .single-product .tkb-chat { bottom: 84px; } }

  /* 4.2: ตารางเทียบบนมือถือ — ซ่อนคอลัมน์รอง + ตรึงคอลัมน์ชื่อ + hint เลื่อน */
  .tbl-hint { display: none; font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--accent); margin: 0 0 8px; }
  @media (max-width: 620px){
    .tbl-hint { display: block; }
    table.cmp { min-width: 0; font-size: .84rem; }
    .cmp th:nth-child(4), .cmp td:nth-child(4),
    .cmp th:nth-child(5), .cmp td:nth-child(5) { display: none; }
    .cmp .cmp-name { min-width: 120px; gap: 8px; }
    .cmp .cmp-name img { width: 34px; height: 34px; }
    .cmp th, .cmp td { padding: 9px 9px; }
    .cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 6px 0 8px -8px rgba(0,0,0,.25); }
    .cmp thead th:first-child { background: var(--surface-2); }
  }

  /* 3.4: แถบลิขสิทธิ์ + ตัวตนบริษัท */
  .foot-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding: 16px 22px 0; text-align: center; color: #7d93aa; font-size: .82rem; }
  .foot-policy { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
  .foot-policy a { color: #aebfd0; font-family: var(--font-display); font-size: .84rem; }
  .foot-policy a:hover { color: #fff; text-decoration: underline; }
