/* หน้าเว็บ บริษัท ลองจีวิตี้ แลนด์ จำกัด
   โทน: ครีมอบอุ่น · น้ำเงินกรมท่า (น่าเชื่อถือ) · ทอง (หรูหรา) · น้ำตาลแบรนด์ #57473a — ไม่ใช้สีแดงตามบรีฟ
   หน้า Next Day (body.theme-party) สลับเป็นเหลือง-น้ำเงินแนวปาร์ตี้ */

:root {
  --paper: #f7f2ea;
  --paper-2: #efe6d8;
  --card: #fffdf9;
  --ink: #2b231d;
  --muted: #6b5d50;
  --navy: #16294a;
  --navy-2: #213d6b;
  --gold: #b8935a;
  --gold-l: #e3cfa6;
  --accent: #8a6431;
  --brown: #57473a;
  --line: rgba(87, 71, 58, .16);
  --radius: 18px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(43, 35, 29, .06), 0 8px 24px -12px rgba(43, 35, 29, .18);
  --shadow-up: 0 2px 4px rgba(43, 35, 29, .06), 0 18px 36px -16px rgba(43, 35, 29, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink);
  background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(640px, 100% - 40px); }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- ปุ่ม ---------- */
.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; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.45; text-align: center;
  background: var(--navy); color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { background: linear-gradient(180deg, #9a7139, var(--accent)); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(22, 41, 74, .35); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(22, 41, 74, .04); }
.btn-light { background: #fff; color: var(--navy); }
.btn-line { background: #06c755; color: #fff; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 15px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 4px; font-size: 15px; }

/* ---------- แถบข้อมูลบน + หัวเว็บ ---------- */
.topbar { background: var(--navy); color: #e9e1d2; font-size: 14px; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.topbar svg { width: 15px; height: 15px; color: var(--gold-l); }
.topbar a:hover { color: #fff; }
.tb-track { margin-left: auto; }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(247, 242, 234, .97); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.nav.is-scrolled { box-shadow: 0 6px 20px -14px rgba(43, 35, 29, .4); }
.nav-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo-img { height: 58px; width: auto; mix-blend-mode: multiply; }
.logo-text { font-weight: 700; font-size: 20px; color: var(--navy); }
.menu { display: flex; gap: 2px; flex-wrap: nowrap; margin-inline: auto; }
.menu a { position: relative; text-decoration: none; padding: 8px 9px; font-size: 15px; font-weight: 500; color: var(--brown); white-space: nowrap; border-radius: 8px; }
.menu a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.menu-track { display: none; }
.nav-act { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--navy); text-decoration: none; }
.cart-btn:hover { background: rgba(22, 41, 74, .06); }
.cart-btn svg { width: 25px; height: 25px; }
.cart-n { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; line-height: 1.45; font-weight: 700; display: grid; place-items: center; }
.cart-n[hidden] { display: none; }
.nav-cta { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 11px; border-radius: 10px; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger span + span { margin-top: 6px; }

@media (max-width: 1239px) {
  .burger { display: block; position: relative; z-index: 61; }
  .menu {
    position: fixed; inset: 0; z-index: 60; margin: 0; flex-direction: column; gap: 0; overflow-y: auto;
    background: var(--paper); padding: 96px 28px 40px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  .menu a { font-size: 20px; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu a::after { display: none; }
  .menu-track { display: block; color: var(--accent) !important; }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu { visibility: visible; opacity: 1; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.nav-open .cart-btn, body.nav-open .nav-cta { visibility: hidden; }
}
@media (max-width: 860px) {
  .topbar .wrap { gap: 14px; justify-content: center; min-height: 34px; font-size: 14px; }
  .tb-mail, .topbar span:first-child, .tb-track { display: none !important; }
  .nav-in { min-height: 64px; gap: 8px; }
  .logo-img { height: 46px; }
  .nav-cta { display: none; }
}

/* ---------- ส่วนทั่วไป ---------- */
main { display: block; }
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec + .sec:not(.sec-navy):not(.cta-band):not(.sec-contact):not(.sec-trust) { padding-top: clamp(24px, 4vw, 48px); }
.sec-head { display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 0; color: var(--navy); }
.sec-rule { flex: 0 1 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sec-rule:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.sec-intro-wrap { max-width: 680px; margin: -24px auto 40px; text-align: center; color: var(--muted); }
.page-head { padding: clamp(40px, 6vw, 72px) 0 0; text-align: center; }
.page-head h1, .page-head-in h1 { font-size: clamp(30px, 4vw, 48px); color: var(--navy); }
.page-head-in { text-align: center; margin-bottom: 32px; }
.gold-line { display: block; width: 64px; height: 2px; background: var(--gold); margin: 4px 0 22px; }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; background: var(--paper-2); overflow: hidden; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.hero-slide.is-on { opacity: 1; visibility: visible; }
.hero-pic img { width: 100%; }
/* แบบเต็มจอ: รูปตามสัดส่วนจริงของไฟล์ (ข้อความในรูปไม่โดนตัด) */
.hero-full .hero-pic img { aspect-ratio: auto; }
.hero-full .hero-slide { position: relative; }
.hero-full .hero-body { position: absolute; inset: auto 0 12% 0; width: min(1200px, 100% - 40px); margin-inline: auto; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
/* แบบแบ่งครึ่ง: ข้อความซ้ายบนพื้นครีม รูปขวา */
.hero-split { background: radial-gradient(120% 90% at 0% 0%, #fbf7f0 0%, var(--paper-2) 60%, #e8dcc7 100%); }
.hero-split .hero-slide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(20px, 3vw, 48px);
  width: min(1320px, 100% - 40px); margin-inline: auto; padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 6vw, 84px); }
.hero-split .hero-pic { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-up); }
.hero-title { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.4; color: var(--navy); margin-bottom: 18px; }
.hero-title::before { content: ''; display: block; width: 56px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.hero-full .hero-title { color: #fff; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 30em; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
/* ข้อความค่อยๆ ลอยขึ้นตอนสไลด์เปลี่ยน (ลูกค้าขอโมชั่นตัวหนังสือ) */
.hero-slide .hero-body > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero-slide.is-on .hero-body > * { opacity: 1; transform: none; }
.hero-slide.is-on .hero-body > :nth-child(2) { transition-delay: .12s; }
.hero-slide.is-on .hero-body > :nth-child(3) { transition-delay: .24s; }
/* แบบแถบเตี้ย: หัวหน้ารอง */
.hero-compact .hero-slide { position: relative; }
.hero-compact .hero-pic img { height: clamp(220px, 30vw, 340px); object-fit: cover; object-position: 70% 50%; }
.hero-compact .hero-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,242,234,.96) 0%, rgba(247,242,234,.8) 38%, rgba(247,242,234,0) 70%); }
.hero-compact .hero-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; width: min(1200px, 100% - 40px); margin-inline: auto; }
.hero-compact .hero-title { font-size: clamp(30px, 4vw, 50px); margin-bottom: 8px; }
.hero-compact .hero-sub { max-width: 26em; margin: 0; }

.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 3; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(22,41,74,.18); background: rgba(255,253,249,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: transform .2s, background-color .2s; }
.hero-arrow:hover { background: #fff; transform: scale(1.06); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots { gap: 0; }
.hero-dots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::after { content: ''; width: 10px; height: 10px; border-radius: 6px; background: rgba(22,41,74,.25); transition: width .3s var(--ease), background-color .3s; }
.hero-dots button[aria-current="true"]::after { width: 28px; background: var(--accent); }
.hero-full .hero-ctrl { bottom: 12px; }

@media (max-width: 860px) {
  .hero-split .hero-slide { grid-template-columns: 1fr; padding: 16px 0 72px; gap: 18px; }
  .hero-split .hero-pic { order: -1; border-radius: 16px; }
  .hero-split .hero-body { text-align: left; }
  .hero-title::before { margin-bottom: 14px; }
  .hero-btns .btn { flex: 1 1 auto; }
  .hero-full .hero-body { position: static; color: var(--ink); text-shadow: none; padding: 18px 0 64px; }
  .hero-full .hero-title { color: var(--navy); }
  .hero-full .hero-ctrl { position: static; padding: 10px 0 14px; }
  .hero-compact .hero-pic::after { background: linear-gradient(180deg, rgba(247,242,234,.5), rgba(247,242,234,.92)); }
}
/* พื้นที่กดบนมือถืออย่างน้อย 44px */
.topbar a { min-height: 44px; }
.topbar .wrap { min-height: 44px; }
.card-act .btn { min-height: 44px !important; }
.contact-list a { min-height: 44px; display: inline-flex; align-items: center; }
.foot a { min-height: 44px; padding: 0; }
.contact-list small { margin-bottom: -6px; }

/* ---------- จุดเด่น / แถบความน่าเชื่อถือ ---------- */
.features { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; }
.feature { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature h3 { font-size: 19px; margin: 0 0 4px; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature-icon { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 30% 30%, #fff, #f1e6d2); border: 1px solid var(--gold-l); }
.feature-icon svg { width: 26px; height: 26px; }
.feature-no { display: block; font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: .08em; margin-bottom: 2px; }
.sec-trust { padding: 0 !important; background: var(--card); border-bottom: 1px solid var(--line); }
.features-trust { gap: 0; }
.features-trust .feature { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 22px 18px; align-items: center; }
.features-trust .feature + .feature { border-left: 1px solid var(--line); }
.features-trust h3 { font-size: 16px; font-weight: 600; margin: 0; color: var(--ink); }
.features-trust .feature-icon { width: 46px; height: 46px; }
@media (max-width: 1023px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-trust .feature:nth-child(3) { border-left: 0; }
  .features-trust .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .features:not(.features-trust) { grid-template-columns: 1fr; }
  .features-trust .feature { flex-direction: column; text-align: center; gap: 8px; padding: 16px 8px; }
  .features-trust h3 { font-size: 14px; }
}

/* ---------- เกี่ยวกับ (รูป + ข้อความแบบ editorial) ---------- */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about.pic-right .about-pic { order: 2; }
.about.no-pic { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; text-align: center; }
.about.no-pic .gold-line { margin-inline: auto; }
.about-pic img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-up); }
.about-text h2 { font-size: clamp(28px, 3.2vw, 42px); color: var(--navy); margin-bottom: 10px; }
.about-text p { color: var(--muted); }
.about-text .btn { margin-top: 10px; }
.sec-about + .sec-about { padding-top: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about.pic-right .about-pic { order: 0; } }

/* ---------- การ์ดสินค้า ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin-inline: auto; }
.cards.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin-inline: auto; }
@media (max-width: 1239px) { .cards.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card[hidden] { display: none; }
.card-pic { display: block; background: #fff; }
.card-pic img { width: 100%; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.card-body h3 { font-size: 18px; margin: 0; line-height: 1.45; }
.card-body h3 a { text-decoration: none; color: var(--navy); }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { margin: 0; font-size: 15px; color: var(--muted); }
.card-cat { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.card-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.card-price b { font-size: 22px; color: var(--navy); }
.card-price s, .pd-price s { color: var(--muted); font-size: 15px; }
.card-sold { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--muted); }
.card-badge { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-badge.static { position: static; background: #f1e6d2; color: var(--accent); }
.card-act { display: grid; gap: 8px; margin-top: 12px; }
.card-act .btn { min-height: 44px; font-size: 15px; }
.rows { display: grid; gap: 16px; }
.card-row { flex-direction: row; }
.card-row .card-pic { width: 180px; flex: none; }
.shop-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 15px; font-weight: 500; }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.sort select { min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); padding: 6px 12px; font-size: 16px; }
@media (max-width: 1023px) { .cards, .cards.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cards, .cards.cols-3, .cards.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 15px; }
  .card-body p { display: none; }
  .card-price b { font-size: 18px; }
  .card-act .btn { min-height: 42px; font-size: 14px; padding: 6px 10px; }
  .card-row { flex-direction: column; } .card-row .card-pic { width: auto; }
}

/* ---------- แกลเลอรีกิจกรรม (พื้นกรมท่า) ---------- */
.sec-navy { background: var(--navy); color: #efe7da; position: relative; overflow: hidden; }
.sec-navy::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(184,147,90,.18), transparent 60%); pointer-events: none; }
.on-dark h2 { color: #fff; }
.gal { position: relative; columns: var(--cols, 3); column-gap: 16px; }
.gal-item { break-inside: avoid; margin: 0 0 16px; }
.gal-item img, .gal-item video { width: 100%; border-radius: 14px; background: #0e1c33; }
.gal-item a { display: block; }
.gal-video video { max-height: 78vh; width: auto; max-width: 100%; margin-inline: auto; height: auto; }
.gal-item figcaption { padding: 10px 2px 4px; font-size: 15px; }
.gal-item figcaption b { display: block; color: #fff; }
.gal-item figcaption span { color: #c9bfae; }
@media (max-width: 1023px) { .gal { columns: 2; } }
@media (max-width: 479px) { .gal { columns: 1; } }
/* ใบรับรอง/มาตรฐาน: เอกสารแนวตั้ง พื้นขาวให้อ่านง่าย มือถือยังเรียง 2 ใบ */
.sec-docs .gal-item > a { background: #fff; padding: 6px; }
.sec-docs .gal-item img { border-radius: 10px; background: #fff; }
@media (max-width: 479px) { .sec-docs .gal { columns: 2; column-gap: 12px; } }

/* ---------- รีวิว ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.quote-pic { display: block; }
.quote-pic img { width: 100%; }
.quote-body { padding: 20px 22px 22px; }
.quote blockquote { margin: 8px 0 14px; font-size: 16px; color: var(--ink); }
.quote blockquote::before { content: '“'; color: var(--gold); font-weight: 700; margin-right: 2px; }
.quote blockquote::after { content: '”'; color: var(--gold); font-weight: 700; margin-left: 2px; }
.quote figcaption b { display: block; color: var(--navy); }
.quote figcaption span { font-size: 14px; color: var(--muted); }
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.sec-reviews .fine { text-align: center; }
@media (max-width: 1023px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; color: var(--navy); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3vw, 36px); max-width: 26em; margin: 0 auto 24px; }
.cta-dark { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; }
.cta-soft { background: var(--paper-2); }
.cta-soft h2 { color: var(--navy); }

/* ---------- ติดต่อ ---------- */
.sec-contact { background: var(--brown); color: #f3ece0; position: relative; overflow: hidden; }
.sec-contact::after { content: ''; position: absolute; right: -60px; bottom: -40px; width: 380px; height: 300px; background: url(/img/longevity-land-logo-wide-cream.webp) no-repeat center / contain; opacity: .07; pointer-events: none; }
.contact { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-note { font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold-l); margin-top: 4px; }
.contact-list small { display: block; font-size: 14px; color: #cdbfa9; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.hours { list-style: none; padding: 0; margin: 0 0 22px; font-size: 15px; max-width: 360px; }
.hours li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed rgba(243,236,224,.2); }
.contact-form { background: var(--card); color: var(--ink); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-up); }
.contact-map { margin-top: 32px; position: relative; z-index: 1; }
.map { width: 100%; height: 340px; border: 0; border-radius: 18px; }
.map-wrap { display: grid; gap: 14px; justify-items: start; }
.map-wrap .map-open { color: #fff; border-color: rgba(243, 236, 224, .55); }
.map-wrap .map-open:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.map-open svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- ฟอร์ม ---------- */
.lead, .checkout fieldset, .track-form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(87,71,58,.3);
  background: #fff; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,147,90,.25); }
textarea { resize: vertical; }
.msg { font-size: 15px; margin: 6px 0 0; min-height: 1em; }
.msg:empty { display: none; }
.msg.ok { color: #1f6b3a; } .msg.bad { color: #9a3b10; }
.has-err input, .has-err textarea { border-color: #b4530f; box-shadow: 0 0 0 3px rgba(180,83,15,.15); }

/* ---------- ข้อความอิสระ ---------- */
.rich { max-width: 760px; margin-inline: auto; }
.rich-wide { max-width: none; }
.rich h2 { color: var(--navy); font-size: clamp(24px, 3vw, 34px); }
.rich p { color: var(--muted); }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy); color: #d9d0c1; padding: 56px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 36px; }
.foot b { display: block; color: #fff; margin-bottom: 10px; font-size: 16px; }
.foot a { display: flex; align-items: center; gap: 8px; color: #d9d0c1; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot svg { width: 17px; height: 17px; color: var(--gold-l); }
.foot-brand img { width: 150px; margin-bottom: 14px; }
.foot-brand p { color: #b9ae9c; }
.foot-contact p { display: flex; gap: 8px; margin: 6px 0; }
.foot-contact p svg { margin-top: 5px; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); justify-content: center; padding: 0; }
.foot small { display: block; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; color: #a99f8f; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } .foot { padding-bottom: 96px; } }

/* ---------- ปุ่มลอยมือถือ (ไลน์ + โทร) ---------- */
.float-contact { display: none; }
@media (max-width: 767px) {
  .float-contact { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: 8px; }
  .float-contact a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 999px; text-decoration: none; font-weight: 600; color: #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
  .fl-line { background: #06c755; } .fl-call { background: var(--navy); }
  main { padding-bottom: 64px; }
  body.nav-open .float-contact { display: none; }
}

/* ---------- หน้าสินค้ารายชิ้น ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a, .pd-notes a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
.pd-notes a { color: var(--accent); }
.pd-notes li { align-items: center; }
.crumbs { margin-bottom: 8px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pd-main { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.pd-main img { width: 100%; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button { width: 78px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; }
.pd-thumbs button[aria-current="true"] { border-color: var(--accent); }
.pd-info h1 { font-size: clamp(26px, 3vw, 38px); color: var(--navy); }
.pd-short { color: var(--muted); font-size: 18px; }
.pd-price { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 10px 0 6px; }
.pd-price b { font-size: 34px; color: var(--navy); }
.pd-left { color: var(--accent); font-weight: 600; margin: 0; }
.pd-sku { font-size: 14px; color: var(--muted); }
.pd-opts { border: 0; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-opts legend { font-weight: 600; margin-bottom: 8px; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; font-weight: 500; }
.opt input:checked + span { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.opt.is-out span { opacity: .45; text-decoration: line-through; }
.pd-buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; margin: 22px 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(87,71,58,.3); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 44px; height: 52px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; font-size: 20px; color: var(--navy); }
.qty button:disabled { opacity: .3; }
.qty input { width: 48px; border: 0; text-align: center; padding: 0; min-height: 0; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { height: 40px; width: 38px; }
.qty-sm output { min-width: 28px; text-align: center; font-weight: 600; }
.pd-notes { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.pd-notes li { display: flex; gap: 10px; align-items: flex-start; }
.pd-notes svg { color: var(--accent); margin-top: 4px; }
.pd-desc { max-width: 820px; margin: clamp(40px, 6vw, 72px) auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 44px); }
.pd-desc h2, .pd-related h2 { color: var(--navy); font-size: clamp(22px, 2.6vw, 30px); }
.pd-related { margin-top: clamp(48px, 7vw, 88px); }
@media (max-width: 860px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-buy { grid-template-columns: auto 1fr; }
  .pd-buy [data-buy-now] { grid-column: 1 / -1; }
}

/* ---------- ตะกร้า / checkout / คำสั่งซื้อ ---------- */
.shop-page { padding-top: clamp(32px, 5vw, 56px); }
.cart-grid, .order-grid, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.summary { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.summary h2 { font-size: 20px; color: var(--navy); margin: 0; }
.summary[hidden] { display: none; }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.line-pic img { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; background: #fff; }
.line-info { display: grid; gap: 2px; }
.line-info a { text-decoration: none; color: var(--navy); }
.line-info small, .line-price { color: var(--muted); font-size: 14px; }
.line-err { color: #9a3b10; font-size: 14px; font-weight: 600; }
.line-sum { min-width: 90px; text-align: right; }
.line-del { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.empty { text-align: center; padding: 48px 20px; background: var(--card); border-radius: 20px; border: 1px dashed var(--line); }
.totals { width: 100%; border-collapse: collapse; font-size: 16px; }
.totals th { text-align: left; font-weight: 400; color: var(--muted); padding: 6px 0; }
.totals td { text-align: right; padding: 6px 0; }
.totals .grand th, .totals .grand td { font-weight: 700; color: var(--navy); font-size: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.free-hint { background: #f1e6d2; color: var(--brown); border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: 0; }
.free-hint[hidden] { display: none; }
.o-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.o-items li { display: flex; justify-content: space-between; gap: 12px; }
.o-items small { color: var(--muted); margin-left: 4px; }
.checkout fieldset { border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 22px; margin: 0 0 20px; }
.checkout legend { font-weight: 700; color: var(--navy); font-size: 19px; padding: 0 6px; }
.f2 { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 12px; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { margin: 0; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt > span { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 400; }
.pay-opt svg { grid-row: span 2; width: 28px; height: 28px; color: var(--accent); }
.pay-opt small { color: var(--muted); }
.pay-opt input:checked + span { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.pay-opt input:focus-visible + span { outline: 3px solid var(--gold); }
.pay-opt.is-off { opacity: .5; pointer-events: none; }
.coupon-row { display: flex; gap: 8px; }
.steps-mini { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.steps-mini li::after { content: '›'; margin-left: 8px; }
.steps-mini li:last-child::after { content: ''; }
.steps-mini .on { color: var(--navy); font-weight: 700; }
.steps-mini .done { color: var(--accent); }
.o-no { font-size: 18px; margin: 6px 0; }
.o-no b { color: var(--navy); font-size: 22px; letter-spacing: .02em; }
.card-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.tl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; text-align: center; font-size: 14px; color: var(--muted); }
.tl li { display: grid; justify-items: center; gap: 6px; position: relative; }
.tl li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.tl li:first-child::before { display: none; }
.tl li.done::before, .tl li.now::before { background: var(--accent); }
.tl-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: #fff; }
.tl li.done .tl-dot, .tl li.now .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl li.now { color: var(--navy); font-weight: 700; }
.tl-dot svg { width: 16px; height: 16px; stroke-width: 2.4; }
.o-note { margin: 16px 0 0; text-align: center; font-weight: 600; color: var(--navy); }
.o-track { display: flex; gap: 8px; justify-content: center; margin: 14px 0 0; flex-wrap: wrap; }
.o-status { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.o-addr { border-top: 1px solid var(--line); padding-top: 12px; font-size: 15px; }
.o-addr p { margin: 4px 0 0; color: var(--muted); }
.pay-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.pay-amount { text-align: center; margin: 0; }
.pay-amount small { display: block; color: var(--muted); }
.pay-amount b { font-size: clamp(34px, 5vw, 46px); color: var(--navy); }
.qr-wrap { display: grid; justify-items: center; text-align: center; gap: 8px; }
.qr { width: 240px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.bank { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 16px; border-radius: 14px; background: #fbf7f0; border: 1px solid var(--line); }
.bank-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bank-no { font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: .04em; grid-column: 1; }
.bank-holder { grid-column: 1; color: var(--muted); font-size: 15px; }
.bank .btn { grid-column: 2; grid-row: 1 / span 3; }
.slip { display: grid; gap: 12px; }
.slip-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border: 2px dashed rgba(138,100,49,.45); border-radius: 16px; cursor: pointer; background: #fffaf2; text-align: center; margin: 0; }
.slip-drop svg { width: 30px; height: 30px; color: var(--accent); }
.slip-drop input { font-size: 15px; min-height: 0; border: 0; padding: 4px; background: none; max-width: 260px; }
.slip-preview { max-height: 320px; width: auto; margin-inline: auto; border-radius: 12px; border: 1px solid var(--line); }
.track-form .btn { margin-top: 6px; }
@media (max-width: 960px) {
  .cart-grid, .order-grid, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; }
  .line-pic img { width: 72px; height: 72px; }
  .line .qty { grid-column: 2; justify-self: start; }
  .line-sum { grid-column: 3; grid-row: 1; }
  .line-del { grid-column: 3; grid-row: 2; }
  .f2 { grid-template-columns: 1fr 1fr; } .f2 .f:first-child { grid-column: 1 / -1; }
  .tl { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .tl li:nth-child(4)::before { display: none; }
  .bank { grid-template-columns: 1fr; }
  .bank .btn { grid-column: 1; grid-row: auto; }
  .bank-no { font-size: 22px; }
}

/* ---------- 404 ---------- */
.nf { text-align: center; }
.nf-code { font-size: clamp(64px, 12vw, 120px); font-weight: 700; color: var(--gold-l); line-height: 1; margin-bottom: 8px; }
.nf h1 { color: var(--navy); }
.nf-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- แจ้งเตือนเล็ก + ภาพขยาย ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-up); transition: opacity .25s, transform .25s var(--ease); font-size: 15px; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold-l); font-weight: 600; margin-left: 6px; }
dialog.light { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
dialog.light::backdrop { background: rgba(10, 18, 33, .82); }
dialog.light img { max-height: 88vh; width: auto; margin: auto; border-radius: 12px; }
dialog.light button { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; cursor: pointer; }

/* ---------- เนื้อหาโผล่ตอนเลื่อนถึง (ครั้งเดียว ใช้ transform/opacity ไม่ดันตำแหน่งหน้า) ----------
   สคริปต์ใส่ .pre ให้ทุก [data-reveal] → ใส่ .in ตอนเลื่อนถึง → เล่นจบแล้วถอดทั้งสองป้ายออก */
.pre:not(.in) { opacity: 0; transform: translateY(34px); }
.pre.in {
  opacity: 1; transform: none; filter: none; clip-path: none;
  transition: opacity .8s var(--ease), transform 1s var(--spring), filter .8s var(--ease), clip-path 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
:root { --spring: cubic-bezier(.22, 1.2, .36, 1); --pop: cubic-bezier(.34, 1.56, .64, 1); }
/* ท่าเฉพาะแต่ละชนิด */
.card.pre:not(.in) { transform: translateY(64px); filter: blur(8px); }
.feature.pre:not(.in) { transform: translateY(44px); filter: blur(4px); }
.feature.pre:not(.in) .feature-icon { transform: scale(0) rotate(-140deg); }
.feature.pre.in .feature-icon { transform: none; transition: transform .9s var(--pop); transition-delay: calc(var(--d, 0) * 90ms + .25s); }
.quote.pre:not(.in) { transform: translateY(80px); filter: blur(6px); }
.gal-item.pre:not(.in) { transform: translateY(40px) scale(.86); filter: blur(6px); }
/* รูปนิ่งทุกหน้า (ลูกค้าสั่ง รอบแก้ครั้งที่ 1) — รูปประกอบไม่มีท่าเปิด ขึ้นมาพร้อมหน้าเลย */
.about-pic.pre { opacity: 1; transform: none; filter: none; clip-path: none; }
.about-text.pre:not(.in) { transform: translateY(50px); filter: blur(6px); }
.sec-head.pre { opacity: 1; transform: none; }
.sec-head.pre:not(.in) h2 { clip-path: inset(-30% 50% -30% 50%); transform: translateY(18px); }
.sec-head.pre.in h2 { clip-path: inset(-30% -6% -30% -6%); transform: none; transition: clip-path 1.1s var(--ease), transform 1.1s var(--ease); }
.sec-head.pre .sec-rule { transform-origin: right; }
.sec-head.pre:not(.in) .sec-rule { transform: scaleX(0); }
.sec-head.pre .sec-rule:last-child { transform-origin: left; }
.sec-head.pre.in .sec-rule { transform: scaleX(1); transition: transform 1.2s var(--ease) .35s; }
.faq details.pre:not(.in) { transform: translateX(-40px); }
.cta-band .wrap.pre:not(.in) { transform: translateY(40px); filter: blur(8px); }
.contact-info.pre:not(.in), .contact-form.pre:not(.in) { transform: translateY(50px); filter: blur(5px); }
.foot-grid > .pre:not(.in) { transform: translateY(30px); }
.page-head h1.pre:not(.in) { transform: translateY(24px); clip-path: inset(-30% 100% -30% -6%); }
.page-head h1.pre.in { clip-path: inset(-30% -6% -30% -6%); }
.theme-party .feature.pre.in { transform: rotate(-.6deg); }
.theme-party .feature.pre.in:nth-child(even) { transform: rotate(.6deg); }

/* ---------- แถบทองบอกระยะเลื่อน (อยู่นอกหัวเว็บ ไม่กระทบเมนูมือถือ) ---------- */
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 90; pointer-events: none;
  background: linear-gradient(90deg, var(--gold-l), var(--gold), var(--accent)); transform: scaleX(0); transform-origin: left; }

/* ---------- แบนเนอร์: รูปนิ่ง เต็มภาพ ไม่ซูม ไม่ครอป (ลูกค้าสั่ง รอบแก้ครั้งที่ 1) + หัวข้อกวาดเปิด ---------- */
.hero-pic { overflow: hidden; display: block; }
.hero-pic picture { display: block; }
.hero-link { cursor: pointer; }
.hero-link:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.fx .hero-slide .hero-title { clip-path: inset(-30% 100% -30% -6%); transition: opacity .7s var(--ease), transform .7s var(--ease), clip-path .6s var(--ease); }
.fx .hero-slide.is-on .hero-title { clip-path: inset(-30% -6% -30% -6%);
  transition: opacity .7s var(--ease), transform .9s var(--spring), clip-path 1.2s var(--ease) .1s; }
.fx .hero-slide.is-on .hero-title::before { animation: grow-x 1s var(--ease) .5s both; transform-origin: left; }
.fx .hero-slide.is-on .hero-btns .btn { animation: pop-in .8s var(--pop) both; }
.fx .hero-slide.is-on .hero-btns .btn:nth-child(1) { animation-delay: .45s; }
.fx .hero-slide.is-on .hero-btns .btn:nth-child(2) { animation-delay: .55s; }
@media (min-width: 861px) {
  .fx .hero-body { translate: 0 calc(var(--p, 0) * -70px); opacity: calc(1 - var(--p, 0) * 1.3); }
}
.hero.is-auto .hero-dots button[aria-current="true"]::after {
  background: linear-gradient(var(--accent), var(--accent)) left / 0% 100% no-repeat, rgba(22, 41, 74, .25);
  animation: dot-fill var(--dur, 6s) linear forwards;
}
.hero-split .hero-pic { transition: box-shadow .4s var(--ease); }

/* ---------- ปุ่ม: แสงวิ่งผ่านปุ่มทอง + ปุ่มดูดตามเมาส์ ---------- */
.fx .btn-gold, .fx .btn-line { position: relative; overflow: hidden; isolation: isolate; }
.fx .btn-gold::after, .fx .btn-line::after {
  content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 5s var(--ease) infinite;
}
.fx .btn-gold:hover::after { animation-duration: 1.2s; }
.btn.is-mag { transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .15s ease-out, box-shadow .2s; }
.fx .btn:active { transform: scale(.95); }

/* ---------- การ์ด: เอียงตามเมาส์ + แสงตามเมาส์ + รูปซูม + แสงวาบบนรูป ---------- */
.card-pic { position: relative; overflow: hidden; }
.card-pic img { transition: transform .7s var(--ease); }
.card:hover .card-pic img { transform: scale(1.07); }
.card-pic::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 62%);
  transform: translateX(-130%);
}
.card:hover .card-pic::after { transform: translateX(130%); transition: transform .9s var(--ease); }
.card-badge { z-index: 2; }
.fx .card-badge { animation: badge-pulse 2.4s ease-in-out infinite; }
.fx .card::before, .fx .quote::before, .fx .sec .features:not(.features-trust) .feature::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(184, 147, 90, .22), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.quote, .feature { position: relative; }
.fx .is-tilt::before { opacity: 1 !important; }
.fx .card.is-tilt, .fx .quote.is-tilt, .fx .feature.is-tilt {
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px);
  box-shadow: var(--shadow-up); transition: transform .12s ease-out, box-shadow .25s;
}
.quote { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.quote-pic { overflow: hidden; }
.quote-pic img { transition: transform .7s var(--ease); }
.quote:hover .quote-pic img { transform: scale(1.06); }
.fx .quote .stars svg { animation: twinkle 3s ease-in-out infinite; }
.fx .quote .stars svg:nth-child(2) { animation-delay: .15s; }
.fx .quote .stars svg:nth-child(3) { animation-delay: .3s; }
.fx .quote .stars svg:nth-child(4) { animation-delay: .45s; }
.fx .quote .stars svg:nth-child(5) { animation-delay: .6s; }

/* ---------- จุดเด่น: ไอคอนลอย ชี้แล้วหมุน ---------- */
.feature { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.feature-icon { position: relative; transition: transform .6s var(--pop); }
.feature:hover .feature-icon { transform: rotate(360deg) scale(1.1); }
.fx .feature-icon::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: ring 3.6s ease-out infinite; animation-delay: calc(var(--d, 0) * -.7s); }
.fx .features-trust .feature-icon svg { animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -.5s); }

/* ---------- แกลเลอรี/พื้นกรมท่า: ประกายทองลอย + รูปซูมตอนชี้ ---------- */
.gal-item > a { overflow: hidden; border-radius: 14px; }
.gal-item > a img { transition: transform .8s var(--ease), filter .5s; }
.gal-item > a:hover img { transform: scale(1.06); filter: brightness(1.08); }
.gal-video video { transition: box-shadow .4s; }
.gal-video video:hover { box-shadow: 0 0 0 2px var(--gold), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.fx .sec-navy::after, .fx .sec-contact::before {
  content: ''; position: absolute; inset: -40% 0 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 10% 20%, var(--gold-l), transparent 60%), radial-gradient(1.5px 1.5px at 30% 70%, #fff, transparent 60%),
    radial-gradient(2.5px 2.5px at 55% 35%, var(--gold-l), transparent 60%), radial-gradient(1.5px 1.5px at 75% 80%, #fff, transparent 60%),
    radial-gradient(2px 2px at 90% 15%, var(--gold-l), transparent 60%), radial-gradient(1.5px 1.5px at 45% 90%, var(--gold-l), transparent 60%),
    radial-gradient(2px 2px at 20% 50%, #fff, transparent 60%), radial-gradient(2.5px 2.5px at 65% 60%, var(--gold-l), transparent 60%);
  background-size: 420px 420px; animation: drift 26s linear infinite;
}
.fx .sec-navy::before { animation: glow-move 14s ease-in-out infinite alternate; }
.sec-navy > .wrap, .sec-contact > .wrap { position: relative; z-index: 1; }

/* ---------- แถบชวนติดต่อ: พื้นไล่สีเคลื่อนไหว + ปุ่มชีพจร ---------- */
/* พื้นไล่สีเป็นเลเยอร์กว้าง 3 เท่าเลื่อนไปมา (ไม่ใช้ background-size ยืด) */
.fx .cta-dark::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 300%; pointer-events: none;
  background: linear-gradient(100deg, var(--navy), var(--navy-2), #2c4f86, var(--navy-2), var(--navy)); animation: grad-pan 12s ease-in-out infinite alternate; }
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band { position: relative; overflow: hidden; }
.fx .cta-band .btn { animation: pulse-ring 2.6s ease-out infinite; }

/* ---------- คำถามที่พบบ่อย: คำตอบไหลลงตอนเปิด ---------- */
.fx .faq details[open] .faq-a { animation: drop-in .45s var(--ease); }
.faq details { transition: box-shadow .3s, border-color .3s; }
.faq details:hover { border-color: var(--gold-l); box-shadow: var(--shadow); }
.faq details[open] { border-color: var(--gold); }

/* ---------- เมนู / ตะกร้า / ปุ่มลอย / แจ้งเตือน ---------- */
@media (max-width: 1239px) {
  .fx body.nav-open .menu a { animation: menu-in .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 45ms + .05s); }
}
.logo-img { transition: transform .4s var(--pop); }
.logo:hover .logo-img { transform: scale(1.04) rotate(-1deg); }
.cart-btn.bump { animation: bump .6s var(--pop); }
.cart-btn.bump .cart-n { animation: bump .6s var(--pop) .05s; }
.fly { position: fixed; z-index: 95; pointer-events: none; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: var(--shadow-up); }
.toast { transition: opacity .3s, transform .5s var(--pop); }
@media (max-width: 767px) {
  .fx .float-contact a { position: relative; animation: rise-in .7s var(--pop) both .6s; }
  .fx .float-contact a + a { animation-delay: .72s; }
  .fx .fl-line::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(6, 199, 85, .55); animation: pulse-line 2.4s ease-out infinite 1.4s; pointer-events: none; }
}
.fx .nf-code { animation: float-y 4s ease-in-out infinite; }

/* ---------- เปลี่ยนหน้าแบบจางนุ่ม (เบราว์เซอร์ที่รองรับ) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
}

/* ---------- หน้า Next Day: ลูกเล่นปาร์ตี้ — ฟองโซดา/คอนเฟตตีลอย หัวข้อมีแถบเหลืองวาด ---------- */
.fx .theme-party .sec-about::after {
  content: ''; position: absolute; inset: 0 0 -100% 0; pointer-events: none; z-index: 2;
  background-image:
    radial-gradient(circle at 8% 90%, rgba(255, 255, 255, .7) 0 5px, transparent 6px),
    radial-gradient(circle at 22% 70%, rgba(255, 216, 77, .9) 0 7px, transparent 8px),
    radial-gradient(circle at 40% 95%, rgba(18, 62, 168, .45) 0 4px, transparent 5px),
    radial-gradient(circle at 63% 80%, rgba(255, 255, 255, .8) 0 6px, transparent 7px),
    radial-gradient(circle at 80% 92%, rgba(255, 210, 63, .9) 0 5px, transparent 6px),
    radial-gradient(circle at 93% 75%, rgba(18, 62, 168, .4) 0 6px, transparent 7px);
  background-size: 100% 50%; animation: bubbles 7s ease-in infinite;
}
.theme-party .sec-about { position: relative; overflow: hidden; }
.fx .theme-party .sec-about::after { animation-duration: 9s; opacity: .7; }
.theme-party .sec-head.pre h2::after { transform-origin: left; }
.theme-party .sec-head.pre:not(.in) h2::after { transform: scaleX(0); }
.theme-party .sec-head.pre.in h2::after { transform: scaleX(1); transition: transform .8s var(--spring) .7s; }
.theme-party .feature:hover { transform: rotate(-2deg) translateY(-6px) scale(1.02); }
.theme-party .feature:nth-child(even):hover { transform: rotate(2deg) translateY(-6px) scale(1.02); }
.fx .theme-party .feature-icon { animation: wiggle 2.8s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -.4s); }
.theme-party .card:hover { transform: translateY(-6px) rotate(-1deg); }
.theme-party .about-pic { position: relative; z-index: 3; }

/* ---------- ท่าที่ใช้ซ้ำ ---------- */
@keyframes kenburns { from { transform: scale(1.1); } to { transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes dot-fill { to { background-size: 100% 100%; } }
@keyframes shine { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes badge-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes twinkle { 0%, 70%, 100% { transform: scale(1); filter: none; } 80% { transform: scale(1.3) rotate(12deg); filter: drop-shadow(0 0 4px rgba(245, 184, 0, .7)); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes drift { from { background-position: 0 0; } to { background-position: 420px -420px; } }
@keyframes glow-move { from { transform: translate(0, 0); } to { transform: translate(-30%, 20%); } }
@keyframes grad-pan { from { transform: translateX(0); } to { transform: translateX(-66.66%); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(227, 207, 166, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(227, 207, 166, 0); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 65% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes pulse-line { 0% { box-shadow: 0 0 0 0 rgba(6, 199, 85, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(6, 199, 85, 0); } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes bubbles { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: .9; } to { transform: translateY(-50%); opacity: 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.05); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }
@keyframes shadow-bounce { 0%, 100% { box-shadow: 14px 14px 0 #ffd84d, var(--shadow-up); } 50% { box-shadow: 22px 22px 0 #ffd84d, var(--shadow-up); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .pre { opacity: 1; transform: none; filter: none; clip-path: none; }
}

/* ============ หน้า Next Day — โทนปาร์ตี้ สนุก สดใส ============ */
.theme-party { --paper: #fff9e6; --paper-2: #ffefb3; --card: #fff; --navy: #123ea8; --navy-2: #1c56d6; --accent: #123ea8; --gold: #f5b800; --gold-l: #ffd84d; --line: rgba(18, 62, 168, .15); }
.theme-party .btn-gold { background: linear-gradient(180deg, #ffd23f, #f5b800); color: #102a6b; }
.theme-party .hero { background: #ffcf2e; }
.theme-party .sec-head h2 { font-weight: 700; font-size: clamp(30px, 4vw, 50px); }
.theme-party .sec-head h2::after { content: ''; display: block; height: 10px; margin: -12px -6px 0; background: rgba(255, 210, 63, .7); border-radius: 6px; position: relative; z-index: -1; }
.theme-party .sec-head { isolation: isolate; }
.theme-party .feature { border-radius: 26px; border: 2px solid #ffd84d; transform: rotate(-.6deg); }
.theme-party .feature:nth-child(even) { transform: rotate(.6deg); }
.theme-party .feature-icon { background: #ffd84d; border-color: #f5b800; color: #123ea8; }
.theme-party .feature-no { color: #123ea8; }
.theme-party .sec-about { background: linear-gradient(180deg, #fff9e6, #ffefb3); }
.theme-party .about-pic img { border-radius: 30px; box-shadow: 14px 14px 0 #ffd84d, var(--shadow-up); }
.theme-party .gold-line { background: #f5b800; height: 4px; border-radius: 2px; }
.theme-party .sec-navy { background: #123ea8; }
.theme-party .sec-contact { background: #102a6b; }
.theme-party .cta-dark { background: linear-gradient(120deg, #123ea8, #2a6cf0); }
.theme-party .card { border-radius: 24px; }
.theme-party .card-badge { background: #f5b800; color: #102a6b; }
.theme-party .quote { border-radius: 24px; border: 2px solid #ffe27a; }
.theme-party .stars { color: #f5b800; }
.theme-party .menu a::after { background: #f5b800; }
.theme-party-lite { --gold: #f5b800; }

/* ================= รอบแก้ครั้งที่ 1 ================= */
/* แถบหัวหน้ารอง (สินค้า รีวิว ฯลฯ) — ตัวหนังสืออย่างเดียว ไม่มีรูป */
.hero-text { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hero-text .hero-slide { opacity: 1; visibility: visible; }
.hero-text .hero-body { position: static; width: min(1200px, 100% - 40px); margin-inline: auto; padding: clamp(36px, 5vw, 64px) 0; }
.hero-text .hero-title { margin-bottom: 8px; }

/* ตารางส่วนประกอบ (พิมพ์ในหลังบ้านเป็นบรรทัด "ชื่อ | ปริมาณ") */
.tbl-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--navy); color: #fff; font-weight: 600; }
.tbl td:last-child, .tbl th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl tbody tr:nth-child(even) { background: rgba(184, 147, 90, .07); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.theme-party .tbl th { background: #123ea8; }

/* ข้อความเป็นข้อๆ ในรายละเอียดสินค้า (บรรทัด "- ") */
.p-sub { margin: 22px 0 8px; color: var(--navy); font-weight: 700; font-size: 1.08em; }
.p-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.p-list li { position: relative; padding: 10px 14px 10px 34px; background: rgba(184, 147, 90, .07); border-radius: 12px; color: var(--ink); line-height: 1.65; }
.p-list li::before { content: ''; position: absolute; left: 14px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.p-list b { color: var(--navy); }

/* ข้อความอิสระแบบกว้าง = คอลัมน์ (Company Mission) */
/* จัดคอลัมน์เป็นกลุ่มกึ่งกลางหน้า (เดิม grid เหลือช่องว่างคอลัมน์ที่ 4 ทางขวา — รอบแก้ครั้งที่ 1) */
.rich-cols { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 3.5vw, 48px); max-width: 1080px; margin-inline: auto; text-align: center; }
.rich-cols > h2 { flex: 1 1 100%; margin: 0; }
.rich-cols > div { display: contents; }
.rich-cols p { flex: 1 1 260px; max-width: 340px; margin: 0; color: var(--muted); line-height: 1.75; }
.rich-cols p::first-line { color: var(--navy); font-weight: 700; }

/* แถบชวนสมัครสมาชิก Circle Prestige — พื้นขาว (ลูกค้าสั่ง รอบแก้ครั้งที่ 1) */
.sec-member { background: #fff; }
.member-band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.member-brand { display: grid; justify-items: center; gap: 14px; text-align: center; }
.member-logo { width: min(300px, 80%); background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); }
.member-logo img { width: 100%; mix-blend-mode: multiply; }
.member-brand h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); margin: 0; }
.member-box { background: #8a6a37; color: #fff; border-radius: 18px; padding: clamp(22px, 3vw, 36px); text-align: center; box-shadow: var(--shadow-up); }
.member-box p { color: #fff; margin: 0 0 10px; line-height: 1.75; }
.member-box p:last-child { margin-bottom: 0; }
.member-box p:first-child { font-weight: 700; }
@media (max-width: 860px) { .member-band { grid-template-columns: 1fr; } }
