/* ปัญญา แพ็คเกจจิ้ง — หน้าร้าน (mobile-first 390px, desktop ≥ 900px, กว้างสุด 1180px) */
:root {
  --ink: #13263b; --ink2: #4a5b6d; --muted: #6f7e8c; --line: #e3e8ec; --bg: #f7f4f5; --card: #fff;
  /* แดงไวน์ตามโลโก้ PANYA PACKAGING + ทองเป็นสีปุ่ม/ราคา (ผู้ใช้เลือก 18/10/2026) */
  --brand: #8c1230; --brand2: #6e0d25; --brandSoft: #f8e7ec; --heroEnd: #3b0714;
  --accent: #c08a2c; --accent2: #9c6e1f; --accentSoft: #faf1df;
  --ok: #1a8a4a; --okSoft: #e4f5ea; --warn: #a3580a; --warnSoft: #fef3c7;
  --blue: #2563eb; --blueSoft: #e5edfd; --red: #d42020; --redSoft: #fde8e8; --grey: #5b6875; --greySoft: #eef1f3;
  --radius: 14px; --maxw: 1180px; --tabbar: 64px; --apphead: 54px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 1px 2px rgba(19, 38, 59, .05), 0 6px 18px rgba(19, 38, 59, .07);
  --fh: 'Prompt', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --fb: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: var(--fb); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent;
}
main { flex: 1 0 auto; width: 100%; }
h1, h2, h3, h4, .ttl { font-family: var(--fh); font-weight: 600; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.big { width: 44px; height: 44px; stroke-width: 1.4; color: var(--muted); margin: 0 auto 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; }
.sp { flex: 1; }
.muted { color: var(--muted); }
.d-only { display: none !important; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; border-radius: 12px;
  padding: 11px 18px; font-size: 15px; line-height: 1.2; border: 1.5px solid transparent; min-height: 46px;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s, opacity .15s; text-align: center;
}
.btn .ic { width: 18px; height: 18px; }
.btn-p { background: var(--brand); color: #fff; }
.btn-p:hover { background: var(--brand2); }
.btn-a { background: var(--accent); color: #fff; }
.btn-a:hover { background: var(--accent2); }
.btn-o { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-o:hover { background: var(--brandSoft); }
.btn-g { background: var(--greySoft); color: var(--ink2); }
.btn-d { border-color: #f1c0c0; color: var(--red); background: #fff; }
.btn-d:hover { background: var(--redSoft); }
.btn[disabled], .btn.is-busy { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.linkbtn { color: var(--brand); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }
.linkbtn .ic { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.pill .ic { width: 14px; height: 14px; }
.pill.ok { background: var(--okSoft); color: var(--ok); }
.pill.warn { background: var(--warnSoft); color: var(--warn); }
.pill.red { background: var(--redSoft); color: var(--red); }
.pill.blue { background: var(--blueSoft); color: var(--blue); }
.pill.accent { background: var(--accentSoft); color: var(--accent2); }
.pill.grey { background: var(--greySoft); color: var(--grey); }
.pill.brand { background: var(--brandSoft); color: var(--brand); }
.mode-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 7px; padding: 1px 8px; border: 1px solid; white-space: nowrap; line-height: 1.6; }
.mode-pill .ic { width: 13px; height: 13px; }
.mode-pill.a { color: var(--brand); border-color: var(--brand); background: var(--brandSoft); }
.mode-pill.s { color: var(--blue); border-color: var(--blue); background: var(--blueSoft); }
.badge {
  position: absolute; top: -6px; right: -10px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700;
  border-radius: 99px; padding: 0 6px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; font-family: var(--fb);
}
.card { background: var(--card); border-radius: var(--radius); }
.cardpad { padding: 14px 16px; }
.ch { display: flex; align-items: center; gap: 8px; font-family: var(--fh); font-weight: 600; font-size: 15.5px; margin-bottom: 10px; }
.ch .ic { color: var(--brand); }
.ch .sp + * { font-family: var(--fb); }

/* ---------- desktop nav ---------- */
.dnav { display: none; position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.dnav .in { display: flex; align-items: center; gap: 18px; height: 70px; }
.dnav .d-search { flex: 1; max-width: 520px; margin-left: 18px; }
.dnav nav { display: flex; gap: 4px; margin-left: auto; }
.dnav nav a { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px; font-weight: 500; color: var(--ink2); position: relative; white-space: nowrap; }
.dnav nav a:hover { background: var(--bg); color: var(--ink); }
.dnav nav a.on { color: var(--brand); background: var(--brandSoft); font-weight: 600; }
.dnav .cartlink .badge { position: static; margin-left: 2px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.logo > svg, .logo > img { width: 36px; height: 36px; flex: none; }
.logo > img.logo-mark { border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.logo b { display: block; font-family: var(--fh); font-size: 18px; line-height: 1.15; font-weight: 600; white-space: nowrap; }
.logo small { display: block; font-size: 9.5px; letter-spacing: 2.2px; font-weight: 600; opacity: .72; white-space: nowrap; }

/* ---------- search ---------- */
.search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 11px; padding: 0 12px; height: 44px; color: var(--muted); border: 1.5px solid var(--line); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brandSoft); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); height: 100%; }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- mobile headers ---------- */
.mtop { background: var(--brand); color: #fff; padding: 12px 16px 14px; }
.mtop .logo b { color: #fff; }
.mtop .row { justify-content: space-between; }
.mtop-cart { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 99px; }
.mtop-cart .ic { width: 24px; height: 24px; }
.mtop-cart .badge { top: 0; right: -2px; }
.mtop .search { margin-top: 12px; border: 0; }
.apphead {
  position: sticky; top: 0; z-index: 40; height: var(--apphead); background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; padding: 0 8px;
}
.apphead .ttl { flex: 1; min-width: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 99px; position: relative; flex: none; color: var(--ink); }
.iconbtn .ic { width: 22px; height: 22px; }
.iconbtn:active { background: var(--bg); }
.iconbtn .badge { top: 3px; right: 0; }
.pagehead { padding: 22px 0 6px; display: none; align-items: center; gap: 12px; }
.pagehead h1 { font-size: 26px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; height: calc(var(--tabbar) + var(--safe-b));
  padding-bottom: var(--safe-b); background: #fff; border-top: 1px solid var(--line); display: flex;
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); }
.tabbar a.on { color: var(--brand); font-weight: 600; }
.tabbar .tbi { position: relative; }
.tabbar .ic { width: 22px; height: 22px; }
body.has-tabbar { padding-bottom: calc(var(--tabbar) + var(--safe-b)); }
body.has-bar { padding-bottom: calc(78px + var(--safe-b)); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #b9c7d3; margin-top: 28px; padding: 28px 0 22px; font-size: 13.5px; }
.foot .in { display: grid; gap: 22px; }
.foot .logo b { color: #fff; }
.foot-p { margin-top: 10px; line-height: 1.6; max-width: 420px; }
.foot h4 { color: #fff; font-size: 14.5px; margin-bottom: 8px; }
.foot li { padding: 3px 0; display: flex; gap: 7px; align-items: center; }
.foot li .ic { width: 16px; height: 16px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .muted { color: #8fa3b5; }
.foot .copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 20px; padding-top: 14px; font-size: 12px; color: #8fa3b5; }

/* ---------- toast / empty / skeleton ---------- */
.toast-wrap { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + var(--safe-b)); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { background: rgba(19, 38, 59, .95); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; animation: tin .2s ease-out; transition: opacity .3s; }
.toast.ok { background: var(--brand); }
.toast.err { background: #b91c1c; }
.toast.out { opacity: 0; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty p { margin-bottom: 14px; }
.empty .art-wrap { width: 92px; height: 110px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; opacity: .9; }
.empty .art-wrap svg { height: 100%; width: auto; }
.empty h2 { color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.sk { background: linear-gradient(90deg, #e7edeb 25%, #f3f6f5 37%, #e7edeb 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* ---------- home ---------- */
.hero {
  margin-top: 14px; border-radius: 16px; background: linear-gradient(120deg, var(--brand) 0%, var(--heroEnd) 100%); color: #fff;
  padding: 20px 18px; position: relative; overflow: hidden; min-height: 184px; display: flex; align-items: center;
}
.hero-txt { position: relative; z-index: 1; max-width: 62%; }
.hero h1 { font-size: 21px; line-height: 1.3; }
.hero p { font-size: 13px; opacity: .88; margin-top: 6px; line-height: 1.5; }
.hero .btn { margin-top: 12px; min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.hero-art { position: absolute; right: -6px; bottom: -8px; width: 152px; height: 152px; }
.hero-svg { width: 100%; height: 100%; }
.usp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.usp > div { background: #fff; border-radius: 10px; padding: 9px 8px; font-size: 11.5px; color: var(--ink2); display: flex; gap: 6px; align-items: center; line-height: 1.3; min-width: 0; }
.usp .ic { color: var(--brand); }
.usp > div:nth-child(4) { display: none; }
.sec { padding-top: 18px; }
.sec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sec-h h2 { font-size: 17px; }
.sec-h .cnt { font-size: 13px; color: var(--muted); }
.sec-h .sp + a, .sec-h .sp + button { font-size: 13px; }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); text-align: center; line-height: 1.3; }
.cat .cb { width: 62px; height: 62px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid transparent; transition: border-color .15s; }
.cat .cb svg.art { height: 44px; width: auto; max-width: 48px; }
.cat .cb .ic { width: 26px; height: 26px; color: var(--brand); }
.cat.on { color: var(--brand); font-weight: 600; }
.cat.on .cb { border-color: var(--brand); background: var(--brandSoft); }
.fbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fchip { display: inline-flex; align-items: center; gap: 4px; background: var(--brandSoft); color: var(--brand2); border-radius: 99px; padding: 3px 6px 3px 11px; font-size: 13px; font-weight: 600; }
.fchip .ic { width: 15px; height: 15px; }
.fchip button { width: 22px; height: 22px; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.fchip button:hover { background: var(--brandSoft); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc { background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.pc:hover { box-shadow: var(--shadow); }
/* รูปสินค้าเป็นสี่เหลี่ยมจัตุรัส — กรอบสี่เหลี่ยมผืนผ้าตัดโลโก้มุมซ้ายบนของรูปขาด */
.pc .im { aspect-ratio: 1 / 1; background: linear-gradient(180deg, #f7faf9, #e9f0ee); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pc .im img { width: 100%; height: 100%; object-fit: cover; }
.pc .im svg.art { height: 78%; width: auto; max-width: 78%; }
.pc .tag { position: absolute; top: 8px; right: 8px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.pc .tag.or { background: var(--accent); }
.pc .tag.grey { background: #64748b; }
.pc .bd { padding: 9px 10px 12px; display: flex; flex-direction: column; flex: 1; }
.pc .nm { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pc .kit { font-size: 11px; color: var(--brand); background: var(--brandSoft); border-radius: 5px; padding: 1px 6px; display: inline-block; margin-top: 5px; align-self: flex-start; }
.pc .pr { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.pc .pr small { font-size: 11px; color: var(--muted); }
.pc .pr b { color: var(--accent2); font-size: 18px; font-family: var(--fh); line-height: 1.2; }
.pc .sold { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.pc .stock { font-size: 11.5px; color: var(--ok); margin-top: 1px; }
.pc .stock.out { color: var(--red); }
.skcard { height: 268px; border-radius: 12px; }

/* ---------- product ---------- */
.pd.wrap { padding: 0; }
.pd .card { border-radius: 0; }
.pd .card + .card, .pd-info > .card + .card { margin-top: 8px; }
.gal { position: relative; background: linear-gradient(180deg, #fbfdfc, #e6eeec); height: 340px; overflow: hidden; }
.gal .gmain { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px 0 64px; }
.gal .gmain img { width: 100%; height: 100%; object-fit: contain; }
.gal .gmain svg.art { height: 100%; width: auto; max-width: 78%; }
.gal .fab { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 2; }
.gal .fab a { width: 38px; height: 38px; border-radius: 99px; background: rgba(255, 255, 255, .85); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.gal .fab .badge { top: -3px; right: -5px; }
.gal .thumbs { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; max-width: calc(100% - 84px); overflow-x: auto; z-index: 2; scrollbar-width: none; }
.gal .thumbs button { width: 44px; height: 44px; border-radius: 9px; background: #fff; border: 1.5px solid transparent; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gal .thumbs button.on { border-color: var(--brand); }
.gal .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal .thumbs svg.art { height: 32px; width: auto; max-width: 34px; }
.gal .cnt { position: absolute; bottom: 14px; right: 12px; background: rgba(19, 38, 59, .6); color: #fff; font-size: 11.5px; padding: 2px 10px; border-radius: 99px; z-index: 2; }
.gal .gcap { position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); z-index: 1; }
.pinfo { padding: 14px 16px; }
.pp { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pp b { font-family: var(--fh); font-size: 28px; color: var(--accent2); line-height: 1.15; }
.pp .per { color: var(--muted); font-size: 13.5px; }
.pp .pill { margin-left: auto; align-self: center; }
.pinfo h1 { font-size: 18px; line-height: 1.4; margin-top: 6px; }
.pinfo .sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.pinfo .sku { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.tier { border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 4px; text-align: center; font-size: 11.5px; color: var(--muted); background: #fff; line-height: 1.35; }
.tier b { display: block; font-size: 15px; color: var(--ink); font-family: var(--fh); }
.tier:hover { border-color: #c9d3d9; }
.tier.on { border-color: var(--accent); background: var(--accentSoft); color: var(--accent2); }
.tier.on b { color: var(--accent2); }
.tiernote { font-size: 12px; color: var(--muted); margin-top: 7px; }
.kitline { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kitline:last-of-type { border-bottom: 0; }
.kitline .ki { width: 46px; height: 46px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; }
.kitline .ki svg.art { width: 34px; height: 34px; }
.kitline .kt { font-size: 14px; flex: 1; line-height: 1.35; min-width: 0; }
.kitline .kt small { display: block; color: var(--muted); font-size: 12px; }
.kitline .kq { font-weight: 700; color: var(--brand); font-size: 14px; white-space: nowrap; }
.kitnote { font-size: 12.5px; color: var(--ok); margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
.kitnote .ic { width: 17px; height: 17px; margin-top: 1px; }
.desc { white-space: pre-line; font-size: 14px; color: var(--ink2); line-height: 1.7; }
.ol { font-size: 13.5px; color: var(--ink2); margin-bottom: 8px; font-weight: 600; }
.ol span { font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 12px; font-size: 13.5px; display: inline-flex; gap: 7px; align-items: center; background: #fff; min-height: 38px; }
.chip:hover { border-color: #c9d3d9; }
.chip.on { border-color: var(--brand); color: var(--brand); background: var(--brandSoft); font-weight: 600; }
.chip[disabled] { opacity: .45; cursor: not-allowed; }
.chip small { font-size: 11px; color: var(--red); font-weight: 600; }
.sw { width: 15px; height: 15px; border-radius: 99px; border: 1px solid rgba(0, 0, 0, .18); flex: none; }
.asmopt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.ao { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 11px; font-size: 12px; color: var(--muted); line-height: 1.45; background: #fff; cursor: pointer; display: block; }
.ao input { position: absolute; opacity: 0; pointer-events: none; }
.ao b { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 14px; margin-bottom: 3px; line-height: 1.3; }
.ao .rd { width: 17px; height: 17px; border-radius: 99px; border: 2px solid #b8c3cc; flex: none; background: #fff; }
.ao .ap { display: block; margin-top: 5px; font-weight: 700; color: var(--ink); font-size: 13px; }
.ao .ap em { font-style: normal; color: var(--ok); font-weight: 600; font-size: 12px; }
.ao.on { border-color: var(--brand); background: var(--brandSoft); }
.ao.on .rd { border: 5px solid var(--brand); }
.ao:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.stepper button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.stepper button:hover { background: var(--bg); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; background: none; }
.stepper input { width: 70px; text-align: center; border: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); font-size: 16px; font-weight: 600; outline: 0; background: #fff; border-radius: 0; }
.stepper input:focus { background: var(--brandSoft); }
.stepper.sm button { width: 32px; height: 34px; }
.stepper.sm .ic { width: 16px; height: 16px; }
.stepper.sm input { width: 56px; font-size: 16px; }
.qrow { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.qrow .qinfo { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.qrow .qinfo b { color: var(--ok); }
.hint { font-size: 12.5px; color: var(--warn); background: var(--warnSoft); border-radius: 8px; padding: 6px 10px; margin-top: 8px; display: flex; gap: 6px; align-items: center; line-height: 1.4; text-align: left; }
.hint .ic { width: 15px; height: 15px; }
.hint.ok { color: var(--ok); background: var(--okSoft); }
.hint.err { color: var(--red); background: var(--redSoft); }
.hint.info { color: var(--brand2); background: var(--brandSoft); }
button.hint { width: 100%; cursor: pointer; }
button.hint:hover { filter: brightness(.97); }
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line);
  padding: 10px 14px calc(12px + var(--safe-b)); display: flex; gap: 10px; align-items: center; box-shadow: 0 -4px 16px rgba(19, 38, 59, .06);
}
.buybar .sum { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.buybar .sum b { display: block; color: var(--ink); font-size: 19px; font-family: var(--fh); }
.buybar .sum .tot { color: var(--accent2); }
.buybar .btn { padding: 11px 14px; }
.buybar .sumline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---------- cart / checkout ---------- */
.cols > * + * { margin-top: 10px; }
.maincol > .card + .card { margin-top: 10px; }
.side { display: flex; flex-direction: column; gap: 10px; }
.side > :empty { display: none; }
.list { background: #fff; }
.ci { background: #fff; padding: 12px 14px; display: flex; gap: 12px; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: 0; }
.ci .ii { width: 78px; height: 78px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.ci .ii img { width: 100%; height: 100%; object-fit: cover; }
.ci .ii svg.art { height: 64px; width: auto; max-width: 64px; }
.ci .cb { flex: 1; min-width: 0; }
.ci .ct { display: flex; gap: 6px; align-items: flex-start; }
.ci .cn { font-size: 14px; line-height: 1.4; font-weight: 500; flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci .rm { width: 32px; height: 32px; margin: -5px -6px 0 0; border-radius: 99px; color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.ci .rm:hover { color: var(--red); background: var(--redSoft); }
.ci .rm .ic { width: 18px; height: 18px; }
.ci .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; align-items: center; }
.cv { font-size: 12px; color: var(--ink2); background: var(--bg); padding: 1px 8px; border-radius: 6px; line-height: 1.6; }
.modesel { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 7px; padding: 1px 6px 1px 8px; border: 1px solid; line-height: 1.6; }
.modesel .ic { width: 13px; height: 13px; }
.modesel select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; font-size: 16px; }
.modesel.a { color: var(--brand); border-color: var(--brand); background: var(--brandSoft); }
.modesel.s { color: var(--blue); border-color: var(--blue); background: var(--blueSoft); }
.modesel:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.ci .cr { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: space-between; }
.ci .up { line-height: 1.25; }
.ci .up b { color: var(--accent2); font-family: var(--fh); font-size: 16px; }
.ci .up small { color: var(--muted); font-size: 11.5px; margin-left: 2px; }
.ci .up .lt { display: block; font-size: 12px; color: var(--muted); }
.ci .up .lt strong { color: var(--ink); font-weight: 600; }
.ci.bad { background: #fffafa; }
.carriers { display: grid; gap: 8px; }
.carrier { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; font-size: 14px; }
.carrier input { position: absolute; opacity: 0; pointer-events: none; }
.carrier .lg { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--brandSoft); color: var(--brand); }
.carrier .lg.thaipost { background: #fde8e8; color: #c0262d; }
.carrier .lg.flash { background: #fff6cc; color: #8a6d00; }
.carrier .cl { flex: 1; min-width: 0; line-height: 1.35; }
.carrier .cl small { display: block; color: var(--muted); font-size: 12px; }
.carrier .fee { font-weight: 700; white-space: nowrap; }
.carrier .fee.free { color: var(--ok); }
.carrier .rd { width: 18px; height: 18px; border-radius: 99px; border: 2px solid #b8c3cc; flex: none; }
.carrier.on { border-color: var(--brand); background: var(--brandSoft); }
.carrier.on .rd { border: 5px solid var(--brand); background: #fff; }
.carrier.dis { opacity: .5; cursor: not-allowed; }
.carrier:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.freebar { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.freebar .sic { width: 38px; height: 38px; border-radius: 10px; background: var(--brandSoft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.bar { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 9px; transition: width .3s; }
.calc { font-size: 14px; }
.calc .l { display: flex; gap: 10px; padding: 5px 0; color: var(--ink2); }
.calc .l b { margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }
.calc .l.dis b { color: var(--ok); }
.calc .tot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.calc .tot span { font-weight: 600; }
.calc .tot b { margin-left: auto; font-family: var(--fh); font-size: 24px; color: var(--accent2); white-space: nowrap; }
.calc .note { font-size: 12px; color: var(--muted); text-align: right; margin-top: 2px; }
.problems { background: var(--redSoft); color: #9b1c1c; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; line-height: 1.5; }
.problems .ic { color: var(--red); margin-top: 1px; }
.problems ul { list-style: disc; padding-left: 18px; }
.sumitem { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.sumitem:last-child { border-bottom: 0; }
.sumitem .ii { width: 48px; height: 48px; border-radius: 9px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.sumitem .ii img { width: 100%; height: 100%; object-fit: cover; }
.sumitem .ii svg.art { height: 40px; width: auto; max-width: 40px; }
.sumitem .si { flex: 1; min-width: 0; line-height: 1.4; }
.sumitem .si .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sumitem .si .m { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; align-items: center; font-size: 12px; color: var(--muted); }
.sumitem .si .parts { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sumitem .sv { text-align: right; white-space: nowrap; font-weight: 600; }
.sumitem .sv small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 5px; }
.field > span em { color: var(--red); font-style: normal; }
.field > span small { font-weight: 400; color: var(--muted); }
.inp { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 16px; background: #fff; outline: 0; min-height: 46px; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brandSoft); }
textarea.inp { min-height: 86px; resize: vertical; line-height: 1.5; }
.inp.bad { border-color: var(--red); }
.ferr { color: var(--red); font-size: 12.5px; margin-top: 4px; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.taxbox { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.formerr { background: var(--redSoft); color: #9b1c1c; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; display: flex; gap: 8px; }
.loginnote { display: flex; gap: 10px; align-items: center; font-size: 13.5px; background: var(--brandSoft); color: var(--brand2); border-radius: 12px; padding: 10px 14px; }
.loginnote a { font-weight: 700; text-decoration: underline; }

/* ---------- payment / order ---------- */
.ohead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ohead h2 { font-size: 18px; }
.ohead .when { font-size: 12.5px; color: var(--muted); width: 100%; }
.paybox { text-align: center; }
.pp-head { display: flex; align-items: center; justify-content: center; gap: 8px; background: #0d3a66; color: #fff; border-radius: 10px; padding: 9px; font-weight: 600; font-size: 14px; }
.pp-head .ic { width: 20px; height: 20px; }
.qr { width: 236px; height: 236px; margin: 14px auto 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.acct { font-size: 13px; color: var(--ink2); }
.amt { font-family: var(--fh); font-size: 30px; color: var(--ink); font-weight: 600; line-height: 1.25; margin-top: 4px; }
.amt-l { font-size: 12.5px; color: var(--muted); }
.timer { display: inline-flex; gap: 6px; align-items: center; background: var(--redSoft); color: var(--red); font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 99px; margin-top: 6px; }
.timer .ic { width: 16px; height: 16px; }
.timer.late { background: var(--greySoft); color: var(--grey); }
.paybtns { display: flex; gap: 8px; margin-top: 14px; }
.paybtns .btn { flex: 1; }
.paynote { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.notice { background: var(--warnSoft); color: #6e4206; border-radius: 12px; padding: 12px 14px; text-align: left; font-size: 14px; line-height: 1.55; display: flex; gap: 10px; }
.notice .ic { color: var(--warn); margin-top: 2px; }
.notice b { display: block; }
.notice a { font-weight: 700; text-decoration: underline; }
.notice.red { background: var(--redSoft); color: #8c1d1d; }
.notice.red .ic { color: var(--red); }
.notice.blue { background: var(--blueSoft); color: #1e3a8a; }
.notice.blue .ic { color: var(--blue); }
.notice.ok { background: var(--okSoft); color: #14532d; }
.notice.ok .ic { color: var(--ok); }
.howto .st { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink2); text-align: left; padding: 4px 0; line-height: 1.5; }
.howto .st i { width: 21px; height: 21px; border-radius: 99px; background: var(--brandSoft); color: var(--brand); font-style: normal; font-weight: 700; font-size: 11.5px; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.slipbox { border: 1.5px dashed #b8c3cc; border-radius: 12px; padding: 12px; margin-top: 12px; text-align: left; }
.slipbox .prev { max-height: 300px; border-radius: 8px; margin: 0 auto 10px; }
.slipbox .fn { font-size: 12.5px; color: var(--muted); text-align: center; margin-bottom: 10px; word-break: break-all; }
.result { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; text-align: left; }
.result.ok { background: var(--okSoft); color: var(--ok); }
.result.warn { background: var(--warnSoft); color: var(--warn); }
.result.red { background: var(--redSoft); color: var(--red); }
.slipthumb { display: flex; gap: 12px; align-items: center; margin-top: 10px; text-align: left; font-size: 13px; }
.slipthumb img { width: 64px; height: 86px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.steps5 { display: flex; justify-content: space-between; position: relative; margin: 6px 0 2px; }
.steps5::before { content: ''; position: absolute; top: 16px; left: 30px; right: 30px; height: 3px; background: var(--line); border-radius: 3px; }
.steps5 .fill { position: absolute; top: 16px; left: 30px; height: 3px; background: var(--ok); border-radius: 3px; width: calc((100% - 60px) * var(--f, 0)); }
.steps5 > div { z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); width: 60px; text-align: center; line-height: 1.25; }
.steps5 > div i { width: 34px; height: 34px; border-radius: 99px; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.steps5 > div i .ic { width: 17px; height: 17px; }
.steps5 > div.d i { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps5 > div.n i { border-color: var(--brand); color: var(--brand); background: var(--brandSoft); }
.steps5 > div.d, .steps5 > div.n { color: var(--ink); font-weight: 600; }
.stagebox { background: var(--brandSoft); border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: 13px; color: var(--brand2); line-height: 1.5; }
.stagebox b { display: block; font-size: 13.5px; }
.tl { position: relative; margin: 4px 0 0 2px; }
.tl .ti { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl .ti::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--line); }
.tl .ti.done::before { background: #9fd8b6; }
.tl .ti:last-child { padding-bottom: 0; }
.tl .ti:last-child::before { display: none; }
.tl .dot { width: 22px; height: 22px; border-radius: 99px; background: #fff; border: 2px solid var(--line); flex: none; display: flex; align-items: center; justify-content: center; z-index: 1; color: #fff; }
.tl .dot .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.tl .done .dot { background: var(--ok); border-color: var(--ok); }
.tl .now .dot { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brandSoft); }
.tl .now .dot::after { content: ''; width: 9px; height: 9px; border-radius: 9px; background: var(--brand); }
.tl .bad .dot { background: var(--red); border-color: var(--red); }
.tl .tt { font-size: 14px; font-weight: 600; line-height: 1.35; min-width: 0; }
.tl .tt small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 1px; }
.tl .tt .nt { display: block; font-weight: 400; color: var(--ink2); font-size: 12.5px; }
.track { display: flex; gap: 12px; align-items: center; }
.track .tic { width: 42px; height: 42px; border-radius: 10px; background: var(--okSoft); color: var(--ok); display: flex; align-items: center; justify-content: center; flex: none; }
.track .tn { flex: 1; min-width: 0; line-height: 1.4; }
.track .tn b { font-family: var(--fh); font-size: 16px; letter-spacing: .3px; word-break: break-all; }
.track .tn small { display: block; color: var(--muted); font-size: 12.5px; }
.addr { font-size: 14px; line-height: 1.55; color: var(--ink2); }
.addr b { color: var(--ink); }
.kv { display: flex; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.kv span { color: var(--muted); min-width: 92px; }
.otabs { background: #fff; display: flex; font-size: 13px; border-bottom: 1px solid var(--line); position: sticky; top: var(--apphead); z-index: 30; overflow-x: auto; scrollbar-width: none; }
.otabs::-webkit-scrollbar { display: none; }
.otabs a { flex: 1 0 auto; min-width: 70px; text-align: center; padding: 7px 8px 10px; color: var(--ink2); position: relative; white-space: nowrap; }
.otabs a.on { color: var(--brand); font-weight: 700; }
.otabs a.on::after { content: ''; position: absolute; bottom: 0; left: 18%; right: 18%; height: 3px; background: var(--brand); border-radius: 3px; }
.otabs small { display: block; font-size: 10.5px; color: var(--accent2); font-weight: 700; height: 15px; line-height: 15px; }
.oc { background: #fff; border-radius: 14px; overflow: hidden; margin-top: 10px; display: block; transition: box-shadow .15s; }
.oc:hover { box-shadow: var(--shadow); }
.oc .oh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.oc .oh b { color: var(--ink); font-size: 13.5px; }
.oc .ob { padding: 12px 14px; }
.oc .ofoot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 10px 14px; flex-wrap: wrap; }
.oc .ofoot .tot { font-family: var(--fh); font-size: 17px; font-weight: 600; }
.oc .thumbs { display: flex; gap: 6px; align-items: center; }
.oc .thumbs > span { width: 46px; height: 46px; border-radius: 9px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.oc .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.oc .thumbs svg.art { height: 38px; width: auto; max-width: 38px; }
.oc .ttl1 { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.oc .cntl { font-size: 12.5px; color: var(--muted); }
.guestnote { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.5; }
.guestnote a { color: var(--brand); font-weight: 600; }

/* ---------- account ---------- */
.auth { max-width: 460px; margin: 0 auto; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--greySoft); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.seg a { text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--ink2); font-size: 14.5px; }
.seg a.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.prof { display: flex; gap: 14px; align-items: center; }
.prof .av { width: 56px; height: 56px; border-radius: 99px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--fh); font-size: 22px; flex: none; }
.prof h2 { font-size: 18px; }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.menu-list a:last-child { border-bottom: 0; }
.menu-list a .ic:first-child { color: var(--brand); }
.menu-list a .ic:last-child { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }

/* ---------- page container spacing ---------- */
.page { padding-top: 10px; padding-bottom: 8px; }
.page > .card, .page > section { margin-top: 10px; }
.stack > * + * { margin-top: 10px; }

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero h1 { font-size: 26px; }
  .usp { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .usp > div:nth-child(4) { display: flex; }
  .usp > div { font-size: 12.5px; padding: 11px 12px; }
}

/* ---------- desktop ≥ 900px ---------- */
@media (min-width: 900px) {
  .m-only { display: none !important; }
  .d-only { display: revert !important; }
  .dnav { display: block; }
  body.has-tabbar, body.has-bar { padding-bottom: 0; }
  .pagehead { display: flex; }
  .toast-wrap { bottom: 32px; }
  .hero { min-height: 300px; padding: 44px 48px; margin-top: 22px; border-radius: 20px; }
  .hero-txt { max-width: 560px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; max-width: 470px; margin-top: 10px; }
  .hero .btn { min-height: 46px; padding: 11px 20px; font-size: 15px; margin-top: 20px; }
  .hero-art { width: 340px; height: 300px; right: 50px; bottom: -14px; }
  .usp { margin-top: 16px; gap: 12px; }
  .usp > div { font-size: 13.5px; padding: 14px 16px; gap: 10px; }
  .usp .ic { width: 24px; height: 24px; }
  .sec { padding-top: 30px; }
  .sec-h h2 { font-size: 22px; }
  .cats { display: flex; flex-wrap: wrap; gap: 18px; }
  .cat { width: 96px; font-size: 13px; }
  .cat .cb { width: 80px; height: 80px; border-radius: 20px; }
  .cat .cb svg.art { height: 56px; max-width: 60px; }
  .cat:hover .cb { border-color: #cfe3e0; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .pc .bd { padding: 12px 14px 14px; }
  .pc .nm { font-size: 14.5px; }
  .pc:hover { transform: translateY(-2px); }

  .pd.wrap { padding: 24px 16px 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .pd .card { border-radius: var(--radius); }
  .pd-gal { position: sticky; top: 94px; }
  .gal { height: 540px; border-radius: var(--radius); }
  .gal .gmain { padding: 40px 0 80px; }
  .gal .thumbs { left: 16px; bottom: 16px; }
  .gal .thumbs button { width: 60px; height: 60px; }
  .gal .thumbs svg.art { height: 44px; max-width: 46px; }
  .pinfo { padding: 20px 22px; }
  .pinfo h1 { font-size: 24px; }
  .pp b { font-size: 34px; }
  .pd-info .cardpad { padding: 18px 22px; }
  .tiers { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .tier { cursor: pointer; }
  .buybar { position: static; box-shadow: var(--shadow); border: 0; border-radius: var(--radius); margin-top: 12px; padding: 16px 18px; }
  .buybar .btn { padding: 12px 22px; }
  .buybar .sum b { font-size: 24px; }

  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; }
  .cols > * + * { margin-top: 0; }
  .cols .side { position: sticky; top: 94px; gap: 12px; }
  .foot .in { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .list { border-radius: var(--radius); overflow: hidden; }
  .ci { padding: 16px 18px; gap: 16px; }
  .ci .ii { width: 96px; height: 96px; }
  .ci .ii svg.art { height: 80px; max-width: 80px; }
  .page { padding-top: 0; }
  .ohead h2 { font-size: 22px; }
  .otabs { top: 70px; border-radius: var(--radius) var(--radius) 0 0; }
  .orders-wrap { max-width: 820px; margin: 0 auto; }
  .apphead { display: none; }
}
@media (min-width: 1100px) {
  .grid { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* QR เพิ่มเพื่อน LINE (ท้ายเว็บ + หน้าชำระเงิน) */
.foot-qr{display:flex;align-items:center;gap:10px}
.foot-qr img{width:112px;height:112px;border-radius:10px;background:#fff;padding:6px}
.foot-qr span{font-size:12.5px;opacity:.85}
.contact-qr{display:block;width:120px;height:120px;margin-top:8px;border-radius:10px;background:#fff;padding:6px;border:1px solid var(--line,#e3e8ec)}
.foot .js-contact li, .foot .js-contact li > a { display: flex; align-items: center; gap: 8px; }
.foot .js-contact li svg { flex: none; }
