/* ============================================================
   RELIFE BE CARE — Design System
   โทนสี CI: น้ำเงิน #02A0DC · เขียวมรกต #00BB90 · เทาเข้ม #444D54
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Cool clean neutrals (โทนสุขภาพ สะอาดตา) */
  --cream:        #F7FAFC;
  --cream-2:      #EDF3F7;
  --sand:         #DCE7EE;
  --ink:          #313A42;
  --ink-soft:     #5C6B76;
  --ink-faint:    #93A3AE;
  --white:        #FFFFFF;

  /* Brand — น้ำเงิน CI RELIFE */
  --brand:        #02A0DC;
  --brand-dark:   #0782B4;
  --brand-light:  #5CC4E8;
  --brand-wash:   #E4F5FC;

  /* Green — เขียวมรกต CI (จุดเด่น เครื่องหมายถูก การยืนยัน) */
  --sage:         #00BB90;
  --sage-dark:    #009273;
  --sage-wash:    #DFF6EF;

  /* Accent */
  --gold:         #E5A21C;
  --gold-wash:    #FBF1D8;
  --danger:       #D4483A;

  /* Elevation (เงาโทนน้ำเงินเทา) */
  --sh-sm: 0 1px 2px rgba(38,55,66,.06), 0 2px 6px rgba(38,55,66,.05);
  --sh-md: 0 2px 6px rgba(38,55,66,.06), 0 10px 26px rgba(38,55,66,.09);
  --sh-lg: 0 6px 16px rgba(38,55,66,.09), 0 24px 56px rgba(38,55,66,.13);

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Layout */
  --wrap: 1180px;
  --gutter: 20px;
  --nav-h: 68px;

  /* Type */
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", -apple-system, "Segoe UI", sans-serif;
  --font-display: "Prompt", var(--font);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  /* clip แทน hidden — hidden ที่ body จะทำให้ position:sticky ของแถบบนพัง */
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section--tight { padding: clamp(36px, 5vw, 60px) 0; }
.section--sand { background: var(--cream-2); }
.section--sage { background: var(--sage-wash); }
.stack > * + * { margin-top: var(--gap, 16px); }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.hide-desktop { display: none; }

.sec-head { max-width: 660px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.sec-head p { color: var(--ink-soft); margin: 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--brand-wash);
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 14px;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-pill); font-weight: 600; font-size: .97rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--sh-md); }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--sh-lg); }
.btn--line { background: #06C755; color: #fff; box-shadow: var(--sh-md); }
.btn--line:hover { background: #05a948; }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: var(--sh-sm); border: 1px solid var(--sand); }
.btn--ghost:hover { background: var(--cream-2); }
.btn--sage { background: var(--sage); color: #fff; }
.btn--sage:hover { background: var(--sage-dark); }
.btn--red { background: var(--danger); color: #fff; box-shadow: var(--sh-sm); }
.btn--red:hover { background: #A63A24; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--sm { padding: 9px 18px; font-size: .87rem; }

/* ---------- 5. Header ---------- */

/* 5a. แถบบนสุด — โปรโมชั่น + ลิงก์ลัด */
.topbar {
  /* น้ำเงิน -> เขียว ตามบล็อกในโลโก้ RELIFE */
  background: linear-gradient(100deg, var(--brand-dark) 0%, var(--brand) 52%, var(--sage) 100%);
  color: #EAF8FE; font-size: .84rem; position: relative; z-index: 61;
}
.topbar__in {
  min-height: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-block: 7px;
}
.topbar__promo { display: flex; align-items: center; gap: 10px 22px; min-width: 0; flex-wrap: wrap; }
.topbar__promo > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__promo a {
  color: #fff; font-weight: 600; white-space: nowrap; flex: 0 0 auto;
  padding: 4px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.45); transition: background .16s;
}
.topbar__promo a:hover { background: rgba(255,255,255,.18); }

/* รายการจุดขายบนแถบบน */
.topbar__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; min-width: 0; }
.topbar__list li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; }
.topbar__list li + li { position: relative; }
.topbar__list li + li::before {
  content: ""; position: absolute; left: -11px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.5);
}
.topbar__list i { font-style: normal; font-size: .95rem; line-height: 1; }
.topbar__links { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.topbar__links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: var(--r-pill); color: #EAF8FE; transition: background .16s;
}
.topbar__links a:hover { background: rgba(255,255,255,.16); color: #fff; }
.topbar__sep { width: 1px; height: 15px; background: rgba(255,255,255,.28); }
.topbar__close { color: #CFEBF8; padding: 4px 8px; border-radius: 50%; line-height: 1; flex: 0 0 auto; }
.topbar__close:hover { background: rgba(255,255,255,.16); color: #fff; }

/* กล่องครอบต้องไม่มีตัวตน ไม่งั้น position:sticky ของแถบหลักจะติดอยู่แค่ในกล่องนี้ */
#site-header { display: contents; }

/* 5b. แถบหลัก */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,250,252,.9); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(38,55,66,.06);
  transition: box-shadow .25s ease, background .25s ease;
}
.header.is-stuck { box-shadow: 0 4px 20px rgba(38,55,66,.08); background: rgba(247,250,252,.96); }
.header__bar { height: var(--nav-h); display: flex; align-items: center; gap: 12px; transition: height .25s ease; }
.header.is-stuck .header__bar { height: 60px; }

.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; flex: 0 0 auto; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 13px; flex: 0 0 auto;
  /* น้ำเงิน -> เขียว สะท้อนสองบล็อกในโลโก้ RELIFE */
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand) 48%, var(--sage) 100%);
  display: grid; place-items: center; color: #fff; font-size: 1.15rem;
  box-shadow: 0 3px 10px rgba(2,160,220,.34);
}
/* เมื่อใช้รูปโลโก้จริง — ไม่มีพื้นหลังไล่สี ไม่มีเงา ให้ไอคอนโปร่งเต็มกล่อง */
.logo__mark--img {
  background: none; box-shadow: none; border-radius: 0;
  width: 42px; height: 42px;
}
.logo__mark--img img { width: 100%; height: 100%; object-fit: contain; }
.logo__txt { display: block; line-height: 1.15; letter-spacing: -.01em; }
.logo__sub {
  display: block; font-family: var(--font); font-size: .64rem; font-weight: 500;
  color: var(--ink-faint); letter-spacing: .07em; line-height: 1.4; text-transform: uppercase;
}

/* 5c. เมนูหลัก */
.nav { margin-inline: auto; display: flex; align-items: center; gap: 2px; }
.nav > * { position: relative; }
.nav a, .nav .nav__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: .94rem; font-weight: 500; color: var(--ink-soft);
  transition: color .16s, background .16s; white-space: nowrap;
}
.nav a::after, .nav .nav__btn::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--brand); border-radius: 2px; transform: scaleX(0);
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.nav a:hover, .nav .nav__btn:hover { color: var(--brand-dark); }
.nav a:hover::after, .nav li:hover .nav__btn::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); font-weight: 600; }
.nav a.is-active::after { transform: scaleX(1); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__caret { transition: transform .2s; opacity: .55; }
.nav li:hover .nav__caret { transform: rotate(180deg); }

/* เมนูย่อย */
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 258px;
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-lg);
  border: 1px solid rgba(38,55,66,.07); padding: 8px; display: block;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav li:hover .nav__sub, .nav li:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav__sub a {
  display: flex; gap: 11px; align-items: flex-start; width: 100%;
  padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink);
}
.nav__sub a::after { display: none; }
.nav__sub a:hover { background: var(--brand-wash); }
.nav__sub i { font-style: normal; font-size: 1.05rem; line-height: 1.4; flex: 0 0 auto; }
.nav__sub b { display: block; font-size: .92rem; font-weight: 600; }
.nav__sub small { display: block; font-size: .78rem; color: var(--ink-faint); line-height: 1.45; }

/* 5d. ปุ่มขวา */
.header__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.cart-btn {
  position: relative; width: 42px; height: 42px; border-radius: 13px;
  background: var(--white); box-shadow: var(--sh-sm); display: grid; place-items: center;
  border: 1px solid var(--sand); color: var(--ink-soft); transition: .16s;
}
.cart-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.cart-btn__count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--brand); color: #fff;
  font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--cream);
}
.cart-btn__count[hidden] { display: none; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: 13px; place-items: center;
  background: var(--white); border: 1px solid var(--sand); color: var(--ink-soft);
}
.burger:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- 6. Hero (full-bleed BG 16:9 + ข้อความทับ) ---------- */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 520px;
}
/* จอใหญ่: สัดส่วนภาพ 16:9 */
/* จอใหญ่: การ์ด 16:9 มีขอบเว้นซ้าย-ขวา กว้างเท่าเนื้อหา แสดงรูปเต็มไม่ครอป */
@media (min-width: 900px) {
  .hero {
    min-height: 0;
    width: min(100% - 2 * var(--gutter), 1180px);
    margin-inline: auto;
    margin-block: clamp(20px, 3vw, 40px);
    aspect-ratio: 16 / 9;
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
  }
  .hero__inner { max-width: none; padding-inline: clamp(36px, 4vw, 60px); }
  .hero__bg { background-position: center; }
}
/* ภาพพื้นหลัง */
.hero__bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center right; background-image: var(--hero-bg); }
/* มือถือ: Hero แบบรูปบน–ข้อความล่าง (ครอปจัตุรัสเหลือคน+สินค้า ตัดห้องโล่งซ้าย-ขวา) */
@media (max-width: 700px) {
  .hero { display: block; min-height: 0; height: auto; overflow: visible; }
  .hero__bg {
    position: relative; inset: auto; width: 100%; z-index: 0;
    aspect-ratio: 7 / 5;
    background-image: var(--hero-bg-m, var(--hero-bg));
    background-size: contain; background-repeat: no-repeat;
    background-position: center; background-color: var(--cream-2);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }
  .hero__scrim { display: none; }
  .hero__inner { position: static; padding: 22px var(--gutter) 6px; }
  .hero__content { max-width: 100%; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__trust { justify-items: center; max-width: none; }
}
.hero__bg.is-placeholder {
  background:
    radial-gradient(1100px 620px at 82% 20%, var(--brand-wash), transparent 66%),
    radial-gradient(800px 520px at 6% 96%, var(--sage-wash), transparent 64%),
    var(--cream-2);
}
.hero__bg.is-placeholder::after {
  content: "🖼️  " attr(data-label); white-space: pre-line; text-align: center;
  position: absolute; top: 50%; right: 7%; transform: translateY(-50%);
  color: var(--ink-faint); font-size: .88rem; max-width: 320px; opacity: .7; line-height: 1.5;
}
@media (max-width: 720px) { .hero__bg.is-placeholder::after { display: none; } }
/* ม่านไล่สีให้ข้อความฝั่งซ้ายอ่านออกเมื่อมีรูปจริง */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(226,244,251,.99) 0%, rgba(226,244,251,.93) 40%, rgba(235,248,252,.48) 60%, rgba(255,255,255,0) 74%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(20px, 2.6vw, 44px); }
.hero__content { max-width: 620px; }
.hero h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.22; margin-bottom: .3em; }
.hero h1 .accent { color: var(--brand); }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 32em; white-space: pre-line; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero__trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; font-size: .88rem; color: var(--ink-soft); max-width: 34em; }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }

/* แท็บเล็ต (701–899px): ยังเป็นแบบข้อความทับรูป — ปรับม่านให้อ่านง่าย */
@media (min-width: 701px) and (max-width: 899px) {
  .hero__scrim { background: linear-gradient(100deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 40%, rgba(255,255,255,.3) 62%, rgba(255,255,255,0) 80%); }
}

/* โชว์เคสสินค้าใน Hero (แทนรูป lifestyle จนกว่าจะมีรูปจริง) */
.hero-show {
  position: relative; aspect-ratio: 5/4; width: 100%; max-width: 660px; margin-inline: auto;
  border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 12%, #FFFFFF 0%, var(--brand-wash) 60%, var(--sage-wash) 100%);
  box-shadow: var(--sh-lg);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.6);
}
.hero-show::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(2,160,220,.16), transparent 62%);
  filter: blur(6px);
}
.hero-show img {
  position: relative; width: 90%; max-width: 560px; height: auto;
  filter: drop-shadow(0 22px 34px rgba(41,82,102,.24));
  animation: heroFloat 5.5s ease-in-out infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-chip {
  position: absolute; z-index: 2; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-radius: var(--r-pill); padding: 9px 15px; font-size: .84rem; font-weight: 600;
  box-shadow: var(--sh-md); display: inline-flex; align-items: center; gap: 7px; color: var(--ink);
}
.hero-chip b { color: var(--brand-dark); }
.hero-chip--1 { top: 12%; right: 6%; }
.hero-chip--2 { bottom: 20%; left: 4%; }
.hero-chip__ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--sage-wash); color: var(--sage-dark); font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { .hero-show img { animation: none; } }
.hero__badge {
  position: absolute; top: clamp(18px, 3vw, 30px); right: clamp(18px, 3vw, 30px);
  width: 118px; height: 118px; border-radius: 50%;
  background: linear-gradient(145deg, var(--brand) 0%, var(--sage) 100%);
  box-shadow: 0 12px 26px rgba(2,142,196,.38);
  border: 3px solid rgba(255,255,255,.92);
  display: grid; place-content: center; text-align: center; padding: 10px; z-index: 4; color: #fff;
}
.hero__badge strong { display: block; font-size: 1.5rem; font-family: var(--font-display); color: #fff; line-height: 1; letter-spacing: .01em; }
.hero__badge span { display: block; font-size: .66rem; color: rgba(255,255,255,.95); line-height: 1.22; margin-top: 5px; max-width: 8.5em; margin-inline: auto; }
@media (max-width: 720px) { .hero__badge { display: none; } }

/* ---------- 6b. Quick actions (สไตล์โรงพยาบาล) ---------- */
.quick-wrap { position: relative; z-index: 5; margin-top: clamp(-58px, -5vw, -74px); }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qa {
  display: flex; align-items: center; gap: 15px; text-align: left;
  background: var(--white); border-radius: var(--r-lg); padding: 20px 20px;
  box-shadow: var(--sh-lg); border: 1px solid rgba(59,50,43,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.qa:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(41,82,102,.16); }
.qa__ico {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; font-size: 1.5rem;
}
.qa--1 .qa__ico { background: var(--brand-wash); }
.qa--2 .qa__ico { background: var(--sage-wash); }
.qa--3 .qa__ico { background: #E7F8ED; }
.qa--4 .qa__ico { background: var(--gold-wash); }
.qa__t { font-weight: 700; font-size: 1.02rem; line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.qa__t::after { content: "→"; color: var(--brand); opacity: 0; transform: translateX(-4px); transition: .18s; margin-left: auto; }
.qa:hover .qa__t::after { opacity: 1; transform: none; }
.qa__s { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

@media (max-width: 860px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .quick-wrap { margin-top: -34px; }
}
/* มือถือ (Hero แบบรูปบน-ข้อความล่าง): เมนูลัดไม่ต้องลอยทับ hero */
@media (max-width: 700px) { .quick-wrap { margin-top: 16px; } }
@media (max-width: 480px) {
  .quick-actions { grid-template-columns: 1fr; gap: 12px; }
  .qa { padding: 16px 18px; }
}

/* ---------- 6c. Concerns (ดูแลตามปัญหาสุขภาพ) ---------- */
.concerns { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 16px; }
.concern {
  display: block; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-md); border: 1px solid rgba(38,55,66,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.concern:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.concern img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.concern__ph { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 2.6rem; background: linear-gradient(135deg, var(--brand-wash), var(--sage-wash)); }

/* มือถือ: เปลี่ยนเป็นสไลด์แนวนอน ปัดดูทีละใบ (scroll-snap) แทนการโชว์ทั้งหมด */
@media (max-width: 640px) {
  .concerns {
    grid-template-columns: none;
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .concerns::-webkit-scrollbar { display: none; }
  .concern { flex: 0 0 76%; scroll-snap-align: start; }
}

/* ---------- 6d. Symptoms band ---------- */
.symptom-band {
  background: linear-gradient(120deg, #0E6E70 0%, #0A5560 55%, #0C6A5A 100%);
  color: #EAF6F5; padding: clamp(44px, 6vw, 72px) 0;
}
.symptom-band__title { color: #fff; text-align: center; max-width: 640px; margin: 0 auto clamp(24px, 4vw, 38px); font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.symptom-band__title span { color: #6FE3C9; }
.symptom-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.symptom {
  display: flex; align-items: center; gap: 12px; flex: 1 1 210px; max-width: 260px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md); padding: 15px 16px; backdrop-filter: blur(4px);
}
.symptom__ico { font-size: 1.5rem; flex: 0 0 auto; }
.symptom b { display: block; font-size: .96rem; color: #fff; }
.symptom span { font-size: .8rem; color: rgba(234,246,245,.75); }
.symptom-note { text-align: center; margin: clamp(24px, 4vw, 34px) auto 0; max-width: 620px; font-size: .96rem; color: rgba(234,246,245,.9); }

/* ---------- 6e. Consult banner ---------- */
.cbanner-sec { padding: clamp(32px, 4vw, 56px) 0; }
.cbanner { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); background: #fff; }
.cbanner__img { width: 100%; display: block; }

/* buttons — desktop: overlaid on the right zone of the banner */
.cbanner__cta {
  position: absolute; top: 50%; right: 3.2%; transform: translateY(-50%);
  width: 30%; max-width: 320px; min-width: 210px;
  display: flex; flex-direction: column; gap: 12px;
}
.cbanner__btn {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  border-radius: var(--r-pill); font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cbanner__btn:hover { transform: translateY(-2px); }
.cbanner__btn--line {
  background: #06C755; color: #fff; padding: 13px 18px; font-size: 1.06rem;
  box-shadow: 0 6px 18px rgba(6,199,85,.35);
}
.cbanner__btn--line:hover { background: #05b64d; box-shadow: 0 10px 24px rgba(6,199,85,.45); }
.cbanner__chip {
  background: #fff; color: #06C755; font-weight: 800; font-size: .72rem;
  padding: 3px 7px; border-radius: 6px; letter-spacing: .03em;
}
.cbanner__btn--tel {
  background: #fff; color: var(--ink); padding: 9px 16px; justify-content: flex-start;
  box-shadow: 0 6px 18px rgba(38,55,66,.16); border: 1px solid rgba(38,55,66,.06);
}
.cbanner__btn--tel:hover { box-shadow: 0 10px 24px rgba(38,55,66,.22); }
.cbanner__btn-ico { font-size: 1.3rem; flex: 0 0 auto; }
.cbanner__btn-tx { display: flex; flex-direction: column; line-height: 1.18; }
.cbanner__btn-tx b { font-size: 1rem; color: var(--brand-dark); }
.cbanner__btn-tx small { font-size: .74rem; color: var(--ink-soft); font-weight: 500; }

/* mobile: two buttons side-by-side, overlaid on the cream band under the trust bar */
@media (max-width: 900px) {
  .cbanner__cta {
    position: absolute; top: auto; bottom: 2.5%; right: 3.5%; left: 3.5%;
    transform: none; width: auto; max-width: none; min-width: 0;
    flex-direction: row; gap: 8px; line-height: 1.05;
  }
  .cbanner__btn { flex: 1 1 0; min-width: 0; justify-content: center; gap: 7px; padding: 7px 6px; }
  .cbanner__btn--line { font-size: .92rem; padding: 7px 6px; }
  .cbanner__btn--tel { justify-content: center; padding: 7px 6px; }
  .cbanner__btn-ico { font-size: 1.05rem; }
  .cbanner__btn-tx { align-items: center; }
  .cbanner__btn-tx b { font-size: .92rem; white-space: nowrap; }
  .cbanner__chip { font-size: .64rem; padding: 2px 5px; }
  .cbanner__tel-word, .cbanner__btn-tx small { display: none; }  /* compact: show only the number */
}

@media (max-width: 360px) {
  .cbanner__cta { gap: 6px; }
  .cbanner__btn--line, .cbanner__btn-tx b { font-size: .82rem; }
  .cbanner__chip { font-size: .6rem; padding: 2px 4px; }
  .cbanner__btn-ico { font-size: .95rem; }
}

/* ---------- 7. Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--white); border-radius: var(--r-md); padding: 22px 20px;
  box-shadow: var(--sh-sm); border: 1px solid rgba(38,55,66,.05); text-align: center;
}
.feature__ico { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px; background: var(--sage-wash); color: var(--sage-dark); display: grid; place-items: center; }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* ---------- 8. Product cards ---------- */
/* จัดกึ่งกลางเสมอ — ของเหลือแถวสุดท้ายอยู่กลาง ไม่โดดซ้าย */
.products-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.products-grid > * { flex: 1 1 200px; max-width: 246px; min-width: 0; }
/* มือถือ: เปลี่ยนเป็นสไลด์แนวนอน ปัดดูทีละใบ (scroll-snap) */
@media (max-width: 640px) {
  .products-grid {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    padding-bottom: 6px; scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .products-grid::-webkit-scrollbar { display: none; }
  .products-grid > * { flex: 0 0 80%; max-width: none; scroll-snap-align: start; }
}
/* หน้าแรก: สินค้าเป็นสไลด์แนวนอนทุกขนาดจอ + ปุ่มลูกศร */
.slider-wrap { position: relative; }
.products-slider {
  flex-wrap: nowrap; justify-content: flex-start;
  overflow-x: auto; scroll-snap-type: none; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; padding-bottom: 12px; scroll-padding-inline: 2px;
}
.products-slider > * { flex: 0 0 244px; max-width: 244px; scroll-snap-align: start; }
.products-slider::-webkit-scrollbar { height: 6px; }
.products-slider::-webkit-scrollbar-thumb { background: rgba(38,55,66,.16); border-radius: 3px; }
.products-slider::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 640px) {
  .products-slider { scroll-snap-type: x mandatory; }
  .products-slider > * { flex: 0 0 80%; max-width: none; }
}
.slider-arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--sand);
  background: var(--white); box-shadow: var(--sh-md); cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--brand-dark);
  display: grid; place-items: center; padding: 0 0 4px; transition: background .15s ease, opacity .15s ease;
}
.slider-arrow:hover { background: var(--brand-wash); }
.slider-arrow--prev { left: -18px; }
.slider-arrow--next { right: -18px; }
.slider-arrow:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 860px) { .slider-arrow { display: none; } }
.card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid rgba(38,55,66,.05);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card__media { position: relative; aspect-ratio: 1/1; background: var(--cream-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
  position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff;
  font-size: .74rem; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill);
}
.card__tag--sage { background: var(--sage); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin: 0 0 3px; }
.card__fda { font-size: .74rem; color: var(--ink-faint); letter-spacing: .02em; margin: 0 0 8px; }
.card__desc { font-size: .89rem; color: var(--ink-soft); margin: 0 0 14px; flex: 1; }
.card__benefits { list-style: none; padding: 0; margin: 2px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; }
.card__benefits li {
  font-size: .78rem; font-weight: 500; color: var(--sage-dark);
  background: var(--sage-wash); padding: 4px 10px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 5px;
}
.card__benefits li::before { content: "✓"; font-weight: 700; font-size: .72rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; color: var(--brand-dark); }
.price small { font-size: .8rem; font-weight: 500; color: var(--ink-faint); }
.price__was { font-size: .84rem; color: var(--ink-faint); text-decoration: line-through; margin-right: 6px; font-weight: 400; }

/* ---------- 9. Featured product banner ---------- */
.spotlight {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 4vw, 54px); align-items: center;
  background: var(--white); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 46px);
  box-shadow: var(--sh-md); border: 1px solid rgba(38,55,66,.05);
}
.spotlight__media img, .spotlight__media .ph { border-radius: var(--r-lg); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.spotlight ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.spotlight ul li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.spotlight ul li::before { content: "✓"; color: var(--sage-dark); font-weight: 700; flex: 0 0 auto; }

/* ---------- 10. Trust / certs ---------- */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.cert {
  background: var(--white); border-radius: var(--r-md); padding: 20px 16px; text-align: center;
  box-shadow: var(--sh-sm); border: 1px solid rgba(38,55,66,.05);
}
.cert strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--sage-dark); }
.cert span { font-size: .78rem; color: var(--ink-soft); }

.verify {
  background: linear-gradient(135deg, var(--sage-wash), var(--cream-2));
  border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px);
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  border: 1px solid rgba(0,187,144,.22);
}
.verify__seal {
  width: 92px; height: 92px; border-radius: 50%; background: var(--white); box-shadow: var(--sh-md);
  display: grid; place-items: center; font-size: 2.2rem;
}
/* โซนบัตรตัวแทนจริงบนหน้าแรก — คอลัมน์กว้างคงที่ ไม่อิงขนาดรูป */
.verify--proof { display: block; }
.verify__head > h2, .verify__head > p { max-width: 720px; }
.verify__card { width: 100%; min-width: 0; text-align: center; }
.verify__card img {
  width: 100%; aspect-ratio: 1200 / 690; object-fit: cover;
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
  display: block; border: 4px solid var(--white); background: var(--white);
}
.verify__id {
  display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: var(--sage-dark); background: var(--white);
  padding: 6px 14px; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
}
.verify--proof .eyebrow { margin-bottom: 8px; }
.verify--proof h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
@media (max-width: 760px) {
  .verify--proof { grid-template-columns: 1fr; text-align: center; }
  .verify__card { max-width: 400px; margin-inline: auto; }
  .verify--proof dl { justify-items: center; }
}
.verify dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; margin: 14px 0 0; }
.verify dt { font-size: .76rem; color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; }
.verify dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; }
/* แกลเลอรีหลักฐาน — บัตรตัวแทน + หนังสือรับรอง วางเคียงกัน สูงเท่ากัน คลิกดูฉบับเต็ม */
.verify__proofs { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 28px; }
.verify__proof {
  background: var(--white); border-radius: var(--r-lg); padding: 14px;
  box-shadow: var(--sh-md); border: 1px solid rgba(0,0,0,.05); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.verify__proof:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.verify__proof img {
  height: 300px; width: auto; max-width: 100%; display: block;
  border-radius: var(--r-sm); background: var(--white);
}
.verify__proof figcaption { margin-top: 11px; font-size: .8rem; font-weight: 600; color: var(--sage-dark); text-align: center; }
@media (max-width: 560px) { .verify__proof { width: 100%; } .verify__proof img { height: auto; width: 100%; } }

/* ---------- ทีมงานรีไลฟ์ ---------- */
.team-sec { background: linear-gradient(135deg, var(--brand-wash), var(--sage-wash)); }
.team-wrap { display: grid; grid-template-columns: 1fr clamp(320px, 42%, 470px); gap: clamp(28px, 4vw, 56px); align-items: center; }
.team-copy h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: .3em 0 .5em; }
.team-copy p { color: var(--ink-soft); max-width: 34em; }
.team-copy__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.team-figure { margin: 0; }
.team-figure img { width: 100%; height: auto; display: block; border-radius: var(--r-xl); box-shadow: var(--sh-lg); border: 5px solid var(--white); }
@media (max-width: 820px) {
  .team-wrap { grid-template-columns: 1fr; }
  .team-figure { max-width: 440px; margin-inline: auto; }
}

/* ---------- 11. Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
  display: flex; align-items: center; gap: 16px; margin: 0;
  background: var(--white); border-radius: var(--r-lg); padding: 16px 18px;
  box-shadow: var(--sh-md); border: 1px solid rgba(38,55,66,.05);
}
.review__photo {
  flex: 0 0 auto; width: 108px; height: 108px; border-radius: var(--r-md);
  background-size: cover; background-position: center; background-color: var(--cream-2);
}
.review__photo.is-ph {
  display: grid; place-items: center; text-align: center; line-height: 1.35;
  font-size: .7rem; font-weight: 600; color: var(--ink-faint);
  background: linear-gradient(135deg, var(--brand-wash), var(--sage-wash));
}
.review__body { min-width: 0; }
.review__text { font-size: .9rem; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.55; }
.review__text::before {
  content: "\201C"; color: var(--brand-light); font-weight: 800;
  font-size: 1.5rem; line-height: 0; vertical-align: -.35em; margin-right: 1px;
}
.review__who b { display: block; font-size: .9rem; color: var(--ink); }
.review__who span { font-size: .78rem; color: var(--sage-dark); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } .review { max-width: 560px; margin-inline: auto; } }
.reviews__disclaimer { text-align: center; font-size: .8rem; color: var(--ink-faint); margin: 18px 0 0; }

/* ---------- 12. Articles ---------- */
.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.article-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid rgba(38,55,66,.05); transition: .2s; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.article-card__media { aspect-ratio: 16/10; background: var(--cream-2); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 20px; }
.article-card__cat { font-size: .76rem; font-weight: 600; color: var(--sage-dark); letter-spacing: .06em; text-transform: uppercase; }
.article-card h3 { font-size: 1.08rem; margin: 6px 0 8px; }
.article-card p { font-size: .89rem; color: var(--ink-soft); margin: 0; }
/* เนื้อหาบทความ (อ่านง่าย + ลิงก์สินค้า) */
#post h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 1.5em 0 .5em; }
#post p, #post ul { line-height: 1.78; margin: 0 0 1.05em; }
#post ul { padding-left: 1.2em; }
#post li { margin-bottom: .35em; }
.art-link { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.art-link:hover { color: var(--brand); }
.art-cta {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: linear-gradient(135deg, var(--brand-wash), var(--sage-wash));
  border: 1px solid rgba(0,187,144,.2); border-radius: var(--r-lg);
  padding: 16px 18px; margin: 30px 0 0; transition: box-shadow .18s ease, transform .18s ease;
}
.art-cta:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.art-cta__img { flex: 0 0 auto; width: 94px; height: 94px; object-fit: contain; border-radius: var(--r-sm); background: var(--white); box-shadow: var(--sh-sm); }
.art-cta__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.art-cta__note { color: var(--ink); font-weight: 600; font-size: .98rem; line-height: 1.4; }
.art-cta .art-link { font-weight: 700; text-decoration: none; }
.art-cta:hover .art-link { text-decoration: underline; }
@media (max-width: 460px) { .art-cta__img { width: 76px; height: 76px; } }
/* กล่องปรึกษาก่อนซื้อ + ปุ่มแอดไลน์ (ท้ายบทความ) */
.art-consult {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px;
  margin-top: 16px; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--sage-wash); border: 1px solid rgba(0,187,144,.22);
}
.art-consult__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.art-consult__txt strong { font-size: 1.02rem; color: var(--ink); }
.art-consult__txt span { font-size: .88rem; color: var(--ink-soft); }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #06C755; color: #fff; font-weight: 700; font-family: var(--font-body);
  padding: 11px 20px; border-radius: var(--r-pill); text-decoration: none;
  box-shadow: var(--sh-sm); transition: filter .15s ease, transform .15s ease;
}
.btn-line:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-line__ico { background: #fff; color: #06C755; font-weight: 800; font-size: .66rem; border-radius: 5px; padding: 2px 5px; letter-spacing: -.5px; }
@media (max-width: 460px) { .art-consult { flex-direction: column; align-items: stretch; text-align: center; } .btn-line { justify-content: center; } }

/* ---------- 13. Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.gallery__main { border-radius: var(--r-lg); overflow: hidden; background: var(--cream-2); aspect-ratio: 1/1; box-shadow: var(--sh-md); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumbs button { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--cream-2); }
.gallery__thumbs button.is-active { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__fda { display: inline-flex; align-items: center; gap: 8px; background: var(--sage-wash); color: var(--sage-dark); font-size: .84rem; font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill); }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.pdp__price .price { font-size: 2rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--sand); border-radius: var(--r-pill); background: var(--white); overflow: hidden; }
.qty button { width: 42px; height: 46px; font-size: 1.15rem; color: var(--ink-soft); }
.qty button:hover { background: var(--cream-2); }
.qty input { width: 48px; height: 46px; text-align: center; border: 0; background: none; font-weight: 600; }
.pdp__buy { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--sand); margin: 40px 0 24px; overflow-x: auto; }
.tabs button { padding: 12px 18px; font-weight: 600; font-size: .95rem; color: var(--ink-faint); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.is-active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tab-panel[hidden] { display: none; }

table.spec { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--sand); vertical-align: top; }
table.spec th { width: 34%; color: var(--ink-soft); font-weight: 500; }

/* ---------- 14. Compare table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--sh-sm); background: var(--white); border: 1px solid rgba(38,55,66,.05); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
table.compare th, table.compare td { padding: 14px 16px; border-bottom: 1px solid var(--sand); text-align: left; }
table.compare thead th { background: var(--cream-2); font-family: var(--font-display); position: sticky; top: 0; }
table.compare tbody th { font-weight: 500; color: var(--ink-soft); }

/* ---------- 15. FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-sm); border: 1px solid rgba(38,55,66,.05); margin-bottom: 12px; }
.faq summary { padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); flex: 0 0 auto; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 22px 20px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- 16. Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(38,55,66,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 80; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 100%);
  background: var(--cream); z-index: 90; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--sh-lg);
}
.drawer.is-open { transform: none; }
.drawer__head { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--sand); }
.drawer__head h3 { margin: 0; font-size: 1.1rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer__foot { padding: 18px 20px; border-top: 1px solid var(--sand); background: var(--white); }
.cart-line { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sand); align-items: center; }
.cart-line__img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: var(--cream-2); }
.cart-line__name { font-weight: 600; font-size: .93rem; }
.cart-line__meta { font-size: .82rem; color: var(--ink-faint); }
.cart-line__rm { font-size: .8rem; color: var(--danger); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total b { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-dark); }
.cart-empty { text-align: center; color: var(--ink-faint); padding: 48px 0; }

/* ---------- 17. Quiz ---------- */
.quiz { max-width: 720px; margin-inline: auto; background: var(--white); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--sh-md); }
.quiz__bar { height: 6px; border-radius: var(--r-pill); background: var(--sand); overflow: hidden; margin-bottom: 26px; }
.quiz__bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .3s; }
.quiz__opts { display: grid; gap: 12px; margin-top: 22px; }
.quiz__opt {
  text-align: left; padding: 16px 20px; border-radius: var(--r-md); background: var(--cream);
  border: 1.5px solid var(--sand); font-weight: 500; transition: .16s; width: 100%;
}
.quiz__opt:hover { border-color: var(--brand); background: var(--brand-wash); }

/* ---------- 18. Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px; border-radius: var(--r-sm); border: 1.5px solid var(--sand);
  background: var(--white); transition: border-color .16s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field small { color: var(--ink-faint); font-size: .8rem; }

/* ---------- 19. Footer ---------- */
.footer { background: #26313A; color: #CDD9E1; padding: clamp(44px, 6vw, 70px) 0 28px; margin-top: 40px; }
.footer a { color: #A7B8C3; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { font-size: .96rem; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .9rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 22px; font-size: .82rem; color: #8496A2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.disclaimer { background: rgba(255,255,255,.05); border-radius: var(--r-md); padding: 14px 18px; font-size: .82rem; color: #94A5B0; margin-top: 26px; }

/* ---------- 20. Sticky mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- 21. Placeholder graphic ---------- */
.ph {
  background: linear-gradient(135deg, var(--cream-2), var(--sand));
  display: grid; place-items: center; color: var(--ink-faint);
  font-size: .82rem; text-align: center; padding: 20px; border-radius: var(--r-md);
  white-space: pre-line; line-height: 1.5;
}
.ph::after { content: attr(data-label); }

/* ---------- 22. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120%);
  background: var(--ink); color: #fff; padding: 13px 24px; border-radius: var(--r-pill);
  box-shadow: var(--sh-lg); font-size: .92rem; z-index: 120; transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.toast.is-open { transform: translate(-50%, 0); }

/* ---------- 23. Breadcrumb ---------- */
.crumb { font-size: .85rem; color: var(--ink-faint); padding: 18px 0 0; }
.crumb a:hover { color: var(--brand); }

/* ---------- 24. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 25. Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 440px; margin-inline: auto; }
  .hero__badge { left: 8px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
/* เมนูเต็มใช้ได้ถึงจอ 1040px — ต่ำกว่านั้นเปลี่ยนเป็นปุ่มแฮมเบอร์เกอร์ */
@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__bar { justify-content: space-between; }
}
@media (max-width: 860px) {
  .hide-mobile { display: none !important; }
  .topbar__links { display: none; }
  .topbar__in { justify-content: center; text-align: center; }
  .topbar__promo { justify-content: center; gap: 8px 14px; }
  .topbar__list { justify-content: center; gap: 6px 16px; }
  .topbar__list li + li::before { left: -9px; }
  /* บนมือถือปล่อยให้ตัดบรรทัดได้ แต่จำกัดไม่เกิน 2 บรรทัด กันแถบสูงจนกินพื้นที่ */
  .topbar__promo > span {
    white-space: normal; text-overflow: clip;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .hide-desktop { display: block; }
  .topbar { font-size: .79rem; }
  /* จอแคบ: เหลือแค่จุดขาย ตัดปุ่มออก ให้แถบสูงแค่บรรทัดเดียว */
  .topbar__promo > a { display: none; }
  .verify { grid-template-columns: 1fr; text-align: center; }
  .verify__seal { margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  body.has-mobilebar { padding-bottom: 72px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(247,250,252,.94); backdrop-filter: blur(12px);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--sand);
  }
  .drawer { width: 100%; }
}
@media (max-width: 460px) {
  .features { grid-template-columns: 1fr; }
}

/* ---------- 29. Pack pricing (PDP) ---------- */
.packs { display: grid; gap: 10px; margin: 6px 0 4px; }
.pack {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 14px; border: 1.5px solid var(--sand); border-radius: var(--r-md);
  background: var(--white); cursor: pointer; transition: .15s; text-align: left; width: 100%;
  position: relative;
}
.pack:hover { border-color: var(--brand-light); }
.pack.is-on { border-color: var(--brand); background: var(--brand-wash); box-shadow: 0 0 0 3px var(--brand-wash); }
.pack__img { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; background: var(--cream-2); }
.pack__name { font-weight: 600; font-size: .96rem; }
.pack__per { font-size: .82rem; color: var(--ink-soft); }
.pack__save {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--sage-dark);
  background: var(--sage-wash); padding: 2px 8px; border-radius: var(--r-pill); margin-top: 3px;
}
.pack__price { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--brand-dark); white-space: nowrap; }
.pack__price small { display: block; font-size: .72rem; font-weight: 400; color: var(--ink-faint); text-decoration: line-through; }
.pack__radio {
  position: absolute; top: 10px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--sand); background: var(--white);
}
.pack.is-on .pack__radio { border-color: var(--brand); box-shadow: inset 0 0 0 3px var(--brand); }

/* ---------- 31. Product sales-page sections ---------- */
.pdp-hero {
  padding: clamp(28px, 4vw, 52px) 0 clamp(32px, 5vw, 60px);
  background:
    radial-gradient(900px 460px at 82% 6%, var(--brand-wash), transparent 68%),
    radial-gradient(600px 380px at 4% 96%, var(--sage-wash), transparent 66%);
}
.pdp-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 54px); align-items: center; }
.pdp-hero__text h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 12px 0 6px; }
.pdp-hero__tag { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 30em; margin: 0; }
.pdp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pdp-hero__cta .btn { flex: 1 1 160px; }
.pdp-hero__media { max-width: 420px; margin-inline: auto; width: 100%; }

@media (max-width: 900px) {
  .pdp-hero__grid { grid-template-columns: 1fr; }
  .pdp-hero__media { order: -1; max-width: 340px; }
}

/* Header สินค้าแบบรูปเต็มพื้นหลัง + ข้อความซ้อนด้านซ้าย */
.pdp-hero--bg { position: relative; overflow: hidden; padding: 0; background: none; }
.pdp-hero--bg .pdp-hero__bg { position: absolute; inset: 0; z-index: 0; }
/* object-position บน = ถ้าต้อง crop จะตัดจากล่าง หัวกล่องปลอดภัยเสมอ */
.pdp-hero--bg .pdp-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.pdp-hero--bg .pdp-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.86) 26%, rgba(255,255,255,.45) 46%, rgba(255,255,255,0) 62%);
}
.pdp-hero--bg .pdp-hero__inner {
  position: relative; z-index: 1; height: 100%; min-height: 360px;
  display: flex; align-items: center;
}
.pdp-hero--bg .pdp-hero__text { max-width: 52%; }
/* จอกว้าง: สูงตามสัดส่วนรูป (แทบไม่ครอป) จำกัดสูงสุดไว้ไม่ให้สูงเกิน */
@media (min-width: 1081px) {
  .pdp-hero--bg { aspect-ratio: 1600 / 624; max-height: 620px; }
}
/* แท็บเล็ต/มือถือ (≤1080): รูปด้านบน–ข้อความด้านล่าง ไม่ครอปเลย */
@media (max-width: 1080px) {
  .pdp-hero--bg .pdp-hero__bg { position: static; }
  .pdp-hero--bg .pdp-hero__bg img { height: auto; }
  .pdp-hero--bg .pdp-hero__bg::after { display: none; }
  .pdp-hero--bg .pdp-hero__inner { min-height: 0; height: auto; display: block; padding-top: 20px; padding-bottom: 4px; }
  .pdp-hero--bg .pdp-hero__text { max-width: 100%; }
}

.pdp-sec { padding-block: clamp(40px, 6vw, 70px); }

/* ---- PDP sections ใหม่: เช็กลิสต์กลุ่มเสี่ยง / รางวัล / รีวิว ---- */
.pdp-sec--risk .risk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.risk-item { position: relative; display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-md); padding: 14px 16px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.risk-item:hover { border-color: var(--brand-light); box-shadow: var(--sh-sm); }
.risk-item input { position: absolute; opacity: 0; pointer-events: none; }
.risk-item__box { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--sand); display: grid; place-items: center; color: transparent; font-weight: 800; font-size: .9rem; transition: all .15s ease; }
.risk-item input:checked + .risk-item__box { background: var(--sage); border-color: var(--sage); color: #fff; }
.risk-item input:checked ~ .risk-item__t { color: var(--sage-dark); font-weight: 600; }
.risk-item__t { font-size: .98rem; line-height: 1.4; }
.risk-note { text-align: center; margin-top: 22px; font-size: 1.04rem; color: var(--ink-soft); }
.risk-note.is-hot { color: var(--danger); font-weight: 700; }
@media (max-width: 620px) { .pdp-sec--risk .risk-grid { grid-template-columns: 1fr; } }

.who-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.who-list__item { display: flex; align-items: flex-start; gap: 14px; background: var(--white); border: 1px solid rgba(38,55,66,.06); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--sh-sm); }
.who-list__ico { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; margin-top: 2px; }
.who-list__tx { display: flex; flex-direction: column; }
.who-list__tx b { font-size: 1.04rem; color: var(--brand-dark); margin-bottom: 2px; }
.who-list__tx span { color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
@media (max-width: 640px) { .who-list { grid-template-columns: 1fr; } }

.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.award-item { background: var(--white); border-radius: var(--r-lg); padding: 28px 20px; text-align: center; box-shadow: var(--sh-sm); border: 1px solid rgba(38,55,66,.05); }
.award-item__ico { font-size: 2.4rem; margin-bottom: 8px; }
.award-item b { display: block; font-size: 1.02rem; margin-bottom: 4px; line-height: 1.35; }
.award-item span { color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 720px) { .award-grid { grid-template-columns: 1fr; } }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.preview-card { margin: 0; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid rgba(38,55,66,.05); display: flex; flex-direction: column; }
.preview-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.preview-card__body { padding: 18px 20px 20px; }
.preview-card__stars { color: #FFB400; letter-spacing: 2px; margin-bottom: 8px; }
.preview-card blockquote { margin: 0 0 12px; font-size: .98rem; line-height: 1.6; color: var(--ink); }
.preview-card figcaption { font-size: .88rem; color: var(--ink-soft); }
.preview-card figcaption b { color: var(--ink); }
.pdp-sec--who { background: linear-gradient(180deg, var(--brand-wash), transparent); }
.who-card {
  display: flex; gap: 18px; align-items: flex-start; max-width: 720px; margin-inline: auto;
  background: var(--white); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--sh-md);
  border: 1px solid rgba(59,50,43,.05);
}
.who-card__ico { font-size: 2rem; flex: 0 0 auto; }

.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .hl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hl-grid { grid-template-columns: 1fr; } }
.hl-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-radius: var(--r-md); padding: 20px 20px;
  box-shadow: var(--sh-sm); border: 1px solid rgba(59,50,43,.05);
}
.hl-item__n {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .95rem;
}
.hl-item p { margin: 4px 0 0; font-size: .95rem; }
.hl-item__tx { display: flex; flex-direction: column; }
.hl-item__tx b { font-size: 1.02rem; color: var(--brand-dark); margin-bottom: 3px; line-height: 1.3; }
.hl-item__tx span { font-size: .93rem; color: var(--ink-soft); line-height: 1.5; }

.pdp-banners { display: grid; gap: 16px; max-width: 900px; margin-inline: auto; }
.pdp-banners img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; box-shadow: var(--sh-sm); }
/* เซลเพจแบบรูปนำ (imageLed) — คอลัมน์รูปแคบ อ่านลื่นเหมือนหน้ามือถือ */
.pdp-banners--sale { max-width: 640px; gap: 12px; }
.pdp--buyonly { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
.banner-ph {
  border: 2px dashed var(--brand-light); border-radius: var(--r-lg);
  padding: 36px 22px; text-align: center; background: var(--brand-wash);
  display: flex; flex-direction: column; gap: 5px;
}
.banner-ph b { font-size: 1.05rem; color: var(--brand-dark); }
.banner-ph span { color: var(--ink-soft); font-size: .9rem; }
.banner-ph small { color: var(--ink-faint); font-size: .8rem; margin-top: 4px; }

.howto-card {
  display: flex; gap: 16px; align-items: center; background: var(--sage-wash);
  border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 16px; font-size: .98rem;
}
.warn-card {
  background: var(--req-wash, #FBEAE6); border: 1px solid rgba(192,71,47,.2);
  border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 18px;
}
.warn-card b { color: var(--danger); }
.warn-card p { margin: 6px 0 0; font-size: .9rem; color: var(--ink-soft); }

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.trust-item {
  background: var(--white); border-radius: var(--r-md); padding: 22px 18px; text-align: center;
  box-shadow: var(--sh-sm); border: 1px solid rgba(59,50,43,.05);
}
.trust-item__i { font-size: 2rem; margin-bottom: 8px; }
.trust-item b { display: block; font-size: 1rem; margin-bottom: 2px; }
.trust-item span { font-size: .82rem; color: var(--ink-soft); }

/* ===== ขัดหน้าสินค้าให้ punchy ขึ้น (แนว betahopeful) — คงโทนแบรนด์ ===== */
/* หัวข้อ section ใหญ่ขึ้น + ขีดเน้นไล่สี */
.pdp-sec .sec-head h2 { font-size: clamp(1.55rem, 4.4vw, 2.35rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.pdp-sec .sec-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px;
  margin: 14px auto 0; background: linear-gradient(90deg, var(--brand), var(--sage));
}
/* วงไอคอนเป็นไล่สี + เงานุ่ม ดูพรีเมียม */
.who-list__ico { width: 30px; height: 30px; background: linear-gradient(135deg, var(--sage), var(--brand)); box-shadow: 0 5px 12px rgba(47,110,79,.28); }
.hl-item__n { background: linear-gradient(135deg, var(--brand), var(--sage)); box-shadow: 0 5px 12px rgba(47,110,79,.28); }
/* การ์ดยกตัวตอน hover ให้รู้สึกมีชีวิต */
.who-list__item, .hl-item, .award-item, .preview-card, .trust-item { transition: transform .2s ease, box-shadow .2s ease; }
.who-list__item:hover, .hl-item:hover, .award-item:hover, .trust-item:hover, .preview-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
/* เช็กลิสต์กลุ่มเสี่ยง — แถบพื้นหลังโทนอุ่นเตือนภัยเบาๆ */
.pdp-sec--risk { background: linear-gradient(180deg, #fff6f1, transparent); }
.pdp-sec--risk .eyebrow { color: #b4531f; background: #ffe9dc; }
/* เหรียญรางวัลเด่นขึ้น */
.award-item__ico { filter: drop-shadow(0 5px 8px rgba(0,0,0,.16)); }
/* บล็อกจุดเด่น: แถบเน้นซ้ายไล่สี (คงมุมโค้งไว้) */
.hl-item { position: relative; overflow: hidden; }
.hl-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--brand), var(--sage)); }

/* ===== เซลเพจ: ช่วงเล่าเรื่อง (problem/urgency) + แถบตัวเลข social proof ===== */
.pdp-sec--story { background: linear-gradient(180deg, #fff6f1, transparent); }
.pdp-sec--story .eyebrow { color: #b4531f; background: #ffe9dc; }
.story-lead { max-width: 60ch; margin: 0 auto; text-align: center; font-size: clamp(1rem, 2.6vw, 1.12rem); line-height: 1.75; color: var(--ink-soft); }
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat-item { text-align: center; background: var(--white); border: 1px solid rgba(59,50,43,.06); border-radius: var(--r-lg); padding: 26px 16px; box-shadow: var(--sh-sm); }
.stat-item__num { font-family: "Prompt", sans-serif; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--brand); line-height: 1.1; }
.stat-item__label { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
.stat-item--ph { background: var(--brand-wash); border: 2px dashed var(--brand-light); box-shadow: none; }
.stat-item--ph .stat-item__num { color: var(--brand-dark); font-size: 1rem; font-family: "IBM Plex Sans Thai", sans-serif; font-weight: 600; }

/* วิดีโอรีวิว (ฝัง YouTube) */
.pdp-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 900px; margin-inline: auto; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.pdp-cta { padding-block: clamp(36px, 5vw, 56px); }
.pdp-cta__box {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 42px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--sh-lg);
}
.pdp-cta__box h2 { color: #fff; }
.pdp-cta__act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pdp-cta__price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.pdp-cta__price small { font-size: .82rem; font-weight: 400; opacity: .85; }

.pdp-disc {
  max-width: 780px; margin: 30px auto 0; text-align: center;
  font-size: .82rem; color: var(--ink-faint); line-height: 1.6;
  border-top: 1px solid var(--sand); padding-top: 22px;
}

@media (max-width: 640px) {
  .who-card { flex-direction: column; gap: 12px; }
  .pdp-cta__box { flex-direction: column; align-items: stretch; text-align: center; }
  .pdp-cta__act { justify-content: center; }
}

/* ---------- 30. Consult wizard (สไตล์จองนัด) ---------- */
.wizard { max-width: 720px; margin-inline: auto; }
.wizard__card {
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-md);
  padding: clamp(22px, 4vw, 40px); border: 1px solid rgba(59,50,43,.05);
}
.stepper { display: flex; justify-content: space-between; max-width: 600px; margin: 0 auto 34px; position: relative; }
.stepper::before {
  content: ""; position: absolute; top: 20px; left: 10%; right: 10%; height: 2px; background: var(--sand); z-index: 0;
}
.stepper__fill {
  position: absolute; top: 20px; left: 10%; height: 2px; background: var(--brand); z-index: 0;
  width: 0; transition: width .35s cubic-bezier(.4,0,.2,1); max-width: 80%;
}
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.step__dot {
  width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 2px solid var(--sand);
  display: grid; place-items: center; font-weight: 700; color: var(--ink-faint); font-size: .95rem; transition: .2s;
}
.step.is-done .step__dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.step.is-current .step__dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-wash); }
.step__label { font-size: .78rem; color: var(--ink-faint); text-align: center; line-height: 1.3; max-width: 90px; }
.step.is-current .step__label { color: var(--brand-dark); font-weight: 600; }
.step.is-done .step__label { color: var(--sage-dark); }

.wz-opts { display: grid; gap: 12px; margin-top: 8px; }
.wz-opt {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center;
  padding: 16px 18px; border: 1.5px solid var(--sand); border-radius: var(--r-md);
  cursor: pointer; transition: .15s; background: var(--cream); text-align: left; width: 100%;
}
.wz-opt:hover { border-color: var(--brand-light); }
.wz-opt.is-on { border-color: var(--brand); background: var(--brand-wash); box-shadow: 0 0 0 3px var(--brand-wash); }
.wz-opt input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.wz-opt b { font-weight: 600; font-size: .98rem; }
.wz-opt small { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 1px; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wz-summary { display: grid; gap: 10px; }
.wz-summary div { display: flex; gap: 12px; padding: 12px 14px; background: var(--cream); border-radius: var(--r-sm); font-size: .93rem; }
.wz-summary dt { color: var(--ink-faint); min-width: 120px; flex: 0 0 auto; }
.wz-summary dd { margin: 0; font-weight: 500; }

@media (max-width: 560px) {
  .step__label { font-size: .68rem; }
  .step__dot { width: 36px; height: 36px; }
}

/* ---------- 28. Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(24px, 3.5vw, 44px); align-items: start; }
.co-panel {
  background: var(--white); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--sh-md); border: 1px solid rgba(38,55,66,.05);
}
.co-panel + .co-panel { margin-top: 20px; }
.co-panel h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.co-step {
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: .92rem; font-family: var(--font); font-weight: 700; flex: 0 0 auto;
}
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.co-row--full { grid-template-columns: 1fr; }

/* ตัวเลือกวิธีชำระเงิน */
.pay-opts { display: grid; gap: 12px; }
.pay-opt {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; border: 1.5px solid var(--sand); border-radius: var(--r-md);
  cursor: pointer; transition: .16s; background: var(--cream);
}
.pay-opt:hover { border-color: var(--brand-light); }
.pay-opt.is-on { border-color: var(--brand); background: var(--brand-wash); box-shadow: 0 0 0 3px var(--brand-wash); }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.pay-opt b { display: block; font-size: .98rem; }
.pay-opt small { display: block; font-size: .83rem; color: var(--ink-soft); line-height: 1.5; }
.pay-opt .pay-ico { font-size: 1.5rem; }
.pay-detail {
  margin-top: 14px; padding: 18px; background: var(--sage-wash);
  border-radius: var(--r-md); font-size: .92rem;
}
.pay-detail[hidden] { display: none; }

/* อัปโหลดสลิป */
.slip-drop {
  border: 2px dashed var(--brand-light); border-radius: var(--r-md); background: var(--white);
  padding: 26px 18px; text-align: center; cursor: pointer; transition: .16s;
}
.slip-drop:hover, .slip-drop.is-over { background: var(--brand-wash); border-color: var(--brand); }
.slip-drop input { display: none; }
.slip-preview { display: none; margin-top: 14px; }
.slip-preview.is-on { display: block; }
.slip-preview img { max-height: 260px; width: auto; border-radius: var(--r-sm); box-shadow: var(--sh-sm); margin-inline: auto; }

/* สรุปคำสั่งซื้อ */
.co-summary { position: sticky; top: calc(var(--nav-h) + 16px); }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--sand); }
.co-line img, .co-line .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.co-line b { display: block; font-size: .9rem; font-weight: 600; }
.co-line span { font-size: .82rem; color: var(--ink-faint); }
.co-totals { margin-top: 16px; font-size: .93rem; }
.co-totals div { display: flex; justify-content: space-between; padding: 5px 0; }
.co-totals .co-grand {
  border-top: 1px solid var(--sand); margin-top: 10px; padding-top: 14px;
  font-size: 1.05rem; font-weight: 600;
}
.co-totals .co-grand b { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-dark); }

.co-err {
  background: #FBEAE6; color: #96341F; border-radius: var(--r-sm);
  padding: 12px 16px; font-size: .9rem; margin-bottom: 14px;
}
.co-err[hidden] { display: none; }
.field-err { border-color: var(--danger) !important; }
.field small.err { color: var(--danger); font-weight: 500; }

.co-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--ink-soft); margin-top: 16px; }

/* หน้าขอบคุณ */
.thanks { max-width: 620px; margin-inline: auto; text-align: center; }
.thanks__mark {
  width: 88px; height: 88px; border-radius: 50%; background: var(--sage-wash);
  display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 20px;
}
.thanks__no {
  display: inline-block; font-family: monospace; font-size: 1.3rem; letter-spacing: .06em;
  background: var(--cream-2); padding: 12px 24px; border-radius: var(--r-md); margin: 6px 0 20px;
}

@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .co-row { grid-template-columns: 1fr; }
}

/* ---------- 27. Order tracking ---------- */
.track-box {
  max-width: 620px; margin-inline: auto; background: var(--white);
  border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-md);
}
.track-form { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: end; }
.track-form .field { margin: 0; }
.track-form .btn { grid-column: 1 / -1; }

.order-card {
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-md);
  overflow: hidden; max-width: 760px; margin: 26px auto 0;
}
.order-card__head {
  padding: 22px clamp(20px, 3vw, 30px); background: var(--cream-2);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
}
.order-card__head h3 { margin: 0; font-size: 1.15rem; letter-spacing: .02em; }
.order-card__head small { color: var(--ink-soft); }
.order-card__body { padding: clamp(20px, 3vw, 30px); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: var(--r-pill); font-weight: 600; font-size: .9rem;
  background: var(--sage-wash); color: var(--sage-dark);
}
.status-pill--warn   { background: var(--gold-wash); color: #8A6D0B; }
.status-pill--danger { background: #FBEAE6; color: var(--danger); }

.timeline { list-style: none; padding: 0; margin: 26px 0 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 12px; bottom: 12px;
  width: 2px; background: var(--sand);
}
.timeline li { position: relative; padding: 0 0 26px 46px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--sand); display: grid; place-items: center;
  font-size: .9rem; z-index: 1;
}
.timeline li.is-done .timeline__dot { border-color: var(--sage); background: var(--sage-wash); }
.timeline li.is-current .timeline__dot {
  border-color: var(--brand); background: var(--brand); color: #fff;
  box-shadow: 0 0 0 5px var(--brand-wash);
}
.timeline li.is-todo { opacity: .45; }
.timeline b { display: block; font-size: .98rem; }
.timeline span { font-size: .85rem; color: var(--ink-soft); }
.timeline time { display: block; font-size: .8rem; color: var(--ink-faint); margin-top: 2px; }

.order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--sand); }
.order-meta dt { font-size: .76rem; color: var(--ink-faint); letter-spacing: .05em; text-transform: uppercase; }
.order-meta dd { margin: 3px 0 0; font-weight: 600; font-size: .94rem; }

.recent-orders { display: grid; gap: 10px; margin-top: 14px; }
.recent-order {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-md);
  padding: 14px 18px; font-size: .92rem; text-align: left; width: 100%;
}
.recent-order:hover { border-color: var(--brand); background: var(--brand-wash); }

@media (max-width: 560px) {
  .track-form { grid-template-columns: 1fr; }
}

/* ---------- 26. Mobile nav sheet ---------- */
.mnav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 59; padding: 20px var(--gutter) 40px;
  display: none; overflow-y: auto;
  animation: mnavIn .22s cubic-bezier(.4,0,.2,1);
}
@keyframes mnavIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mnav.is-open { display: block; }
.mnav a {
  display: flex; align-items: center; gap: 12px; padding: 15px 6px;
  font-size: 1.04rem; font-weight: 500; border-bottom: 1px solid var(--sand);
}
.mnav a i { font-style: normal; font-size: 1.15rem; width: 26px; text-align: center; flex: 0 0 auto; }
.mnav a small { display: block; font-size: .79rem; color: var(--ink-faint); font-weight: 400; }
.mnav a.is-active { color: var(--brand-dark); font-weight: 600; }
.mnav__group { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 22px 6px 4px; }
.mnav__foot { margin-top: 26px; display: grid; gap: 10px; }
