/* ชูใจ CHUJAI — ครีม ทอง น้ำตาล อบอุ่น / หน้ากาแฟ: น้ำตาลสุขุม / หน้าไฟเบอร์: ขาว พีช คอรัล สดชื่น */
:root {
  --bg: #fbf6ee;
  --bg2: #f4ebdd;
  --card: #fffdf9;
  --line: #e8dcc8;
  --line2: #d6c4a6;
  --text: #2b2118;
  --muted: #6b5b4b;
  --gold: #b8893a;
  --gold-soft: #efdcb4;
  --accent: #6b4423;
  --accent2: #55351a;
  --accent-ink: #fffaf2;
  --soft: #f3e7d4;
  --danger: #b42318;
  --warn: #9a5b00;
  --ok: #2f7a3b;
  --r: 16px;
  --r-lg: 22px;
  --wrap: 1200px;
  --gut: 16px;
  --shadow: 0 1px 2px rgba(60,40,20,.06), 0 10px 28px -14px rgba(60,40,20,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
/* โทนกาแฟ: น้ำตาลเข้ม ทอง ครีม */
.t-coffee, [data-theme="coffee"] { --accent: #5c3a1e; --accent2: #432a14; --soft: #f1e4cf; --tint: #e3cfae; }
/* โทนไฟเบอร์: ขาว พีช คอรัล */
.t-fiber, [data-theme="fiber"] { --accent: #b9434b; --accent2: #9c3139; --soft: #ffebe3; --tint: #f7cfc2; }
[data-theme="coffee"] { --bg: #f8f0e3; --bg2: #efe2cc; }
[data-theme="fiber"] { --bg: #fffaf7; --bg2: #fff0ea; --line: #f3ddd4; --line2: #e8c3b6; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Anuphan', 'Noto Sans Thai', sans-serif; font-size: 16px; line-height: 1.7; font-weight: 400; overflow-x: hidden; }
@media (min-width: 768px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent2); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .5em; font-weight: 700; letter-spacing: 0; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(28px, 7vw, 54px); }
@media (min-width: 1024px) { h1 { font-size: clamp(44px, 4.4vw, 56px); } }
h2 { font-size: clamp(24px, 4.6vw, 38px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.nw { white-space: nowrap; }
.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; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
@media (min-width: 768px) { :root { --gut: 28px; } }
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.i { width: 22px; height: 22px; flex: none; }
.i-brand { width: 22px; height: 22px; flex: none; }
.preview-bar { background: #ffcf7a; color: #000; text-align: center; padding: 8px 12px; font-weight: 600; position: sticky; top: 0; z-index: 60; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.35; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 20px; height: 20px; }
.btn-primary, .btn-theme { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, .btn-theme:hover { background: var(--accent2); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05a849; color: #fff; }
.btn-out, .btn:disabled { background: #e7e0d6; color: #7a7066; border-color: #e7e0d6; cursor: not-allowed; }
.btn-sm { min-height: 44px; padding: 6px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-more .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-more:hover .i { transform: translateX(3px); }

/* หัวเว็บ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,252,246,.94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 999px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-size: 20px; color: #4a2f17; }
.brand-txt small { font-size: 12px; letter-spacing: .22em; color: var(--gold); font-weight: 600; }
@media (min-width: 1100px) { .brand img { width: 54px; height: 54px; } .header-in { min-height: 78px; } }
.nav { display: none; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 500; padding: 11px 2px; min-height: 46px; display: inline-flex; align-items: center; position: relative; }
.nav-link[aria-current="page"]::after, .nav-link:hover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-coffee { color: #5c3a1e; } .nav-fiber { color: #b9434b; }
.head-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; color: var(--text); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-n { position: absolute; top: -5px; right: -5px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
@media (max-width: 1099px) {
  .nav-open .nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fffcf6; border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; gap: 0; max-height: calc(100vh - 66px); overflow: auto; box-shadow: var(--shadow); }
  .nav-open .nav-link { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-open .nav-link[aria-current="page"]::after { display: none; }
  .nav-open .nav-link[aria-current="page"] { color: var(--accent); font-weight: 700; }
}
@media (max-width: 380px) { .track-btn { display: none; } .brand-txt small { letter-spacing: .12em; } }
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: 22px; }
  .nav-extra { display: none; }
  .nav-toggle { display: none; }
}

/* แบนเนอร์: แสดงเต็มรูปตามสัดส่วนไฟล์ (แบนเนอร์มีตัวหนังสือ ห้ามตัดขอบ) */
.hero { position: relative; background: #1a0f07; overflow: hidden; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }
.hero-slide a { display: block; width: 100%; }
.hero-img { width: 100%; height: auto; }
.hero-mob { display: none; }
@media (max-width: 767px) { .hero-mob { display: block; } .hero-desk { display: none; } }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(30,18,8,.55); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.hero-nav.prev { left: 8px; } .hero-nav.next { right: 8px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; justify-content: center; z-index: 2; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.hero-dots button::after { content: ''; position: absolute; left: 12px; right: 12px; top: 20px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.5); }
.hero-dots button[aria-current="true"]::after { background: var(--gold-soft); }

/* ส่วนต่างๆ */
.sec { padding: 56px 0; }
.sec-tight { padding: 28px 0; }
.sec-alt { background: var(--bg2); }
@media (min-width: 1024px) { .sec { padding: 84px 0; } .sec-tight { padding: 40px 0; } }
.kicker { color: var(--gold); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 10px; }
.t-coffee .kicker, [data-theme="coffee"] .kicker { color: #8a6420; }
.kicker { color: #8a6420; }
.kicker-line::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-head-c { justify-content: center; text-align: center; }
.sec-head-c .sec-sub { margin-left: auto; margin-right: auto; }
.sec-sub { color: var(--muted); margin: 8px 0 0; max-width: 62ch; }
.intro { padding: 40px 0 16px; background: radial-gradient(90% 120% at 100% 0%, rgba(239,220,180,.55), transparent 60%), var(--bg); }
.intro-in { max-width: 920px; }
.intro .lead { color: var(--muted); font-size: 17px; max-width: 68ch; }
@media (min-width: 768px) { .intro { padding: 64px 0 28px; } .intro .lead { font-size: 19px; } }

/* สินค้าคู่ (หน้าแรก) */
.duo-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .duo-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.duo { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 560px) and (max-width: 899px) { .duo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; } }
.duo-media { display: block; background: #fff; }
.duo-media img { width: 100%; height: auto; }
.duo-body { padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .duo-body { padding: 26px 28px 28px; } }
.duo-kicker { color: var(--accent); font-weight: 700; letter-spacing: .14em; font-size: 14px; margin: 0; }
.duo h3 { font-size: clamp(20px, 3vw, 24px); margin: 0; }
.duo h3 a { color: var(--text); text-decoration: none; display: block; padding: 10px 0; }
.duo-sum { color: var(--muted); margin: 0; }
.duo-pts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.duo-pts li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.5; }
.duo-pts .i { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.duo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--tint, var(--line)); }
.duo-foot .price { margin: 0; padding: 0; }

.facts { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .i { width: 18px; height: 18px; color: var(--accent); }

/* ตารางราคา */
.ptable-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .ptable-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.ptable { background: var(--card); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); border-top: 5px solid var(--accent); }
@media (min-width: 768px) { .ptable { padding: 24px 26px; } }
.ptable h3 { margin: 0; font-size: 21px; letter-spacing: .04em; }
.ptable h3 a { color: var(--accent); text-decoration: none; }
.ptable-net { color: var(--muted); font-size: 15px; margin: 2px 0 10px; }
.ptable table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.ptable th, .ptable td { padding: 11px 6px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
.ptable thead th { color: var(--muted); font-weight: 500; font-size: 14px; }
.ptable tbody th { font-weight: 600; }
.ptable td strong { color: var(--accent); font-size: 18px; }
.ptable s { color: var(--muted); font-size: 14px; }
.ptable td:last-child { color: var(--muted); font-size: 14px; }
.ptable tr.is-out { opacity: .55; }

/* จุดเด่น */
.hl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 480px) { .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .hl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .hl-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hl { background: var(--card); border-radius: var(--r); padding: 18px 16px; box-shadow: var(--shadow); }
.hl-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: var(--soft); color: var(--accent); margin-bottom: 12px; flex: none; }
.hl h3 { font-size: 16px; margin-bottom: 6px; }
.hl p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6; }
@media (min-width: 768px) { .hl { padding: 24px 22px; } .hl h3 { font-size: 18px; } .hl p { font-size: 15px; } }
.pts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .pts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.pt { display: flex; flex-direction: column; gap: 4px; background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); font-weight: 600; line-height: 1.5; }
.pt .hl-ic { margin-bottom: 6px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 56px; cursor: pointer; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--accent); transition: transform .2s var(--ease); }
.faq[open] summary .i { transform: rotate(180deg); }
.faq-a { padding: 0 18px 14px; color: var(--muted); }
.faq-a p { margin: 0 0 .6em; }
.faq-cta { margin-top: 22px; }

/* การ์ดสินค้า */
.prod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.prod { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
@media (hover: hover) and (pointer: fine) { .prod:hover, .duo:hover { transform: translateY(-3px); color: var(--text); } .duo { transition: transform .2s var(--ease); } }
.prod-media { position: relative; display: block; background: #fff; }
.prod-media img { width: 100%; height: auto; }
.prod-media .badge { position: absolute; left: 8px; top: 8px; }
.prod-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; border-top: 4px solid var(--soft); }
.prod-cat { color: var(--muted); font-size: 14px; line-height: 1.45; text-decoration: none; }
.prod-name { font-weight: 600; line-height: 1.45; font-size: 15px; }
@media (min-width: 768px) { .prod-name { font-size: 17px; } .prod-body { padding: 14px 16px 18px; } }
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: auto 0 0; padding-top: 6px; }
.price strong { color: var(--accent); font-size: 20px; font-weight: 700; }
.price s { color: var(--muted); font-size: 14px; }
.price small { color: var(--muted); font-size: 14px; }
.price-big strong { font-size: 34px; }
.price-big { margin: 10px 0 4px; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.badge-out { background: #5b4a3a; color: #fff; }
.ph-visual { display: grid; place-items: center; aspect-ratio: 1; background: var(--soft); color: var(--line2); }
.ph-i { width: 46px; height: 46px; }

/* หัวหน้า / breadcrumb */
.page-head { padding: 26px 0 8px; }
.page-head-sm { padding: 14px 0 0; }
@media (min-width: 768px) { .page-head { padding: 44px 0 12px; } }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 6px; line-height: 1.4; }
.crumbs a { color: var(--muted); display: inline-block; padding: 13px 2px; min-width: 44px; }
.crumbs a:hover { color: var(--accent); }
.h-sm { font-size: 21px; display: flex; align-items: center; gap: 8px; }
.h-sm .i { color: var(--accent); }

/* ตัวกรอง */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gut) 8px; margin: 0 calc(var(--gut) * -1) 12px; scrollbar-width: thin; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap; background: var(--card); }
.chip small { color: var(--muted); font-size: 14px; }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip[aria-current="page"] small { color: var(--accent-ink); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.search { position: relative; flex: 1 1 240px; display: block; }
.search .search-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search input { padding-left: 44px; }
.sel { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.sel select { width: auto; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.js .nojs { display: none; }
.result-n { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.empty { text-align: center; padding: 40px 16px; background: var(--card); border: 1px dashed var(--line2); border-radius: var(--r); }
.empty .cta-row { justify-content: center; }
.empty-i { width: 44px; height: 44px; color: var(--muted); margin: 0 auto 10px; }

/* ฟอร์ม */
input[type=text], input[type=tel], input[type=email], input[type=search], input[type=number], select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(184,137,58,.28); }
::placeholder { color: #9a8b7b; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 15px; }
.req { color: var(--danger); }
.help { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.err { color: var(--danger); font-size: 14px; margin: 4px 0 0; }
.err:empty { display: none; }
.has-err input, .has-err textarea, .has-err select { border-color: var(--danger); }
.ok-msg { color: var(--ok); font-size: 14px; margin: 4px 0 0; }
.ok-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-size: 15px; }
.alert .i { margin-top: 2px; }
.alert-ok { background: #e9f5e7; border: 1px solid #b7dcb0; color: #1f5a28; }
.alert-err { background: #fdecea; border: 1px solid #f3b9b2; color: #8f1d14; }
.alert-warn { background: #fdf1dc; border: 1px solid #efcf95; color: #6e4300; }
.card { background: var(--card); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .card { padding: 26px; } }
fieldset.card { margin: 0 0 14px; min-width: 0; border: 0; }
legend { font-weight: 700; font-size: 18px; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
legend + * { clear: both; }

/* หน้าสินค้า */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pd > * { min-width: 0; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; } .pd-gallery { position: sticky; top: 96px; } }
.pd-main { background: #fff; border-radius: var(--r-lg); overflow: hidden; }
.pd-slide { margin: 0; }
.pd-slide img { width: auto; max-width: 100%; max-height: 82vh; height: auto; margin: 0 auto; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumb { flex: none; width: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; display: grid; place-items: center; }
.pd-thumb[aria-current="true"] { border-color: var(--accent); }
.pd-thumb img { width: 100%; height: 76px; object-fit: contain; }
.pd-info h1 { font-size: clamp(26px, 5.4vw, 40px); margin: 4px 0 8px; }
.pd-sum { color: var(--muted); font-size: 17px; }
.price-note { color: var(--muted); font-size: 14px; }
.buy { margin: 10px 0 18px; }
.opts { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.opts legend { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; font-size: 16px; }
.opt-in { display: flex; flex-direction: column; gap: 0; height: 100%; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--card); cursor: pointer; line-height: 1.45; }
.opt-name { font-weight: 600; }
.opt-price strong { color: var(--accent); font-size: 19px; }
.opt-price s { color: var(--muted); font-size: 14px; }
.opt-avg { color: var(--muted); font-size: 14px; }
.opt input:checked + .opt-in { border-color: var(--accent); background: var(--soft); box-shadow: 0 0 0 1.5px var(--accent) inset; }
.opt input:focus-visible + .opt-in { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt.is-out .opt-in { opacity: .5; cursor: not-allowed; }
.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.qty-row .lbl { font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 46px; height: 46px; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; font-size: 20px; }
.qty button:hover { color: var(--accent); }
.qty input { width: 52px; min-height: 46px; border: 0; border-radius: 0; text-align: center; background: transparent; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }
.stock-note { color: var(--muted); font-size: 14px; }
.buy-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-btns .btn-out { grid-column: 1 / -1; }
.buy-msg { margin: 10px 0 0; font-size: 15px; color: var(--ok); }
.buy-msg:empty { display: none; }
.buy-msg.err-msg { color: var(--danger); }
.trust { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.trust .i { color: var(--accent); }
.info-2 { display: grid; gap: 14px; }
@media (min-width: 860px) { .info-2 { grid-template-columns: 1fr 1fr; gap: 20px; } }
.specs table, .totals { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.specs th { color: var(--muted); font-weight: 500; width: 40%; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--line); }
.prose { color: var(--text); max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.pd-desc { margin-top: 18px; }
.note-box { display: flex; gap: 10px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 14px 16px; margin: 0; font-weight: 600; }
.note-box .i { color: var(--accent); margin-top: 3px; }

/* แถบติดต่อ */
.cta-band { background: linear-gradient(120deg, #4a2f17 0%, #2b1a0b 70%); color: #fbefdc; }
.cta-band h2 { color: #fff4e2; }
.cta-in { display: grid; gap: 18px; align-items: center; }
.cta-in h2 { margin-bottom: 6px; }
.cta-in p { color: #ead8bd; margin: 0; }
.cta-band .btn-ghost { color: #fff4e2; border-color: rgba(255,244,226,.45); }
.cta-band .btn-ghost:hover { border-color: #fff4e2; color: #fff; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1.2fr 1fr; } .cta-in .cta-row { justify-content: flex-end; } }

/* ตะกร้า / ชำระเงิน */
.cart-wrap { display: grid; gap: 18px; }
@media (min-width: 960px) { .cart-wrap { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 28px; } .summary { position: sticky; top: 96px; } }
.summary { background: var(--card); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.summary h2 { font-size: 20px; }
.summary .btn-block { margin-top: 10px; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line .thumb { background: #fff; border-radius: 10px; overflow: hidden; align-self: start; }
.cart-line .thumb img { width: 100%; height: auto; }
.cart-line .nm { font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.45; display: block; }
.cart-line .meta { color: var(--muted); font-size: 14px; }
.cart-line .row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cart-line .lt { font-weight: 700; }
.cart-line .rm { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; padding: 0 6px; }
.cart-line .rm:hover { color: var(--danger); }
.cart-line .problem { color: var(--danger); font-size: 14px; margin: 4px 0 0; }
.totals th, .totals td { padding: 7px 0; font-size: 15px; font-weight: 400; }
.totals th { text-align: left; color: var(--muted); }
.totals td { text-align: right; }
.totals .grand th, .totals .grand td { border-top: 1px solid var(--line2); padding-top: 12px; color: var(--text); font-size: 18px; }
.totals .grand strong { color: var(--accent); font-size: 24px; }
.free-hint { background: #f6ecd8; border: 1px solid var(--gold-soft); color: #5e4210; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 10px 0 0; }
.mini-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.mini-lines small { color: var(--muted); }
.pay-list { display: grid; gap: 10px; }
.pay { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line2); border-radius: 14px; cursor: pointer; background: #fff; }
.pay input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.pay:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.pay-ic { color: var(--accent); }
.pay strong { display: block; }
.pay small { color: var(--muted); font-size: 14px; display: block; line-height: 1.5; }
.code-row { display: flex; gap: 8px; }
.code-row input { text-transform: uppercase; }
.code-row .btn { flex: none; }

/* หน้าออเดอร์ */
.order-grid { display: grid; gap: 14px; }
.order-grid h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.status { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.st-ok { background: #e4f2e1; color: #1f5a28; }
.st-wait { background: #fbefd7; color: #6e4300; }
.st-cancel { background: #fbe3e0; color: #8f1d14; }
.pay-box { box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow); }
.pay-amount { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--soft); border-radius: 14px; padding: 14px 16px; }
.pay-amount small { display: block; color: var(--muted); width: 100%; font-size: 14px; }
.pay-amount strong { font-size: 34px; color: var(--accent); line-height: 1.2; }
.banks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.banks li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.banks li > div { flex: 1 1 160px; }
.banks p { margin: 0; }
.bank-ic { color: var(--accent); }
.acc { font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.qr-box svg { border-radius: 12px; width: 220px; height: 220px; max-width: 100%; }
.slip-form { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.slip-form h3 { font-size: 17px; }
.slip-drop { display: block; border: 1.5px dashed var(--line2); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; margin-bottom: 10px; color: var(--muted); background: #fff; }
.slip-drop:hover { border-color: var(--accent); }
.slip-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slip-drop > span { display: inline-flex; align-items: center; gap: 8px; }
.slip-drop img { max-height: 320px; width: auto; margin: 10px auto 0; border-radius: 10px; }
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.steps li { position: relative; font-size: 14px; color: var(--muted); padding-top: 14px; line-height: 1.4; }
.steps li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: 4px; background: var(--line); }
.steps li.done::before, .steps li.cur::before { background: var(--accent); }
.steps li.cur { color: var(--text); font-weight: 600; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { border-left: 2px solid var(--line2); padding: 0 0 14px 14px; position: relative; }
.events li::before { content: ''; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.events li strong { display: block; }
.events p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.track-form .btn { margin-top: 4px; }

/* ติดต่อ / เกี่ยวกับ */
.contact-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); align-items: start; gap: 28px; } }
.info-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.info { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.info-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--accent); }
.info h2 { font-size: 15px; color: var(--muted); font-weight: 500; margin: 0 0 2px; }
.info p { margin: 0; word-break: break-word; }
.info p a { display: inline-block; padding: 10px 0; }
.quote h2 { font-size: 22px; }
.about { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; } }
.about-pic img { width: 100%; max-width: 440px; margin: 0 auto; border-radius: 999px; }
.about .lead { color: var(--muted); font-size: 18px; }
.socials { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; background: var(--card); color: var(--text); border: 1px solid var(--line2); }
.social:hover { border-color: var(--accent); color: var(--accent); }
.s-line .i-brand { color: #06c755; } .s-fb .i-brand { color: #1877f2; } .s-tt .i-brand { color: #000; } .s-shopee .i-brand { color: #ee4d2d; } .s-lazada .i-brand { color: #0f146d; }
.site-footer .social { background: transparent; color: #f6e8d2; border-color: rgba(246,232,210,.3); }
.site-footer .social:hover { color: #fff; border-color: #f6e8d2; }
.site-footer .s-tt .i-brand { color: #fff; }

/* ท้ายเว็บ */
.site-footer { background: #2b1a0b; color: #f6e8d2; padding: 44px 0 0; font-size: 15px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr .8fr 1.3fr; } }
.footer-brand img { width: 72px; height: 72px; border-radius: 999px; margin-bottom: 12px; }
.footer-name { font-weight: 700; font-size: 20px; margin-bottom: 2px; color: #fff4e2; }
.footer-name span { font-size: 13px; letter-spacing: .22em; color: var(--gold-soft); margin-left: 6px; }
.footer-tag { color: var(--gold-soft); margin-bottom: 8px; }
.footer-sum { color: #dccab0; }
.footer-h { font-size: 16px; color: var(--gold-soft); margin-bottom: 8px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-contact a { color: #f6e8d2; text-decoration: none; display: inline-block; padding: 11px 0; line-height: 1.5; min-height: 46px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 4px; }
.footer-contact li > span:not(:has(a)) { padding: 11px 0; }
.footer-contact .i, .footer-contact .i-brand { color: var(--gold-soft); width: 20px; height: 20px; margin-top: 13px; }
.footer-note { display: flex; gap: 8px; align-items: flex-start; margin: 26px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,244,226,.08); color: #f6e8d2; font-size: 15px; }
.footer-note .i { color: var(--gold-soft); width: 20px; height: 20px; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(246,232,210,.18); margin-top: 22px; padding-top: 16px; padding-bottom: 20px; color: #cdb898; font-size: 14px; }

/* ปุ่มลอยมือถือ: ไลน์ + โทร */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 6px var(--gut) calc(6px + env(safe-area-inset-bottom)); background: rgba(255,252,246,.96); border-top: 1px solid var(--line); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.mb-line { background: #06c755; color: #fff; }
.mb-call { background: var(--accent); color: var(--accent-ink); }
.mb-line:hover { color: #fff; } .mb-call:hover { color: var(--accent-ink); }
/* เว้นที่ท้ายหน้าไม่ให้ปุ่มลอยทับ (ใส่ที่ท้ายเว็บ สีจะต่อเนื่องกัน) */
.footer-bottom { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .mobile-bar { display: none; } .footer-bottom { padding-bottom: 20px; } }

/* อนิเมชัน: ปรากฏตอนเลื่อนถึง (ครั้งเดียว) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease) var(--d, 0ms), transform .5s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px); background: #2b1a0b; color: #fff4e2; padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.skip { position: absolute; top: 0; left: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; transform: translateY(-150%); }
.skip:focus { transform: translateY(8px); }
