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

:root {
  /* สีแบรนด์ ดึงมาจากกล่องสินค้าจริง */
  --crimson: #A81B2D;
  --crimson-dark: #7E1020;
  --crimson-light: #C8394A;
  --crimson-wash: #FBEDEE;
  --gold: #BE9645;
  --gold-light: #E4CB90;
  --gold-wash: #FBF4E6;

  --ink: #241A1B;
  --ink-2: #4E4243;
  --ink-3: #7C6E6F;
  --paper: #FFFFFF;
  --surface: #FBF7F5;
  --surface-2: #F3ECE9;
  --line: #E7DCD8;
  --line-soft: #F0E8E5;

  --green: #2E7D5B;
  --green-wash: #E8F3EE;
  --amber: #B5761A;
  --amber-wash: #FCF3E3;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(36, 26, 27, .06), 0 2px 8px -4px rgba(36, 26, 27, .12);
  --shadow: 0 2px 6px rgba(36, 26, 27, .07), 0 14px 30px -20px rgba(36, 26, 27, .35);
  --shadow-lg: 0 10px 40px -12px rgba(36, 26, 27, .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(--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 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;
  background: radial-gradient(circle at 34% 28%, var(--crimson-light), var(--crimson) 58%, #6E0A1C 100%);
  display: grid; place-items: center;
  color: #fff; font-family: "Noto Serif Thai", serif; font-weight: 700; font-size: 15px;
  letter-spacing: -.02em;
}
.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(--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; }

@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(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: 52px 0 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 { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.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: "Noto Serif Thai", serif; }
.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 0 44px; }
  .hero-figure { order: -1; }
  .hero-price { right: 8px; bottom: -14px; }
}

/* ---------- แถบความมั่นใจ ---------- */
.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(--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); }
.set-card figure { margin: 0; background: var(--surface-2); }
.set-card figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.set-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  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: "Noto Serif Thai", serif; 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;
}
.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(--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: "Noto Serif Thai", serif; 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: "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(--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: "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(--crimson); 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(--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; }
.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(--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: "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; }
@media (max-width: 760px) { .form-row-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .form-row, .form-row-3 { 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: "Sarabun", sans-serif; 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: "Noto Serif Thai", serif; 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: "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; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.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: 7px; }
.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(36, 26, 27, .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(36, 26, 27, .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(36, 26, 27, .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(36, 26, 27, .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: "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%; } }
