/* GLOBAL: Variables & Bootstrap overrides*/
:root{

  --font-primary: "CMU","Noto Sans Thai",system-ui,sans-serif;
  --font-secondary: "CMU","Noto Sans Thai",system-ui,sans-serif;
  --font-heading: "CMU","Noto Sans Thai",system-ui,sans-serif;

  --brand-color:#ff4545;
  --text-color:#424245;
  --bs-body-color:#424245;
  --bs-emphasis-color:#424245;
  --bs-emphasis-color-rgb:66,66,69;
  --text-secondary:#555;

  --carousel-arrow:#6c757d;

  --w-light:300;
  --w-regular:400;
  --w-bold:700;

  --btn-blue:#0d6efd;
  --btn-blue-hover:#0b5ed7;
  --btn-blue-ring:rgba(13,110,253,.25);

  --bs-font-sans-serif:"CMU","Noto Sans Thai",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --bs-body-font-family:var(--bs-font-sans-serif);
  --bs-btn-font-family:var(--bs-body-font-family);
}


/*GLOBAL: Headings & Paragraphs*/
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-heading);
  font-weight:var(--w-regular);
  line-height:1.15;
  color:var(--text-color);
  margin:0 0 .5rem 0;
}
h1{ font-size:clamp(2.25rem,5vw,3.5rem); }
h2{ font-size:clamp(1.875rem,3.75vw,2.5rem); }
h3{ font-size:clamp(1.5rem,3vw,2rem); }
h4{ font-size:clamp(1.25rem,2.5vw,1.5rem); }
h5{ font-size:clamp(1.125rem,2vw,1.25rem); }
h6{ font-size:1rem; }

p{
  font-family:var(--font-primary);
  font-weight:var(--w-light);
  font-size:1.125rem;
  line-height:1.7;
  color:var(--text-secondary);
  margin:0 0 1rem;
}
@media (min-width:768px){ p{ font-size:1.1875rem; } }
@media (min-width:1200px){ p{ font-size:1.25rem; } }


/*GLOBAL: Typography utilities*/
.p-sm{font-size:.9375rem;}
.p-base{font-size:1rem;}
.p-lg{font-size:1.125rem;}
.p-xl{font-size:1.25rem;}
.lh-150{line-height:1.5;}
.lh-180{line-height:1.8;}
.text-body{color:var(--text-color)!important;}
.text-muted-2{color:var(--text-secondary)!important;}

.navbar-brand, h1.brand-en{
  font-family:var(--font-secondary);
  font-weight:var(--w-light);
  letter-spacing:.2px;
}

.fw-300{font-weight:300!important;}
.fw-400{font-weight:400!important;} 
.fw-700{font-weight:700!important;}


/*GLOBAL: Buttons*/
.btn-primary{
  background-color:transparent;
  color:var(--btn-blue);
  border:1px solid var(--btn-blue);
  padding:.5rem 1rem;
  border-radius:.5rem;
  transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;
}
.btn-primary:hover,
.btn-primary:focus{
  background-color:var(--btn-blue);
  color:#fff;
  border-color:var(--btn-blue-hover);
  box-shadow:0 0 0 .2rem var(--btn-blue-ring);
}
.btn-primary:active{
  background-color:var(--btn-blue-hover);
  border-color:var(--btn-blue-hover);
}
.btn-outline-primary{ color:var(--btn-blue); border-color:var(--btn-blue); }
.btn-outline-primary:hover{ background-color:var(--btn-blue); color:#fff; border-color:var(--btn-blue); }


/*GLOBAL: Navbar*/
.navbar-brand{
  font-family:var(--font-secondary)!important;
  font-weight:var(--w-regular);
}
.navbar .navbar-nav .nav-link{
  font-family:var(--font-secondary)!important;
  font-weight:var(--w-regular);
  font-size:1.25rem;
  padding-block:.625rem;
  color:#515154;
  transition:color .3s, background-color .2s;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .show > .nav-link{ color:var(--brand-color); }
.navbar .dropdown-item{
  font-family:var(--font-secondary)!important;
  font-weight:var(--w-regular);
  font-size:1.0625rem;
  padding-block:.5rem;
}
.navbar .dropdown-item:hover{ color:var(--brand-color); }
.navbar-toggler{ padding:.375rem .5rem; }
/* .navbar ล้าง padding ของคอลัมน์ -> คืนระยะขอบให้โลโก้และปุ่มตรงแนวกับเนื้อหา */
.site-header{ padding-inline:.75rem; }

/* ปุ่มติดต่อ: ใช้แดงเข้มกว่า --brand-color เพื่อให้ตัวอักษรขาวอ่านชัด (contrast > 4.5:1) */
.nav-contact-pill,
.navbar .navbar-nav .nav-link.nav-contact-pill{
  display:inline-block;
  flex:0 0 auto;
  padding:.5rem 1.125rem;
  border-radius:999px;
  background:#d93025;
  color:#fff;
  font-size:1rem;
  font-weight:var(--w-bold);
  line-height:1.5;
  text-decoration:none;
  white-space:nowrap;
}
.nav-contact-pill:hover,
.nav-contact-pill:focus,
.navbar .navbar-nav .nav-link.nav-contact-pill:hover,
.navbar .navbar-nav .nav-link.nav-contact-pill:focus{
  background:#b3261e;
  color:#fff;
}
/* ในเมนูแบบเลื่อนออกข้าง ปุ่มไม่ควรยืดเต็มความกว้าง */
.offcanvas .nav-item:has(> .nav-contact-pill){ align-self:flex-start; margin-top:.5rem; }

@media (max-width:991.98px){
  .navbar-brand img{ width:64px; height:64px; }
}
/* จอกว้าง: เมนูอยู่ในแถบแนวนอน จึงลดขนาดตัวอักษรจากแบบ offcanvas */
@media (min-width:992px){
  .navbar .navbar-nav .nav-link{ font-size:1.0625rem; padding-inline:.875rem; font-weight:var(--w-light); }
  .navbar .navbar-nav .nav-link.nav-contact-pill{ font-size:1rem; padding:.375rem 1.125rem; font-weight:var(--w-bold); margin-left:.25rem; }
  .navbar .dropdown-item{ font-size:1rem; font-weight:var(--w-light); }
  .offcanvas .nav-item:has(> .nav-contact-pill){ align-self:auto; margin-top:0; }
}


/*GLOBAL: คุมสีตัวอักษรเข้มให้เท่ากัน (Bootstrap กำหนดสีดำแยกไว้ในจุดเหล่านี้) */
.link-dark,
.link-dark:hover,
.link-dark:focus{ color:var(--text-color)!important; }
.table-light{ --bs-table-color:var(--text-color); }


/*GLOBAL: Misc utilities*/
.minh-400{ min-height:400px; }            


/* COMPONENT (OLD): hero-card (reference only)*/
/*
.hero-card{ 
  --hero-h:400px; 
  min-height:var(--hero-h); 
}
*/


/* COMPONENT: Generic hero image (main hero section)*/
.hero-img{
  display:block;
  margin:0 auto;
  max-height:300px;
  width:auto;
  max-width:100%;
  object-fit:contain;
}
@media (min-width:992px){
  .hero-img{ max-height:500px; }
}


/*COMPONENT: Image wrapper for product detail*/
#image-wrap{
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 60dvh;
  overflow: hidden;
  background: var(--bs-body-tertiary);
  border-radius: var(--bs-border-radius-xl, 1rem);
}
#product-img{
  display:block;
  position:absolute; 
  inset:0;
  width:100%; 
  height:100%;
  object-fit:cover;   
  object-position:center;
}


/*COMPONENT: Option card (radio-like cards)*/
.option-card{
  --ring: rgba(13,110,253,.2);
  border:1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  transition: border-color .15s, box-shadow .15s, background .15s;
  cursor: pointer;
}
.btn-check:checked + .option-card{
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 .25rem var(--ring);
  background: var(--bs-light);
}
.option-card:hover{
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}
.btn-check:focus + .option-card,
.btn-check:focus-visible + .option-card{
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  .option-card{ transition: none; }
}


/*  PAGE: Rubber Brake – size list in cards*/
.product-size {
  min-height: 160px;           
  display: flex;
  flex-direction: column;
  justify-content: center;     
}


/*  SECTION: Product hero cards (SMART 4.0, คู่ปั่น, กันกระแทก, ยางขัดข้าว)*/
.hero-card{
  min-height: 360px;          /* base height on desktop */
  display: flex;
  flex-direction: column;
}

/* Image area at the bottom of hero-card */
.hero-card-img{
  margin-top: auto;           /* push image block to bottom */
  height: 360px;              /* same scale for all cards */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;           /* กันรูปล้นออกนอกกล่องไปทับหัวข้อ/ลิงก์ */
}

.hero-card-img img{
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* <picture> ที่ครอบ <img> ต้องไม่สร้างกล่องของตัวเอง
   เพื่อให้ <img> ใช้ CSS เดิมต่อทุกหน้า (กันรูปขยายผิดขนาด/ล้นทับเนื้อหา) */
picture{
  display: contents;
}


/* RESPONSIVE: Tablet layout (iPad 768–991.98px)*/
@media (min-width:768px) and (max-width:991.98px){

  /* ลดความสูงของการ์ดให้สมส่วนบนจอ tablet */
  .hero-card{
    min-height: 220px;
  }

  /* กรอบรูปด้านล่างให้เตี้ยลงตามการ์ด */
  .hero-card-img{
    height: 220px;
  }

  /* ย่อหัวข้อให้เล็กลงเล็กน้อย */
  .hero-card h2.display-4{
    font-size: 2.25rem;
  }

  /* ย่อข้อความคำอธิบาย */
  .hero-card .lead{
    font-size: 1.05rem;
  }
}

/* RFB page */
.card-1{
  --bs-card-border-radius: 18px;   /* ปรับมุมการ์ด */
  border-radius: var(--bs-card-border-radius) !important;
  overflow: hidden;
}

/* TQRB page */
/* กล่องรูป: ให้ overlay อิงกับกล่องนี้ + เปิด cqw */
/* ===================== TQRB: Photo + Overlay Labels (Drop-in) ===================== */

.photo{
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 18px;
  container-type: inline-size;
}

.photo__img{
  width: 100%;
  height: auto;
  display: block;
}

.photo__overlay{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ✅ ตั้ง “ฐานฟอนต์” ที่ label แล้วลูกใช้ em */
.photo .label{
  position: absolute;
  left: var(--x);
  top:  var(--y);
  transform: translate(-50%, -50%);
  text-align: center;

  font-size: clamp(8px, 2.8cqw, 13px) !important;

  max-width: 46%;
  /* ❌ อย่าใช้ anywhere ถ้าไม่อยากให้คำไทยแตกกลางคำ */
  overflow-wrap: normal;
  word-break: normal;

  color: rgba(0,0,0,.90);
  text-shadow: 0 6px 18px rgba(0,0,0,.10);
}

.photo .label__top{
  display: block;
  font-size: 1em !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

.photo .label__big{
  display: block;
  font-size: 2.2em !important;
  font-weight: 800 !important;
  line-height: 0.95 !important;
  margin: 0 !important;
}

/* ===== จูนฝั่งขวา ===== */
/* ขวาบนยังให้แคบได้ เพราะตั้งใจหลายบรรทัด */
.photo .label-right-top{
  max-width: 34% !important;
  transform: translate(-60%, -50%) !important;
}
.photo .label-right-top .label__big{
  font-size: 1.85em !important;
}

/* ✅ ขวาล่าง: ให้ “กบแดง” เป็นคำเดียว ไม่แตกบรรทัด */
.photo .label-right-bottom{
  max-width: 40% !important;                 /* ขยายพื้นที่ให้พอ */
  transform: translate(-60%, -50%) !important;
}
.photo .label-right-bottom .label__big{
  white-space: nowrap;                       /* กันแตกบรรทัด */
}

/* ✅ มือถือเล็กมาก ลดฐานลงอีก */
@container (max-width: 420px){
  .photo .label{
    font-size: clamp(7px, 2.4cqw, 11px) !important;
  }
  .photo .label__big{
    font-size: 2.0em !important;
  }
  .photo .label-right-top .label__big{
    font-size: 1.65em !important;
  }
  .photo .label-right-bottom{
    max-width: 46% !important;               /* มือถือให้กว้างขึ้นอีกนิด */
  }
}

/* =================== END TQRB =================== */
/* ===== FIX: กันคำไทยแตกกลางคำ + จูนฟอนต์มือถือ (วางท้ายสุดของ style.css) ===== */

/* 1) บังคับไม่ให้ตัดคำมั่ว ๆ ใน label (กัน overflow-wrap:anywhere จากที่อื่น) */
.photo .label{
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

/* 2) ขวาล่าง: “กบแดง” ต้องเป็นคำเดียว ไม่แตกบรรทัด */
.photo .label-right-bottom .label__big{
  white-space: nowrap !important;
}

/* 3) ขวาบน: อนุญาตให้แตกบรรทัดได้ (เพราะคุณใส่ <br> เอง) */
.photo .label-right-top .label__big{
  white-space: normal !important;
}

/* 4) มือถือ: ลดฐานฟอนต์ลงอีก และลดขวาบนให้เล็กลง เพื่อไม่ทับรูป */
@container (max-width: 520px){
  .photo .label{
    font-size: clamp(6px, 2.1cqw, 10px) !important;
  }
  .photo .label__big{
    font-size: 2.0em !important;
  }
  .photo .label-right-top .label__big{
    font-size: 1.55em !important;
  }
}

/* 5) มือถือเล็กมาก: เพิ่มพื้นที่ให้ฝั่งขวา กันบีบจนต้องแตกคำ */
@container (max-width: 380px){
  .photo .label-right-top{ max-width: 42% !important; }
  .photo .label-right-bottom{ max-width: 52% !important; }
}


/* ===================== PAGE: Home (app-style layout) ===================== */

/* พื้นเทาอ่อนเฉพาะหน้า Home เพื่อให้การ์ดสีขาวดูนูนขึ้น */
body.home-page{
  background: #f5f5f7;
}

.home-app{
  max-width: 1140px;
}

/* --- การ์ดนูน (ค่าเงา/hover ตามหน้า Apple Store) ใช้ร่วมกันทั้ง promo / product --- */
.promo-card,
.product-card{
  background: #fff;
  box-shadow: 2px 4px 12px rgba(0,0,0,.08);
  transition: transform .3s cubic-bezier(0,0,.5,1), box-shadow .3s cubic-bezier(0,0,.5,1);
}
@media (hover: hover){
  .promo-card:hover,
  .product-card:hover{
    transform: scale(1.01);
    box-shadow: 2px 4px 16px rgba(0,0,0,.16);
  }
}

/* --- ส่วนทักทายด้านบน --- */
.home-hello{
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  line-height: 1.3;
}
.home-name{
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: var(--w-bold);
  color: var(--text-color);
}

/* --- แถวเลื่อนแนวนอน (ใช้ร่วมกันทั้ง promo / product) --- */
.promo-scroller,
.product-row{
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* overflow-x ตัดเงาการ์ดทิ้ง -> เผื่อ padding ให้เงา แล้วดึง margin กลับให้ตรงแนวเดิม */
  padding: .75rem .75rem 2.25rem;
  margin: -.75rem -.75rem 0;
  scroll-padding-inline: .75rem;
  scrollbar-width: none;            /* Firefox */
}
/* จอที่กว้างเกิน .home-app (1140px) มีที่เหลือด้านข้าง -> เผื่อให้เงาตอน hover (กว้างสุด ~18px) ไม่ถูกตัด
   จอแคบกว่านี้ห้ามเกิน gutter 12px ไม่งั้นหน้าเลื่อนออกข้าง */
@media (min-width: 1200px){
  .promo-scroller,
  .product-row{
    padding-inline: 1.25rem;
    margin-inline: -1.25rem;
    scroll-padding-inline: 1.25rem;
  }
}
.promo-scroller::-webkit-scrollbar,
.product-row::-webkit-scrollbar{
  display: none;                    /* Chrome/Safari */
}

/* --- การ์ดโปรโมชัน --- */
.promo-card{
  position: relative;
  flex: 0 0 88%;
  scroll-snap-align: start;
  min-height: 440px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px){
  .promo-card{ flex-basis: 60%; }
}
@media (min-width: 992px){
  .promo-card{ flex-basis: calc(50% - .5rem); min-height: 480px; }
}
.promo-body{
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.75rem 0;
}
.promo-brand{
  display: inline-block;
  font-size: .875rem;
  color: var(--text-secondary);
  margin-bottom: .25rem;
}
.promo-title{
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--w-bold);
  color: var(--text-color);
  margin-bottom: .5rem;
}
.promo-text{
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.promo-btn{
  display: inline-block;
  padding: .5rem 1.25rem;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  background: transparent;
  color: var(--text-color);
  font-size: .875rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.promo-btn:hover{
  color: var(--text-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.promo-img{
  flex: 1 1 auto;
  height: 260px;
  padding: .5rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.promo-img img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- หัวข้อ section --- */
.home-section-title{
  font-size: 1.25rem;
  font-weight: var(--w-bold);
  color: var(--text-color);
}

/* --- การ์ดสินค้า --- */
.product-card{
  position: relative;
  flex: 0 0 70%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 1rem;
}
@media (min-width: 576px){
  .product-card{ flex-basis: 44%; }
}
@media (min-width: 992px){
  .product-card{ flex-basis: calc(25% - .75rem); }
}
.product-thumb{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-radius: 14px;
  background: #fff;
  margin-bottom: .75rem;
  overflow: hidden;
}
.product-thumb img{
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform .25s;
}
.product-card:hover .product-thumb img{
  transform: scale(1.05);
}
.product-brand{
  display: block;
  font-size: .8125rem;
  color: var(--text-secondary);
}
.product-name{
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--text-color);
  margin-bottom: .75rem;
}
.product-info{
  flex: 1 1 auto;
}
.product-btn{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .375rem .375rem .375rem 1rem;
  border: 1px solid #e5e5ea;
  border-radius: 999px;
  background: #fff;
  color: var(--text-color);
  font-size: .875rem;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.product-btn:hover{
  color: var(--text-color);
  border-color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.product-btn-plus{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d2d2d7;
  border-radius: 50%;
  background: transparent;
  color: var(--text-color);
  font-size: 1rem;
}

/* --- มือถือ: ลำดับตัวอักษรชัดขึ้น การ์ดกระชับ สินค้าเห็นครบแบบ 2 คอลัมน์ --- */
@media (max-width: 767.98px){
  .home-hello{ font-size: 1.125rem; font-weight: var(--w-regular); }
  .home-name{ font-size: 1.875rem; }
  .home-section-title{ font-size: 1.375rem; margin-bottom: .25rem; }

  .promo-scroller{ padding-bottom: 1.5rem; }
  .promo-card{ flex-basis: 86%; min-height: 0; border-radius: 20px; }
  .promo-body{ padding: 1.25rem 1.25rem 0; }
  .promo-brand{ font-size: .875rem; font-weight: var(--w-regular); }
  .promo-title{ font-size: 1.625rem; }
  .promo-text{
    font-size: 1rem;
    font-weight: var(--w-regular);
    text-wrap: balance;
    margin-bottom: .75rem;
  }
  .promo-btn{ padding: .625rem 1.25rem; font-size: .9375rem; }
  .promo-img{ height: 220px; padding: .5rem 1rem 1.25rem; }

  .product-row{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    overflow: visible;
    padding: .5rem 0 1rem;
    margin: 0;
  }
  .product-card{ padding: .75rem; border-radius: 16px; }
  .product-thumb{ height: 120px; margin-bottom: .5rem; }
  .product-brand{ font-size: .8125rem; font-weight: var(--w-regular); }
  .product-name{ font-size: .9375rem; font-weight: var(--w-regular); }
  .product-btn{ font-size: .875rem; padding: .25rem .25rem .25rem .75rem; }
}

/* ================= END PAGE: Home (app-style layout) ================= */


/* ================= MOBILE: หน้าอื่นนอกจาก Home (ตัวอักษร/ระยะให้เข้าชุดกับ Home) ================= */
@media (max-width: 767.98px){
  /* ใช้ !important เฉพาะจุดที่ต้องทับ utility ของ Bootstrap (.fs-*, .py-*, .text-center ...) */

  /* --- ตัวอักษร --- */
  body:not(.home-page) main h1{
    font-size: 1.875rem !important;
    font-weight: var(--w-bold);
    line-height: 1.2;
    margin-bottom: .75rem !important;
  }
  body:not(.home-page) main h1.display-6,
  body:not(.home-page) main h2{
    font-size: 1.375rem !important;
    font-weight: var(--w-bold);
    line-height: 1.25;
    margin-bottom: .5rem !important;
  }
  body:not(.home-page) main h2.fs-2,
  body:not(.home-page) main h2.fs-4{
    font-size: 1.125rem !important;
  }
  body:not(.home-page) main h3,
  body:not(.home-page) main h4{
    font-size: 1.0625rem !important;
    font-weight: var(--w-bold);
    margin-bottom: .375rem !important;
  }
  body:not(.home-page) main p:not(.small){
    font-size: 1rem !important;
    font-weight: var(--w-regular);
    line-height: 1.65;
  }
  body:not(.home-page) main .list-unstyled{
    font-size: 1rem !important;
    font-weight: var(--w-regular);
  }
  body:not(.home-page) main h1.text-center,
  body:not(.home-page) main h2.text-center,
  body:not(.home-page) main .col-lg-8.text-center{
    text-align: left !important;
  }
  /* ยกเว้นส่วน "สนใจสั่งซื้อ" + ปุ่มติดต่อเรา ให้อยู่กึ่งกลางเหมือนจอใหญ่ */
  body:not(.home-page) main .col-lg-8.text-center.order-cta{
    text-align: center !important;
  }

  /* --- ระยะห่าง --- */
  body:not(.home-page) main section.py-5{ padding-block: 1.5rem !important; }
  body:not(.home-page) main section.mt-5{ margin-top: 1rem !important; }
  body:not(.home-page) main > .container.py-4{ padding-block: .5rem !important; }
  body:not(.home-page) main .mb-5{ margin-bottom: 1.5rem !important; }
  body:not(.home-page) main hr.my-5{ margin-block: 1.5rem !important; }
  body:not(.home-page) main .row.g-5{ --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }

  /* --- ตาราง --- */
  body:not(.home-page) main .table{ font-size: .9375rem; }
  body:not(.home-page) main .table th{ width: 38%; font-weight: var(--w-bold); }
  body:not(.home-page) main .table td{ font-weight: var(--w-regular); }
  body:not(.home-page) main .table > * > * > *{ padding: .625rem; }

  /* --- ลิงก์แพลตฟอร์ม: แตะง่าย และไม่กินความสูงทีละบรรทัด --- */
  .platform-links{
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 0;
  }
  .platform-links a{
    display: inline-block;
    padding: .5rem .875rem;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    color: var(--text-color) !important;
    font-size: .9375rem;
    line-height: 1.4;
  }
  body:not(.home-page) main .card .platform-links{ justify-content: center; }

  /* --- ติดต่อ --- */
  body:not(.home-page) main .col-lg-8 > .p-4{ padding: 0 !important; }
  body:not(.home-page) main a.link-dark{ display: inline-block; padding-block: .375rem; }

  /* --- คู่ปั่นรอบสมดุล: กล่องรอบเร็ว/รอบช้า --- */
  body:not(.home-page) main .h-100.p-5{
    height: auto !important;
    padding: 1.25rem !important;
    margin-bottom: .75rem;
    border-radius: 16px !important;
    background: #f5f5f7;
  }

  /* --- ยางขัดข้าว: หัวเรื่องและการ์ดสินค้า --- */
  body:not(.home-page) main .bg-light.rounded-3{ padding: 1.25rem !important; }
  body:not(.home-page) main .bg-light.rounded-3 > .container-fluid{ padding: 0 !important; }
  body:not(.home-page) main > .container > .container-fluid.py-3{ padding: 0 !important; }
  body:not(.home-page) main .card{ border-radius: 16px; overflow: hidden; }
  body:not(.home-page) main .card img{ height: 240px; object-fit: contain; }
  body:not(.home-page) main .card-body{ padding: 1rem; }
  .product-size{ min-height: 0; }

  /* --- ยางกันกระแทก --- */
  body:not(.home-page) main .option-card{ padding: 1rem !important; }
  body:not(.home-page) main .rounded-4.p-4.mt-4{ padding: 0 !important; }
}

