/* SAKARA — shared styles (index.html, products.html) */
:root {
  --bg: #ffffff;
  --surface: #f3f3f1;      /* ใกล้กับพื้นหลังภาพสินค้า */
  --ink: #1d1d1b;
  --muted: #8a8a85;
  --line: #e6e6e2;
  --accent: #a5801f;       /* ทองเดิมของแบรนด์ */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Kanit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.nav-links-mobile { display: contents; }
.nav-group { display: flex; gap: 32px; align-items: center; }
.nav-group.left { justify-content: flex-end; order: 1; }
.brand { order: 2; }
.nav-group.right { justify-content: flex-start; order: 3; }

.nav-link {
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--ink);
  padding: 4px 0;
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.brand img { height: 40px; width: auto; }

@media (max-width: 640px) {
  .nav {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "links";
    height: auto;
    gap: 10px;
    padding: 14px 0 12px;
  }
  .brand { grid-area: brand; justify-self: center; }
  .brand img { height: 34px; }
  .nav-links-mobile { grid-area: links; }
  .nav-group { display: contents; }
  .nav-links-mobile {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 20px;
  }
  .nav-link { font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #ededec;     /* สีเดียวกับพื้นหลังภาพ hero */
  overflow: hidden;
}
.hero-slides {
  position: relative;
  aspect-ratio: 1920 / 1116;
  max-height: calc(100vh - 76px);
  width: 100%;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.004);
  transition: opacity 1.4s ease;
}
.hero-slides img.is-active { opacity: 1; }

.hero-copy {
  text-align: center;
  padding: clamp(28px, 5vw, 48px) var(--gutter) clamp(40px, 6vw, 64px);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.hero-title {
  font-weight: 200;
  font-size: clamp(22px, 3.2vw, 38px);
  letter-spacing: .04em;
  margin: 0 0 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 10px 26px;
  border: 1px solid var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink); color: #fff; }

.hero-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 20px;
  justify-content: center;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 24px; height: 2px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: background .3s;
}
.hero-dots button[aria-current="true"] { background: var(--ink); }

@media (max-width: 640px) {
  .hero-slides { aspect-ratio: 4 / 5; }
}

/* ---------- Products ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 40px;
}
.section-title {
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0;
}
.link-more {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}
.link-more:hover { color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 24px;
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; } }

.card { display: flex; flex-direction: column; }
.card-link { display: block; flex: 1; }
.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.card-link[href]:hover .card-media img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  letter-spacing: .08em;
  padding: 2px 10px;
  background: #fff;
  color: var(--ink);
}
.card-body { padding-top: 14px; text-align: center; }
.card-name {
  font-size: 14px;
  font-weight: 300;
  margin: 0;
}
.card-price {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
}

/* skeleton ระหว่างโหลด */
.card.is-skeleton .card-media { animation: pulse 1.4s ease-in-out infinite; }
.card.is-skeleton .card-name,
.card.is-skeleton .card-price {
  height: 12px;
  margin: 8px auto 0;
  background: var(--surface);
}
.card.is-skeleton .card-name { width: 70%; }
.card.is-skeleton .card-price { width: 30%; }
@keyframes pulse { 50% { opacity: .55; } }

.grid-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 12px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Page head (products.html) ---------- */
.page-head {
  text-align: center;
  padding-top: clamp(48px, 8vw, 96px);      /* แยก top/bottom ไม่ทับ padding ซ้าย-ขวาของ .wrap */
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-title {
  font-weight: 200;
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: .04em;
  margin: 0;
}
.page-count {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
  min-height: 1.6em;
}
.page-head + .section { padding-top: 0; }

/* ---------- Cart icon (header) ---------- */
.nav-cart {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  transition: color .2s;
}
.nav-cart:hover, .nav-cart.active { color: var(--accent); }
.nav-cart svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}
.cart-count:empty { display: none; }
@media (max-width: 640px) {
  .nav-cart { top: 12px; transform: none; }
}

/* ---------- Buttons & forms ---------- */
button { font: inherit; color: inherit; }
.btn { background: transparent; cursor: pointer; justify-content: center; }
.btn-solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-block { display: flex; width: 100%; padding: 14px 26px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.card-add {
  margin-top: 12px;
  align-self: center;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  padding: 8px 22px;
  min-height: 40px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.card-add:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.card-add.is-added { border-color: var(--accent); color: var(--accent); background: transparent; }
@media (max-width: 640px) { .card-add { align-self: stretch; } }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;            /* กัน iOS ซูมอัตโนมัติ */
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }

.notice { font-size: 14px; padding: 12px 16px; background: var(--surface); margin: 0 0 20px; }
.notice.err { color: #a2302a; background: #fbf1f0; }
.notice.ok { color: #3c6b3f; background: #f0f6ef; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 20;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { text-decoration: underline; margin-left: 10px; }

/* ---------- Cart & checkout ---------- */
.shop {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .shop { grid-template-columns: 1fr; gap: 40px; } }

.panel-title { font-weight: 300; font-size: 18px; margin: 0 0 20px; }

.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 84px; height: 112px; object-fit: cover; background: var(--surface); }
.cart-item-name { font-size: 14px; margin: 0; }
.cart-item-price { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.cart-item-total { font-size: 14px; text-align: right; }
.cart-item.is-unavailable { opacity: .5; }

.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button {
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}
.qty button:hover { color: var(--accent); }
.qty output { min-width: 32px; text-align: center; line-height: 36px; font-size: 14px; }
.link-remove {
  margin-left: 12px;
  border: 0; background: none; padding: 0;
  font-size: 12px; color: var(--muted);
  cursor: pointer; text-decoration: underline;
}

.summary { background: var(--surface); padding: 24px; }
@media (max-width: 640px) { .summary { padding: 20px 16px; margin: 0 calc(-1 * var(--gutter)); } }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; margin: 0 0 8px; }
.sum-row.total { font-size: 18px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.summary .field input, .summary .field textarea { border-color: #dcdcd7; }

.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.empty .btn { margin-top: 16px; color: var(--ink); }

/* ---------- Order / payment ---------- */
.order { max-width: calc(560px + 2 * var(--gutter)); }
.status {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .06em;
  padding: 3px 12px;
  border: 1px solid currentColor;
}
.status-pending   { color: var(--accent); }
.status-verifying { color: #456d9a; }
.status-paid,
.status-shipped   { color: #3c6b3f; }
.status-cancelled { color: #a2302a; }

.pay {
  text-align: center;
  border: 1px solid var(--line);
  padding: 28px 20px;
  margin: 24px 0;
}
.pay-amount { font-size: 34px; font-weight: 200; margin: 4px 0 2px; }
.pay-ref { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.pay canvas { width: 240px; max-width: 100%; height: auto; image-rendering: pixelated; }
.pay-steps {
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
  margin: 20px 0 0;
}
.pay-steps li { margin-bottom: 4px; }

.upload { border: 1px dashed #cfcfca; padding: 20px; margin-bottom: 24px; }
.upload input[type=file] { font: inherit; font-size: 14px; width: 100%; margin: 4px 0 16px; }

.kv { font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 12px; margin-top: 14px; }
.kv dd { margin: 2px 0 0; white-space: pre-line; }

/* ---------- Simple content pages ---------- */
.prose {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding: clamp(40px, 8vw, 96px) 0;
}
.prose img { width: min(320px, 70%); margin: 0 auto; }
.prose p { font-size: 15px; color: #4a4a46; margin: 0 0 16px; }
@media (max-width: 760px) { .prose { grid-template-columns: 1fr; gap: 32px; text-align: center; } }

/* ---------- Product detail ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--surface);
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .gallery { margin: 0 calc(-1 * var(--gutter)); }
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
@media (max-width: 640px) { .gallery-thumbs { padding: 0 var(--gutter); } }
.gallery-thumbs button {
  flex: 0 0 64px;
  padding: 0;
  border: 1px solid transparent;
  background: var(--surface);
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
}
.gallery-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.gallery-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.product-info { position: sticky; top: 100px; }
@media (max-width: 860px) { .product-info { position: static; } }
.product-title {
  font-weight: 300;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  margin: 8px 0 6px;
}
.product-price { font-size: 20px; margin: 0 0 24px; }

.buy { display: flex; gap: 10px; margin-bottom: 10px; }
.buy .qty button { width: 44px; height: 48px; }
.buy .qty output { line-height: 48px; min-width: 36px; }
.buy-add { flex: 1; padding: 0 20px; min-height: 50px; }
.buy-now { min-height: 50px; color: var(--ink); }
.product-note { font-size: 13px; color: var(--muted); margin: 12px 0 32px; text-align: center; }

.product-h2 { font-weight: 400; font-size: 15px; margin: 32px 0 10px; }
.product-text { font-size: 15px; color: #4a4a46; }
.product-text p { margin: 0 0 12px; }

.specs {
  display: grid;
  grid-template-columns: 90px 1fr;
  margin: 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.specs dt, .specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }

/* ---------- เมนู "บูชา" + เมนูย่อย ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
  line-height: inherit;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.nav-drop-btn svg { width: 9px; height: 6px; transition: transform .2s; }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -4px);
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 30;
}
/* สะพานกันเมนูปิดตอนเลื่อนเมาส์ลง */
.nav-drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-drop.open .nav-drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) {
  .nav-drop:hover .nav-drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.nav-drop-panel a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-drop-panel a:hover { background: var(--surface); color: var(--accent); }
.nav-drop-panel a[aria-current="page"] { color: var(--accent); }
.nav-drop-panel a:first-child { color: var(--muted); font-size: 13px; }
.nav-drop-panel a:first-child[aria-current="page"] { color: var(--accent); }
@media (max-width: 640px) {
  .nav-drop-btn { font-size: 13px; }
  .nav-drop-panel { min-width: 200px; }
  .nav-drop-panel a { padding: 12px 20px; font-size: 15px; }
}

/* ---------- หมวดบนหน้ารวมสินค้า ---------- */
.chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.chips a {
  font-size: 13px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 20px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { white-space: nowrap; }
}
.page-intro { max-width: 640px; margin: 16px auto 0; font-size: 15px; color: #4a4a46; }
.page-intro p { margin: 0 0 10px; }

/* ---------- Blog: หน้ารวม ---------- */
.blog-list { max-width: 960px; }
.post-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.post-item-media { order: 2; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.post-item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-item:hover .post-item-media img { transform: scale(1.03); }
.post-item-title { font-weight: 400; font-size: 20px; line-height: 1.45; margin: 0 0 8px; }
.post-item-title a:hover { color: var(--accent); }
.post-item-excerpt { font-size: 15px; color: #5a5a55; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: 13px; color: var(--muted); margin: 0; }
.post-item.is-featured { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
.post-item.is-featured .post-item-media { order: 0; }
.post-item.is-featured .post-item-title { font-size: clamp(22px, 3vw, 30px); font-weight: 300; }
@media (max-width: 640px) {
  .post-item { grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; padding: 20px 0; }
  .post-item-media { aspect-ratio: 1; }
  .post-item-title { font-size: 16px; }
  .post-item-excerpt { display: none; }
  .post-item.is-featured .post-item-media { aspect-ratio: 16 / 9; margin: 0 calc(-1 * var(--gutter)); }
  .post-item.is-featured .post-item-excerpt { display: -webkit-box; }
}

/* ---------- Blog: หน้าอ่าน (แบบ Medium) ---------- */
.article-head { max-width: calc(720px + 2 * var(--gutter)); }
.article-head .breadcrumb { padding-bottom: 8px; }
.article-title {
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.3;
  letter-spacing: .01em;
  margin: 8px 0 14px;
}
.article-lead { font-family: 'Sarabun', 'Kanit', sans-serif; font-size: 20px; line-height: 1.7; color: #5a5a55; margin: 0 0 18px; }
.article-cover { margin: 32px auto 0; max-width: 1080px; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.article-body {
  max-width: calc(720px + 2 * var(--gutter));
  padding-top: 40px;
  padding-bottom: 24px;
  font-family: 'Sarabun', 'Kanit', sans-serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.9;
  color: #2b2b28;
}
.article-body p { margin: 0 0 1.4em; }
.article-body h2, .article-body h3, .article-body h4 { font-family: 'Kanit', sans-serif; font-weight: 400; line-height: 1.4; color: var(--ink); }
.article-body h2 { font-size: 26px; margin: 1.8em 0 .6em; }
.article-body h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.article-body h4 { font-size: 18px; margin: 1.4em 0 .4em; }
.article-body strong { font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote {
  margin: 1.8em 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  font-size: 21px;
  color: #4a4a46;
}
.article-body blockquote p { margin: 0; }
.article-body hr { border: 0; text-align: center; margin: 2.4em 0; }
.article-body hr::before { content: "· · ·"; letter-spacing: .6em; color: var(--muted); }
.article-body figure { margin: 2em 0; }
.article-body figure img { width: 100%; height: auto; background: var(--surface); }
.article-body figcaption { font-family: 'Kanit', sans-serif; font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.article-body code { font-size: .88em; background: var(--surface); padding: 2px 6px; }
@media (max-width: 640px) {
  .article-body { font-size: 18px; line-height: 1.85; padding-top: 28px; }
  .article-lead { font-size: 18px; }
  .article-body figure { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
}

/* การ์ดสินค้าในบทความ [product:slug] */
.embed-product {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  margin: 2em 0;
  padding: 16px;
  border: 1px solid var(--line);
  font-family: 'Kanit', sans-serif;
}
.embed-media { display: block; aspect-ratio: 3 / 4; background: var(--surface); overflow: hidden; }
.embed-media img { width: 100%; height: 100%; object-fit: cover; }
.article-body .embed-name { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 300; }
.embed-price { font-size: 15px; color: var(--muted); margin: 2px 0 12px !important; }
.embed-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.embed-actions .card-add { margin: 0; align-self: auto; }
.article-body .embed-link { font-size: 14px; text-decoration: none; }
@media (max-width: 640px) {
  .embed-product { grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; }
  .embed-actions .card-add { padding: 6px 14px; min-height: 36px; }
}

.more-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.more-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); margin-bottom: 12px; }
.more-post h3 { font-weight: 400; font-size: 16px; line-height: 1.5; margin: 0 0 4px; }
.more-post:hover h3 { color: var(--accent); }
@media (max-width: 760px) { .more-posts { grid-template-columns: 1fr; gap: 20px; } }
