/* =====================================================================
   Foam Box Thai — สไตล์หลักฝั่งลูกค้า
   โทน: ขาว / ฟ้าอ่อน / น้ำเงินเข้ม / เขียวเฉพาะปุ่ม LINE
   ===================================================================== */
:root {
  --primary: #0EA5E9;
  --primary-dark: #075985;
  --primary-soft: #E0F2FE;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --line: #E2E8F0;
  --text: #0F172A;
  --muted: #64748B;
  --line-green: #22C55E;
  --line-green-dark: #16A34A;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 23, 42, .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ---- เปลี่ยนหน้าแบบ fade ทั้งเว็บ: หน้าใหม่ค่อย ๆ ปรากฏขึ้น (CSS ล้วน ไม่พึ่ง JS)
   ส่วนตอนคลิกลิงก์ออกจากหน้า จะ fade หายไปก่อนค่อยเปลี่ยนหน้าจริง (ควบคุมด้วย JS ใน footer.php) ---- */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageFadeIn .3s ease; }
body.page-fade-out { opacity: 0; transition: opacity .25s ease; }
h1, h2, h3, h4, .brand-name { font-family: 'Kanit', sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---- ปุ่ม ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 1rem;
  border: none; cursor: pointer; transition: .2s;
}
.btn-lg { padding: 15px 32px; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: var(--line-green-dark); color: #fff; }
.line-icon {
  background: #fff; color: var(--line-green);
  font-weight: 700; font-size: .72rem; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 6px;
}

/* ---- Header ---- */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; }
.brand-name { font-size: 1.25rem; font-weight: 600; color: var(--primary-dark); }
.brand-name em { font-style: normal; color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--text); font-family: 'Kanit', sans-serif; font-size: .98rem; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav .nav-line-btn { padding: 9px 18px; font-size: .92rem; color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--primary-dark); cursor: pointer; }

/* ---- Hero แบบสไลด์ภาพใหญ่เต็มจอ (ภาพผลงานจริง เลื่อนเองทุก 3 วิ) ---- */
.hero-slider {
  position: relative; overflow: hidden;
  min-height: 82vh;
  display: flex; align-items: center; justify-content: center;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
  transform: scale(1.03);
}
.hero-slide.active { opacity: 1; transform: scale(1); transition: opacity 1s ease, transform 4s ease; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 89, 133, .45) 0%, rgba(15, 23, 42, .55) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 90px 20px; }
.hero-content h1 {
  font-size: 3.4rem; line-height: 1.25; color: #fff; margin-bottom: 20px;
  font-weight: 700; text-shadow: 0 4px 22px rgba(0, 0, 0, .35);
}
.hero-content h1 span { color: #7DD3FC; }
.hero-content p.lead {
  font-size: 1.15rem; color: #E2E8F0; margin: 0 auto 32px; max-width: 820px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { background: var(--primary-soft); color: var(--primary-dark); }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; justify-content: center; }
.hero-badges span {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px); border-radius: 999px;
  padding: 8px 18px; font-size: .95rem; color: #fff;
}
.hero-dots {
  position: absolute; bottom: 26px; left: 0; right: 0; z-index: 3;
  display: flex; gap: 10px; justify-content: center;
}
.hero-dot {
  width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .45); transition: .2s; padding: 0;
}
.hero-dot.active { background: #fff; width: 30px; border-radius: 999px; }

/* ---- Section ทั่วไป ---- */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* ---- จุดขาย ---- */
.selling-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.point-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow);
}
.point-icon {
  flex: 0 0 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.point-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.point-card p { font-size: .92rem; color: var(--muted); }

/* ---- แกลเลอรีผลงาน ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
a.gallery-card { display: block; color: inherit; text-decoration: none; transition: .15s; }
a.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 23, 42, .12); }
.gallery-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-card .g-body { padding: 16px 18px; }
.gallery-card h3 { font-size: 1rem; margin-bottom: 6px; }
.gallery-card p { font-size: .88rem; color: var(--muted); }
.g-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: .82rem; color: var(--primary-dark); gap: 8px; flex-wrap: wrap; }
.g-meta .g-province { background: var(--primary-soft); border-radius: 999px; padding: 2px 10px; }
.g-more { text-align: right; font-size: .8rem; color: var(--primary); margin-top: 8px; font-weight: 500; }

/* ---- หน้ารายละเอียดผลงาน/รีวิว: สไลด์รูปใหญ่เต็มจอแบบ fade (เหมือนหน้าแรก) + รายละเอียด ---- */
.review-slider { position: relative; overflow: hidden; min-height: 75vh; }
.review-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.review-slide.active { opacity: 1; }
.review-dots {
  position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3;
  display: none; gap: 10px; justify-content: center;
}
.review-dot {
  width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .55); transition: .2s; padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.review-dot.active { background: #fff; width: 30px; border-radius: 999px; }
/* ปุ่มจุดเลือกรูป แสดงเฉพาะจอคอมพิวเตอร์ (ไม่แสดงบนมือถือ) */
@media (min-width: 761px) {
  .review-dots { display: flex; }
}
.review-detail-body { max-width: 760px; }
.review-detail-body h1 { font-size: 1.7rem; color: var(--primary-dark); margin-bottom: 10px; }
.review-detail-meta { display: flex; gap: 12px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.review-detail-meta .g-province { background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 3px 12px; }
.review-detail-desc { font-size: 1rem; color: var(--text); line-height: 1.8; margin-bottom: 26px; }

/* ---- การ์ดสินค้า ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--primary-soft); }
.product-card .p-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-card h3 { font-size: 1.02rem; }
.p-size { font-size: .85rem; color: var(--muted); }
.p-suit { font-size: .85rem; color: var(--muted); }
.p-dims { list-style: none; font-size: .8rem; color: var(--muted); }
.p-dims li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.p-dims li span { color: var(--primary-dark); flex-shrink: 0; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.p-tags span {
  font-size: .76rem; padding: 3px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
}
.p-tags .tag-green { background: #DCFCE7; color: var(--line-green-dark); }
.product-card .btn { margin-top: auto; justify-content: center; font-size: .9rem; padding: 10px 16px; }
.p-cat { font-size: .78rem; color: var(--primary); }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--primary); }
.p-actions { display: grid; gap: 8px; margin-top: auto; }
.p-actions .btn { margin-top: 0; width: 100%; }

/* ---- หน้ารายละเอียดสินค้า ---- */
.breadcrumb { padding: 16px 20px 0; font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--primary-dark); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--muted); }

.product-detail-section { padding-top: 24px; }
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }

.pd-main {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.pd-main img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; cursor: zoom-in; }
.pd-zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(15, 23, 42, .62); color: #fff;
  font-size: .78rem; padding: 5px 12px; border-radius: 999px; pointer-events: none;
}
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pd-thumb {
  width: 78px; height: 78px; padding: 0; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: .15s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb:hover { border-color: var(--primary); }
.pd-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.pd-info {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow);
}
.pd-info h1 { font-size: 1.7rem; color: var(--primary-dark); margin: 6px 0 16px; }
.pd-price {
  border-top: 2px solid var(--primary-soft); border-bottom: 2px solid var(--primary-soft);
  padding: 14px 0; margin-bottom: 18px;
}
.pd-price-label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 4px; }
.pd-price strong { font-family: 'Kanit', sans-serif; font-size: 1.5rem; color: var(--primary); }

.pd-specs { list-style: none; margin-bottom: 18px; }
.pd-specs li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem;
}
.pd-specs li span { color: var(--muted); flex-shrink: 0; }
.pd-specs li b { text-align: right; font-weight: 500; }
.pd-remark { font-size: .8rem; color: var(--muted); font-style: italic; margin: -8px 0 14px; }

.pd-desc { font-size: .95rem; color: var(--text); margin-bottom: 18px; }
.pd-notes { background: var(--primary-soft); border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.pd-notes p { font-size: .9rem; color: var(--primary-dark); margin-bottom: 4px; }
.pd-notes p:last-child { margin-bottom: 0; }

.pd-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-fb { background: #1877F2; color: #fff; }
.btn-fb:hover { background: #0F5BC4; color: #fff; }

.pd-contact { border-top: 1px solid var(--line); padding-top: 16px; }
.pd-contact h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: 8px; }
.pd-contact p { font-size: .92rem; color: var(--muted); margin-bottom: 4px; }
.pd-contact-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pd-contact-text { flex: 1; min-width: 0; }
.pd-contact-qr { flex: 0 0 auto; text-align: center; }
.pd-contact-qr img {
  width: 96px; height: 96px; object-fit: contain; cursor: zoom-in;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px;
}
.pd-contact-qr span { display: block; font-size: .74rem; color: var(--muted); margin-top: 5px; }

.pd-details-block { margin-top: 48px; }
.pd-details-block h2, .pd-related h2 { font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 18px; text-align: center; }
.pd-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.pd-details-grid img {
  width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: zoom-in; box-shadow: var(--shadow);
}
.pd-related { margin-top: 52px; }
.pd-related .product-card h3 a { color: var(--text); }
.pd-related .product-card h3 a:hover { color: var(--primary); }

/* ---- ตัวกรองหมวดหมู่ ---- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.cat-filter a {
  padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-family: 'Kanit', sans-serif; font-size: .92rem;
}
.cat-filter a.active, .cat-filter a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-seo { text-align: center; max-width: 760px; margin: 0 auto 32px; color: var(--muted); font-size: .95rem; }

/* ---- ขั้นตอนสั่งซื้อ ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow);
}
.step-num {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--primary); color: #fff; font-family: 'Kanit', sans-serif;
  font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 1rem; margin-bottom: 4px; }
.step-card p { font-size: .88rem; color: var(--muted); }

.steps-list { max-width: 720px; margin: 0 auto; display: grid; gap: 14px; }
.steps-list .step-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow);
}
.step-row .step-num { margin: 0; flex: 0 0 44px; }
.step-row h3 { font-size: 1.05rem; }
.step-row p { color: var(--muted); font-size: .93rem; }

.note-box {
  max-width: 720px; margin: 32px auto 0;
  background: var(--primary-soft); border: 1px solid #BAE6FD; border-radius: var(--radius);
  padding: 22px 26px;
}
.note-box h3 { color: var(--primary-dark); margin-bottom: 10px; }
.note-box ul { padding-left: 22px; color: var(--text); }
.note-box li { margin-bottom: 6px; }

/* ---- บทความ ---- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--primary-soft); }
.article-card .a-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-card h3 { font-size: 1.05rem; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); }
.article-card p { font-size: .9rem; color: var(--muted); flex: 1; }
.a-date { font-size: .8rem; color: var(--primary); }

.article-content { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.article-content h1 { font-size: 1.7rem; color: var(--primary-dark); margin-bottom: 8px; }
.article-content .a-date { display: block; margin-bottom: 22px; }
.article-content h2 { font-size: 1.25rem; color: var(--primary-dark); margin: 24px 0 8px; }
.article-content h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.article-content p { margin-bottom: 12px; }
.article-content img { border-radius: 10px; margin: 12px 0; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 12px; }
.article-content table {
  width: 100%; border-collapse: collapse; margin: 8px 0 16px;
  font-size: .92rem; overflow-x: auto; display: block;
}
.article-content th, .article-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.article-content th { background: var(--primary-soft); color: var(--primary-dark); font-family: 'Kanit', sans-serif; font-weight: 500; }
.article-content tbody tr:nth-child(even) { background: var(--bg); }
.article-cover { border-radius: var(--radius); margin-bottom: 24px; width: 100%; }

/* ---- ติดต่อ ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow);
}
.contact-card h3 { color: var(--primary-dark); margin-bottom: 14px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-item .c-icon {
  flex: 0 0 40px; height: 40px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact-item small { color: var(--muted); display: block; }
.qr-box { text-align: center; }
.qr-box img { width: 210px; height: 210px; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: 12px; }
.qr-trigger { cursor: zoom-in; }

/* ---- QR ในส่วนท้าย (footer) ---- */
.footer-qr { margin-top: 14px; }
.footer-qr img {
  width: 84px; height: 84px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px;
}
.footer-qr span { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* ---- Popup (lightbox) แสดงรูปขนาดใหญ่ ---- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15, 23, 42, .82);
  display: none; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: min(90vw, 420px); max-height: 85vh; width: auto; height: auto;
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; border: none;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

/* ---- CTA strip ---- */
.cta-strip { background: var(--primary-dark); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 1.5rem; margin-bottom: 6px; }
.cta-inner p { color: #BAE6FD; max-width: 560px; }

/* ---- Footer ---- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .6fr 1fr; gap: 32px; padding-bottom: 30px; }
.footer-brand { margin-bottom: 12px; }
.site-footer p { font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.site-footer h4 { color: var(--primary-dark); margin-bottom: 10px; }
.site-footer a { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.site-footer a:hover { color: var(--primary); }
.site-footer a.tel-link { display: inline; margin-bottom: 0; font-weight: 500; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 20px; text-align: center; }

/* ---- ปุ่มลอยมุมขวาล่าง: กดปุ่มเดียวแล้วสไลด์ขึ้นเป็น 3 ช่องทาง (โทร / Messenger / LINE) ---- */
.float-actions {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 60px; height: 60px;
}
.float-menu { position: absolute; inset: 0; }
.float-btn {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .3);
  opacity: 0; transform: translateY(0) scale(.4);
  pointer-events: none; transition: transform .25s ease, opacity .2s ease;
}
.float-menu.open .float-btn { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.float-menu.open .float-call { transform: translateY(-216px) scale(1); transition-delay: 0s; }
.float-menu.open .float-messenger { transform: translateY(-144px) scale(1); transition-delay: .04s; }
.float-menu.open .float-line { transform: translateY(-72px) scale(1); transition-delay: .08s; }
.float-btn:hover { filter: brightness(1.08); color: #fff; }
.float-line {
  width: 64px; height: 38px; border-radius: 9px; background: #06C755;
  font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: .5px;
}
.float-messenger { background: #1877F2; }
.float-call { background: var(--line-green); }

.float-toggle {
  position: absolute; inset: 0; width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(14, 165, 233, .45);
  transition: transform .25s ease, background .2s ease;
}
.float-toggle svg { transition: transform .25s ease; }
.float-toggle.open { background: var(--primary-dark); }
.float-toggle.open svg { transform: rotate(45deg); }
.float-toggle:hover { transform: scale(1.06); }

/* ---- หัวหน้าเพจย่อย ---- */
.page-head { background: linear-gradient(160deg, var(--primary-soft) 0%, #fff 100%); padding: 44px 0; text-align: center; }
.page-head h1 { font-size: 1.9rem; color: var(--primary-dark); margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0 auto; }

.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-content h1 { font-size: 2.4rem; }
  .product-detail { grid-template-columns: 1fr; }
  .selling-points, .gallery-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 14px 20px; gap: 14px;
  }
  .main-nav.open { display: flex; }
  .hero-slider { min-height: 70vh; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p.lead { font-size: 1rem; }
  .review-slider { min-height: 55vh; }
  .article-content { padding: 24px 20px; }
}
@media (max-width: 540px) {
  .selling-points, .gallery-grid, .product-grid, .steps, .article-grid { grid-template-columns: 1fr; }
  .float-actions { right: 14px; bottom: 14px; }
}
