/* พจน์ ท่าพระจันทร์ — โทนแกลเลอรี: ดำ งาช้าง ทองหม่น · เรียบ หรู คลาสสิก · การเคลื่อนไหวน้อยที่สุด */
:root {
  --bg: #100a06;
  --bg-2: #18110b;
  --bg-3: #21170f;
  --ivory: #f1e6cf;
  --ivory-2: #c9b99a;
  --muted: #8f7f66;
  --gold: #c9a35c;
  --gold-soft: #e6cc8f;
  --paper: #efe2c4;
  --wine: #4a0c11;
  --wine-2: #6a141b;
  --line: rgba(230, 204, 143, .16);
  --line-2: rgba(230, 204, 143, .3);
  --script: 'Pinyon Script', 'Bellefair', serif;
  --gold-metal: linear-gradient(135deg, #7a5a22 0%, #e9cf8a 22%, #a27b34 45%, #f5dfa2 62%, #8c6a2a 82%, #d9b86c 100%);
  --danger: #e08d7c;
  --ok: #9cc3a6;
  --serif: 'Prompt', system-ui, sans-serif;
  --latin: 'Cormorant Garamond', 'Prompt', serif;
  --sans: 'Prompt', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --spot: radial-gradient(75% 65% at 50% 38%, #4a3420 0%, #24170d 55%, #120b06 100%);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ivory);
  background: radial-gradient(90% 60% at 20% 0%, rgba(201, 163, 92, .10), transparent 60%), var(--bg);
  background-attachment: fixed;
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
main { outline: none; min-height: 60vh; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--bg); }
.muted { color: var(--muted); }
a, button, .card, .chip, .btn { transition: color .2s, background-color .2s, border-color .2s, opacity .2s; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- banner / header ---------- */
.demo-banner { background: #3a2a12; color: #f1dfbd; font-size: 12.5px; text-align: center; padding: 7px 16px; line-height: 1.5; letter-spacing: .02em; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px 28px; background: rgba(11, 10, 8, .92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-side { display: flex; gap: 28px; align-items: center; }
.nav-side.right { justify-content: flex-end; }
.nav-link { text-decoration: none; font-family: var(--latin); font-size: 15px; color: var(--ivory-2); letter-spacing: .02em; }
.nav-link:hover, .nav-link.active { color: var(--ivory); }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ivory); letter-spacing: .01em; }
.brand-latin { font-family: var(--latin); letter-spacing: .32em; font-size: 9.5px; color: var(--gold); margin-top: 4px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ivory-2); text-decoration: none; font-family: var(--latin); font-size: 15px; }
.cart-btn:hover { color: var(--ivory); }
.cart-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--bg); font-family: var(--sans); font-size: 11px; font-weight: 500; display: inline-grid; place-items: center; }
.show-sm { display: none; }
@media (max-width: 760px) {
  .site-header { padding: 12px 16px; }
  .hide-sm { display: none !important; }
  .show-sm { display: flex; }
  body { padding-bottom: 60px; }
  .brand-name { font-size: 18px; }
}
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: rgba(11, 10, 8, .96);
  border-top: 1px solid var(--line); justify-content: space-around; padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
}
.bottom-nav a { text-decoration: none; color: var(--muted); font-size: 13.5px; padding: 12px 8px; }
.bottom-nav a.active { color: var(--ivory); }

/* ---------- typography blocks ---------- */
.eyebrow { font-family: var(--latin); letter-spacing: .34em; font-size: 12px; color: var(--gold); text-transform: uppercase; }
.display {
  font-family: var(--serif); font-weight: 200; color: var(--ivory);
  font-size: clamp(34px, 6.4vw, 78px); line-height: 1.18; letter-spacing: -.01em; margin: 14px 0 18px;
}
.section-title { font-family: var(--serif); font-weight: 200; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.25; margin: 10px 0 0; color: var(--ivory); }
.lead { color: var(--ivory-2); font-size: 17px; max-width: 36em; }

/* ---------- hero: สปอตไลต์ทอง + พระในกรอบทอง ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(55% 70% at 50% 38%, rgba(232, 190, 110, .28), rgba(120, 72, 24, .10) 45%, transparent 70%),
    radial-gradient(40% 50% at 12% 0%, rgba(255, 210, 140, .14), transparent 70%);
}
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 56px 24px 72px; display: grid; justify-items: center; text-align: center; }
.hero .eyebrow { margin-bottom: 26px; }
.hero-frame { width: min(340px, 72vw); }
.hero-title { position: relative; z-index: 2; }
.hero-frame + .hero-title { margin-top: -54px; } /* ซ้อนทับขอบล่างกรอบ เฉพาะเมื่อมีรูป */
.hero-title .script { display: block; white-space: nowrap; font-family: var(--script); font-size: clamp(42px, 9.5vw, 116px); line-height: .9; color: var(--gold-soft); text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.hero-title .display { margin: 4px 0 14px; text-shadow: 0 2px 24px rgba(0, 0, 0, .7); }
.hero .lead { margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 560px) { .hero-inner { padding: 36px 16px 56px; } .hero-frame + .hero-title { margin-top: -34px; } }

/* กรอบทองแบบกรอบภาพเขียน */
.frame { position: relative; padding: 14px; background: var(--gold-metal); box-shadow: 0 0 0 1px #4a3514, 0 30px 70px rgba(0, 0, 0, .65), 0 0 90px rgba(232, 190, 110, .18); }
.frame::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(70, 48, 14, .55); pointer-events: none; }
.frame::after { content: ''; position: absolute; inset: 13px; box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .5), inset 0 0 24px rgba(0, 0, 0, .55); pointer-events: none; }
/* ด้านในกรอบ: กำมะหยี่เข้มรับแสงสปอตไลต์ พระที่ตัดพื้นหลังแล้ววางลอยพร้อมเงา */
.frame-inner { aspect-ratio: 4 / 5; background: var(--spot); display: grid; place-items: center; overflow: hidden; }
.frame-inner img { width: 100%; height: 100%; object-fit: contain; padding: 12% 14%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .65)) drop-shadow(0 0 30px rgba(232, 190, 110, .08)); }
.frame-inner img.photo { padding: 0; object-fit: cover; filter: none; }
.frame.thin .frame-inner img { padding: 14% 16%; }
.hero-frame .frame-inner img.cutout { padding: 8% 18% 30%; } /* ยกองค์พระขึ้น ไม่ให้ตัวเขียนบังฐาน */
.frame.thin { padding: 5px; box-shadow: 0 0 0 1px #4a3514, 0 14px 30px rgba(0, 0, 0, .5); }
.frame.thin::before { inset: 2px; }
.frame.thin::after { inset: 5px; box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .35), inset 0 0 12px rgba(0, 0, 0, .45); }

/* การ์ดกระดาษครีม ตัวอักษรปั๊มนูน */
.paper-card {
  position: relative; background: radial-gradient(120% 120% at 30% 10%, #f7ecd3, var(--paper) 55%, #d9c79f);
  color: #6f5527; padding: clamp(32px, 6vw, 64px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 120px rgba(232, 190, 110, .12);
}
.paper-card .script { font-family: var(--script); font-size: clamp(40px, 6vw, 64px); line-height: 1; color: #a8843f; text-shadow: 0 1px 0 rgba(255, 250, 235, .9), 0 -1px 0 rgba(90, 60, 20, .25); }
.paper-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; margin: 8px 0 14px; color: #5e4520; text-shadow: 0 1px 0 rgba(255, 250, 235, .8), 0 -1px 0 rgba(90, 60, 20, .2); }
.paper-card p { color: #6f5a36; margin: 0; font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; font-family: var(--sans); font-weight: 400; font-size: 14.5px; letter-spacing: .06em;
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--ivory); color: var(--bg); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-dark { background: transparent; color: var(--ivory); border-color: var(--line-2); }
.btn-dark:hover { border-color: var(--ivory); }
.btn-block { width: 100%; }
.text-link { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.text-link:hover { border-color: var(--ivory); }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }
.section.tight { padding-top: 40px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
@media (max-width: 760px) { .section { padding: 64px 16px; } .section-head { margin-bottom: 28px; } }

/* เกี่ยวกับร้าน: ข้อความด้านบน + แถวรูปบรรทัดเดียว (กลางชัด ข้างจาง) */
.about-show { background: #1c140d; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 8vw, 88px); text-align: center; overflow: hidden; }
.about-text { max-width: 620px; margin: 0 auto; padding: 0 16px; }
.about-text .section-title { margin-bottom: 18px; white-space: pre-line; }
.about-text p { color: var(--ivory-2); margin: 0; }
.about-sign { margin-top: 22px; color: var(--gold); font-size: 14px; letter-spacing: .04em; }

.showcase { position: relative; max-width: 980px; height: clamp(280px, 44vw, 440px); margin: clamp(36px, 6vw, 56px) auto 0; outline: none; touch-action: pan-y; user-select: none; }
.showcase::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(70vw, 460px); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(232, 190, 110, .16), transparent); pointer-events: none; }
.slide { position: absolute; top: 0; left: 50%; width: clamp(170px, 30vw, 300px); height: 100%; display: grid; place-items: center; opacity: 0; pointer-events: none;
  transform: translateX(-50%) scale(.6); transition: transform .45s ease, opacity .45s ease, filter .45s ease; }
.slide img { max-width: 100%; max-height: 92%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .6)); pointer-events: none; }
.slide.c { opacity: 1; transform: translateX(-50%) scale(1); z-index: 3; pointer-events: auto; }
.slide.l, .slide.r { opacity: .3; filter: grayscale(.7) brightness(.75); z-index: 2; pointer-events: auto; cursor: pointer; }
.slide.l { transform: translateX(-155%) scale(.7); }
.slide.r { transform: translateX(55%) scale(.7); }
.sc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 44px; border: 1px solid var(--line-2); background: rgba(16, 10, 6, .6); color: var(--gold-soft); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.sc-nav:hover { border-color: var(--gold); }
.sc-prev { left: 12px; } .sc-next { right: 12px; }
.sc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.sc-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); cursor: pointer; }
.sc-dots span.on { background: var(--gold); }
@media (max-width: 560px) { .slide.l { transform: translateX(-135%) scale(.62); } .slide.r { transform: translateX(35%) scale(.62); } .sc-nav { width: 38px; height: 38px; } }

/* แถบจุดเด่นใต้หัวเว็บ */
.feature-strip { background: var(--wine); border-bottom: 1px solid rgba(230, 204, 143, .2); }
.feature-strip ul { list-style: none; margin: 0 auto; padding: 18px 24px; max-width: var(--max); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-strip li { font-family: var(--serif); font-size: 15px; color: var(--ivory); text-align: center; line-height: 1.4; }
.feature-strip li span { display: block; font-family: var(--latin); font-size: 10.5px; letter-spacing: .28em; color: var(--gold-soft); text-transform: uppercase; margin-bottom: 2px; }
@media (max-width: 640px) { .feature-strip ul { grid-template-columns: 1fr 1fr; padding: 16px; gap: 14px 8px; } .feature-strip li { font-size: 14px; } }

/* แถบชวนซื้อท้ายหน้า */
.cta-band { background: var(--wine); text-align: center; padding: 72px 20px; border-top: 1px solid rgba(230, 204, 143, .2); }
.cta-band .section-title { margin: 0 0 10px; }
.cta-band .script { font-family: var(--script); color: var(--gold-soft); font-size: clamp(40px, 6vw, 60px); line-height: 1; }
.cta-band p { color: var(--ivory-2); margin: 0 0 26px; }
.btn-line { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-line:hover { background: var(--ivory); color: var(--wine); }

.chips { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; padding: 4px 0; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer; color: var(--muted); font-size: 15px; }
.chip:hover { color: var(--ivory-2); }
.chip.active { color: var(--ivory); border-color: var(--gold); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 28px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; } }
.card { display: flex; flex-direction: column; text-decoration: none; }
.card-img { position: relative; }
.card:hover .card-name { color: var(--gold-soft); }
.badge { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 11.5px; letter-spacing: .08em; padding: 3px 10px; background: rgba(11, 10, 8, .8); color: var(--ivory-2); border: 1px solid var(--line-2); }
.card-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-family: var(--latin); font-size: 12px; letter-spacing: .18em; color: var(--gold); }
.card-name { font-family: var(--serif); font-size: 17px; font-weight: 300; line-height: 1.5; color: var(--ivory); margin: 0; flex: 1; }
.price { font-family: var(--serif); font-weight: 400; color: var(--ivory-2); font-size: 16px; }
.price .unit { font-size: .85em; margin-left: 3px; }
.sold-out .card-img img { opacity: .45; filter: grayscale(.7); }
@media (max-width: 560px) { .card-name { font-size: 15px; } .price { font-size: 14.5px; } .card-body { padding-top: 10px; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 861px) { .step + .step { padding-left: 24px; border-left: 1px solid var(--line); } }
.step-num { font-family: var(--latin); font-size: 15px; letter-spacing: .2em; color: var(--gold); }
.step h3 { font-family: var(--serif); font-weight: 400; margin: 10px 0 8px; font-size: 20px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ivory-2); }
.where { display: inline-block; margin-top: 14px; font-size: 12px; letter-spacing: .04em; padding: 2px 10px; border: 1px solid var(--line-2); color: var(--ivory-2); }
.where.zort { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--latin); font-size: 24px; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 22px; color: var(--ivory-2); max-width: 46em; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .section-title { margin-bottom: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------- product page ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ivory); }
.pdp { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--spot); scrollbar-width: none; aspect-ratio: 1; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; padding: 8%; scroll-snap-align: center; cursor: zoom-in; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .65)); }
.gallery-main img.photo { padding: 0; object-fit: contain; filter: none; background: #0d0805; }
.thumbs img { background: var(--spot); object-fit: contain !important; padding: 6px; }
.thumbs img.photo { padding: 0; object-fit: cover !important; }
.line-item img.photo { padding: 0; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 66px; height: 66px; padding: 0; border: 1px solid var(--line); cursor: pointer; background: none; opacity: .55; }
.thumbs button.active { opacity: 1; border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dots { display: none; justify-content: center; gap: 6px; margin-top: 12px; }
.dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.dots span.active { background: var(--ivory); }
@media (max-width: 560px) { .thumbs { display: none; } .dots { display: flex; } }
.pdp-info { position: sticky; top: 96px; }
@media (max-width: 900px) { .pdp-info { position: static; } }
.pdp-info h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; margin: 8px 0 16px; }
.pdp-price { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 0 0 4px; }
.stock-line { font-size: 13.5px; letter-spacing: .03em; margin-bottom: 4px; }
.stock-line.ok { color: var(--ok); }
.stock-line.no { color: var(--danger); }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 30px; }
.specs { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; border-top: 1px solid var(--line); }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 300; }
.specs th { color: var(--muted); width: 36%; }
.desc { white-space: pre-line; color: var(--ivory-2); }
.policy { list-style: none; padding: 0; margin: 24px 0 0; font-size: 14px; color: var(--ivory-2); }
.policy li { padding: 4px 0 4px 20px; position: relative; }
.policy li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.sticky-buy { display: none; }
@media (max-width: 560px) {
  .pdp-actions.desktop { display: none; }
  .sticky-buy { display: flex; gap: 8px; align-items: center; position: fixed; left: 0; right: 0; bottom: 52px; z-index: 15; padding: 10px 16px; background: rgba(11, 10, 8, .97); border-top: 1px solid var(--line); }
  .sticky-buy .price { flex: 1; color: var(--ivory); }
  .sticky-buy .btn { min-height: 42px; padding: 0 16px; }
  .pdp-wrap { padding-bottom: 110px; }
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(6, 5, 4, .97); display: grid; place-items: center; }
.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ivory); font-size: 30px; cursor: pointer; padding: 12px 18px; font-family: var(--latin); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; gap: 24px; } }
.panel { background: var(--bg-2); border: 1px solid var(--line); padding: 28px; }
@media (max-width: 560px) { .panel { padding: 20px 16px; } }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 18px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 64px; height: 80px; object-fit: contain; padding: 6px; background: var(--spot); border: 1px solid var(--line); }
.line-item .name { font-family: var(--serif); font-size: 15px; line-height: 1.45; }
.line-item .remove { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 4px 0; cursor: pointer; text-decoration: underline; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); margin-top: 4px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 460px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ivory-2); }
.field input, .field textarea { border: 1px solid var(--line-2); border-radius: 2px; padding: 12px 13px; background: var(--bg); font-size: 16px; outline: none; color: var(--ivory); }
.field input:focus, .field textarea:focus { border-color: var(--gold); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 12.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--ivory-2); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-family: var(--serif); font-size: 21px; color: var(--ivory); }
.note-box { font-size: 13.5px; padding: 12px 14px; margin-top: 16px; line-height: 1.65; border: 1px solid var(--line); color: var(--ivory-2); }
.note-box.warn { border-color: #6b5226; color: #e7cf9c; background: rgba(184, 155, 94, .07); }
.note-box.error { border-color: #6e3a2f; color: var(--danger); background: rgba(224, 141, 124, .06); }
.mini-steps { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; font-size: 13px; color: var(--muted); }
.mini-steps span.on { color: var(--ivory); border-bottom: 1px solid var(--gold); }
.mini-steps span.zort { color: var(--gold-soft); }

/* ---------- result / status ---------- */
.result { max-width: 620px; margin: 0 auto; text-align: center; }
.result .icon { width: 56px; height: 56px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-size: 22px; color: var(--gold); }
.result h1 { font-family: var(--serif); font-weight: 300; font-size: 30px; margin: 0 0 10px; }
.order-no { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; border: 1px solid var(--line-2); padding: 8px 16px; font-size: 16px; letter-spacing: .06em; margin: 8px 0 16px; color: var(--ivory); }
.status-pill { display: inline-block; padding: 2px 12px; border: 1px solid currentColor; font-size: 14px; }
.status-pill.paid { color: var(--ok); }
.status-pill.pending { color: var(--gold-soft); }

.empty { text-align: center; padding: 80px 16px; color: var(--muted); }
.skeleton { background: var(--bg-3); }

/* ---------- footer / toast ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 48px 24px 40px; display: grid; gap: 16px; text-align: center; justify-items: center; }
.footer-brand { font-family: var(--serif); font-weight: 300; font-size: 26px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-contact a { text-decoration: none; border: 1px solid var(--line-2); padding: 7px 16px; font-size: 14px; color: var(--ivory-2); }
.footer-contact a:hover { color: var(--ivory); border-color: var(--ivory); }
.footer-note { font-size: 12px; margin: 0; color: var(--muted); letter-spacing: .02em; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); opacity: 0; pointer-events: none; background: var(--ivory); color: var(--bg); padding: 10px 20px; font-size: 14px; transition: opacity .2s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; }
