/* เอซพี ลักซ์แบรนด์ — บูทีกเครื่องประดับแบบหน้านิตยสาร
   ครีมอุ่น + ช็อกโกแลตจากโลโก้ SP + เส้นทองบาง · กรอบรูปทรงซุ้มโค้งแบบตู้โชว์เครื่องประดับ
   สี/ฟอนต์ดู design/design-spec.md · มือถือก่อน แล้วขยายที่ 768 / 1024 */

:root {
  --paper: #FBF5EC;
  --sand: #F3E8D8;
  --sand-2: #EADCC7;
  --accent: #6B4A35;
  --accent-2: #563A29;
  --ink: #33241A;
  --muted: #74594A;
  --gold: #B48F5A;
  --gold-soft: #D9C29C;
  --cocoa: #2B1D14;
  --line: rgba(107, 74, 53, .16);
  --line-strong: rgba(107, 74, 53, .3);
  --white: #FFFDF9;
  --radius: 14px;
  --arch: 999px 999px 18px 18px;
  --shadow: 0 1px 2px rgba(51, 36, 26, .05), 0 12px 32px -14px rgba(51, 36, 26, .22);
  /* รอบแก้ 1: ลูกค้าขอหัวข้อใช้ฟอนต์เดียวกับเนื้อหา แต่ตัวหนา (เดิม Noto Serif Thai) */
  --serif: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --sans: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --latin: 'Cormorant Garamond', 'IBM Plex Sans Thai', serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.7 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.45; margin: 0; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
svg.ic-brand { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 820px; }
.sec { padding: 64px 0; }
@media (min-width: 1024px) { .sec { padding: 96px 0; } }

.brand-name { font-family: var(--latin); font-weight: 600; letter-spacing: .02em; }
.brand-name.is-th { font-family: var(--serif); letter-spacing: 0; font-weight: 700; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 10px 26px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--white); font-weight: 500; font-size: 1rem; line-height: 1.4;
  cursor: pointer; text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(51, 36, 26, .6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn.is-off { background: #b9aa9c; border-color: #b9aa9c; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--white); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--cocoa); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--cocoa); }
.btn-sm { min-height: 40px; padding: 6px 18px; font-size: .94rem; }
.btn-block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; }
.link-arrow { background: none; border-width: 0 0 1px; cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; gap: .4em; color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* เส้นคั่นหัวข้อ: เส้นทอง + เพชรเล็ก */
.rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 0; width: 150px; }
.rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.rule b { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sec-head h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
.sec-head > p { margin-top: 14px; color: var(--muted); }
.sec-head.is-left { text-align: left; margin: 0 0 28px; }
.sec-head.is-left .rule { margin-left: 0; }
.sec-more { margin-top: 36px; text-align: center; }

/* ---------- แถบบน ---------- */
.topbar { background: var(--accent); color: #F3E6D4; font-size: .875rem; }
.topbar-in { display: flex; align-items: center; justify-content: center; gap: 8px 26px; min-height: 38px; padding: 6px 0; flex-wrap: wrap; }
.topbar-in > * { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }
.topbar a:hover { color: var(--white); }
.topbar-social { gap: 12px; }
.topbar-social svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .topbar-in > span:first-child, .topbar-social { display: none; } }

/* ---------- หัวเว็บ ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251, 245, 236, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.logo-mono { width: 38px; height: auto; flex: none; }
.wordmark { display: grid; line-height: 1.4; min-width: 0; border-left: 1px solid var(--line-strong); padding-left: 12px; }
.wordmark b { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--accent); white-space: nowrap; }
.wordmark small { font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { display: none; }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-btn { position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: none; color: var(--accent); cursor: pointer; transition: background .2s; }
.nav-btn:hover { background: var(--sand); }
.nav-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--cocoa); font-size: .875rem; line-height: 1; font-weight: 600; display: grid; place-items: center; }
.nav-oc { display: none; }
@media (max-width: 380px) { .wordmark small { display: none; } }
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .nav-in { min-height: 84px; gap: 24px; }
  .logo-mono { width: 46px; }
  .wordmark b { font-size: 1.28rem; }
  .menu { display: block; }
  .menu > ul { display: flex; gap: 2px; }
  .menu a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; font-size: .96rem; color: var(--ink); transition: color .2s, background .2s; white-space: nowrap; }
  .menu a:hover { color: var(--accent); background: var(--sand); }
  .menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }
  .menu svg { width: 14px; height: 14px; }
  .has-sub { position: relative; }
  .sub { position: absolute; top: 100%; left: 0; min-width: 230px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .sub a { display: flex; width: 100%; border-radius: 8px; font-size: 1.05rem; }
  .nav-oc { display: inline-flex; margin-left: 6px; }
}

.nav-search { border-top: 1px solid var(--line); background: var(--paper); padding: 12px 0; }
.nav-search .wrap { display: flex; gap: 10px; }
.nav-search label { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 16px; color: var(--muted); }
.nav-search input { flex: 1; min-width: 0; border: 0; background: none; height: 44px; font-size: 16px; outline: none; color: var(--ink); }

.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(43, 29, 20, .45); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 360px); background: var(--paper); padding: 16px 20px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; animation: drawerIn .28s var(--ease); }
@keyframes drawerIn { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-head .wordmark small { display: none; }
.drawer-nav > li > a { display: block; padding: 12px 4px; font-family: var(--serif); font-size: 1.12rem; border-bottom: 1px solid var(--line); }
.drawer-nav a[aria-current="page"] { color: var(--accent); }
.drawer-sub { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.drawer-sub a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 1rem; }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--sand); }
.hero-track { display: flex; transition: transform .7s var(--ease); }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; }
.hero-pic { position: relative; overflow: hidden; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-body { position: relative; padding: 26px 0 40px; width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--accent); letter-spacing: .04em; margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.hero-title { font-size: clamp(1.85rem, 1.1rem + 3.4vw, 3.6rem); line-height: 1.4; color: var(--ink); text-wrap: balance; }
.hero-sub { margin-top: 14px; font-size: 1.04rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-tel { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 500; color: var(--accent); font-size: 1.05rem; }
.hero-tel svg { width: 36px; height: 36px; padding: 8px; border-radius: 999px; background: var(--accent); color: var(--white); }
/* มือถือ: รูปด้านบน (ครอปแนวตั้งที่เตรียมไว้) ข้อความล่างบนพื้นทราย รวมไม่เกิน ~70vh */
.hero-full .hero-pic { height: min(36vh, 320px); }
.hero-full .hero-pic img { object-position: 50% 45%; }
.hero-full .hero-pic::after { content: ''; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(to top, var(--sand), transparent); }
@media (max-width: 767px) {
  .hero-body { padding: 14px 0 46px; }
  .hero-title { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2rem); }
  .hero-sub { font-size: .96rem; margin-top: 8px; }
  .hero-cta { margin-top: 16px; gap: 8px; }
  .hero-cta .btn { min-height: 46px; padding: 8px 18px; font-size: .95rem; }
  .hero-tel { display: none; }
  .eyebrow { margin-bottom: 6px; font-size: .875rem; }
}
.hero-dots { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 0; z-index: 3; }
.hero-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: rgba(107, 74, 53, .3); transition: width .3s var(--ease), background .3s; }
.hero-dots button[aria-current="true"]::before { width: 26px; background: var(--accent); }
/* จอใหญ่: ข้อความบนพื้นครีมฝั่งซ้าย รูปฝั่งขวา 60% ไล่จางเข้าหาข้อความ — ไม่ให้ตัวหนังสือทับเครื่องประดับ */
@media (min-width: 768px) {
  .hero-full { background: var(--paper); }
  .hero-full .hero-slide { min-height: clamp(500px, 68vh, 660px); display: flex; align-items: center; }
  .hero-full .hero-pic { position: absolute; inset: 0 0 0 auto; width: 60%; height: auto; }
  .hero-full .hero-pic::after { inset: 0; height: auto; background: linear-gradient(90deg, var(--paper) 0%, rgba(251, 245, 236, .6) 14%, rgba(251, 245, 236, 0) 34%); }
  .hero-full .hero-pic img { object-position: 60% 50%; }
  .hero-full .hero-body { padding: 56px 0; }
  .hero-full .hero-body > * { max-width: 46%; }
  .hero-full .hero-title { font-size: clamp(2rem, 1rem + 2.2vw, 2.9rem); }
  .hero-dots { bottom: 20px; left: 40%; }
}
@media (min-width: 768px) and (max-width: 1023px) { .hero-full .hero-body > * { max-width: 44%; } }
/* แบบครึ่งจอ: รูปในกรอบซุ้มโค้ง */
.hero-split { background: var(--paper); }
.hero-split .hero-slide { display: flex; flex-direction: column-reverse; }
.hero-split .hero-pic { width: min(100% - 32px, 520px); margin: 20px auto 0; aspect-ratio: 4 / 5; border-radius: var(--arch); }
@media (min-width: 900px) {
  .hero-split .hero-slide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: min(100% - 32px, var(--wrap)); margin-inline: auto; padding: 48px 0; gap: 48px; }
  .hero-split .hero-pic { width: 100%; margin: 0; order: 2; }
  .hero-split .hero-body { width: auto; margin: 0; }
}
.hero-compact .hero-pic { height: 260px; }
.hero-compact .hero-pic::after { content: ''; position: absolute; inset: 0; background: rgba(43, 29, 20, .45); }
.hero-compact .hero-body { position: absolute; inset: auto 0 0; padding: 24px 0; }
.hero-compact .hero-title, .hero-compact .hero-sub, .hero-compact .eyebrow { color: var(--white); }

/* ---------- แถบจุดเด่น ---------- */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-intro { text-align: center; color: var(--muted); padding-top: 20px; }
.trust-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.trust-list li { display: flex; align-items: center; gap: 10px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.trust-list li:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 12px; }
.trust-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 999px; border: 1px solid var(--gold); color: var(--accent); }
.trust-ic svg { width: 20px; height: 20px; }
.trust-list b { display: block; font-family: var(--serif); font-weight: 700; font-size: .98rem; line-height: 1.4; }
.trust-list small { display: block; font-size: .875rem; color: var(--muted); line-height: 1.5; }
@media (min-width: 900px) {
  .trust-list { grid-template-columns: repeat(var(--cols, 4), 1fr); padding: 6px 0; }
  .trust-list li { border-bottom: 0; border-right: 1px solid var(--line); justify-content: center; padding: 22px 18px; }
  .trust-list li:last-child { border-right: 0; }
}

/* ---------- แบรนด์ + สินค้าแนะนำ ---------- */
.sec-brands { background: linear-gradient(180deg, var(--paper), var(--sand) 140%); }
.brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.brand-tile { display: grid; place-items: center; gap: 2px; text-align: center; min-height: 92px; padding: 14px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.brand-tile .brand-name { font-size: 1.32rem; line-height: 1.4; color: var(--ink); }
.brand-tile .brand-name.is-th { font-size: 1.05rem; }
.brand-tile small { font-size: .875rem; color: var(--muted); }
.brand-tile:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
@media (min-width: 600px) { .brands { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brands { grid-template-columns: repeat(7, 1fr); } .brand-tile { min-height: 110px; } }

.feature { display: grid; gap: 24px; margin-top: 48px; align-items: center; }
.feature-pic { display: block; border-radius: var(--arch); overflow: hidden; aspect-ratio: 1; background: var(--sand); max-width: 560px; width: 100%; margin-inline: auto; }
.feature-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature-pic:hover img { transform: scale(1.03); }
.feature-tag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.feature-tag .brand-name { font-size: 2rem; color: var(--accent); }
.feature-tag span:not(.brand-name) { font-size: .875rem; color: var(--muted); }
.feature-tag span:not(.brand-name)::before { content: '·'; margin-right: 10px; color: var(--gold); }
.feature-body h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); margin-top: 4px; }
.feature-price { margin-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.feature-price b { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); color: var(--ink); font-weight: 600; }
.feature-price s, .card-price s, .pd-price s { color: var(--muted); font-size: .95rem; }
.feature-short { margin-top: 10px; color: var(--muted); }
.feature-inc { display: flex; gap: 8px; margin-top: 10px; font-size: .94rem; color: var(--muted); }
.feature-inc svg { color: var(--gold); margin-top: 3px; }
.feature-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.feature-note { margin-top: 12px; font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.05fr; gap: 64px; margin-top: 72px; }
  .feature-pic { max-width: none; }
  .feature.is-flip .feature-pic { order: 2; }
}

/* ---------- ขั้นตอน ---------- */
.sec-steps { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; counter-reset: s; }
.steps li { position: relative; text-align: center; padding: 0 6px; }
.step-ic { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--accent); background: var(--white); position: relative; z-index: 1; }
.step-ic svg { width: 26px; height: 26px; }
.step-no { display: block; font-family: var(--latin); font-size: 1.3rem; color: var(--gold); line-height: 1; }
.steps h3 { font-size: 1.04rem; margin-top: 6px; }
.steps p { font-size: .9rem; color: var(--muted); margin-top: 4px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .steps li:not(:last-child)::after { content: ''; position: absolute; top: 31px; left: calc(50% + 44px); right: calc(-50% + 44px); height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 9px); }
}

/* ---------- การ์ดสินค้า ---------- */
.sec-new { background: var(--cocoa) url('/img/bg-cocoa.webp') center / cover no-repeat; color: #F3E6D4; }
.sec-new .sec-head h2 { color: var(--paper); }
.sec-new .sec-head > p { color: #D8C6AF; }
.sec-new .btn-ghost { color: var(--paper); border-color: rgba(243, 230, 212, .55); }
.sec-new .btn-ghost:hover { background: var(--paper); color: var(--accent); border-color: var(--paper); }
.tabs { display: flex; gap: 6px; margin: 22px -16px 0; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(217, 194, 156, .35); background: none; color: #E9DCC8; cursor: pointer; font-size: .95rem; transition: .2s; }
.tabs .brand-name { font-size: 1.08rem; }
.tabs button:hover { border-color: var(--gold-soft); }
.tabs button[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--cocoa); }
@media (min-width: 900px) { .tabs { justify-content: center; margin-inline: 0; } }
.tabs-empty { text-align: center; padding: 24px; color: #D8C6AF; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.cards.is-few { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .45); }
.card.is-hidden { display: none; }
.card-pic { position: relative; display: block; aspect-ratio: 1; background: var(--sand); overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-pic img { transform: scale(1.04); }
.tag { position: absolute; left: 10px; top: 10px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 253, 249, .92); color: var(--accent); font-size: .875rem; font-weight: 500; border: 1px solid var(--line); }
.tag-out { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pd-tags .tag { position: static; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 14px 14px 16px; text-align: center; }
.card-brand { font-size: 1.12rem; color: var(--accent); line-height: 1.4; }
.card-brand.is-th { font-size: .9rem; }
.card h3 { font-family: var(--sans); font-weight: 500; font-size: .92rem; line-height: 1.5; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-short { font-size: .875rem; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-opts { font-size: .875rem; color: var(--muted); }
.card-price { margin-top: auto; padding-top: 10px; display: grid; gap: 0; }
.card-price b { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.card-price s { font-size: .875rem; }
.card-price.is-out { color: var(--muted); font-weight: 500; }
.card-cta { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; min-height: 42px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: .9rem; font-weight: 500; transition: .2s; }
.card-cta:hover { background: var(--accent); color: var(--white); }
.card-cta svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .card-body { padding: 18px 18px 20px; } .card h3 { font-size: .98rem; } .card-price b { font-size: 1.25rem; } }

/* เลือกตามประเภท */
.kinds-wrap { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(217, 194, 156, .25); }
.kinds-title { text-align: center; color: var(--paper); font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); margin-bottom: 22px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 200px)); justify-content: center; gap: 12px; }
@media (min-width: 1024px) { .kinds { grid-template-columns: repeat(auto-fit, minmax(170px, 210px)); gap: 18px; } }
.kind { display: grid; justify-items: center; gap: 4px; padding: 10px 10px 14px; border-radius: var(--radius); background: rgba(251, 245, 236, .06); border: 1px solid rgba(217, 194, 156, .22); text-align: center; transition: .25s var(--ease); }
.kind:hover { background: rgba(251, 245, 236, .12); transform: translateY(-2px); }
.kind-pic { width: 100%; aspect-ratio: 1; border-radius: var(--arch); overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.kind-pic img { width: 100%; height: 100%; object-fit: cover; }
.kind-pic img.is-mono { width: 46%; height: auto; object-fit: contain; opacity: .7; }
.kind b { font-family: var(--serif); font-weight: 700; color: var(--paper); margin-top: 8px; }
.kind small { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-soft); font-size: .875rem; }
.kind small svg { width: 14px; height: 14px; }

/* ---------- เกี่ยวกับร้าน + OpenChat ---------- */
.sec-about { background: var(--sand) url('/img/bg-satin-cream.webp') center / cover no-repeat; }
.about { display: grid; gap: 32px; align-items: center; }
.about-pic { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; max-width: 480px; width: 100%; margin-inline: auto; box-shadow: var(--shadow); background: var(--sand); }
.about-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.about-text h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem); }
.about-text .rule { margin-left: 0; }
.about-text .prose { margin-top: 18px; color: var(--ink); }
.about-text > .btn { margin-top: 22px; }
@media (min-width: 900px) {
  .about { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .about.pic-right .about-pic { order: 2; }
}
.oc-box { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 20px; border-radius: 18px; background: rgba(255, 253, 249, .82); border: 1px solid var(--line); box-shadow: var(--shadow); }
.oc-box > div { flex: 1; }
.oc-title { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; margin-bottom: 12px; line-height: 1.5; }
.oc-qr { width: 112px; flex: none; padding: 6px; background: var(--white); border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 520px) { .oc-qr { display: none; } }

.prose > * + * { margin-top: 1em; }
.prose p { color: inherit; }

/* ---------- รีวิว ---------- */
.quotes { display: grid; gap: 14px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quote { margin: 0; display: flex; gap: 14px; padding: 18px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.quote-pic { flex: none; width: 92px; border-radius: 10px; overflow: hidden; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; }
.quote blockquote::before { content: '“'; color: var(--gold); }
.quote blockquote::after { content: '”'; color: var(--gold); }
.quote figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); display: grid; }

/* ---------- คำถามที่พบบ่อย ---------- */
.sec-faq { background: var(--paper); }
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq-grid .sec-head { position: sticky; top: 120px; } }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 700; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--gold); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq-a { padding: 0 2px 20px; color: var(--muted); }

/* ---------- แถบชวนกด ---------- */
.cta-band { padding: 56px 0; }
.cta-dark { background: var(--cocoa) url('/img/bg-cocoa.webp') center / cover no-repeat; color: var(--paper); }
.cta-soft { background: var(--sand); }
.cta-in { display: grid; gap: 24px; justify-items: center; text-align: center; }
.cta-in h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.2rem); margin-bottom: 20px; text-wrap: balance; }
.cta-dark h2 { color: var(--paper); }
.cta-qr { width: 136px; padding: 8px; background: var(--white); border-radius: 14px; }
@media (min-width: 768px) {
  .cta-in.has-qr { grid-template-columns: 1fr auto; text-align: left; justify-items: start; align-items: center; max-width: 900px; }
}

/* ---------- ติดต่อ ---------- */
.sec-contact { background: var(--accent); color: #F3E6D4; position: relative; }
.sec-contact h2 { color: var(--paper); font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem); }
.contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.contact-intro, .contact-note { margin-top: 12px; color: #E3D3BE; }
.contact-list { display: grid; gap: 4px; margin: 22px 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(243, 230, 212, .14); }
.contact-list svg { width: 22px; height: 22px; color: var(--gold-soft); }
.contact-list small { display: block; font-size: .875rem; color: #CDB89E; line-height: 1.4; }
.contact-list a, .contact-list span { font-weight: 500; color: var(--paper); word-break: break-word; }
.contact-list a:hover { color: var(--gold-soft); }
.contact-hours { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #E3D3BE; }
.contact-hours svg { color: var(--gold-soft); }
.lead { display: grid; gap: 14px; padding: 24px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .5); }
.lead h3 { font-size: 1.3rem; }
.field { display: grid; gap: 6px; }
.field label, .pd-label { font-size: .9rem; font-weight: 500; color: var(--ink); }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white); font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180, 143, 90, .25); }
::placeholder { color: #A4917F; }
.msg { font-size: .92rem; min-height: 1.2em; }
.msg.ok { color: #3f6b46; }
.msg.bad, .err { color: #9a3b2c; font-size: .875rem; }
.map { width: 100%; height: 320px; border: 0; border-radius: 18px; }
.map-wrap { margin-top: 28px; }
.contact.is-single { max-width: 640px; }

/* ---------- หัวหน้ารอง ---------- */
.page-head { background: var(--sand) url('/img/bg-satin-cream.webp') center / cover; padding: 40px 0 44px; text-align: center; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin-top: 10px; }
.page-head p { color: var(--muted); max-width: 640px; margin: 14px auto 0; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: .875rem; color: var(--muted); }
.page-head .crumbs { justify-content: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 13px; height: 13px; opacity: .6; }
.crumbs .brand-name { font-size: 1rem; }

/* ---------- แคตตาล็อก ---------- */
.sec-catalog { padding-top: 40px; }
/* รอบแก้ 1: ปุ่มกรองตัดขึ้นบรรทัดใหม่ เห็นครบทุกปุ่มในหน้าเดียว ไม่ต้องเลื่อนข้าง */
.filter { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.filter button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); cursor: pointer; font-size: .94rem; transition: .2s; }
.filter button span:last-child:not(.brand-name) { font-size: .875rem; color: var(--muted); }
.filter-brand button .brand-name { font-size: 1.1rem; }
.filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.filter button[aria-pressed="true"] span { color: #E9DCC8 !important; }
.catalog-bar { display: grid; gap: 12px; margin: 14px 0 6px; }
.filter-kind button { min-height: 38px; font-size: .9rem; background: transparent; }
@media (max-width: 767px) {
  .filter { gap: 6px; }
  .filter button { gap: 6px; padding: 5px 13px; font-size: .9rem; }
  .filter-brand button .brand-name { font-size: 1.02rem; }
}
.catalog-tools { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--muted); }
.search-box input { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: none !important; min-height: 46px !important; }
.sort select { border-radius: 999px; min-height: 48px; padding-right: 32px; }
.catalog-count { font-size: .9rem; color: var(--muted); margin: 10px 0 16px; }
.catalog-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.catalog-more { text-align: center; margin-top: 28px; }
@media (min-width: 1024px) {
  .catalog-bar { grid-template-columns: 1fr auto; align-items: center; }
  .catalog-tools { grid-template-columns: 300px 190px; }
}

/* ---------- หน้ารายละเอียดสินค้า ---------- */
.pd { padding-top: 28px; }
.pd-grid { display: grid; gap: 28px; margin-top: 18px; }
@media (min-width: 900px) { .pd-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; } .pd-gallery { position: sticky; top: 104px; } }
.pd-main { display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.pd-thumbs button { padding: 0; border: 1px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--sand); aspect-ratio: 1; opacity: .7; transition: .2s; }
.pd-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pd-tags .brand-name { font-size: 1.9rem; color: var(--accent); }
.pd-info h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-top: 6px; }
.pd-short { color: var(--muted); margin-top: 8px; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd-price b { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); font-weight: 600; }
.pd-stock { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .92rem; color: #4d6a4a; font-weight: 500; }
.pd-stock.is-out { color: var(--muted); }
.pd-opts { border: 0; padding: 0; margin: 18px 0 0; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.opt:has(input[data-out]) { opacity: .5; text-decoration: line-through; }
.opt-pic { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.pd-buy { margin-top: 22px; display: grid; gap: 12px; }
.pd-sold { padding: 14px 16px; border-radius: 12px; background: var(--sand); color: var(--muted); }
.pd-qty { display: flex; align-items: center; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--accent); }
.qty input { width: 52px !important; min-height: 40px !important; border: 0 !important; text-align: center; padding: 0 !important; box-shadow: none !important; background: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-help { margin-top: 24px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.pd-help li > a, .pd-help li > span:first-child:not(:only-child), .pd-help li { display: flex; gap: 12px; align-items: flex-start; }
.pd-help li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.pd-help svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.pd-help b { display: block; color: var(--ink); font-weight: 600; }
.pd-help a:hover b { color: var(--accent); }
.pd-detail { margin-top: 56px; max-width: 860px; }
.pd-detail h2 { font-size: 1.6rem; }
.pd-detail .rule { margin-left: 0; }
.specs { margin: 22px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .92rem; }
.specs dd { margin: 0; }
.specs .brand-name { font-size: 1.15rem; }
.pd-detail .prose { margin-top: 24px; }
.pd-related { margin-top: 72px; }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 70; display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); width: max-content; max-width: calc(100% - 32px); font-size: .92rem; }
.toast a { color: var(--gold-soft); font-weight: 600; white-space: nowrap; }

/* ---------- ตะกร้า / สั่งซื้อ / ชำระเงิน / ตรวจสถานะ ---------- */
.shop-page h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 12px 0 24px; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.box + .box { margin-top: 16px; }
.box h2 { font-size: 1.2rem; margin-bottom: 14px; }
.cart, .checkout, .order-grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .cart, .checkout, .order-grid { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 32px; }
  .cart-side, .co-side { position: sticky; top: 104px; }
}
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line .pic { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sand); }
.cart-line .pic img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h3 { font-family: var(--sans); font-size: .98rem; font-weight: 500; }
.cart-line small { display: block; color: var(--muted); font-size: .875rem; }
.cart-line .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.remove, .link-btn { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .875rem; padding: 6px 0; }
.cart-empty { text-align: center; padding: 56px 16px; }
.empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 999px; background: var(--sand); color: var(--accent); margin-bottom: 14px; }
.empty-icon svg { width: 32px; height: 32px; }
.cart-empty p { color: var(--muted); margin: 8px 0 20px; }
.sum { margin: 0; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 500; }
.sum-disc dd { color: #3f6b46; }
.sum-total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.sum-total dt { color: var(--ink); font-weight: 600; }
.sum-total dd { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.free { color: #3f6b46; }
.free-bar { margin-bottom: 14px; font-size: .9rem; }
.free-bar span { display: block; height: 6px; margin-top: 6px; border-radius: 9px; background: var(--sand); overflow: hidden; }
.free-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; }
.note { font-size: .875rem; color: var(--muted); margin-top: 12px; display: flex; gap: 6px; align-items: flex-start; }
.note svg { width: 16px; height: 16px; margin-top: 3px; }
.checkout fieldset.box { margin: 0; }
.checkout legend { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; padding: 0 6px; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--accent); color: var(--white); font-family: var(--sans); font-size: .875rem; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.checkout .field + .field, .checkout .grid-2 + .field, .checkout .field + .grid-2 { margin-top: 14px; }
.hint { color: var(--muted); font-size: .875rem; }
.has-err input, .has-err select, .has-err textarea { border-color: #9a3b2c; }
.pay-list { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: var(--paper); }
.pay-opt input { accent-color: var(--accent); margin-top: 6px; }
.pay-opt b { display: block; }
.pay-opt small { color: var(--muted); }
.pay-opt.is-off { opacity: .55; cursor: not-allowed; }
.mini-lines { display: grid; gap: 10px; margin-bottom: 16px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.mini-lines small { display: block; color: var(--muted); font-size: .875rem; }
.coupon { margin-bottom: 14px; }
.coupon-row { display: flex; gap: 8px; margin-top: 6px; }
.form-msg { font-size: .9rem; margin: 10px 0; min-height: 1em; }
.form-msg.bad { color: #9a3b2c; } .form-msg.ok { color: #3f6b46; }
.warn { padding: 12px 14px; border-radius: 12px; background: #F6E9D9; color: #7a4a22; font-size: .92rem; }
.loading { color: var(--muted); }
.thanks { text-align: center; padding: 8px 0 28px; }
.thanks-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 99px; background: var(--sand); color: var(--accent); margin-bottom: 10px; }
.thanks-icon svg { width: 30px; height: 30px; }
.thanks h1 { margin: 6px 0 10px; }
.order-no { font-family: var(--sans); letter-spacing: .04em; }
.status-pill { display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 999px; background: var(--sand); color: var(--accent); font-weight: 500; font-size: .9rem; }
.st-paid, .st-shipping, .st-shipped, .st-completed { background: #E5EDDF; color: #3f6b46; }
.st-cancelled, .st-refunded { background: #F1E1DC; color: #8a3a2b; }
.pay-amount { display: grid; text-align: center; padding: 14px; border-radius: 14px; background: var(--paper); margin-bottom: 10px; }
.pay-amount small { color: var(--muted); }
.pay-amount b { font-family: var(--serif); font-size: 2rem; }
.qr-box { display: grid; gap: 14px; justify-items: center; text-align: center; margin: 16px 0; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.qr { width: 220px; max-width: 100%; }
.qr svg { width: 100%; height: auto; stroke: none; }
.banks { display: grid; gap: 10px; margin: 14px 0; }
.banks li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.banks small { display: block; color: var(--muted); font-size: .875rem; }
.bank-logo img { border-radius: 8px; }
.slip-form { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.slip-form h3 { font-size: 1.1rem; }
.drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--paper); cursor: pointer; text-align: center; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop small { color: var(--muted); }
.slip-preview { max-height: 320px; width: auto; margin-inline: auto; border-radius: 12px; }
.timeline { display: grid; gap: 0; margin-top: 6px; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 1px solid var(--line-strong); margin-left: 6px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 99px; background: var(--sand-2); border: 2px solid var(--paper); }
.timeline li.is-now::before { background: var(--accent); }
.timeline li:last-child { border-left-color: transparent; }
.timeline time { display: block; font-size: .875rem; color: var(--muted); }
.timeline p { font-size: .88rem; color: var(--muted); }
.tracking { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.ship-to { display: flex; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.ship-to svg { color: var(--gold); margin-top: 3px; }
.help-box { display: grid; gap: 10px; }
.help-box .link { text-align: center; font-size: .88rem; color: var(--muted); text-decoration: underline; }
.track-form { display: grid; gap: 14px; }
.track-result { margin-top: 20px; }

/* ---------- บทความ ---------- */
.a-meta { color: var(--muted); font-size: .9rem; margin: 8px 0 18px; }
.a-cover { margin: 0 0 24px; border-radius: 18px; overflow: hidden; }
.a-lead { font-size: 1.12rem; font-family: var(--serif); }
.a-toc { margin: 24px 0; padding: 18px 20px; border-radius: 14px; background: var(--sand); }
.a-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.a-embed { margin-top: 40px; }
.a-cta { margin: 32px 0; padding: 22px; border-radius: 18px; background: var(--sand); text-align: center; display: grid; gap: 12px; justify-items: center; }
.a-fig { margin: 0; }
.a-fig figcaption { font-size: .875rem; color: var(--muted); margin-top: 6px; }

/* ---------- แกลเลอรี ---------- */
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 768px) { .gal { columns: var(--cols, 3); column-gap: 18px; } }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
.gal-item img, .gal-item video { width: 100%; border-radius: 12px; }
.gal-item figcaption { font-size: .875rem; padding: 6px 2px; color: var(--muted); }
.gal-item figcaption b { display: block; color: var(--ink); }

/* ---------- ขยายรูป ---------- */
dialog.light { padding: 0; border: 0; background: none; max-width: min(96vw, 1100px); max-height: 94vh; }
dialog.light::backdrop { background: rgba(43, 29, 20, .85); }
dialog.light img { max-height: 86vh; width: auto; margin-inline: auto; border-radius: 12px; }
dialog.light p { color: var(--paper); text-align: center; padding: 8px; font-size: .92rem; }
dialog.light .light-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 99px; border: 0; background: rgba(251, 245, 236, .9); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
dialog.light .prev { left: 12px; } dialog.light .next { right: 12px; }
dialog.light .light-close { position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 99px; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--cocoa); color: #D8C6AF; padding: 56px 0 96px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.foot-brand { grid-column: 1 / -1; }
.foot-grid > div:last-child { grid-column: 1 / -1; }
.foot-brand { display: grid; gap: 18px; }
.foot-logo-img { width: 120px; border-radius: 14px; }
.foot-name { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--paper); font-weight: 600; }
.foot-tag { color: var(--gold-soft); margin: 4px 0 10px; }
.foot h2 { font-family: var(--serif); font-size: 1.05rem; color: var(--paper); margin-bottom: 14px; }
.foot-links { display: grid; gap: 6px; }
.foot-links a:hover, .foot-contact a:hover { color: var(--gold-soft); }
.foot-links .brand-name { font-size: 1.1rem; }
.foot-contact { display: grid; gap: 10px; }
.foot-contact li, .foot-contact a { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; margin-top: 4px; color: var(--gold-soft); }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; border: 1px solid rgba(217, 194, 156, .35); color: var(--paper); transition: .2s; }
.social a:hover { background: var(--gold-soft); color: var(--cocoa); }
.social svg { width: 18px; height: 18px; }
.foot-bottom { display: grid; gap: 6px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(217, 194, 156, .18); font-size: .875rem; color: #B6A28A; }
@media (min-width: 768px) {
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
  .foot-brand, .foot-grid > div:last-child { grid-column: auto; }
  .foot-brand { grid-template-columns: auto 1fr; align-items: start; }
  .foot { padding-bottom: 48px; }
  .foot-bottom { grid-template-columns: auto 1fr; justify-items: end; text-align: right; gap: 24px; }
}

/* ---------- ปุ่มลอยมือถือ: ไลน์ + โทร ---------- */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(251, 245, 236, .95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.float-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; font-weight: 500; }
.fl-line { background: #06C755; color: #fff; }
.fl-call { border: 1px solid var(--accent); color: var(--accent); }
@media (min-width: 900px) { .float-contact { display: none; } }

/* ---------- เคลื่อนไหวตอนเลื่อนถึง (เล่นครั้งเดียว) ---------- */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in, .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- จุดแตะบนมือถือ อย่างน้อย 44px ---------- */
@media (max-width: 1099px) {
  .topbar-in > a, .foot-links a, .foot-contact a, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .topbar-in { min-height: 44px; padding: 0; }
  .foot-links, .foot-contact { gap: 0; }
  .logo { min-height: 48px; }
  .social a { width: 44px; height: 44px; }
}
@media (max-width: 1099px) {
  .filter button, .tabs button, .card-cta, .link-arrow, .skip { min-height: 44px; }
  .contact-list a, .pd-help a, .kind small { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-list li { padding: 2px 0; }
}
@media (max-width: 1099px) { .specs dd a { display: inline-flex; align-items: center; min-height: 44px; } .specs div { padding: 4px 0; align-items: center; } }
