@charset "UTF-8";
/* =========================================================
   U-Profex & Uni-Oil — สไตล์หลักของเว็บไซต์
   ออกแบบให้ผู้สูงอายุอ่านง่าย: ตัวอักษรใหญ่ สีตัดกันชัด ปุ่มใหญ่
   ========================================================= */

:root {
  /* สีแบรนด์ ถอดจากกล่องสินค้าจริง — ม่วงคือยูโปรเฟ็ก ส้มคือยูนิออย */
  --brand: #5C4B9B;
  --brand-dark: #453A78;
  --brand-light: #7A69B8;
  --brand-wash: #EFEBF9;
  --accent: #C9841A;
  --accent-light: #E9B65C;
  --accent-wash: #FCF3E2;

  /* สีประจำตัวสินค้าแต่ละตัว ใช้เป็นแถบซ้ายของบล็อกสินค้า */
  --p-uprofex: #5C4B9B;
  --p-unioil: #B8730A;
  --p-ucalciu: #556B80;
  --p-nerish: #AC2F62;
  --p-muniplus: #8A6A2C;

  --ink: #1E1A2B;
  --ink-2: #453D5C;
  --ink-3: #6B6480;
  --paper: #FFFFFF;
  --surface: #FBFAFC;
  --surface-2: #F3F1F8;
  --line: #E3DFEE;
  --line-soft: #EEEBF4;

  --green: #2C6549;
  --green-wash: #E6F1EB;
  --amber: #A03D19;
  --amber-wash: #FBEEE8;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 26, 43, .06), 0 2px 8px -4px rgba(30, 26, 43, .12);
  --shadow: 0 2px 6px rgba(30, 26, 43, .07), 0 14px 30px -20px rgba(30, 26, 43, .35);
  --shadow-lg: 0 10px 40px -12px rgba(30, 26, 43, .28);

  --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: "Sarabun", "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: "Noto Serif Thai", Georgia, serif;
  font-weight: 700;
  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(--brand); 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(--brand-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(--brand);
  background: var(--brand-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(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-wash); color: var(--brand-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(--brand-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; }
/* โลโก้หัวเว็บใช้ไฟล์ favicon ตัวเดียวกับที่ขึ้นบนแท็บเบราว์เซอร์
   จะได้ไม่ต้องดูแลสองที่ แก้ tools/make_favicon.py ที่เดียวเปลี่ยนพร้อมกัน */
.logo-mark { width: 42px; height: 42px; flex: none; display: block; }
.logo-text { line-height: 1.2; }
.logo-text b {
  display: block; font-family: "Noto Serif Thai", serif; 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 12px; 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(--brand); 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(--brand); 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; }

@media (max-width: 1040px) {
  .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(168deg, #FFF 0%, var(--accent-wash) 46%, var(--brand-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(--brand); }
.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-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-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; }

.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(--brand-wash); color: var(--brand); 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(--accent);
}

/* ---------- ชุดสินค้า ---------- */
.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(--accent-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.set-card.is-featured { border-color: var(--brand); }
.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(--brand); color: #fff; font-size: 14px; font-weight: 600;
  padding: 5px 13px; border-radius: 100px; box-shadow: var(--shadow-sm);
}
.set-badge.gold { background: var(--accent); 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: "Noto Serif Thai", serif; font-size: 30px; font-weight: 700; color: var(--brand);
  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;
}
.set-perbox { font-size: 15px; color: var(--ink-3); }

/* ---------- ตารางเปรียบเทียบ ---------- */
.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(--accent-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(--brand); }
.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: "Noto Serif Thai", serif; font-size: 40px; font-weight: 700;
  color: var(--brand); 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(--accent-light); }
.option input { width: 20px; height: 20px; accent-color: var(--brand); }
.option.selected { border-color: var(--brand); background: var(--brand-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(--brand); font-variant-numeric: tabular-nums; }
.option .op-tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: #fff; background: var(--accent);
  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(--accent); 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(--brand);
  background: var(--brand-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: "Noto Serif Thai", serif; }
.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(--accent); 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(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0;
}

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 34px; }
.faq-group > h3 { margin-bottom: 12px; color: var(--brand); }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px;
}
.faq details[open] { border-color: var(--accent-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: "Noto Serif Thai", serif; 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(--brand); font-family: "Sarabun", sans-serif; 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(--accent-wash); border: 1px solid var(--accent-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(--brand); }
.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(--brand); }

.cta-inline {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
  background: var(--brand-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(--brand); font-variant-numeric: tabular-nums; }
.cart-item .link-remove { background: none; border: 0; color: var(--ink-3); font-size: 15px; cursor: pointer; padding: 4px 0; font-family: inherit; }
.cart-item .link-remove:hover { color: var(--brand); 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(--brand); font-family: "Noto Serif Thai", serif; 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(--brand-light); }
.field textarea { min-height: 92px; resize: vertical; }
.field .error { color: var(--brand); font-size: 15px; margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--brand); }
.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(--brand); background: var(--brand-wash); }
.pay-option input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--brand); }
.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(--brand); color: var(--brand); }

.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: "Sarabun", sans-serif; font-size: 26px; font-weight: 700;
  color: var(--brand); 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(--brand); 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(--brand); 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(--brand-wash); border-color: #F0CFD3; color: var(--brand-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: "Noto Serif Thai", serif; font-size: 27px; color: var(--brand);
  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(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; font-family: "Sarabun", sans-serif;
}
.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; } }
/* align-items: start กันไม่ให้ช่องที่เนื้อหาสั้นถูกยืดสูงเท่าช่องที่ยาวที่สุด
   ไม่งั้นจะเหลือช่องว่างใหญ่ ๆ ใต้คอลัมน์ที่มีลิงก์น้อย */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr 1fr; gap: 34px 40px; align-items: start; }

/* จอกลาง: ยกบล็อกแบรนด์ขึ้นเต็มแถวบน แล้วให้ 3 คอลัมน์ลิงก์เรียงกันด้านล่าง
   ถ้าปล่อยเป็น 2 คอลัมน์ตามเดิม บล็อกแบรนด์ที่สูงกว่าจะดันให้เกิดรูโหว่ข้าง ๆ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; max-width: 620px; }
}
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
/* จอมือถือทั่วไป (360-620px) ยังเป็น 2 คอลัมน์ ฟุตเตอร์จะได้ไม่ยาวเกินไป
   เหลือคอลัมน์เดียวเฉพาะจอที่แคบมากจริง ๆ */
@media (max-width: 360px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 14px; letter-spacing: .01em; }
.site-footer a { color: #CFC0BD; }
.site-footer a:hover { color: #fff; }
.site-footer p { line-height: 1.7; }
.site-footer ul { line-height: 1.5; }
.site-footer li { margin-bottom: 9px; }

/* แถวลิงก์นโยบาย คั่นด้วยจุดกลางบรรทัด ไม่ใช้ bullet */
.footer-policy {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 15px;
}
/* จุดคั่นวางแบบ inline ไม่ใช้ position: absolute เพราะจุดจะไปเกาะขอบบนของบรรทัด
   ไม่อยู่กลางตัวอักษร และพอขึ้นบรรทัดใหม่จุดจะไปค้างอยู่นอกกรอบ */
.footer-policy li { margin: 0; display: flex; align-items: center; gap: 14px; }
.footer-policy li + li::before { content: "·"; color: rgba(255, 255, 255, .35); }
.footer-legal {
  margin-top: 22px; 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(30, 26, 43, .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(30, 26, 43, .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(--brand); border: 1px solid var(--line); }
.float-contact .fc-tel:hover { background: var(--brand-wash); color: var(--brand-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(30, 26, 43, .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(30, 26, 43, .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(--brand); color: var(--brand); 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: "Noto Serif Thai", serif; }
.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(--accent); background: var(--accent-wash); }
  .tablewrap tbody td { display: flex; align-items: baseline; justify-content: space-between;
                        gap: 16px; border: 0; padding: 6px 0; text-align: right; }
  .tablewrap tbody td::before { content: attr(data-label); color: var(--ink-3); font-size: 15.5px;
                                text-align: left; flex: 0 0 auto; }
  .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(--accent-light) 0%, var(--accent) 100%);
  color: #fff; font-family: "Noto Serif Thai", serif; 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(--accent) 0%, var(--brand) 100%);
  color: #fff; font-family: "Noto Serif Thai", serif; 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; } }

/* =========================================================
   บล็อกสินค้า 5 ตัว — ใช้ในหน้าแรกและหน้าสินค้า
   แถบสีด้านซ้ายคือสีประจำกล่องจริงของสินค้าตัวนั้น
   ========================================================= */
.prod-list { display: grid; gap: 16px; }

.prod-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 8px 26px;
  align-items: center;
  padding: 22px 24px 22px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--prod, var(--brand));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.prod-row figure { margin: 0; }
.prod-row figure img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--surface); border-radius: var(--radius);
}
.prod-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prod-top { display: flex; align-items: center; gap: 12px; }
.prod-num {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--prod, var(--brand)); color: #fff;
  font-size: 15px; font-weight: 700; line-height: 1;
}
.prod-every {
  font-size: 13.5px; letter-spacing: .04em;
  background: var(--brand-wash); color: var(--brand-dark);
  padding: 3px 11px; border-radius: 100px;
}
.prod-row h3 { font-size: 23px; line-height: 1.35; }
.prod-en {
  display: block; font-family: "Sarabun", sans-serif;
  font-size: 14.5px; font-weight: 400; color: var(--ink-3); letter-spacing: .02em;
}
.prod-role { font-size: 18.5px; font-weight: 600; color: var(--prod, var(--brand)); }
.prod-long { font-size: 16.5px; color: var(--ink-2); }
.prod-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.prod-meta { font-size: 15px; color: var(--ink-3); }
.prod-fda { font-size: 15px; color: var(--ink-3); }

@media (max-width: 760px) {
  .prod-row { grid-template-columns: 118px minmax(0, 1fr); gap: 6px 14px; padding: 18px 14px 18px 16px; align-items: start; }
  .prod-row h3 { font-size: 21px; }
  .prod-role { font-size: 17.5px; }
  .prod-body { grid-column: 2; }
}

/* =========================================================
   บันไดราคา — ให้เห็นว่าขยับขึ้นอีกขั้นจ่ายเพิ่มเท่าไหร่ ได้อะไรเพิ่ม
   ========================================================= */
.ladder { display: grid; gap: 0; }

.rung {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px; align-items: center;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.rung.is-top { border-color: var(--brand); border-width: 2px; background: var(--brand-wash); }
.rung-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rung-name b { font-family: "Noto Serif Thai", Georgia, serif; font-size: 20px; }
.rung-name small { font-size: 15px; color: var(--ink-3); }
.rung-price { text-align: right; }
.rung-price b { display: block; font-size: 24px; font-family: "Noto Serif Thai", Georgia, serif; color: var(--brand); }
.rung-price small { font-size: 14.5px; color: var(--ink-3); }

.rung-delta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-left: 26px; padding: 9px 0 9px 22px;
  border-left: 2px dashed var(--line);
  font-size: 15.5px; color: var(--ink-3);
}
.rung-delta b { color: var(--accent); font-size: 17px; }

@media (max-width: 560px) {
  .rung { grid-template-columns: minmax(0, 1fr); }
  .rung-price { text-align: left; }
  .rung-delta { margin-left: 18px; padding-left: 16px; }
}

/* =========================================================
   ตารางเทียบชุด — ช่องมี/ไม่มี
   ========================================================= */
.has { color: var(--green); font-weight: 700; }
.hasnt { color: var(--line); }
.set-suit { font-size: 15.5px; color: var(--ink-3); margin-top: 6px; }

/* =========================================================
   แผนภาพกระดูกสันหลัง 5 จุด — หัวใจของหน้าแรก
   ========================================================= */
.spine-map {
  margin: 0 auto;
  max-width: 880px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px 16px;
  box-shadow: var(--shadow-sm);
}
.spine-map svg { display: block; width: 100%; height: auto; }
.spine-map figcaption {
  margin-top: 12px; text-align: center;
  font-size: 15.5px; color: var(--ink-3);
}
@media (max-width: 620px) {
  .spine-map { padding: 14px 10px 12px; }
}


/* ---------- ราคาและโปรโมชั่นรายสินค้า ---------- */
.pp-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; }
.pp-now { font-family: "Noto Serif Thai", Georgia, serif; font-size: 26px; color: var(--brand); font-weight: 700; }
.pp-line .was { text-decoration: line-through; color: var(--ink-3); font-size: 17px; }
.pp-line small { color: var(--ink-3); font-size: 15px; }
.pp-pending { font-size: 16px; color: var(--ink-3); font-style: normal; }

.prod-cta { margin-top: 12px; }

.qty-offers { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.qo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px;
  flex-wrap: wrap; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.qo.is-best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.qo-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.qo-name b { font-size: 18px; }
.qo-name small { color: var(--ink-3); font-size: 15px; }
.qo-badge {
  font-size: 13px; font-weight: 600; color: #fff; background: var(--brand);
  border-radius: 999px; padding: 2px 10px;
}
.qo-buy { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.qo-price { display: flex; align-items: baseline; gap: 8px; }
.qo-price b { font-family: "Noto Serif Thai", Georgia, serif; font-size: 21px; color: var(--brand); }
.qo-price .was { text-decoration: line-through; color: var(--ink-3); font-size: 15px; }
.qo-pending { color: var(--ink-3); font-size: 15px; }

@media (max-width: 520px) {
  .qo { align-items: flex-start; }
  .qo-buy { width: 100%; justify-content: space-between; margin-left: 0; }
}


/* ---------- แถบเมนูสองชั้น ---------- */
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-nav { display: flex; gap: 2px; }
.topbar-nav a {
  color: inherit; opacity: .82; text-decoration: none;
  padding: 0 8px; border-left: 1px solid rgba(255,255,255,.22); white-space: nowrap;
}
.topbar-nav a:first-child { border-left: 0; }
.topbar-nav a:hover { opacity: 1; text-decoration: underline; }
.topbar-nav a[aria-current="page"] { opacity: 1; font-weight: 700; }

@media (min-width: 901px) { .main-nav a.is-main { padding: 8px 10px; font-size: 16px; } }

@media (max-width: 1180px) and (min-width: 901px) {
  .main-nav a.is-main { padding: 8px 7px; font-size: 15px; }
}
@media (min-width: 901px) {
  /* บนจอคอม แถบรองอยู่ด้านบนแล้ว จึงไม่ต้องซ้ำในเมนูหลัก */
  .main-nav a.is-more { display: none; }
}
@media (max-width: 900px) {
  /* บนมือถือ ซ่อนแถบรองด้านบน แล้วให้ไปรวมอยู่ในเมนูสามขีดแทน */
  .topbar-nav { display: none; }
  .topbar-in { justify-content: center; }
}

/* ---------- หน้าสารสกัดรวม: การ์ดสรุปรายสินค้า ---------- */
.ing-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ing-group {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--prod);
  border-radius: var(--radius); padding: 20px;
}
.ing-group-head { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.ing-group-head img { width: 84px; height: 84px; object-fit: contain; }
.ing-group-head h3 { font-size: 20px; margin-top: 2px; }
.ing-group-list { font-size: 15.5px; color: var(--ink-2); line-height: 1.8; }

/* ---------- หัวข้อ "สินค้าคืออะไร" ในหน้าสินค้า ---------- */
.lead-p { color: var(--ink-2); font-size: 19px; line-height: 1.85; }
.explain { margin-top: 26px; }
.explain h3 {
  font-size: 21px; margin-top: 30px; padding-left: 14px;
  border-left: 4px solid var(--brand);
}
.explain h3:first-child { margin-top: 0; }
.explain p { margin-top: 10px; color: var(--ink-2); }

/* ---------- ระยะห่างระหว่างช่วงเนื้อหา ---------- */
/* เดิมทุกช่วงมีระยะบนล่างช่วงละ 56px พอวางต่อกันจึงกลายเป็นช่องว่าง 112px
   ซึ่งห่างเกินไปบนมือถือ โดยเฉพาะตรงที่สองช่วงติดกันใช้พื้นหลังสีเดียวกัน
   จนดูเหมือนมีที่ว่างเปล่าคั่นอยู่ */
.section + .section { padding-top: 40px; }
/* สองช่วงติดกันที่พื้นหลังสีเดียวกัน ไม่มีเส้นแบ่งให้เห็นอยู่แล้ว จึงลดระยะลงอีก */
.section-surface + .section-surface { padding-top: 8px; }
.section-surface + .section-surface > .wrap > .section-head { margin-top: 24px; }

@media (max-width: 640px) {
  .section { padding: 38px 0; }
  .section + .section { padding-top: 28px; }
  .section-tight { padding: 26px 0; }
  .section-head { margin-bottom: 22px; }
}

/* ---------- แถวรีวิว: การ์ดรีวิวเต็มใบ 1:1 คู่กับข้อความ ---------- */
/* รูปการ์ดเป็นจัตุรัสเสมอ จึงล็อกสัดส่วนไว้กันภาพกระตุกตอนโหลด */
.review-row {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 34px; align-items: center;
}
.review-row.is-flipped .review-figure { order: 2; }
.review-figure { margin: 0; }
.review-figure img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.review-row h2 { margin: 0; }
.review-job { font-size: 0.62em; color: var(--ink-3); font-family: "Sarabun", "Helvetica Neue", Arial, sans-serif; font-weight: 400; }
.review-note {
  font-size: 16px; color: var(--ink-3); border-left: 3px solid var(--line);
  padding-left: 14px;
}
@media (max-width: 860px) {
  .review-row { grid-template-columns: 1fr; gap: 20px; }
  .review-row.is-flipped .review-figure { order: 0; }
  .review-figure img { max-width: 460px; margin: 0 auto; }
}

/* ---------- แกลเลอรีภาพหน้าจอแชทลูกค้า ---------- */
/* ภาพแชทมีทั้งจัตุรัสและแนวตั้งสูง ๆ ถ้าใช้ตาราง 2 ช่องจะเหลือช่องว่างใต้รูปเตี้ย
   จึงใช้ column-count ให้รูปไหลลงคอลัมน์ที่ว่างเองแบบหน้าแกลเลอรี */
.chat-shots { column-count: 2; column-gap: 22px; }
.chat-shot {
  break-inside: avoid; margin: 0 0 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.chat-shot img { width: 100%; height: auto; display: block; }
.chat-shot figcaption { padding: 14px 16px 16px; }
.chat-shot .chip { display: inline-block; margin-bottom: 8px; }
.chat-shot-text { display: block; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 620px) { .chat-shots { column-count: 1; } }

/* ---------- คำว่า Uni-Oil ในโลโก้ ใช้สีเดียวกับกล่องยูนิออย ---------- */
/* --unioil คือสีที่ดูดมาจากไฟล์กล่องจริง (build-src/src-unioil.png) ตรง ๆ
   ส่วน --unioil-ink เป็นเฉดเดียวกันแต่เข้มขึ้น ใช้บนพื้นขาวเท่านั้น
   เพราะสีกล่องของจริงวางบนพื้นขาวแล้วค่าความต่างสว่างได้แค่ 1.9:1 อ่านไม่ออก
   ส่วนบนพื้นเข้มของฟุตเตอร์ใช้สีกล่องจริงได้เลย ได้ 9:1 สบาย ๆ */
:root { --unioil: #F8B018; --unioil-ink: #BF7500; }
.brand-uo { color: var(--unioil-ink); }
.site-footer .brand-uo { color: var(--unioil); }

/* ---------- ปรับให้กดง่ายขึ้นบนมือถือ (ตรวจเมื่อ 7 ก.ย. 2569) ---------- */
/* ช่องจำนวนสูงแค่ 25px และปุ่มลบออกสูง 28px ซึ่งเล็กกว่าเกณฑ์ 44px
   ที่ทั้ง Apple และ Google แนะนำ ลูกค้ากลุ่มนี้อายุมาก นิ้วใหญ่ กดพลาดง่าย */
.qty input { height: 44px; }
.cart-item .link-remove { padding: 12px 4px; min-height: 44px; }

/* ชื่อแบรนด์บนหัวเว็บตกบรรทัดเมื่อจอแคบกว่า 400px เพราะเหลือที่ไม่พอ
   ลดขนาดลงให้พออยู่บรรทัดเดียว อ่านง่ายกว่าปล่อยให้ห้อยสองบรรทัด */
@media (max-width: 400px) {
  .logo-text b { font-size: 16.5px; white-space: nowrap; }
  .logo-mark { width: 38px; height: 38px; }
  .logo { gap: 8px; }
}
