/* iPrint shop · v7 — ฟีลแบบ editorial studio: พื้นฟ้าอ่อน ตัวดำ เส้นบาง หัวข้อใหญ่น้ำหนักกลาง คำเน้นตัวเอียงเซริฟสีฟ้า
   ปุ่มหลักเป็นแคปซูลดำ + วงกลมไลน์ · ลิงก์ขีดเส้นใต้ + ↗ · รูปมุมโค้ง 12.6px */
:root {
  --bg: #edf4fb; --ink: #0b0b0c; --muted: #5f6672; --hair: #c9d3df; --soft: #e3ecf6; --accent: #2f6fed;
  --line-green: #06c755; --r: 12.6px; --wrap: 1166.4px; --gut: 64.8px; --nav-h: 68.4px;
  --sans: "Inter Tight", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Noto Serif Thai", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10.8px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.4px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
h2 em, h1 em, .big em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.01em; }
sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-left: .04em; font-weight: 500; }
.keep { display: inline-block; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gut))); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2.7px; border-radius: 5.4px; }
.skip { position: absolute; left: 10.8px; top: -54px; z-index: 100; padding: 9px 14.4px; border-radius: 899.1px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 10.8px; }

/* ---------- ปุ่ม / ลิงก์ ---------- */
.btn-pill { display: inline-flex; align-items: center; gap: 12.6px; min-height: 43.2px; padding: 5.4px 5.4px 5.4px 19.8px; border: 0; border-radius: 899.1px; background: var(--ink); color: #fff; font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s, transform .15s var(--ease); }
.btn-pill:hover { background: #262629; }
.btn-pill:active { transform: scale(.98); }
.pill-ic { display: grid; place-items: center; width: 32.4px; height: 32.4px; border-radius: 50%; background: var(--line-green); color: #fff; transition: transform .25s var(--ease); }
.btn-pill:hover .pill-ic { transform: rotate(-12deg) scale(1.06); }
.btn-pill-lg { min-height: 50.4px; padding-left: 23.4px; font-size: 15.3px; }
.btn-pill-lg .pill-ic { width: 39.6px; height: 39.6px; }
.line-ic { display: block; width: 18px; height: 18px; background: currentColor; -webkit-mask: url(icons/line.svg) center / contain no-repeat; mask: url(icons/line.svg) center / contain no-repeat; }
.btn-pill-lg .line-ic { width: 20.7px; height: 20.7px; }
.tlink { display: inline-flex; align-items: center; gap: 5.4px; min-height: 39.6px; color: var(--ink); font: 500 14px/1.2 var(--sans); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(50% + .85em) / 100% 1px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.tlink span { display: inline-block; font-size: .8em; transition: transform .25s var(--ease); }
.tlink:hover { background-size: 0 1px; background-position: 100% calc(50% + .85em); }
.tlink:hover span { transform: translate(2px, -2px); }
.tlink-line { color: #067a3a; }

/* ---------- แถบบน ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(237, 244, 251, .82); backdrop-filter: saturate(1.3) blur(10.8px); -webkit-backdrop-filter: saturate(1.3) blur(10.8px); }
.nav-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--nav-h); }
.brand { justify-self: start; color: var(--ink); text-decoration: none; font: 600 19.8px/1 var(--sans); letter-spacing: -.03em; }
.nav-pill { display: flex; gap: 2px; padding: 4.5px; border-radius: 899.1px; background: var(--ink); }
.nav-pill a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16.2px; border-radius: 899.1px; color: #c4cad3; font-weight: 500; font-size: 14px; text-decoration: none; transition: color .2s, background-color .2s; }
.nav-pill a:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.nav-in > .btn-pill { justify-self: end; }

/* ---------- hero: หัวข้อ + แถวการ์ดสินค้าเลื่อนไม่หยุด (หยุดเมื่อชี้ / กดปุ่มหยุด) ---------- */
.hero { overflow: hidden; padding: 36px 0 64.8px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28.8px 57.6px; align-items: end; }
.hero-h { font-size: clamp(39.6px, 5.8vw, 86.4px); line-height: 1.02; letter-spacing: -.04em; }
.hero-h em { display: inline-block; white-space: nowrap; }
.hero-side p { margin: 0; max-width: 423px; color: var(--muted); font-size: 15.3px; line-height: 1.55; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10.8px 21.6px; margin-top: 21.6px; }

.mq { position: relative; margin-top: 50.4px; }
.mq::before, .mq::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: min(10.8vw, 144px); pointer-events: none; }
.mq::before { left: 0; background: linear-gradient(to right, var(--bg), rgba(237, 244, 251, 0)); }
.mq::after { right: 0; background: linear-gradient(to left, var(--bg), rgba(237, 244, 251, 0)); }
.mq-track { display: flex; width: max-content; animation: mqScroll 44s linear infinite; }
.mq:hover .mq-track, .mq:focus-within .mq-track, .mq.is-paused .mq-track { animation-play-state: paused; }
@keyframes mqScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-set { display: flex; }
.mq-card { position: relative; flex: none; width: clamp(180px, 17.1vw, 248.4px); aspect-ratio: 4 / 5; margin: 0 9px; overflow: hidden; border-radius: var(--r); background: #dfe8f2; color: var(--ink); text-decoration: none; transition: transform .35s var(--ease); }
.mq-card img { width: 100%; height: 100%; object-fit: cover; }
.mq-card:hover, .mq-card:focus-visible { transform: scale(.94); }
.mq-cap { position: absolute; left: 9px; right: 9px; bottom: 9px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12.6px; border-radius: 10.8px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(7.2px); backdrop-filter: blur(7.2px); font-size: 12.6px; line-height: 1.2; transition: opacity .3s; }
.mq-cap b { font-weight: 600; white-space: nowrap; }
.mq-cap .price, .mq-sub { margin: 0; color: var(--muted); font-size: 11.2px; }
.mq-hover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7.2px; padding: 14.4px; background: rgba(11, 11, 12, .28); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); color: #fff; text-align: center; opacity: 0; transition: opacity .3s; }
.mq-hover b { font-size: 19.8px; font-weight: 600; letter-spacing: -.02em; }
.mq-hover i { font-style: normal; font-size: 13px; font-weight: 500; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .7); }
.mq-card:hover .mq-hover, .mq-card:focus-visible .mq-hover { opacity: 1; }
.mq-card:hover .mq-cap, .mq-card:focus-visible .mq-cap { opacity: 0; }
.mq-btn { position: absolute; right: max(14.4px, calc((100vw - var(--wrap)) / 2)); bottom: -52.2px; z-index: 3; display: grid; place-items: center; width: 39.6px; height: 39.6px; border: 1px solid var(--hair); border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s; }
.mq-btn:hover { border-color: var(--ink); background: #fff; }
.mq-btn span { width: 10.8px; height: 10.8px; border-left: 3.2px solid currentColor; border-right: 3.2px solid currentColor; }
.mq-btn[aria-pressed="true"] span { border: 0; width: 0; height: 0; border-left: 9.9px solid currentColor; border-top: 6.3px solid transparent; border-bottom: 6.3px solid transparent; margin-left: 2.7px; }

@keyframes rise { from { opacity: 0; transform: translateY(21.6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero[data-enter] .hero-h { animation: rise .8s var(--ease) both; }
.hero[data-enter] .hero-side { animation: rise .8s var(--ease) .12s both; }
.hero[data-enter] .mq { animation: fade 1.1s var(--ease) .25s both; }


/* ---------- statement ---------- */
.statement { padding: 135px 0; }
.big { max-width: 1008px; margin: 0 auto; text-align: center; font: 400 clamp(28.8px, 4.1vw, 59.4px)/1.16 var(--sans); letter-spacing: -.03em; }
.big em { white-space: nowrap; }
.pill-img { display: inline-block; width: 2.5em; height: .92em; overflow: hidden; border-radius: 899.1px; vertical-align: -.1em; background: #dfe8f2; }
.pill-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pill-img:hover img { transform: scale(1.06); }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: 100.8px 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 36px; padding-bottom: 28.8px; margin-bottom: 36px; border-bottom: 1px solid var(--hair); }
.head h2, .sec-head h2, .close h2 { font-size: clamp(36px, 4.1vw, 59.4px); letter-spacing: -.035em; }
.head p { max-width: 486px; margin: 12.6px 0 0; color: var(--muted); font-size: 14.8px; }

/* about + facts */
.about-top { display: grid; grid-template-columns: 1fr 2.6fr; }
.about-top > * { grid-column: 2; }
.lede { font-size: clamp(23.4px, 2.7vw, 37.8px); line-height: 1.2; letter-spacing: -.03em; }
.lede span { color: #6b7380; }
.about-top .tlink { justify-self: start; margin-top: 23.4px; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: end; margin-top: 64.8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--hair); }
.facts > div { padding: 19.8px 18px 18px 0; border-bottom: 1px solid var(--hair); }
.facts > div:nth-child(even) { padding-left: 19.8px; border-left: 1px solid var(--hair); }
.facts dt { font: 400 clamp(28.8px, 3.1vw, 41.4px)/1 var(--sans); letter-spacing: -.03em; }
.facts dd { margin: 9px 0 0; color: var(--muted); font-size: 12.6px; }
.about-pic { overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 2; }
.about-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.about-pic:hover img { transform: scale(1.03); }

/* สินค้า */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 57.6px 25.2px; }
.work-meta { display: flex; justify-content: space-between; gap: 14.4px; margin-bottom: 10.8px; color: var(--muted); font-size: 12.2px; }
.work-meta .price { margin: 0; color: var(--ink); font-weight: 500; }
.work-pic { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: #dfe8f2; }
.work-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-pic:hover img { transform: scale(1.03); }
.work-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 14.4px; margin-top: 14.4px; }
.work-foot h3 { font-size: clamp(19.8px, 1.8vw, 25.2px); letter-spacing: -.025em; }
.work-foot h3 a { text-decoration: none; }
.work-foot h3 a:hover { color: var(--accent); }
.work-foot span { color: var(--muted); font-size: 13.5px; text-align: right; }
.work-act { display: flex; gap: 3.6px 23.4px; flex-wrap: wrap; margin-top: 3.6px; }

/* วิธีสั่ง */
.track { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 46.8px; row-gap: 10.8px; padding: 16.2px 0 39.6px; background: repeating-linear-gradient(to right, var(--hair) 0 1px, transparent 1px calc(100% / 8)); }
.track::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: var(--hair); }
.bar { display: flex; align-items: center; padding: 0 14.4px; border-radius: 3.6px; background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; }
.b1 { grid-column: 1 / 3; grid-row: 1; }
.b2 { grid-column: 3 / 4; grid-row: 2; }
.b3 { grid-column: 4 / 7; grid-row: 3; }
.b4 { grid-column: 7 / 9; grid-row: 4; }
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25.2px; margin: 32.4px 0 0; padding: 0; list-style: none; }
.phases li { display: flex; flex-direction: column; gap: 7.2px; padding-top: 19.8px; border-top: 1px solid var(--hair); }
.phases small { color: var(--muted); font-size: 11.7px; }
.phases b { font-size: 19.8px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.phases span { color: var(--muted); font-size: 13.5px; }

/* ปิดท้าย */
.close { border-top: 1px solid var(--hair); }
.close-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 43.2px; }
.close p { max-width: 468px; margin: 16.2px 0 27px; color: var(--muted); font-size: 15.3px; }
.close-qr { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16.2px 16.2px 12.6px; border: 1px solid var(--hair); border-radius: var(--r); background: rgba(255, 255, 255, .7); }
.qr { width: 158.4px; height: 158.4px; }
.qr svg { display: block; width: 100%; height: 100%; }
.close-qr small { color: var(--muted); font-size: 11.7px; }

.foot { border-top: 1px solid var(--hair); padding: 27px 0 32.4px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 28.8px; color: var(--muted); font-size: 12.6px; }
.foot .brand { color: var(--ink); font-size: 16.2px; }
.credit { margin-left: auto; }
.mbar { display: none; }

/* ---------- หน้ารายละเอียดสินค้า ---------- */
.pd { padding: 28.8px 0 86.4px; }
.pd-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64.8px; align-items: start; }
.pd-pic { position: sticky; top: calc(var(--nav-h) + 14.4px); overflow: hidden; border-radius: 16.2px; background: #dfe8f2; }
.pd-pic img { width: 100%; aspect-ratio: 4 / 3.5; object-fit: cover; transition: transform .6s var(--ease); }
.pd-pic:hover img { transform: scale(1.03); }
.crumb { display: inline-flex; align-items: center; min-height: 39.6px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.crumb:hover { color: var(--ink); }
.pd h1 { font-size: clamp(36px, 4vw, 55.8px); letter-spacing: -.035em; }
.pd-tail { display: block; margin-top: 10.8px; color: var(--muted); font-size: 16.2px; font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.pd .lead { margin: 16.2px 0 0; color: var(--muted); font-size: 14.8px; }
.pd .price { display: inline-block; margin: 18px 0 0; padding: 8.1px 16.2px; border: 1px solid var(--ink); border-radius: 899.1px; font-size: 14px; font-weight: 500; }
.pick { display: grid; gap: 19.8px; margin-top: 27px; }
.pick-g { margin: 0; padding: 0; border: 0; min-width: 0; }
.pick-g legend, .pick-l { display: block; margin-bottom: 9px; padding: 0; font-weight: 600; font-size: 13px; }
.pick-g legend i { font-style: normal; font-weight: 400; color: var(--muted); font-size: 11.7px; }
.opts { display: flex; flex-wrap: wrap; gap: 7.2px; }
.opt { display: inline-flex; align-items: center; gap: 9px; min-height: 39.6px; padding: 7.2px 16.2px; border: 1px solid var(--hair); border-radius: 899.1px; background: rgba(255, 255, 255, .55); color: var(--ink); font: 500 13.5px/1.25 var(--sans); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s; }
.opt:hover { border-color: var(--ink); }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt span { display: flex; flex-direction: column; }
.opt small { font-size: 11.2px; font-weight: 400; color: var(--muted); }
.opt[aria-pressed="true"] small { color: #c4cad3; }
.opt-img { padding-left: 5.4px; border-radius: 16.2px; }
.opt img { width: 43.2px; height: 32.4px; object-fit: cover; border-radius: 10.8px; flex: none; }
.pick-in { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pick-in input { width: 111.6px; min-height: 41.4px; padding: 0 16.2px; border: 1px solid var(--hair); border-radius: 899.1px; background: #fff; color: var(--ink); font: 500 14.4px var(--sans); }
.pick-in input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.pick-in em { font-style: normal; color: var(--muted); }
.pick-in .u { color: var(--muted); font-size: 13.5px; }
.pick-sum { margin-top: 25.2px; padding: 16.2px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pick-sum b { font-size: 12.2px; font-weight: 500; color: var(--muted); }
.pick-sum dl { display: grid; gap: 3.6px; margin: 9px 0 0; font-size: 13.5px; }
.pick-sum dl > div { display: flex; gap: 10.8px; }
.pick-sum dt { min-width: 117px; color: var(--muted); }
.pick-sum dd { margin: 0; font-weight: 500; }
.pd-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10.8px 23.4px; margin-top: 23.4px; }
.pd-note { margin: 12.6px 0 0; color: var(--muted); font-size: 12.6px; }
.sec-more { padding: 93.6px 0; border-top: 1px solid var(--hair); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14.4px 36px; padding-bottom: 25.2px; margin-bottom: 32.4px; border-bottom: 1px solid var(--hair); }
.sec-head h2 { font-size: clamp(30.6px, 3.4vw, 48.6px); }
.sec-head p { max-width: 378px; margin: 0; color: var(--muted); }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 39.6px 25.2px; }
.mgrid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcard-pic { overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 2; background: #dfe8f2; }
.mcard-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mcard:hover .mcard-pic img { transform: scale(1.03); }
.mcard h3 { margin: 14.4px 0 5.4px; font-size: 18.9px; letter-spacing: -.02em; }
.mcard p { margin: 0; color: var(--muted); font-size: 13px; }
.sec-oth { padding: 79.2px 0 93.6px; border-top: 1px solid var(--hair); }
.sec-oth h2 { font-size: clamp(27px, 2.7vw, 37.8px); margin-bottom: 25.2px; }
.oths { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.oth { display: flex; flex-direction: column; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 500; }
.oth img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10.8px; transition: transform .4s var(--ease); }
.oth:hover img { transform: translateY(-2.7px); }
.oth:hover span { color: var(--accent); }
.pd[data-enter] .pd-copy > * { animation: rise .7s var(--ease) both; }
.pd[data-enter] .pd-pic { animation: rise .8s var(--ease) .1s backwards; } /* backwards: จบแล้วไม่ค้าง transform (กรอบ 3D เต็มจอใช้ position: fixed ได้) */

/* ---------- แท็บเล็ต ---------- */
@media (max-width: 1100px) {
  :root { --gut: 36px; }
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .about-top { grid-template-columns: 1fr; }
  .about-top > * { grid-column: 1; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32.4px; }
  .pd-in { grid-template-columns: 1fr; gap: 32.4px; }
  .pd-pic { position: static; }
  .mgrid, .mgrid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ---------- มือถือ ---------- */
@media (max-width: 720px) {
  :root { --gut: 14.4px; --nav-h: 57.6px; }
  .nav-in { grid-template-columns: 1fr auto; }
  .nav-pill { display: none; }
  .hero { padding: 18px 0 50.4px; }
  .hero-h { font-size: 39.6px; }
  .hero-side p { font-size: 14.4px; }
  .hero-act .btn-pill { width: 100%; justify-content: space-between; }
  .mq { margin-top: 36px; }
  .mq-card { width: 57.6vw; max-width: 234px; margin: 0 6.3px; }
  .mq-btn { bottom: -48.6px; right: 14.4px; }
  .statement { padding: 79.2px 0; }
  .big { font-size: 27px; }
  .sec { padding: 72px 0; }
  .head { flex-direction: column; align-items: flex-start; padding-bottom: 21.6px; margin-bottom: 25.2px; }
  .head h2, .sec-head h2, .close h2 { font-size: 34.2px; }
  .about-grid { margin-top: 39.6px; }
  .works { grid-template-columns: 1fr; gap: 43.2px; }
  .work-foot { flex-direction: column; gap: 3.6px; }
  .work-foot span { text-align: left; }
  .track { display: none; }
  .phases { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .phases li { padding: 18px 0 19.8px; }
  .close-in { grid-template-columns: 1fr; }
  .close .btn-pill { width: 100%; justify-content: space-between; }
  .close-qr { display: none; }
  .credit { margin-left: 0; }
  .foot { padding-bottom: 93.6px; }
  .mbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 9px 14.4px calc(9px + env(safe-area-inset-bottom)); background: rgba(237, 244, 251, .9); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); border-top: 1px solid var(--hair); }
  .mbar .btn-pill { width: 100%; justify-content: space-between; }
  .mbar { transition: transform .3s var(--ease); }
  .mbar.off { transform: translateY(110%); }
  .pd { padding: 10.8px 0 57.6px; }
  .pd-pic img { aspect-ratio: 16 / 11; }
  .pd-act .btn-pill { width: 100%; justify-content: space-between; }
  .sec-more { padding: 64.8px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .mgrid, .mgrid.n4 { grid-template-columns: 1fr; }
  .oths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-in input { width: 97.2px; }
  .pick-sum dt { min-width: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mq { overflow-x: auto; }
  .mq-set[aria-hidden="true"], .mq-btn { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v10: ย่อทุกอย่าง 10% — จอสัมผัสยังคงปุ่ม / ลิงก์สูงอย่างน้อย 44px */
@media (pointer: coarse) {
  .btn-pill, .tlink, .opt, .nav-pill a, .crumb, .pick-in input { min-height: 44px; }
  .mq-btn { width: 44px; height: 44px; }
}

/* v11: การ์ด 2 สตูดิโอในเครือ (จาก iyadesign.com) แทนชื่อร้านตัวใหญ่ท้ายหน้า */
.studios { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 36px 0 44px; }
.studio { position: relative; display: block; overflow: hidden; padding: 27px; border-radius: 16px; background: #110e1d; border: 1px solid rgba(255, 255, 255, .12); color: #f6f3ff; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.studio::before { content: ""; position: absolute; width: 234px; height: 234px; right: -81px; top: -99px; border-radius: 50%; filter: blur(63px); opacity: .5; pointer-events: none; }
.studio.print::before { background: #3a86ff; }
.studio.design::before { background: #ff7a2f; }
a.studio:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -20px rgba(10, 8, 18, .6); }
.studio h3 { position: relative; margin: 0 0 4px; color: #f6f3ff; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.studio h3 span { font-weight: 300; }
.studio .sub { position: relative; margin: 0 0 16px; color: #b7b0cf; font-size: 14px; }
.studio ul { position: relative; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.studio li { padding: 5px 13px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 720px) { .studios { grid-template-columns: 1fr; padding: 28px 0 8px; } .studio h3 { font-size: 26px; } }

/* v12: ราคาเห็นชัด — แคปซูลดำตัวขาวบนการ์ดสินค้า · ราคาในแถวการ์ดเลื่อนเข้มขึ้น */
.work-meta { align-items: center; }
.work-meta .price { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; }
.mq-cap .price { color: var(--ink); font-size: 13px; font-weight: 600; }
.pd .price { background: var(--ink); color: #fff; border-color: var(--ink); font-size: 16px; font-weight: 600; }

/* v12: ฟอร์มส่งออเดอร์ (หน้าสินค้า) → เข้า Job Request */
.order { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair); }
.order-h { font-size: 24px; letter-spacing: -.02em; }
.order-src { margin: 8px 0 0; padding: 8px 14px; border-radius: 12px; background: #e3f7ea; color: #0b6b34; font-size: 14px; font-weight: 500; }
.of-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 18px; }
.of { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.of b { color: #c2410c; font-weight: 600; }
.of i { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.of-wide { grid-column: 1 / -1; }
.of input, .of textarea { width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid var(--hair); border-radius: 12px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans); }
.of textarea { resize: vertical; min-height: 84px; }
.of input:focus, .of textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.of-err { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff1ee; color: #b42318; font-size: 14.5px; font-weight: 500; }
.pill-ic-go { background: var(--accent); font: 600 20px/1 var(--sans); font-style: normal; }
button.btn-pill[disabled] { opacity: .6; cursor: progress; }
.order-ok { margin-top: 30px; padding: 26px 24px; border: 1px solid var(--hair); border-radius: 18px; background: #fff; }
.order-ok:focus { outline: none; }
.ok-k { margin: 0 0 6px; color: #0b6b34; font-size: 14px; font-weight: 600; }
.order-ok h2 { font-size: 28px; line-height: 1.25; }
.order-ok h2 em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }
.order-ok p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }
.order-ok .ok-line { color: #0b6b34; font-weight: 500; }
@media (max-width: 720px) { .of-grid { grid-template-columns: 1fr; } .work-meta .price { font-size: 14px; } }

.tlink-go { color: var(--accent); }

/* v13: ข้อความผิดพลาดใต้ช่องที่ต้องแก้ · แถบปุ่มล่างจอหายหลังส่งออเดอร์ · ช่องตัวเลขในมือถือ 16px (iOS ไม่ซูมตอนแตะ) */
.of-fe { display: block; margin-top: 2px; color: #b42318; font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.pick-f .of-fe { margin-top: 8px; }
.of-fe[hidden] { display: none; } /* v445: display:block ข้างบนทับ [hidden] — แก้ช่องแล้วข้อความแดงยังค้าง */
.of input[aria-invalid="true"], .pick-in input[aria-invalid="true"] { border-color: #d92d20; box-shadow: 0 0 0 1px #d92d20; }
.mbar.gone { display: none; }
@media (max-width: 720px) { .pick-in input { font-size: 16px; } }
.of-err .of-line { display: inline-flex; margin-top: 6px; font-weight: 600; }

/* v14: ตะกร้า (cart.js) — ปุ่มตะกร้าในแถบเมนู · หน้าตะกร้า /cart/ · ขั้นตอน · QR ส่งออเดอร์เข้าไลน์ */
.nav-r { justify-self: end; display: flex; align-items: center; gap: 9px; }
.cart-pill { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 43.2px; padding: 0 14.4px; border: 1px solid var(--hair); border-radius: 899.1px; background: rgba(255, 255, 255, .7); color: var(--ink); font: 500 14px/1 var(--sans); text-decoration: none; transition: border-color .2s, background-color .2s; }
.cart-pill:hover { border-color: var(--ink); background: #fff; }
.cart-ic { width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.1a2 2 0 0 1-2 1.9H8.2a2 2 0 0 1-2-1.9z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.1a2 2 0 0 1-2 1.9H8.2a2 2 0 0 1-2-1.9z'/%3E%3Cpath d='M9 8V6.5a3 3 0 0 1 6 0V8'/%3E%3C/svg%3E") center / contain no-repeat; }
.cart-pill b { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 600; }
.cart-pill.has b { background: var(--accent); color: #fff; }

.cart-box .pd-act { margin-top: 0; }
.cart-box .of-err { margin: 0 0 14px; }
.cart-box .order-ok { margin-top: 18px; padding: 18px 20px; }
.cart-box .order-ok p:not(.ok-k) { margin-top: 4px; color: var(--ink); font-weight: 500; }

.cartp { padding: 21.6px 0 86.4px; }
.cartp h1 { font-size: clamp(34px, 4vw, 50px); letter-spacing: -.035em; }
.cartp h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.01em; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0 30px; padding: 0; list-style: none; counter-reset: none; }
.steps li { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .5); color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.steps i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair); font: 600 12.5px/1 var(--sans); font-style: normal; }
.steps li.done { color: #0b6b34; }
.steps li.done i { border-color: #0b6b34; background: #0b6b34; color: #fff; }
.steps li.now { background: var(--ink); color: #fff; }
.steps li.now i { border-color: #fff; background: #fff; color: var(--ink); }

.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.cart-grid h2 { font-size: 24px; letter-spacing: -.02em; }
.cart-grid h2 em { display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-left: 6px; padding: 0 8px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 14px/1 var(--sans); font-style: normal; vertical-align: 3px; }
.cart-form { margin-top: 0; padding: 24px; border: 1px solid var(--hair); border-top: 1px solid var(--hair); border-radius: 18px; background: rgba(255, 255, 255, .6); }
.cis { display: grid; gap: 12px; margin: 18px 0 14px; padding: 0; list-style: none; }
.ci { padding: 16px 18px; border: 1px solid var(--hair); border-radius: 16px; background: #fff; }
.ci-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ci h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.ci-x { min-height: 36px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 99px; background: transparent; color: var(--muted); font: 500 13px/1 var(--sans); cursor: pointer; }
.ci-x:hover { border-color: #b42318; color: #b42318; }
.ci-spec { display: grid; gap: 2px; margin: 10px 0 0; font-size: 13.5px; }
.ci-spec > div { display: flex; gap: 10px; }
.ci-spec dt { min-width: 104px; color: var(--muted); }
.ci-spec dd { margin: 0; font-weight: 500; }
.ci-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; font-weight: 600; }
.ci-q input { width: 96px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--hair); border-radius: 10px; font: 500 16px/1.2 var(--sans); color: var(--ink); background: #fff; }
.ci-q span { color: var(--muted); font-weight: 400; }
.cart-empty { padding: 36px 28px; border: 1px dashed var(--hair); border-radius: 18px; background: rgba(255, 255, 255, .5); }
.cart-empty h2 { font-size: 26px; }
.cart-empty p { margin: 8px 0 0; color: var(--muted); }

.order-ok.done { max-width: 860px; margin-top: 0; padding: 30px 30px 26px; }
.order-ok.done > p b { color: var(--ink); }
.scan { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; margin: 22px 0 0; padding: 22px; border-radius: 16px; background: var(--bg); }
.scan-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: 14px; background: #fff; }
.scan-qr .qr { width: 208px; height: 208px; }
.scan-qr small { color: var(--muted); font-size: 12px; }
.scan-go { flex: 1 1 280px; min-width: 0; }
.scan-h { margin: 0 0 14px !important; color: var(--ink) !important; font-size: 17px !important; font-weight: 600; }
.scan-go .btn-pill .pill-ic { background: var(--line-green); }
.scan-fb { font-size: 13.5px !important; }
.copy-t { display: inline-block; margin-top: 4px; padding: 4px 10px; border-radius: 8px; background: #fff; color: var(--ink); font: 500 13.5px/1.4 ui-monospace, Consolas, monospace; word-break: break-all; }
.scan-fb .tlink { min-height: 32px; border: 0; background-color: transparent; font-size: 13px; cursor: pointer; padding: 0; }
.next { margin-top: 22px; }
.next h3 { font-size: 16px; font-weight: 600; }
.next ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.order-ok.done .pd-act .tlink { border: 0; background-color: transparent; cursor: pointer; padding: 0; }
@media (max-width: 980px) { .cart-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 720px) {
  .cart-t { display: none; }
  .cart-pill { padding: 0 11px; }
  .nav-r .btn-pill > span { display: none; }
  .nav-r .btn-pill { padding-left: 5.4px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 22px; }
  .steps li { padding: 8px 10px; font-size: 12.5px; }
  .cart-form, .order-ok.done { padding: 18px 16px; }
  .scan { padding: 16px; }
  .scan-qr-alt { display: none; } /* มือถือ: กดปุ่มเปิดไลน์แทนสแกน */
  .ci-spec dt { min-width: 84px; }
}
.of-l { display: block; }
.of-l i { margin-left: 4px; }
.of-hint { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.of-hint b { color: var(--ink); font-weight: 600; }

/* v15: เพิ่มลงตะกร้า — ภาพสินค้าลอยไปที่ปุ่มตะกร้า แล้วปุ่มตะกร้าเด้ง · ปุ่มสีฟ้า (เลือกสินค้าอื่นต่อ) */
.fly-x { position: fixed; z-index: 90; width: 0; height: 0; pointer-events: none; will-change: transform; }
.fly-y { position: absolute; left: 0; top: 0; will-change: transform; }
.fly-item { position: absolute; left: -32px; top: -32px; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border: 3px solid #fff; border-radius: 16px; background: var(--accent); color: #fff; font: 600 26px/1 var(--sans); box-shadow: 0 14px 30px rgba(11, 11, 12, .22), 0 2px 6px rgba(11, 11, 12, .12); will-change: transform, opacity; }
.fly-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-pill.bump { animation: cart-bump .5s var(--ease); }
.cart-pill.bump b { animation: cart-pop .5s var(--ease); }
@keyframes cart-bump { 0% { transform: scale(1); } 30% { transform: scale(1.12); } 60% { transform: scale(.97); } 100% { transform: scale(1); } }
@keyframes cart-pop { 0% { transform: scale(1); } 35% { transform: scale(1.45); box-shadow: 0 0 0 6px rgba(47, 111, 237, .22); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47, 111, 237, 0); } }
.btn-pill.btn-blue { background: var(--accent); }
.btn-pill.btn-blue:hover { background: #1f5ad8; }
.btn-pill.btn-blue .pill-ic { background: rgba(255, 255, 255, .22); font: 600 18px/1 var(--sans); font-style: normal; }

/* v16: รูปสินค้า → พรีวิว 3D (product.js · หน้าที่มี .pd-pic[data-3d]) — รูปจริงยังอยู่ (ปุ่ม 3D / รูปจริง มุมซ้ายบน) */
.pd-3d { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.pd-pic.is-3d .pd-3d { opacity: 1; pointer-events: auto; }
.pd-pic.has-3d > img { transition: transform .6s var(--ease), opacity .5s var(--ease); }
.pd-pic.is-3d > img { opacity: 0; }
.pd-view { position: absolute; z-index: 2; top: 12px; left: 12px; display: none; gap: 2px; padding: 3px; border-radius: 899.1px; background: rgba(11, 11, 12, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pd-pic.ready-3d .pd-view { display: flex; }
.pd-view button { min-height: 30px; padding: 0 13px; border: 0; border-radius: 899.1px; background: transparent; color: #c4cad3; font: 500 12.6px/1 var(--sans); cursor: pointer; }
.pd-view button:hover { color: #fff; }
.pd-view button[aria-pressed="true"] { background: #fff; color: var(--ink); }
@media (max-width: 1100px) { .pd-pic.has-3d { position: relative; top: 0; } } /* top ของ sticky (เดสก์ท็อป) ต้องล้าง ไม่งั้น relative เลื่อนกล่องลงมาทับหัวข้อ */
@media (pointer: coarse) { .pd-view button { min-height: 40px; } }
.pd-pic.modal-3d .pd-view { display: none !important; } /* v17: หน้าต่างตรวจภาพในพรีวิว 3D เปิดอยู่ */
/* v18: ระหว่างหน้าต่างตรวจภาพเปิด กรอบ 3D ขยายเต็มจอ (หน้าต่างอยู่กลางจอ ไม่ต้องเลื่อน) */
html.pd3d-modal { overflow: hidden; }
.pd-pic.modal-3d { z-index: 1000; overflow: visible; } /* sticky = ชั้นซ้อนของตัวเอง ต้องยกทั้งกล่องขึ้นเหนือแถบเมนู */
.pd-pic.modal-3d .pd-3d { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%; opacity: 1; pointer-events: auto; transition: none; }
/* v19: มือถือ — ปุ่ม 3D / รูปจริง เล็กลง ไม่บังพรีวิว */
@media (max-width: 720px) {
  .pd-view { top: 8px; left: 8px; padding: 2px; }
  .pd-view button, .pd-view button[aria-pressed] { min-height: 28px; padding: 0 10px; font-size: 12px; }
}
.steps li span small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 500; opacity: .8; } /* v20: ขั้น 3 ตะกร้า — QR รับใบเสนอราคา / ยืนยันผ่านไลน์ */
/* v22: ใต้สเปกที่เลือก — บริการเสริมที่ไม่มีในตัวเลือก ให้ถามแอดมินหลังส่งรีเควส */
.pick-note { display: flex; align-items: flex-start; gap: 8px; margin: 12.6px 0 0; padding: 9px 12.6px; border-radius: 10.8px; background: var(--soft); color: var(--muted); font-size: 12.6px; line-height: 1.6; }
.pick-note::before { content: "i"; flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 11px/1 var(--sans); }

