/* โรงงานธูปไทยศิริ — แนวนิตยสาร (Editorial) โทนครีมอบอุ่น สี/ฟอนต์ตามเว็บเดิม */
:root {
  --paper: #fbf7ef;
  --paper-2: #f4ecdc;
  --ink: #2b1c10;
  --ink-2: #5b4633;
  --accent: #7a4a1f;
  --gold: #b07d3c;
  --rule: #e3d6bf;
  --dark: #2b1c10;
  --line: #06c755;
  --wa: #1fa855;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Anuphan', 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 17px; line-height: 1.7; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600;
  font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-line { background: var(--accent); color: #fff; }
.btn-line:hover { background: #6a3f19; box-shadow: 0 8px 20px -10px rgba(122, 74, 31, .7); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { border-color: rgba(251, 247, 239, .5); color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }

/* แถบบน */
.topbar { background: var(--dark); color: #efe4d1; font-size: 14px; }
.topbar-in { display: flex; gap: 22px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar-in > * { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar .ic { width: 15px; height: 15px; }

/* หัวเว็บ — ไม่มี backdrop-filter/transform เพื่อให้เมนูมือถือเต็มจอ */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.head-in { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 66px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.4; }
.brand-txt strong { font-size: 18px; font-weight: 700; color: var(--accent); }
.brand-txt small { font-size: 14px; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.head-cta, .burger { display: none; }

@media (max-width: 1023px) {
  .head-in { min-height: 64px; }
  .brand img { width: 54px; }
  .head-cta { display: inline-flex; min-height: 44px; min-width: 76px; padding: 8px 16px; font-size: 15px; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 10px; }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 4px; padding: 90px var(--gut) 40px; background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav a:not(.btn) { font-size: 26px; font-weight: 600; padding: 8px 0; }
  .nav-cta { margin-top: 18px; min-height: 52px; font-size: 17px; }
}
@media (max-width: 479px) {
  .brand-txt small { display: none; }
  .brand-txt strong { font-size: 16px; }
  .hide-sm { display: none !important; }
  .topbar-in { gap: 16px; font-size: 14px; }
}

/* ป้ายเลขส่วน */
.num { display: inline-block; font-weight: 600; color: var(--gold); margin-right: 12px; font-variant-numeric: tabular-nums; }
.eyebrow, .sec-label { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin: 0 0 18px; display: flex; align-items: center; }
.sec-label { border-top: 1px solid var(--ink); padding-top: 14px; }

/* ปก */
.hero-head { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero-grid { display: grid; gap: 24px; align-items: end; }
.display { font-size: clamp(40px, 9.5vw, 104px); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }
.display em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.hero-tel { font-size: 15px; color: var(--ink-2); text-decoration: none; gap: 6px; }
.hero-tel strong { color: var(--ink); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .hero-side { border-left: 1px solid var(--rule); padding-left: 36px; padding-bottom: 12px; }
}
.hero-media { width: 100%; overflow: hidden; background: var(--paper-2); }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; max-height: 70vh; object-fit: cover; object-position: 50% 30%; }
.faq-media { margin-top: 28px; }
.faq-media img { width: 100%; height: auto; border-radius: 4px; }
/* คอม: แบบอ้างอิง A — หัวข้อใหญ่ซ้าย ภาพแบนเนอร์ขวาชนขอบจอ */
@media (min-width: 1100px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; }
  .hero-head { max-width: none; margin: 0; padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)); padding-right: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-side { border-left: 0; padding-left: 0; }
  .display { font-size: clamp(56px, 5.6vw, 92px); }
  .hero-media { align-self: stretch; display: flex; }
  .hero-media img { max-height: none; height: 100%; min-height: 100%; }
}

/* จุดเด่น */
.points { border-bottom: 1px solid var(--rule); }
.points-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.point { padding: 26px 14px 26px 0; border-bottom: 1px solid var(--rule); }
.point:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--rule); }
.point:nth-child(even) { padding-left: 14px; }
.point:nth-last-child(-n+2) { border-bottom: 0; }
.point h3 { font-size: 17px; font-weight: 700; margin: 12px 0 4px; }
.point p { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.6; }
@media (min-width: 768px) {
  .points-grid { grid-template-columns: repeat(4, 1fr); }
  .point, .point:nth-child(odd), .point:nth-child(even) { padding: 34px 24px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .point:first-child { padding-left: 0; }
  .point:last-child { border-right: 0; }
}

/* ส่วนทั่วไป */
.sec { padding: clamp(64px, 10vw, 128px) 0; }
.h2 { font-size: clamp(30px, 5vw, 56px); font-weight: 700; line-height: 1.4; letter-spacing: -.005em; }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-sub { color: var(--ink-2); margin: 14px 0 0; }

/* 01 เกี่ยวกับเรา — กริดไม่สมมาตร รูปแนวตั้งยาว */
.about-grid { display: grid; gap: 28px; }
.about-media img { width: 100%; height: auto; }
.about-txt p { color: var(--ink-2); max-width: 36em; }
.about-txt .h2 { margin-bottom: 24px; }
.pull { margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.5; color: var(--accent); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 1fr 6fr; grid-template-rows: auto 1fr; column-gap: 0; }
  .about-grid .sec-label { grid-column: 1 / -1; }
  .about-media { grid-column: 1; grid-row: 2; }
  .about-txt { grid-column: 3; grid-row: 2; align-self: center; }
}

/* 02 สินค้า */
.products { background: var(--paper-2); }
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.prod { background: var(--paper); border-radius: 14px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.prod:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(43, 28, 16, .55); }
.prod figure img { width: 100%; height: auto; }
.prod-a { grid-column: 1 / -1; }
.prod-body { padding: 14px 14px 18px; }
.prod-body h3 { font-size: 17px; font-weight: 700; margin: 8px 0 6px; }
.prod-body p { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.tag { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; }
@media (min-width: 768px) {
  .prod-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; align-items: start; }
  .prod-a { grid-column: auto; }
  .prod-b { margin-top: 64px; }
  .prod-c { margin-top: 128px; }
  .prod-body { padding: 20px 22px 24px; }
  .prod-body h3 { font-size: 20px; }
}

/* สินค้าเด่น */
.feature-grid { display: grid; gap: 32px; align-items: center; }
.feature-media img { width: 100%; height: auto; border-radius: 4px; }
.rows { list-style: none; margin: 26px 0 18px; padding: 0; border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.row-n { font-size: 22px; font-weight: 700; color: var(--gold); line-height: 1.4; }
.rows h3 { font-size: 19px; font-weight: 700; }
.rows p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.note { font-weight: 600; }
.hint { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }

/* 03 วิธีสั่งซื้อ */
.order { border-top: 1px solid var(--rule); }
.order-grid { display: grid; gap: 36px; }
.order-media { margin-top: 28px; }
.order-media img { width: 100%; height: auto; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.step-n { font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1.4; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) {
  .order-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .order-head { position: sticky; top: 100px; }
  .steps li { grid-template-columns: 110px 1fr; padding: 34px 0; }
  .step-n { font-size: 52px; }
}

/* 04 แกลเลอรี — พื้นเข้ม masonry ไม่ครอป */
.gallery { background: var(--dark); color: var(--paper); }
.gallery .sec-label { border-color: rgba(251, 247, 239, .6); color: #e4c48f; }
.gallery .num { color: #e4c48f; }
.gallery .sec-sub { color: #cdbda4; }
.masonry { columns: 2; column-gap: 10px; }
.m-item { display: block; position: relative; break-inside: avoid; margin-bottom: 10px; overflow: hidden; border-radius: 6px; text-decoration: none; }
.m-item img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.m-item:hover img { transform: scale(1.03); }
.m-item span { position: absolute; left: 8px; bottom: 8px; font-size: 14px; font-weight: 600; background: rgba(43, 28, 16, .78); color: var(--paper); padding: 2px 10px; border-radius: 999px; }
@media (min-width: 480px) { .masonry { columns: 3; } }
@media (min-width: 1024px) { .masonry { columns: 4; column-gap: 16px; } .m-item { margin-bottom: 16px; } }

/* 05 คำถาม */
.faq-grid { display: grid; gap: 28px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { color: var(--ink-2); padding: 0 0 20px; margin: 0; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }

/* 06 ติดต่อ */
.contact { background: var(--dark); color: var(--paper); }
.contact .sec-label { border-color: rgba(251, 247, 239, .6); color: #e4c48f; }
.contact .num { color: #e4c48f; }
.contact-grid { display: grid; gap: 28px; }
.qr-row { display: grid; gap: 14px; }
.qr-card { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 16px; }
.qr-card > img { width: 130px; height: auto; border-radius: 8px; }
.qr-txt h3 { font-size: 20px; font-weight: 700; margin: 6px 0 2px; }
.qr-txt p { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.5; }
.qr-txt .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.logo-badge svg { width: 34px; height: 34px; display: block; }
.info-list { list-style: none; margin: 0 0 20px; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(251, 247, 239, .18); }
.info-list .ic { color: #e4c48f; margin-top: 4px; width: 20px; height: 20px; }
.info-list small { display: block; font-size: 14px; color: #cdbda4; }
.info-list a, .info-list span { font-size: 17px; text-decoration: none; }
.map { border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: #3a2817; }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }
@media (min-width: 560px) { .qr-card { grid-template-columns: 170px 1fr; } .qr-card > img { width: 170px; } }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 7fr 5fr; gap: 56px; }
  .qr-row { grid-template-columns: 1fr 1fr; align-items: start; }
  .qr-card { grid-template-columns: 1fr; padding: 22px; }
  .qr-card > img { width: 100%; max-width: 240px; margin: 0 auto; }
}

/* ท้ายเว็บ */
.foot { background: #1f140b; color: #d9cbb3; padding: 56px 0 96px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.foot-grid > div:first-child { grid-column: 1 / -1; }
.foot-logo { width: 120px; height: auto; background: var(--paper); border-radius: 10px; margin-bottom: 12px; }
/* ระยะกดลิงก์ตัวอักษรอย่างน้อย 44px */
.topbar-in > a, .foot li a, .info-list a, .hero-tel, .brand { min-height: 44px; display: inline-flex; align-items: center; }
.foot li { margin-bottom: 0; }
.about-media, .feature-media { max-width: 600px; }
@media (min-width: 900px) { .about-media, .feature-media { max-width: none; } }
.foot h3 { font-size: 15px; color: #e4c48f; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(217, 203, 179, .2); margin-top: 36px; padding-top: 18px; font-size: 14px; }
@media (min-width: 900px) { .foot { padding-bottom: 40px; } .foot-grid { grid-template-columns: 2fr 1fr 1.3fr 1.2fr; } .foot-grid > div:first-child { grid-column: auto; } }

/* ปุ่มลอยมือถือ */
.fab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(251, 247, 239, .96); border-top: 1px solid var(--rule); }
.fab a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 16px; }
.fab-line { background: var(--line); color: #fff; }
.fab-tel { background: var(--ink); color: var(--paper); }
@media (min-width: 900px) { .fab { display: none; } }

/* กล่องรูปขยาย */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(20, 13, 7, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lb[hidden] { display: none; }
.lb figure { max-width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb figcaption { color: #e9dcc5; margin-top: 12px; font-size: 15px; text-align: center; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(251, 247, 239, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-x { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* อนิเมชันปรากฏตอนเลื่อนถึง */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .prod, .m-item img { transition: none; }
}

/* หน้า 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px var(--gut); }
.nf .display { font-size: clamp(64px, 16vw, 140px); color: var(--accent); }
