/* ==========================================================================
   Dr.Racket — บริษัท ชินโฮลดิ้ง จำกัด
   Design system · แนวทาง minimal / modern
   สีแบรนด์: เขียว #026737 · ส้ม #E98A1E (ดูดจากโลโก้จริง)
   ========================================================================== */

:root{
  /* พื้นผิว */
  --ground:#FBFCFA;
  --surface:#FFFFFF;
  --surface-2:#F2F5F1;
  --surface-3:#E9EEE7;

  /* ตัวอักษร */
  --ink:#101713;
  --body:#495449;
  --muted:#7C867D;

  /* เส้น (ใช้น้อยมาก) */
  --line:#E4E9E2;
  --line-soft:#EDF1EB;

  /* แบรนด์ */
  --court:#026737;
  --court-deep:#014A27;
  --court-soft:#E8F2EC;
  --on-court:#FFFFFF;
  --optic:#E98A1E;
  --optic-soft:#FDF1E2;
  --optic-ink:#2A1702;

  /* มุมโค้ง */
  --r-xs:8px;
  --r-sm:12px;
  --r:18px;
  --r-lg:26px;
  --r-pill:999px;

  /* เงา */
  --sh-sm:0 1px 2px rgba(16,23,19,.04), 0 2px 8px -4px rgba(16,23,19,.08);
  --sh:0 2px 4px rgba(16,23,19,.03), 0 12px 32px -16px rgba(16,23,19,.16);
  --sh-lg:0 4px 8px rgba(16,23,19,.04), 0 28px 64px -28px rgba(16,23,19,.26);

  --maxw:1200px;

  /* ฟอนต์: IBM Plex Sans Thai (ไทย+อังกฤษ) · Noto Sans SC (จีน) */
  --font:"IBM Plex Sans Thai","Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --ground:#0C110E;
    --surface:#141A16;
    --surface-2:#171E19;
    --surface-3:#1E2720;
    --ink:#EDF2ED;
    --body:#B3BDB4;
    --muted:#848F86;
    --line:#242E27;
    --line-soft:#1D2620;
    --court:#2AAF68;
    --court-deep:#013D20;
    --court-soft:#132419;
    --optic:#F3A54A;
    --optic-soft:#241A0D;
    --optic-ink:#1B1002;
    --sh-sm:0 1px 2px rgba(0,0,0,.3), 0 2px 8px -4px rgba(0,0,0,.5);
    --sh:0 2px 4px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.7);
    --sh-lg:0 4px 8px rgba(0,0,0,.35), 0 28px 64px -28px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"]{
  --ground:#0C110E; --surface:#141A16; --surface-2:#171E19; --surface-3:#1E2720;
  --ink:#EDF2ED; --body:#B3BDB4; --muted:#848F86;
  --line:#242E27; --line-soft:#1D2620;
  --court:#2AAF68; --court-deep:#013D20; --court-soft:#132419;
  --optic:#F3A54A; --optic-soft:#241A0D; --optic-ink:#1B1002;
  --sh-sm:0 1px 2px rgba(0,0,0,.3), 0 2px 8px -4px rgba(0,0,0,.5);
  --sh:0 2px 4px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.7);
  --sh-lg:0 4px 8px rgba(0,0,0,.35), 0 28px 64px -28px rgba(0,0,0,.8);
}

/* ---------- reset ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ground);
  color:var(--body);
  font-family:var(--font);
  font-size:16.5px;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  text-wrap:pretty;
  word-break:normal;
  overflow-wrap:break-word;
}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{
  font-family:var(--font);
  color:var(--ink);margin:0;line-height:1.2;
  text-wrap:balance;font-weight:600;letter-spacing:-.01em;
}
p{margin:0}
a{color:inherit}
ul{margin:0;padding:0}
:focus-visible{outline:2px solid var(--court);outline-offset:3px;border-radius:4px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto}}

/* ---------- utilities ---------- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 32px}
.eyebrow{
  font-family:var(--font);
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
.mono{font-family:var(--font);font-variant-numeric:tabular-nums}
.skip{
  position:absolute;left:-9999px;top:0;background:var(--court);color:#fff;
  padding:12px 20px;z-index:200;text-decoration:none;border-radius:var(--r-xs);
}
.skip:focus{left:12px;top:12px}

/* ---------- ปุ่ม ---------- */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font);font-weight:500;font-size:14.5px;
  padding:12px 24px;border-radius:var(--r-pill);text-decoration:none;
  border:1px solid transparent;background:var(--court);color:var(--on-court);
  transition:background .2s ease,color .2s ease,border-color .2s ease,transform .12s ease;
  cursor:pointer;
}
.btn:hover{background:var(--court-deep);transform:translateY(-1px)}
.btn:active{transform:none}
.btn.ghost{background:transparent;color:var(--court);border-color:var(--line)}
.btn.ghost:hover{background:var(--court-soft);border-color:transparent}
.btn.on-dark{border-color:rgba(255,255,255,.3);background:transparent;color:#fff}
.btn.on-dark:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.45)}
.btn.solid-light{background:#fff;color:var(--court-deep)}
.btn.solid-light:hover{background:var(--optic);color:var(--optic-ink)}
.btn.small{padding:9px 18px;font-size:13.5px}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:color-mix(in srgb,var(--ground) 82%,transparent);
  backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease;
}
.site-header.tight{border-bottom-color:var(--line-soft)}
.hdr{display:flex;align-items:center;gap:28px;padding-block:18px;transition:padding .25s ease}
.site-header.tight .hdr{padding-block:10px}

.logo{display:flex;flex-direction:column;line-height:1;flex-shrink:0;text-decoration:none}
.logo-img{height:40px;width:auto;background:#fff;padding:6px 10px;border-radius:var(--r-xs);transition:height .25s ease}
.site-header.tight .logo-img{height:32px}
.logo-text b{font-family:var(--font);font-weight:700;font-size:22px;color:var(--court);letter-spacing:-.02em}
.logo-text span{font-family:var(--font);font-size:9px;letter-spacing:.2em;color:var(--muted);margin-top:3px}

.site-nav{display:flex;gap:4px;margin-left:auto;flex-wrap:wrap}
.site-nav a{
  text-decoration:none;font-size:14.5px;font-weight:500;color:var(--body);
  padding:8px 14px;border-radius:var(--r-pill);
  transition:color .18s ease,background .18s ease;
}
.site-nav a:hover,.site-nav a:focus-visible{color:var(--court);background:var(--court-soft)}

.menu-btn{
  display:none;margin-left:auto;width:42px;height:42px;padding:0;
  background:var(--surface-2);border:0;border-radius:var(--r-pill);
  cursor:pointer;position:relative;transition:background .18s ease;
}
.menu-btn:hover{background:var(--surface-3)}
.menu-btn i{
  display:block;position:absolute;left:12px;width:18px;height:1.5px;border-radius:2px;
  background:var(--ink);transition:transform .24s ease,opacity .18s ease;
}
.menu-btn i:nth-child(1){top:15px}
.menu-btn i:nth-child(2){top:20.5px}
.menu-btn i:nth-child(3){top:26px}
.menu-btn[aria-expanded="true"] i:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.menu-btn[aria-expanded="true"] i:nth-child(2){opacity:0}
.menu-btn[aria-expanded="true"] i:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}

/* สลับภาษา */
.lang-switch{display:flex;gap:2px;background:var(--surface-2);padding:3px;border-radius:var(--r-pill);flex-shrink:0}
.lang-switch button{
  padding:6px 13px;border:0;background:transparent;border-radius:var(--r-pill);
  font-family:var(--font);font-size:11.5px;letter-spacing:.04em;
  color:var(--muted);cursor:pointer;transition:background .18s ease,color .18s ease;
}
.lang-switch button:hover{color:var(--court)}
.lang-switch button.active{background:var(--surface);color:var(--court);box-shadow:var(--sh-sm)}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;color:#fff;background:var(--court-deep)}
.hero::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(120% 90% at 82% 18%, rgba(42,175,104,.42) 0%, transparent 62%),
    linear-gradient(140deg, #013D20 0%, #02572F 52%, #026737 100%);
}
.hero-in{position:relative;display:grid;grid-template-columns:1.02fr .98fr;gap:56px;align-items:center;padding-block:82px 92px}
.hero h1{color:#fff;font-size:clamp(36px,4.8vw,62px);font-weight:600;letter-spacing:-.025em;line-height:1.1}
.hero h1 em{font-style:normal;color:var(--optic)}
.hero .lede{color:rgba(255,255,255,.76);font-size:17.5px;max-width:50ch;margin-top:22px;line-height:1.75}
.hero .kick{color:rgba(255,255,255,.5);margin-bottom:16px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:34px}
.hero-art{display:flex;justify-content:center}
.hero-art svg{width:100%;max-width:330px;height:auto}

/* ล็อกอัปบริษัทแม่ (ชินโฮลดิ้ง) */
.holding{
  display:inline-flex;align-items:center;gap:13px;
  padding:9px 20px 9px 12px;margin-bottom:22px;
  background:rgba(255,255,255,.09);border-radius:var(--r-pill);
  backdrop-filter:blur(8px);
}
.holding img{height:32px;width:auto;background:#fff;padding:4px 8px;border-radius:var(--r-pill)}
.holding .h-txt{display:flex;flex-direction:column;line-height:1.3}
.holding .h-name{font-family:var(--font);font-weight:500;font-size:14.5px;color:#fff}
.holding .h-sub{
  font-family:var(--font);font-size:9.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--optic);
}

/* รูปหน้าปก */
.hero-pic{margin:0;border:0;background:transparent;max-width:470px;box-shadow:none}
.hero-pic img{border-radius:var(--r-lg);background:#fff;box-shadow:var(--sh-lg)}

/* ---------- แถบตัวเลข ---------- */
.rail{background:var(--ground)}
.rail-in{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding-block:48px 8px}
.stat{padding:0 4px}
.stat b{
  display:block;font-family:var(--font);font-weight:600;font-size:38px;
  color:var(--court);line-height:1;letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;
}
.stat span{display:block;font-size:14px;color:var(--muted);margin-top:10px}

/* ---------- section ---------- */
.section{padding:92px 0}
.section.tinted{background:var(--surface-2)}
.sec-head{max-width:58ch;margin-bottom:48px}
.sec-head h2{font-size:clamp(28px,3.2vw,42px);margin-top:14px}
.sec-head p{margin-top:18px;font-size:17px;color:var(--body)}

/* ---------- prose 2 คอลัมน์ ---------- */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.prose p+p{margin-top:16px}
.prose b{color:var(--ink);font-weight:600}
h3.sub{font-size:20px;margin-bottom:16px}
h3.mt{margin-top:26px}

/* รายการติ๊ก */
ul.ticks{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-direction:column;gap:13px}
ul.ticks li{position:relative;padding-left:30px;font-size:15.5px}
ul.ticks li::before{
  content:"";position:absolute;left:0;top:.42em;width:19px;height:19px;
  border-radius:var(--r-pill);background:var(--court-soft);
}
ul.ticks li::after{
  content:"";position:absolute;left:5.5px;top:.78em;width:8px;height:4px;
  border-left:1.8px solid var(--court);border-bottom:1.8px solid var(--court);
  transform:rotate(-45deg);
}

/* ---------- timeline ---------- */
.timeline-wrap{margin-top:64px;padding-top:48px;border-top:1px solid var(--line-soft)}
.timeline{margin-top:22px;padding-left:26px;border-left:1.5px solid var(--line);display:flex;flex-direction:column;gap:28px}
.tl-item{position:relative}
.tl-item::before{
  content:"";position:absolute;left:-33px;top:8px;width:13px;height:13px;
  border-radius:var(--r-pill);background:var(--court);
  box-shadow:0 0 0 4px var(--ground);
}
.tl-item b{font-family:var(--font);font-size:12px;letter-spacing:.1em;color:var(--court);display:block}
.tl-item span{display:block;color:var(--body);font-size:15.5px;margin-top:5px}

/* ---------- การ์ดแบรนด์ ---------- */
.brands{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.brand{
  background:var(--surface);border-radius:var(--r);padding:34px 30px 30px;
  display:flex;flex-direction:column;gap:13px;
  box-shadow:var(--sh-sm);transition:transform .22s ease,box-shadow .22s ease;
}
.brand:hover{transform:translateY(-3px);box-shadow:var(--sh)}
.brand h3{font-size:25px;letter-spacing:0}
.brand .role{
  font-family:var(--font);font-size:10.5px;letter-spacing:.11em;
  text-transform:uppercase;color:var(--court);
}
.brand p{font-size:15px}
.brand-logo{height:40px;width:auto;max-width:190px;object-fit:contain;object-position:left center;margin:4px 0 6px;background:#fff;padding:6px 10px;border-radius:var(--r-xs);box-sizing:content-box;margin-left:-10px;align-self:flex-start}
.sole-badge{
  margin-top:auto;padding-top:18px;
  font-family:var(--font);font-size:10px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);
}
.brand-link{margin-top:6px;font-size:14px;color:var(--court);text-decoration:none;font-weight:500}
.brand-link:hover{text-decoration:underline}

/* ---------- Affiliate brands ----------
   รองรับ 2 แบบ: ชื่อแบรนด์เป็นชิป (ตอนยังไม่มีโลโก้)
   และโลโก้รายแบรนด์ (เมื่อใส่ logoUrl แล้ว)                              */
.aff-grid{display:flex;flex-wrap:wrap;gap:10px}
.aff{
  background:var(--surface);border-radius:var(--r-pill);
  padding:11px 20px;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:var(--sh-sm);transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
}
.aff:hover{background:var(--court-soft);transform:translateY(-2px)}
.aff span{font-family:var(--font);font-size:13.5px;font-weight:500;color:var(--body);white-space:nowrap}
.aff:hover span{color:var(--court)}
/* เมื่อเป็นโลโก้: ใช้กล่องสี่เหลี่ยมมุมมน ขนาดเท่ากันทุกอัน ให้โลโก้อยู่กลาง */
.aff:has(img){
  border-radius:var(--r-sm);padding:16px 20px;
  width:158px;height:92px;background:#fff;
}
.aff img{max-height:46px;max-width:118px;width:auto;object-fit:contain}

/* ---------- การ์ดทั่วไป ---------- */
.prod{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.prod.four{grid-template-columns:repeat(4,1fr)}
.pcard{
  background:var(--surface);border-radius:var(--r);padding:30px 28px;
  display:flex;flex-direction:column;gap:12px;box-shadow:var(--sh-sm);
  transition:transform .22s ease,box-shadow .22s ease;
}
.pcard:hover{transform:translateY(-3px);box-shadow:var(--sh)}
.pcard h3{font-size:19.5px}
.pcard p{font-size:15px}
.pcard ul{margin:4px 0 0;padding:0;list-style:none;font-size:15px;display:flex;flex-direction:column;gap:9px}
.pcard ul li{position:relative;padding-left:18px}
.pcard ul li::before{
  content:"";position:absolute;left:0;top:.68em;width:5px;height:5px;
  border-radius:var(--r-pill);background:var(--optic);
}

/* ---------- ช่องทางการขาย ---------- */
.chan-sec{background:var(--court-deep);color:#fff;position:relative;overflow:hidden}
.chan-sec::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(100% 80% at 15% 0%, rgba(42,175,104,.3) 0%, transparent 60%);
}
.chan-sec .wrap{position:relative}
.chan-sec h2{color:#fff}
.chan-sec .eyebrow{color:var(--optic)}
.chan-sec .sec-head p{color:rgba(255,255,255,.74)}
.chans{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.chan{
  display:flex;flex-direction:column;gap:6px;padding:24px;text-decoration:none;
  background:rgba(255,255,255,.08);border-radius:var(--r-sm);color:#fff;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.chan:hover{background:#fff;color:var(--court-deep);transform:translateY(-3px)}
.chan:hover .chan-sub{color:var(--court)}
.chan b{font-family:var(--font);font-size:17.5px;font-weight:500}
.chan-sub{font-family:var(--font);font-size:11px;letter-spacing:.04em;color:rgba(255,255,255,.55);transition:color .2s ease}
.chan.todo{background:rgba(255,255,255,.04)}

/* ---------- ที่ตั้ง ---------- */
.loc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.loc{
  background:var(--surface);border-radius:var(--r);padding:30px 28px;
  display:flex;flex-direction:column;gap:11px;box-shadow:var(--sh-sm);
}
.loc-badge{
  font-family:var(--font);font-size:10px;letter-spacing:.11em;
  text-transform:uppercase;color:var(--muted);
}
.loc-badge.hq{color:var(--court)}
.loc h3{font-size:18.5px}
.loc address{font-style:normal;font-size:15px;line-height:1.75}
.loc-phone a{color:var(--court);text-decoration:none;font-size:15px}
.loc-phone a:hover{text-decoration:underline}
.loc .btn{margin-top:auto;align-self:flex-start}
.loc-ask{margin-top:30px;font-size:15.5px;color:var(--muted)}
.loc-ask a{color:var(--court);text-decoration:none;font-weight:500}
.loc-ask a:hover{text-decoration:underline}

/* ---------- บริการ + เครื่องมือคำนวณแรงดึง ---------- */
.svc-row{display:flex;gap:40px;align-items:flex-start}
.svc-row .prod{flex:1}
.tool{margin-top:72px;padding-top:56px;border-top:1px solid var(--line-soft)}
.tabs{display:flex;gap:4px;background:var(--surface-3);padding:5px;border-radius:var(--r-pill)}
.tabs button{
  flex:1;padding:11px 10px;border:0;background:transparent;cursor:pointer;
  border-radius:var(--r-pill);
  font-family:var(--font);font-size:14.5px;font-weight:500;color:var(--body);
  transition:background .18s ease,color .18s ease;
}
.tabs button:hover{color:var(--court)}
.tabs button[aria-selected="true"]{background:var(--court);color:#fff}
.gauge{background:var(--surface);border-radius:var(--r);padding:32px;margin-top:20px;box-shadow:var(--sh-sm)}
.readout{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.readout .big{
  font-family:var(--font);font-weight:600;font-size:62px;color:var(--court);
  line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums;
}
.readout .unit{font-family:var(--font);font-size:14px;color:var(--muted)}
.readout .kg{
  font-family:var(--font);font-size:18px;color:var(--ink);
  padding-left:16px;border-left:1px solid var(--line);font-variant-numeric:tabular-nums;
}
input[type=range]{width:100%;margin:26px 0 8px;accent-color:var(--court);height:24px}
.range-ends{display:flex;justify-content:space-between;font-family:var(--font);font-size:11.5px;color:var(--muted)}
.rec{margin-top:20px;padding-top:20px;border-top:1px solid var(--line-soft);font-size:14.5px}
.rec b{color:var(--court);font-weight:600}
.fineprint{margin-top:18px;font-size:13.5px;color:var(--muted);line-height:1.65}

/* ตารางสเปก */
.spec-list{display:flex;flex-direction:column;margin:0}
.spec-list div{
  display:flex;justify-content:space-between;gap:20px;
  padding:15px 0;border-bottom:1px solid var(--line-soft);font-size:15px;
}
.spec-list div:first-child{border-top:1px solid var(--line-soft)}
.spec-list dt{color:var(--muted)}
.spec-list dd{margin:0;font-family:var(--font);color:var(--ink);text-align:right}

/* ---------- รูปภาพ ---------- */
.pic{margin:0;border-radius:var(--r);overflow:hidden;background:var(--surface);box-shadow:var(--sh-sm)}
.pic img{width:100%;height:auto;display:block;background:#fff}
.pic.wide{margin-top:44px}
.mascot{margin:0;flex:0 0 250px;align-self:center;background:transparent;box-shadow:none;border-radius:var(--r)}
.mascot img{width:100%;height:auto;border-radius:var(--r);background:#fff}

/* ---------- ติดต่อ ---------- */
.contact{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:48px}
.contact h3{font-size:15px;font-weight:600;margin-bottom:14px}
.contact address{font-style:normal;font-size:15.5px;line-height:1.8}
.contact a{color:var(--court);text-decoration:none}
.contact a:hover{text-decoration:underline}

/* ---------- แถบ CTA ---------- */
.cta-strip{background:var(--ground);padding:0 32px}
.cta-in{
  display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap;
  background:var(--surface);border-radius:var(--r-lg);padding:44px 48px;
  margin-bottom:80px;box-shadow:var(--sh-sm);
}
.cta-in h2{font-size:clamp(22px,2.5vw,30px)}
.cta-in p{margin-top:10px;font-size:15.5px}
.cta-btns{display:flex;gap:12px;flex-wrap:wrap}

/* ---------- footer ---------- */
.site-footer{background:var(--surface-2);padding:64px 0 32px}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:44px;padding-bottom:44px}
.foot-grid h4{font-size:13px;font-weight:600;margin-bottom:16px;color:var(--ink)}
.foot-grid ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.foot-grid a{text-decoration:none;font-size:14.5px;color:var(--body);transition:color .18s ease}
.foot-grid a:hover{color:var(--court)}
.foot-grid address{font-style:normal;font-size:14.5px;line-height:1.75}
.foot-grid address b{color:var(--ink);font-weight:600}
.site-footer .logo{margin-bottom:18px}
.foot-bar{
  display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;
  border-top:1px solid var(--line);padding-top:26px;font-size:13px;color:var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1100px){
  .prod.four{grid-template-columns:repeat(2,1fr)}
  .brands{grid-template-columns:repeat(2,1fr)}
  .chans{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:980px){
  .hdr{gap:14px;flex-wrap:wrap;padding-block:14px}
  .logo{margin-right:auto}
  .lang-switch{order:2}
  .menu-btn{display:block;order:3;margin-left:0}
  .site-nav{
    display:none;position:absolute;left:12px;right:12px;top:calc(100% + 8px);
    flex-direction:column;gap:2px;margin:0;
    background:var(--surface);border-radius:var(--r);
    box-shadow:var(--sh-lg);padding:12px;
  }
  .site-nav.open{display:flex}
  .site-nav a{padding:13px 18px;font-size:16px;border-radius:var(--r-sm)}

  .hero-in{grid-template-columns:1fr;gap:38px;padding-block:52px 64px}
  .hero-art{order:-1;max-width:330px;margin:0 auto}
  .hero-pic{max-width:330px}
  .two-col{grid-template-columns:1fr;gap:44px}
  .svc-row{flex-direction:column;gap:28px}
  .mascot{flex:none;max-width:250px;margin:0 auto}
  .prod{grid-template-columns:1fr}
  .loc-grid{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr;gap:32px}
  .rail-in{grid-template-columns:repeat(2,1fr);gap:28px;padding-block:40px 4px}
  .foot-grid{grid-template-columns:1fr 1fr;gap:32px}
  .cta-in{padding:36px 32px;margin-bottom:56px}
}
@media (max-width:640px){
  .wrap{padding-inline:20px}
  .cta-strip{padding:0 20px}
  .section{padding:60px 0}
  .brands{grid-template-columns:1fr}
  .chans{grid-template-columns:1fr}
  .prod.four{grid-template-columns:1fr}
  .readout .big{font-size:48px}
  .stat b{font-size:32px}
  .logo-img{height:32px;padding:5px 8px}
  .lang-switch button{padding:6px 10px;font-size:11px}
  .holding{padding:8px 16px 8px 9px;gap:10px}
  .holding img{height:26px}
  .holding .h-name{font-size:13.5px}
  .foot-grid{grid-template-columns:1fr}
  .cta-in{padding:30px 24px;border-radius:var(--r)}
  .gauge{padding:24px}
  .aff:has(img){width:calc(50% - 5px);height:80px}
}

/* ==========================================================================
   รูปภาพจริง: สินค้าแนะนำ · รูปสาขา · รูปสำนักงาน
   ========================================================================== */

/* สินค้าแนะนำ (ลูกเทนนิสเด็ก) */
.feature{
  display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;
  margin-top:48px;background:var(--surface);border-radius:var(--r-lg);
  padding:22px 44px 22px 22px;box-shadow:var(--sh-sm);
}
.feature-pic{margin:0;border-radius:var(--r);overflow:hidden;background:#fff}
.feature-pic img{width:100%;height:auto;display:block}
.feature-txt h3{font-size:clamp(22px,2.4vw,30px);margin:12px 0 14px}
.feature-txt > p:not(.eyebrow){font-size:15.5px}
.feature-txt .eyebrow{color:var(--court)}
ul.stages{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
ul.stages li{display:flex;align-items:center;gap:12px;font-size:14.5px;color:var(--ink)}
ul.stages i{width:14px;height:14px;border-radius:var(--r-pill);flex-shrink:0;box-shadow:inset 0 0 0 3px rgba(255,255,255,.35)}

/* การ์ดสาขา + รูป */
.loc{overflow:hidden}
.loc-media{
  margin:-30px -28px 10px;aspect-ratio:4/3;background:var(--surface-2);overflow:hidden;
}
.loc-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.loc:hover .loc-media img{transform:scale(1.03)}
.loc-media.contain{background:#fff}
.loc-media.contain img{object-fit:contain;padding:10px}
.loc:hover .loc-media.contain img{transform:none}

/* รูปสำนักงานในหัวข้อเกี่ยวกับเรา */
#about .pic.wide{border-radius:var(--r-lg)}

@media (max-width:980px){
  .feature{grid-template-columns:1fr;gap:26px;padding:18px 18px 30px}
  .feature-txt{padding:0 10px}
  .loc-grid{grid-template-columns:1fr}
}

/* ---------- Affiliate: กริดไอคอนโลโก้ (ไฟล์สี่เหลี่ยมจัตุรัส) ---------- */
.aff-logos{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:26px 20px}
.aff-tile{display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;min-width:0}
.aff-icon{
  display:block;width:100%;aspect-ratio:1/1;border-radius:22%;overflow:hidden;
  background:#111;box-shadow:var(--sh-sm);transition:transform .22s ease,box-shadow .22s ease;
}
.aff-icon img{width:100%;height:100%;object-fit:cover;display:block}
.aff-tile:hover .aff-icon{transform:translateY(-4px);box-shadow:var(--sh)}
.aff-name{
  font-family:var(--font);font-size:13px;font-weight:500;color:var(--body);
  text-align:center;line-height:1.3;max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.aff-tile:hover .aff-name{color:var(--court)}
.aff-more{margin:44px 0 16px}

@media (max-width:640px){
  .aff-logos{grid-template-columns:repeat(3,1fr);gap:20px 14px}
  .aff-name{font-size:12px}
}

/* ==========================================================================
   ฟอนต์ทางการ + โลโก้ชินโฮลดิ้ง + โลโก้แพลตฟอร์ม + ลิงก์แผนที่
   ========================================================================== */

/* ---------- ปรับตัวอักษรให้เป็นทางการ ---------- */
html[lang="zh"]{--font:"Noto Sans SC","IBM Plex Sans Thai",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{font-weight:400;letter-spacing:0}
h1,h2,h3,h4{font-weight:600;letter-spacing:-.005em}
.hero h1{font-weight:600;letter-spacing:-.015em;line-height:1.18}
html[lang="th"] h1,html[lang="th"] h2,html[lang="th"] h3,html[lang="th"] h4,html[lang="th"] .hero h1{letter-spacing:0}
.eyebrow{font-weight:500;letter-spacing:.1em;font-size:11.5px}
html[lang="th"] .eyebrow,html[lang="zh"] .eyebrow{letter-spacing:.02em;font-size:13px}
.stat b,.readout .big{font-weight:600;letter-spacing:-.02em}
.btn{font-weight:500;letter-spacing:.01em}
.site-nav a{font-weight:500}
.lang-switch button{font-weight:500;letter-spacing:.02em}
.spec-list dd,.readout .kg,.readout .unit,.range-ends,.mono{font-variant-numeric:tabular-nums}

/* ---------- โลโก้ชินโฮลดิ้งบนหน้าปก ---------- */
.holding.has-logo{padding:7px 18px 7px 7px;gap:14px;background:rgba(255,255,255,.1)}
.holding.has-logo img{height:40px;padding:5px 10px;border-radius:var(--r-pill)}
.holding.has-logo .h-sub{letter-spacing:.04em;text-transform:none;font-size:12.5px;font-weight:500}

/* ---------- โลโก้ชินโฮลดิ้งใน footer ---------- */
.foot-logo{display:inline-block;margin-bottom:18px}
.foot-logo img{height:52px;width:auto;background:#fff;padding:8px 14px;border-radius:var(--r-sm);box-shadow:var(--sh-sm)}
.foot-map{display:inline-flex;align-items:center;gap:6px;margin-top:10px;color:var(--court)!important;font-weight:500}

/* ---------- ไอคอนหมุดแผนที่ ---------- */
.pin{display:inline-block;vertical-align:-2px;flex-shrink:0}
.map-btn{gap:6px}

/* ---------- การ์ดช่องทางขายพร้อมโลโก้ ---------- */
.chan-group{color:rgba(255,255,255,.62)!important;margin:6px 0 14px}
.chan-group ~ .chan-group{margin-top:34px}
.chans{grid-template-columns:repeat(5,1fr)}
.chan{
  flex-direction:row;align-items:center;gap:14px;padding:16px 18px;position:relative;
  border-radius:var(--r);
}
.chan-logo{
  flex-shrink:0;width:52px;height:52px;border-radius:14px;overflow:hidden;
  background:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 3px rgba(0,0,0,.15);
}
.chan-logo img{width:100%;height:100%;object-fit:contain;padding:6px;display:block}
.chan-logo.cover img{object-fit:cover;padding:0}
.chan-logo.mono-tile{font-family:var(--font);font-weight:600;font-size:22px;color:var(--court-deep)}
.chan-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.chan-txt b{font-weight:600;font-size:15.5px;line-height:1.3}
.chan-sub{letter-spacing:0;font-size:12px;line-height:1.35}
.chan-go{position:absolute;top:10px;right:13px;font-size:13px;opacity:.45;transition:opacity .2s ease}
.chan:hover .chan-go{opacity:1}
.chan:hover .chan-logo{box-shadow:0 0 0 1px var(--line)}

@media (max-width:1100px){ .chans{grid-template-columns:repeat(3,1fr)} }
@media (max-width:760px){ .chans{grid-template-columns:repeat(2,1fr)} }
@media (max-width:480px){
  .chans{grid-template-columns:1fr}
  .foot-logo img{height:44px}
  .holding.has-logo img{height:34px}
}

/* แก้บั๊ก: .contact a{color} ทับสีตัวอักษรของปุ่ม ทำให้ปุ่มทึบมองไม่เห็นข้อความ */
.contact a.btn{color:var(--on-court);text-decoration:none}
.contact a.btn.ghost{color:var(--court)}
.contact a.btn:hover{text-decoration:none}

/* การ์ดช่องทางขาย: ยืดเต็มแถว ไม่ให้มีการ์ดใบเดียวตกบรรทัด */
.chans{display:flex;flex-wrap:wrap;gap:14px}
.chan{flex:1 1 185px;min-width:0}
@media (max-width:480px){ .chan{flex-basis:100%} }

/* การ์ดช่องทาง: จัดคอลัมน์ตามจำนวนการ์ดในกลุ่ม ให้แถวเต็มพอดี */
.chans{display:grid;gap:14px}
.chan{flex:initial}
.chans.n1{grid-template-columns:1fr}
.chans.n2,.chans.n4{grid-template-columns:repeat(4,1fr)}
.chans.n3,.chans.n6{grid-template-columns:repeat(3,1fr)}
.chans.n5{grid-template-columns:repeat(5,1fr)}
@media (max-width:980px){
  .chans.n4,.chans.n5,.chans.n6{grid-template-columns:repeat(2,1fr)}
  .chans.n3{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:600px){
  .chans.n2,.chans.n3,.chans.n4,.chans.n5,.chans.n6{grid-template-columns:1fr}
}

/* Affiliate: รองรับโลโก้ 2 แบบ
   - ค่าเริ่มต้น: โลโก้พื้นขาว → กล่องขาว โลโก้อยู่กลาง มีระยะขอบ
   - .fit-cover: โลโก้สี่เหลี่ยมมีพื้นสีในตัว → เต็มกล่อง                     */
.aff-icon{background:#fff;box-shadow:0 0 0 1px rgba(16,23,19,.06),var(--sh-sm)}
.aff-icon img{object-fit:contain;padding:14%}
.aff-icon.fit-cover{background:#111}
.aff-icon.fit-cover img{object-fit:cover;padding:0}
.aff-logos{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}

/* Affiliate: ย่อขนาดไอคอนโลโก้ให้กะทัดรัด ประหยัดพื้นที่ */
.aff-logos{grid-template-columns:repeat(auto-fill,78px);gap:18px 14px;justify-content:start}
.aff-tile{gap:6px;width:78px}
.aff-icon{border-radius:18px}
.aff-name{font-size:11px;line-height:1.25}
@media (max-width:640px){
  .aff-logos{grid-template-columns:repeat(auto-fill,64px);gap:14px 10px}
  .aff-tile{width:64px}
  .aff-icon{border-radius:15px}
  .aff-name{font-size:10px}
}

/* ป้ายชื่อแบรนด์ที่ยังไม่มีโลโก้: ย่อให้กะทัดรัด */
.aff-grid{gap:6px}
.aff{padding:5px 12px;box-shadow:none;border:1px solid var(--line)}
.aff span{font-size:11.5px}
.aff:hover{transform:none}
.aff-more{margin:28px 0 10px}

/* Affiliate: แสดงเฉพาะโลโก้ ไม่มีชื่อใต้รูป */
.aff-logos{gap:12px}
.aff-tile{gap:0}
@media (max-width:640px){ .aff-logos{gap:10px} }

/* แบรนด์/Affiliate: ไม่มีลิงก์ จึงไม่ต้องมีเอฟเฟกต์ชี้เมาส์ที่ทำให้ดูเหมือนกดได้ */
.aff-tile:hover .aff-icon{transform:none;box-shadow:0 0 0 1px rgba(16,23,19,.06),var(--sh-sm)}
.aff:hover{background:var(--surface)}
.aff:hover span{color:var(--body)}
.brand:hover{transform:none;box-shadow:var(--sh-sm)}

/* ==========================================================================
   Affiliate: แสดงโลโก้แบบไม่มีกรอบกล่อง (logo wall)
   - พื้นส่วนนี้เป็นสีพื้นหลักของเว็บ และใช้ multiply ให้พื้นขาวของไฟล์ JPG กลืนไป
   - โลโก้ที่เป็นสี่เหลี่ยมมีพื้นสีในตัว (fit: 'cover') แสดงเป็นรูปมุมมนเล็กน้อย
   - โหมดมืด: พื้นขาวของไฟล์กลืนกับพื้นมืดไม่ได้ จึงคงแผ่นรองสีขาวไว้เพื่อให้อ่านออก
   ========================================================================== */
#affiliates{background:var(--ground)}
.aff-logos{grid-template-columns:repeat(auto-fill,104px);gap:22px 20px;justify-content:start}
.aff-tile{width:104px}
.aff-icon,
.aff-tile:hover .aff-icon{
  width:100%;height:64px;aspect-ratio:auto;border-radius:0;
  background:transparent;box-shadow:none;transform:none;
  display:flex;align-items:center;justify-content:center;overflow:visible;
}
.aff-icon img{
  width:auto;height:auto;max-width:100%;max-height:100%;
  object-fit:contain;padding:0;mix-blend-mode:multiply;
}
.aff-icon.fit-cover{background:transparent}
.aff-icon.fit-cover img{
  width:60px;height:60px;max-width:none;max-height:none;
  object-fit:cover;border-radius:12px;mix-blend-mode:normal;
}
@media (max-width:640px){
  .aff-logos{grid-template-columns:repeat(auto-fill,84px);gap:16px 14px}
  .aff-tile{width:84px}
  .aff-icon,.aff-tile:hover .aff-icon{height:52px}
  .aff-icon.fit-cover img{width:48px;height:48px;border-radius:10px}
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .aff-icon:not(.fit-cover){background:#fff;border-radius:10px;padding:6px 8px}
  :root:not([data-theme="light"]) .aff-icon img{mix-blend-mode:normal}
}
:root[data-theme="dark"] .aff-icon:not(.fit-cover){background:#fff;border-radius:10px;padding:6px 8px}
:root[data-theme="dark"] .aff-icon img{mix-blend-mode:normal}

/* Affiliate logo wall: กระชับขึ้นเมื่อมีโลโก้จำนวนมาก */
.aff-logos{grid-template-columns:repeat(auto-fill,88px);gap:14px 14px}
.aff-tile{width:88px}
.aff-icon,.aff-tile:hover .aff-icon{height:50px}
.aff-icon.fit-cover img{width:48px;height:48px;border-radius:10px}
@media (max-width:640px){
  .aff-logos{grid-template-columns:repeat(auto-fill,72px);gap:12px 10px}
  .aff-tile{width:72px}
  .aff-icon,.aff-tile:hover .aff-icon{height:42px}
  .aff-icon.fit-cover img{width:40px;height:40px;border-radius:9px}
}

/* ==========================================================================
   รอบปรับ: หน้าปกกราฟิก · แบรนด์ 4 ใบ (เพิ่ม Wilson) · ย่อรูปบริษัท/สาขา
   ========================================================================== */

/* หน้าปก: กราฟิกสนามเทนนิส */
.hero-art svg.court-art{width:100%;max-width:400px;height:auto;overflow:visible}

/* การ์ดแบรนด์ 4 ใบ */
.brands{grid-template-columns:repeat(4,1fr);gap:18px}
.brand{padding:28px 24px 24px}
.sole-badge.sub{color:var(--optic)}
@media (max-width:1100px){ .brands{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .brands{grid-template-columns:1fr} }

/* รูปสำนักงาน (เกี่ยวกับเรา): ย่อลง ไม่เต็มความกว้าง */
#about .pic.wide{max-width:560px;margin-top:36px}

/* การ์ดสาขา: 4 ใบต่อแถว รูปเล็กลง */
.loc-grid{grid-template-columns:repeat(4,1fr);gap:18px}
.loc{padding:22px 20px;gap:8px}
.loc-media{margin:-22px -20px 8px;aspect-ratio:16/11}
.loc h3{font-size:16px}
.loc address,.loc-phone a{font-size:13.5px}
@media (max-width:1100px){ .loc-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .loc-grid{grid-template-columns:1fr} }

/* ==========================================================================
   แคตตาล็อกสินค้า (catalog.js)
   ========================================================================== */
.cat-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:-8px 0 34px}
.cat-tab{
  display:inline-flex;align-items:center;gap:10px;cursor:pointer;
  padding:10px 16px 10px 18px;border-radius:var(--r-pill);
  background:var(--surface);border:1px solid var(--line);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.cat-tab img{height:24px;width:auto;max-width:130px;object-fit:contain;mix-blend-mode:multiply}
.cat-tab:hover{border-color:var(--court);transform:translateY(-1px)}
.cat-tab.on{border-color:var(--court);box-shadow:0 0 0 3px var(--court-soft)}
.cat-count{
  font-size:11.5px;font-weight:600;min-width:24px;height:22px;padding:0 7px;border-radius:var(--r-pill);
  display:inline-flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--muted);
}
.cat-tab.on .cat-count{background:var(--court);color:#fff}

.cat-group{font-size:17px;margin:34px 0 14px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.cat-group:first-child{margin-top:0}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}

.pcat{background:var(--surface);border-radius:var(--r);overflow:hidden;box-shadow:var(--sh-sm);display:flex;flex-direction:column}
.pcat-img{background:#fff;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;padding:14px;border-bottom:1px solid var(--line-soft)}
.pcat-img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.pcat-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:5px;flex:1}
.pcat-code{font-size:11.5px;font-weight:600;letter-spacing:.06em;color:var(--court)}
.pcat h4{font-size:16px;line-height:1.3;font-weight:600}
.pcat-sub{font-size:13.5px;color:var(--body)}
.pcat-desc{font-size:13px;color:var(--muted);line-height:1.6;margin-top:2px}
.pcat-specs{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:12.5px;color:var(--muted)}
.pcat-price{margin-top:auto;padding-top:10px;font-size:18px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.pcat-vars{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:0;margin-top:auto}
.pcat-vars li{display:flex;align-items:flex-start;gap:9px;padding:9px 0;border-top:1px solid var(--line-soft);font-size:13px}
.pcat-vars .sw{width:11px;height:11px;border-radius:var(--r-pill);flex-shrink:0;margin-top:5px}
.pcat-vars .v-main{flex:1;min-width:0;color:var(--body)}
.pcat-vars .v-main b{color:var(--ink);font-weight:600}
.pcat-vars small{display:block;font-size:11.5px;color:var(--muted);margin-top:1px}
.pcat-vars .v-price{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.ask{font-size:12.5px;font-weight:500;color:var(--optic)}

.cat-foot{margin-top:30px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.cat-foot p{font-size:13px;color:var(--muted);max-width:60ch}

@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .cat-tab{background:#fff} }
:root[data-theme="dark"] .cat-tab{background:#fff}
@media (max-width:640px){
  .cat-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .pcat-body{padding:12px 12px 14px}
  .pcat h4{font-size:14.5px}
  .pcat-desc{display:none}
  .cat-tab{padding:8px 12px}
  .cat-tab img{height:20px;max-width:100px}
}

/* ---------- Hero: แถวโลโก้ชินโฮลดิ้ง + การ์ตูนลายเส้นสีขาว (บรรทัดเดียวกัน) ---------- */
.hero-top{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:-28px}
.hero-top .holding{margin-bottom:0}
.hero-mascot{height:120px;width:auto;opacity:.92;flex:none}
.hero-in.solo{grid-template-columns:1fr}
@media (max-width:980px){.hero-top{margin-bottom:-14px}}
/* มือถือ: คำอธิบาย Importer & Distributor ลงไปอยู่ใต้โลโก้ชินโฮลดิ้ง */
@media (max-width:560px){.hero-mascot{height:80px}.hero-top{gap:12px}.hero-top .holding.has-logo{flex-direction:column;align-items:flex-start;gap:10px;padding:0;background:none;border:0;border-radius:0}}
