@charset "UTF-8";
/* =========================================================
   Rixie ริกซี่ — สไตล์หลักของเว็บไซต์
   โทนสีดึงมาจากซองสินค้าจริง: ชมพูบานเย็น ชมพูอ่อน และทองบนแถบกลางซอง
   ========================================================= */

:root {
  /* สีแบรนด์: ชมพูจากซองสินค้า ใช้กับปุ่มและราคา
     เขียวเข้มเป็นสีโครงสร้าง ใช้กับแถบความมั่นใจ ป้ายกำกับ และแถบปิดท้าย */
  --crimson: #D6407F;
  --crimson-dark: #B72E68;
  --crimson-light: #E86AA0;
  --crimson-wash: #FDEFF5;

  /* ตัวแปรชื่อ gold เดิม ตอนนี้ถือสีเขียวเข้มของธีมนี้ (ไม่เปลี่ยนชื่อ เพราะมีที่เรียกใช้หลายจุด) */
  --gold: #0E5D55;
  --gold-light: #A9CFC9;
  --gold-wash: #E7F2F0;
  --teal: #0E5D55;
  --teal-dark: #0A433D;
  --teal-wash: #E7F2F0;

  --ink: #19241F;
  --ink-2: #4C5B55;
  --ink-3: #7E8C86;
  --paper: #FFFFFF;
  --surface: #F7FAF9;
  --surface-2: #EDF4F2;
  --line: #DFE7E4;
  --line-soft: #EDF2F0;

  --green: #0E5D55;
  --green-wash: #E7F2F0;
  --amber: #9A6516;
  --amber-wash: #FAF0DE;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(25, 36, 31, .05);
  --shadow: 0 1px 2px rgba(25, 36, 31, .05), 0 14px 32px -24px rgba(25, 36, 31, .55);
  --shadow-lg: 0 18px 44px -26px rgba(14, 93, 85, .55);

  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Thai", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "IBM Plex Sans Thai", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(28px, 4.6vw, 44px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--crimson-light);
  outline-offset: 2px;
  border-radius: 4px;
}
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-surface { background: var(--surface); }
.section-ink { background: #2A1D1E; color: #F6EFEC; }
.section-ink h2, .section-ink h3 { color: #FFF; }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--crimson);
  background: var(--crimson-wash);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-head { margin-bottom: 30px; }
.section-head p {
  color: var(--ink-2); max-width: 58ch; margin-top: 10px;
  text-wrap: balance;              /* เกลี่ยให้ทุกบรรทัดยาวใกล้กัน ไม่เหลือคำโดดบรรทัดสุดท้าย */
}
.center { text-align: center; }
/* ต้องมีทั้งสองตัวเลือก เพราะโค้ดเขียนคลาส center ไว้บนตัว section-head เอง
   ถ้ามีแค่แบบลูกหลาน ย่อหน้าจะถูกดันไปชิดซ้ายทั้งเว็บ (เคยพลาดมาแล้ว) */
.center .section-head p,
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 100px;
  font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1.2;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--crimson); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--crimson-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--crimson); border-color: var(--crimson); }
.btn-outline:hover { background: var(--crimson-wash); color: var(--crimson-dark); }
.btn-line { background: #06C755; color: #fff; }
.btn-line:hover { background: #05A948; color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); color: var(--ink); }
.btn-lg { min-height: 60px; font-size: 20px; padding: 14px 34px; }
.btn-sm { min-height: 44px; font-size: 16px; padding: 8px 18px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- แถบประกาศ + เฮดเดอร์ ---------- */
.topbar {
  background: var(--crimson-dark); color: #FBE9EB;
  font-size: 14.5px; text-align: center; padding: 7px 16px;
}
.topbar a { color: #fff; text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  object-fit: cover;
  border: 1.5px solid var(--line);
  background: var(--crimson-wash);
}
.logo-text { line-height: 1.2; }
.logo-text b {
  display: block; font-family: inherit; font-size: 19px;
  color: var(--ink); font-weight: 700; letter-spacing: .01em;
}
.logo-text span { display: block; font-size: 12.5px; color: var(--ink-3); }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 9px; border-radius: 8px;
  color: var(--ink-2); font-size: 16.5px; font-weight: 500; text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--crimson); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); border: 0; border-radius: 50%;
  color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--line); }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 100px; background: var(--crimson); color: #fff;
  font-size: 12.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff;
}
.cart-count[hidden] { display: none; }
.nav-toggle { display: none; }

/* เมนู 10 ปุ่ม (มีวิดีโอรีวิว) ต้องการพื้นที่ ~1,140px ต่ำกว่านั้นใช้ปุ่ม ☰ แทน ไม่ให้โลโก้ถูกบีบ */
@media (max-width: 1140px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line-soft); font-size: 18px; }
  .nav-toggle { display: grid; }
}

/* ---------- ฮีโร่ ---------- */
.hero { background: linear-gradient(170deg, #FFF 0%, var(--gold-wash) 48%, var(--crimson-wash) 100%); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  /* ต้องใส่ระยะขอบซ้ายขวาเอง เพราะ padding ย่อนี้เขียนทับของ .wrap ทั้งชุด */
  padding: 52px var(--gutter) 56px;
}
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.28; }
.hero h1 em { font-style: normal; color: var(--crimson); }
.hero-lede { margin-top: 18px; font-size: 19.5px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.hero .btn-row { margin-top: 26px; }
.hero-figure { position: relative; }
/* รูปหน้าปกต้องเต็มความกว้างของคอลัมน์ ไม่งั้นจะเล็กกว่าช่องที่จองไว้ */
.hero-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero h1 .nowrap { white-space: nowrap; }
.hero-price {
  position: absolute; right: 14px; bottom: -18px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 18px; box-shadow: var(--shadow); text-align: center;
}
.hero-price span { display: block; font-size: 13.5px; color: var(--ink-3); }
.hero-price b { font-size: 26px; color: var(--crimson); font-family: inherit; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }
.hero-points li { font-size: 16.5px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 700; }

@media (max-width: 900px) {
  /* จอแคบเหลือคอลัมน์เดียว จัดตัวหนังสือกลางให้ดูเป็นระเบียบ */
  .hero-inner {
    grid-template-columns: 1fr; gap: 28px;
    padding: 32px var(--gutter) 44px; text-align: center;
  }
  .hero-figure { order: -1; }
  .hero-price { right: 8px; bottom: -14px; }
  .hero-lede { margin-left: auto; margin-right: auto; max-width: 54ch; text-wrap: balance; }
  .hero-points { justify-content: center; }
  .hero .btn-row { justify-content: center; }
}

/* ---------- แถบความมั่นใจ ---------- */
.trustbar { background: #2A1D1E; color: #F6EFEC; }
.trustbar ul {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .1);
}
.trustbar li { background: #2A1D1E; padding: 18px 20px; }
.trustbar b { display: block; font-size: 16.5px; color: #fff; }
.trustbar span { font-size: 14.5px; color: #CBB9B6; }
@media (max-width: 820px) { .trustbar ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- การ์ดทั่วไป ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(266px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(216px, 100%), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.grid > *, .set-grid > *, .chat-grid > *, .split > *, .product-layout > * { min-width: 0; }
.card-pad { padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16.5px; text-wrap: pretty; }
.card-link { color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; }
.card-link:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.card figure { margin: 0; background: var(--surface-2); }
.card figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* รูปวัตถุดิบเป็นวงกลมจัตุรัส ถ้าใช้ cover แบบการ์ดอื่นหัวกับท้ายวงกลมจะถูกตัด
   จึงให้ contain แล้ววางบนพื้นสีเดียวกับพื้นในรูป รอยต่อจึงมองไม่เห็น */
.card figure.ing-thumb { background: var(--surface); }
.card figure.ing-thumb img { aspect-ratio: 16 / 10; object-fit: contain; padding: 16px;
                             background: var(--surface); }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.feature .num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--crimson-wash); color: var(--crimson); font-weight: 700; font-size: 17px;
  margin-bottom: 12px;
}
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 16.5px; text-wrap: pretty; }

/* ---------- รายการติ๊กถูก ---------- */
.checklist li {
  position: relative; padding-left: 34px; margin-bottom: 12px;
  font-size: 17.5px; color: var(--ink-2); text-wrap: pretty;
}
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-wash); color: var(--green);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.warnlist li::before { content: "!"; background: var(--amber-wash); color: var(--amber); }
.dotlist li {
  position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--ink-2); font-size: 17px;
}
.dotlist li::before {
  content: ""; position: absolute; left: 2px; top: .78em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

/* ---------- ชุดสินค้า ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(208px, 100%), 1fr)); gap: 18px; }
.set-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.set-card:hover { border-color: var(--gold-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.set-card.is-featured { border-color: var(--crimson); }
/* กันเบราว์เซอร์ตัดบรรทัดกลางคำไทย — ดูฟังก์ชัน nb() ใน build.py */
.nb { white-space: nowrap; }

/* รูปผู้ดูแลแบรนด์ — ให้เต็มคอลัมน์เสมอ ไม่ใช่ขนาดจริงของไฟล์
   ไม่งั้นบนจอกว้างจะเหลือพื้นที่ว่างข้างรูป และรูปสูงเกินไป */
.expert-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }
/* รูปสินค้าในบล็อกสองคอลัมน์ — จำกัดขนาดไม่ให้สูงจนกินทั้งจอตอนคอลัมน์ยุบเป็นแถวเดียว */
.product-photo { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; display: block; }
@media (max-width: 860px) { .product-photo { max-width: 320px; } }
/* จอแคบ .split จะเรียงลงมาเป็นคอลัมน์เดียว ถ้าปล่อยเต็มความกว้างรูปจะสูงจนกินทั้งจอ */
@media (max-width: 860px) {
  .expert-photo { max-width: 320px; margin-left: auto; margin-right: auto; display: block; }
}

/* คลิปรีวิว YouTube — แสดงรูปปกก่อน คลิปโหลดตอนกดเล่นเท่านั้น */
.vid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .vid-grid { grid-template-columns: 1fr; gap: 16px; } }
.vid { margin: 0; }
.vid-play { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line);
            border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2);
            cursor: pointer; box-shadow: var(--shadow-sm); }
.vid-play img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vid-play:hover { border-color: var(--crimson-light); box-shadow: var(--shadow); }
.vid-btn { position: absolute; inset: 0; margin: auto; width: 74px; height: 52px; border-radius: 14px;
           background: rgba(214, 64, 127, .92); box-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.vid-btn::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
                  border-style: solid; border-width: 11px 0 11px 18px;
                  border-color: transparent transparent transparent #fff; }
.vid-play:hover .vid-btn { background: var(--crimson); }
.vid iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0;
              border-radius: var(--radius-lg); background: #000; }
.vid figcaption { margin-top: 10px; font-size: 16.5px; line-height: 1.55; }
.vid figcaption b { display: block; color: var(--ink); }
.vid figcaption span { color: var(--ink-3); font-size: 15px; }
/* ปกที่ทำเอง: ซ้ายเป็นพื้นชมพูแบรนด์ ชื่อผู้รีวิวพิมพ์เป็น HTML (ไม่ฝังตัวอักษรไทยลงรูป) ขวาเป็นหน้าลูกค้า */
.vid-name { position: absolute; left: 6%; top: 34%; width: 42%; text-align: left; color: #fff;
            font-family: inherit; font-weight: 700; line-height: 1.2;
            font-size: clamp(19px, 3.1vw, 30px); text-shadow: 0 2px 10px rgba(120, 20, 60, .35); }
.vid-name small { display: block; margin-bottom: 4px; font-family: inherit; font-weight: 600;
                  font-size: clamp(12px, 1.3vw, 14px); letter-spacing: .04em; opacity: .92; }
.vid-play.has-cover .vid-btn { inset: auto; left: 6%; bottom: 14%; margin: 0; width: 62px; height: 44px;
                               background: rgba(255, 255, 255, .95); }
.vid-play.has-cover .vid-btn::after { border-color: transparent transparent transparent var(--crimson); }
.vid-play.has-cover:hover .vid-btn { background: #fff; transform: scale(1.06); }
@media (max-width: 420px) { .vid-play.has-cover .vid-btn { width: 50px; height: 36px; bottom: 11%; } }
/* คลิปที่ฝังในหน้าไม่ได้ (YouTube จำกัดอายุผู้ชม) — การ์ดเป็นลิงก์เปิด YouTube ปุ่มมีคำว่า ดูบน YouTube */
.vid-play.is-link, .vid-play.is-link:hover { text-decoration: none; color: inherit; }
.vid-play .vid-btn.vid-btn-text { width: auto; display: flex; align-items: center; padding: 0 16px 0 40px;
                                  font-size: 15.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.vid-play .vid-btn.vid-btn-text::after { inset: 0 auto 0 17px; border-width: 8px 0 8px 13px; }
.vid-play.has-cover .vid-btn.vid-btn-text { color: var(--crimson); }
@media (max-width: 420px) {
  .vid-play .vid-btn.vid-btn-text { padding: 0 12px 0 31px; font-size: 13.5px; }
  .vid-play .vid-btn.vid-btn-text::after { left: 13px; border-width: 6px 0 6px 10px; }
}
.vid figcaption span { color: var(--ink-3); font-size: 15px; }

/* ตารางภาพหน้าจอรีวิวจากร้านค้าออนไลน์ */
/* แถวละ 2 ภาพ ให้ตัวหนังสือในภาพหน้าจออ่านออก · จอมือถือเหลือแถวละ 1 ภาพ */
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
        background: #fff; box-shadow: var(--shadow-sm); }
.shot img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .shot-grid { grid-template-columns: 1fr; gap: 14px; } }

.set-card figure { margin: 0; background: var(--surface-2); }
.set-card figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
/* ป้ายต้องอยู่หน้ากระปุกเสมอ กระปุกใบแรกใช้ z-index 4 ป้ายจึงต้องสูงกว่านั้น */
.set-badge {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  background: var(--crimson); color: #fff; font-size: 14px; font-weight: 600;
  padding: 5px 13px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.set-badge.gold { background: var(--gold); color: #2A1D1E; }
.set-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.set-body h3 { font-size: 22px; }
.set-meta { font-size: 15.5px; color: var(--ink-3); }
.set-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.set-price .now {
  font-family: inherit; font-size: 30px; font-weight: 700; color: var(--crimson);
  font-variant-numeric: tabular-nums;
}
.set-price .was { font-size: 17px; color: var(--ink-3); text-decoration: line-through; }
.set-save {
  display: inline-block; font-size: 14.5px; font-weight: 600;
  color: var(--green); background: var(--green-wash); padding: 2px 10px; border-radius: 100px;
}

/* ---------- ตารางเปรียบเทียบ ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
thead th { background: var(--surface); font-size: 15px; font-weight: 600; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-highlight { background: var(--gold-wash); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .save { color: var(--green); font-weight: 600; }

/* ---------- หน้าสินค้า ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; min-width: 0; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: 26px; } }

.gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
}
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  flex: 1; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer;
}
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--crimson); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.buybox { display: flex; flex-direction: column; gap: 18px; }
.buybox .fda { font-size: 15.5px; color: var(--ink-3); }
.buybox h1 { font-size: clamp(26px, 3.6vw, 38px); }
.buybox .sub { color: var(--ink-2); font-size: 18px; }
.price-now {
  font-family: inherit; font-size: 40px; font-weight: 700;
  color: var(--crimson); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.option-list { display: grid; gap: 10px; }
.option {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; background: #fff;
}
.option:hover { border-color: var(--gold-light); }
.option input { width: 20px; height: 20px; accent-color: var(--crimson); }
.option.selected { border-color: var(--crimson); background: var(--crimson-wash); }
.option b { display: block; font-size: 18px; font-weight: 600; }
.option small { display: block; font-size: 14.5px; color: var(--ink-3); }
.option .op-price { font-weight: 700; font-size: 20px; color: var(--crimson); font-variant-numeric: tabular-nums; }
.option .op-tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: #fff; background: var(--gold);
  padding: 1px 9px; border-radius: 100px; margin-left: 8px; vertical-align: 2px;
}

.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 100px; }
.qty button {
  width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px;
  cursor: pointer; color: var(--ink); border-radius: 50%;
}
.qty button:hover { background: var(--surface-2); }
.qty input {
  width: 50px; text-align: center; border: 0; font-size: 18px; font-family: inherit;
  font-variant-numeric: tabular-nums; background: transparent; color: var(--ink);
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[type=number] { -moz-appearance: textfield; }

.assure { display: grid; gap: 8px; padding-top: 4px; }
.assure li { font-size: 16px; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.assure li::before { content: "•"; color: var(--gold); font-weight: 700; }

/* ---------- ส่วนประกอบ ---------- */
.ing-card { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.ing-card img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.ing-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.ing-head h3 { font-size: 20px; }
.ing-en { font-size: 15px; color: var(--ink-3); }
.ing-amount {
  font-size: 15px; font-weight: 600; color: var(--crimson);
  background: var(--crimson-wash); padding: 2px 10px; border-radius: 100px; white-space: nowrap;
}
.ing-card p { font-size: 16.5px; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 560px) {
  .ing-card { grid-template-columns: 68px 1fr; gap: 14px; }
  .ing-card img { width: 68px; height: 68px; }
}

/* ---------- รีวิว ---------- */
.review-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.review-top { display: flex; align-items: center; gap: 14px; }
.review-top img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex: none; }
.review-top b { display: block; font-size: 19px; font-family: inherit; }
.review-top span { font-size: 15px; color: var(--ink-3); }
.review-quote { font-size: 17.5px; color: var(--ink-2); text-wrap: pretty; }
.review-quote::before { content: "“"; color: var(--gold); font-size: 30px; line-height: 0; vertical-align: -6px; margin-right: 2px; }
.review-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 14.5px; padding: 3px 12px; border-radius: 100px;
  background: var(--surface-2); color: var(--ink-2);
}
.review-figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.disclaimer {
  font-size: 15px; color: var(--ink-3); background: var(--surface);
  border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 0 8px 8px 0;
}

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 34px; }
.faq-group > h3 { margin-bottom: 12px; color: var(--crimson); }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px;
}
.faq details[open] { border-color: var(--gold-light); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative;
  font-size: 18.5px; font-weight: 600; font-family: inherit; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--crimson); font-family: inherit; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--ink-2); font-size: 17px; }

/* ---------- บทความ / เนื้อหายาว ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin: 38px 0 12px; }
.prose h3 { margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; color: var(--ink-2); font-size: 18px; text-wrap: pretty; }
.prose ul { margin-bottom: 16px; }
.answer-box {
  background: var(--gold-wash); border: 1px solid var(--gold-light);
  border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 8px;
}
.answer-box b { display: block; font-size: 15px; color: var(--amber); margin-bottom: 6px; letter-spacing: .04em; }
.answer-box p { font-size: 18.5px; color: var(--ink); margin: 0; text-wrap: pretty; }
.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0;
}
.toc b { display: block; margin-bottom: 8px; }
.toc a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 16.5px; }
.toc a:hover { color: var(--crimson); }
.meta-line { color: var(--ink-3); font-size: 15.5px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.breadcrumb { font-size: 15px; color: var(--ink-3); padding: 16px 0 0; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--crimson); }

.cta-inline {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
  background: var(--crimson-wash); border: 1px solid #F2D9DC; border-radius: var(--radius-lg);
  padding: 20px 24px; margin: 30px 0;
}
.cta-inline img { border-radius: 10px; }
.cta-inline h3 { font-size: 21px; margin-bottom: 6px; }
.cta-inline p { font-size: 16.5px; color: var(--ink-2); margin-bottom: 12px; }
@media (max-width: 620px) { .cta-inline { grid-template-columns: 1fr; } .cta-inline img { max-width: 120px; } }

/* ---------- ตะกร้า / เช็คเอาท์ ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.cart-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.cart-item h3 { font-size: 19px; }
.cart-item .ci-meta { font-size: 15px; color: var(--ink-3); }
.cart-item .ci-price { font-weight: 700; font-size: 20px; color: var(--crimson); font-variant-numeric: tabular-nums; }
/* พื้นที่นิ้วกดต้องไม่ต่ำกว่า 40px ตามเกณฑ์มือถือ ปุ่มลบเดิมสูงแค่ 28px */
.cart-item .link-remove { background: none; border: 0; color: var(--ink-3); font-size: 15px;
                          cursor: pointer; padding: 10px 0; min-height: 40px; font-family: inherit; }
.cart-item .link-remove:hover { color: var(--crimson); text-decoration: underline; }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item .ci-right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
}

.summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; position: sticky; top: calc(var(--header-h) + 16px);
}
.summary h3 { margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 17px; color: var(--ink-2); }
.sum-row.total {
  border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px;
  font-size: 21px; color: var(--ink); font-weight: 600;
}
.sum-row.total b { color: var(--crimson); font-family: inherit; font-size: 26px; font-variant-numeric: tabular-nums; }
.freeship-bar { height: 8px; background: var(--line); border-radius: 100px; overflow: hidden; margin: 6px 0 10px; }
.freeship-bar i { display: block; height: 100%; background: var(--green); border-radius: 100px; transition: width .3s ease; }
.freeship-note { font-size: 15.5px; color: var(--green); font-weight: 600; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state p { color: var(--ink-2); margin: 10px 0 22px; }

/* ---------- ฟอร์ม ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 16px; }
.form-row-zip { display: grid; grid-template-columns: .62fr 1.38fr; gap: 16px; }
@media (max-width: 760px) { .form-row-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .form-row, .form-row-3, .form-row-zip { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: 14.5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-family: inherit; font-size: 17.5px;
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--crimson-light); }
.field textarea { min-height: 92px; resize: vertical; }
.field .error { color: var(--crimson); font-size: 15px; margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--crimson); }
.field.has-error .error { display: block; }
.pay-option {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 15px 16px; cursor: pointer; background: #fff;
}
.pay-option.selected { border-color: var(--crimson); background: var(--crimson-wash); }
.pay-option input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--crimson); }
.pay-option b { font-size: 18px; }
.pay-option small { display: block; color: var(--ink-3); font-size: 15px; }
.pay-detail {
  margin-top: 12px; padding: 14px 16px; background: var(--surface);
  border-radius: var(--radius); font-size: 16px; color: var(--ink-2);
}
.zip-hint {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: -4px; padding: 10px 14px; border-radius: var(--radius);
  font-size: 15.5px; background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line-soft);
}
.zip-hint.ok { background: var(--green-wash); border-color: #BFE0D0; color: #1F5E43; }
.zip-hint.warn { background: var(--amber-wash); border-color: #EDD8AE; color: #7A4E10; }
.zip-chip {
  font-family: inherit; font-size: 15.5px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 14px; color: var(--ink); min-height: 38px;
}
.zip-chip:hover { border-color: var(--crimson); color: var(--crimson); }

.bank-box { display: grid; gap: 6px; }
.bank-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.bank-of { font-size: 17px; color: var(--ink); }
.bank-no {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: inherit; font-size: 26px; font-weight: 700;
  color: var(--crimson); font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.bank-name { font-size: 16.5px; color: var(--ink-2); }
.bank-note { font-size: 15px; color: var(--ink-3); margin-top: 4px; }

.pp-box {
  margin-top: 16px; padding: 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); text-align: center;
}
.pp-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.pp-box canvas { margin: 0 auto; border-radius: 6px; display: block; }
.pp-amount { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); }
.pp-amount b { font-size: 22px; color: var(--crimson); font-variant-numeric: tabular-nums; }
.pp-note { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }

.checkbox-line { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--ink-2); }
.checkbox-line input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--crimson); flex: none; }

.notice {
  border-radius: var(--radius); padding: 14px 18px; font-size: 16.5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.notice.ok { background: var(--green-wash); border-color: #BFE0D0; color: #1F5E43; }
.notice.warn { background: var(--amber-wash); border-color: #EDD8AE; color: #7A4E10; }
.notice.err { background: var(--crimson-wash); border-color: #F0CFD3; color: var(--crimson-dark); }

/* ---------- หน้าขอบคุณ ---------- */
.thanks-icon {
  width: 84px; height: 84px; border-radius: 50%; background: var(--green-wash); color: var(--green);
  display: grid; place-items: center; font-size: 42px; margin: 0 auto 18px;
}
.order-box {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 22px 24px;
  text-align: left;
}
.order-no {
  font-family: inherit; font-size: 27px; color: var(--crimson);
  font-variant-numeric: tabular-nums;
}
.steps {
  counter-reset: st;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.steps li {
  counter-increment: st;
  position: relative;              /* ไม่ใช้ grid เพราะจะทำให้ <b> กลายเป็นช่องแยกแล้วข้อความแตกบรรทัด */
  padding: 15px 22px 15px 64px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-2);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(st);
  position: absolute; left: 20px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--crimson); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; font-family: inherit;
}
.steps li b { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .steps li { padding: 14px 16px 14px 54px; font-size: 17px; }
  .steps li::before { left: 14px; }
}

/* ---------- ฟุตเตอร์ + แถบล่างมือถือ ---------- */
.site-footer { background: #241A1B; color: #CFC0BD; padding: 48px 0 130px; margin-top: 60px; font-size: 16px; }
@media (min-width: 901px) { .footer-legal { padding-right: 260px; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; align-items: start; }
/* จอกลาง เหลือ 2 คอลัมน์ — สลับให้สองบล็อกที่ยาวเท่ากันอยู่แถวเดียวกัน
   ไม่งั้นบล็อกสั้นจะเหลือช่องว่างใต้ตัวเองเป็นร้อยพิกเซล */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-grid > :nth-child(1) { order: 3; }   /* แบรนด์ */
  .footer-grid > :nth-child(2) { order: 1; }   /* สินค้าและบริการ */
  .footer-grid > :nth-child(3) { order: 2; }   /* อาการที่ควรดูแล */
  .footer-grid > :nth-child(4) { order: 4; }   /* ติดต่อร้าน */
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid > :nth-child(1) { order: 0; }   /* จอแคบเรียงตามเดิม แบรนด์ขึ้นก่อน */
  .footer-grid > :nth-child(2) { order: 1; }
  .footer-grid > :nth-child(3) { order: 2; }
  .footer-grid > :nth-child(4) { order: 3; }
}
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.site-footer a { color: #CFC0BD; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 9px; }
.footer-legal {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14.5px; color: #A2908D; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.legal-warning {
  background: rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 14px 18px;
  font-size: 14.5px; color: #C3B2AF; margin-top: 26px;
}

/* ปุ่มติดต่อลอย สำหรับจอคอม (จอมือถือใช้แถบล่างแทน) */
.float-contact {
  position: fixed; right: 22px; bottom: 22px; z-index: 65;
  display: none; flex-direction: column; align-items: flex-end; gap: 10px;
}
.float-contact a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 100px;
  font-size: 16.5px; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 18px -4px rgba(46, 28, 38, .35);
  transition: transform .14s ease, box-shadow .14s ease;
}
.float-contact a:hover {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(46, 28, 38, .45);
}
.float-contact .fc-line { background: #06C755; color: #fff; }
.float-contact .fc-line:hover { background: #05A948; color: #fff; }
.float-contact .fc-tel { background: #fff; color: var(--crimson); border: 1px solid var(--line); }
.float-contact .fc-tel:hover { background: var(--crimson-wash); color: var(--crimson-dark); }
@media (min-width: 901px) { .float-contact { display: flex; } }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -12px rgba(46, 28, 38, .4);
}
.mobile-bar .btn { min-height: 50px; font-size: 17px; padding: 10px 12px; }
@media (min-width: 901px) { .mobile-bar { display: none; } .site-footer { padding-bottom: 48px; } }

/* ---------- แถบขอความยินยอมใช้คุกกี้ ---------- */
.consent-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  max-width: 780px; margin: 0 auto;
  padding: 16px 20px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 40px -10px rgba(46, 28, 38, .35);
}
.consent-bar p { flex: 1; min-width: 260px; font-size: 15.5px; color: var(--ink-2); }
.consent-actions { display: flex; gap: 10px; flex: none; }
@media (max-width: 900px) { .consent-bar { bottom: 82px; } }
@media (max-width: 560px) { .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(12px);
  background: #241A1B; color: #fff; padding: 13px 22px; border-radius: 100px;
  font-size: 16.5px; box-shadow: var(--shadow-lg); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 901px) { .toast { bottom: 32px; } }

/* ---------- อื่น ๆ ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 100px;
  padding: 8px 16px; font-size: 16.5px; color: var(--ink-2); text-decoration: none;
}
.pill:hover { border-color: var(--crimson); color: var(--crimson); text-decoration: none; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.rounded { border-radius: var(--radius-lg); }
.video-wrap { border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-wrap video { width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-2 { margin-bottom: 20px; }
.text-muted { color: var(--ink-3); font-size: 16px; }

@media (max-width: 560px) {
  .logo-text span { display: none; }
  .logo-text b { font-size: 18px; }
  .topbar { font-size: 13.5px; }
  .hero h1 { font-size: 28px; }
  body { font-size: 17.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .mobile-bar, .float-contact, .site-footer, .topbar { display: none; }
  body { font-size: 12pt; }
}

/* ---------- รีวิวแชทจากลูกค้าจริง ---------- */
.chat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.chat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--surface); border-bottom: 1px solid var(--line-soft);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #06C755; color: #fff; font-weight: 700; font-size: 17px;
}
.chat-head b { display: block; font-size: 17px; font-family: inherit; }
.chat-head span { display: block; font-size: 14px; color: var(--ink-3); }
.chat-head .chip { margin-left: auto; flex: none; }
.chat-body {
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  background: #E9E4E0; flex: 1;
}
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg.customer { align-self: flex-end; align-items: flex-end; }
.chat-msg.shop { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 11px 15px; border-radius: 16px; font-size: 16.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.chat-msg.customer .chat-bubble { background: #9BE38B; color: #1D2B18; border-bottom-right-radius: 5px; }
.chat-msg.shop .chat-bubble { background: #fff; color: var(--ink); border-bottom-left-radius: 5px; }
.chat-time { font-size: 12.5px; color: #7A736E; margin-top: 3px; }
.chat-foot {
  padding: 11px 18px; font-size: 14px; color: var(--ink-3);
  border-top: 1px solid var(--line-soft); background: #fff;
}
@media (max-width: 560px) { .chat-msg { max-width: 90%; } }

/* ---------- จอมือถือ: ตารางกลายเป็นการ์ด ไม่ต้องเลื่อนซ้ายขวา ---------- */
@media (max-width: 560px) {
  .tablewrap { overflow-x: visible; border: 0; background: transparent; border-radius: 0; }
  .tablewrap table { min-width: 0; border-collapse: separate; border-spacing: 0 10px; }
  .tablewrap thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
                     overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .tablewrap tbody tr { display: block; background: #fff; border: 1px solid var(--line);
                        border-radius: var(--radius); padding: 12px 14px; }
  .tablewrap tbody tr.is-highlight { border-color: var(--gold); background: var(--gold-wash); }
  .tablewrap tbody td { display: flex; align-items: baseline; justify-content: space-between;
                        flex-wrap: wrap; gap: 4px 16px; border: 0; padding: 6px 0; text-align: right;
                        min-width: 0; overflow-wrap: anywhere; }
  .tablewrap tbody td::before { content: attr(data-label); color: var(--ink-3); font-size: 15.5px;
                                text-align: left; flex: 0 1 auto; min-width: 0; }
  .tablewrap tbody td:first-child { display: block; text-align: left; padding: 0 0 9px;
                                    margin-bottom: 5px; border-bottom: 1px solid var(--line-soft); }
  .tablewrap tbody td:first-child::before { content: none; }
}

/* ---------- จอมือถือ: ขยายพื้นที่นิ้วกดของลิงก์เล็ก ๆ ---------- */
@media (max-width: 900px) {
  .site-footer li { margin-bottom: 2px; }
  .site-footer li a { display: inline-block; padding: 9px 0; }
  .breadcrumb { padding-top: 10px; }
  .breadcrumb a { display: inline-block; padding: 7px 2px; }
  .topbar a { display: inline-block; padding: 8px 4px; margin: -6px 0; }
  .site-header .logo-text span { font-size: 13px; }
}

/* ---------- วงกลมอักษรย่อ ใช้แทนรูปที่ยังไม่มี ---------- */
.ing-card .ing-initial {
  width: 96px; height: 96px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #fff; font-family: inherit; font-size: 40px; font-weight: 700;
}
.review-initial {
  flex: 0 0 auto; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--crimson) 100%);
  color: #fff; font-family: inherit; font-size: 26px; font-weight: 700;
}
@media (max-width: 560px) {
  .ing-card .ing-initial { width: 68px; height: 68px; font-size: 30px; }
}

/* ---------- หัวข้อรีวิวพร้อมรูปลูกค้าแบบวงกลม (ใช้เมื่อไม่มีภาพใหญ่) ---------- */
.review-head { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.review-head h2 { margin: 0; }
.review-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
                 flex: 0 0 auto; box-shadow: var(--shadow-sm); }
@media (max-width: 560px) { .review-avatar { width: 76px; height: 76px; } }

/* ลิงก์นโยบายท้ายเว็บ — ต้องมีลิงก์เข้าถึงได้ ไม่งั้น Google ไม่เก็บหน้าเหล่านี้เข้าระบบ
   และผู้ให้บริการรับชำระเงินก็ขอดูหน้าเหล่านี้ตอนสมัคร */
.footer-policy { display: block; margin-top: 6px; }
.footer-policy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-policy a:hover { color: #fff; }

/* =========================================================
   ธีม "ที่ปรึกษาส่วนตัว" — ส่วนที่เขียนทับของเดิม
   วางไว้ท้ายไฟล์เพื่อให้ชนะกฎด้านบนที่ความจำเพาะเท่ากัน
   ========================================================= */

/* ---------- แถบบนสุด + เฮดเดอร์ ---------- */
.topbar { background: var(--teal); color: #DCEBE8; }
.topbar a { color: #fff; }
.site-header { border-bottom: 1px solid var(--line); box-shadow: none; }
.logo-mark { border-radius: 10px; }
.main-nav a[aria-current="page"] { color: var(--teal); }
.icon-btn { background: var(--teal-wash); color: var(--teal); }
.icon-btn:hover { background: var(--gold-light); }

/* ---------- ปุ่ม ---------- */
.btn { border-radius: 10px; }
.btn:hover { transform: none; }
.btn-outline { color: var(--teal); border-color: var(--line); }
.btn-outline:hover { background: var(--teal-wash); color: var(--teal-dark); border-color: var(--teal); }
.qty { border-radius: 10px; }

/* ---------- ป้ายกำกับหัวข้อ ---------- */
.eyebrow {
  color: var(--teal); background: var(--teal-wash);
  border-radius: 7px; letter-spacing: .02em; padding: 5px 13px;
}

/* ---------- รูปหน้าปก ---------- */
.cover {
  position: relative; overflow: hidden; display: flex; justify-content: center;
  background: #F7EAEF; border-bottom: 1px solid var(--line);
}
.cover::before {
  content: ""; position: absolute; inset: -6%;
  background: var(--cover-bg) center / cover no-repeat;
  filter: blur(38px) saturate(1.05); transform: scale(1.12);
}
.cover::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 64px;
  background: linear-gradient(transparent, rgba(255, 255, 255, .55));
}
.cover img {
  position: relative; z-index: 1;
  width: auto; max-width: 100%; max-height: 560px; object-fit: contain;
}

/* ---------- แถบความมั่นใจใต้หน้าปก ---------- */
.trustline { background: var(--teal); color: #DCEBE8; font-size: 15.5px; }
.trustline ul {
  display: flex; flex-wrap: wrap; gap: 8px 30px;
  justify-content: center; padding: 13px 0;
}
.trustline li { display: flex; gap: 8px; align-items: center; }
.trustline b { color: #fff; font-weight: 600; }

/* แถบความมั่นใจแบบเดิม (หน้ารอง) เปลี่ยนเป็นพื้นเขียว */
.trustbar { background: var(--teal); color: #DCEBE8; }
.trustbar li { background: var(--teal); }
.trustbar span { color: #BFD9D5; }

/* ---------- ฮีโร่แบบจัดกึ่งกลางใต้หน้าปก ---------- */
.hero { background: var(--paper); }
.hero-center { text-align: center; padding: 52px var(--gutter) 0; }
.hero-center h1 { max-width: 19ch; margin: 0 auto; }
.hero-center h1 em { font-style: normal; color: var(--crimson); }
.hero-center .hero-lede { max-width: 62ch; margin: 18px auto 0; }
.hero-center .checklist {
  max-width: 660px; margin: 26px auto 0; text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px;
}
.hero-center .checklist li:last-child { grid-column: 1 / -1; }
.hero-center .btn-row { justify-content: center; margin-top: 28px; }
@media (max-width: 900px) {
  .hero-center { padding-top: 34px; }
  .hero-center .checklist { grid-template-columns: 1fr; }
  .cover img { max-height: none; width: 100%; }
  .cover::after { height: 48px; }
  .trustline { font-size: 14.5px; }
  .trustline ul { gap: 6px 18px; padding: 11px 0; }
}

/* ---------- แบบเลือกอาการ ---------- */
.quiz {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px; box-shadow: var(--shadow-lg);
}
.quiz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quiz-item {
  display: flex; gap: 11px; align-items: center;
  border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 15px;
  font-size: 16.5px; cursor: pointer; background: #fff; user-select: none;
  transition: border-color .12s ease, background-color .12s ease;
}
.quiz-item:hover { border-color: var(--gold-light); }
.quiz-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.quiz-item .box {
  width: 21px; height: 21px; border-radius: 6px; border: 2px solid #C3D2CD;
  flex: none; display: grid; place-items: center; color: #fff; font-size: 13px; line-height: 1;
}
.quiz-item.on { border-color: var(--teal); background: var(--teal-wash); }
.quiz-item.on .box { background: var(--teal); border-color: var(--teal); }
.quiz-item.on .box::after { content: "✓"; }
.quiz-result {
  margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 22px;
  display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center;
}
.quiz-result img { width: 120px; border-radius: 10px; }
.quiz-result .r-label { font-size: 14.5px; color: var(--teal); font-weight: 600; }
.quiz-result h3 { margin: 2px 0 4px; }
.quiz-result p { color: var(--ink-2); font-size: 16.5px; }
.quiz-result .r-price { font-size: 27px; font-weight: 700; color: var(--crimson); margin-top: 6px; }
.quiz-result .r-price s { font-size: 16px; color: var(--ink-3); font-weight: 400; margin-left: 8px; }
.quiz-result .r-actions { display: grid; gap: 9px; }
@media (max-width: 900px) {
  .quiz { padding: 20px; }
  .quiz-grid { grid-template-columns: 1fr 1fr; }
  .quiz-item { font-size: 15.5px; padding: 11px 13px; }
  .quiz-result { grid-template-columns: 1fr; }
  .quiz-result img { width: 140px; }
}
@media (max-width: 520px) { .quiz-grid { grid-template-columns: 1fr; } }

/* ---------- ไทม์ไลน์แนวทางการทาน ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 19px;
  height: 2px; background: var(--line);
}
.timeline li { text-align: center; padding: 0 12px; position: relative; }
.timeline .step {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 2px solid var(--teal); color: var(--teal);
  display: grid; place-items: center; font-weight: 700;
  margin: 0 auto 12px; position: relative; z-index: 1;
}
.timeline b { display: block; margin-bottom: 3px; }
.timeline p { font-size: 15.5px; color: var(--ink-3); line-height: 1.65; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .timeline::before { display: none; }
}

/* ---------- ตารางส่วนประกอบ ---------- */
.ing-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ing-table tbody tr:nth-child(even) td { background: #FCFDFD; }

/* ---------- การ์ดและตาราง ---------- */
.card { border: 1px solid var(--line); box-shadow: none; }
.card-link:hover { box-shadow: var(--shadow); transform: none; border-color: var(--gold-light); }
.set-card { border: 1.5px solid var(--line); box-shadow: none; }
.set-card:hover { transform: none; }
.set-card.is-featured { border-color: var(--teal); box-shadow: var(--shadow-lg); }
.set-badge { background: var(--teal); color: #fff; }
.set-badge.gold { background: var(--crimson); color: #fff; }
.feature .num { background: var(--teal-wash); color: var(--teal); }
.assure li::before { color: var(--teal); }
.checklist li::before { background: var(--teal-wash); color: var(--teal); }
.option.selected { border-color: var(--teal); background: var(--teal-wash); }
.option input { accent-color: var(--teal); }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--teal); }
tbody tr.is-highlight { background: var(--teal-wash); }

/* ---------- แถบปิดท้าย ---------- */
.section-ink { background: var(--teal); color: #DCEBE8; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.section-ink .btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }

/* ---------- หน้าอาการ (ยกมาจากเว็บ rixiethailand 16 ก.ย. 2569) ----------
   ส่วนหัวแบรนด์ใช้ <p class="hero-title"> ในหน้าอาการ ให้หน้านั้นมี h1 เดียวคือชื่ออาการ
   VDO รีวิวและชุดสินค้าใต้บทความอยู่ในกรอบการ์ด ระยะห่างกระชับ */
.hero .hero-title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; line-height: 1.32;
                    color: var(--ink); max-width: 19ch; margin: 0 auto; text-wrap: balance; }
.hero .hero-title em { font-style: normal; color: var(--crimson); }
.sym-article { padding-bottom: 8px; }
.sym-after { padding: 14px 0; }
.sym-after > .wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
                     padding: 30px 28px 32px; }
.sym-after .section-head { margin-bottom: 22px; }
.sym-after + .section:not(.sym-after) { margin-top: 26px; }
@media (max-width: 700px) {
  .sym-after { padding: 10px 0; }
  .sym-after > .wrap { margin-left: 12px; margin-right: 12px; padding: 22px 14px 24px; }
}

/* ---------- ปุ่มและลิงก์ให้กดง่ายบนมือถือ (ตรวจก่อนยิงโฆษณา 18 ก.ย. 2569) ----------
   Google ถือว่าพื้นที่กดต่ำกว่า ~44px "เล็กเกินไป / ชิดกันเกินไป" บนมือถือ */
.footer-policy a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.notice a { display: inline-block; padding: 6px 2px; }
.qty input { height: 44px; }

/* กล่องชุดที่แนะนำในแบบติ๊กอาการ — บนมือถือจัดกึ่งกลางทั้งกล่อง (เจ้าของร้านขอ 18 ก.ย. 2569) */
@media (max-width: 900px) {
  .quiz-result { justify-items: center; text-align: center; }
  .quiz-result img { margin: 0 auto; }
  .quiz-result .r-actions { width: 100%; }
}

/* ระยะห่างระหว่างแต่ละส่วนบนมือถือ — เดิม 56px บน + 56px ล่าง รวมกันโล่งเกินไป (เจ้าของร้านขอ 18 ก.ย. 2569) */
@media (max-width: 700px) {
  .section { padding: 36px 0; }
  #quiz { padding-bottom: 24px; }
  #quiz .disclaimer { margin-top: 16px; }
}

/* การ์ดส่วนประกอบบนมือถือ — ชื่อสารสกัดและคำอธิบายจัดกึ่งกลาง (เจ้าของร้านขอ 18 ก.ย. 2569)
   กฎการ์ดตารางทั่วไปจัดคอลัมน์ที่สองชิดขวาไว้สำหรับตารางราคา ใช้กับส่วนประกอบแล้วอ่านยาก */
@media (max-width: 560px) {
  .tablewrap .ing-table tbody td,
  .tablewrap .ing-table tbody td:first-child { display: block; text-align: center; }
  .tablewrap .ing-table tbody tr:nth-child(even) td { background: transparent; }
}

/* แถบที่ต่อจากแถบก่อนหน้าโดยตรง (เช่น คลิปรีวิวต่อจากรีวิว) — ไม่ต้องมีช่องว่างด้านบนซ้ำ */
.section.section-flush { padding-top: 0; }
