
:root{
  --bg:#080a0d;--panel:#0f1216;--panel2:#15191e;--line:#252b32;
  --text:#f4f5f7;--muted:#9aa3ad;--red:#e11622;--red2:#ff343f;
  --orange:#ff5a1f;--blue:#1877f2;--max:1440px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,"Noto Sans Thai",sans-serif;line-height:1.55}
a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}
.nav{height:78px;position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:32px;padding:0 max(24px,calc((100vw - var(--max))/2));background:rgba(8,10,13,.9);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.06)}
.brand img{width:132px;height:58px;object-fit:contain;background:#fff;border-radius:8px;padding:4px}
.navlinks{display:flex;gap:28px;margin-left:auto}.navlinks a{font-size:14px;color:#d8dce1}.navlinks a:hover{color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:8px;border:1px solid transparent;font-weight:700;cursor:pointer;transition:.2s}
.btn-sm{min-height:42px;padding:0 18px;font-size:14px}.btn-primary{background:linear-gradient(135deg,var(--red),#b60812);color:white}.btn-primary:hover{transform:translateY(-1px);filter:brightness(1.08)}
.btn-outline{border-color:#5c6671;background:rgba(255,255,255,.03)}.btn-outline:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.is-disabled{opacity:.45;pointer-events:none;filter:grayscale(.5)}
.hero{min-height:720px;max-width:var(--max);margin:auto;display:grid;grid-template-columns:1.03fr .97fr;align-items:center;padding:72px 24px 58px;position:relative;overflow:hidden}
.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 77% 33%,rgba(225,22,34,.16),transparent 34%),linear-gradient(120deg,rgba(255,255,255,.025),transparent 50%);pointer-events:none}
.hero-copy{position:relative;z-index:2;max-width:700px}.eyebrow{margin:0 0 12px;color:#ff4b53;letter-spacing:.16em;font-size:12px;font-weight:800}
h1{font-size:clamp(42px,5.4vw,78px);line-height:1.04;margin:0 0 20px;letter-spacing:-.04em}h2{font-size:clamp(30px,3.6vw,48px);line-height:1.1;margin:0;letter-spacing:-.03em}
.hero-subtitle{font-size:19px;color:#bcc3ca;max-width:610px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.hero-facts{display:flex;gap:28px;margin-top:46px;color:#8f98a2;font-size:11px;letter-spacing:.12em}
.hero-visual{position:relative;min-height:550px;display:flex;align-items:center;justify-content:center}.hero-visual img{width:min(720px,110%);max-height:600px;object-fit:contain;transform:rotate(-7deg);filter:drop-shadow(0 40px 35px rgba(0,0,0,.55));border-radius:24px}
.hero-glow{position:absolute;width:70%;height:55%;border-radius:50%;background:#b90e19;filter:blur(90px);opacity:.28}.hero-badge{position:absolute;right:18px;bottom:22px;background:rgba(8,10,13,.82);border:1px solid #30363d;padding:14px 18px;border-radius:10px;display:flex;flex-direction:column}.hero-badge strong{font-size:18px}.hero-badge span{color:#9fa7af;font-size:12px}
.trustbar{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);max-width:var(--max);margin:auto}.trustbar div{padding:24px;border-right:1px solid var(--line)}.trustbar strong,.trustbar span{display:block}.trustbar span{color:var(--muted);font-size:13px;margin-top:4px}
.section{max-width:var(--max);margin:auto;padding:96px 24px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:36px}.section-head>p{max-width:520px;color:var(--muted);margin:0}.compact{margin-bottom:28px}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.product-card{background:linear-gradient(180deg,#15191e,#0d0f12);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:.25s}.product-card:hover{transform:translateY(-5px);border-color:#4a535d}.product-card img{width:100%;height:330px;object-fit:cover;display:block}.product-body{padding:20px}.product-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.product-card h3{font-size:24px;margin:0}.pill{font-size:11px;padding:5px 8px;border:1px solid #3c444d;border-radius:99px;color:#bfc6cd}.product-card p{color:#a9b1b9;min-height:50px}.product-actions{display:flex;gap:8px;flex-wrap:wrap}.product-actions .btn{min-height:40px;padding:0 13px;font-size:13px}
.finder{background:linear-gradient(135deg,#11151a,#0b0e12);border:1px solid var(--line);border-radius:16px;margin-top:30px;padding:48px 28px}.finder-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:12px;align-items:end}.finder-grid label{font-size:12px;color:#b9c0c7}.finder-grid select{width:100%;height:48px;margin-top:7px;background:#f1f3f5;color:#14171a;border:0;border-radius:8px;padding:0 12px}.finder-note{margin-top:15px;padding:14px;border-radius:8px;background:#171b20;color:#c9cfd5}
.usage-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.usage-grid article{min-height:170px;border:1px solid var(--line);border-radius:12px;padding:22px;background:#0f1216}.usage-grid span{font-size:34px;color:#3c434b;font-weight:900}.usage-grid h3{margin:22px 0 8px}.usage-grid p{margin:0;color:var(--muted);font-size:14px}
.why{border-top:1px solid var(--line)}.why-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:38px}.why-grid div{padding:22px;border-left:1px solid var(--line);display:flex;flex-direction:column}.why-grid b{color:var(--red2);font-size:13px}.why-grid strong{font-size:19px;margin:12px 0 3px}.why-grid span{color:var(--muted);font-size:14px}
.closing{max-width:var(--max);margin:0 auto 50px;background:radial-gradient(circle at 90% 20%,rgba(225,22,34,.3),transparent 35%),#111419;border:1px solid #2c333b;border-radius:18px;padding:48px;display:flex;justify-content:space-between;align-items:center;gap:30px}.closing>div:first-child{max-width:800px}.closing h2{font-size:36px}.closing p{color:#aeb5bd}.closing-actions{display:flex;gap:10px;flex-wrap:wrap}
footer{max-width:var(--max);margin:auto;border-top:1px solid var(--line);padding:34px 24px 52px;display:grid;grid-template-columns:130px 1fr auto;align-items:center;gap:22px;color:#9ca4ad;font-size:13px}footer img{width:120px;height:64px;object-fit:contain;background:#fff;border-radius:8px;padding:4px}footer strong{color:#fff}
.floating{position:fixed;right:18px;bottom:18px;display:flex;flex-direction:column;gap:10px;z-index:25}.float-btn{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-weight:900;box-shadow:0 10px 25px rgba(0,0,0,.35)}.messenger{background:var(--blue)}
dialog{width:min(1060px,calc(100% - 32px));background:#0e1115;color:#fff;border:1px solid #323941;border-radius:16px;padding:0;box-shadow:0 30px 90px #000}dialog::backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:12px;top:10px;width:38px;height:38px;border-radius:50%;border:1px solid #424a53;background:#11161b;color:#fff;font-size:24px;cursor:pointer}.dialog-layout{display:grid;grid-template-columns:1fr 1fr;gap:0}.dialog-layout>img{width:100%;height:100%;min-height:590px;object-fit:cover}.dialog-layout>div{padding:50px 38px}.dialog-layout h2{margin-bottom:8px}.dialog-tagline{font-size:18px;color:#c8ced4}.specs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.specs span{padding:8px 11px;border-radius:7px;background:#171c22;border:1px solid #2d353e;font-size:12px}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.link-note{font-size:12px;color:#7f8993}
@media(max-width:980px){.navlinks{display:none}.hero{grid-template-columns:1fr;padding-top:46px}.hero-visual{min-height:460px}.trustbar{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:1fr 1fr}.finder-grid{grid-template-columns:1fr 1fr}.usage-grid{grid-template-columns:1fr 1fr}.why-grid{grid-template-columns:1fr 1fr}.closing{flex-direction:column;align-items:flex-start}}
@media(max-width:640px){.nav{height:68px;padding:0 14px}.brand img{width:96px;height:48px}.nav>.btn{margin-left:auto;font-size:12px;padding:0 12px}.hero{padding:36px 16px 34px}.hero-visual{min-height:350px}.hero-facts{display:none}.hero-actions .btn{width:100%}.trustbar{grid-template-columns:1fr}.trustbar div{border-right:0;border-bottom:1px solid var(--line)}.section{padding:68px 16px}.section-head{display:block}.section-head>p{margin-top:14px}.product-grid{grid-template-columns:1fr}.product-card img{height:300px}.finder{border-radius:0;margin-top:0}.finder-grid,.usage-grid,.why-grid{grid-template-columns:1fr}.closing{margin:0 16px 38px;padding:30px 22px}.closing-actions,.closing-actions .btn{width:100%}footer{grid-template-columns:1fr}.dialog-layout{grid-template-columns:1fr}.dialog-layout>img{min-height:300px;height:300px}.dialog-layout>div{padding:30px 20px}.floating{right:12px;bottom:12px}}

/* ===== V1.1 additions ===== */
.product-image-link{display:block;overflow:hidden}.product-image-link img{transition:transform .3s ease}.product-card:hover .product-image-link img{transform:scale(1.025)}
.vehicle-section{border-top:1px solid var(--line)}
.vehicle-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.vehicle-card{background:#0e1115;border:1px solid var(--line);border-radius:14px;overflow:hidden}.vehicle-card> a{display:block}.vehicle-card img{width:100%;height:330px;object-fit:cover;display:block}.vehicle-card-body{padding:22px}.vehicle-card h3{font-size:28px;margin:0 0 8px}.vehicle-card p{color:var(--muted)}.vehicle-chips{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 20px}.vehicle-chips a{padding:6px 10px;border:1px solid #343c45;border-radius:99px;font-size:12px}.vehicle-chips a:hover{border-color:#fff}
.finder-grid.v11{grid-template-columns:1fr 1fr 1fr auto}.finder-note a{color:#ff626a;text-decoration:underline}
.detail-page,.vehicle-detail-page{max-width:var(--max);margin:auto}.detail-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:54px;align-items:center;padding:64px 24px 34px;min-height:720px}.detail-gallery{min-width:0}.detail-main-image{height:560px;background:#0e1115;border:1px solid var(--line);border-radius:16px;overflow:hidden}.detail-main-image img{width:100%;height:100%;object-fit:contain}.thumbs{display:flex;gap:10px;margin-top:12px;overflow-x:auto;padding-bottom:4px}.thumbs button{flex:0 0 92px;height:76px;padding:0;border:2px solid transparent;border-radius:8px;background:#0e1115;overflow:hidden;cursor:pointer}.thumbs button.active{border-color:var(--red2)}.thumbs img{width:100%;height:100%;object-fit:cover}.detail-copy h1{font-size:clamp(48px,6vw,82px);margin:0 0 12px}.lead{font-size:20px;color:#c1c8cf}.detail-description{color:#aeb6be;font-size:16px}.detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.specs.large{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.specs.mini{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.specs span,.info-pills span{padding:8px 11px;border:1px solid #303842;border-radius:7px;background:#11161b;font-size:12px}.product-info-section{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.info-columns{display:grid;grid-template-columns:1fr 1fr;gap:30px}.info-columns h2{font-size:30px;margin-bottom:18px}.info-pills{display:flex;gap:8px;flex-wrap:wrap}.compact-cards .vehicle-card img{height:250px}
.vehicle-detail-hero{display:grid;grid-template-columns:.75fr 1.25fr;align-items:center;gap:30px;min-height:610px;padding:50px 24px;background:radial-gradient(circle at 80% 50%,rgba(225,22,34,.12),transparent 38%)}.vehicle-detail-copy h1{font-size:clamp(42px,5vw,70px);margin:0 0 14px}.vehicle-detail-image img{width:100%;max-height:560px;object-fit:contain;border-radius:16px}.vehicle-product-grid .product-card img{height:290px}
@media(max-width:980px){.vehicle-grid{grid-template-columns:1fr}.finder-grid.v11{grid-template-columns:1fr 1fr}.detail-hero,.vehicle-detail-hero{grid-template-columns:1fr}.detail-main-image{height:480px}.vehicle-detail-image{order:-1}.info-columns{grid-template-columns:1fr}}
@media(max-width:640px){.vehicle-card img{height:220px}.finder-grid.v11{grid-template-columns:1fr}.detail-hero{padding:34px 16px}.detail-main-image{height:340px}.detail-copy h1{font-size:46px}.vehicle-detail-hero{padding:30px 16px}.vehicle-detail-image img{max-height:360px}}

/* ===== V1.3 Go-Live additions ===== */
[hidden]{display:none!important}.btn-line{background:#06c755;color:#fff;border-color:#06c755}.btn-line:hover{filter:brightness(1.05)}button.btn{font:inherit}.float-btn.line{border:0;background:#06c755;color:#fff;font-size:10px;cursor:pointer}.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:90;background:#171c22;color:#fff;border:1px solid #3b444e;border-radius:9px;padding:12px 18px;box-shadow:0 10px 30px #0008}.contact-note{margin-top:18px;color:#7f8993;font-size:12px}

.float-btn.shopee{background:#ee4d2d;color:#fff;border:0}

/* ===== V1.3.3 all-systems-toggle additions ===== */
.maintenance-view{min-height:100vh;padding:60px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at 50% 30%,rgba(225,22,34,.15),transparent 35%),#080a0d}
.maintenance-view img{width:170px;max-height:90px;object-fit:contain;background:#fff;border-radius:10px;padding:6px;margin-bottom:28px}
.maintenance-view h1{font-size:clamp(36px,6vw,70px);margin:0 0 12px}.maintenance-view>p{color:#aeb6be}.maintenance-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}


/* ===== V1.3.4 PRODUCT PAGE POLISH ===== */
/* ป้องกันชื่อไทย เช่น "หูก้าม" ถูกตัดกลางคำ */
.detail-copy h1{
  max-width:100%;
  overflow-wrap:normal;
  word-break:keep-all;
  line-break:auto;
  font-size:clamp(44px,5vw,72px);
  line-height:1.02;
}
.detail-copy h1 .title-token{
  display:inline-block;
  white-space:nowrap;
}
.detail-copy h1.title-medium{font-size:clamp(42px,4.5vw,66px)}
.detail-copy h1.title-long{font-size:clamp(36px,4vw,58px)}

/* ทำปุ่ม Shopee ให้เห็นชัดว่าเป็นปุ่มออกไปซื้อภายนอก */
.btn-shopee{
  background:#ee4d2d;
  border:1px solid #ee4d2d;
  color:#fff;
  font-weight:700;
}
.btn-shopee:hover{filter:brightness(1.06)}
.btn-shopee.is-disabled{
  opacity:.42;
  pointer-events:none;
  filter:grayscale(.25);
}

@media(max-width:640px){
  .detail-copy h1{font-size:42px}
  .detail-copy h1.title-medium{font-size:38px}
  .detail-copy h1.title-long{font-size:34px}
  .detail-actions .btn{width:100%;justify-content:center}
}


/* =========================================================
   V1.3.7 PUBLIC MOBILE POLISH
   Keeps desktop layout unchanged; optimizes phone screens.
   ========================================================= */

@media(max-width:640px){
  /* Header */
  .nav{
    min-height:104px;
    padding:12px 14px;
    gap:10px;
  }
  .brand img{
    width:142px;
    max-height:76px;
  }
  .nav>.btn{
    min-height:54px;
    padding:12px 16px;
    font-size:16px;
  }

  /* Hero becomes significantly shorter on mobile */
  .hero{
    min-height:auto;
    grid-template-columns:1fr;
    padding:44px 20px 18px;
    gap:22px;
  }
  .hero-copy{
    padding:0;
  }
  .hero .eyebrow{
    font-size:11px;
    letter-spacing:.18em;
    line-height:1.5;
    margin-bottom:14px;
  }
  .hero h1{
    font-size:clamp(42px,12.5vw,52px);
    line-height:1.02;
    letter-spacing:-.035em;
    margin-bottom:18px;
  }
  .hero-subtitle{
    font-size:20px;
    line-height:1.52;
    margin-bottom:22px;
  }
  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .hero-actions .btn{
    width:100%;
    min-height:58px;
    padding:13px 16px;
    font-size:17px;
  }
  .hero-facts{
    margin-top:18px;
    gap:8px 12px;
    font-size:9px;
  }

  /* Make the product image appear sooner */
  .hero-visual{
    min-height:320px;
    margin-top:4px;
  }
  .hero-visual>img{
    max-height:360px;
    object-fit:contain;
  }

  /* If there is no valid Shopee URL, hide it rather than showing a disabled brown CTA */
  body:not(.shopee-ready) #heroShopee,
  body:not(.shopee-ready) #closingShopee,
  body:not(.shopee-ready) #floatShopee{
    display:none!important;
  }

  /* One compact floating contact button on mobile.
     Messenger is the primary floating action; LINE/Shopee remain available as normal CTAs. */
  .floating{
    right:14px;
    bottom:18px;
    gap:0;
  }
  .floating .float-btn{
    display:none!important;
  }
  .floating #floatMessenger:not(.is-disabled){
    display:grid!important;
    place-items:center;
    width:58px;
    height:58px;
    min-width:58px;
    border-radius:50%;
    font-size:23px;
    box-shadow:0 12px 28px rgba(0,0,0,.38);
  }

  /* Reduce section spacing for faster browsing */
  .section{
    padding-top:54px;
    padding-bottom:54px;
  }
  .section-head{
    gap:12px;
    margin-bottom:24px;
  }
  .section-head h2{
    font-size:32px;
    line-height:1.12;
  }

  /* Contact/closing section */
  .closing{
    padding:44px 20px;
    gap:22px;
  }
  .closing h2{
    font-size:34px;
    line-height:1.12;
  }
  .closing-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .closing-actions .btn{
    width:100%;
    min-height:56px;
  }
}

@media(max-width:380px){
  .hero h1{
    font-size:40px;
  }
  .hero-subtitle{
    font-size:18px;
  }
  .brand img{
    width:132px;
  }
}
