/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Sukhumvit Set', 'Segoe UI', Tahoma, sans-serif;
}
body {
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Header & Navigation */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  gap: 15px;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1b4332;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 80px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  gap: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar {
  display: none;
}
.nav-menu li {
  flex-shrink: 0;
}
.nav-menu a {
  white-space: nowrap;
  font-weight: 500;
  color: #555;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: #2d6a4f;
  background-color: #e8f5e9;
}

/* Page Sections System */
.page-section {
  display: none;
  flex: 1;
}
.page-section.active {
  display: block;
}

/* Hero Banner */
.hero {
  color: white;
  text-align: center;
  padding: 5px 10px;
}
.hero img {
  max-width: 100%;
  height: auto;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.hero-cta .btn-call {
  background: #2d6a4f;
  color: #fff;
}
.hero-cta .btn-line {
  background: #06C755;
  color: #fff;
}

/* ปุ่มลอยติดตาม (โทร + Line) มุมขวาล่าง เห็นตลอดไม่ว่าจะเลื่อนไปตรงไหน */
.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.floating-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 16px;
  border-radius: 30px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  white-space: nowrap;
}
.floating-cta a .fab-icon {
  font-size: 22px;
  line-height: 1;
}
.floating-cta a:hover {
  transform: scale(1.05);
}
.floating-cta .fab-call {
  background: #2d6a4f;
}
.floating-cta .fab-line {
  background: #06C755;
}
.home-h1 {
  text-align: center;
  color: #1b4332;
  font-size: 28px;
  margin: 15px 0 5px;
}
.home-subtitle {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin-bottom: 10px;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #1b4332;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-img {
  height: 180px;
  background-color: #2d6a4f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-info {
  padding: 20px;
}
.product-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #2d6a4f;
}
.product-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}
.read-more {
  color: #2d6a4f;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
}

/* Detail Page Box */
.detail-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.btn-back {
  padding: 8px 16px;
  background: #eee;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
  font-weight: 500;
}
.btn-back:hover {
  background: #e0e0e0;
}
.btn-action {
  background-color: #2d6a4f;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  margin-top: 25px;
}
.btn-action:hover {
  background-color: #1b4332;
}

/* ปุ่ม "ดูสินค้าทั้งหมด" / "ดูบทความทั้งหมด" - ให้ยาวและเด่นเป็นพิเศษ */
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
  color: #fff;
  padding: 18px 55px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(45,106,79,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-view-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(45,106,79,0.45);
}
.btn-view-all .arrow-icon {
  transition: transform 0.25s ease;
}
.btn-view-all:hover .arrow-icon {
  transform: translateX(6px);
}
@media (max-width: 480px) {
  .btn-view-all {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 17px;
  }
}

/* Articles / News Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* ระบบแบ่งหน้า (Pagination) */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.pagination .page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.pagination .page-btn:hover {
  background: #e8f5e9;
  border-color: #2d6a4f;
}
.pagination .page-btn.active {
  background: #2d6a4f;
  border-color: #2d6a4f;
  color: #fff;
}
.pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.article-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-5px);
}
.article-img {
  height: 200px;
  background-color: #2d6a4f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  overflow: hidden;
}
.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-content {
  padding: 20px;
}
.article-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
.article-title {
  font-size: 18px;
  color: #1b4332;
  margin-bottom: 10px;
  font-weight: bold;
}
.article-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

/* Image Gallery Styles */
.gallery-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.gallery-title {
  font-size: 18px;
  color: #1b4332;
  margin-bottom: 15px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #f0f0f0;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  text-align: center;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}
.lightbox-caption {
  color: white;
  margin-top: 15px;
  font-size: 16px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 18px;
  user-select: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background 0.2s ease;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-prev {
  left: 15px;
}
.lightbox-next {
  right: 15px;
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.contact-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
/* ช่องดักบอตของ Netlify Forms: คนไม่เห็น บอตกรอกแล้วข้อความจะถูกทิ้ง */
.form-bot { position: absolute; left: -9999px; }
.form-msg { margin-top: 12px; padding: 10px 12px; border-radius: 6px; font-size: 15px; }
.form-msg.ok { background: #e6f4ea; color: #14532d; }
.form-msg.err { background: #fde8e6; color: #b42318; }

/* Featured Banner Cards (การ์ดโชว์สินค้าเด่นหน้าแรก) */
.banner-card {
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.banner-image-box {
  flex: 1 1 500px;
  position: relative;
  min-height: 320px;
  background-color: #111111;
}
.banner-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}
.badge-logo {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 0px 0px rgba(204, 0, 0, 0.3);
}
.badge-logo span {
  display: block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.badge-logo small {
  font-size: 10px;
  opacity: 0.9;
}
.image-text-overlay {
  position: absolute;
  bottom: 25px;
  left: 20px;
  max-width: 62%;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}
.image-text-overlay .sub-headline {
  font-size: 15px;
  margin: 0;
}
.image-text-overlay .main-headline {
  font-size: 30px;
  font-weight: 900;
  margin: 2px 0;
  letter-spacing: 1px;
}
.brand-red-btn {
  background-color: #cc0000;
  color: #ffffff;
  display: inline-block;
  padding: 3px 12px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 3px;
  margin-top: 6px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
}
.image-slogan-overlay {
  position: absolute;
  bottom: 25px;
  right: 20px;
  max-width: 150px;
  text-align: right;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.banner-content-box {
  flex: 1 1 400px;
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  background-color: #ffffff;
}
.product-title-red {
  color: #cc0000;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
}
.product-description {
  color: #555555;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}
.inline-link {
  color: #111111;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.inline-link:hover {
  color: #cc0000;
}
.slogan-bold {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 20px;
  font-style: italic;
}
.btn-more-red {
  background-color: #cc0000;
  color: #ffffff;
  padding: 8px 28px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-more-red:hover {
  background-color: #a00000;
}
@media (max-width: 768px) {
  .banner-content-box {
    padding: 25px;
  }
  .product-title-red {
    font-size: 24px;
  }
  .nav-container {
    padding: 10px 8px;
    gap: 6px;
  }
  .logo {
    font-size: 0;
    gap: 0;
  }
  .logo img {
    height: 32px;
  }
  .nav-menu {
    gap: 1px;
  }
  .nav-menu a {
    padding: 6px 3px;
    font-size: 11px;
    white-space: nowrap;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .floating-cta a {
    height: 42px;
    padding: 0 14px 0 12px;
    font-size: 13px;
  }
  .floating-cta a .fab-icon {
    font-size: 18px;
  }
}

/* Footer */
footer {
  background-color: #111;
  color: #ddd;
  padding: 40px 20px 20px;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 15px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
  font-size: 14px;
}
.copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #888;
}

/* ไอคอนโซเชียลมีเดียหน้าติดต่อเรา */
.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  width: 64px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.social-item:hover .social-icon {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.social-label {
  font-size: 12px;
  color: #555;
  font-weight: 500;
  text-align: center;
}
.social-facebook  { background: #1877F2; }
.social-youtube   { background: #FF0000; }
.social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-tiktok    { background: #000000; }
.social-line      { background: #06C755; }
.social-x         { background: #000000; }

/* หน้าเกี่ยวกับเรา */
.about-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  color: #fff;
  margin-bottom: 35px;
}
.about-hero h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.about-hero p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.95;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}
.stat-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.stat-box .stat-number {
  font-size: 30px;
  font-weight: 800;
  color: #2d6a4f;
  display: block;
}
.stat-box .stat-label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}
.why-us-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-top: 3px solid #2d6a4f;
}
.why-us-card .why-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.why-us-card h4 {
  color: #1b4332;
  font-size: 16px;
  margin-bottom: 6px;
}
.why-us-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}
.process-step {
  flex: 1 1 180px;
  background: #f0f7f2;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}
.process-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2d6a4f;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.process-step p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.area-tag {
  background: #e8f5e9;
  color: #1b4332;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* คำถามที่พบบ่อย (FAQ) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #1b4332;
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 700;
  color: #2d6a4f;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}
.faq-answer p {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

/* ======================================================================
   ★ ที่ใส่รูปพื้นหลังกรอบข้อความ (แก้ตรงนี้ที่เดียว) ★
   - รูปเดียวทุกกรอบ: ใส่ชื่อไฟล์ที่ --cta-img  และตั้ง --cta-overlay ให้เป็นสีเขียวโปร่งแสง (ให้ตัวหนังสืออ่านชัด)
     ตัวอย่าง:  --cta-img: url('cta-bg.jpg');  --cta-overlay: rgba(15,61,40,0.78);
   - ปุ่มลอยมุมขวาล่าง: ใช้ --fab-img / --fab-overlay แบบเดียวกัน
   - ถ้าไม่ใส่ จะเป็นพื้นเขียวเข้มเหมือนเดิม
   - รูปแยกตามหน้า: ดูตัวอย่างในคอมเมนต์ท้ายบล็อกนี้
   ====================================================================== */
:root {
  --cta-img: none ;
  --cta-overlay:rgba(31, 125, 75, 0.768);
  --fab-img: none;
  --fab-overlay: transparent;
}
/* รูปแยกตามหน้า (ทุกกรอบในหน้านั้น): ลบเครื่องหมายคอมเมนต์ของบรรทัดข้างล่าง แล้วเปลี่ยนชื่อหน้า/ชื่อไฟล์
#product-ประตูลายไม้ .hero-cta { --cta-img: url('cta-ลายไม้.jpg'); --cta-overlay: rgba(15,61,40,0.78); }
*/
/* ----------------------------------------------------------------------
   ★ รูปแยกทีละกรอบ: มี 61 กรอบ แต่ละกรอบมีเลขประจำตัว (data-cta)
   วิธีใช้: เลือกกรอบที่ต้องการ → ลบเครื่องหมายคอมเมนต์ (สแลชดาว หน้าบรรทัด และดาวสแลช ท้ายบรรทัด) ของบรรทัด [data-cta="เลข"]
            → แก้ชื่อไฟล์ใน url('...') ให้ตรงกับไฟล์รูปที่อัปโหลด
   กรอบที่ไม่ได้แก้ จะใช้รูปกลาง (--cta-img ด้านบน) หรือพื้นเขียวเหมือนเดิม
   ลำดับความสำคัญ: รูปรายกรอบ > รูปรายหน้า > รูปกลาง
   (บทความที่เขียนผ่านหน้า admin ใช้รูปรายหน้า/รูปกลางเท่านั้น)
   ---------------------------------------------------------------------- */

/* ---------- หน้าแรก ---------- */
/* กรอบที่ 1  (อยู่ใต้หัวข้อ: รับทำประตูรั้วสแตนเลส ประตูอัลลอย เหล็กดัดอิต) */
/* [data-cta="1"] { --cta-img: url('cta-1.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 2  (อยู่ใต้หัวข้อ: ช่วงราคาประเมินเบื้องต้น) */
/* [data-cta="2"] { --cta-img: url('cta-2.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 3  (อยู่ใต้หัวข้อ: รับประกันชัดเจน ไม่ทิ้งงาน) */
/* [data-cta="3"] { --cta-img: url('cta-3.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 4  (อยู่ใต้หัวข้อ: สแตนเลสเกรด 304 ต่างจากวัสดุอื่นอย่างไร) */
/* [data-cta="4"] { --cta-img: url('cta-4.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- แบนเนอร์: เลือกเรา ---------- */
/* กรอบที่ 5  (อยู่ใต้หัวข้อ: ทำไมต้องเลือกงานสแตนเลสกับ ร้านเรา?) */
/* [data-cta="5"] { --cta-img: url('cta-5.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 6  (อยู่ใต้หัวข้อ: ทำไมต้องเลือกงานสแตนเลสกับ ร้านเรา?) */
/* [data-cta="6"] { --cta-img: url('cta-6.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- แบนเนอร์: แบบประตู ---------- */
/* กรอบที่ 7  (อยู่ใต้หัวข้อ: 4 แบบประตูรั้วสแตนเลส เลือกแบบไหนให้เหมาะกับบ) */
/* [data-cta="7"] { --cta-img: url('cta-7.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- สินค้า: ประตูสแตนเลส ---------- */
/* กรอบที่ 8  (อยู่ใต้หัวข้อ: ประตูแบบสแตนเลส) */
/* [data-cta="8"] { --cta-img: url('cta-8.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 9  (อยู่ใต้หัวข้อ: ประตูแบบสแตนเลส) */
/* [data-cta="9"] { --cta-img: url('cta-9.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- สินค้า: ประตูอัลลอย ---------- */
/* กรอบที่ 10  (อยู่ใต้หัวข้อ: ประตูแบบอัลลอย) */
/* [data-cta="10"] { --cta-img: url('cta-10.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 11  (อยู่ใต้หัวข้อ: ประตูแบบอัลลอย) */
/* [data-cta="11"] { --cta-img: url('cta-11.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- สินค้า: ประตูเหล็กดัดอิตาลี่ ---------- */
/* กรอบที่ 12  (อยู่ใต้หัวข้อ: งาน "ประตูเหล็กดัดอิตาลี" ระดับคราฟต์แมนชิพ โ) */
/* [data-cta="12"] { --cta-img: url('cta-12.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 13  (อยู่ใต้หัวข้อ: งาน "ประตูเหล็กดัดอิตาลี" ระดับคราฟต์แมนชิพ โ) */
/* [data-cta="13"] { --cta-img: url('cta-13.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- สินค้า: ประตูสแตนเลสอบสีดำ ---------- */
/* กรอบที่ 14  (อยู่ใต้หัวข้อ: งานเหล็กดัดอบสีดำไร้สนิม โดย ต่ายสแตนเลส) */
/* [data-cta="14"] { --cta-img: url('cta-14.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 15  (อยู่ใต้หัวข้อ: งานเหล็กดัดอบสีดำไร้สนิม โดย ต่ายสแตนเลส) */
/* [data-cta="15"] { --cta-img: url('cta-15.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- สินค้า: ประตูลายไม้ ---------- */
/* กรอบที่ 16  (อยู่ใต้หัวข้อ: ประตูสแตนเลสลายไม้ / ประตูสแตนเลสผสมอลูมิเนีย) */
/* [data-cta="16"] { --cta-img: url('cta-16.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 17  (อยู่ใต้หัวข้อ: ประตูสแตนเลสลายไม้ / ประตูสแตนเลสผสมอลูมิเนีย) */
/* [data-cta="17"] { --cta-img: url('cta-17.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- สินค้า: ประตูรั้วบานเลื่อนโค้ง (ประตูรางรถไฟ) ---------- */
/* กรอบที่ 18  (อยู่ใต้หัวข้อ: "ประตูรั้วบานเลื่อนโค้ง (ประตูรางรถไฟ)") */
/* [data-cta="18"] { --cta-img: url('cta-18.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 19  (อยู่ใต้หัวข้อ: "ประตูรั้วบานเลื่อนโค้ง (ประตูรางรถไฟ)") */
/* [data-cta="19"] { --cta-img: url('cta-19.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- สินค้า: ประตูรั้วอัตโนมัติ (ประตูรีโมท) ---------- */
/* กรอบที่ 20  (อยู่ใต้หัวข้อ: "ประตูรั้วอัตโนมัติ (ประตูรีโมท) / ประตูออโต้) */
/* [data-cta="20"] { --cta-img: url('cta-20.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 21  (อยู่ใต้หัวข้อ: "ประตูรั้วอัตโนมัติ (ประตูรีโมท) / ประตูออโต้) */
/* [data-cta="21"] { --cta-img: url('cta-21.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- สินค้า: ประตูรั้วสแตนเลสบานสวิง ---------- */
/* กรอบที่ 22  (อยู่ใต้หัวข้อ: ประตูรั้วสแตนเลสบานสวิง ประตูรั้วบานสวิง ประต) */
/* [data-cta="22"] { --cta-img: url('cta-22.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 23  (อยู่ใต้หัวข้อ: ประตูรั้วสแตนเลสบานสวิง ประตูรั้วบานสวิง ประต) */
/* [data-cta="23"] { --cta-img: url('cta-23.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- สินค้า: ประตูรั้วบานพับ / ประตูบานเฟี้ยม ---------- */
/* กรอบที่ 24  (อยู่ใต้หัวข้อ: ประตูรั้วบานพับ / ประตูบานเฟี้ยม) */
/* [data-cta="24"] { --cta-img: url('cta-24.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 25  (อยู่ใต้หัวข้อ: ประตูรั้วบานพับ / ประตูบานเฟี้ยม) */
/* [data-cta="25"] { --cta-img: url('cta-25.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: ต่ายสแตนเลส ---------- */
/* กรอบที่ 26  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="26"] { --cta-img: url('cta-26.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 27  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="27"] { --cta-img: url('cta-27.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 28  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="28"] { --cta-img: url('cta-28.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 29  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="29"] { --cta-img: url('cta-29.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 30  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="30"] { --cta-img: url('cta-30.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 31  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="31"] { --cta-img: url('cta-31.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 32  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="32"] { --cta-img: url('cta-32.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 33  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="33"] { --cta-img: url('cta-33.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 34  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="34"] { --cta-img: url('cta-34.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 35  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="35"] { --cta-img: url('cta-35.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 36  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="36"] { --cta-img: url('cta-36.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 37  (อยู่ใต้หัวข้อ: ต่ายสแตนเลส (Tai Stainless) - เพื่อนคู่คิดเรื) */
/* [data-cta="37"] { --cta-img: url('cta-37.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: ประตูสแตนเลสกรุงเทพ1 ---------- */
/* กรอบที่ 38  (อยู่ใต้หัวข้อ: ส่งงานเรียบร้อย! ประตูสแตนเลสสวยหรู กรุงเทพมห) */
/* [data-cta="38"] { --cta-img: url('cta-38.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 39  (อยู่ใต้หัวข้อ: ส่งงานเรียบร้อย! ประตูสแตนเลสสวยหรู กรุงเทพมห) */
/* [data-cta="39"] { --cta-img: url('cta-39.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: ประตูสแตนเลสกาญจนบุรี ---------- */
/* กรอบที่ 40  (อยู่ใต้หัวข้อ: ยิ่งใหญ่อลังการ! ส่งมอบงานประตูสแตนเลสสูง 5 เ) */
/* [data-cta="40"] { --cta-img: url('cta-40.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 41  (อยู่ใต้หัวข้อ: ยิ่งใหญ่อลังการ! ส่งมอบงานประตูสแตนเลสสูง 5 เ) */
/* [data-cta="41"] { --cta-img: url('cta-41.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: พื้นที่ให้บริการ ---------- */
/* กรอบที่ 42  (อยู่ใต้หัวข้อ: พื้นที่ให้บริการทั้งหมดของเรามีอยู่ทั่วประเทศ) */
/* [data-cta="42"] { --cta-img: url('cta-42.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: งานสแตนเลสอบสี1 ---------- */
/* กรอบที่ 43  (อยู่ใต้หัวข้อ: ส่งงานประตูสแตนเลสอบสีดำสุดเท่) */
/* [data-cta="43"] { --cta-img: url('cta-43.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 44  (อยู่ใต้หัวข้อ: ส่งงานประตูสแตนเลสอบสีดำสุดเท่) */
/* [data-cta="44"] { --cta-img: url('cta-44.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: ราวบันไดและราวกันตก1 ---------- */
/* กรอบที่ 45  (อยู่ใต้หัวข้อ: ราวบันไดและราวกันตกสวยๆ พร้อมส่งมอบงานเรียบร้) */
/* [data-cta="45"] { --cta-img: url('cta-45.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 46  (อยู่ใต้หัวข้อ: ราวบันไดและราวกันตกสวยๆ พร้อมส่งมอบงานเรียบร้) */
/* [data-cta="46"] { --cta-img: url('cta-46.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: งานจันทบุรี1 ---------- */
/* กรอบที่ 47  (อยู่ใต้หัวข้อ: สแตนเลสอบสีดำสุดหรู ส่งตรงถึงจังหวัดจันทบุรี) */
/* [data-cta="47"] { --cta-img: url('cta-47.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 48  (อยู่ใต้หัวข้อ: สแตนเลสอบสีดำสุดหรู ส่งตรงถึงจังหวัดจันทบุรี) */
/* [data-cta="48"] { --cta-img: url('cta-48.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: งานปทุมธานี1 ---------- */
/* กรอบที่ 49  (อยู่ใต้หัวข้อ: ส่งงานเรียบร้อย! ประตูสแตนเลสอบสีดำ x อลูมิเน) */
/* [data-cta="49"] { --cta-img: url('cta-49.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 50  (อยู่ใต้หัวข้อ: ส่งงานเรียบร้อย! ประตูสแตนเลสอบสีดำ x อลูมิเน) */
/* [data-cta="50"] { --cta-img: url('cta-50.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: งานลาดกระบัง กรุงเทพ1 ---------- */
/* กรอบที่ 51  (อยู่ใต้หัวข้อ: ส่งงานความอลังการ! ประตูสแตนเลสและรั้วหน้าบ้า) */
/* [data-cta="51"] { --cta-img: url('cta-51.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 52  (อยู่ใต้หัวข้อ: ส่งงานความอลังการ! ประตูสแตนเลสและรั้วหน้าบ้า) */
/* [data-cta="52"] { --cta-img: url('cta-52.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: นนทบุรี ---------- */
/* กรอบที่ 53  (อยู่ใต้หัวข้อ: รับทำประตูรั้วสแตนเลส นนทบุรี ใกล้ฉัน สั่งทำ ) */
/* [data-cta="53"] { --cta-img: url('cta-53.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 54  (อยู่ใต้หัวข้อ: รับทำประตูรั้วสแตนเลส นนทบุรี ใกล้ฉัน สั่งทำ ) */
/* [data-cta="54"] { --cta-img: url('cta-54.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: นครปฐม1 ---------- */
/* กรอบที่ 55  (อยู่ใต้หัวข้อ: รับทำประตูรั้วสแตนเลส นครปฐม ใกล้ฉัน สั่งทำ ต) */
/* [data-cta="55"] { --cta-img: url('cta-55.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 56  (อยู่ใต้หัวข้อ: รับทำประตูรั้วสแตนเลส นครปฐม ใกล้ฉัน สั่งทำ ต) */
/* [data-cta="56"] { --cta-img: url('cta-56.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: ชลบุรี ---------- */
/* กรอบที่ 57  (อยู่ใต้หัวข้อ: รับทำประตูรั้วสแตนเลส ชลบุรี ใกล้ฉัน สั่งทำ ต) */
/* [data-cta="57"] { --cta-img: url('cta-57.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 58  (อยู่ใต้หัวข้อ: รับทำประตูรั้วสแตนเลส ชลบุรี ใกล้ฉัน สั่งทำ ต) */
/* [data-cta="58"] { --cta-img: url('cta-58.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- บทความ: ระยอง ---------- */
/* กรอบที่ 59  (อยู่ใต้หัวข้อ: รับทำประตูรั้วสแตนเลส ระยอง ใกล้ฉัน สั่งทำ ติ) */
/* [data-cta="59"] { --cta-img: url('cta-59.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */
/* กรอบที่ 60  (อยู่ใต้หัวข้อ: รับทำประตูรั้วสแตนเลส ระยอง ใกล้ฉัน สั่งทำ ติ) */
/* [data-cta="60"] { --cta-img: url('cta-60.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */

/* ---------- หน้าติดต่อเรา ---------- */
/* กรอบที่ 61  (อยู่ใต้หัวข้อ: ติดต่อเรา) */
/* [data-cta="61"] { --cta-img: url('cta-61.jpg'); --cta-overlay: rgba(15,61,40,0.78); } */


/* ===== กรอบเดียว: ข้อความลดความกังวล + ปุ่มโทร + ปุ่ม Line (ทุกจุดในเว็บ) ===== */
.hero-cta {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 760px;
  margin: 22px auto;
  padding: 18px 20px 20px;
  gap: 14px;
  position: relative;
  background:
    linear-gradient(var(--cta-overlay), var(--cta-overlay)),
    var(--cta-img),
    radial-gradient(circle at 12% 0%, rgba(255,213,74,0.22), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(6,199,85,0.22), transparent 50%),
    linear-gradient(135deg, #14532d 0%, #1b4332 55%, #0f3d28 100%);
  background-size: auto, cover, auto, auto, auto;
  background-position: 0 0, center, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
  border: 3px solid #ffd54a;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(20,83,45,0.35), inset 0 0 0 1px rgba(255,255,255,0.12);
}
.hero-cta::before {
  content: "💡อยากทราบราคา โทรเลย ไม่มีข้อผูกมัด ";
  flex: 0 0 100%;
  box-sizing: border-box;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  padding: 0 4px 12px;
  border-bottom: 1px dashed rgba(255,213,74,0.7);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.hero-cta .btn-call {
  background: linear-gradient(180deg, #ffe27a, #ffc929);
  color: #14301f;
  border: 2px solid #fff4c2;
}
.hero-cta .btn-line { border: 2px solid rgba(255,255,255,0.85); }
.hero-cta a { box-shadow: 0 4px 14px rgba(0,0,0,0.3); transition: transform .15s ease; }
.hero-cta a:hover { transform: translateY(-2px) scale(1.03); }

/* ปุ่มลอย: กรอบเดียวกัน (ข้อความ + โทร + Line) ปิดข้อความได้ */
.floating-cta {
  width: 214px;
  box-sizing: border-box;
  align-items: stretch !important;
  gap: 9px !important;
  padding: 10px;
  background:
    linear-gradient(var(--fab-overlay), var(--fab-overlay)),
    var(--fab-img),
    linear-gradient(135deg, #14532d, #1b4332);
  background-size: auto, cover, auto;
  background-position: 0 0, center, 0 0;
  background-repeat: no-repeat;
  border: 2.5px solid #ffd54a;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}
.floating-cta.collapsed {
  width: auto; padding: 0; background: none !important; border: 0; box-shadow: none;
  align-items: flex-end !important; gap: 12px !important;
}
.floating-cta:not(.collapsed) .fab-call { background: linear-gradient(180deg, #ffe27a, #ffc929); color: #14301f; }
.floating-cta a { justify-content: center; }
.floating-cta.collapsed a { justify-content: flex-start; }
.fab-note {
  position: relative;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  padding: 0 20px 7px 2px;
  border-bottom: 1px dashed rgba(255,213,74,0.7);
}
.fab-note button {
  position: absolute; top: -2px; right: -2px;
  border: 0; background: transparent; color: #ffd54a;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px;
}

/* ช่องที่รอใส่ข้อมูลจริง (ค้นหา 【 เพื่อหาให้ครบ) */
.ph {
  background: #fff3cd; border: 1px dashed #d4a017; color: #7a5b00;
  padding: 0 6px; border-radius: 4px; font-weight: 700; font-size: 0.92em;
}

/* ===== ส่วนใหม่ในหน้าแรก ===== */
.home-sec { max-width: 1000px; margin: 34px auto; padding: 0 16px; }
.home-sec .section-title { margin-bottom: 8px; }
.sec-sub { text-align: center; color: #666; font-size: 14.5px; margin: 0 0 20px; }
.check-list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 12px; }
.check-list li {
  background: #fff; border-radius: 12px; padding: 14px 16px 14px 52px; position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06); color: #333; font-size: 15.5px; line-height: 1.6;
}
.check-list li::before {
  content: "✔"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: #2d6a4f; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.check-list li strong { color: #1b4332; }
.more-box { max-width: 900px; margin: 22px auto 0; padding: 0 16px; }
.more-box > summary {
  cursor: pointer; text-align: center; color: #2d6a4f; font-weight: 700; font-size: 15px;
  padding: 10px; list-style: none;
}
.more-box > summary::-webkit-details-marker { display: none; }
.more-box[open] > summary { margin-bottom: 10px; }

.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: 0 3px 12px rgba(0,0,0,0.07); }
.cmp-table { width: 100%; min-width: 0; border-collapse: collapse; background: #fff; font-size: 14.5px; }
.cmp-table th { background: #2d6a4f; color: #fff; padding: 12px 10px; text-align: center; font-weight: 700; }
.cmp-table td { padding: 11px 10px; border-top: 1px solid #e6efe9; text-align: center; color: #444; vertical-align: middle; line-height: 1.55; }
.cmp-table td:first-child { text-align: left; font-weight: 700; color: #1b4332; background: #f7fbf8; }
.cmp-table .us { background: #eef9f1; color: #1b4332; font-weight: 700; }
.cmp-table th.us { background: #1b4332; color: #fff; }
.cmp-table.wide { min-width: 540px; }
.scroll-hint { display: none; }
.cmp-table .no { color: #8a8a8a; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.price-card { background: #fff; border-radius: 14px; padding: 20px 16px; text-align: center; box-shadow: 0 3px 12px rgba(0,0,0,0.07); border-top: 4px solid #2d6a4f; }
.price-card h3 { font-size: 16.5px; color: #1b4332; margin-bottom: 8px; }
.price-card .price-line { font-size: 15px; color: #444; line-height: 1.8; }
.sec-note { text-align: center; color: #666; font-size: 13.5px; margin-top: 14px; }
.sec-note-big { color: #1b4332; font-size: 21px; line-height: 1.5; margin-top: 18px; }
@media (max-width: 600px) { .sec-note-big { font-size: 17px; } }
/* ตาราง "เลือกประตูแบบไหนดี": ช่องราคาสีเดียวกับชื่อประเภทประตู */
#compare-door .cmp-table td:last-child { color: #1b4332; }

.warranty-box { background: #fff; border-radius: 14px; box-shadow: 0 3px 12px rgba(0,0,0,0.07); padding: 22px 20px; max-width: 760px; margin: 0 auto 22px; border-left: 6px solid #2d6a4f; }
.warranty-box h3 { color: #1b4332; font-size: 18px; margin-bottom: 10px; }
.warranty-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.warranty-box li { color: #444; font-size: 15px; line-height: 1.7; padding-left: 26px; position: relative; }
.warranty-box li::before { content: "🛡️"; position: absolute; left: 0; top: 0; }

.wf-search { position: relative; max-width: 440px; margin: 0 auto 14px; }
.wf-search .wf-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; pointer-events: none; }
.wf-search input { width: 100%; padding: 11px 16px 11px 40px; font-size: 16px; border: 1.5px solid #1b4332; border-radius: 24px; background: #fff; color: #333; font-family: inherit; }
.wf-search input:focus { outline: 2px solid #95d5b2; outline-offset: 1px; }
.wf-count { text-align: center; color: #666; font-size: 14px; margin: -8px 0 16px; }
/* กล่อง "ยังไม่มีผลงานแบบนี้ในคลัง" (ขึ้นเมื่อค้นหา/กดปุ่มแล้วไม่เจอ) */
.wf-empty[hidden] { display: none; }
.wf-empty { max-width: 520px; margin: 0 auto 24px; padding: 22px 18px; text-align: center; background: #fff7f7; border: 2px solid #cc0000; border-radius: 14px; box-shadow: 0 4px 14px rgba(204,0,0,0.12); }
.wf-empty-title { color: #cc0000; font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.wf-empty-sub { color: #444; font-size: 15.5px; margin-bottom: 16px; }
.wf-empty-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.wf-empty-cta a { display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px; border-radius: 26px; color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.wf-empty-call { background: #2d6a4f; }
.wf-empty-line { background: #06C755; }
.wf-empty-cta a:hover { filter: brightness(1.08); }
.works-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 20px; }
.wf-btn { background: #fff; color: #1b4332; border: 1.5px solid #1b4332; border-radius: 20px; padding: 7px 16px; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.wf-btn:hover { background: #eef5f0; }
.wf-btn.on { background: #cc0000; border-color: #cc0000; color: #fff; }
.wf-btn .wf-n { font-weight: 400; opacity: 0.8; }
.work-card.wf-hide { display: none; }
.proof-grid, .works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.proof-card, .work-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,0.07); display: flex; flex-direction: column; }
.slot-img {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: #f4f4f0; border-bottom: 1px dashed #c9c9bd;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px;
}
/* รูปจริง: เต็มกรอบพอดี (ครอปส่วนเกิน) */
.slot-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.slot-img.has-img { padding: 0; border-bottom: 0; cursor: zoom-in; background: #111; }
.slot-img.has-img img { display: none; }
.slot-img.has-img img.on { display: block; }
.slot-img .si-count, .slot-img .si-zoom {
  position: absolute; bottom: 8px; padding: 3px 9px; border-radius: 14px; font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,0.6); color: #fff; pointer-events: none;
}
.slot-img .si-count { right: 8px; }
.slot-img .si-zoom { left: 8px; }
.slot-img .si-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,0.55); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.slot-img .si-prev { left: 8px; } .slot-img .si-next { right: 8px; }

/* ===== ดูรูปขนาดใหญ่ (เลื่อนรูปได้ + ปุ่มโทร) ===== */
.gx { position: fixed; inset: 0; z-index: 10050; background: rgba(0,0,0,0.93); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 14px 10px; box-sizing: border-box; }
.gx.open { display: flex; }
.gx-stage { position: relative; width: 100%; max-width: 1000px; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.gx-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.gx-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.18); color: #fff; font-size: 24px; cursor: pointer; }
.gx-nav:hover { background: rgba(255,255,255,0.35); }
.gx-prev { left: 4px; } .gx-next { right: 4px; }
.gx-close { position: absolute; top: 10px; right: 14px; border: 0; background: rgba(255,255,255,0.18); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; cursor: pointer; z-index: 2; }
.gx-info { flex: 0 0 auto; width: 100%; max-width: 560px; text-align: center; color: #fff; padding-top: 10px; }
.gx-count { font-size: 13px; opacity: 0.8; margin-bottom: 4px; }
.gx-cap { font-size: 14px; line-height: 1.6; opacity: 0.95; margin-bottom: 10px; max-height: 22vh; overflow: auto; }
.gx-call {
  display: block; width: 100%; box-sizing: border-box; text-align: center; padding: 13px 16px; border-radius: 30px;
  font-weight: 800; font-size: 17px; text-decoration: none; color: #14301f !important;
  background: linear-gradient(180deg, #ffe27a, #ffc929); border: 2px solid #fff4c2; box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
@media (max-width: 480px) { .gx-nav { width: 38px; height: 38px; font-size: 20px; } .gx-call { font-size: 16px; } }
.proof-card .cap, .work-card .cap { padding: 12px 14px; font-size: 14px; color: #555; line-height: 1.7; flex: 1; }
.work-card .cap strong { color: #1b4332; }
.work-card .card-call { margin: 0 14px 14px; }

/* ปุ่มโทรใต้การ์ดสินค้า / ผลงาน */
.card-call {
  display: block; text-align: center; background: #2d6a4f; color: #fff !important;
  padding: 10px 12px; border-radius: 24px; font-weight: 700; font-size: 14px;
  text-decoration: none; margin-top: 12px; box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.card-call:hover { background: #1b4332; }

@media (max-width: 480px) {
  .hero-cta { padding: 14px 12px 16px; }
  .hero-cta::before { font-size: 15px; }
  .floating-cta { width: 178px; padding: 8px; }
  .fab-note { font-size: 11.5px; }
  .home-sec { margin: 26px auto; }
  .cmp-table { font-size: 13px; }
  .cmp-table th, .cmp-table td { padding: 9px 6px; }
  .scroll-hint { display: block; text-align: center; color: #888; font-size: 12.5px; margin-top: 6px; }
}

/* ===== ตารางบนมือถือ: ยังเป็นตาราง แต่ย่อให้พอดีจอ ไม่ต้องเลื่อนซ้าย-ขวา ===== */
.cmp-table.wide { min-width: 0; }
.scroll-hint { display: none !important; }
@media (max-width: 600px) {
  .cmp-wrap { overflow: visible; }
  .cmp-table { table-layout: fixed; width: 100%; font-size: 12px; line-height: 1.45; }
  .cmp-table th, .cmp-table td { padding: 7px 4px; overflow-wrap: anywhere; word-break: normal; }
  .cmp-table th { font-size: 11.5px; line-height: 1.35; }
  .cmp-table td:first-child { width: 23%; font-size: 12px; }
}
@media (max-width: 360px) {
  .cmp-table { font-size: 11px; }
  .cmp-table th { font-size: 10.5px; }
  .cmp-table td:first-child { font-size: 11px; }
}

/* ตารางข้อดี-ข้อเสีย (หน้าแรก): 2 คอลัมน์เท่ากัน คอลัมน์ข้อดีพื้นเขียวอ่อน ไม่ใช่ช่องหัวข้อแบบตาราง 304 */
.cmp-table.pros-cons th, .cmp-table.pros-cons td { width: 50%; }
.cmp-table.pros-cons td:first-child { background: #eef9f1; color: #1b4332; font-weight: 700; text-align: center; }
.cmp-table.pros-cons td:last-child { color: #555; }

/* มือถือ: ซ่อนข้อความในกล่องปุ่มลอย เหลือแค่ปุ่มโทรกับ Line ไม่ให้บังเนื้อหา / ย่อหน้าหน้าแรกไม่ชิดขอบจอ / เมนูไม่ล้นบนจอแคบ */
@media (max-width: 768px) {
  .fab-note { display: none; }
  .floating-cta {
    width: auto; padding: 0; background: none !important; border: 0; box-shadow: none;
    align-items: flex-end !important; gap: 10px !important;
  }
  #home .detail-header { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 375px) {
  .logo img { height: 26px; }
  .nav-container { padding: 10px 4px; gap: 3px; }
  .nav-menu a { padding: 6px 2px; font-size: 10.5px; }
}
@media (max-width: 600px) {
  .cmp-table.pros-cons td:first-child { width: 50%; font-size: 12px; }
}
