/* Tedros Guitar Custom Shop — ดำอุ่น ทอง และไม้
   ฟอนต์เดียวทั้งเว็บ (IBM Plex Sans Thai) แยกน้ำหนักแทนการเปลี่ยนฟอนต์ */

:root {
  --bg: #0e0c0a;
  --bg-2: #16130f;
  --bg-3: #1d1914;
  --ink: #f1e9dc;
  --muted: #b3a895;
  --dim: #8a7f6e;
  --gold: #d1ad66;
  --gold-hi: #ead39a;
  --gold-lo: #9c7a3c;
  --line: rgba(209, 173, 102, .22);
  --line-soft: rgba(241, 233, 220, .09);
  --wood: #6b341a;
  --ok: #8fc79a;
  --bad: #f0a08e;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.75 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
.sec { padding: var(--sec) 0; position: relative; }
.sec-alt { background: var(--bg-2); }
/* ส่วนติดกันที่พื้นสีเดียวกัน ไม่ต้องเว้นระยะซ้อนสองชั้น */
.sec:not(.sec-alt) + .sec:not(.sec-alt):not(.sec-contact), .sec-alt + .sec-alt { padding-top: 0; }
.sec-top { padding-top: calc(var(--sec) + 40px); }
.page-h1 { font-size: clamp(32px, 5vw, 56px); padding-top: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px;
  font: 600 16px/1.4 var(--font); text-decoration: none; letter-spacing: .01em;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .arw { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn, .btn-gold, .btn-accent { background: var(--gold); color: #17120a; }
.btn:hover, .btn-accent:hover { background: var(--gold-hi); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { border-color: var(--line); color: var(--gold-hi); background: transparent; }
.btn-line:hover { border-color: var(--gold); background: rgba(209, 173, 102, .08); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- หัวเว็บ ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent; background: rgba(14, 12, 10, .92);
}
.has-hero .nav { background: linear-gradient(to bottom, rgba(14, 12, 10, .75), rgba(14, 12, 10, 0)); }
.has-hero .nav.is-solid, .nav.is-solid, .nav.is-open { background: rgba(14, 12, 10, .96); border-bottom-color: var(--line-soft); }
@supports (backdrop-filter: blur(8px)) {
  .nav.is-solid { backdrop-filter: blur(10px); background: rgba(14, 12, 10, .82); }
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.logo span {
  font-size: 14px; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; color: var(--gold-hi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a {
  text-decoration: none; font-size: 15px; color: var(--muted); padding: 10px 14px; position: relative;
  transition: color .2s var(--ease);
}
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--ink); }
.nav nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold);
}
.nav nav .nav-cta { margin-left: 10px; border: 1px solid var(--line); color: var(--gold-hi); padding: 9px 18px; border-radius: 2px; }
.nav nav .nav-cta:hover { border-color: var(--gold); }
.nav-toggle { display: none; flex: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.nav-toggle i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle i:first-child { top: 17px; }
.nav-toggle i:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] i:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 479px) {
  .logo span { font-size: 14px; letter-spacing: .02em; }
  .logo img { width: 38px; height: 38px; }
}
@media (max-width: 1179px) {
  .nav-in { height: 64px; }
  .nav-toggle { display: block; }
  .nav nav {
    position: fixed; inset: calc(64px + env(safe-area-inset-top)) 0 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gut) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open nav { opacity: 1; visibility: visible; transform: none; }
  .nav nav a { font-size: 22px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
  .nav nav a[aria-current="page"] { color: var(--gold-hi); }
  .nav nav a[aria-current="page"]::after { display: none; }
  .nav nav .nav-cta { margin: 24px 0 0; text-align: center; font-size: 17px; padding: 16px; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: #000; isolation: isolate; }
.hero-track { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hero-slide.is-on { opacity: 1; visibility: visible; }
.hero-pic { position: absolute; inset: 0; display: block; overflow: hidden; transform: scale(1); transition: transform 9s linear; }
.hero-slide.is-on .hero-pic { transform: scale(1.07); }
.hero-split .hero-slide.is-on .hero-pic { transform: none; }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.06); will-change: transform; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, .88) 0%, rgba(10, 8, 6, .55) 42%, rgba(10, 8, 6, .1) 75%),
    linear-gradient(0deg, rgba(10, 8, 6, .9) 0%, rgba(10, 8, 6, 0) 45%);
}
.hero-body {
  position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; width: 100%;
  padding: 120px var(--gut) clamp(88px, 12vh, 140px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
}
.hero-full .hero-slide { min-height: min(100svh, 920px); display: flex; }
.hero-full .hero-body { min-height: inherit; }
.hero-mark {
  display: inline-flex; align-items: center; gap: 14px; font-size: 14px; letter-spacing: .18em; line-height: 1.5;
  text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
}
.hero-mark::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.hero-title {
  font-size: clamp(34px, 6.2vw, 72px); line-height: 1.4; font-weight: 600; max-width: 15em; margin: 0;
  color: #fbf5ea;
}
.hero-sub { margin: 22px 0 0; font-size: clamp(16px, 1.6vw, 19px); color: #d9cfbf; max-width: 36em; font-weight: 300; line-height: 1.8; }
.hero-body .btn { margin-top: 34px; }
.hero-ctrl {
  position: absolute; z-index: 3; right: var(--gut); bottom: 32px; display: flex; align-items: center; gap: 8px;
}
@media (min-width: 1280px) { .hero-ctrl { right: calc((100vw - var(--wrap)) / 2 + var(--gut)); } }
.hero-arrow {
  width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(14, 12, 10, .4); color: var(--ink);
  border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: border-color .2s;
}
.hero-arrow:hover { border-color: var(--gold); }
.hero-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hero-dots { display: flex; gap: 2px; }
.hero-dots button { width: 32px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.hero-dots button::after { content: ''; position: absolute; left: 4px; right: 4px; top: 21px; height: 2px; background: rgba(241, 233, 220, .3); transition: background-color .3s; }
.hero-dots button::before { content: ''; position: absolute; left: 8px; right: 8px; top: 21px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; z-index: 1; }
.hero-dots button[aria-current="true"]::before { transform: scaleX(1); }
.hero[data-playing] .hero-dots button[aria-current="true"]::before { animation: fill var(--auto, 6s) linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-compact .hero-slide { min-height: clamp(380px, 58vh, 560px); display: flex; }
.hero-compact .hero-title { font-size: clamp(32px, 5vw, 58px); }
.hero-compact .hero-body { padding-bottom: clamp(56px, 8vh, 88px); }

.hero-split { background: var(--bg); }
.hero-split .hero-slide { display: grid; grid-template-columns: 1fr 1fr; min-height: min(92svh, 860px); }
.hero-split .hero-slide::after { display: none; }
.hero-split .hero-pic { position: relative; }
.hero-split .hero-body { justify-content: center; padding-top: 140px; }

@media (max-width: 719px) {
  .hero-full .hero-slide { min-height: 70vh; min-height: 70svh; }
  .hero-compact .hero-slide { min-height: 52vh; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(10, 8, 6, .95) 0%, rgba(10, 8, 6, .55) 55%, rgba(10, 8, 6, .25) 100%); }
  .hero-body { padding-bottom: 84px; }
  .hero-ctrl { left: var(--gut); right: auto; bottom: 18px; }
  .hero-arrow { display: none; }
  .hero-split .hero-slide { grid-template-columns: 1fr; }
  .hero-split .hero-pic { min-height: 42vh; order: -1; }
  .hero-split .hero-body { padding-top: 32px; }
}

/* ---------- หัวของแต่ละส่วน ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 {
  font-size: clamp(28px, 4vw, 48px); line-height: 1.4; color: #fbf5ea;
}
.sec-head h2::before {
  content: ''; display: block; width: 48px; height: 1px; background: var(--gold); margin-bottom: 22px;
}
.sec-head p { margin-top: 18px; color: var(--muted); font-size: 18px; font-weight: 300; }

/* ---------- ข้อความยาว ---------- */
.prose { color: #ddd3c3; font-weight: 300; font-size: 17px; line-height: 1.85; }
.prose p { margin-bottom: 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--gold-hi); text-underline-offset: 3px; }
.prose h3 { font-size: 21px; color: var(--ink); margin: 1.8em 0 .6em; font-weight: 600; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line-soft); }
.prose li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 8px; height: 1px; background: var(--gold); }
.table { overflow-x: auto; margin: 0 0 1.4em; }
.prose table { width: 100%; border-collapse: collapse; min-width: 420px; }
.prose td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose td:last-child { text-align: right; color: var(--gold-hi); white-space: nowrap; padding-right: 0; font-weight: 400; }
.prose tr:first-child td { border-top: 1px solid var(--line); }

.richtext.is-narrow { max-width: 760px; }
.richtext h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 28px; color: #fbf5ea; }
.richtext h2::before { content: ''; display: block; width: 48px; height: 1px; background: var(--gold); margin-bottom: 22px; }

/* ---------- จุดเด่น ---------- */
.features {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1px;
  grid-template-columns: repeat(2, 1fr); background: var(--line-soft); border: 1px solid var(--line-soft);
}
@media (min-width: 480px) and (max-width: 767px) { .features { grid-template-columns: repeat(min(var(--cols), 3), 1fr); } }
@media (min-width: 768px) { .features { grid-template-columns: repeat(var(--cols), 1fr); } }
@media (max-width: 479px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--bg); padding: clamp(22px, 3vw, 36px); position: relative; }
.sec-alt .feature { background: var(--bg-2); }
.feature-no { position: absolute; top: clamp(18px, 2.4vw, 30px); right: clamp(18px, 2.4vw, 30px); font-size: 14px; color: var(--dim); letter-spacing: .06em; }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; margin-bottom: 22px; }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.feature h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink); }
.feature p { color: var(--muted); font-size: 16px; line-height: 1.7; font-weight: 300; }
@media (max-width: 479px) {
  .feature { padding: 18px 14px; }
  .feature-icon { width: 42px; height: 42px; margin-bottom: 14px; }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature h3 { font-size: 16px; }
  .feature p { font-size: 14px; }
  .feature-no { display: none; }
}

/* ---------- เกี่ยวกับ ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about.pic-right .about-pic { order: 2; }
.about.no-pic { grid-template-columns: minmax(0, 760px); }
.about-pic { margin: 0; position: relative; }
.about-pic::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line); pointer-events: none; }
.about.pic-right .about-pic::before { inset: 18px 18px -18px -18px; }
.about-pic img { position: relative; width: 100%; }
.about-text h2 { font-size: clamp(28px, 3.8vw, 46px); margin-bottom: 28px; color: #fbf5ea; }
.about-text h2::before { content: ''; display: block; width: 48px; height: 1px; background: var(--gold); margin-bottom: 22px; }
.about-text .btn { margin-top: 18px; }
@media (max-width: 767px) {
  .about, .about.pic-right { grid-template-columns: 1fr; }
  .about.pic-right .about-pic { order: 0; }
  .about-pic::before { display: none; }
}

/* ---------- สินค้า ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips button {
  font: 400 15px/1.4 var(--font); color: var(--muted); background: none; border: 1px solid var(--line-soft);
  padding: 0 16px; min-height: 40px; border-radius: 999px; cursor: pointer; transition: all .2s var(--ease);
}
.chips button:hover { color: var(--ink); border-color: var(--line); }
.chips button[aria-pressed="true"] { color: #17120a; background: var(--gold); border-color: var(--gold); }

/* การ์ดเรียงตามลำดับแถว รูปสูงตามสัดส่วนจริง (ไม่ครอป) การ์ดไม่ถูกยืดให้เท่ากัน */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.cards > [hidden] { display: none; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.card {
  background: var(--bg-2); border: 1px solid var(--line-soft); display: flex; flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sec-alt .card { background: var(--bg-3); }
.card:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8); }
.card-pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card-pic { overflow: hidden; }
.card-pic.is-natural { aspect-ratio: auto; }
.card:hover .card-pic img { transform: scale(1.03); }
.card.no-pic { border-top: 2px solid var(--gold-lo); }
.card.no-pic .card-body { padding-top: clamp(20px, 2.6vw, 32px); }
.card-body { padding: clamp(14px, 2vw, 24px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 14px; color: var(--gold); }
.card h3, .card h4, .card h2 { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink); }
.card h2 a { text-decoration: none; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.65; font-weight: 300; }
.card-ask {
  margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-hi); font-size: 15px; text-decoration: none; min-height: 44px;
}
.card-ask .arw { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s; }
.card-ask:hover .arw { transform: translateX(3px); }
.card-price { color: var(--gold-hi); font-weight: 600; }
.card-price s { color: var(--dim); margin-left: 8px; font-weight: 400; }
.card-sold { color: var(--bad); }
.card .btn { margin-top: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (max-width: 479px) {
  .card-body { padding: 12px; }
  .card p { font-size: 14px; }
  .card-ask { font-size: 14px; }
}

.rows { border-top: 1px solid var(--line); }
.row-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
}
.row-pic { width: 160px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.row-pic[style] img { object-fit: contain; }
.row-pic img { width: 100%; height: 100%; object-fit: cover; }
.row-item:not(:has(.row-pic)) { grid-template-columns: 1fr auto; }
.row-main h3 { font-size: 19px; margin: 2px 0 4px; }
.row-main p { color: var(--muted); font-size: 16px; font-weight: 300; }
.row-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 599px) {
  .row-item, .row-item:not(:has(.row-pic)) { grid-template-columns: 1fr; gap: 10px; }
  .row-pic { width: 100%; }
  .row-cta { align-items: flex-start; }
}

.cat-intro { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); margin-bottom: 40px; }
.cat-card { padding: 22px; display: flex; gap: 16px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cat-card h3 { font-size: 18px; margin-bottom: 6px; color: var(--gold-hi); }
.cat-card p { color: var(--muted); font-size: 15px; line-height: 1.65; font-weight: 300; }
.cat-pic { width: 88px; flex: none; }
.cat-pic img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- ผลงาน (ห้ามครอป ใช้สัดส่วนจริง) ---------- */
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { columns: 3; column-gap: 16px; } }
@media (min-width: 1024px) { .gal { columns: var(--cols); column-gap: 24px; } }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 480px) { .gal-item { margin-bottom: 16px; } }
@media (min-width: 1024px) { .gal-item { margin-bottom: 28px; } }
.gal-item > a { display: block; overflow: hidden; cursor: zoom-in; background: var(--bg-3); }
.gal-item img { width: 100%; height: auto; transition: transform .6s var(--ease), opacity .3s; }
.gal-item > a:hover img { transform: scale(1.03); }
.gal-item video { width: 100%; height: auto; background: #000; }
.gal-item figcaption { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.gal-item figcaption b { font-weight: 600; font-size: 16px; color: var(--ink); }
.gal-item figcaption span { color: var(--muted); font-size: 14px; line-height: 1.6; font-weight: 300; }
@media (max-width: 479px) {
  .gal-item figcaption b { font-size: 14px; }
  .gal-item figcaption span { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; color: var(--ink); }
.light::backdrop { background: rgba(6, 5, 4, .94); }
.light figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.light img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; }
.light figcaption { padding: 14px 4px 0; text-align: center; max-width: 640px; display: flex; flex-direction: column; gap: 4px; }
.light figcaption span { color: var(--muted); font-size: 15px; }
.light .light-x {
  position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(14, 12, 10, .7); color: var(--ink); font-size: 26px; cursor: pointer;
}

/* ---------- เสียงจากลูกค้า ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { margin: 0; padding: 32px; border: 1px solid var(--line-soft); background: var(--bg-2); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-size: 18px; font-weight: 300; color: #e6dccb; position: relative; padding-top: 28px; }
.quote blockquote::before { content: '\201C'; position: absolute; top: -14px; left: -2px; font-size: 64px; color: var(--gold); line-height: 1; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption > span { display: flex; flex-direction: column; }
.quote figcaption span span { color: var(--muted); font-size: 14px; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 899px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--ink); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 16px; height: 16px; position: relative; flex: none; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 7.5px; height: 1px; background: var(--gold); transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 40px 24px 0; color: var(--muted); font-weight: 300; overflow: hidden; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding: clamp(72px, 10vw, 140px) 0; text-align: center; position: relative; overflow: hidden; }
.cta-dark {
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(209, 173, 102, .12), transparent 70%),
    repeating-linear-gradient(95deg, rgba(209, 173, 102, .025) 0 1px, transparent 1px 7px),
    #0b0907;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.cta-soft { background: #efe6d6; color: #1a140d; }
.cta-band .wrap { display: flex; flex-direction: column; align-items: center; }

.cta-text { font-size: clamp(24px, 3.6vw, 42px); line-height: 1.45; font-weight: 600; max-width: 22em; margin-bottom: 36px; text-wrap: balance; }
.cta-dark .cta-text { color: #fbf5ea; }
.cta-soft .btn-line { color: #6b4e1b; border-color: rgba(107, 78, 27, .35); }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
.contact-info .prose { margin-bottom: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; flex: none; margin-top: 4px; }
.contact-list div { display: flex; flex-direction: column; min-width: 0; }
.contact-list small { font-size: 14px; color: var(--dim); }
.contact-list a, .contact-list span { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; font-size: 17px; }
.contact-list a:hover { color: var(--gold-hi); }
.hours { list-style: none; margin: 24px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); color: var(--muted); }
.hours .closed { color: var(--dim); }

.lead { display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); background: var(--bg-2); border: 1px solid var(--line-soft); }
.f { display: flex; flex-direction: column; gap: 8px; }
.f label { font-size: 15px; color: var(--muted); }
.lead input, .lead select, .lead textarea {
  font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: 2px; padding: 13px 14px; width: 100%; min-height: 50px; transition: border-color .2s;
}
.lead select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.lead textarea { resize: vertical; min-height: 120px; }
.lead input::placeholder, .lead textarea::placeholder { color: #6f6656; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: none; border-color: var(--gold); }
.lead .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { margin: 0; font-size: 15px; min-height: 1.5em; color: var(--muted); }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.contact-map { margin-top: clamp(40px, 6vw, 72px); }
.map-box { position: relative; }
.map { width: 100%; height: clamp(280px, 40vw, 420px); border: 0; display: block; filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.9); }
.map-open {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); color: var(--gold-hi); padding: 10px 16px; font-size: 15px; text-decoration: none; border: 1px solid var(--line);
}
.map-open .arw { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: #090807; border-top: 1px solid var(--line-soft); padding: clamp(56px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); }
.foot-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-bottom: 48px; border-bottom: 1px solid var(--line-soft); }
.foot-brand img { width: clamp(200px, 30vw, 300px); height: auto; }
.foot-tag { color: var(--gold); letter-spacing: .06em; font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 40px 0; }
@media (max-width: 767px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot h2 { font-size: 14px; color: var(--dim); font-weight: 600; margin-bottom: 12px; }
.foot p { margin: 0 0 6px; font-size: 15px; font-weight: 300; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold-hi); }
.foot-nav { display: flex; flex-direction: column; gap: 2px; }
.foot-nav a { font-size: 15px; padding: 4px 0; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.foot small { font-size: 14px; color: var(--dim); }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 50%; transition: border-color .2s; }
.social a:hover { border-color: var(--gold); }
.social svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; }

/* ---------- ปุ่มลอยมือถือ: ไลน์กับโทรเท่านั้น ---------- */
.float-contact { display: none; }
@media (max-width: 767px) {
  .float-contact {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0; z-index: 40;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; background: rgba(9, 8, 7, .94);
    border-top: 1px solid var(--line-soft);
  }
  .fc { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; text-decoration: none; font-size: 15px; font-weight: 600; border-radius: 2px; }
  .fc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
  .fc-line { background: #06c755; color: #fff; }
  .fc-line svg { fill: #fff; stroke: none; }
  .fc-call { border: 1px solid var(--line); color: var(--gold-hi); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ---------- บทความ ---------- */
.a-wrap { max-width: 780px; }
.crumbs { font-size: 14px; color: var(--dim); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.a-wrap h1 { font-size: clamp(30px, 4.4vw, 50px); color: #fbf5ea; }
.a-meta { color: var(--dim); font-size: 14px; margin-top: 12px; }
.a-cover, .a-fig { margin: 32px 0; }
.a-fig figcaption { color: var(--dim); font-size: 14px; margin-top: 8px; }
.a-lead { font-size: 20px; color: var(--ink); font-weight: 300; }
.a-toc { border: 1px solid var(--line-soft); padding: 20px 24px; margin: 28px 0; }
.a-body h2 { font-size: 28px; margin: 1.6em 0 .6em; color: #fbf5ea; }
.a-body blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--gold); }
.a-embed { margin-top: 48px; }
.a-embed h3 { margin-bottom: 18px; }
.a-cta { margin: 40px 0; padding: 28px; border: 1px solid var(--line); text-align: center; }

/* ---------- อนิเมชัน: สังเกตได้แต่ไม่รบกวน ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.hero-slide.is-on .hero-body > :not(.hero-title) { animation: rise .8s var(--ease) both; }
.hero-slide.is-on .hero-body > .hero-sub { animation-delay: .35s; }
.hero-slide.is-on .hero-body > .btn { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-pic img { transform: none !important; }
}

/* ---------- พื้นที่กดบนมือถืออย่างน้อย 44px ---------- */
.logo { min-height: 44px; }
.hero-dots button { width: 44px; }
.hero-dots button::after { left: 8px; right: 8px; }
.chips button { min-height: 44px; }
.contact-list a, .foot p a, .foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot p { margin: 0; }
.foot-nav { gap: 0; }
.foot-nav a { padding: 0; }

/* =========================================================
   ลูกเล่นเพิ่มเติม — สังเกตได้แต่ไม่รบกวน ปิดทั้งหมดเมื่อผู้ใช้ตั้งลดการเคลื่อนไหว
   ========================================================= */

/* ผิวกระดาษ/ไม้จางๆ ทั้งหน้า ให้พื้นดำดูมีเนื้อ ไม่แบน */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* เส้นทองบอกความคืบหน้าการอ่าน */
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* หัวข้อแบนเนอร์โผล่ทีละช่วงจากใต้เส้น (เผื่อที่ให้สระบน-ล่างไม่โดนตัด) */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .04em .2em; margin: -.14em -.04em -.2em; }
.hero-title .w > span { display: inline-block; }
.hero-slide.is-on .hero-title .w > span { animation: word 1s var(--ease) both; animation-delay: calc(var(--i) * 90ms + .1s); }
@keyframes word { from { transform: translateY(110%); } }

/* ชวนเลื่อนลง */
.hero-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--muted);
}
.hero-cue i { width: 1px; height: 44px; background: rgba(241, 233, 220, .18); position: relative; overflow: hidden; }
.hero-cue i::after { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 719px) { .hero-cue { display: none; } }

/* เส้นทองหน้าหัวข้อ ลากออกตอนเลื่อนถึง */
.js .sec-head[data-reveal] h2::before, .js .about-text[data-reveal] h2::before, .js .richtext[data-reveal] h2::before {
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .15s;
}
.js .is-in h2::before { transform: scaleX(1); }

/* รูปเกี่ยวกับร้าน เปิดม่านจากล่างขึ้นบน */
.js .about-pic[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.js .about-pic[data-reveal] img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js .about-pic[data-reveal].is-in { clip-path: inset(-40px); }
.js .about-pic[data-reveal].is-in img { transform: none; }

/* ปุ่มทอง มีแสงวิ่งผ่านตอนชี้ */
.btn-gold { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 248, 225, .55), transparent);
}
.btn-gold:hover::after { transform: translateX(120%) skewX(-20deg); transition: transform .8s var(--ease); }

/* แสงทองตามเมาส์บนการ์ด */
.card, .feature, .cat-card, .quote, .lead { position: relative; }
.card::before, .feature::before, .cat-card::before, .quote::before, .lead::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(209, 173, 102, .09), transparent 70%);
}
.card:hover::before, .feature:hover::before, .cat-card:hover::before, .quote:hover::before, .lead:hover::before { opacity: 1; }
.feature-icon { transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease); }
.feature:hover .feature-icon { background: rgba(209, 173, 102, .1); border-color: var(--gold); transform: rotate(-8deg); }

/* ผลงาน: ชี้แล้วขึ้นไอคอนขยาย */
.gal-item > a { position: relative; }
.gal-item > a::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  border: 1px solid rgba(234, 211, 154, .7); background: rgba(14, 12, 10, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ead39a' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 22px no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gal-item > a:hover::after { opacity: 1; transform: none; }
.gal-item > a:hover img { opacity: .85; }

/* แถบชื่อสินค้าวิ่งช้าๆ */
.sec-products { padding-top: 0; }
.marquee { overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 22px 0; margin-bottom: var(--sec); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(20px, 2.4vw, 30px); font-weight: 300; color: var(--muted); white-space: nowrap; }
.marquee svg { width: 12px; height: 12px; fill: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* สายกีตาร์ในแถบชวนติดต่อ */
.cta-band { touch-action: pan-y; }
.strings { display: block; width: 100%; height: clamp(70px, 9vw, 110px); margin: -24px 0 36px; overflow: visible; cursor: grab; }
.strings path { fill: none; stroke: var(--gold); opacity: .45; vector-effect: non-scaling-stroke; transition: opacity .4s; }
.cta-soft .strings path { stroke: #8a6a2f; }

/* ขั้นตอน: เส้นเวลาที่สว่างขึ้นตามการเลื่อน */
.steps { position: relative; margin: 8px 0 1.6em; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.steps-line { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1px; background: var(--line-soft); }
.steps-line i { position: absolute; inset: 0; background: linear-gradient(var(--gold-hi), var(--gold)); transform: scaleY(var(--p, 0)); transform-origin: top; }
.prose .steps li { display: flex; align-items: center; gap: 22px; padding: 10px 0; border: 0; }
.prose .steps li::before { display: none; }
.step-no {
  position: relative; z-index: 1; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; color: var(--dim); background: var(--bg); border: 1px solid var(--line-soft);
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease);
}
.sec-alt .step-no { background: var(--bg-2); }
.step-text { color: var(--dim); transition: color .4s var(--ease); }
.steps li.is-lit .step-no { color: #17120a; background: var(--gold); border-color: var(--gold); transform: scale(1.04); }
.steps li.is-lit .step-text { color: var(--ink); }

/* กล่องดูรูปเต็ม */
.light { overflow: visible; }
.light img.is-in { animation: lightIn .45s var(--ease); }
@keyframes lightIn { from { opacity: 0; transform: scale(.97); } }
.light-nav {
  position: fixed; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(14, 12, 10, .7); color: var(--ink); cursor: pointer;
}
.light-nav[data-d="-1"] { left: 16px; }
.light-nav[data-d="1"] { right: 16px; }
.light-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.light-nav:hover { border-color: var(--gold); }
.light.single .light-nav { display: none; }
.light-count { position: fixed; top: 26px; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--muted); letter-spacing: .1em; }
@media (max-width: 719px) { .light-nav { top: auto; bottom: 18px; margin: 0; } }

@media (prefers-reduced-motion: reduce) {
  .hero-pic { transform: none !important; }
  .js .about-pic[data-reveal] { clip-path: none; }
  .js .about-pic[data-reveal] img, .js .sec-head[data-reveal] h2::before, .js .about-text[data-reveal] h2::before, .js .richtext[data-reveal] h2::before { transform: none; }
  .marquee-track { animation: none; }
  .steps-line i { transform: scaleY(1); }
}

/* รูปที่ขยายรอเผย ห้ามดันหน้ากว้างเกินจอ */
main { overflow-x: clip; }
@media (max-width: 767px) { .about-pic { overflow: hidden; } }

.cat-lead { display: flex; gap: 18px; align-items: center; max-width: 720px; margin: calc(clamp(36px, 5vw, 64px) * -0.55) 0 clamp(32px, 4vw, 48px); }
.cat-lead p { color: var(--muted); font-size: 18px; font-weight: 300; margin: 0; }
.cat-lead .cat-pic { width: 96px; }


/* =========================================================
   ร้านค้า (แพ็ก 2,999) — ตะกร้า หน้าสินค้า checkout ชำระเงิน ตรวจสถานะ
   ========================================================= */
.btn-line, .btn-ghost { background: transparent; border-color: var(--line); color: var(--gold-hi); }
.btn-line:hover, .btn-ghost:hover { background: rgba(209, 173, 102, .08); border-color: var(--gold); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn svg, .link-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.btn[disabled], .btn.is-off { opacity: .45; cursor: not-allowed; }

/* ตะกร้าบนหัวเว็บ */
.nav-cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); margin-left: auto; flex: none; }
.nav-cart svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-cart:hover { color: var(--gold-hi); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #17120a; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.nav nav .nav-extra { display: none; }
@media (min-width: 1180px) { .nav-cart { order: 3; margin-left: 4px; } .nav-in nav { margin-left: auto; } }
@media (max-width: 1179px) { .nav nav .nav-extra { display: block; } .nav-cart { margin-right: 4px; } }

/* การ์ดสินค้า */
.card-link { display: block; }
.card-pic { position: relative; }
.card-badge { position: absolute; top: 10px; left: 10px; background: var(--bg); color: var(--gold-hi); border: 1px solid var(--line); font-size: 13px; padding: 2px 10px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--gold-hi); }
.card-price { font-size: 18px; }
.card-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.card-price.is-ask { font-size: 15px; font-weight: 400; color: var(--muted); }
.row-main h3 a { text-decoration: none; }

/* โครงหน้าร้าน */
.shop-page { padding-top: calc(var(--sec) + 24px); }
.shop-page h1, .pd h1 { font-size: clamp(28px, 4vw, 44px); color: #fbf5ea; margin-bottom: 28px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.box { background: var(--bg-2); border: 1px solid var(--line-soft); padding: clamp(18px, 2.4vw, 28px); margin: 0 0 20px; }
.box h2 { font-size: 20px; margin-bottom: 16px; color: var(--ink); }
.box h3 { font-size: 17px; margin: 18px 0 10px; }
.narrow { max-width: 760px; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.5; margin-top: 3px; }
.warn { color: var(--bad); }
.loading { color: var(--dim); }
.err { color: var(--bad); font-size: 14px; display: block; }
.err:empty { display: none; }
.form-msg { margin: 12px 0 0; font-size: 15px; min-height: 0; }
.form-msg.bad { color: var(--bad); }
.form-msg.ok { color: var(--ok); }
.link, .link-btn { color: var(--gold-hi); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link { display: inline-block; margin-top: 12px; font-size: 15px; }

/* สรุปยอด */
.sum { margin: 16px 0 0; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; text-align: right; }
.sum-disc dd { color: var(--ok); }
.sum-total { border-bottom: 0 !important; padding-top: 14px !important; }
.sum-total dt { color: var(--ink); font-weight: 600; }
.sum-total dd { font-size: 24px; font-weight: 700; color: var(--gold-hi); }
.free-bar { margin: 14px 0; font-size: 15px; }
.free-bar p { margin-bottom: 8px; }
.free-bar span { display: block; height: 4px; background: var(--line-soft); overflow: hidden; }
.free-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transition: transform .5s var(--ease); }

/* ตะกร้า */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 899px) { .cart { grid-template-columns: 1fr; } }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line .pic { display: block; background: var(--bg-3); aspect-ratio: 1; overflow: hidden; }
.cart-line .pic img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h3 { font-size: 17px; margin-bottom: 4px; }
.cart-line h3 a { text-decoration: none; }
.cart-line small { display: block; color: var(--muted); font-size: 14px; }
.cart-line .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.cart-line .amount { color: var(--gold-hi); }
.cart-line .remove { background: none; border: 0; color: var(--dim); font: inherit; font-size: 14px; cursor: pointer; padding: 8px 0 0; text-decoration: underline; min-height: 44px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-soft); }
.qty button { width: 44px; height: 44px; background: none; border: 0; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.qty button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.qty input { width: 52px; height: 44px; text-align: center; background: transparent; border: 0; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); color: var(--ink); font: 400 16px var(--font); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-empty { text-align: center; padding: 60px 0; }
.cart-empty .empty-icon svg { width: 56px; height: 56px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.cart-empty p { color: var(--muted); }
.cart-empty .btn { margin-top: 12px; }

/* checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 899px) { .checkout { grid-template-columns: 1fr; } }
fieldset.box { margin: 0 0 20px; min-width: 0; }
fieldset.box legend { float: left; width: 100%; font-size: 20px; font-weight: 600; margin-bottom: 16px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 599px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; clear: both; }
.field label, .coupon label { font-size: 15px; color: var(--muted); }
.field input, .field select, .field textarea, .coupon input {
  font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: 2px; padding: 12px 14px; width: 100%; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus, .coupon input:focus { outline: none; border-color: var(--gold); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.hint { font-size: 14px; color: var(--dim); }
.pay-list { display: grid; gap: 10px; clear: both; }
.pay-opt { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line-soft); cursor: pointer; transition: border-color .2s; }
.pay-opt:has(input:checked) { border-color: var(--gold); background: rgba(209, 173, 102, .06); }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 3px; flex: none; }
.pay-opt b { display: block; }
.pay-opt small { color: var(--muted); font-size: 14px; }
.pay-opt.is-off { opacity: .5; cursor: not-allowed; }
.mini-lines { list-style: none; margin: 0; padding: 0; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mini-lines span { display: flex; flex-direction: column; }
.mini-lines small { color: var(--muted); font-size: 14px; }
.coupon { margin: 16px 0 0; }
.coupon-row { display: flex; gap: 8px; margin-top: 6px; }

/* หน้าคำสั่งซื้อ */
.thanks { text-align: center; margin-bottom: 32px; }
.thanks-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); margin-bottom: 16px; }
.thanks-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
.thanks h1 { margin-bottom: 10px; }
.order-no { color: var(--gold-hi); font-size: 20px; letter-spacing: .04em; }
.status-pill { display: inline-block; padding: 4px 14px; border: 1px solid var(--line); color: var(--gold-hi); font-size: 15px; margin-top: 6px; }
.st-paid, .st-shipping, .st-shipped, .st-done { color: var(--ok); border-color: rgba(143, 199, 154, .4); }
.st-cancelled, .st-refunded { color: var(--bad); border-color: rgba(240, 160, 142, .4); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 899px) { .order-grid { grid-template-columns: 1fr; } }
.pay-amount { display: flex; flex-direction: column; margin-bottom: 8px; }
.pay-amount small { color: var(--muted); }
.pay-amount b { font-size: clamp(32px, 5vw, 44px); color: var(--gold-hi); line-height: 1.3; }
.qr-box { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; margin: 18px 0; }
@media (max-width: 599px) { .qr-box { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.qr { width: 200px; height: 200px; background: #fff; padding: 12px; }
.qr svg { width: 100%; height: 100%; }
.qr-box p { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.banks { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.banks li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-soft); }
.bank-logo img { width: 40px; height: 40px; border-radius: 8px; }
.banks span { display: flex; flex-direction: column; }
.banks small { color: var(--muted); font-size: 14px; }
.banks b { font-size: 18px; letter-spacing: .04em; }
.slip-form { border-top: 1px solid var(--line-soft); margin-top: 18px; padding-top: 4px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 24px; border: 1px dashed var(--line); text-align: center; cursor: pointer; margin-bottom: 14px; }
.drop svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.drop small { color: var(--dim); }
.drop input { font-size: 15px; margin-top: 8px; max-width: 100%; }
.slip-preview { max-height: 320px; width: auto; margin: 0 auto 14px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px; }
.timeline li::before { content: ''; position: absolute; left: -27px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.timeline li.is-now::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(209, 173, 102, .2); }
.timeline b { display: block; }
.timeline time { color: var(--dim); font-size: 14px; }
.timeline p { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.tracking { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.tracking svg, .ship-to svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.5; flex: none; }
.ship-to { display: flex; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--muted); }
.help-box p { color: var(--muted); }
.help-box .btn { margin-top: 10px; }
.track-form .btn { margin-top: 4px; }

/* หน้ารายละเอียดสินค้า */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 899px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-gallery { position: sticky; top: 96px; }
@media (max-width: 899px) { .pd-gallery { position: static; } }
.pd-main { margin: 0; background: var(--bg-2); }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 1px solid var(--line-soft); background: var(--bg-2); cursor: pointer; overflow: hidden; }
.pd-thumbs button[aria-current="true"] { border-color: var(--gold); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { color: var(--gold); font-size: 15px; margin-bottom: 6px; }
.pd h1 { margin-bottom: 10px; }
.pd-sku { color: var(--dim); font-size: 14px; }
.pd-price { font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--gold-hi); margin: 10px 0 6px; }
.pd-price s { font-size: 18px; color: var(--dim); font-weight: 400; margin-left: 10px; }
.pd-stock { display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 15px; }
.pd-stock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pd-stock.is-out { color: var(--bad); }
.pd-short { color: #ddd3c3; font-weight: 300; margin-top: 16px; }
.pd-opts { border: 0; padding: 0; margin: 20px 0 0; }
.pd-label { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line-soft); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--gold); color: var(--gold-hi); }
.opt:has(input[data-out]) { opacity: .5; text-decoration: line-through; }
.opt-pic { width: 32px; height: 32px; object-fit: cover; }
.pd-buy { display: grid; gap: 12px; margin-top: 24px; }
.pd-qty { display: flex; align-items: center; gap: 16px; }
.pd-help { display: grid; gap: 2px; margin-top: 24px; border-top: 1px solid var(--line-soft); }
.pd-help a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--muted); font-size: 15px; }
.pd-help a:hover b { color: var(--gold-hi); }
.pd-help svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; flex: none; margin-top: 2px; }
.pd-help b { display: block; color: var(--ink); font-weight: 600; }
.pd-detail { margin-top: clamp(48px, 7vw, 96px); max-width: 820px; }
.pd-detail h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.specs { margin: 0 0 24px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.pd-related { margin-top: clamp(56px, 8vw, 110px); }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(92vw, 520px);
  display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 18px; background: var(--bg-3); border: 1px solid var(--gold); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); }
.toast a { color: var(--gold-hi); white-space: nowrap; font-weight: 600; }
@media (min-width: 768px) { .toast { bottom: 32px; } }

/* เมนูจอใหญ่ 6 หน้า: ห้ามตัดบรรทัด จอกลางซ่อนชื่อร้านข้างโลโก้ให้เมนูมีที่ */
.nav nav a { white-space: nowrap; }
@media (min-width: 1180px) and (max-width: 1439px) {
  .logo span { display: none; }
  .nav nav a { padding: 10px 10px; font-size: 15px; }
  .nav nav a[aria-current="page"]::after { left: 10px; right: 10px; }
  .nav nav .nav-cta { margin-left: 6px; padding: 9px 14px; }
}
.grid-2, .pay-list { clear: both; }
.coupon-row .btn { white-space: nowrap; flex: none; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs { gap: 4px 6px; margin-bottom: 8px; }
