/* Kanit - โหลดมาเก็บเอง ไม่ดึงจาก Google ตอนเปิดหน้า */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/kanit-thai-400.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/kanit-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/kanit-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/kanit-thai-600.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/kanit-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/kanit-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/kanit-thai-700.woff2') format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/kanit-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/kanit-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ==========================================================================
   Cos Packaging Design — สไตล์ชีตหลัก
   สีและฟอนต์ยกมาจากเว็บเดิม เพื่อให้ลูกค้าเก่าเห็นแล้วยังจำแบรนด์ได้
   ========================================================================== */

:root {
  /* แบรนด์ — เขียวจากโลโก้เดิม */
  --green:        #0F8643;
  --green-dark:   #07562F;
  --green-light:  #61CE70;
  --green-tint:   #F1F9F4;

  /* สีรอง — ชมพูจากปุ่มและหัวข้อเน้นในเว็บเดิม */
  --pink:         #CC3366;

  /* ข้อความ */
  --text:         #2B2B2B;
  --text-soft:    #5C5C5C;
  --text-mute:    #8A8A8A;

  /* พื้นและเส้น */
  --bg:           #FFFFFF;
  --bg-alt:       #F7FAF8;
  --line:         #E4E8E5;
  --line-soft:    #EFF2F0;

  /* ปุ่มติดต่อลอย */
  --tel:          #00AEEF;
  --line-green:   #06C755;

  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 1px 2px rgba(0,0,0,.04), 0 8px 24px -14px rgba(0,0,0,.18);
  --shadow-lg:    0 2px 6px rgba(0,0,0,.05), 0 20px 48px -20px rgba(0,0,0,.24);

  --wrap:         1180px;
  --prose:        760px;
  --header-h:     72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
  overflow-x: clip;      /* clip ไม่สร้างกล่องเลื่อนใหม่ หัวเว็บแบบ sticky จึงยังทำงาน */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Kanit', 'Leelawadee UI', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;              /* ภาษาไทยมีสระบนล่าง ต่ำกว่านี้ตัวอักษรชนกัน */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ข้ามไปเนื้อหา — สำหรับคนที่ใช้แป้นพิมพ์อย่างเดียว */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ==========================================================  หัวเว็บ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 16px; font-weight: 700; color: var(--green-dark); letter-spacing: -.01em; }
.brand-text span { font-size: 11.5px; color: var(--text-mute); font-weight: 400; }

/* ---- เมนูหลัก ---- */
.nav { margin-left: auto; }
.nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav > ul > li { position: relative; }

.nav a {
  display: block;
  padding: 10px 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--green-tint); color: var(--green-dark); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; }

.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .55;
}

.nav ul ul {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 268px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.has-sub:hover > ul,
.has-sub:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.nav ul ul a { padding: 9px 12px; font-size: 14px; white-space: normal; }

/* ---- ปุ่มเปิดเมนูบนมือถือ ---- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .2s, opacity .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; top: -6px; left: 0; transform: none; }
.nav-toggle span::after  { content: ""; top:  6px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================  ส่วนหัวหน้า */

.page-head {
  background: linear-gradient(170deg, var(--green-tint), #fff 70%);
  border-bottom: 1px solid var(--line-soft);
  padding: 44px 0 38px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: var(--green-dark);
}
.page-head .lead {
  margin: 12px 0 0;
  max-width: var(--prose);
  color: var(--text-soft);
  font-size: 17px;
}

.crumbs {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--text-mute);
}
.crumbs a { color: var(--text-mute); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.crumbs li + li::before { content: "›"; margin-right: 10px; opacity: .6; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-mute);
}
.post-meta .cat {
  background: var(--green-tint);
  color: var(--green-dark);
  padding: 2px 11px;
  border-radius: 999px;
  font-weight: 500;
}

/* ==========================================================  เนื้อหา */

main { display: block; }

.content { padding: 44px 0 64px; }

/* ---- ความกว้างของแต่ละชิ้น ----
   ยึดตามที่วัดจากเว็บเดิม ดู content/layout-map.tsv
   ข้อความอ่านง่ายที่ ~820px ส่วนภาพกราฟิกกว้างเต็มพื้นที่ตามของเดิม   */

.content > .wrap > p,
.content > .wrap > ul:not(.img-grid):not(.gallery):not(.card-grid),
.content > .wrap > ol,
.content > .wrap > h1,
.content > .wrap > h2,
.content > .wrap > h3,
.content > .wrap > .form,
.content > .wrap > .notice,
.content > .wrap > #form-notice {
  max-width: 820px;
  margin-inline: auto;
}

/* ภาพเต็มความกว้าง — ตัวสร้างวางไว้นอก .wrap ให้แล้ว จึงกว้างเต็มพื้นที่เอง
   ไม่ใช้ 100vw เพราะ 100vw นับรวมแถบเลื่อนด้วย ทำให้ล้นออกไปอีก 7-17px */
.content > .blk-full {
  margin: 0;
  width: 100%;
  border-radius: 0;
}
.content > .blk-full img { border-radius: 0; width: 100%; }

/* กันกรอบเนื้อหาว่างที่เกิดจากการปิด-เปิด .wrap รอบภาพเต็มจอ */
.content > .wrap:empty { display: none; }

.content .blk-box  { max-width: 1140px; margin-inline: auto; }
.content .blk-wide { max-width: 1050px; margin-inline: auto; }
.content .blk-icon { max-width: 300px;  margin-inline: auto; }
.content .blk-tiny { max-width: 180px;  margin-inline: auto; }

/* สไตล์ของ .img-grid อยู่รวมกับ .gallery ด้านล่าง เพราะเป็นของอย่างเดียวกัน */

.content h1 {
  margin: 0 0 18px;
  font-size: clamp(25px, 4.2vw, 38px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.01em;
  color: var(--green-dark);
  text-wrap: balance;
}

.content h2 {
  margin: 44px 0 14px;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--green-dark);
  text-wrap: balance;
}
.content h3 {
  margin: 34px 0 10px;
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  text-wrap: balance;
}
.content h2:first-child, .content h3:first-child { margin-top: 0; }

.content p { margin: 0 0 18px; }
.content strong { font-weight: 600; color: var(--text); }

.content ul, .content ol { margin: 0 0 20px; padding-left: 24px; }
.content li { margin-bottom: 9px; }
.content ul { list-style: none; padding-left: 4px; }
.content ul li { position: relative; padding-left: 24px; }
.content ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-light);
}
.content ol li::marker { color: var(--green); font-weight: 600; }

figure { margin: 28px 0; }
figure img { border-radius: var(--radius-lg); width: 100%; }
figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-mute);
  text-align: center;
}

.tablewrap { overflow-x: auto; margin: 0 0 26px; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15px;
}
th, td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { background: var(--green-tint); font-weight: 600; color: var(--green-dark); }
tbody tr:nth-child(even) td { background: #FAFBFA; }

video { border-radius: var(--radius-lg); width: 100%; }

.embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0;
  background: var(--bg-alt);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================  แกลเลอรี */

/* แกลเลอรีกับกริดภาพสินค้าเป็นของอย่างเดียวกัน ใช้สไตล์ร่วมกัน
   300px ทำให้ได้ 3 คอลัมน์ในกรอบ 1140px เท่าเว็บเดิม */
.gallery,
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin: 30px auto;
  padding: 0;
  max-width: 1140px;
  list-style: none;
}
.gallery li,
.img-grid li { margin: 0; padding: 0; }
.gallery li::before,
.img-grid li::before { display: none; }
.gallery button,
.img-grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
  aspect-ratio: 1;
}
.gallery img,
.img-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery button:hover img,
.img-grid button:hover img { transform: scale(1.05); }

/* กล่องดูรูปใหญ่ */
dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
  overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(0,0,0,.88); }
dialog.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  width: auto;
  border-radius: var(--radius);
}
dialog.lightbox .close {
  position: absolute;
  top: -14px; right: -14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================  การ์ด */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.card-grid > li { margin: 0; padding: 0; }
.card-grid > li::before { display: none; }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
  color: inherit;
}
.card-img { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .cat {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: .02em;
}
.card-body h2,
.card-body h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  text-wrap: balance;
}
.card:hover .card-body h2,
.card:hover .card-body h3 { color: var(--green-dark); }
.card-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body time { font-size: 12.5px; color: var(--text-mute); margin-top: auto; padding-top: 6px; }

/* ==========================================================  ปุ่ม */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--green); color: var(--green); background: #fff; }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }

/* ==========================================================  แถบชวนติดต่อ */

.cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 52px 0;
  margin-top: 64px;
}
.cta h2 { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; color: #fff; }
.cta p { margin: 0 0 24px; opacity: .93; max-width: 620px; font-size: 16.5px; }
.cta .btn-primary { background: #fff; color: var(--green-dark); }
.cta .btn-primary:hover { background: var(--green-tint); color: var(--green-dark); }
.cta .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ==========================================================  ฟอร์มติดต่อ */

.form { max-width: 620px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14.5px; font-weight: 500; margin-bottom: 6px; }
.field .req { color: var(--pink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15,134,67,.13);
  outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--text-mute); margin-top: 5px; }
.hp { position: absolute; left: -9999px; }        /* กับดักบอตสแปม */

.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 15px; }
.notice-ok  { background: var(--green-tint); color: var(--green-dark); border: 1px solid var(--green-light); }
.notice-err { background: #FDECF1; color: #A31D48; border: 1px solid #F3B7CB; }

/* ==========================================================  ท้ายเว็บ */

.site-footer {
  background: #14251C;
  color: #C8D4CC;
  padding: 52px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C8D4CC; text-decoration: none; }
.site-footer a:hover { color: var(--green-light); text-decoration: underline; }
.site-footer .about { max-width: 380px; line-height: 1.8; }
.site-footer .brand-text b { color: #fff; }
.site-footer .brand-text span { color: #8FA396; }
.site-footer .brand { margin-bottom: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: 13px;
  color: #8FA396;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ==========================================================  ปุ่มลอย */

.floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating a {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform .16s;
}
.floating a:hover { transform: scale(1.07); color: #fff; }
.floating .tel  { background: var(--tel); }
.floating .line { background: var(--line-green); }
.floating svg { width: 26px; height: 26px; fill: currentColor; }

/* ==========================================================  จอเล็ก */

@media (max-width: 980px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(400px, 88vw);
    margin: 0;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .24s ease;
    padding: 12px 0 40px;
  }
  .nav[data-open="true"] { transform: none; }

  .nav > ul { display: block; padding: 0 12px; }
  .nav > ul > li { position: static; }
  .nav a { padding: 13px 14px; font-size: 15.5px; border-radius: var(--radius); }

  .nav ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 2px 0 8px 14px;
    padding: 0 0 0 6px;
    min-width: 0;
    display: none;
  }
  .has-sub[data-open="true"] > ul { display: block; }
  .has-sub > a::after { float: right; margin-top: 9px; transition: transform .2s; }
  .has-sub[data-open="true"] > a::after { transform: translateY(1px) rotate(-135deg); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .wrap, .header-inner { padding-inline: 16px; }
  .brand img { height: 38px; }
  .brand-text b { font-size: 14.5px; }
  .brand-text span { display: none; }
  .page-head { padding: 32px 0 28px; }
  .content { padding: 32px 0 48px; }
  .gallery,
  .img-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .floating a { width: 50px; height: 50px; }
  .btn { padding: 12px 22px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .floating, .cta, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}
