@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════
   TANGTANGSARN  style.css  v5
   Font    : Kanit (ฟ้อนด์คณิต)
   Layout  : Centered blocks, max 1000px image
   Label   : Modern pill design with hue-based color
   Mobile  : No label, no frame, full-width
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────── */
:root {
  --gold:        #C8960C;
  --gold-lt:     #F0C740;
  --green:       #1A3A2A;
  --green-mid:   #2D5A3D;
  --cream:       #FAF7F0;
  --white:       #FFFFFF;
  --text-1:      #111111;
  --text-2:      #444444;
  --text-3:      #888888;
  --line-green:  #06C755;
  --call-red:    #E53935;
  --border:      rgba(0,0,0,0.08);
  --shadow-1:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-2:    0 4px 16px rgba(0,0,0,0.09);
  --shadow-3:    0 8px 32px rgba(0,0,0,0.12);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --font:        'Kanit', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:  'Kanit', Georgia, serif;
  --sticky-h:    72px;
  --page-max:    680px;   /* content max width */
  --img-max:     1000px;  /* image max width on desktop */
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Force Kanit font everywhere ────────────────────── */
*,
html, body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, ul, ol,
div, section, header, footer, nav, main,
input, textarea, select, button,
.prose, .prose *,
.block-body, .block-body *,
.site-header, .site-header *,
.sticky-bar, .sticky-bar *,
.btn-cta, .nav-fb-btn {
  font-family: 'Kanit', 'Helvetica Neue', Arial, sans-serif !important;
}
html   { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body   {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-1);
  background: #F6F4EF;
  overflow-x: hidden;
}
img    { max-width: 100%; height: auto; display: block; }
a      { color: var(--gold); text-decoration: none; }
a:hover{ color: #8B6508; }

/* ── Utility ─────────────────────────────────────────── */
.content-wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════ */
.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-tel {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-lt);
  font-weight: 600;
  font-size: .88rem;
}
.nav-tel:hover { color: #fff; }
.nav-tel__icon { font-size: 1rem; }
.nav-tel__num  { white-space: nowrap; }
@media (max-width: 400px) { .nav-tel__num { display: none; } }
.nav-line-btn {
  background: var(--line-green);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  transition: opacity .15s;
}
.nav-line-btn:hover { opacity: .88; color: #fff; }

/* ════════════════════════════════════════════════════════
   BLOCK SYSTEM
════════════════════════════════════════════════════════ */
.page-main { padding: 0; }

.kv-block { width: 100%; }

/* Block wrapper — centers content on desktop */
.kv-block__wrap {
  width: 100%;
}

.nav-fb-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: #1877F2 !important;
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .15s;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(24,119,242,.35);
  border: none;
}
.nav-fb-btn:hover,
.nav-fb-btn:visited,
.nav-fb-btn:active {
  background: #1464D2 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(24,119,242,.5);
}
.fb-icon  { flex-shrink: 0; fill: #fff; }
.fb-label { white-space: nowrap; color: #fff; }
/* แสดง fb-label ทุก screen size */

/* ── Label Bar — สีดำ ตัวหนังสือขาว โดดเด่น ────────── */
.block-label {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 38px;
  background: #111111;
  position: relative;
}
/* Gold left stripe */
.block-label::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold-lt);
}
/* Gold dot pulse */
.block-label__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-lt);
  flex-shrink: 0;
  animation: dot-pulse 3s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%       { opacity: .45; transform: scale(1.5); }
}
/* Label name — ขาว */
.block-label__name {
  font-size: .82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
/* show-on-mobile class — แสดงบนมือถือด้วย */
.block-label.show-mobile {
  display: flex !important;
}

/* ── Block body ──────────────────────────────────────── */
.block-body { width: 100%; }

/* ════════════════════════════════════════════════════════
   IMAGE BLOCK
════════════════════════════════════════════════════════ */
.bk-image { background: #fff; }
.bk-image__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bk-image__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.bk-image__figure--clickable { cursor: pointer; }
.bk-image__stage { position: relative; width: 100%; display: flex; justify-content: center; }
/* ป้ายบอกว่าคลิกได้ */
.bk-image__tap-hint {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: .76rem; font-weight: 600; font-family: var(--font);
  padding: 6px 11px; border-radius: 999px;
  backdrop-filter: blur(3px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  animation: tap-hint-pulse 2.4s ease-in-out infinite;
}
@keyframes tap-hint-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
.bk-image__figure.is-caption-open .bk-image__tap-hint { opacity: 0; transform: translateY(6px); }

/* คำบรรยาย: ซ่อนไว้ก่อน เปิดเมื่อคลิกรูป */
.bk-image__caption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text-2);
  width: 100%;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--green) 5%, #FBFAF7);
  border-top: 2px solid var(--gold);
  /* ── collapsed state ── */
  max-height: 0;
  padding: 0 18px;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, padding .4s ease, opacity .35s ease;
}
.bk-image__figure.is-caption-open .bk-image__caption {
  max-height: 600px;
  padding: 14px 18px;
  opacity: 1;
}
.caption-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}
.bk-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: .95rem;
  background: #f5f5f5;
}

/* ════════════════════════════════════════════════════════
   TEXT / HTML BLOCK
════════════════════════════════════════════════════════ */
.bk-prose {
  background: var(--cream);
  padding: 36px 20px;
}

/* Prose typography */
.prose { max-width: 640px; margin: 0 auto; }
.prose h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.3rem);
  font-weight: 800;
  color: var(--green);
  line-height: 1.25;
  margin-bottom: .8rem;
}
.prose h2 {
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--green);
  margin: 1.4rem 0 .55rem;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}
.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-mid);
  margin: 1.1rem 0 .4rem;
}
.prose p  { color: var(--text-2); margin-bottom: .9rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: .9rem; }
.prose li { color: var(--text-2); margin-bottom: .3rem; }
.prose strong { color: var(--green); font-weight: 700; }
.prose em     { color: var(--gold); font-style: normal; font-weight: 600; }
.prose a      { color: var(--gold); border-bottom: 1px solid rgba(200,150,12,.3); }

/* ════════════════════════════════════════════════════════
   YOUTUBE BLOCK — เต็มจอ + ขอบสีดำ
════════════════════════════════════════════════════════ */
.bk-video {
  background: #000000;
  padding: 0;
  position: relative;
}

/* ขอบสีดำ Desktop */
.bk-video__inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #000;
  padding: 12px 12px;  /* ขอบดำรอบวิดีโอ */
}

.video-ratio {
  position: relative;
  padding-bottom: 56.25%;  /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ════════════════════════════════════════════════════════
   CTA BUTTON BLOCK
════════════════════════════════════════════════════════ */
.bk-cta {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-mid) 100%);
  padding: 36px 20px;
  display: flex;
  justify-content: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 40px;
  background: linear-gradient(135deg, #D4A017 0%, #F0C740 50%, #D4A017 100%);
  color: #1A2800 !important;
  font-family: var(--font);
  font-size: clamp(.95rem, 3vw, 1.2rem);
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(200,150,12,.4);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: cta-glow 2.8s ease-in-out infinite;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(200,150,12,.6);
  color: #1A2800 !important;
}
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(200,150,12,.4); }
  50%       { box-shadow: 0 4px 30px rgba(200,150,12,.68); }
}

/* ════════════════════════════════════════════════════════
   DIVIDER BLOCK
════════════════════════════════════════════════════════ */
.bk-divider {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}
.bk-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,150,12,.35), transparent);
}
.bk-divider__gem {
  font-size: .8rem;
  color: var(--gold);
  opacity: .7;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   TESTIMONIAL BLOCK
════════════════════════════════════════════════════════ */
.bk-review {
  background: #F7F4EE;
  padding: 36px 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-2);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5rem;
  color: var(--gold-lt);
  font-family: var(--font-serif);
  line-height: 1;
  opacity: .35;
}
.review-stars {
  color: #F0C740;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-lt);
  margin-bottom: 10px;
}
.review-content .review-text {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.review-content .reviewer {
  font-weight: 700;
  color: var(--green-mid);
  font-size: .88rem;
}

/* ════════════════════════════════════════════════════════
   PRODUCT CARD BLOCK
════════════════════════════════════════════════════════ */
.bk-product {
  background: var(--white);
  padding: 36px 20px;
}
.product-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  max-width: 660px;
  margin: 0 auto;
}
.product-card__img-wrap { flex-shrink: 0; }
.product-card__img      { width: 180px; height: 180px; object-fit: cover; }
.product-card__body     { padding: 20px 20px 20px 0; flex: 1; }

/* ════════════════════════════════════════════════════════
   VIDEO MP4 BLOCK — สัดส่วน 3:4 เต็มจอ ขอบดำ
════════════════════════════════════════════════════════ */
.bk-video-mp4 {
  background: #000;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 8px solid #000;  /* ขอบสีดำ */
  box-sizing: border-box;
}

.bk-video-mp4__player {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 4;     /* สัดส่วน 3:4 */
  object-fit: contain;
  background: #000;
  display: block;
}

/* Desktop: จำกัดความสูงสูงสุด */
@media (min-width: 768px) {
  .bk-video-mp4 {
    border-width: 12px;
  }
  .bk-video-mp4__player {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
  }
}

/* Mobile: เต็มความกว้าง */
@media (max-width: 767px) {
  .bk-video-mp4 {
    border-width: 6px;
  }
  .bk-video-mp4__player {
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════════
   BLOG SECTION — List Layout
════════════════════════════════════════════════════════ */
.blog-section {
  background: var(--green);
  padding: 48px 0 64px;
}
.blog-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Heading */
.blog-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  font-weight: 800;
  color: var(--gold-lt);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.blog-heading__icon { font-size: 1.3rem; }
.blog-heading__count {
  margin-left: auto;
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Blog list */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Blog row item */
.blog-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .15s;
}
.blog-row:last-child { border-bottom: none; }
.blog-row:hover { background: rgba(255,255,255,.03); }

/* Thumbnail 60x60 */
.blog-row__img-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.blog-row__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.blog-row__img-wrap:hover .blog-row__img { transform: scale(1.06); }
.blog-row__img-placeholder {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: var(--radius-sm);
}

/* Body */
.blog-row__body {
  flex: 1;
  min-width: 0;
}
.blog-row__title {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 4px;
  text-decoration: none;
  transition: color .15s;
  /* ตัดข้อความเกิน 2 บรรทัด */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-row__title:hover { color: var(--gold-lt); }
.blog-row__excerpt {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
  margin-bottom: 6px;
  /* 100 chars จัดการโดย PHP แล้ว */
}
.blog-row__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.blog-row__date {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}
.blog-row__read-more {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-lt);
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .15s;
}
.blog-row__read-more:hover { opacity: .8; color: var(--gold-lt); }

/* Empty */
.blog-empty {
  text-align: center;
  color: rgba(255,255,255,.4);
  padding: 32px 0;
  font-size: .9rem;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.blog-pag__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.blog-pag__btn--prev,
.blog-pag__btn--next {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.blog-pag__btn--prev:hover,
.blog-pag__btn--next:hover {
  background: var(--gold);
  color: #1A2800;
  border-color: var(--gold);
}
.blog-pag__btn--disabled {
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.08);
  cursor: not-allowed;
}
.blog-pag__pages {
  display: flex;
  gap: 6px;
  align-items: center;
}
.blog-pag__num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255,255,255,.6);
  transition: all .15s;
}
.blog-pag__num:hover { background: rgba(255,255,255,.12); color: #fff; }
.blog-pag__num--active {
  background: var(--gold);
  color: #1A2800 !important;
  pointer-events: none;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: #0d1108;
  color: #666;
  text-align: center;
  padding: 22px 16px;
  font-size: .8rem;
}

/* ════════════════════════════════════════════════════════
   STICKY BAR
════════════════════════════════════════════════════════ */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  z-index: 9999;
  box-shadow: 0 -3px 16px rgba(0,0,0,.2);
}
.sticky-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font);
  padding: 8px 6px;
  -webkit-tap-highlight-color: transparent;
  transition: filter .15s, transform .15s;
  position: relative;
}
.sticky-bar__btn:active { filter: brightness(.82); transform: scale(.98); }
.sticky-bar__btn--call  { background: linear-gradient(135deg, #F0524A, var(--call-red)); }
.sticky-bar__btn--line  { background: linear-gradient(135deg, #1ED760, var(--line-green)); }
.sticky-bar__btn--line::before,
.sticky-bar__btn--call::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: rgba(255,255,255,.25);
}
.sb-icon  {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
}
.sb-icon svg { display: block; }
.sb-text  { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1; }
.sb-label { font-size: .92rem; font-weight: 700; line-height: 1.1; color: #fff; }
.sb-sub   { font-size: .72rem; opacity: .9; line-height: 1; color: #fff; letter-spacing: .2px; }
.sticky-spacer { height: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px)); }

/* ════════════════════════════════════════════════════════
   DESKTOP  ≥ 768px
   – Show label bar
   – Frame each block
   – Image centered max 1000px
════════════════════════════════════════════════════════ */
@media (min-width: 768px) {

  /* Show label */
  .block-label { display: flex; }

  /* Outer spacing between blocks */
  .kv-block {
    padding: 0 20px;
    margin-bottom: 20px;
  }
  .kv-block:last-child { margin-bottom: 40px; }

  /* Frame */
  .kv-block__wrap {
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    background: var(--white);
  }

  /* IMAGE: centered 1000px */
  .bk-image { background: #ECEAE4; }
  .bk-image__figure {
    align-items: center;
    padding: 20px 0 0;
  }
  .bk-image__img {
    width: 100%;
    max-width: var(--img-max);   /* 1000px */
    max-height: 500px;
    object-fit: contain;         /* ไม่ตัดขอบ */
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .bk-image__caption {
    max-width: var(--img-max);
    display: flex;
  }

  /* TEXT */
  .bk-prose { padding: 40px 48px; }
  .prose { max-width: 680px; }

  /* VIDEO — เต็มความกว้าง block ไม่มี padding ด้านข้าง */
  .bk-video { padding: 0 !important; background: #000 !important; }
  .bk-video__inner {
    padding: 16px;  /* ขอบดำรอบวิดีโอ */
  }

  /* CTA */
  .bk-cta { padding: 44px 40px; }

  /* REVIEW */
  .bk-review { padding: 48px 40px; }

  /* PRODUCT */
  .bk-product { padding: 48px 40px; }
  .product-card__img { width: 220px; height: 220px; }
  .product-card__img-wrap { flex-shrink: 0; }

  /* Sticky center */
  .sticky-bar {
    max-width: 460px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
  }
}

/* ════════════════════════════════════════════════════════
   MOBILE  < 768px
   – No label, no frame, full-width
════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .block-label:not(.show-mobile) { display: none !important; }
  .block-label.show-mobile { display: flex !important; }

  .kv-block { padding: 0; margin-bottom: 0; }
  .kv-block__wrap {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  /* Thin separator between blocks */
  .kv-block + .kv-block .block-body { border-top: 1px solid rgba(0,0,0,.06); }

  .bk-image__img  { max-height: none; border-radius: 0; }

  .bk-prose  { padding: 28px 20px; }
  .bk-video  { padding: 20px; }
  .bk-cta    { padding: 28px 20px; }
  .bk-review { padding: 28px 20px; }
  .bk-product{ padding: 24px 20px; }

  .product-card { flex-direction: column; }
  .product-card__img { width: 100%; height: 220px; }
  .product-card__img-wrap { width: 100%; }
  .product-card__body { padding: 16px; }

  .btn-cta { max-width: 100%; width: 100%; }
}

/* ── Fade-in animation ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.kv-block {
  animation: fadeUp .45s ease both;
}
.kv-block:nth-child(1)  { animation-delay: .04s; }
.kv-block:nth-child(2)  { animation-delay: .08s; }
.kv-block:nth-child(3)  { animation-delay: .12s; }
.kv-block:nth-child(4)  { animation-delay: .16s; }
.kv-block:nth-child(n+5){ animation-delay: .20s; }
/* ════════════════════════════════════════════════════════
   ADMIN BADGE (โลโก้ลิงก์หลังบ้าน — เห็นเฉพาะแอดมิน)
════════════════════════════════════════════════════════ */
.brand-logo { display: inline-flex; align-items: center; gap: 8px; }
.brand-admin-badge {
  font-size: .7rem;
  font-weight: 700;
  color: #1A3A2A;
  background: var(--gold-lt);
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* ════════════════════════════════════════════════════════
   REVIEWS SECTION (รีวิวลูกค้า)
════════════════════════════════════════════════════════ */
.reviews-section {
  background: #F4EFE6; /* fallback สำหรับเบราว์เซอร์เก่า */
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.02) 100%),
    color-mix(in srgb, var(--green) 7%, #FAF7F0);
  padding: 40px 16px 48px;
  transition: background .3s;
}
.reviews-wrap { max-width: 720px; margin: 0 auto; }
.reviews-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.reviews-title {
  font-size: 1.5rem; font-weight: 800; color: var(--green);
  display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap;
}
.reviews-title__icon { font-size: 1.3rem; }
/* หัวข้อแก้ไขได้ (เฉพาะแอดมิน) */
.reviews-title [contenteditable="true"] {
  outline: none;
  border-bottom: 2px dashed transparent;
  padding: 0 4px; border-radius: 4px;
  transition: border-color .15s, background .15s;
  cursor: text;
}
.reviews-title [contenteditable="true"]:hover,
.reviews-title [contenteditable="true"]:focus {
  border-bottom-color: var(--gold);
  background: rgba(0,0,0,.03);
}
.reviews-title__save {
  display: none;
  background: var(--green-mid); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  font-size: .95rem; line-height: 1; transition: filter .15s, transform .15s;
}
.reviews-title__save.is-show { display: inline-flex; align-items: center; justify-content: center; }
.reviews-title__save:hover { filter: brightness(1.1); transform: translateY(-1px); }
.reviews-title__hint {
  font-size: .7rem; font-weight: 400; color: var(--text-3);
  align-self: center;
}
.reviews-title__hint.is-dirty { color: #D8392B; }
.reviews-admin-btn {
  font-size: .85rem; font-weight: 700; color: #fff;
  background: var(--green-mid); padding: 8px 16px; border-radius: 999px;
  text-decoration: none; transition: background .15s, transform .15s;
  box-shadow: var(--shadow-1);
}
.reviews-admin-btn:hover { background: var(--green); transform: translateY(-1px); }

.reviews-list { display: flex; flex-direction: column; gap: 18px; }

.rvx-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-2);
  transition: box-shadow .2s, transform .2s;
}
.rvx-card:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); }
.rvx-card::before {
  content: "\201C";
  position: absolute; top: 6px; right: 22px;
  font-family: Georgia, serif; font-size: 4rem; line-height: 1;
  color: var(--gold-lt); opacity: .35;
}
.rvx-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rvx-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--cream); box-shadow: 0 2px 8px rgba(0,0,0,.12);
  flex: none; background: #EEE;
}
.rvx-avatar--ph {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #B6A98A;
}
.rvx-meta { display: flex; flex-direction: column; gap: 4px; }
.rvx-name { font-weight: 700; font-size: 1.05rem; color: var(--text-1); }
.rvx-stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.rvx-stars--dim { color: #DDD; }

.rvx-topic {
  display: inline-flex; align-items: center; gap: 6px;
  color: #C0392B; font-weight: 700; font-size: .95rem;
  margin-bottom: 10px;
}
.rvx-topic svg { flex: none; }

.rvx-content {
  color: var(--text-2); font-size: .98rem; line-height: 1.75;
  margin: 0;
}

.rvx-edit {
  display: inline-block; margin-top: 12px;
  font-size: .8rem; font-weight: 700; color: var(--green-mid);
  background: rgba(45,90,61,.08); padding: 5px 12px; border-radius: 8px;
  text-decoration: none; transition: background .15s;
}
.rvx-edit:hover { background: rgba(45,90,61,.16); }

.reviews-empty {
  background: var(--white); border: 1px dashed var(--border);
  border-radius: var(--radius-md); padding: 28px; text-align: center;
  color: var(--text-3);
}

@media (max-width: 767px) {
  .reviews-section { padding: 28px 12px 36px; }
  .reviews-title { font-size: 1.3rem; }
  .rvx-card { padding: 18px 18px; }
  .rvx-avatar { width: 48px; height: 48px; }
  .rvx-content { font-size: .94rem; }
}

/* ════════════════════════════════════════════════════════
   ADMIN: เปลี่ยนรูปโลโก้/แบนเนอร์ (เห็นเฉพาะแอดมิน)
════════════════════════════════════════════════════════ */
.brand-logo--editable { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.brand-logo__link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-logo__edit {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font); font-size: .72rem; font-weight: 700;
  color: #fff; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.35);
  padding: 4px 9px; border-radius: 999px; cursor: pointer;
  transition: background .15s, transform .15s; white-space: nowrap;
}
.brand-logo__edit:hover { background: var(--green-mid); transform: translateY(-1px); }
.brand-logo__edit svg { flex: none; }

/* Modal */
.logo-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.logo-modal.is-open { display: block; }
.logo-modal__backdrop { position: absolute; inset: 0; background: rgba(10,20,15,.6); backdrop-filter: blur(2px); }
.logo-modal__box {
  position: relative; z-index: 1;
  max-width: 440px; margin: 8vh auto 0; width: calc(100% - 32px);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 22px 22px 20px;
  font-family: var(--font); max-height: 84vh; overflow-y: auto;
}
.logo-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.logo-modal__head h3 { margin: 0; font-size: 1.1rem; color: var(--green); }
.logo-modal__close {
  background: none; border: none; font-size: 1.8rem; line-height: 1;
  color: var(--text-3); cursor: pointer; padding: 0 4px;
}
.logo-modal__close:hover { color: var(--text-1); }

.logo-modal__preview { margin-bottom: 16px; }
.logo-modal__preview-label { display: block; font-size: .78rem; font-weight: 700; color: var(--text-3); margin-bottom: 6px; }
.logo-modal__preview-stage {
  background: linear-gradient(135deg, #1A3A2A, #2D5A3D);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
  min-height: 64px; display: flex; align-items: center; justify-content: center;
}
.logo-modal__preview-stage img { max-height: 48px; max-width: 80%; object-fit: contain; }

.logo-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: 22px 16px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.logo-drop:hover, .logo-drop.is-drag { border-color: var(--green-mid); background: rgba(45,90,61,.05); }
.logo-drop__icon { font-size: 1.6rem; }
.logo-drop__text { font-size: .92rem; font-weight: 700; color: var(--text-1); }
.logo-drop__hint { font-size: .76rem; color: var(--text-3); }

.logo-or { text-align: center; font-size: .78rem; color: var(--text-3); margin: 14px 0 8px; }
.logo-url-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 9px;
  font-family: var(--font); font-size: .9rem; color: var(--text-1);
}
.logo-url-input:focus { outline: none; border-color: var(--green-mid); }

.logo-modal__status { min-height: 20px; font-size: .84rem; margin: 10px 0 4px; }
.logo-modal__status.is-ok   { color: #1E8E4E; }
.logo-modal__status.is-err  { color: #D8392B; }
.logo-modal__status.is-info { color: var(--text-3); }

.logo-modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.logo-btn {
  font-family: var(--font); font-size: .9rem; font-weight: 700;
  padding: 10px 18px; border-radius: 10px; cursor: pointer; border: none;
  transition: filter .15s, transform .15s;
}
.logo-btn:active { transform: scale(.97); }
.logo-btn--ghost { background: var(--cream); color: var(--text-2); }
.logo-btn--primary { background: var(--green-mid); color: #fff; }
.logo-btn--primary:hover { filter: brightness(1.08); }
.logo-btn--primary:disabled { opacity: .6; cursor: default; }

@media (max-width: 600px) {
  .brand-logo__edit .brand-logo__edit-text { display: none; }
  .logo-modal__box { margin-top: 5vh; }
}

/* ════════════════════════════════════════════════════════
   THEME PALETTES (เลือกสีธีมเว็บ — แอดมินเปลี่ยนได้)
   ทับค่าตัวแปรสีหลัก 4 ตัว: --gold, --gold-lt, --green, --green-mid
════════════════════════════════════════════════════════ */

/* 🟡 ทอง (ค่าเริ่มต้น) */
[data-theme="gold"] {
  --gold:      #C8960C;
  --gold-lt:   #F0C740;
  --green:     #1A3A2A;
  --green-mid: #2D5A3D;
}

/* 🔴 แดงเข้มเลือดหมู (maroon) */
[data-theme="maroon"] {
  --gold:      #B8862E;
  --gold-lt:   #E8B84B;
  --green:     #4A1118;   /* เลือดหมูเข้ม (header/heading) */
  --green-mid: #7A1E28;   /* แดงเลือดหมู */
}

/* ⚫ ดำเทา (charcoal) */
[data-theme="charcoal"] {
  --gold:      #B0883C;
  --gold-lt:   #D8B45E;
  --green:     #1C1F24;   /* ดำเทาเข้ม */
  --green-mid: #3A4048;   /* เทากลาง */
}

/* 🔵 น้ำเงินฟ้า (blue) */
[data-theme="blue"] {
  --gold:      #1E88C7;   /* ฟ้าสด (accent) */
  --gold-lt:   #4DB6E8;
  --green:     #0D2A4A;   /* น้ำเงินเข้ม (header) */
  --green-mid: #1B4F86;   /* น้ำเงินกลาง */
}

/* ── ปุ่มเลือกธีม (เห็นเฉพาะแอดมิน) ── */
.theme-switcher {
  position: fixed;
  right: 14px;
  bottom: calc(var(--sticky-h) + 16px);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.theme-switcher__toggle {
  width: 48px; height: 48px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--green-mid); color: #fff;
  font-size: 1.4rem; line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
.theme-switcher__toggle:hover { transform: rotate(20deg) scale(1.05); }

.theme-switcher__panel {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  padding: 14px;
  display: none;
  min-width: 196px;
}
.theme-switcher.is-open .theme-switcher__panel { display: block; }
.theme-switcher__title {
  font-size: .82rem; font-weight: 700; color: var(--text-2);
  margin: 0 0 10px; font-family: var(--font);
}
.theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-opt {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 6px; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; background: var(--cream);
  font-family: var(--font); font-size: .74rem; font-weight: 700; color: var(--text-2);
  transition: border-color .15s, transform .15s;
}
.theme-opt:hover { transform: translateY(-2px); }
.theme-opt.is-active { border-color: var(--green-mid); }
.theme-opt__swatch {
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 1px 4px rgba(0,0,0,.2);
}
.theme-opt__swatch--gold     { background: linear-gradient(135deg, #1A3A2A 50%, #F0C740 50%); }
.theme-opt__swatch--maroon   { background: linear-gradient(135deg, #4A1118 50%, #E8B84B 50%); }
.theme-opt__swatch--charcoal { background: linear-gradient(135deg, #1C1F24 50%, #D8B45E 50%); }
.theme-opt__swatch--blue     { background: linear-gradient(135deg, #0D2A4A 50%, #4DB6E8 50%); }
.theme-switcher__status { font-size: .76rem; margin-top: 8px; min-height: 16px; text-align: center; }
.theme-switcher__status.is-ok  { color: #1E8E4E; }
.theme-switcher__status.is-err { color: #D8392B; }

/* ════════════════════════════════════════════════════════
   ปุ่มติดต่อ — เอฟเฟกต์เคลื่อนไหวเล็กน้อย
════════════════════════════════════════════════════════ */
/* ไอคอนเด้งเบาๆ ตลอดเวลา (เรียกความสนใจ) */
@keyframes sb-bounce {
  0%, 100%   { transform: translateY(0); }
  50%        { transform: translateY(-3px); }
}
@keyframes sb-ring {
  0%, 70%, 100% { transform: rotate(0); }
  75%           { transform: rotate(-12deg); }
  80%           { transform: rotate(10deg); }
  85%           { transform: rotate(-8deg); }
  90%           { transform: rotate(6deg); }
  95%           { transform: rotate(0); }
}
@keyframes sb-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50%      { box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
}

/* โทรด่วน: ไอคอนสั่นแบบกำลังโทร */
.sticky-bar__btn--call .sb-icon {
  animation: sb-ring 3s ease-in-out infinite, sb-glow 3s ease-in-out infinite;
  transform-origin: center;
}
/* แอดไลน์: ไอคอนเด้งเบาๆ */
.sticky-bar__btn--line .sb-icon {
  animation: sb-bounce 2.2s ease-in-out infinite, sb-glow 2.6s ease-in-out infinite;
}
/* hover: ขยายปุ่มและไอคอนเล็กน้อย */
.sticky-bar__btn { overflow: hidden; }
.sticky-bar__btn::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,.18);
  transform: translate(-50%, -50%);
  transition: width .4s ease, height .4s ease;
}
.sticky-bar__btn:hover::after { width: 240px; height: 240px; }
.sticky-bar__btn:hover .sb-icon { transform: scale(1.12); }
.sticky-bar__btn .sb-icon { transition: transform .2s; }

/* เคารพผู้ที่ปิดแอนิเมชัน */
@media (prefers-reduced-motion: reduce) {
  .sticky-bar__btn--call .sb-icon,
  .sticky-bar__btn--line .sb-icon { animation: none; }
}
