/* ฟอนต์โฮสต์เอง (เฉพาะชุดอักษรไทย + ละติน) — ไม่ต้องรอเซิร์ฟเวอร์ Google */
@font-face { font-family: 'Chonburi'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/chonburi-400-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Chonburi'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/chonburi-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-thai-looped-400-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-thai-looped-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-thai-looped-500-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-thai-looped-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/plex-thai-looped-600-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/plex-thai-looped-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/plex-thai-looped-700-thai.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai Looped'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/plex-thai-looped-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* โอมากาเสะล้านนา — แนว "เครื่องเขินล้านนา": รักดำ · รักแดง · ทองคำเปลว · ขาว
   จุดเด่นเดียวของหน้า: hero รักดำ + ลายประจำยามทอง + ซุ้มโค้งจากฉลาก ส่วนอื่นเรียบ ใช้แดงเฉพาะปุ่มซื้อและราคา */
:root {
  /* CI จากฉลากขวด: ครีม · แดงอิฐ · ทอง · ดำ */
  --lacquer: #1f1a16; --lacquer-2: #2a221d; --lacquer-3: #4a2015;
  --red: #9b2c27; --red-2: #7e211d; --red-soft: #f3dcd8;
  --gold: #c9a14b; --gold-2: #e6cf8a; --gold-line: rgba(201, 161, 75, .45);
  --white: #fff; --cream: #f5ecd9; --cream-2: #ede1c6; --paper: #fbf7ee; --mist: var(--cream);
  --line: #e3d7bf; --ink: #1f1a16; --muted: #6f655b; --brown: #4a2015;
  --yellow: #f2c94c;
  --font-display: 'Chonburi', 'IBM Plex Sans Thai Looped', serif;
  --font-body: 'IBM Plex Sans Thai Looped', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  --radius: 16px; --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: block; font-size: .92rem; font-weight: 600; color: var(--red); margin-bottom: 8px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.gold-rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 20px; }
.center .gold-rule { margin-left: auto; margin-right: auto; }

/* พื้นรักดำ: ใช้กับ hero, หัวเพจ, รีวิว, ท้ายเว็บ */
.dark { background: var(--lacquer); color: #f3ede6; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark .muted { color: rgba(243, 237, 230, .68); }
.dark .eyebrow { color: var(--gold-2); }

/* ---------- ปุ่ม: origin fill (วงกลมสีขยายจากจุดที่เมาส์เข้า/กด) ---------- */
.btn { --ox: 50%; --oy: 50%; --cover: 0px; --face: var(--red); --fill: var(--lacquer); --fg: #fff; --fill-fg: #fff; --edge: transparent;
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; cursor: pointer; border: 1.5px solid var(--edge); background: var(--face); color: var(--fg); -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; vertical-align: middle; transition: color .3s cubic-bezier(.16, 1, .3, 1), transform .15s ease; }
.btn::before { content: ''; position: absolute; z-index: -1; left: var(--ox); top: var(--oy); width: var(--cover); height: var(--cover); border-radius: 50%; background: var(--fill); transform: translate(-50%, -50%) scale(0); transition: transform .5s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.btn.is-fill::before { transform: translate(-50%, -50%) scale(1); }
.btn.is-fill { color: var(--fill-fg); }
.btn.is-pressed { transform: scale(.985); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary { --face: var(--red); --fill: var(--lacquer); --fg: #fff; --fill-fg: #fff; }
.btn-outline { --face: transparent; --fill: var(--lacquer); --fg: var(--ink); --fill-fg: #fff; --edge: var(--ink); }
.btn-gold { --face: var(--gold); --fill: var(--lacquer); --fg: var(--lacquer); --fill-fg: var(--gold-2); }
.btn-line { --face: #06c755; --fill: #037f36; --fg: #fff; --fill-fg: #fff; }
.dark .btn-primary, .cta .btn-primary { --fill: var(--gold); --fill-fg: var(--lacquer); }
.dark .btn-outline, .cta .btn-outline { --edge: rgba(255, 255, 255, .55); --fg: #fff; --fill: #fff; --fill-fg: var(--lacquer); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 16px 34px; font-size: 1.06rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn::before { transition: none; } }

/* ---------- แถบประกาศ + header รักดำ ---------- */
.announce { background: var(--red); color: #fff; text-align: center; font-size: .9rem; padding: 7px 16px; font-weight: 500; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(26, 18, 16, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gold-line); color: #f3ede6; }
.header .container { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 46px; border-radius: 21px 21px 5px 5px; background: var(--lacquer-2); border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold-2); font-family: var(--font-display); font-size: 1.15rem; box-shadow: inset 0 0 0 3px var(--lacquer-2), inset 0 0 0 4px var(--gold-line); }
.brand-text { line-height: 1.15; }
.brand-text b { display: block; white-space: nowrap; font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; color: #fff; }
.brand-text small { font-size: .66rem; letter-spacing: .24em; color: var(--gold); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { position: relative; white-space: nowrap; padding: 8px 11px; font-weight: 500; font-size: .94rem; color: rgba(243, 237, 230, .78); transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; }
.nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-line); background: transparent; cursor: pointer; color: #f3ede6; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; display: none; place-items: center; border: 2px solid var(--lacquer); }
.cart-count.show { display: grid; }
.burger { display: none; }
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(26, 18, 16, .6); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--lacquer); color: #f3ede6; padding: 24px; display: flex; flex-direction: column; gap: 4px; overflow: auto; border-left: 1px solid var(--gold-line); }
.drawer-panel a { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.drawer-panel a:not(.btn):hover { background: var(--lacquer-2); color: var(--gold-2); }
.drawer-panel .btn { margin-top: 8px; }

/* ---------- Hero: รักดำ + ลายประจำยาม + ซุ้มโค้ง ---------- */
.hero { position: relative; overflow: hidden; background: var(--lacquer); color: #f3ede6; }
.hero-pattern { position: absolute; inset: 0 0 0 42%; color: var(--gold); opacity: .16; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.hero-pattern svg { width: 100%; height: 100%; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero-title { margin: 0 0 20px; color: #fff; }
.ht-1 { display: block; font-size: clamp(3rem, 7.4vw, 5.8rem); line-height: 1.12; }
.ht-2 { display: block; font-family: var(--font-body); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4; color: rgba(243, 237, 230, .86); margin-top: 6px; }
.hero .lead { font-size: 1.12rem; color: rgba(243, 237, 230, .7); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-facts { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 0; border-top: 1px solid var(--gold-line); }
.hero-facts li { padding: 0 18px; font-size: .95rem; color: rgba(243, 237, 230, .82); border-left: 1px solid var(--gold-line); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--gold-2); line-height: 1.3; }
.hero-art { position: relative; justify-self: center; width: min(440px, 100%); }
.arch { position: relative; aspect-ratio: 4/5; border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; overflow: hidden; background: #fff; }
.arch::before, .arch::after { content: ''; position: absolute; z-index: 2; pointer-events: none; border-radius: inherit; }
.arch::before { inset: 10px; border: 1.5px solid var(--gold); border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px; }
.arch::after { inset: 17px; border: 1px solid var(--gold-line); border-radius: 50% 50% 9px 9px / 40% 40% 9px 9px; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero .arch { box-shadow: 0 0 0 1px var(--gold-line), 0 30px 80px rgba(0, 0, 0, .55); }
.hero-seal { position: absolute; z-index: 3; right: -18px; top: 16%; width: 124px; height: 124px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-content: center; text-align: center; transform: rotate(-8deg); box-shadow: 0 0 0 4px var(--lacquer), 0 0 0 5px var(--gold), 0 16px 40px rgba(0, 0, 0, .45); line-height: 1.2; }
.hero-seal b { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; }
.hero-seal small { font-size: .74rem; opacity: .92; padding: 0 12px; }
/* จังหวะเดียวของหน้า: ซุ้มโค้งค่อยๆ เปิดจากล่างขึ้นบน */
@media (prefers-reduced-motion: no-preference) {
  .hero .arch { animation: arch-open 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-seal { animation: seal-in .6s .8s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes arch-open { from { clip-path: inset(100% 0 0 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
  @keyframes seal-in { from { opacity: 0; transform: rotate(-30deg) scale(.6); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
}

/* ---------- แถบความมั่นใจ ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: flex-start; gap: 12px; padding: 22px 18px; font-size: .9rem; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: 2px; }
.trust-item b { display: block; font-size: .98rem; }
.trust-item span { color: var(--muted); font-size: .85rem; }

/* ---------- การ์ดทั่วไป ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: var(--gold); }
.card-img { aspect-ratio: 4/5; background: var(--mist); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
/* ปกคลิป TikTok เป็นภาพแนวตั้ง: เล็งช่วงบน (หน้าคน + สินค้าในมือ) แทนกึ่งกลาง */
.card-img img[src*="/img/reviews/"] { object-position: center 30%; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.badge.gold { background: var(--gold); color: var(--lacquer); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 1.08rem; margin-bottom: 6px; line-height: 1.45; }
.price { font-weight: 700; color: var(--red); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-weight: 400; font-size: .88rem; margin-left: 6px; }

/* ---------- ชุดราคา (bundle): ชุดคุ้มสุดเป็นการ์ดรักดำขอบทอง ---------- */
.bundle { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px 20px; text-align: center; display: flex; flex-direction: column; transition: border-color .2s; }
.bundle:hover { border-color: var(--gold); }
.bundle .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.bundle .tag.gold { background: var(--gold); color: var(--lacquer); }
.bundle .tag.flash { background: var(--yellow); color: var(--red-2); }
.bundle img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 999px 999px 10px 10px; background: var(--mist); margin-bottom: 14px; }
.bundle h3 { font-size: 1.12rem; margin-bottom: 0; }
.bundle .avg { font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.bundle .price { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 4px 0 6px; }
.bundle .price s { font-family: var(--font-body); }
.bundle .btn { margin-top: auto; width: 100%; }
.bundle.best { background: var(--lacquer); color: #f3ede6; border: 1.5px solid var(--gold); }
.bundle.best .avg, .bundle.best .sold, .bundle.best .price s { color: rgba(243, 237, 230, .65); }
.bundle.best .price { color: var(--gold-2); }
.bundle.best img { background: #fff; }
.bundle.best .save { background: rgba(201, 162, 77, .18); color: var(--gold-2); }
.bundle.best .btn-primary { --fill: var(--gold); --fill-fg: var(--lacquer); }
.bundle.is-flash { border-color: var(--red); }
.save { display: inline-block; align-self: center; font-size: .76rem; color: var(--red); background: var(--red-soft); padding: 2px 10px; border-radius: 999px; font-weight: 600; margin: 2px 0 4px; }
.sold { font-size: .8rem; color: var(--muted); margin: 0 0 12px; }

/* ---------- ขั้นตอน (เป็นลำดับจริง จึงใช้ตัวเลข) / ตัวเลข ---------- */
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 4px 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .num { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--lacquer); color: var(--gold-2); font-family: var(--font-display); font-size: 1.35rem; display: grid; place-items: center; }
.step h3 { margin: 4px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stat { background: var(--lacquer); color: #fff; border-radius: 14px; padding: 20px 14px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; color: var(--gold-2); line-height: 1.25; }
.stat span { font-size: .84rem; opacity: .78; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-arch { max-width: 460px; }
.story-arch .arch { box-shadow: 0 0 0 1px var(--line); }
.split img.round { border-radius: var(--radius); }
.story-quote { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1.6; border-left: 3px solid var(--gold); padding-left: 20px; margin: 24px 0; }

/* ---------- รีวิว (บนพื้นรักดำ วิดีโอเด่นเหมือนในแอป) ---------- */
.scroller { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--gold-line) transparent; }
.scroller > * { flex: 0 0 236px; scroll-snap-align: start; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .2s; }
.review:hover { border-color: var(--gold); }
.dark .review { background: var(--lacquer-2); border-color: var(--lacquer-3); color: #f3ede6; }
.dark .review:hover { border-color: var(--gold); }
.review-thumb { aspect-ratio: 9/14; background: #000; position: relative; }
.review-thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); }
.review-thumb .play span { width: 54px; height: 54px; border-radius: 50%; background: rgba(26, 18, 16, .72); border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold-2); backdrop-filter: blur(4px); transition: transform .2s; }
.review:hover .play span { transform: scale(1.08); }
.review-thumb .play svg { width: 20px; height: 20px; margin-left: 3px; }
.review-body { padding: 12px 14px 14px; }
.review-body b { display: block; font-size: .92rem; line-height: 1.4; }
.review-body p { font-size: .82rem; color: var(--muted); margin: 3px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dark .review-body p { color: rgba(243, 237, 230, .6); }
.stars { color: var(--gold); font-size: .78rem; letter-spacing: 1px; }
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(10, 6, 5, .86); display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-wrap { position: relative; width: min(380px, 100%); }
.modal-box { width: 100%; max-height: 86vh; background: #000; border-radius: 16px; overflow: auto; position: relative; display: grid; border: 1px solid var(--gold-line); }
.modal-box > * { grid-area: 1 / 1; }
.modal-box iframe { position: relative; z-index: 1; width: 100%; height: min(86vh, 680px); border: 0; }
.modal-box video { width: 100%; max-height: 86vh; aspect-ratio: 9/16; background: #000; display: block; object-fit: contain; }
.modal-close { position: absolute; top: -46px; right: 0; color: #fff; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }
.modal-loading { color: #fff; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 24px; font-size: .95rem; min-height: 420px; }
.modal-loading small { opacity: .7; font-size: .8rem; }
.modal-link { display: flex; margin-top: 12px; width: 100%; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- ผลงาน / บทความ / FAQ ---------- */
.masonry { columns: 3; column-gap: 18px; }
.masonry figure { margin: 0 0 18px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.masonry figcaption { padding: 12px 14px; font-size: .9rem; }
.masonry figcaption b { display: block; }
.masonry figcaption span { color: var(--muted); font-size: .82rem; }
.post-card { display: flex; flex-direction: column; }
.post-card .card-img { aspect-ratio: 16/10; }
.post-meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.prose { max-width: 720px; font-size: 1.05rem; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 48px 20px 0; font-weight: 600; font-size: 1.04rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* ---------- CTA รักแดงขอบทอง ---------- */
.cta { position: relative; background: var(--red); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; align-items: center; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(231, 207, 143, .55); border-radius: 16px; pointer-events: none; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { opacity: .9; margin: 0; }
.cta .actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-gold { --fill: var(--lacquer); --fill-fg: var(--gold-2); }

/* ---------- ท้ายเว็บ ---------- */
.footer { background: var(--lacquer); color: rgba(243, 237, 230, .72); padding: 64px 0 24px; border-top: 3px solid var(--gold); }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer h4 { color: var(--gold-2); font-size: .98rem; font-weight: 600; margin-bottom: 14px; }
.footer a:hover { color: var(--gold-2); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer .brand-text b { color: #fff; }
.footer .copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: rgba(243, 237, 230, .5); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-line); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pay-badges span { border: 1px solid rgba(255, 255, 255, .14); padding: 4px 10px; border-radius: 8px; font-size: .76rem; }

/* ---------- หัวเพจด้านใน (รักดำ) ---------- */
.page-head { background: var(--lacquer); color: #f3ede6; padding: 48px 0 40px; border-bottom: 1px solid var(--gold-line); }
.page-head h1 { color: #fff; margin-bottom: 6px; }
.page-head .lead { color: rgba(243, 237, 230, .7); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.page-head .crumbs { color: rgba(243, 237, 230, .55); }
.crumbs a:hover { color: var(--red); }
.page-head .crumbs a:hover { color: var(--gold-2); }

/* ---------- หน้าสินค้า ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.gallery-main { border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px; overflow: hidden; background: var(--mist); aspect-ratio: 4/5; position: relative; }
.gallery-main::after { content: ''; position: absolute; inset: 10px; border: 1.5px solid var(--gold); border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px; pointer-events: none; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; }
.thumbs img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; background: var(--mist); }
.thumbs img.active { border-color: var(--red); }
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 22px; }
.variant { border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; text-align: center; background: #fff; transition: border-color .15s, background .15s; position: relative; }
.variant:hover { border-color: var(--gold); }
.variant.active { border-color: var(--lacquer); background: var(--lacquer); color: #fff; }
.variant.active .vp { color: var(--gold-2); }
.variant.active small { color: rgba(243, 237, 230, .65); }
.variant b { display: block; font-size: 1rem; }
.variant .vp { color: var(--red); font-weight: 700; }
.variant small { display: block; color: var(--muted); font-size: .76rem; }
.variant .mini { position: absolute; top: -9px; right: 8px; background: var(--gold); color: var(--lacquer); font-size: .68rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.variant .mini.flash { background: var(--red); color: #fff; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { color: var(--red); }
.qty input { width: 52px; text-align: center; border: 0; font-size: 1rem; font-family: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.big-price { font-family: var(--font-display); font-size: 2.4rem; color: var(--red); line-height: 1.2; font-variant-numeric: tabular-nums; }
.big-price s { font-size: 1.05rem; color: var(--muted); font-family: var(--font-body); margin-left: 10px; }
.ship-note { background: var(--mist); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 14px 16px; font-size: .92rem; display: flex; gap: 12px; align-items: flex-start; }
.ship-note svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 3px; }
.stock-ok { color: #1f7a3f; font-size: .9rem; font-weight: 600; }
.stock-no { color: var(--red); font-size: .9rem; font-weight: 600; }
.tabs { margin-top: 56px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .84rem; font-weight: 500; color: var(--lacquer-3); }
.pill svg { width: 14px; height: 14px; color: var(--red); }
a.pill:hover { border-color: var(--gold); }
a.pill.on { background: var(--lacquer); border-color: var(--lacquer); color: #fff; }
.sold-total { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; margin: -6px 0 10px; }
.sold-total b { color: var(--ink); }

/* ---------- Flash Sale ---------- */
.flash-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 14px; margin: 14px 0 18px; background: var(--red); color: #fff; }
.flash-bar.soon { background: var(--lacquer); border: 1px solid var(--gold-line); }
.flash-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--yellow); color: var(--red-2); display: grid; place-items: center; }
.flash-ic svg { width: 18px; height: 18px; }
.flash-txt { display: grid; line-height: 1.3; }
.flash-txt b { font-size: 1rem; }
.flash-txt span { font-size: .82rem; opacity: .85; }
.flash-time { margin-left: auto; font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .22); padding: 3px 12px; border-radius: 10px; white-space: nowrap; }

/* ---------- ปุ่มแพลตฟอร์มอื่น ---------- */
.platforms { margin-top: 18px; }
.platforms-title { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.platforms-row { display: flex; flex-wrap: wrap; gap: 8px; }
.plat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink); transition: border-color .2s, background .2s; }
.plat:hover { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 7%, #fff); }
.plat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); }
.plat-shopee { --pc: #ee4d2d; } .plat-lazada { --pc: #0f146d; } .plat-tiktokshop { --pc: #000; } .plat-line { --pc: #06c755; } .plat-facebook { --pc: #1877f2; }
.footer .platforms { margin: 16px 0 6px; }
.footer .platforms-title { color: rgba(243, 237, 230, .55); }
.footer .plat { background: transparent; border-color: var(--gold-line); color: #f3ede6; }
.footer .plat:hover { background: var(--lacquer-2); }
.footer .plat-tiktokshop { --pc: #fff; }
.ws-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ตะกร้า / ชำระเงิน / คำสั่งซื้อ ---------- */
.cart-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 36px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 80px; height: 96px; object-fit: cover; border-radius: 40px 40px 8px 8px; background: var(--mist); }
.rm { color: var(--muted); font-size: .85rem; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rm:hover { color: var(--red); }
.summary { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--lacquer); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.summary .row, .summary-rows .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .98rem; }
.summary .row.total, .summary-rows .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.2rem; color: var(--red); }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border: 1px solid #d9d2ca; border-radius: 12px; background: #fff; width: 100%; color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--lacquer); box-shadow: 0 0 0 3px rgba(201, 162, 77, .3); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; background: #fff; }
.pay-opt:has(input:checked) { border-color: var(--lacquer); box-shadow: inset 0 0 0 1px var(--lacquer); }
.pay-opt input { margin-top: 5px; accent-color: var(--red); }
.pay-opt b { display: block; }
.pay-opt span { font-size: .88rem; color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-size: .95rem; }
.alert-error { background: var(--red-soft); color: var(--red-2); border: 1px solid #f2c4bd; }
.alert-success { background: #e7f4ea; color: #1f7a3f; border: 1px solid #bfe0c9; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 24px 0; }
.tl { text-align: center; font-size: .82rem; color: var(--muted); position: relative; padding-top: 30px; }
.tl::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--line); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1; }
.tl::after { content: ''; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.tl:first-child::after { display: none; }
.tl.done { color: var(--ink); font-weight: 600; }
.tl.done::before { background: var(--red); border-color: var(--red); }
.tl.done::after { background: var(--red); }
.status-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: #efe9e2; color: var(--lacquer-3); font-family: var(--font-body); vertical-align: middle; }
.status-chip.amber { background: #fdf0d2; color: #8a5a00; }
.status-chip.blue { background: #dfe9fb; color: #1d4e9c; }
.status-chip.green { background: #e2f3e7; color: #1f7a3f; }
.status-chip.teal { background: #d9f1f1; color: #0f6b6b; }
.status-chip.red { background: var(--red-soft); color: var(--red-2); }
.page-head .status-chip { background: rgba(255, 255, 255, .12); color: #fff; }
.pay-box { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px; }
.pay-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.pay-tabs button { flex: 1; padding: 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pay-tabs button.active { background: var(--lacquer); border-color: var(--lacquer); color: #fff; }
.qr { width: 240px; margin: 0 auto 12px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.bank { display: grid; gap: 6px; font-size: 1rem; }
.bank b { font-size: 1.3rem; letter-spacing: .04em; color: var(--red); }
.copy-btn { font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; }
.items-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.items-table th, .items-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.items-table th { font-weight: 600; color: var(--muted); font-size: .82rem; }
.items-table td.r, .items-table th.r { text-align: right; }

/* ---------- toast / LINE ลอย ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--lacquer); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .95rem; display: flex; gap: 14px; align-items: center; opacity: 0; pointer-events: none; transition: .25s; z-index: 300; border: 1px solid var(--gold-line); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold-2); font-weight: 600; white-space: nowrap; }
.line-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #06c755; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(6, 199, 85, .35); }
.line-float svg { width: 30px; height: 30px; }

/* ---------- ติดต่อเรา ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-list { display: grid; gap: 12px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.contact-list a:hover { border-color: var(--gold); }
.contact-list svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.contact-list b { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }

/* ---------- ขายส่ง ---------- */
.ws-layout { display: grid; grid-template-columns: 1.25fr .95fr; gap: 32px; align-items: start; }
.ws-product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.ws-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.ws-head img { width: 96px; height: 120px; object-fit: cover; border-radius: 48px 48px 10px 10px; background: var(--mist); }
.ws-head h2 { font-size: 1.45rem; margin-bottom: 4px; }
.ladder { display: flex; align-items: flex-end; gap: 10px; height: 210px; padding: 0 2px; border-bottom: 2px solid var(--lacquer); }
.rung { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.rung-bar { width: 100%; height: calc(var(--h) * .72); background: #ece5dc; border-radius: 50% 50% 0 0 / 22px 22px 0 0; transition: background .25s; }
.rung-price { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; color: var(--muted); transition: color .25s; }
.rung-label { position: absolute; bottom: -28px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.rung.retail .rung-bar { background: repeating-linear-gradient(135deg, #ece5dc 0 6px, #fff 6px 12px); border: 1px dashed #d9d2ca; border-bottom: 0; }
.rung.on .rung-bar { background: var(--red); }
.rung.on .rung-price { color: var(--red); font-size: 1.5rem; }
.rung.on .rung-label { color: var(--ink); font-weight: 600; }
.ws-hint { margin: 42px 0 16px; font-size: .88rem; color: var(--muted); }
.ws-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ws-buy .qty input { width: 76px; }
.ws-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-quick .pill { cursor: pointer; font-family: inherit; }
.ws-quick .pill.on { border-color: var(--lacquer); background: var(--lacquer); color: #fff; }
.ws-calc { margin: 18px 0; font-size: 1.05rem; min-height: 1.6em; }
.ws-calc b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--red); }
.ws-calc .save { margin-left: 8px; }
.ws-calc .warn { color: var(--red-2); }
.ws-cart { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px; }
.ws-cart h2 { font-size: 1.4rem; }
.ws-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ws-line .rm { grid-column: 1; justify-self: start; }
#ws-form { margin-top: 16px; }

/* ==========================================================================
   ธีม CI ครีม (ตามที่ลูกค้าเลือก) — พื้นครีมแบบฉลาก, หัวข้อแดงอิฐ, เส้นทอง, ท้ายเว็บดำ
   ========================================================================== */
.trust { background: var(--ink); color: #fff; border-bottom: 0; }
.trust-item { border-left-color: rgba(255, 255, 255, .1); }
.trust-item svg { color: var(--gold-2); }
.trust-item span { color: rgba(255, 255, 255, .7); }
.header { background: rgba(251, 247, 238, .94); color: var(--ink); border-bottom: 1px solid var(--line); }
.header.scrolled { background: rgba(251, 247, 238, .99); box-shadow: 0 8px 24px rgba(74, 32, 21, .1); }
.brand-mark { background: var(--cream); color: var(--red); border: 2px solid var(--gold); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--gold); }
.brand-mark { overflow: hidden; }
.brand-mark img { width: 74%; height: auto; margin-top: 4px; }
.brand-text b { color: var(--red); }
.brand-text small { color: var(--muted); }
.nav a { color: var(--ink); }
.nav a:hover, .nav a.active { color: var(--red); }
.nav a::after { background: var(--red); }
.icon-btn { border-color: var(--line); background: #fff; color: var(--ink); }
.icon-btn:hover { border-color: var(--red); color: var(--red); }
.cart-count { border-color: var(--paper); }
.drawer-panel { background: var(--paper); color: var(--ink); border-left: 1px solid var(--line); }
.drawer-panel a:not(.btn):hover { background: var(--cream-2); color: var(--red); }
.hero { background: radial-gradient(1200px 600px at 80% 0%, var(--cream-2), transparent 60%), var(--cream); color: var(--ink); }
.hero-pattern { color: var(--gold); opacity: .22; }
.hero-title { color: var(--ink); }
.ht-1 { color: var(--red); }
.ht-2 { color: var(--ink); }
.hero .lead { color: var(--muted); }
.hero-facts li { color: var(--muted); }
.hero-facts b { color: var(--red); }
.hero .arch { box-shadow: 0 0 0 1px var(--gold-line), 0 24px 60px rgba(74, 32, 21, .18); }
.hero-seal { box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--gold), 0 14px 32px rgba(74, 32, 21, .3); }
.page-head { background: var(--cream); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-head h1 { color: var(--ink); }
.page-head .lead { color: var(--muted); }
.page-head .crumbs { color: var(--muted); }
.page-head .crumbs a:hover { color: var(--red); }
.page-head .status-chip { background: var(--cream-2); color: var(--brown); }
.section.tint { background: var(--cream); }
.card, .bundle, .review, .step, .faq, .ws-product, .ws-cart, .summary, .pay-box { background-color: #fff; }
.faq { background: transparent; }
.bundle.best { background: linear-gradient(180deg, #fff, var(--cream)); color: var(--ink); border: 1.5px solid var(--red); }
.bundle.best .avg, .bundle.best .sold, .bundle.best .price s { color: var(--muted); }
.bundle.best .price { color: var(--red); }
.bundle.best .save { background: var(--red-soft); color: var(--red); }
.bundle.best .btn-primary { --fill: var(--ink); --fill-fg: #fff; }
.variant.active { border-color: var(--red); background: var(--cream); color: var(--ink); box-shadow: 0 0 0 1px var(--red); }
.variant.active .vp { color: var(--red); }
.variant.active small { color: var(--muted); }
.step .num { background: var(--cream); color: var(--red); border: 1.5px solid var(--gold); }
.pay-tabs button.active { background: var(--red); border-color: var(--red); }
a.pill.on, .ws-quick .pill.on { background: var(--red); border-color: var(--red); color: #fff; }
.summary { border-top-color: var(--red); }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.pay-opt:has(input:checked) { border-color: var(--red); background: var(--cream); box-shadow: none; }

/* ==========================================================================
   MOTION — ใช้เฉพาะ transform / opacity (ทำงานบน GPU ไม่ทำให้เลย์เอาต์ขยับ)
   ทั้งหมดอยู่ใต้ .anim ซึ่งสคริปต์ใน <head> ใส่ให้เมื่อเครื่องพร้อมและผู้ใช้ไม่ได้ปิดแอนิเมชัน
   ========================================================================== */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.4, 0, 1, 1); interpolate-size: allow-keywords; }

/* 1) เปลี่ยนหน้าแบบลื่น (View Transitions) + รูปสินค้าบินจากการ์ดไปหน้าสินค้า */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
.line-float { view-transition-name: line-float; }
#main-img { view-transition-name: product-hero; }
::view-transition-old(root) { animation: vt-out .2s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .36s var(--ease-out) both; }
::view-transition-group(product-hero) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
::view-transition-image-pair(product-hero) { overflow: hidden; border-radius: 24px; }
::view-transition-old(product-hero), ::view-transition-new(product-hero) { width: 100%; height: 100%; object-fit: cover; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* 2) Hero: พาดหัวไล่ขึ้นทีละบรรทัด แล้วตามด้วยคำโปรย ปุ่ม และข้อเท็จจริง */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes line-draw { from { transform: scaleX(0); } }
.anim .hero .ht-1, .anim .hero .ht-2, .anim .hero .lead, .anim .hero-cta, .anim .hero-facts { animation: rise .85s var(--ease-out) both; }
.anim .hero .ht-2 { animation-delay: .08s; }
.anim .hero .lead { animation-delay: .14s; }
.anim .hero-cta { animation-delay: .2s; }
.anim .hero-facts { animation-delay: .28s; }
.hero-pattern svg { will-change: transform; }
@media (min-width: 1081px) { .anim .hero-pattern svg { animation: drift 60s linear infinite alternate; } }
@keyframes drift { to { transform: translate3d(-56px, -28px, 0); } }
.hero-seal { overflow: hidden; }
.hero-seal::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-130%); pointer-events: none; }
.anim .hero-seal::after { animation: shimmer 1.1s 1.5s var(--ease-out) both; }
@keyframes shimmer { to { transform: translateX(130%); } }

/* 3) หัวเพจด้านใน: หัวข้อไล่ขึ้น + เส้นทองลากใต้หัวเพจ */
.page-head { position: relative; }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform-origin: left; }
.anim .page-head .crumbs, .anim .page-head h1, .anim .page-head .lead { animation: rise .7s var(--ease-out) both; }
.anim .page-head h1 { animation-delay: .06s; }
.anim .page-head .lead { animation-delay: .12s; }
.anim .page-head::after { animation: line-draw 1.1s .15s var(--ease-out) both; }

/* 4) เลื่อนลงแล้วค่อยปรากฏ (ครั้งเดียว) ไล่ลำดับในกลุ่มเดียวกัน */
.anim .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.anim .rv.in { opacity: 1; transform: none; }
.anim .gold-rule { transform: scaleX(0); transform-origin: left; transition: transform .9s .2s var(--ease-out); }
.anim .center .gold-rule { transform-origin: center; }
.anim .in .gold-rule, .anim .gold-rule.in { transform: scaleX(1); }
.anim .bundle.rv.in, .anim .card.rv.in, .anim .review.rv.in { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), border-color .2s; transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s; }

/* 5) ไมโครอินเทอแรกชัน */
.bundle > a { display: block; overflow: hidden; border-radius: 999px 999px 10px 10px; margin-bottom: 14px; }
.bundle > a img { margin: 0; }
.bundle img, .card-img img, .masonry img { transition: transform .7s var(--ease-out); }
.bundle:hover img, .card:hover .card-img img, .masonry figure:hover img { transform: scale(1.045); }
.header { transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(251, 247, 238, .99); box-shadow: 0 8px 24px rgba(74, 32, 21, .1); }
.brand-mark { transition: transform .3s var(--ease-out); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.icon-btn.bump { animation: bump .5s var(--ease-out); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } }
.cart-count.pop { animation: pop .4s var(--ease-out); }
.fly-dot { position: fixed; z-index: 400; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 77, .35); pointer-events: none; }
@keyframes tick { from { opacity: .35; transform: translateY(6px); } }
.anim #buy-price.tick { animation: tick .35s var(--ease-out); }
.anim .flash-ic { position: relative; }
.anim .flash-ic::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--yellow); animation: ring 2.4s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .85; } to { transform: scale(1.75); opacity: 0; } }
.anim .tl.done::after { transform-origin: left; animation: line-draw .6s var(--ease-out) both; }
.anim .tl.done:nth-child(2)::after { animation-delay: .15s; } .anim .tl.done:nth-child(3)::after { animation-delay: .3s; } .anim .tl.done:nth-child(4)::after { animation-delay: .45s; }
@keyframes stamp { from { transform: translateX(-50%) scale(1.6); opacity: 0; } }
.anim .tl.done::before { animation: stamp .45s var(--ease-out) both; }

/* 6) บันไดราคาขายส่ง: แท่งราคาโตขึ้นจากฐานเมื่อเห็น */
.anim .ladder .rung-bar { transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease-out), background .25s; transition-delay: calc(var(--i, 0) * 90ms), 0s; }
.anim .ladder.in .rung-bar { transform: none; }

/* 7) FAQ เปิด/ปิดแบบนุ่ม (เบราว์เซอร์ใหม่) — เบราว์เซอร์เก่าเปิดทันทีตามปกติ */
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-pattern { inset: 40% 0 0 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
  .hero-art { width: min(360px, 88%); }
  .trust .container { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .split, .product, .cart-layout, .contact-grid, .ws-layout { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .story-arch { margin: 0 auto; }
  .masonry { columns: 2; }
  .cta { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .summary, .ws-cart { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header .container { height: 64px; gap: 10px; }
  .header-actions { gap: 6px; }
  .header .icon-btn { width: 40px; height: 40px; }
  .brand-mark { width: 38px; height: 42px; }
  .brand-text b { font-size: 1rem; }
  .brand-text small { display: none; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 0; padding: 14px 12px; font-size: 1rem; }
  .hero-seal { width: 104px; height: 104px; right: -8px; }
  .hero-seal b { font-size: 1.45rem; }
  .hero-facts li { padding: 0 12px; }
  .hero-facts b { font-size: 1.15rem; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bundle { padding: 14px 10px 16px; }
  .bundle .price { font-size: 1.3rem; }
  .form .two { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .trust .container { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(3) { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .masonry { columns: 1; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line img { width: 64px; height: 78px; }
  .timeline { font-size: .72rem; }
  .scroller > * { flex-basis: 200px; }
  .stat b { font-size: 1.6rem; }
  .ladder { height: 160px; gap: 6px; }
  .rung-price { font-size: .95rem; }
  .rung.on .rung-price { font-size: 1.15rem; }
  .rung-label { font-size: .72rem; }
  .flash-time { font-size: 1.08rem; }
  .ws-product, .ws-cart { padding: 18px; }
  .big-price { font-size: 2rem; }
}
