/* ============================================================================
   base.css — ไฟล์หลัก ทุกหน้าโหลด
   สี ฟอนต์ ขนาดตัวอักษร h1-h6 p ปุ่ม ฟอร์ม ตั้งที่นี่ที่เดียว
   ========================================================================== */

:root {
  --ink: #0F0E0C; --ink2: #1B1915; --ink3: #2A2722; --black: #0B0A08;
  --paper: #FFFFFF; --soft: #F6F4EF; --line: #E6E0D3; --line-d: #3A362F;
  --gold: #C9A55C; --gold-l: #E3C88E; --gold-t: #7A5E24;
  --hd-h: 68px;
  --text: #1D1B17; --muted: #5B554A;
  --ok: #2F6B45; --warn: #8A5A12; --bad: #9B2C2C;
  --f-brand: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-serif: "Playfair Display", Georgia, serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-body: "Montserrat", "Anuphan", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --f-th: "Anuphan", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  /* ตัวอักษรกลาง หัวข้อทุกระดับใช้ค่าชุดนี้ ส่วนไหนต้องต่างให้เปลี่ยนค่าที่กล่องของส่วนนั้น ไม่เขียน h1-h6 ใหม่ */
  --f-head: var(--f-serif);
  --c-head: var(--text);
  --h1: clamp(28px, 3.4vw, 40px); --h1-w: 600;
  --h2: clamp(26px, 2.8vw, 34px); --h2-w: 600;
  --h3: 13.5px; --h3-w: 700;
  --h4: 15px; --h4-w: 700;
  --h5: 14px; --h5-w: 700;
  --h6: 13px; --h6-w: 700;
  --p: 15px; --lh: 1.65;
  --s-pad: clamp(16px, 3vw, 32px);
  --shadow-btn: 0 6px 14px -8px rgba(0, 0, 0, .9);
  --shadow-btn-h: 0 10px 20px -10px rgba(0, 0, 0, .95);
  color-scheme: light;
}
body.lang-my { --f-body: "Montserrat", "Noto Sans Myanmar", "Myanmar Text", sans-serif; --f-th: "Noto Sans Myanmar", "Myanmar Text", sans-serif; }
body.lang-th, body.lang-my { --f-head: var(--f-th); --h3: 14.5px; --p: 15.5px; }
body.lang-my { --lh: 1.8; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 8px); }
/* ตัวเลขตรงแนวเดียวกันทั้งเว็บ (Playfair ตั้งต้นเป็นเลขแบบหนังสือเก่า เลข 1 เหมือนตัว I เลข 4 จมต่ำกว่าบรรทัด) */
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--f-body); font-size: var(--p); line-height: var(--lh); font-variant-numeric: lining-nums; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.25; text-wrap: balance; color: var(--c-head); }
h1 { font-family: var(--f-head); font-size: var(--h1); font-weight: var(--h1-w); }
h2 { font-family: var(--f-head); font-size: var(--h2); font-weight: var(--h2-w); }
h3 { font-size: var(--h3); font-weight: var(--h3-w); }
h4 { font-size: var(--h4); font-weight: var(--h4-w); }
h5 { font-size: var(--h5); font-weight: var(--h5-w); }
h6 { font-size: var(--h6); font-weight: var(--h6-w); }
p { margin: 0; }
p, li, span, a { overflow-wrap: break-word; }
b, strong { font-weight: 600; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: #111; padding: 10px 16px; }
.skip:focus { left: 8px; top: 8px; }

.s-in { max-width: 1180px; margin: 0 auto; padding-inline: var(--s-pad); }
.sec { padding-block: clamp(30px, 4vw, 44px); }
.sec-tight { padding-top: 0; }

/* ป้ายเล็กเหนือหัวข้อ */
.eb { font-family: var(--f-body); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.lang-th .eb, .lang-my .eb { letter-spacing: .05em; }

/* หัวหน้าเพจของหน้าสินค้า ตะกร้า ติดต่อ */
/* หัวหน้าของหน้าย่อย: ลายเมืองกรุงเทพชุดเดียวกับจอแรกหน้าแรก เงามืดเบาให้เห็นเมืองทางขวา เส้นทองล่าง */
.page-h { --c-head: #F4EEE2; position: relative; overflow: hidden; background: #14110C url(/assets/images/city-bkk.svg) center bottom / cover no-repeat; color: #F4EEE2; padding-block: clamp(40px, 6vw, 72px); }
.page-h::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 8, 6, .9) 0%, rgba(9, 8, 6, .55) 42%, rgba(9, 8, 6, .2) 100%); }
.page-h::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, rgba(201, 165, 92, 0), #C9A55C 35%, #F2D58F 60%, rgba(201, 165, 92, 0)); }
.page-h .s-in { position: relative; }
.page-h h1 { font-size: clamp(32px, 4vw, 48px); }
.page-h p { color: var(--gold-l); font-size: clamp(15px, 1.4vw, 18px); margin-top: 6px; }
/* ลายเซ็น Sharuk กับแถบทองเฉียงทางขวา แบบเดียวกับ .swoosh ในแถบดำหน้าแรก · หัวข้อกับคำโปรยเว้นที่ให้ ไม่งั้นภาษาพม่าวิ่งทับ · จอแคบกว่า 900 ซ่อน */
.ph-sig { position: absolute; right: var(--s-pad); top: 50%; transform: translateY(-50%); width: 240px; display: grid; justify-items: center; text-align: center; pointer-events: none; }
.ph-sig::before { content: ""; position: absolute; left: -40px; top: -200px; width: 330px; height: 560px; background: linear-gradient(115deg, transparent 0 44%, rgba(227, 200, 142, .75) 47%, rgba(201, 165, 92, .25) 53%, transparent 62%); }
.ph-sig b { position: relative; font-family: var(--f-script); font-weight: 400; font-size: clamp(44px, 4.4vw, 60px); color: #F6EFDF; line-height: 1; transform: rotate(-8deg); }
.ph-sig small { position: relative; font-family: var(--f-serif); font-size: 11.5px; letter-spacing: .16em; color: #E9DFC8; margin-top: 12px; }
.ph-sig ~ h1, .ph-sig ~ p { padding-right: 280px; }
@media (max-width: 900px) {
  .ph-sig { display: none; }
  .ph-sig ~ h1, .ph-sig ~ p { padding-right: 0; }
}
.page-h.page-404 { padding-block: 80px; text-align: center; }
.page-h.page-404 .s-in { display: grid; gap: 16px; justify-items: center; }

/* ปุ่ม เงาใต้ปุ่มเป็นสีดำล้วน */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; border: 0;
  font-family: var(--f-body); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 22px; border-radius: 3px; min-height: 46px; cursor: pointer;
  transition: filter .2s, transform .2s, border-color .2s, color .2s, box-shadow .2s; box-shadow: var(--shadow-btn); }
.lang-th .btn, .lang-my .btn { letter-spacing: .02em; font-size: 14px; }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .24s cubic-bezier(.2, .7, .3, 1); }
.btn-gold { background: linear-gradient(180deg, #DDBE7C, #C49A4E); color: #17120A; }
.btn-out { background: rgba(0, 0, 0, .25); color: #F4EEE2; border: 1px solid rgba(240, 230, 210, .7); box-shadow: none; }
.btn-dark { background: var(--ink); color: #F4EEE2; }
.btn-edge { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: none; text-transform: none; letter-spacing: 0; }
/* ปุ่ม LINE ใช้สีแบรนด์ LINE (หน้าแรกการ์ดสาขา หน้าต่างรายละเอียดสินค้า) */
.btn-line { background: #06C755; color: #fff; }
.btn-line svg { width: 18px; height: 18px; fill: currentColor; }
/* ปุ่ม WhatsApp ใช้เขียวเข้มในชุดสีของแบรนด์ WhatsApp ขาวบนพื้นนี้อ่านชัด (เขียวสด 25D366 ได้แค่ 1.98) */
.btn-wa { background: #075E54; color: #fff; }
.btn-wa svg { width: 18px; height: 18px; fill: currentColor; }
.btn[disabled], .btn.is-off { opacity: .5; cursor: not-allowed; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover, .btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-h); filter: brightness(1.05); }
  .btn-out:hover { border-color: var(--gold-l); color: var(--gold-l); }
  .btn-edge:hover { border-color: var(--gold); }
  .btn-line:hover { background: #05B34C; transform: translateY(-2px); box-shadow: var(--shadow-btn-h); }
  .btn-wa:hover { background: #0A6E63; transform: translateY(-2px); box-shadow: var(--shadow-btn-h); }
  /* ตราแบรนด์ห้ามเลื่อนตามลูกศร */
  .btn-line:hover svg, .btn-wa:hover svg { transform: none; }
  .btn:hover svg { transform: translateX(4px); }
  .btn[disabled]:hover, .btn.is-off:hover { transform: none; filter: none; box-shadow: none; }
}

/* ฟอร์ม */
.fld { display: grid; gap: 6px; align-content: start; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; } /* align-content: start กันช่องยืดเมื่อช่องข้าง ๆ ในแถวเดียวกันมีคำอธิบาย */
.fld label, .fld legend { font-size: 14px; font-weight: 600; padding: 0; }
.fld input, .fld select, .fld textarea { font: inherit; border: 1px solid #CFC8B9; border-radius: 6px; padding: 10px 12px; min-height: 46px; background: #fff; width: 100%; color: var(--text); }
.fld textarea { min-height: 84px; resize: vertical; }
/* ช่องเลือกสูงเท่าช่องพิมพ์ (บรรทัดเดียว + ขอบบนล่าง 22px) ไม่งั้นภาษาพม่าสูงกว่า 8px ไทยเตี้ยกว่า 2px */
.fld select { line-height: inherit; height: calc(1lh + 22px); }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--gold-t); outline: 2px solid rgba(201, 165, 92, .35); outline-offset: 0; }
.fld [aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: 12.5px; color: var(--muted); }
.err { color: var(--bad); font-size: 14px; min-height: 1px; }
.err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; min-width: 0; }
.panel { --f-head: var(--f-th); --h2: 18px; }
.panel h2 { margin-bottom: 14px; }

.ticks { display: grid; gap: 6px; padding: 0; list-style: none; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.qty button { width: 46px; height: 46px; border: 0; background: #fff; font-size: 20px; color: var(--text); }
.qty button:active { background: #EEE9DE; }
.qty output { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .qty button:hover { background: #F4F1EA; } }

.price { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.price.wait { font-weight: 600; font-size: 13px; color: var(--warn); font-family: var(--f-th); }

/* แถบเมนูล่างมือถือ เฉพาะจอ ≤760 · site.js ใส่ .hide ตอนเลื่อนลงหรือพิมพ์ในช่องกรอก
   --tb คือความสูงที่แถบกินอยู่ตอนนี้ ปุ่มขึ้นบน แถบคุกกี้ กล่องใส่ตะกร้า ยกตัวพ้นแถบตามค่านี้ */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { --tb: 62px; padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  body.tb-off { --tb: 0px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 4px max(4px, env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
    background: rgba(11, 10, 8, .97); border-top: 1px solid rgba(201, 165, 92, .4); box-shadow: 0 -10px 24px -14px rgba(0, 0, 0, .8);
    transition: transform .28s cubic-bezier(.2, .7, .3, 1); }
  .tabbar.hide { transform: translateY(calc(100% + 2px)); }
  .tb { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 54px; padding: 4px 2px; border-radius: 10px;
    color: #BDB29B; text-decoration: none; font-family: var(--f-th); font-size: 11.5px; line-height: 1.2; text-align: center; -webkit-tap-highlight-color: transparent; }
  .tb-i { position: relative; display: grid; place-items: center; }
  .tb-i > svg { width: 23px; height: 23px; }
  .tb-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tb .badge { top: -6px; right: -10px; }
  .tb.on { color: var(--gold-l); font-weight: 600; }
  .tb.on::before { content: ""; position: absolute; top: -5px; left: 50%; width: 28px; height: 2px; margin-left: -14px; border-radius: 2px; background: linear-gradient(90deg, #C9A55C, #F2D58F); }
  .tb:active { background: rgba(201, 165, 92, .12); color: #F6F0E3; }
  body .totop, body .cookie { bottom: calc(16px + var(--tb) + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) { body .toast { bottom: calc(12px + var(--tb, 0px) + env(safe-area-inset-bottom, 0px)); } }

/* แถบคุกกี้ โผล่จนกว่าจะกดตกลงครั้งเดียว */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 560px; margin-inline: auto;
  background: var(--ink); color: #EDE6D6; border: 1px solid var(--line-d); border-radius: 10px; padding: 14px 16px;
  display: flex; gap: 14px; align-items: center; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); font-size: 13.5px; }
.cookie p { flex: 1; }
.cookie .btn { min-height: 46px; padding: 10px 18px; flex: none; }

@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* กล่องยืนยันหลังใส่ตะกร้า (site.js) โผล่ตอนกดใส่ หายเองใน 5 วินาที */
.toast { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: min(360px, calc(100vw - 24px)); display: grid; gap: 12px; padding: 14px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); font-family: var(--f-th); opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .22s, transform .22s, visibility 0s .22s; }
.toast.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .22s, transform .22s; }
.toast-h { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.toast-h svg { width: 20px; height: 20px; color: var(--ok); flex: none; }
.toast-x { width: 46px; height: 46px; margin: -12px -12px -12px auto; border: 0; padding: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.toast-x svg { width: 18px; height: 18px; color: inherit; }
.toast-x:active { transform: scale(.9); }
.toast-b { display: flex; align-items: center; gap: 12px; }
.toast-b img { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #F4F1EA; }
.toast-n { font-size: 14px; font-weight: 600; line-height: 1.35; }
.toast-s { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.toast-f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast-f .btn { min-height: 46px; padding: 10px 12px; border-radius: 6px; font-family: var(--f-th); font-size: 14px; letter-spacing: 0; text-transform: none; }
@media (hover: hover) and (pointer: fine) { .toast-x:hover { color: var(--text); } }
@media (max-width: 600px) { .toast { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ปุ่มกลับขึ้นบนสุด (site.js) โผล่เมื่อเลื่อนลงเกินจอครึ่ง หายเมื่อกลับขึ้นไปใกล้หัว */
.totop { position: fixed; z-index: 55; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(201, 165, 92, .6); background: var(--ink); color: var(--gold-l); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-btn);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s .2s, border-color .2s; }
.totop.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, border-color .2s; }
.totop svg { width: 20px; height: 20px; }
.totop:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .totop:hover { border-color: var(--gold); box-shadow: var(--shadow-btn-h); filter: brightness(1.05); } }
@media (min-width: 1024px) { .totop { right: 24px; bottom: 24px; width: 48px; height: 48px; } }

/* คำถามแบบกดเปิดทีละข้อ ใช้ทั้งหน้าติดต่อเรากับหน้าแรก */
/* คำถาม: กล่องขาวมุม 4px ปุ่มบวกในวง เปิดแล้วขอบทอง วงดำเครื่องหมายลบทอง */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 20px; transition: border-color .2s, box-shadow .2s; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 58px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #D9CFBB; display: grid; place-items: center; font-size: 19px; font-weight: 400; line-height: 1; color: var(--gold-t); flex: none; transition: background .2s, border-color .2s, color .2s; }
.faq details[open] { border-color: var(--gold); box-shadow: 0 18px 30px -26px rgba(0, 0, 0, .45); }
.faq details[open] summary::after { content: "\2212"; background: var(--ink); border-color: var(--ink); color: var(--gold-l); }
.faq summary:active { color: var(--gold-t); }
.faq details p { padding: 0 48px 18px 0; color: var(--muted); line-height: 1.75; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--gold-t); } }
/* ส่วนที่อยู่ใต้จอค่อยลอยขึ้นตอนเลื่อนมาถึง (home.js / shop.js ใส่ .rise เฉพาะของที่ยังไม่เห็น เครื่องที่ตั้งลดการเคลื่อนไหวไม่ใส่) */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.rise.in { opacity: 1; transform: none; }
/* ป้ายลิงก์บนแถบพื้นดำ วงตราทอง ชี้แล้วขอบทอง (หน้าแรก ติดตาม Sharuk / หน้าติดต่อเรา โทร Facebook TikTok) */
.fl-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(max-content, 1fr)); gap: 12px; }
.fl-it { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line-d); border-radius: 4px; color: #F4EEE2; text-decoration: none; background: var(--ink2); transition: border-color .2s, transform .2s; }
.fl-ic { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #E3C88E, #C9A55C); color: #17120A; }
.fl-ic svg { width: 20px; height: 20px; }
/* ตราสีจริงของแบรนด์: ไม่มีวงทองรอง Facebook เต็มวง TikTok อยู่บนวงดำ */
.fl-ic-c-fb { background: none; }
.fl-ic-c-fb svg { width: 100%; height: 100%; }
.fl-ic-c-tt { background: #000; box-shadow: inset 0 0 0 1px var(--line-d); }
.fl-ic-c-tt svg { width: 20px; height: 22px; }
.fl-t { display: grid; min-width: 0; }
.fl-t small { font-size: 12px; color: #B9B2A3; }
.fl-t b { font-size: 14px; white-space: nowrap; line-height: 1.35; }
.fl-go { width: 14px; height: 14px; margin-left: auto; flex: none; color: var(--gold-l); }
.fl-it:active { background: #000; }
@media (hover: hover) and (pointer: fine) { .fl-it:hover { border-color: var(--gold); transform: translateY(-2px); } }
@media (max-width: 1179px) { .fl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .fl-row { grid-template-columns: 1fr; gap: 10px; } .fl-it { min-height: 68px; } }
@media (max-width: 360px) { .fl-t b { white-space: normal; overflow-wrap: anywhere; } }
/* การ์ดสินค้าแนะนำแบบย่อ ใช้ตอนตะกร้าว่างกับหน้า 404 รูป 4:5 ชุดเดียวกับหน้าแรก มือถือปัดซ้ายขวา */
.rec-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.rec { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-bottom: 16px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; color: var(--text); text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.rec-i { display: block; aspect-ratio: 4 / 5; background: #14110C; margin-bottom: 10px; overflow: hidden; }
.rec-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
.rec-n { padding: 0 16px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.rec small { padding: 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.rec .price { padding: 6px 16px 0; font-size: 16px; font-weight: 700; margin-top: auto; }
.rec .price.wait { color: var(--gold-t); font-weight: 600; }
.rec:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .rec:hover { border-color: var(--gold); box-shadow: 0 22px 36px -28px rgba(0, 0, 0, .55); }
  .rec:hover .rec-i img { transform: scale(1.04); }
}
@media (max-width: 760px) {
  .rec-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(var(--s-pad) * -1); padding: 0 var(--s-pad) 8px; scroll-padding-inline: var(--s-pad); scrollbar-width: none; }
  .rec-row::-webkit-scrollbar { display: none; }
  .rec { flex: 0 0 min(72vw, 280px); scroll-snap-align: start; }
}
/* หน้าสั้นกว่าจอ (เช่น 404) ท้ายเว็บชิดล่างจอ ไม่มีพื้นขาวโผล่ */
body { min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.nf-rec { --f-head: var(--f-th); --h2: clamp(22px, 2.2vw, 28px); --h2-w: 700; }
.nf-rec h2 { margin-bottom: 16px; }

/* แถบมั่นใจได้ (ส่ง จ่าย แชต อย.) ใช้ร่วมหน้าแรก (ใต้จอแรก) กับหน้าสินค้าทั้งหมด (ใต้ตาราง) · ลอยขึ้น แสงวิ่ง และจอแคบของหน้าแรกอยู่ home.css */
.tr-card { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 24px;
  background: linear-gradient(180deg, #1C1813 0%, #120F0B 100%); border: 1px solid rgba(201, 165, 92, .38); border-radius: 14px; box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .95); }
/* เส้นทองไล่เฉดขอบบน ชุดเดียวกับเส้นใต้จอแรก */
.tr-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(201, 165, 92, 0), #C9A55C 25%, #F2D58F 55%, #C9A55C 78%, rgba(201, 165, 92, 0)); }
.tr { position: relative; display: flex; gap: 14px; align-items: center; padding: 4px 34px 4px 22px; color: inherit; text-decoration: none; transition: background-color .2s; }
.tr + .tr::before { content: ""; position: absolute; left: 0; top: 6%; bottom: 6%; width: 1px;
  background: linear-gradient(180deg, rgba(201, 165, 92, 0), rgba(201, 165, 92, .55) 50%, rgba(201, 165, 92, 0)); }
/* ไอคอนทอง 3D (รูป WebP ตัวละ 5-7KB โหลดทันทีเพราะอยู่จอแรก) */
.tr-3d { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); transition: transform .2s; }
.tr b { display: block; font-size: 14.5px; color: #F6F0E3; }
/* ลูกศรเล็กบอกว่ากดได้ ติดขอบขวาของช่อง หัวข้อยาว (พม่า อังกฤษ) ขึ้นบรรทัดใหม่แล้วลูกศรไม่หล่นไปอยู่บรรทัดเดียว */
.tr b::after { content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; margin-top: -3px; opacity: .5;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s, opacity .2s; }
.tr span { font-size: 12.5px; color: #BDB29B; }
@media (hover: hover) and (pointer: fine) {
  .tr:hover b { color: var(--gold-l); }
  .tr:hover b::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
  .tr:hover .tr-3d { transform: translateY(-2px); }
}
.tr:active { background: rgba(201, 165, 92, .1); }
.tr:active .tr-3d { transform: scale(.94); }
.tr:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 10px; }

/* หน้าต่างดูรูปหน้าร้านสาขาใหญ่ (หน้าแรก หน้าติดต่อเรา · site.js) ทรงเดียวกับหน้าต่างรีวิวหน้าแรก */
.bp-dlg { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.bp-dlg[open] { display: grid; place-items: center; }
.bp-dlg::backdrop { background: rgba(8, 7, 5, .92); }
.bp-dlg img { width: auto; height: auto; max-width: min(92vw, 960px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 4px; }
.bp-x { position: fixed; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 17, 12, .75); color: #F6F0E3; border: 1px solid rgba(201, 165, 92, .55); cursor: pointer; }
.bp-x svg { width: 22px; height: 22px; }
.bp-x:active { background: #000; }
@media (hover: hover) and (pointer: fine) { .bp-x:hover { border-color: var(--gold); background: #000; } }
