/* tastemaker: storefront v2 "premium catalog" · macro=editorial-catalog (single-row header → split editorial hero on product stage →
   numbered group tiles → product rail → poster promo strip → navy promise band → delivery story → gallery → faq → contact → slogan footer)
   mood=warm-trust (client-fixed navy #14397a + orange #ff6600) · paper=ivory #f7f4ef · font=Sarabun (client)
   contrast: ink/ivory 14.8 · muted/ivory 5.4 · price #b34700/ivory ≥4.5 · white/navy 11.1 · orange/navy-deep 5.1
   critique: show 4 · philosophy 4 · hierarchy 5 · specificity 4 · restraint 4 · variety 4 */

/* หน้าตาหน้าร้านอมรชัยเฟอร์นิเจอร์ — ไฟล์นี้ถูกก๊อปไป public/site.css ตอน npm run admin:build */

:root {
  --navy: #14397a;
  --navy-deep: #0e2552;
  --navy-soft: #e6ecf6;
  --orange: #ff6600;
  --orange-dark: #b34700;
  --orange-soft: #fff0e3;
  --ink: #14203a;
  --muted: #5c6477;
  --paper: #f7f4ef;
  --sand: #ece5da;
  --stage: #f4efe7;
  --white: #ffffff;
  --line: #e2dbd0;
  --ok: #0f7a3b;
  --bad: #c0262d;
  --line-green: #00813a;
  --radius: 14px;
  --font: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(20, 32, 58, .05), 0 8px 24px rgba(20, 32, 58, .06);
  --shadow-hi: 0 2px 6px rgba(20, 32, 58, .07), 0 18px 40px rgba(20, 32, 58, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gap: 10px;
}
@media (min-width: 768px) { :root { --gap: 22px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { counter-reset: sec; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .4em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; flex: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 860px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 24px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; line-height: 1.3;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #cfd5df; border-color: #cfd5df; color: #4a5568; cursor: not-allowed; }
.btn-lg { min-height: 56px; padding: 12px 30px; font-size: 18px; }
.btn-accent { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-accent:hover { background: #ff7a1f; border-color: #ff7a1f; }
.btn-ghost { background: transparent; color: var(--navy); border-color: #b8c3d6; }
.btn-ghost:hover { background: var(--white); border-color: var(--navy); color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover { background: #006b30; border-color: #006b30; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.link-btn { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; padding: 4px; }

/* ---------- หัวเว็บ (แถวเดียว) ---------- */
.topbar { background: var(--navy-deep); color: #dfe5f1; font-size: 14px; }
.topbar-in { display: flex; gap: 26px; align-items: center; justify-content: center; min-height: 36px; flex-wrap: wrap; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; color: #dfe5f1; text-decoration: none; }
.topbar svg { width: 15px; height: 15px; color: var(--orange); }
.topbar a:hover { color: #fff; }
.hide-sm { display: none !important; }
@media (min-width: 900px) { .hide-sm { display: inline-flex !important; } .topbar-in { justify-content: flex-start; } .topbar-in > :last-child { margin-left: auto; } }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; }
.logo-img { width: auto; height: 40px; }
@media (min-width: 1180px) { .nav-in { min-height: 84px; gap: 24px; } .logo-img { height: 50px; } }
.nav-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: none;
  color: var(--ink); cursor: pointer; position: relative; text-decoration: none; transition: background-color .2s var(--ease); }
.nav-btn:hover { background: var(--paper); }
.nav-btn svg { width: 23px; height: 23px; }
.menu-btn { margin-left: -8px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-line { display: none; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--line-green);
  color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; margin: 0 4px; white-space: nowrap; }
.nav-line:hover { background: #006b30; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.nav-search { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.nav-search .wrap { display: flex; gap: 10px; }
.nav-search input { flex: 1; min-width: 0; height: 52px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 22px; font-size: 17px; background: var(--paper); }
.nav-search input:focus { outline: none; border-color: var(--navy); background: #fff; }

.menu { display: none; }
@media (min-width: 900px) { .nav-line { display: inline-flex; } }
@media (min-width: 1180px) {
  .menu-btn { display: none; }
  .menu { display: block; }
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; gap: 0; }
.menu > ul > li { position: relative; }
.menu > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 28px 10px; font-weight: 600; color: var(--ink);
  text-decoration: none; font-size: 16px; position: relative; white-space: nowrap; }
.menu > ul > li > a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 20px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.menu > ul > li > a:hover::after, .menu a[aria-current]::after { transform: scaleX(1); }
.menu > ul > li > a svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.sub { position: absolute; left: -10px; top: calc(100% - 8px); min-width: 330px; background: #fff; border-radius: 16px; padding: 12px;
  box-shadow: var(--shadow-hi); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 50; }
.sub ul { columns: 2; column-gap: 8px; }
.sub li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; break-inside: avoid; }
.sub li a:hover { background: var(--paper); color: var(--navy); }
.sub-all { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 12px 14px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; }
.sub-all svg { width: 16px; height: 16px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > a svg { transform: rotate(180deg); }

.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(14, 37, 82, .5); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 380px); background: #fff; overflow-y: auto; padding: 12px 18px 40px;
  animation: slide-in .25s var(--ease); }
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; font-size: 19px; }
.drawer-search { position: relative; margin: 8px 0 12px; }
.drawer-search input { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 50px 0 18px; font-size: 16px; background: var(--paper); }
.drawer-search button { position: absolute; right: 4px; top: 4px; width: 42px; height: 42px; border: 0; background: none; color: var(--navy); }
.drawer-nav, .drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav a, .drawer-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav details[open] summary svg { transform: rotate(180deg); }
.drawer-nav ul a { font-weight: 400; font-size: 16px; padding: 10px 14px; }

/* ---------- ส่วนทั่วไป + หัวข้อแบบมีเลขลำดับ ---------- */
.sec { padding: 56px 0; }
@media (min-width: 768px) { .sec { padding: 96px 0; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
@media (min-width: 768px) { .sec-head { margin-bottom: 40px; } }
.sec-head h2, .sec-head h1 { margin: 0; max-width: 22ch; }
.sec-head h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block;
  font-size: 15px; font-weight: 700; color: var(--orange-dark); letter-spacing: .08em; margin-bottom: 14px; line-height: 1; }
.sec-head > p { flex-basis: 100%; margin: 0; color: var(--muted); max-width: 60ch; font-size: 18px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid currentColor; }
.more svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.more:hover svg { transform: translateX(3px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; }
.crumbs span { color: var(--ink); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.2em; }

.page-head { background: var(--stage); padding: 36px 0 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .page-head { padding: 56px 0 48px; } }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); max-width: 64ch; margin: 0; font-size: 18px; }
.page-head-in { display: grid; gap: 24px; align-items: center; }
.page-head-pic { margin: 0; }
.page-head-pic img { width: 100%; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) { .page-head.has-pic .page-head-in { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.chips a { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  text-decoration: none; font-size: 15px; font-weight: 600; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chips a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips-light a { background: #fff; }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; }
.hero-view { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .6s var(--ease); }
.hero-slide { flex: 0 0 100%; min-width: 0; }
.hero-pic img { width: 100%; height: auto; }
.hero-title { font-weight: 700; line-height: 1.3; margin: 0; }
.hero-sub { margin: 10px 0 0; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.92); color: var(--navy); display: none; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.hero-nav.prev { left: 16px; } .hero-nav.prev svg { transform: rotate(180deg); }
.hero-nav.next { right: 16px; }
@media (min-width: 900px) { .hero-nav { display: grid; } }
.hero-dots { display: flex; justify-content: center; gap: 4px; padding: 14px 0 0; }
.hero-dots button { width: 34px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero-dots button::after { content: ''; width: 24px; height: 3px; border-radius: 2px; background: #c9c0b2; transition: background-color .2s var(--ease); }
.hero-dots button[aria-current="true"]::after { background: var(--orange); }

/* แบบเต็มจอ: จอใหญ่ข้อความทับบนพื้นที่ว่างด้านซ้ายของรูป · มือถือแสดงรูปเต็มไม่ครอป แล้ววางข้อความใต้รูป */
.hero-full { background: var(--stage); }
.hero-full .hero-slide { position: relative; }
.hero-full .hero-cap-in { display: flex; flex-direction: column; gap: 22px; padding-top: 28px; padding-bottom: 36px; }
.hero-full .hero-title { font-size: clamp(34px, 5.4vw, 72px); letter-spacing: -.01em; color: var(--navy-deep); }
.hero-full .hero-title::after { content: ''; display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--orange); margin-top: 20px; }
.hero-full .hero-sub { font-size: clamp(17px, 1.4vw, 20px); color: #3d4760; max-width: 34ch; margin-top: 0; }
.hero-full .hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; }
@media (min-width: 900px) {
  .hero-full .hero-pic img { width: 100%; height: min(78vh, 760px); min-height: 520px; object-fit: cover; object-position: 70% 50%; }
  .hero-full .hero-cap { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none;
    background: linear-gradient(90deg, rgba(247,242,234,.92) 0%, rgba(247,242,234,.7) 32%, rgba(247,242,234,0) 55%); }
  .hero-full .hero-cap-in { padding-top: 0; padding-bottom: 0; }
  .hero-full .hero-cap-in > * { pointer-events: auto; max-width: 560px; }
  .hero-full .btn-ghost { background: rgba(255,255,255,.88); }
}

/* แบบแบ่งครึ่ง: หัวข้อใหญ่ + ภาพจัดวางสินค้า (พื้นภาพกลืนกับพื้นส่วนนี้) */
.hero-split { background: var(--stage); }
.hero-split .hero-slide { display: grid; }
.hero-split .hero-cap { order: -1; }
.hero-split .hero-cap-in { padding-top: 36px; padding-bottom: 4px; display: flex; flex-direction: column; gap: 22px; }
.hero-split .hero-title { font-size: clamp(38px, 6.2vw, 76px); letter-spacing: -.01em; color: var(--navy-deep); }
.hero-split .hero-title::after { content: ''; display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--orange); margin-top: 22px; }
.hero-split .hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: #3d4760; max-width: 34ch; margin-top: 0; }
.hero-split .hero-pic { align-self: end; }
@media (min-width: 900px) {
  .hero-split .hero-slide { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; max-width: 1280px; margin: 0 auto; }
  .hero-split .hero-cap .wrap { padding-right: 0; }
  .hero-split .hero-cap-in { padding: 64px 0 64px 32px; }
  /* ขอบภาพจางเข้าพื้น ภาพจัดวางจึงกลืนกับส่วนนี้ ไม่เห็นเป็นกรอบรูป */
  .hero-split .hero-pic img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 88%, transparent 100%); }
}

/* แบบแถบเตี้ย = แถบโปรโมชั่นกลางหน้า แสดงโปสเตอร์เต็มรูป */
.hero-compact { padding: 0 16px 56px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 768px) { .hero-compact { padding: 0 32px 96px; } }
.hero-compact .hero-view { border-radius: 20px; background: var(--navy-deep); }
.hero-compact .hero-cap { background: var(--navy-deep); color: #fff; }
.hero-compact .hero-cap .wrap { padding: 0; }
.hero-compact .hero-cap-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.hero-compact .hero-title { font-size: 18px; color: #fff; }
.hero-compact .hero-cap .btn { min-height: 42px; padding: 6px 18px; font-size: 15px; flex: none; }
/* จอใหญ่: โปสเตอร์ซ้าย แผงข้อความขวา — โปสเตอร์ไม่ใหญ่จนแย่งแบนเนอร์บนสุด */
@media (min-width: 900px) {
  .hero-compact .hero-slide { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hero-compact .hero-cap { display: flex; align-items: center; }
  .hero-compact .hero-cap .hero-cap-in { flex-direction: column; align-items: flex-start; gap: 22px; padding: 40px; }
  .hero-compact .hero-title { font-size: clamp(24px, 2.4vw, 34px); }
  .hero-compact .hero-title::before { content: 'โปรโมชั่นและข่าวสาร'; display: block; font-size: 14px; font-weight: 700;
    color: var(--orange); letter-spacing: .06em; margin-bottom: 10px; }
  .hero-compact .hero-cap .btn { min-height: 48px; padding: 10px 24px; font-size: 16px; }
  .hero-compact .hero-nav.next { right: calc(40% + 16px); }
}

/* ---------- หมวดหลัก 3 กลุ่ม ---------- */
.groups { display: grid; gap: 16px; }
@media (min-width: 900px) { .groups { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.group { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.group-pic { position: relative; display: block; overflow: hidden; background: var(--navy-deep); text-decoration: none; }
.group-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .group:hover .group-pic img { transform: scale(1.04); } }
.group-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,37,82,0) 40%, rgba(14,37,82,.9) 100%); }
.group-title { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 24px; font-weight: 700; line-height: 1.3; }
.group-title small { font-size: 13px; color: var(--orange); letter-spacing: .08em; align-self: flex-start; margin-top: 4px; }
.group-title svg { margin-left: auto; width: 24px; height: 24px; transition: transform .2s var(--ease); }
.group-pic:hover .group-title svg { transform: translateX(4px); }
.group-icon { display: grid; place-items: center; aspect-ratio: 16 / 9; color: #fff; }
.group-icon svg { width: 56px; height: 56px; }
.group-body { padding: 18px 20px 22px; }
.group-body > p { color: var(--muted); font-size: 16px; margin: 0; }
.group .chips { margin-top: 14px; }
.group .chips a { font-size: 14px; padding: 5px 13px; }

/* ---------- การ์ดสินค้า (รูปไม่ครอป: พื้นขาว contain) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; background: #fff; border-radius: var(--radius); display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(20,32,58,.05); transition: transform .25s var(--ease); }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-hi); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); }
  .card:hover::after { opacity: 1; }
  .card:hover .card-pic img { transform: scale(1.03); }
}
.card-link { display: block; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-pic { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 14px; }
.card-pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .3s var(--ease); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; }
.tag-out { background: #4a5568; color: #fff; }
.card-body { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
@media (min-width: 768px) { .card-body { padding: 6px 20px 20px; } }
.card-sku { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.card h3, .card .card-title { font-size: 16px; line-height: 1.45; margin: 2px 0 0; font-weight: 600; }
@media (min-width: 768px) { .card h3, .card .card-title { font-size: 18px; } }
.card h3 a, .card-title a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-short { font-size: 14px; color: var(--muted); margin: 2px 0 0; line-height: 1.5; }
.card-opts { font-size: 13px; color: var(--navy); margin: 6px 0 0; font-weight: 600; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.card-price { font-size: 20px; font-weight: 700; color: var(--orange-dark); line-height: 1.3; }
.card-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.card-price s { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.card-sold { font-weight: 700; color: var(--muted); }
.card-cta { position: relative; z-index: 2; display: none; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; text-decoration: none; }
.card-cta svg { width: 16px; height: 16px; }
/* โหมดสั่งผ่านไลน์: ปุ่มดูรายละเอียดเป็นหลัก ไลน์เป็นไอคอนเล็กข้างๆ (แสดงทุกขนาดจอ) */
.card-actions { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 12px; }
.card-more { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 6px 10px;
  border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; min-width: 0;
  transition: background-color .2s var(--ease); }
.card-more:hover { background: var(--navy-deep); }
.card-line { flex: none; width: 42px; height: 42px; border-radius: 999px; background: var(--line-green); color: #fff;
  display: grid; place-items: center; transition: background-color .2s var(--ease); }
.card-line:hover { background: #006b30; }
.card-line svg { width: 24px; height: 24px; }
svg.brand { fill: currentColor; stroke: none; }
@media (min-width: 768px) { .card-cta { display: inline-flex; } }
.rows { display: grid; gap: var(--gap); }
.rows .card { flex-direction: row; }
.rows .card-link { width: 38%; max-width: 220px; flex: none; border-radius: var(--radius) 0 0 var(--radius); }

/* ---------- แคตตาล็อก ---------- */
.catalog { display: grid; gap: 18px; }
.catalog > *, .filter, .filter-groups { min-width: 0; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 270px 1fr; gap: 36px; align-items: start; } }
.filter { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) { .filter { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto;
  background: #fff; border-radius: var(--radius); padding: 16px; } }
.search-box { position: relative; display: block; }
.search-box svg { position: absolute; left: 16px; top: 15px; color: var(--muted); }
.search-box input { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px 0 46px; font-size: 16px; background: #fff; }
.search-box input:focus { outline: none; border-color: var(--navy); }
.filter-groups { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.filter-group { flex: none; }
.filter-group summary { display: none; }
.filter-group ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.filter button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 42px; padding: 6px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; font-weight: 600; }
.filter button span { font-size: 12px; color: var(--muted); font-weight: 400; }
.filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter button[aria-pressed="true"] span { color: #d9e2f2; }
@media (min-width: 1024px) {
  .filter-groups { flex-direction: column; overflow: visible; gap: 4px; }
  .filter-group summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 6px; font-weight: 700;
    cursor: pointer; list-style: none; border-top: 1px solid var(--line); }
  .filter-group summary::-webkit-details-marker { display: none; }
  .filter-group summary svg { width: 16px; height: 16px; }
  .filter-group[open] summary svg { transform: rotate(180deg); }
  .filter-group ul { flex-direction: column; gap: 2px; }
  .filter button { width: 100%; justify-content: space-between; border: 0; border-radius: 10px; min-height: 40px; font-weight: 400; }
  .filter button:hover { background: var(--paper); }
  .filter .filter-all { font-weight: 700; }
}
.catalog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.catalog-count { margin: 0; color: var(--muted); }
.catalog-count b { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.sort select { height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; font-size: 16px; background: #fff; color: var(--ink); }
.catalog-empty { text-align: center; padding: 40px 0; color: var(--muted); }
.catalog-more { text-align: center; margin-top: 28px; }
.card.is-hidden { display: none; }

/* ---------- จุดเด่น = แถบคำมั่นสีน้ำเงินเข้ม ---------- */
.sec-features { background: var(--navy-deep); color: #dfe5f1; }
.sec-features .sec-head h2 { color: #fff; }
.sec-features .sec-head h2::before { color: var(--orange); }
.sec-features .sec-head > p { color: #b9c4dc; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0; } }
.feature { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .feature { padding: 4px 28px; border-left: 1px solid rgba(255,255,255,.14); } .feature:first-child { border-left: 0; padding-left: 0; } }
.feature-icon { color: var(--orange); }
.feature-icon svg { width: 34px; height: 34px; stroke-width: 1.5; }
.feature h3 { font-size: clamp(20px, 2vw, 26px); margin: 0 0 6px; color: #fff; }
.feature p { margin: 0; color: #b9c4dc; font-size: 16px; line-height: 1.65; }

/* ---------- เกี่ยวกับร้าน ---------- */
.sec-about { background: var(--white); }
.about { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1.15fr 1fr; gap: 80px; } .about.pic-right .about-pic { order: 2; } }
.about-pic { margin: 0; position: relative; }
.about-pic img { width: 100%; border-radius: 20px; position: relative; z-index: 1; }
@media (min-width: 900px) { .about-pic::before { content: ''; position: absolute; inset: 28px -28px -28px 28px; background: var(--sand); border-radius: 20px; }
  .pic-right .about-pic::before { inset: 28px 28px -28px -28px; } }
.about-text h2 { font-size: clamp(28px, 3.4vw, 42px); }
.about-text p { color: #3d4760; font-size: 18px; }

/* ---------- ผลงาน (masonry ตามสัดส่วนจริง ไม่ครอป) ---------- */
.sec-gallery { background: var(--white); }
.sec-about + .sec-gallery { padding-top: 0; }
.gal { columns: 2; column-gap: var(--gap); }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols, 3); } }
.gal-item { break-inside: avoid; margin: 0 0 var(--gap); }
.gal-item a { display: block; border-radius: 14px; overflow: hidden; }
.gal-item img, .gal-item video { width: 100%; border-radius: 14px; transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .gal-item a:hover img { transform: scale(1.03); } }
.gal-item figcaption { padding: 10px 2px 0; font-size: 15px; line-height: 1.5; }
.gal-item figcaption b { display: block; }
.gal-item figcaption span { color: var(--muted); font-size: 14px; }
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(10, 20, 40, .88); }
dialog.light img { max-height: 86vh; width: auto; border-radius: 10px; }
dialog.light p { color: #fff; text-align: center; margin: 8px 0 0; }
dialog.light button { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }

/* ---------- เสียงจากลูกค้า ---------- */
.quotes { display: grid; gap: 16px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.quote { margin: 0; background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.quote-mark { color: var(--orange); }
.quote-mark svg { width: 30px; height: 30px; }
.quote blockquote { margin: 0; flex: 1; font-size: 18px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.quote figcaption > span { display: flex; flex-direction: column; line-height: 1.4; }
.quote figcaption > span span { color: var(--muted); font-size: 14px; }

/* ---------- คำถาม ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { margin-top: 5px; color: var(--orange-dark); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 0 22px; color: #3d4760; font-size: 17px; }
.faq-a p:last-child { margin: 0; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding: 56px 0; }
@media (min-width: 768px) { .cta-band { padding: 72px 0; } }
.cta-dark { background: var(--navy); color: #fff; }
.cta-dark h2 { color: #fff; }
.cta-soft { background: var(--stage); }
.cta-in { display: flex; flex-direction: column; gap: 22px; }
.cta-in h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); max-width: 26ch; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .cta-in { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- ติดต่อ ---------- */
.sec-contact { background: var(--white); }
.contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contact-note { color: var(--muted); font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list li > svg { width: 46px; height: 46px; padding: 12px; border-radius: 999px; background: var(--paper); color: var(--navy); }
.contact-list small { display: block; color: var(--muted); font-size: 14px; }
.contact-list a { font-weight: 700; font-size: 19px; text-decoration: none; }
.contact-list span { display: block; }
.contact-list .map-link { font-size: 15px; font-weight: 600; text-decoration: underline; }
.hours-box { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; }
.hours-box h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border: 0; }
.closed { color: var(--bad); font-weight: 600; }
.map-wrap { margin-top: 32px; }
.map { width: 100%; height: 360px; border: 0; border-radius: 20px; }

/* ---------- ฟอร์ม ---------- */
.lead, .box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 768px) { .lead, .box { padding: 28px; } }
.sec-contact .lead { background: var(--paper); border: 0; border-radius: 20px; }
.lead h3 { font-size: 21px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .coupon label { font-weight: 600; font-size: 16px; }
.field input, .field select, .field textarea, .coupon input {
  width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 16px; background: #fff; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.hint { color: var(--muted); font-size: 14px; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
.msg, .form-msg { margin: 10px 0 0; font-weight: 600; }
.msg:empty, .form-msg:empty { display: none; }
.msg.ok, .form-msg.ok { color: var(--ok); }
.msg.bad, .form-msg.bad { color: var(--bad); }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- หน้ารายละเอียดสินค้า ---------- */
.pd { padding-top: 24px; }
.pd-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .pd-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.pd-gallery { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .pd-gallery { position: sticky; top: 110px; } }
.pd-main { aspect-ratio: 1 / 1; border-radius: 20px; background: #fff; display: grid; place-items: center; padding: 24px; }
.pd-main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pd-thumbs button { flex: none; width: 76px; height: 76px; border: 2px solid transparent; border-radius: 12px; background: #fff; padding: 4px; cursor: pointer; display: grid; place-items: center; }
.pd-thumbs button[aria-current="true"] { border-color: var(--navy); }
.pd-thumbs img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.pd-info h1 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 6px; }
.pd-sku { color: var(--muted); margin: 0 0 12px; letter-spacing: .02em; }
.pd-sku b { color: var(--ink); }
.pd-price { font-size: 34px; font-weight: 700; color: var(--orange-dark); margin: 0 0 4px; line-height: 1.3; }
.pd-price s { font-size: 17px; color: var(--muted); font-weight: 400; margin-left: 10px; }
.pd-stock { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; margin: 0 0 14px; }
.pd-stock svg { width: 18px; height: 18px; }
.pd-stock.is-out { color: var(--bad); }
.pd-short { background: #fff; border-radius: 12px; padding: 12px 16px; }
.pd-label { font-weight: 600; margin-bottom: 10px; display: block; }
.pd-opts { border: 0; margin: 0 0 18px; padding: 0; }
.pd-opts legend { padding: 0; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 6px 16px 6px 8px; border: 1.5px solid var(--line);
  border-radius: 999px; cursor: pointer; background: #fff; font-weight: 600; transition: border-color .2s var(--ease); }
.opt input { position: absolute; opacity: 0; }
.opt:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.opt:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.opt:has(input[data-out]) { color: var(--muted); text-decoration: line-through; }
.opt-pic { width: 34px; height: 34px; object-fit: contain; border-radius: 999px; background: #fff; }
.pd-buy { display: grid; gap: 12px; margin: 8px 0 20px; }
.pd-qty { display: flex; align-items: center; gap: 14px; }
.pd-qty .pd-label { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 46px; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: var(--paper); }
.qty input { width: 52px; height: 46px; border: 0; text-align: center; font-size: 17px; font-weight: 700; -moz-appearance: textfield; background: #fff; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-help { display: grid; gap: 8px; }
.pd-help > * { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff;
  text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.5; }
.pd-help a:hover { box-shadow: 0 0 0 1.5px var(--navy); }
.pd-help svg { width: 26px; height: 26px; color: var(--navy); }
.pd-help b { display: block; font-size: 16px; }
.pd-detail { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.specs { margin: 0 0 20px; background: #fff; border-radius: var(--radius); overflow: hidden; max-width: 780px; }
.specs div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; }
.specs div + div { border-top: 1px solid var(--line); }
.specs dt { background: var(--stage); padding: 13px 18px; font-weight: 600; }
.specs dd { margin: 0; padding: 13px 18px; }
.pd-related { margin-top: 56px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff;
  border-radius: 14px; padding: 12px 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-hi); width: max-content; max-width: calc(100vw - 32px);
  animation: toast-in .25s var(--ease); }
.toast a { color: var(--orange); font-weight: 700; white-space: nowrap; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- ตะกร้า / checkout / ออเดอร์ ---------- */
.shop-page { padding-top: 24px; min-height: 60vh; }
.shop-page h1 { font-size: clamp(28px, 3.2vw, 40px); }
.cart, .checkout, .order-grid { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .cart, .checkout { grid-template-columns: 1fr 390px; align-items: start; gap: 32px; }
  .order-grid { grid-template-columns: 1fr 410px; align-items: start; gap: 32px; }
  .cart-side, .co-side { position: sticky; top: 110px; }
}
.box h2 { font-size: 21px; }
.checkout fieldset.box { margin: 0 0 16px; }
.checkout legend { font-weight: 700; font-size: 21px; padding: 0 6px; }
.cart-lines { background: #fff; border-radius: var(--radius); padding: 8px 20px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .pic { width: 88px; height: 88px; border-radius: 12px; display: grid; place-items: center; padding: 4px; background: var(--paper); }
.cart-line .pic img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.cart-line h3 { font-size: 17px; margin: 0; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-line small { display: block; color: var(--muted); font-size: 14px; }
.cart-line .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cart-line .amount { font-weight: 700; font-size: 18px; }
.cart-line .remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 6px; }
.cart-line .err { display: block; margin-top: 6px; }
.cart-line .qty button { width: 38px; height: 38px; }
.cart-line .qty input { width: 44px; height: 38px; font-size: 16px; }
.sum { margin: 12px 0 16px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; }
.sum-disc dd { color: var(--ok); }
.sum-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; }
.sum-total dt { color: var(--ink); font-weight: 700; }
.sum-total dd { font-size: 26px; color: var(--orange-dark); font-weight: 700; }
.free-bar { background: var(--orange-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.free-bar p { margin: 0 0 6px; font-size: 15px; }
.free-bar span { display: block; height: 6px; background: #fff; border-radius: 3px; overflow: hidden; }
.free-bar i { display: block; height: 100%; background: var(--orange); border-radius: 3px; transform-origin: left; transition: transform .3s var(--ease); }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.note svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.cart-empty { text-align: center; padding: 48px 0; }
.empty-icon { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 999px; background: #fff; color: var(--navy); margin-bottom: 12px; }
.empty-icon svg { width: 40px; height: 40px; }
.loading { color: var(--muted); }
.pay-list { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: var(--navy-soft); }
.pay-opt input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--navy); }
.pay-opt b { display: block; }
.pay-opt small { color: var(--muted); font-size: 14px; }
.pay-opt.is-off { opacity: .55; cursor: not-allowed; }
.is-off { opacity: .55; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.mini-lines small { display: block; color: var(--muted); font-size: 13px; }
.coupon { margin: 12px 0; }
.coupon-row { display: flex; gap: 8px; margin-top: 6px; }
.coupon-row input { text-transform: uppercase; }
.thanks { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.thanks-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 999px; background: #e3f4ea; color: var(--ok); margin-bottom: 8px; }
.thanks-icon svg { width: 36px; height: 36px; stroke-width: 2.5; }
.order-no { font-size: 20px; letter-spacing: .03em; }
.status-pill { display: inline-block; padding: 4px 16px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-weight: 700; }
.st-cancelled, .st-refunded { background: #fde8e8; color: var(--bad); }
.st-done, .st-shipped { background: #e3f4ea; color: var(--ok); }
.pay-box { margin-bottom: 20px; border: 2px solid var(--orange); }
.pay-amount { background: var(--orange-soft); border-radius: 12px; padding: 12px 16px; text-align: center; margin-bottom: 10px; }
.pay-amount small { display: block; color: var(--muted); }
.pay-amount b { font-size: 36px; color: var(--orange-dark); line-height: 1.3; }
.qr-box { display: grid; gap: 14px; align-items: center; margin: 16px 0; padding: 16px; background: var(--paper); border-radius: 14px; }
@media (min-width: 560px) { .qr-box { grid-template-columns: 200px 1fr; } }
.qr { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 10px; margin: 0 auto; }
.qr svg, .qr img { width: 100%; height: 100%; }
.qr-box p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.banks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.banks li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.banks li > span:nth-child(2) { flex: 1; line-height: 1.45; }
.banks b { display: block; font-size: 19px; letter-spacing: .03em; }
.banks small { display: block; color: var(--muted); font-size: 14px; }
.bank-logo { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--paper); }
.slip-form { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.slip-form h3 { font-size: 18px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; border: 2px dashed #bfb3a1; border-radius: 14px;
  background: var(--paper); cursor: pointer; text-align: center; margin-bottom: 12px; }
.drop svg { width: 32px; height: 32px; color: var(--navy); }
.drop small { color: var(--muted); }
.drop input { position: absolute; opacity: 0; width: 1px; }
.drop:focus-within { outline: 3px solid var(--orange); }
.slip-preview { max-height: 320px; width: auto; margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--line); }
.warn { background: #fde8e8; color: var(--bad); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ''; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; border-radius: 999px; background: #fff; border: 3px solid #c9c0b2; }
.timeline li.is-now::before { border-color: var(--orange); background: var(--orange); }
.timeline b { display: block; }
.timeline time { color: var(--muted); font-size: 14px; }
.timeline p { margin: 2px 0 0; font-size: 15px; }
.tracking { display: flex; gap: 8px; align-items: center; background: var(--paper); border-radius: 12px; padding: 10px 14px; margin: 8px 0 0; }
.ship-to { display: flex; gap: 10px; font-size: 15px; margin: 0; }
.ship-to svg { color: var(--navy); margin-top: 3px; }
.help-box { margin-top: 16px; display: grid; gap: 10px; }
.help-box p { margin: 0; }
.track-form { margin: 16px 0 24px; }
.track-result .box + .box { margin-top: 16px; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy-deep); color: #c7d0e2; padding: 0; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-hero { display: flex; flex-direction: column; gap: 22px; padding-top: 56px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 900px) { .foot-hero { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-top: 88px; padding-bottom: 64px; } }
.foot-slogan { margin: 0; color: #fff; font-weight: 700; font-size: clamp(34px, 6vw, 76px); line-height: 1.3; max-width: 14ch; }
.foot-slogan::after { content: '.'; color: var(--orange); }
.foot-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-hero-btns a:hover { text-decoration: none; }
.foot-hero-btns .btn-accent { color: var(--ink); }
.foot-grid { display: grid; gap: 30px; padding-top: 48px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; } }
.foot h2 { color: #fff; font-size: 16px; margin-bottom: 12px; letter-spacing: .02em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 15px; }
.foot-logo { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 8px; }
.foot-logo img { width: 48px; height: 48px; }
.foot-tag { color: var(--orange); font-weight: 700; margin-bottom: 6px; }
.foot-brand p { font-size: 15px; }
.foot-contact li { display: flex; gap: 8px; align-items: flex-start; }
.foot-contact li > svg, .foot-contact a svg { color: var(--orange); width: 18px; height: 18px; margin-top: 4px; }
.foot-contact a { display: inline-flex; gap: 8px; }
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; border-radius: 999px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding: 18px 16px 90px; }
@media (min-width: 900px) { .foot-bottom { padding-bottom: 20px; } }

/* ---------- ปุ่มลอยมือถือ: ไลน์ + โทร ---------- */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -2px 12px rgba(20,32,58,.1); }
.float-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.fl-line { background: var(--line-green); color: #fff; }
.fl-call { background: var(--navy); color: #fff; }
@media (min-width: 900px) { .float-contact { display: none; } }

/* ---------- ปุ่มโซเชียลลอยมุมขวาล่าง ทุกหน้า (สีโลโก้ทางการของแต่ละแบรนด์) ---------- */
.social-float { position: fixed; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 55;
  display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .social-float { right: 24px; bottom: 24px; } }
.sf { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; color: #fff; text-decoration: none;
  box-shadow: 0 4px 14px rgba(20,32,58,.22); transition: transform .2s var(--ease); }
.sf svg { width: 26px; height: 26px; }
@media (max-width: 899px) { .sf { width: 44px; height: 44px; } .social-float { gap: 8px; } }
@media (hover: hover) and (pointer: fine) { .sf:hover { transform: translateY(-2px); } }
.sf-facebook { background: #1877f2; }
.sf-youtube { background: #ff0000; }
.sf-youtube svg { width: 28px; height: 28px; }
.sf-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sf-tiktok { background: #000; }
@media print { .social-float, .float-contact { display: none; } }

/* ---------- บทความ ---------- */
.a-wrap { max-width: 820px; }
.a-meta { color: var(--muted); font-size: 15px; }
.a-cover { margin: 0 0 20px; } .a-cover img { border-radius: 20px; width: 100%; }
.a-lead { font-size: 19px; color: #3d4760; }
.a-toc { background: #fff; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.a-fig { margin: 20px 0; } .a-fig img { border-radius: 12px; } .a-fig figcaption { color: var(--muted); font-size: 14px; }
.a-embed { margin-top: 36px; } .a-cta { margin: 24px 0; padding: 20px; background: var(--orange-soft); border-radius: var(--radius); }

/* ---------- อนิเมชัน: ขึ้นทีละส่วนตอนเลื่อนถึง เล่นครั้งเดียว ---------- */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.js .is-in[data-reveal], .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
/* แบนเนอร์บนสุด: ข้อความขึ้นก่อน ภาพตามมา (ครั้งเดียวตอนเปิดหน้า) */
.js .hero-split .hero-slide[data-i="0"] .hero-cap-in > * { animation: rise .6s var(--ease) both; }
.js .hero-split .hero-slide[data-i="0"] .hero-cap-in > :nth-child(2) { animation-delay: .08s; }
.js .hero-split .hero-slide[data-i="0"] .hero-pic { animation: fade .8s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
}
