/* =========================================================
   Suriya9 — หน้า single (บทความ / สินค้า / รายการบริจาค)
   คลาส sg-* — โหลดคู่กับ blog.css / coffin.css / donate.css (การ์ดที่เกี่ยวข้อง)
   ========================================================= */

.sg { position: relative; background: #fff; }
.sg-wrap { width: min(1312px, calc(100% - 128px)); margin-inline: auto; }

/* ─── HERO (รูป + เฟดขาว) ─── */
.sg-hero { position: relative; height: 340px; overflow: hidden; }
.sg-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.sg-hero__fade { position: absolute; inset: 0; background: linear-gradient(to top, #fff 0%, rgba(255,255,255,.55) 38%, rgba(255,255,255,0) 100%); }

/* หัวหน้า: breadcrumb + ชื่อหมวด + เส้นทอง (ยกขึ้นทับเฟด) */
.sg-head { position: relative; z-index: 2; margin-top: -132px; text-align: center; }
.sg-crumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0; padding: 0 24px; list-style: none; font-size: 14px; color: #6b6b6b; }
.sg-crumb li + li::before { content: "›"; margin-right: 10px; color: #bd9a4b; }
.sg-crumb a { color: #94641e; text-decoration: none; }
.sg-crumb a:hover { text-decoration: underline; }
.sg-crumb [aria-current] { display: inline-block; max-width: 36ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom; }
.sg-label { margin: 10px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1.15; color: #8c0e0f; }

.sg-divider { display: flex; align-items: center; gap: 18px; width: min(1312px, calc(100% - 128px)); margin: 18px auto 0; }
.sg-divider .ln { flex: 1; height: 1.5px; background: linear-gradient(to right, #bd9a4b, #d1ab35); }
.sg-divider .ln:first-child { background: linear-gradient(to left, #bd9a4b, #d1ab35); }
.sg-divider img { width: 150px; height: 73px; object-fit: contain; transform: rotate(180deg); display: block; }

/* chip ครีม-ทอง (หมวด / แท็ก / สถานะ) */
.sg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 100px; background: #f5efe5; color: #94641e; font-size: 14px; font-weight: 600; line-height: 1.6; text-decoration: none; }
.sg-chip--green { background: #eef1e8; color: #6e7b5b; }
.sg-chip--green::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* หัวข้อ section */
.sg-sec-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.2; color: #8c0e0f; text-align: center; }
.sg-sec-sub { margin: 0 0 40px; font-size: 18px; color: #545454; text-align: center; }

/* ─── ปุ่ม ─── */
.sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 28px; border-radius: 100px; font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: .16px; text-decoration: none; white-space: nowrap; transition: transform .18s, box-shadow .18s; }
.sg-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.sg-btn--gold { border: 1px solid #fff; color: #fffdf6; background: linear-gradient(92.82deg, #a67c1e 1.52%, #d4af37 99.43%); box-shadow: 0 10px 12px rgba(166,124,30,.35); }
.sg-btn--line { border: 1.5px solid #cea934; color: #94641e; background: #fff; }
.sg-btn:hover { transform: translateY(-2px); }
.sg-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }

/* ─── เนื้อหาบทความ (ใช้ทั้ง 3 หน้า) ─── */
.sg-content { max-width: 800px; margin-inline: auto; font-size: 18px; line-height: 1.85; color: #2e2e2e; }
.sg-content > :first-child { margin-top: 0; }
.sg-content p { margin: 0 0 22px; }
.sg-content h2 { margin: 48px 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.3; color: #8c0e0f; }
.sg-content h3 { margin: 36px 0 12px; font-size: 22px; font-weight: 700; line-height: 1.4; color: #1f1f1f; }
.sg-content ul, .sg-content ol { margin: 0 0 22px; padding-left: 26px; }
.sg-content li { margin-bottom: 8px; }
.sg-content li::marker { color: #bd9a4b; }
/* bullet ของ ul = ไอคอนดอกไม้ประจำแบรนด์ */
.sg-content ul { padding-left: 0; list-style: none; }
.sg-content ul li { position: relative; padding-left: 32px; }
.sg-content ul li::before { content: ""; position: absolute; left: 0; top: .4em; width: 20px; height: 20px; background: url("../images/home/emblem-flower-icon.webp") center / contain no-repeat; }
.sg-content a { color: #94641e; text-decoration: underline; }
.sg-content strong { color: #1f1f1f; }
.sg-content blockquote { position: relative; margin: 36px 0; padding: 28px 32px 28px 72px; border-radius: 12px; background: #faf6ee; font-family: var(--font-display); font-size: 22px; line-height: 1.6; color: #94641e; }
.sg-content blockquote::before { content: "“"; position: absolute; left: 22px; top: 6px; font-size: 72px; line-height: 1; color: #cea934; }
.sg-content blockquote p:last-child { margin: 0; }
.sg-content figure { margin: 36px 0; }
.sg-content figure img, .sg-content > img { display: block; width: 100%; height: auto; border-radius: 8px; }
.sg-content img { max-width: 100%; height: auto; border-radius: 8px; }
.sg-content .wp-block-image, .sg-content .wp-block-gallery { margin: 36px 0; }
.sg-content figcaption { margin-top: 10px; font-size: 14px; color: #6b6b6b; text-align: center; }

/* ตาราง (เช่น ตารางคุกกี้ในหน้า Cookies policy) */
.sg-content table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.sg-content th, .sg-content td { padding: 10px 14px; border: 1px solid #eee3cc; text-align: left; vertical-align: top; }
.sg-content th { background: #faf6ee; font-weight: 700; color: #1f1f1f; }
.sg-content .wp-block-table, .sg-content .sg-table { margin: 24px 0; overflow-x: auto; }
.sg-content .wp-block-table table, .sg-content .sg-table table { margin: 0; min-width: 560px; }

/* หน้าทั่วไป (page.php) */
.sg-page { position: relative; z-index: 1; margin-top: 48px; margin-bottom: 40px; }
.sg--page .sg-flowers { margin-top: 0; } /* ไม่ดึงดอกไม้ขึ้นทับการ์ดติดต่อท้ายหน้า */
.sg-page > h2:first-child { margin-top: 0; }

/* =========================================================
   1) บทความ
   ========================================================= */
.sg-article-head { max-width: 960px; margin: 48px auto 0; text-align: center; }
.sg-article-head h1 { margin: 16px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.3; color: #1f1f1f; }
.sg-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 16px; font-size: 15px; color: #6b6b6b; }
.sg-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sg-meta svg { width: 16px; height: 16px; color: #bd9a4b; }
.sg-cover { max-width: 1040px; margin: 40px auto 56px; }
.sg-cover-gap { height: 40px; }
.sg-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.10); }

/* แท็ก + แชร์ */
.sg-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 800px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid #eee3cc; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-share__btns { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #6b6b6b; }
.sg-share__btns a, .sg-share__btns button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #e5d3a6; border-radius: 50%; background: #fff; color: #94641e; cursor: pointer; transition: background .18s, color .18s; }
.sg-share__btns a:hover, .sg-share__btns button:hover { background: #cea934; color: #fff; }
.sg-share__btns svg { width: 18px; height: 18px; }

/* บทความก่อน/ถัดไป */
.sg-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin: 32px auto 0; }
.sg-pn a { display: block; padding: 16px 20px; border: 1px solid #eee3cc; border-radius: 12px; text-decoration: none; transition: border-color .18s; }
.sg-pn a:hover { border-color: #cea934; }
.sg-pn small { display: block; font-size: 13px; font-weight: 600; color: #bd9a4b; }
.sg-pn span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 4px; font-size: 16px; line-height: 1.5; color: #1f1f1f; }
.sg-pn .is-next { text-align: right; }

.sg-related { margin-top: 96px; }

/* =========================================================
   2) สินค้า + 3) รายการบริจาค — 2 คอลัมน์ (รูป | ข้อมูล)
   ========================================================= */
.sg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 48px; }

/* แกลเลอรี */
.sg-gallery__main { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border: 2px solid #ffd066; border-radius: 20px; background: radial-gradient(circle at 50% 45%, #fff 0%, #fbf6ea 70%, #f5ecd6 100%); box-shadow: 0 4px 10px rgba(0,0,0,.12); overflow: hidden; }
.sg-gallery__main img { max-width: 86%; max-height: 80%; object-fit: contain; transition: opacity .2s; }
.sg-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.sg-gallery__thumbs button { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 6px; border: 1.5px solid #eadbb5; border-radius: 12px; background: #fdfaf3; cursor: pointer; transition: border-color .18s; }
.sg-gallery__thumbs button.is-active, .sg-gallery__thumbs button:hover { border: 2px solid #cea934; }
.sg-gallery__thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* แกลเลอรีแบบรูปถ่าย (รายการบริจาค) */
.sg-gallery--photo .sg-gallery__main { aspect-ratio: 4 / 3; border: 0; background: #f3f3f3; }
.sg-gallery--photo .sg-gallery__main img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.sg-gallery--photo .sg-gallery__thumbs button { padding: 0; overflow: hidden; border-color: transparent; }
.sg-gallery--photo .sg-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ข้อมูลด้านขวา */
.sg-info h1 { margin: 14px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.3; color: #1f1f1f; }
.sg-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.8; color: #545454; }

.sg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 24px; padding: 18px 22px; border-radius: 14px; background: #faf6ee; }
.sg-price__label { font-size: 15px; color: #6b6b6b; }
.sg-price__val { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.2; color: #94641e; }
.sg-price__note { flex-basis: 100%; font-size: 13px; color: #8a8a8a; }

.sg-specs { display: grid; grid-template-columns: max-content 1fr; margin: 24px 0 0; font-size: 16px; }
.sg-specs dt, .sg-specs dd { margin: 0; padding: 12px 0; border-bottom: 1px dashed #e5d3a6; }
.sg-specs dt { padding-right: 32px; color: #6b6b6b; }
.sg-specs dd { font-weight: 600; color: #1f1f1f; }

.sg-perks { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 15px; color: #545454; }
.sg-perks li { display: flex; align-items: center; gap: 10px; }
.sg-perks li::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; background: url("../images/home/emblem-flower-icon.webp") center / contain no-repeat; }

/* กล่องรายละเอียด (ใต้ 2 คอลัมน์) */
.sg-detail { margin-top: 88px; }

/* ความคืบหน้าการบริจาค */
.sg-progress { margin-top: 24px; padding: 22px 24px; border: 1px solid #eee3cc; border-radius: 16px; background: #fffdf8; }
.sg-progress__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sg-progress__now { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.2; color: #94641e; }
.sg-progress__now small { font-family: var(--font-body); font-weight: 500; font-size: 16px; color: #6b6b6b; }
.sg-progress__goal { font-size: 15px; color: #6b6b6b; }
.sg-progress__bar { height: 10px; margin-top: 12px; border-radius: 100px; background: #f0e7d3; overflow: hidden; }
.sg-progress__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a67c1e, #d4af37); }
.sg-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; text-align: center; }
.sg-stats div + div { border-left: 1px solid #eee3cc; }
.sg-stats b { display: block; font-size: 20px; color: #1f1f1f; }
.sg-stats span { font-size: 13px; color: #6b6b6b; }

/* ผู้ร่วมบุญล่าสุด */
.sg-donors { max-width: 800px; margin: 56px auto 0; border: 1px solid #eee3cc; border-radius: 16px; overflow: hidden; }
.sg-donors h3 { margin: 0; padding: 18px 24px; background: #faf6ee; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #1f1f1f; }
.sg-donors ul { margin: 0; padding: 0 24px; list-style: none; }
.sg-donors li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f3ecdc; font-size: 15px; }
.sg-donors li:last-child { border-bottom: 0; }
.sg-donors__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f5efe5; color: #94641e; font-weight: 700; }
.sg-donors__name { color: #1f1f1f; font-weight: 600; }
.sg-donors__name small { display: block; font-weight: 400; font-size: 13px; color: #8a8a8a; }
.sg-donors__amt { font-weight: 700; color: #94641e; white-space: nowrap; }

/* สินค้าที่เกี่ยวข้อง: 4 ใบ */
.sg .cf-products { padding-left: 0; padding-right: 0; }
.sg .cf-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ดอกไม้ก่อน footer */
.sg-flowers { position: relative; z-index: 0; width: 100%; aspect-ratio: 2000 / 380; min-height: 180px; margin-top: -60px; overflow: hidden; pointer-events: none; }
.sg-flowers img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.sg-related, .sg-detail, .sg .cf-products { position: relative; z-index: 1; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .sg-wrap, .sg-divider { width: calc(100% - 64px); }
  .sg-split { gap: 36px; }
  .sg-info h1 { font-size: 32px; }
  .sg-article-head h1 { font-size: 36px; }
  .sg .cf-grid { grid-template-columns: repeat(2, 1fr); }
  .sg-actions { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sg-split { grid-template-columns: minmax(0, 1fr); }
  .sg-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-gallery { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 767px) {
  .sg-wrap, .sg-divider { width: calc(100% - 32px); }
  .sg-hero { height: 250px; }
  .sg-head { margin-top: -96px; }
  .sg-crumb { font-size: 13px; }
  .sg-crumb [aria-current] { max-width: 18ch; }
  .sg-label { font-size: 36px; }
  .sg-divider { gap: 10px; margin-top: 10px; }
  .sg-divider img { width: 104px; height: 50px; }

  .sg-article-head { margin-top: 28px; }
  .sg-article-head h1 { font-size: 28px; }
  .sg-meta { font-size: 13px; gap: 4px 14px; }
  .sg-cover { margin: 24px auto 32px; }
  .sg-content { font-size: 16px; line-height: 1.8; }
  .sg-content h2 { font-size: 24px; margin-top: 36px; }
  .sg-content h3 { font-size: 19px; }
  .sg-content blockquote { padding: 20px 20px 20px 52px; font-size: 18px; }
  .sg-page { margin-top: 28px; }
  .sg-content table { font-size: 14px; }
  .sg-content blockquote::before { left: 14px; font-size: 56px; }
  .sg-share { flex-direction: column; align-items: flex-start; }
  .sg-pn { grid-template-columns: 1fr; }
  .sg-pn .is-next { text-align: left; }

  .sg-split { margin-top: 28px; gap: 28px; }
  .sg-gallery__thumbs { gap: 8px; margin-top: 10px; }
  .sg-gallery__main { border-radius: 14px; }
  .sg-info h1 { font-size: 28px; }
  .sg-lead { font-size: 16px; }
  .sg-price__val, .sg-progress__now { font-size: 28px; }
  .sg-specs { font-size: 15px; }
  .sg-actions { gap: 12px; }
  .sg-btn { min-height: 46px; padding: 8px 10px; font-size: min(15px, 3.9vw); gap: 6px; }
  .sg-btn svg { width: 18px; height: 18px; }
  .sg-stats b { font-size: 17px; }

  .sg-detail { margin-top: 56px; }
  .sg-related { margin-top: 64px; }
  .sg-sec-title { font-size: 30px; }
  .sg-sec-sub { margin-bottom: 24px; font-size: 15px; }
  .sg .cf-grid { gap: 12px; }
  .sg-donors li { grid-template-columns: 36px 1fr auto; gap: 10px; font-size: 14px; }
  .sg-donors__av { width: 36px; height: 36px; }
  .sg-flowers { margin-top: -20px; min-height: 120px; }
}

/* =========================================================
   หน้านโยบาย (Privacy / Cookie policy) — คลาส pol-* ใส่ในเนื้อหาหน้า
   ========================================================= */
.sg-content .pol-intro { position: relative; margin: 0 0 32px; padding: 26px 28px 26px 84px; border: 1px solid #eee3cc; border-radius: 16px; background: linear-gradient(135deg, #fffdf8, #faf3e3); font-size: 17px; line-height: 1.85; }
.sg-content .pol-intro::before { content: ""; position: absolute; left: 26px; top: 28px; width: 38px; height: 38px; border-radius: 50%; background: #fff url("../images/home/emblem-flower-icon.webp") center / 24px no-repeat; box-shadow: 0 4px 10px rgba(166, 124, 30, .2); }
.sg-content .pol-intro p:last-child { margin: 0; }
.sg-content .pol-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.sg-content .pol-meta li { margin: 0; padding: 4px 14px 4px 14px; border-radius: 100px; background: #f5efe5; font-size: 14px; font-weight: 600; color: #94641e; }
.sg-content .pol-meta li::before { display: none; }

/* สารบัญ */
.sg-content .pol-toc { margin: 0 0 40px; padding: 22px 24px; border: 1px solid #eee3cc; border-radius: 16px; background: #fff; box-shadow: 0 4px 10px rgba(210, 199, 154, .25); }
.sg-content .pol-toc > p { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #1f1f1f; }
.sg-content .pol-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin: 0; padding: 0; list-style: none; counter-reset: poltoc; }
.sg-content .pol-toc li { margin: 0; padding: 0; counter-increment: poltoc; }
.sg-content .pol-toc li::before { display: none; }
.sg-content .pol-toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 16px; color: #2e2e2e; text-decoration: none; border-bottom: 1px dashed #eee3cc; }
.sg-content .pol-toc a::before { content: counter(poltoc, decimal-leading-zero); font-weight: 700; color: #bd9a4b; }
.sg-content .pol-toc a:hover { color: #94641e; }

/* หัวข้อแต่ละส่วน: เลขวงกลมทอง */
.sg-content { counter-reset: polsec; }
.sg-content h2.pol-h { display: flex; align-items: center; gap: 14px; margin: 52px 0 18px; padding-top: 6px; counter-increment: polsec; }
.sg-content h2.pol-h::before { content: counter(polsec); display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #a67c1e, #d4af37); box-shadow: 0 6px 10px rgba(166, 124, 30, .3); font-family: var(--font-body); font-size: 18px; font-weight: 700; color: #fff; }

/* การ์ดตาราง (ข้อมูลที่เก็บ / ประเภทคุกกี้ / สิทธิ) */
.sg-content .pol-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 24px; padding: 0; list-style: none; }
.sg-content .pol-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sg-content .pol-cards > li { margin: 0; padding: 18px 20px; border: 1px solid #eee3cc; border-radius: 14px; background: #fffdf8; font-size: 15px; line-height: 1.7; }
.sg-content .pol-cards > li::before { display: none; }
.sg-content .pol-cards > li > strong:first-of-type { display: block; margin-bottom: 6px; font-size: 17px; color: #1f1f1f; }
.sg-content .pol-tag { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 100px; background: #eef1e8; font-size: 12px; font-weight: 700; color: #6e7b5b; }
.sg-content .pol-tag--ask { background: #f5ecdc; color: #94641e; }

/* สิทธิ: ป้ายเลขเล็ก */
.sg-content .pol-rights { counter-reset: polr; }
.sg-content .pol-rights > li { position: relative; padding-left: 58px; counter-increment: polr; }
.sg-content .pol-rights > li::after { content: counter(polr); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f5efe5; font-size: 13px; font-weight: 700; color: #94641e; }

/* กล่องหมายเหตุ */
.sg-content .pol-note { margin: 20px 0; padding: 16px 20px; border-left: 4px solid #cea934; border-radius: 0 12px 12px 0; background: #faf6ee; font-size: 16px; }
.sg-content .pol-note p:last-child { margin: 0; }

/* ติดต่อ */
.sg-content .pol-contact { margin: 48px 0 8px; padding: 28px; border: 2px solid #ffd066; border-radius: 20px; background: radial-gradient(circle at 0 0, #fffaf0, #fff 60%); text-align: center; box-shadow: 0 6px 18px rgba(166, 124, 30, .12); }
.sg-content .pol-contact h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #8c0e0f; }
.sg-content .pol-contact p { margin: 0 0 4px; font-size: 16px; }
.sg-content .pol-contact .pol-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.sg-content .pol-contact .pol-btns a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 22px; border: 1.5px solid #cea934; border-radius: 100px; background: #fff; font-size: 15px; font-weight: 600; color: #94641e; text-decoration: none; }
.sg-content .pol-contact .pol-btns a:first-child { border-color: #fff; background: linear-gradient(92.82deg, #a67c1e 1.52%, #d4af37 99.43%); color: #fffdf6; box-shadow: 0 8px 12px rgba(166, 124, 30, .3); }

@media (max-width: 767px) {
  .sg-content .pol-intro { padding: 70px 18px 20px; font-size: 16px; }
  .sg-content .pol-intro::before { left: 18px; top: 18px; }
  .sg-content .pol-toc { padding: 18px; }
  .sg-content .pol-toc ol, .sg-content .pol-cards, .sg-content .pol-cards--3 { grid-template-columns: 1fr; }
  .sg-content h2.pol-h { gap: 10px; margin-top: 40px; }
  .sg-content h2.pol-h::before { width: 34px; height: 34px; font-size: 16px; }
  .sg-content .pol-contact { padding: 22px 16px; }
  .sg-content .pol-contact h3 { font-size: 22px; }
  .sg-content .pol-contact .pol-btns a { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 8px 10px; }
}

/* =========================================================
   รายการบริจาค: ป้ายสถานะ + รายชื่อผู้มีจิตศรัทธา
   ========================================================= */
.sg-chip.is-delivered, .sg-chip.is-pending { gap: 6px; }
.sg-chip.is-delivered { background: #eef1e8; color: #5f6d4c; }
.sg-chip.is-pending { background: #fbefd9; color: #a0661a; }

.sg-merit { margin-top: 88px; position: relative; z-index: 1; }
.sg-merit__frame {
  position: relative;
  padding: 52px 48px 44px;
  border: 1px solid rgba(189, 154, 75, 0.55);
  border-radius: 28px;
  background:
    radial-gradient(120% 70% at 50% 0%, #fffaf0 0%, rgba(255, 250, 240, 0) 60%),
    linear-gradient(180deg, #fffdf8 0%, #fbf6ea 100%);
  box-shadow: 0 20px 50px rgba(166, 124, 30, 0.12);
}
/* กรอบทองชั้นใน (แบบใบอนุโมทนาบุญ) */
.sg-merit__frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(206, 169, 52, 0.45);
  border-radius: 20px;
  pointer-events: none;
}
.sg-merit__head { position: relative; text-align: center; }
.sg-merit__orn { display: block; width: 130px; height: auto; margin: -8px auto 6px; transform: rotate(180deg); }
.sg-merit__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.2; color: #8c0e0f; }
.sg-merit__sub { margin: 10px 0 0; font-size: 17px; color: #6b6b6b; }
.sg-merit__count { display: inline-flex; align-items: baseline; gap: 8px; margin: 20px 0 0; padding: 8px 24px; border-radius: 100px; background: linear-gradient(92.82deg, #a67c1e 1.52%, #d4af37 99.43%); box-shadow: 0 10px 16px rgba(166, 124, 30, 0.28); font-size: 16px; font-weight: 600; color: #fffdf6; }
.sg-merit__count b { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; }

.sg-merit__search { position: relative; display: block; width: min(440px, 100%); margin: 28px auto 8px; }
.sg-merit__search svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; color: #bd9a4b; transform: translateY(-50%); pointer-events: none; }
.sg-merit__search input { width: 100%; height: 50px; padding: 0 20px 0 48px; border: 1px solid rgba(166, 124, 30, 0.4); border-radius: 100px; background: #fff; font-family: var(--font-body); font-size: 16px; color: #212529; outline: none; }
.sg-merit__search input:focus { border-color: #a67c1e; box-shadow: 0 0 0 3px rgba(166, 124, 30, 0.12); }

.sg-merit__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; margin: 24px 0 0; padding: 0; list-style: none; }
.sg-merit__list li { position: relative; margin: 0; padding: 12px 0 12px 22px; border-bottom: 1px dashed rgba(189, 154, 75, 0.35); font-size: 16px; line-height: 1.5; color: #2e2e2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-merit__list li::before { content: ""; position: absolute; left: 4px; top: calc(12px + 0.75em); width: 7px; height: 7px; background: linear-gradient(135deg, #a67c1e, #d4af37); transform: translateY(-50%) rotate(45deg); }
.sg-merit__list li[hidden] { display: none; }
.sg-merit__list[hidden] { display: none; } /* ตอนค้นหา: ซ่อนรายชื่อเต็ม ให้ผลค้นหาขึ้นต่อจากช่องค้นหา */
.sg-merit__list mark { padding: 0 2px; border-radius: 4px; background: #f6e2ad; color: inherit; }
.sg-merit__empty { margin: 24px 0 0; text-align: center; font-size: 16px; color: #8a8a8a; }
.sg-merit__more { display: flex; align-items: center; gap: 6px; margin: 32px auto 0; padding: 10px 28px; border: 1.5px solid #cea934; border-radius: 100px; background: #fff; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: #94641e; cursor: pointer; transition: background 0.18s; }
.sg-merit__more:hover { background: #faf3e3; }
.sg-merit__more[hidden] { display: none; }

@media (max-width: 767px) {
  .sg-merit { margin-top: 56px; }
  .sg-merit__frame { padding: 36px 18px 30px; border-radius: 20px; }
  .sg-merit__frame::before { inset: 6px; border-radius: 15px; }
  .sg-merit__orn { width: 96px; }
  .sg-merit__title { font-size: 30px; }
  .sg-merit__sub { font-size: 15px; }
  .sg-merit__count b { font-size: 24px; }
  .sg-merit__list { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .sg-merit__list li { padding: 10px 0 10px 16px; font-size: 14px; }
  .sg-merit__list li::before { left: 2px; top: calc(10px + 0.75em); width: 6px; height: 6px; }
}
@media (max-width: 380px) {
  .sg-merit__list { grid-template-columns: 1fr; }
}

/* =========================================================
   สินค้าเดี่ยว แบบนำเสนอสินค้า (single-s9_product.php) — prefix ps-
   ========================================================= */
.ps { background: #fff; }
.ps-hero { position: relative; height: 368px; overflow: hidden; }
.ps-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ps-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 261px; background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0)); }
.ps-wrap { max-width: 1160px; margin: 0 auto; padding: 0 64px; }
.ps-wrap--wide { max-width: 1440px; }
.ps-top { position: relative; z-index: 10; margin-top: -150px; }

/* หัวเรื่อง */
.ps-head { padding-top: 26px; text-align: center; }
.ps-crumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: #9a9a9a; }
.ps-crumb li + li::before { content: "/"; margin-right: 10px; color: #d8c68f; }
.ps-crumb a { color: #9a9a9a; text-decoration: none; }
.ps-crumb a:hover { color: #94641e; }
.ps-eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 14px; letter-spacing: .22em; color: #a67c1e; text-decoration: none; }
.ps-eyebrow::before, .ps-eyebrow::after { content: ""; width: 36px; height: 1px; background: #d8c68f; }
.ps-head h1 { margin: 16px auto 0; font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1.35; color: #8c0e0f; }
.ps-lead { margin: 16px auto 0; max-width: 640px; font-size: 19px; line-height: 1.85; color: #6b6b6b; }
.ps-price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; margin: 18px 0 0; font-size: 16px; color: #8a8a8a; }
.ps-price b { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: #94641e; }
.ps-price small { flex-basis: 100%; font-size: 13.5px; color: #a8a8a8; }

/* รูปสินค้า */
.ps-stage { display: grid; place-items: center; margin-top: 52px; aspect-ratio: 21 / 9; border-radius: 6px; background: radial-gradient(ellipse at 50% 45%, #fdfbf6 0%, #f8f3e6 70%, #f3ecd9 100%); }
.ps-stage img { width: 56%; max-height: 78%; object-fit: contain; }

/* ข้อมูลจำเพาะ + รายละเอียด (ช่อกุหลาบสองข้างแบบส่วน "เกี่ยวกับเรา") */
.ps-zone { position: relative; padding-bottom: 104px; overflow: hidden; }
.ps-zone .ps-wrap { position: relative; }
.ps-zone__l, .ps-zone__r { position: absolute; top: 24px; width: 210px; max-width: 21vw; pointer-events: none; mix-blend-mode: multiply; }
.ps-zone__l { left: 0; -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%); mask-image: linear-gradient(to right, #000 45%, transparent 100%); }
.ps-zone__r { right: 0; -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%); mask-image: linear-gradient(to left, #000 45%, transparent 100%); }
.ps-facts { display: flex; justify-content: center; margin: 56px 0 0; padding: 0; }
.ps-facts div { flex: 0 1 auto; padding: 6px 44px; text-align: center; white-space: nowrap; }
.ps-facts div + div { border-left: 1px solid #e6d7ae; }
.ps-facts dt { font-size: 13.5px; letter-spacing: .14em; color: #a67c1e; }
.ps-facts dd { margin: 10px 0 0; font-family: var(--font-display); font-size: 23px; line-height: 1.4; color: #2e2e2e; }
.ps-story { max-width: 700px; margin: 72px auto 0; text-align: center; }
.ps-story::before { content: ""; display: block; width: 56px; height: 1px; margin: 0 auto 34px; background: #cea934; }
.ps-story__text { font-size: 18.5px; line-height: 2.05; color: #4a4a4a; }
.ps-story__text p { margin: 0 0 14px; }
.ps-story__text ul, .ps-story__text ol { margin: 0 0 14px; padding: 0; list-style: none; }
.ps-story__text li { margin: 0; padding: 0; }
.ps-story__text > :last-child { margin-bottom: 0; }
.ps-story__text a { color: #94641e; }
.ps-story__text img { max-width: 100%; height: auto; border-radius: 6px; }
.ps-story__note { display: block; margin-top: 22px; font-size: 14.5px; color: #a8a8a8; }

/* ชวนสอบถาม */
.ps-ask { max-width: 1032px; margin: 0 auto; padding: 72px 24px; border-top: 1px solid #eee3c6; border-bottom: 1px solid #eee3c6; text-align: center; }
.ps-ask h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.4; color: #8c0e0f; }
.ps-ask p { margin: 12px 0 0; font-size: 17px; color: #6b6b6b; }
.ps-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ps-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 36px; border-radius: 100px; font-size: 16.5px; font-weight: 600; text-decoration: none; transition: transform .2s; }
.ps-btn:hover { transform: translateY(-2px); }
.ps-btn--gold { color: #fff; background: linear-gradient(90deg, #a67c1e, #d4af37); }
.ps-btn--line { color: #94641e; border: 1px solid #cea934; }

/* แบบอื่นในหมวดเดียวกัน */
.ps-more { padding: 104px 0 40px; }
.ps-more h2 { margin: 0 0 56px; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: 40px; color: #8c0e0f; }
.ps-rels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.ps-rel { display: block; text-align: center; color: #2e2e2e; text-decoration: none; font-size: 18px; line-height: 1.6; }
.ps-rel__stage { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 20px; border-radius: 4px; background: #faf7f0; transition: background .4s; }
.ps-rel__stage img { width: 80%; max-height: 72%; object-fit: contain; }
.ps-rel:hover .ps-rel__stage { background: #f5efe1; }
.ps .sg-flowers { margin-top: -40px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%); mask-image: linear-gradient(to bottom, transparent 0, #000 45%); }

@media (max-width: 1280px) {
  .ps-zone__l, .ps-zone__r { opacity: .45; }
}
@media (max-width: 1024px) {
  .ps-wrap { padding: 0 32px; }
  .ps-head h1 { font-size: 36px; }
  .ps-stage { aspect-ratio: 16 / 9; }
  .ps-stage img { width: 70%; }
  .ps-rels { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ps-more h2 { font-size: 32px; }
}
@media (max-width: 900px) {
  .ps-zone__l, .ps-zone__r { display: none; }
  .ps-facts { flex-wrap: wrap; row-gap: 26px; margin-top: 36px; }
  .ps-facts div { flex: 0 0 50%; padding: 0 12px; white-space: normal; }
  .ps-facts div:nth-child(odd) { border-left: 0; }
  .ps-facts dd { font-size: 19px; }
  .ps-story { margin-top: 48px; }
  .ps-story__text { font-size: 16.5px; line-height: 1.95; }
}
@media (max-width: 640px) {
  .ps-hero { height: 250px; }
  .ps-top { margin-top: -110px; }
  .ps-wrap { padding: 0 16px; }
  .ps-head h1 { font-size: 28px; }
  .ps-lead { font-size: 16px; }
  .ps-stage { margin-top: 32px; aspect-ratio: 4 / 3; }
  .ps-stage img { width: 84%; }
  .ps-zone { padding-bottom: 64px; }
  .ps-ask { margin: 0 16px; padding: 48px 8px; }
  .ps-ask h2 { font-size: 25px; }
  .ps-btn { width: 100%; }
  .ps-more { padding-top: 64px; }
  .ps-more h2 { margin-bottom: 32px; font-size: 26px; }
  .ps-rels { gap: 16px; }
  .ps-rel { font-size: 15px; }
}

/* =========================================================
   หน้าเดี่ยวแบบคลีน — ส่วนร่วม (prefix px-) ใช้กับบทความ / รายการบริจาค
   ========================================================= */
.px { background: #fff; }
.px-hero { position: relative; height: 368px; overflow: hidden; }
.px-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.px-hero__fade { position: absolute; inset: 0; background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, .6) 40%, rgba(255, 255, 255, 0) 100%); }
.px-wrap { max-width: 1160px; margin: 0 auto; padding: 0 64px; }
.px-wrap--wide { max-width: 1440px; }
.px-top { position: relative; z-index: 10; margin-top: -150px; }
.px-head { padding-top: 26px; text-align: center; }
.px-crumb { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: #8f8f8f; }
.px-crumb li + li::before { content: "/"; margin-right: 10px; color: #d8c68f; }
.px-crumb a { color: #8f8f8f; text-decoration: none; }
.px-crumb a:hover { color: #94641e; }
.px-eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 14px; letter-spacing: .22em; color: #a67c1e; text-decoration: none; }
.px-eyebrow::before, .px-eyebrow::after { content: ""; width: 36px; height: 1px; background: #d8c68f; }
.px-head h1 { margin: 16px auto 0; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.4; color: #8c0e0f; }
.px-lead { margin: 16px auto 0; max-width: 640px; font-size: 19px; line-height: 1.85; color: #6b6b6b; }
.px-meta { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 20px 0 0; font-size: 15px; color: #8f8f8f; }
.px-meta i { width: 4px; height: 4px; border-radius: 50%; background: #cea934; }
.px-more { padding: 104px 0 40px; }
.px-more h2 { margin: 0 0 56px; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: 40px; color: #8c0e0f; }
.px-rels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.px-rel { display: block; color: #2e2e2e; text-decoration: none; }
.px-rel__img { aspect-ratio: 3 / 2; margin-bottom: 20px; border-radius: 4px; overflow: hidden; background: #faf7f0; }
.px-rel__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-rel small { display: block; font-size: 14px; letter-spacing: .08em; color: #a67c1e; }
.px-rel b { display: block; margin-top: 8px; font-size: 19px; font-weight: 600; line-height: 1.6; }
.px .sg-flowers { margin-top: -40px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%); mask-image: linear-gradient(to bottom, transparent 0, #000 45%); }

/* ---------- บทความเดี่ยว (single.php) — prefix pb- ---------- */
.pb-cover { margin: 48px 0 0; aspect-ratio: 16 / 8; border-radius: 6px; overflow: hidden; background: #faf7f0; }
.pb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-body { max-width: 720px; margin: 64px auto 0; font-size: 18.5px; line-height: 2.05; color: #3f3f3f; overflow-wrap: break-word; }
.pb-body > :first-child { margin-top: 0; }
.pb-body p { margin: 0 0 26px; }
.pb-body > p:first-child { font-size: 20.5px; color: #2e2e2e; }
.pb-body h2 { margin: 56px 0 18px; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.45; color: #8c0e0f; }
.pb-body h3 { margin: 40px 0 14px; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.5; color: #2e2e2e; }
.pb-body h4 { margin: 32px 0 10px; font-size: 19px; font-weight: 600; color: #2e2e2e; }
.pb-body a { color: #94641e; text-decoration: underline; text-underline-offset: 3px; }
.pb-body strong { font-weight: 600; color: #2e2e2e; }
.pb-body ul, .pb-body ol { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: pb; }
.pb-body li { position: relative; padding: 0 0 8px 28px; }
.pb-body ul > li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #cea934; }
.pb-body ol > li { counter-increment: pb; }
.pb-body ol > li::before { content: counter(pb) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: #a67c1e; }
.pb-body blockquote { margin: 52px 0; padding: 36px 24px; border: 0; border-top: 1px solid #e9dcb8; border-bottom: 1px solid #e9dcb8; text-align: center; font-family: var(--font-display); font-size: 26px; line-height: 1.7; color: #94641e; }
.pb-body blockquote p { margin: 0; }
.pb-body blockquote cite { display: block; margin-top: 12px; font-family: var(--font-body); font-size: 15px; font-style: normal; color: #9a9a9a; }
.pb-body img { max-width: 100%; height: auto; border-radius: 6px; }
.pb-body figure { margin: 48px 0; }
.pb-body > figure, .pb-body > .wp-block-image { margin-left: -110px; margin-right: -110px; }
.pb-body figure img { display: block; width: 100%; }
.pb-body figcaption { margin-top: 12px; text-align: center; font-size: 14.5px; line-height: 1.7; color: #9a9a9a; }
.pb-body table { width: 100%; margin: 0 0 26px; border-collapse: collapse; font-size: 16.5px; }
.pb-body th, .pb-body td { padding: 12px 14px; border-bottom: 1px solid #f0e8d2; text-align: left; }
.pb-body th { font-weight: 600; color: #94641e; }
.pb-body hr { margin: 48px auto; width: 56px; height: 1px; border: 0; background: #cea934; }
.pb-foot { max-width: 720px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid #eee3c6; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 15px; color: #8f8f8f; }
.pb-tags a { margin-right: 16px; color: #94641e; text-decoration: none; }
.pb-share { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.pb-share a, .pb-share button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #94641e; text-decoration: none; cursor: pointer; }
.pb-pn { max-width: 720px; margin: 40px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pb-pn a { display: block; color: #2e2e2e; text-decoration: none; }
.pb-pn a.is-next { text-align: right; }
.pb-pn small { display: block; margin-bottom: 6px; font-size: 13.5px; letter-spacing: .08em; color: #a67c1e; }
.pb-pn span { font-size: 16.5px; line-height: 1.6; }

@media (max-width: 1024px) {
  .px-wrap { padding: 0 32px; }
  .px-head h1 { font-size: 34px; }
  .px-rels { gap: 24px; }
  .px-more h2 { font-size: 32px; }
  .pb-body > figure, .pb-body > .wp-block-image { margin-left: 0; margin-right: 0; }
}
@media (max-width: 640px) {
  .px-hero { height: 250px; }
  .px-top { margin-top: -110px; }
  .px-wrap { padding: 0 16px; }
  .px-head h1 { font-size: 27px; }
  .px-lead { font-size: 16px; }
  .px-rels { grid-template-columns: 1fr; gap: 32px; }
  .px-more { padding-top: 64px; }
  .px-more h2 { margin-bottom: 32px; font-size: 26px; }
  .pb-cover { margin-top: 28px; aspect-ratio: 4 / 3; }
  .pb-body { margin-top: 40px; font-size: 16.5px; line-height: 1.95; }
  .pb-body > p:first-child { font-size: 17.5px; }
  .pb-body h2 { margin-top: 40px; font-size: 24px; }
  .pb-body h3 { font-size: 21px; }
  .pb-body blockquote { margin: 36px 0; padding: 28px 8px; font-size: 20px; }
  .pb-body figure { margin: 32px 0; }
  .pb-pn { grid-template-columns: 1fr; }
  .pb-pn a.is-next { text-align: left; }
}

/* ---------- หัวหน้าเดี่ยว: ให้ breadcrumb อ่านชัดบนรูปปก ---------- */
.px-hero__fade { background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, .9) 34%, rgba(255, 255, 255, .55) 62%, rgba(255, 255, 255, 0) 100%); }
.px-crumb, .px-crumb a { color: #5c5c5c; }
.px-crumb { text-shadow: 0 0 10px #fff, 0 0 18px #fff; }
.px-crumb li + li::before { color: #b99a4a; }

/* ---------- ช่อกุหลาบประดับสองข้าง (บทความ / รายการบริจาค) ---------- */
.px-zone { position: relative; overflow: hidden; }
.px-zone > .px-wrap { position: relative; }
.px-zone__l, .px-zone__r { position: absolute; top: 300px; width: 210px; max-width: 14vw; pointer-events: none; mix-blend-mode: multiply; }
.px--post .px-zone__l, .px--post .px-zone__r { top: 40px; }
.px-zone__l { left: 0; -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%); mask-image: linear-gradient(to right, #000 45%, transparent 100%); }
.px-zone__r { right: 0; -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%); mask-image: linear-gradient(to left, #000 45%, transparent 100%); }
@media (max-width: 1320px) { .px-zone__l, .px-zone__r { display: none; } }

/* ---------- รายการบริจาคเดี่ยว (single-s9_donation.php) — prefix pd- ---------- */
.px-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 16px; border-radius: 100px; border: 1px solid #cea934; font-size: 14px; font-weight: 600; line-height: 1.4; color: #94641e; }
.px-status.is-delivered { color: #4f7a3a; border-color: #b9cfa6; background: #f6faf1; }
.pd-text { max-width: 720px; margin: 36px auto 0; text-align: center; font-size: 19px; line-height: 2; color: #4a4a4a; overflow-wrap: break-word; }
.pd-text p { margin: 0 0 14px; }
.pd-text > :last-child { margin-bottom: 0; }
.pd-long { margin-top: 48px; }
.pd-facts { display: flex; justify-content: center; margin: 48px 0 0; padding: 0; }
.pd-facts div { padding: 6px 44px; text-align: center; white-space: nowrap; }
.pd-facts div + div { border-left: 1px solid #e6d7ae; }
.pd-facts dt { font-size: 13.5px; letter-spacing: .14em; color: #a67c1e; }
.pd-facts dd { margin: 10px 0 0; font-family: var(--font-display); font-size: 26px; line-height: 1.4; color: #2e2e2e; }
.pd-bar { max-width: 520px; height: 3px; margin: 30px auto 0; border-radius: 3px; background: #f0e7d0; overflow: hidden; }
.pd-bar span { display: block; height: 100%; background: linear-gradient(90deg, #a67c1e, #d4af37); }
.pd-photos { display: grid; grid-template-columns: repeat(var(--pd-cols, 4), 1fr); gap: 14px; margin-top: 48px; }
.pd-photo { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #f3f3f3; cursor: zoom-in; }
.pd-photo--lead { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: 6px; }
span.pd-photo { cursor: default; }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-recent { max-width: 620px; margin: 72px auto 0; }
.pd-recent h2 { margin: 0 0 8px; text-align: center; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: #2e2e2e; }
.pd-recent ul { margin: 0; padding: 0; list-style: none; }
.pd-recent li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #f0e8d2; font-size: 16.5px; color: #2e2e2e; }
.pd-recent li small { display: block; margin-top: 2px; font-size: 13.5px; color: #a8a8a8; }
.pd-recent li b { font-weight: 600; color: #94641e; white-space: nowrap; }
.pd-merit { margin-top: 96px; }
.pd-cta { padding: 80px 24px 0; text-align: center; }
.pd-cta h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.4; color: #8c0e0f; }
.pd-cta p { margin: 12px 0 0; font-size: 17px; color: #6b6b6b; }
.pd-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 36px; border-radius: 100px; font-size: 16.5px; font-weight: 600; text-decoration: none; transition: transform .2s; }
.pd-btn:hover { transform: translateY(-2px); }
.pd-btn--gold { color: #fff; background: linear-gradient(90deg, #a67c1e, #d4af37); }
.pd-btn--line { color: #94641e; border: 1px solid #cea934; }

/* ดูรูปขนาดใหญ่ */
.px-lb { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: rgba(20, 16, 8, .88); }
.px-lb img { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.px-lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.px-lb button:hover { background: rgba(255, 255, 255, .28); }
.px-lb__x { top: 20px; right: 20px; }
.px-lb__p { left: 20px; top: 50%; transform: translateY(-50%); }
.px-lb__n { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .pd-photos { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 32px; }
  .pd-facts { flex-wrap: wrap; row-gap: 26px; margin-top: 36px; }
  .pd-facts div { flex: 0 0 50%; padding: 0 12px; white-space: normal; }
  .pd-facts div:nth-child(odd) { border-left: 0; }
  .pd-facts dd { font-size: 21px; }
}
@media (max-width: 640px) {
  .pd-text { margin-top: 24px; font-size: 16.5px; }
  .pd-photo--lead { aspect-ratio: 4 / 3; }
  .pd-recent { margin-top: 56px; }
  .pd-merit { margin-top: 64px; }
  .pd-cta { padding-top: 56px; }
  .pd-cta h2 { font-size: 25px; }
  .pd-btn { width: 100%; }
  .px-lb__p, .px-lb__n { top: auto; bottom: 20px; transform: none; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .sg-merit__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
