/* ===== GO+MART — ລະບົບດີໄຊນ໌ດຽວກັບ "ລະບົບສະຕັອກ" ===== */

:root{
  /* ແຖບຂ້າງສີຂຽວ */
  --side:#116b49; --side-2:#0d5a3d; --side-3:#0a4a33;
  --side-ink:#ecf6f1; --side-dim:#9ecbb7;
  /* ສີຫຼັກ */
  --brand:#1f6f54; --brand-d:#15543f; --brand-l:#2a8a69; --brand-tint:#e8f3ee;
  --gold:#f5c518; --gold-tint:#fdf6da; --gold-ink:#8a6b05;
  /* ພື້ນ ແລະ ເສັ້ນ */
  --bg:#f5f8f7; --surface:#ffffff; --surface-2:#f2f6f4; --line:#e6ecea; --line-2:#cdd8d3;
  /* ຕົວໜັງສື */
  --ink:#13211c; --ink-2:#36443e; --muted:#6b7a74;
  /* ສີແຈ້ງເຕືອນ */
  --danger:#dc2f2f; --danger-tint:#fdecea;
  --warn:#c2410c; --warn-tint:#fdeee4;
  --amber:#8f5e12;
  --mint:#e7f1ed; --peach:#fdeee4; --blush:#fdecea; --sky:#e8f0fb; --lilac:#f1ecfa;
  /* ເງົາ */
  --sh-1:0 1px 2px rgba(16,24,40,.05);
  --sh-2:0 1px 2px rgba(16,24,40,.04), 0 10px 26px -14px rgba(16,24,40,.2);
  --sh-3:0 18px 44px -20px rgba(16,24,40,.35);
  --r-lg:20px; --r-md:14px; --r-sm:10px;
}

html,body{height:100%}
body{
  margin:0; background:#0e3a29; color:var(--ink);
  font-family:'Noto Sans Lao','Inter',system-ui,sans-serif;
  font-size:15px; line-height:1.6; -webkit-text-size-adjust:100%;
}
*{word-break:keep-all; overflow-wrap:normal; -webkit-tap-highlight-color:transparent}
button,input,textarea,select{font:inherit; color:inherit}
button{cursor:pointer; border:none; background:none; padding:0}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:2px solid var(--brand-l); outline-offset:2px; border-radius:6px
}

#frame{
  height:100%; max-width:430px; margin:0 auto; background:var(--bg);
  display:flex; flex-direction:column; overflow:hidden; position:relative;
}
@media (min-width:460px){
  #frame{height:calc(100% - 24px); margin:12px auto; border-radius:20px; box-shadow:var(--sh-3)}
}
/* ລະບົບຈັດການເທິງຈໍກວ້າງ — ກາງອອກເຕັມ ມີແຖບຂ້າງ */
@media (min-width:900px){
  #frame.admin-mode{max-width:1280px}
}
#screen{flex:1 1 auto; display:flex; flex-direction:column; min-height:0; overflow:hidden}

.scroll{flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; min-height:0}
.pad{padding:4px 16px 24px}
.col{display:flex; flex-direction:column}
.row{display:flex; align-items:center}
.grow{flex-grow:1}

/* ---------- type ---------- */
.serif{font-family:'Noto Serif Lao','Noto Sans Lao',serif}
.mono{font-family:'JetBrains Mono',ui-monospace,monospace; font-variant-numeric:tabular-nums}
h1,h2,h3{margin:0; text-wrap:balance; font-weight:700; letter-spacing:-.015em}
.h-brand{font-size:11px; font-weight:600; letter-spacing:.14em; color:var(--muted)}
.h-page{font-size:26px; font-weight:800; letter-spacing:-.03em; line-height:1.2}
@media (min-width:900px){ #frame.admin-mode .h-page{font-size:32px} }
.h-title{font-size:21px; font-weight:800; letter-spacing:-.02em; color:var(--ink)}
.h-sec{font-size:17px; font-weight:700; letter-spacing:-.01em}
.crumb{font-size:12.5px; color:var(--muted); letter-spacing:.01em}
.note{font-size:12.5px; color:var(--muted); line-height:1.5}
.price{font-weight:700; font-variant-numeric:tabular-nums; color:var(--brand)}
.num{font-size:30px; font-weight:800; letter-spacing:-.03em; line-height:1.2;
  font-variant-numeric:tabular-nums; color:var(--brand); white-space:nowrap}
@media (min-width:900px){ #frame.admin-mode .num{font-size:34px} }
.num.bad{color:var(--danger)}

/* ---------- ກ້ອນໄອຄອນສີອ່ອນ (ເອກະລັກຂອງ GO+MART) ---------- */
.tile{width:44px; height:44px; flex-shrink:0; border-radius:12px; display:flex;
  align-items:center; justify-content:center; font-size:20px; background:var(--mint); color:var(--brand)}
.tile.sm{width:36px; height:36px; border-radius:10px; font-size:17px}
.tile.peach{background:var(--peach); color:var(--warn)}
.tile.blush{background:var(--blush); color:var(--danger)}
.tile.cream{background:var(--gold-tint); color:var(--gold-ink)}
.tile.sky{background:var(--sky); color:#2563a8}
.tile.lilac{background:var(--lilac); color:#6d4fa8}

/* ---------- ປຸ່ມ ---------- */
.press{transition:transform .12s ease, opacity .12s ease, background .12s ease}
.press:active{transform:scale(.975); opacity:.9}

.btn-green,.btn-gold,.btn-pale{display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:46px; padding:0 20px; border-radius:var(--r-md); font-weight:650; text-decoration:none}
.btn-green{background:var(--brand); color:#fff}
.btn-green:hover{background:var(--brand-l)}
.btn-gold{background:var(--gold); color:#2b2206}
.btn-pale{background:var(--surface); color:var(--ink); border:1px solid var(--line)}
.btn-green[disabled],.btn-gold[disabled]{background:var(--surface-2); color:#9aa8a2; cursor:not-allowed}

.icon-btn{width:42px; height:42px; border-radius:12px; display:flex; align-items:center;
  justify-content:center; position:relative; color:var(--brand);
  background:var(--surface); border:1px solid var(--line); box-shadow:var(--sh-1)}
.icon-btn[disabled]{opacity:.4; cursor:not-allowed}
.badge{position:absolute; top:-5px; right:-5px; min-width:18px; height:18px; padding:0 4px;
  border-radius:9999px; background:var(--danger); color:#fff; font-size:11px; font-weight:700;
  display:flex; align-items:center; justify-content:center; line-height:1; box-shadow:0 0 0 2px var(--bg)}

/* ບັດຂາວມຸມມົນ */
.card{background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-2)}
.card-pad{padding:18px}

/* ແຖບເລືອກ segmented (ມື້ນີ້ / 7 ມື້ / 30 ມື້) */
.seg{display:inline-flex; gap:2px; padding:4px; border-radius:var(--r-md);
  background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--line)}
.seg button{min-height:36px; padding:0 14px; border-radius:10px; font-size:13.5px;
  font-weight:600; color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface); color:var(--ink); box-shadow:var(--sh-1)}
.seg.solid button[aria-pressed="true"]{background:var(--brand); color:#fff}

.chip{flex-shrink:0; min-height:38px; padding:0 15px; border-radius:9999px; font-size:13.5px;
  color:var(--ink-2); font-weight:550; background:var(--surface); border:1px solid var(--line)}
.chip[aria-pressed="true"]{color:#fff; font-weight:650; background:var(--brand); border-color:var(--brand)}

/* ປ້າຍສະຖານະແບບເມັດດຳ */
.statpill{display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:9999px;
  background:var(--ink); color:#fff; font-size:12px; font-weight:650; white-space:nowrap}
.statpill::before{content:""; width:7px; height:7px; border-radius:50%; background:currentColor; opacity:.85}
.statpill.soft{background:var(--surface-2); color:var(--ink-2)}
.statpill.warn{background:var(--warn-tint); color:var(--warn)}
.statpill.ok{background:var(--mint); color:var(--brand-d)}
.statpill.bad{background:var(--danger-tint); color:var(--danger)}

.pill{align-self:flex-start; padding:3px 10px; border-radius:8px; font-size:11.5px; font-weight:650;
  letter-spacing:.04em; background:rgba(255,255,255,.18); color:#fff; border:1px solid rgba(255,255,255,.28)}
.tag18{position:absolute; top:8px; left:8px; padding:1px 6px; border-radius:6px;
  background:rgba(19,33,28,.84); color:#fff; font-size:11px; font-weight:650; line-height:18px}

/* ແຖບແຈ້ງເຕືອນ (ມີປຸ່ມຢູ່ຂວາ) */
.banner{display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:var(--r-lg);
  background:var(--brand-tint); color:var(--brand-d)}
.banner.warn{background:var(--warn-tint); color:var(--warn)}
.banner.gold{background:var(--gold-tint); color:var(--gold-ink)}

/* ແຖວລາຍການໃນບັດ */
.listrow{display:flex; align-items:center; gap:13px; width:100%; padding:12px 14px;
  border-radius:var(--r-md); background:var(--surface); border:1px solid var(--line); text-align:left}
.listrow + .listrow{margin-top:8px}
.listrow[aria-pressed="true"]{border-color:var(--brand); background:var(--brand-tint)}

/* ຕົວເລືອກກ່ອງ (ຂະໜາດ · ກາດ · ວັນສົ່ງ) */
.opt{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  min-height:76px; padding:12px 6px; border-radius:var(--r-md); line-height:1.45; text-align:center;
  background:var(--surface); border:1px solid var(--line); color:var(--ink); box-shadow:var(--sh-1);
  transition:border-color .12s, background .12s}
.opt[aria-pressed="true"]{border-color:var(--brand); background:var(--brand-tint); box-shadow:none}
.opt[aria-pressed="true"] .opt-name{color:var(--brand-d); font-weight:700}

.swatch{width:44px; height:44px; border-radius:50%; position:relative;
  box-shadow:inset 0 -6px 12px rgba(0,0,0,.14), inset 0 2px 4px rgba(255,255,255,.3);
  transition:box-shadow .15s}
.swatch-on{box-shadow:inset 0 -6px 12px rgba(0,0,0,.14), 0 0 0 2px var(--bg), 0 0 0 4px var(--brand)}

.field{display:flex; flex-direction:column; gap:5px; font-size:13px; font-weight:600; color:var(--ink-2)}
.field input,.field textarea,.field select{min-height:46px; box-sizing:border-box;
  border:1px solid var(--line-2); border-radius:var(--r-sm); padding:11px 12px; font-size:15px;
  font-weight:400; color:var(--ink); background:var(--surface)}
.field textarea{resize:none}
.field.bad input,.field.bad textarea{border-color:var(--danger)}
.err{font-size:12.5px; font-weight:600; color:var(--danger)}

/* header / nav */
.hdr{display:flex; align-items:center; justify-content:space-between; padding:16px 16px 10px; flex-shrink:0}
.nav{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); flex-shrink:0;
  background:var(--surface); border-top:1px solid var(--line); padding:7px 4px 8px;
  padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
.nav a{display:flex; flex-direction:column; align-items:center; gap:3px; min-height:44px;
  font-size:11px; color:var(--muted); text-decoration:none; font-weight:500}
.nav a.on{color:var(--brand); font-weight:650}
.foot{background:var(--surface); border-top:1px solid var(--line); padding:10px 16px 12px;
  padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));
  display:flex; flex-direction:column; gap:8px; flex-shrink:0}

/* ===== ໂຄງລະບົບຈັດການ: ແຖບຂ້າງ + ເນື້ອຫາ ===== */
.gm-shell{display:flex; flex:1; min-height:0; background:var(--bg)}
.gm-body{display:flex; flex-direction:column; flex:1; min-width:0; min-height:0}
.gm-side{display:none; width:258px; flex-shrink:0; background:var(--side); color:var(--side-ink);
  flex-direction:column; min-height:0}
.gm-side-top{padding:18px 16px 10px; display:flex; align-items:center; gap:12px}
/* ===== ໂລໂກ້ GO+MART ===== */
/* ປ້າຍສີ່ຫຼ່ຽມມົນ ຂອບຂາວ — Go ຂາວ · + ຄຳ · mart ຄຳ */
.gmark{width:56px; height:56px; flex-shrink:0; border-radius:16px;
  border:2px solid rgba(255,255,255,.92); display:flex; flex-direction:column;
  align-items:center; justify-content:center; line-height:1;
  font-family:'Inter',system-ui,sans-serif; letter-spacing:-.02em; background:transparent}
.gmark .a{font-size:19px; font-weight:800; color:#fff}
.gmark .a i{color:var(--gold); font-style:normal}
.gmark .b{font-size:15px; font-weight:800; color:var(--gold); font-style:italic;
  margin-top:1px; padding-left:10px; align-self:center}
/* ຂະໜາດນ້ອຍ ສຳລັບແຖບເທິງຝັ່ງລູກຄ້າ */
.gmark.sm{width:42px; height:42px; border-radius:12px; border-width:1.6px}
.gmark.sm .a{font-size:14px}
.gmark.sm .b{font-size:11px; padding-left:8px}
/* ເທິງພື້ນຂາວ (ໃບບິນ) — ປ່ຽນຂອບ ແລະ ຕົວໜັງສືເປັນສີແບຣນ */
.gmark.ink{border-color:var(--brand)}
.gmark.ink .a{color:var(--brand)}
.gm-logo{width:48px; height:48px; border-radius:14px; background:#fff; color:var(--side);
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:12px;
  line-height:1.05; text-align:center; flex-shrink:0}
.gm-side-scroll{flex:1 1 auto; overflow-y:auto; padding:6px 12px 10px; min-height:0}
.gm-group{display:flex; align-items:center; gap:8px; padding:16px 8px 8px; font-size:12px;
  color:var(--side-dim); font-weight:600}
.gm-group i{width:7px; height:7px; border-radius:50%; background:currentColor; display:block}
.gm-navitem{display:flex; align-items:center; gap:12px; width:100%; padding:9px 10px; border-radius:14px;
  color:var(--side-ink); font-size:14.5px; font-weight:550; text-align:left; margin-bottom:4px}
.gm-navitem:hover{background:rgba(255,255,255,.1)}
.gm-navitem .ni{width:36px; height:36px; border-radius:11px; background:rgba(255,255,255,.14);
  display:flex; align-items:center; justify-content:center; flex-shrink:0}
.gm-navitem.on{background:#fff; color:var(--side-3); font-weight:700}
.gm-navitem.on .ni{background:var(--brand-tint); color:var(--brand)}
.gm-side-foot{padding:12px 16px 18px; border-top:1px solid rgba(255,255,255,.14);
  display:flex; flex-direction:column; gap:10px; font-size:12.5px; color:var(--side-dim)}
.gm-admin{align-self:flex-start; padding:3px 10px; border-radius:8px; background:var(--gold);
  color:#3a2e02; font-size:12px; font-weight:700}
@media (min-width:900px){
  #frame.admin-mode .gm-side{display:flex}
  #frame.admin-mode .gm-shell > .gm-body > .nav{display:none}
  #frame.admin-mode .gm-pagepad{padding:22px 28px 28px}
}
.gm-pagepad{padding:14px 16px 18px; display:flex; flex-direction:column; gap:14px}

/* ---------- ເວທີ 3D ---------- */
.stage{position:relative; overflow:hidden; touch-action:none; cursor:grab; user-select:none;
  background:#0f2a20 url("img/textures/bokeh.webp") center/cover no-repeat}
.stage:active{cursor:grabbing}
.p3d{transform-style:preserve-3d}
.origin{position:absolute; left:0; top:0; width:0; height:0; transform-style:preserve-3d}
#fxLayer{position:absolute; inset:0; pointer-events:none; z-index:55; overflow:hidden}

.p-liquor{background:url("img/products/liquor.webp") center/100% 100% no-repeat}
.p-orchid{background:url("img/products/orchid.webp") center/100% 100% no-repeat}
.p-lotus{background:url("img/products/lotus.webp") center/100% 100% no-repeat}
.p-basil{background:url("img/products/basil.webp") center/100% 100% no-repeat}
.p-mushroom{background:url("img/products/mushroom.webp") center/100% 100% no-repeat}
.ph-liquor{background:url("img/products/liquor.webp") center/contain no-repeat}
.ph-orchid{background:url("img/products/orchid.webp") center/contain no-repeat}
.ph-lotus{background:url("img/products/lotus.webp") center/contain no-repeat}
.ph-basil{background:url("img/products/basil.webp") center/contain no-repeat}
.ph-mushroom{background:url("img/products/mushroom.webp") center/contain no-repeat}
.pk-coffee{background:url("img/packaging/pk_coffee.webp") center/100% 100% no-repeat}
.pk-tea{background:url("img/packaging/pk_tea.webp") center/100% 100% no-repeat}
.pk-juice{background:url("img/packaging/pk_juice.webp") center/100% 100% no-repeat}
.pk-cookie{background:url("img/packaging/pk_cookie.webp") center/100% 100% no-repeat}
.pk-choc{background:url("img/packaging/pk_choc.webp") center/100% 100% no-repeat}
.pk-khanom{background:url("img/packaging/pk_khanom.webp") center/100% 100% no-repeat}
.pk-honey{background:url("img/packaging/pk_honey.webp") center/100% 100% no-repeat}
.pk-candle{background:url("img/packaging/pk_candle.webp") center/100% 100% no-repeat}
.pk-fruit{background:url("img/packaging/pk_fruit.webp") center/100% 100% no-repeat}
.pk-orange{background:url("img/packaging/pk_orange.webp") center/100% 100% no-repeat}
.pk-silk{background:url("img/packaging/pk_silk.webp") center/100% 100% no-repeat}
.p-back{filter:brightness(.45) saturate(.8)}
.tx-wicker-light{background-image:url("img/textures/wicker_light.webp");background-repeat:repeat}
.tx-wicker-dark{background-image:url("img/textures/wicker_dark.webp");background-repeat:repeat}
.tx-box{background-image:url("img/textures/box_cream.webp");background-repeat:repeat}
.tx-rim-light{background-image:url("img/textures/rim_light.webp");background-repeat:repeat-x}
.tx-rim-dark{background-image:url("img/textures/rim_dark.webp");background-repeat:repeat-x}
.tx-handle-light{background:url("img/textures/handle_light.webp") center/100% 100% no-repeat}
.tx-handle-dark{background:url("img/textures/handle_dark.webp") center/100% 100% no-repeat}
.tx-shred{background-image:url("img/textures/shred.webp");background-repeat:repeat}
.tx-wood{background-image:url("img/textures/wood.webp");background-repeat:repeat}

/* ---------- keyframes ---------- */
@keyframes dropIn{0%{transform:translateY(-230px) rotateY(-90deg)}55%{transform:translateY(8px) rotateY(10deg)}
  75%{transform:translateY(-6px) rotateY(-4deg)}100%{transform:translateY(0) rotateY(0)}}
@keyframes sway{0%,100%{transform:rotateY(-7deg)}50%{transform:rotateY(7deg)}}
@keyframes bump{0%{transform:scale3d(1,1,1)}35%{transform:scale3d(1.06,.93,1.06)}
  70%{transform:scale3d(.98,1.03,.98)}100%{transform:scale3d(1,1,1)}}
@keyframes faceIn{0%{opacity:0}100%{opacity:1}}
@keyframes bowA{0%{transform:scale(.1) rotate(-30deg)}60%{transform:scale(1.2) rotate(8deg)}100%{transform:scale(1) rotate(0)}}
@keyframes toastIn{0%{opacity:0;transform:translate(-50%,-10px)}10%,80%{opacity:1;transform:translate(-50%,0)}
  100%{opacity:0;transform:translate(-50%,-8px)}}
@keyframes twinkle{0%,100%{opacity:.25}50%{opacity:.9}}
@keyframes rays{0%{transform:translate(-50%,-50%) rotate(0)}100%{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes glow{0%,100%{opacity:.5;transform:translate(-50%,-50%) scale(1)}50%{opacity:.9;transform:translate(-50%,-50%) scale(1.14)}}
@keyframes star{0%{opacity:0;transform:scale(0) rotate(0)}45%{opacity:1;transform:scale(1) rotate(90deg)}
  100%{opacity:0;transform:scale(0) rotate(180deg)}}
@keyframes fall{0%{opacity:0;transform:translateY(-20px) rotate(0)}12%{opacity:1}
  100%{opacity:0;transform:translateY(340px) rotate(540deg)}}
@keyframes ring{0%{opacity:.9;transform:translate(-50%,-50%) scale(.3)}100%{opacity:0;transform:translate(-50%,-50%) scale(2.3)}}
@keyframes flash{0%{opacity:.85}100%{opacity:0}}
@keyframes sheen{0%{transform:translateX(-160%) skewX(-20deg)}55%,100%{transform:translateX(320%) skewX(-20deg)}}
@keyframes spinOnce{0%{transform:rotateY(0)}100%{transform:rotateY(360deg)}}
@keyframes spinPhoto{0%{transform:scale(1)}35%{transform:scale(1.06)}100%{transform:scale(1)}}
.bv-item{transition:left .28s ease, top .28s ease}
.bv-item:active{filter:brightness(1.08)}
@keyframes pulseSoft{0%,100%{box-shadow:0 0 0 0 rgba(245,197,24,.5)}70%{box-shadow:0 0 0 12px rgba(245,197,24,0)}}
@keyframes miniSpin{0%{transform:rotateX(-22deg) rotateY(-30deg)}50%{transform:rotateX(-22deg) rotateY(30deg)}
  100%{transform:rotateX(-22deg) rotateY(-30deg)}}
@keyframes spin360{0%{transform:rotateX(-22deg) rotateY(0deg)}100%{transform:rotateX(-22deg) rotateY(360deg)}}
@keyframes rock{0%,100%{transform:rotateX(-20deg) rotateY(-34deg)}50%{transform:rotateX(-20deg) rotateY(-14deg)}}
@keyframes hoverY{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes tilt3d{0%,100%{transform:rotateY(-18deg) translateY(0)}50%{transform:rotateY(18deg) translateY(-5px)}}
@keyframes shadowPulse{0%,100%{transform:translateX(-50%) scale(1);opacity:.4}50%{transform:translateX(-50%) scale(.85);opacity:.26}}
@keyframes sheetUp{0%{transform:translateY(100%)}100%{transform:translateY(0)}}
@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}
@keyframes popIn{0%{opacity:0;transform:translate(-50%,-50%) scale(.82)}
  60%{opacity:1;transform:translate(-50%,-50%) scale(1.03)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes popOut{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(.94)}}
@keyframes sweep{0%{opacity:0;transform:translateY(60%) scale(.6)}35%{opacity:1}
  100%{opacity:0;transform:translateY(-30%) scale(1.5)}}
.bump-a{animation:bump .4s ease-out}
.bump-b{animation:bump .4s ease-out}

@keyframes c0{to{opacity:0;transform:translate(-150px,-240px) rotate(320deg)}}
@keyframes c1{to{opacity:0;transform:translate(-80px,-330px) rotate(-280deg)}}
@keyframes c2{to{opacity:0;transform:translate(8px,-360px) rotate(400deg)}}
@keyframes c3{to{opacity:0;transform:translate(88px,-320px) rotate(-360deg)}}
@keyframes c4{to{opacity:0;transform:translate(155px,-230px) rotate(300deg)}}
@keyframes c5{to{opacity:0;transform:translate(-210px,-60px) rotate(-240deg)}}
@keyframes c6{to{opacity:0;transform:translate(210px,-70px) rotate(260deg)}}
@keyframes c7{to{opacity:0;transform:translate(-150px,150px) rotate(380deg)}}
@keyframes c8{to{opacity:0;transform:translate(150px,160px) rotate(-340deg)}}
@keyframes c9{to{opacity:0;transform:translate(-30px,230px) rotate(220deg)}}

/* ---------- sheet ---------- */
#sheetHost{position:absolute; inset:0; z-index:60; display:none}
#sheetHost.open{display:block}
.sheet-bg{position:absolute; inset:0; background:rgba(13,30,24,.48); animation:fadeIn .18s ease}
.sheet{position:absolute; left:0; right:0; bottom:0; max-height:88%; display:flex; flex-direction:column;
  background:var(--bg); border-radius:22px 22px 0 0; animation:sheetUp .26s cubic-bezier(.2,.9,.3,1);
  box-shadow:0 -8px 28px rgba(0,0,0,.3); overflow:hidden}
@media (min-width:900px){
  #frame.admin-mode .sheet{left:50%; right:auto; bottom:auto; top:50%; width:480px;
    transform:translate(-50%,-50%); border-radius:20px; max-height:84%; animation:popIn .24s ease both}
}
.sheet-hd{display:flex; align-items:center; justify-content:space-between; padding:16px 18px 8px; flex-shrink:0}
.sheet-bd{overflow-y:auto; padding:4px 18px 20px;
  padding-bottom:calc(20px + env(safe-area-inset-bottom,0px)); display:flex; flex-direction:column; gap:12px}

/* ---------- ຕາຕະລາງສິນຄ້າໃນລະບົບຈັດການ ---------- */
/* ຈຳນວນຖັນອີງຕາມຄວາມກວ້າງຂອງກອບ ບໍ່ແມ່ນຂອງໜ້າຈໍ */
.pgrid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px}
@media (min-width:900px){ #frame.admin-mode .pgrid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width:1150px){ #frame.admin-mode .pgrid{grid-template-columns:repeat(4,minmax(0,1fr))} }
.pcell{background:var(--surface); border-radius:var(--r-md); padding:12px; box-shadow:var(--sh-2);
  display:flex; flex-direction:column; gap:6px; text-align:left}
.pthumb{height:96px; border-radius:var(--r-sm); background:var(--surface-2); position:relative;
  display:flex; align-items:center; justify-content:center; overflow:hidden}
.pthumb img{max-height:88px; max-width:100%; object-fit:contain}
.pflag{position:absolute; top:6px; right:6px; font-size:10px; font-weight:700; padding:2px 7px;
  border-radius:6px; background:var(--gold); color:#3a2e02}

/* ---------- ຕາຕະລາງ KPI ---------- */
.kpis{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px}
@media (min-width:900px){ #frame.admin-mode .kpis{grid-template-columns:repeat(4,minmax(0,1fr))} }
.kpi{background:var(--surface); border-radius:var(--r-lg); padding:16px; box-shadow:var(--sh-2);
  display:flex; flex-direction:column; gap:8px}
.kpi-top{display:flex; align-items:center; gap:10px}
.kpi-label{font-size:12.5px; color:var(--muted); font-weight:600}

@media (prefers-reduced-motion:reduce){
  [style*="twinkle"],[style*="rays"],[style*="glow"],[style*="fall"],[style*="star "],
  [style*="sway"],[style*="spin360"],[style*="rock"],[style*="hoverY"],[style*="tilt3d"],
  [style*="shadowPulse"],[style*="miniSpin"],[style*="sheen"]{animation:none!important}
  .press:active{transform:none}
}

/* ກ່ອງຕິກ */
.chk{width:24px; height:24px; flex-shrink:0; border-radius:7px; display:flex; align-items:center;
  justify-content:center; color:#fff; border:2px solid var(--line-2); background:var(--surface)}
.chk.on{border-color:var(--brand); background:var(--brand)}

/* ===== ຮູບສິນຄ້າ: ຕັດພື້ນຫຼັງອອກແລ້ວ ວາງເທິງພື້ນຂຽວແບຣນ ===== */
.bphoto{
  position:relative; display:block; overflow:hidden; border-radius:12px;
  container-type:inline-size; flex-shrink:0;   /* ຢູ່ໃນແຜ່ນລຸ່ມ ຢ່າໃຫ້ຖືກບີບແປ */
  /* ພື້ນຂາວ — ຮູບສິນຄ້າເດັ່ນ ເໝືອນສະຕູດິໂອຖ່າຍຮູບ */
  background:#ffffff; border:1px solid var(--line);
}
/* ຮູບໃຫຍ່ໃນແຜ່ນລາຍລະອຽດ — ຮູບກະຕ່າເປັນແນວຕັ້ງ ຈຶ່ງຈຳກັດຄວາມກວ້າງ ບໍ່ໃຫ້ລອຍກາງແຖບກວ້າງ */
.bphoto.big{ width:100%; height:290px; }
@media (min-width:700px){
  /* margin-inline:auto ຕ້ອງມີ width:100% ນຳ ບໍ່ດັ່ງນັ້ນກ່ອງຫົດເປັນ 0 */
  .bphoto.big{ height:380px; max-width:440px; margin-inline:auto; }
}
/* ລາຍນ້ຳໂລໂກ້ GO+MART ຢູ່ພື້ນຂຽວ — ຢູ່ຫຼັງສິນຄ້າ */
.bphoto::before{
  content:"GO+MART"; position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%) rotate(-16deg);
  font-family:'Inter','Noto Sans Lao',sans-serif; font-weight:800; letter-spacing:.14em;
  font-size:30px; font-size:19cqw; line-height:1; white-space:nowrap;
  color:rgba(31,111,84,.10); pointer-events:none; z-index:0;
}
.bphoto::after{                      /* ເງົາຂອບ ໃຫ້ກະຕ່າເດັ່ນຂຶ້ນ */
  content:""; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  box-shadow:inset 0 -14px 26px rgba(16,40,32,.05);
}
/* ຕາປະທັບແບຣນມຸມລຸ່ມ — ໃສ່ສະເພາະຮູບໃຫຍ່ */
.bphoto .wm{
  position:absolute; left:10px; bottom:9px; z-index:3; display:flex; align-items:center; gap:5px;
  font-size:10.5px; font-weight:800; letter-spacing:.1em; color:var(--brand);
  pointer-events:none; opacity:.72;
}
.bphoto .wm i{ width:5px; height:5px; border-radius:50%; background:#f5c518; display:block }
/* ຮູບນ້ອຍ ບໍ່ຕ້ອງມີລາຍນ້ຳໃຫຍ່ */
.bphoto.tight::before{ display:none }
.bphoto > img{
  position:relative; z-index:1; width:100%; height:100%; object-fit:contain; display:block;
  padding:8px; box-sizing:border-box;
  filter:drop-shadow(0 8px 14px rgba(16,40,32,.22)) saturate(1.04) contrast(1.02);
}
.bphoto.tight > img{ padding:4px; }
.bphoto.thumb{ border-radius:10px; }
/* ແຕະເພື່ອເບິ່ງຮູບໃຫຍ່ */
.bphoto.zoomable{ cursor:zoom-in; }
.bphoto .zoomhint{
  position:absolute; right:8px; bottom:8px; z-index:2; width:28px; height:28px;
  border-radius:8px; background:rgba(8,40,29,.55); color:#fff;
  display:flex; align-items:center; justify-content:center; pointer-events:none;
}
/* ກ່ອງເບິ່ງຮູບໃຫຍ່ */
#lightbox{position:absolute; inset:0; z-index:80; display:none;
  background:radial-gradient(ellipse 80% 70% at 50% 42%, #2f9172 0%, #17543f 55%, #0c2f23 100%);
  animation:fadeIn .2s ease}
#lightbox.open{display:flex; flex-direction:column}
#lightbox .lb-bar{display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 16px; padding-top:calc(14px + env(safe-area-inset-top,0px)); color:#fff; flex-shrink:0}
#lightbox .lb-img{position:relative; flex:1 1 auto; min-height:0; display:flex; align-items:center;
  justify-content:center; padding:0 16px}
#lightbox .lb-img::before{
  content:"GO+MART"; position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%) rotate(-16deg);
  font-family:'Inter','Noto Sans Lao',sans-serif; font-weight:800; letter-spacing:.14em;
  font-size:13vw; line-height:1; white-space:nowrap; color:rgba(255,255,255,.12); pointer-events:none}
#lightbox .lb-img img{position:relative; z-index:1}
#lightbox .lb-img img{max-width:100%; max-height:100%; object-fit:contain;
  filter:drop-shadow(0 18px 26px rgba(0,0,0,.5))}
#lightbox .lb-foot{padding:14px 16px; padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));
  color:#fff; display:flex; flex-direction:column; gap:4px; flex-shrink:0}

/* ===== ຈໍກວ້າງ ຝັ່ງລູກຄ້າ — ພຣີວິວໃຫຍ່ + ແຜງຄວບຄຸມຂ້າງ ===== */
@media (min-width:1000px){
  #frame.shop-wide{ max-width:1180px }

  /* ໜ້າຮ້ານ: ບັດກະຕ່າຫຼາຍຖັນ */
  #frame.shop-wide #screen[data-screen="home"] .pad{ padding:8px 28px 28px }
  #frame.shop-wide #screen[data-screen="home"] section[style*="grid-template-columns:repeat(2"]{
    grid-template-columns:repeat(auto-fill,minmax(215px,1fr))!important }
  #frame.shop-wide #screen[data-screen="home"] .h-title{ font-size:26px }

  /* ຈ່າຍເງິນ: 2 ຖັນ */
  #frame.shop-wide #screen[data-screen="checkout"] .pad{
    display:grid; grid-template-columns:1fr 1fr; gap:18px 24px; align-items:start; padding:8px 28px 28px }
  #frame.shop-wide #screen[data-screen="checkout"] .pad > section:first-of-type{ grid-column:1 / -1 }

  /* ອໍເດີ ແລະ ບັນຊີ: ກວ້າງພໍດີອ່ານ */
  #frame.shop-wide #screen[data-screen="myorders"] .pad,
  #frame.shop-wide #screen[data-screen="account"] .pad,
  #frame.shop-wide #screen[data-screen="success"] .pad{ max-width:720px; margin:0 auto }

  /* ແຖບເມນູ: ເປັນແຖວກາງ ບໍ່ແມ່ນແຖບລຸ່ມເຕັມກວ້າງ */
  #frame.shop-wide .nav{
    grid-template-columns:repeat(4,minmax(0,140px)); justify-content:center; gap:8px;
    border-top:1px solid var(--line) }
  #frame.shop-wide .nav a{ flex-direction:row; gap:8px; font-size:13px; border-radius:10px }
}

/* ===== ປ້າຍ ແລະ ແທ່ນໝຸນ 360° ===== */
.spin360{position:absolute; left:8px; bottom:8px; z-index:3; display:inline-flex; align-items:center; gap:4px;
  padding:3px 8px; border-radius:8px; background:rgba(10,28,21,.62); color:#eaf3ee;
  font-size:11px; font-weight:700; letter-spacing:.01em; backdrop-filter:blur(3px)}
.spin360 svg{opacity:.9}

#lightbox .lb-deg{position:absolute; left:50%; top:10px; z-index:3; transform:translateX(-50%);
  padding:4px 12px; border-radius:9px; background:rgba(0,0,0,.45); color:#fff;
  font-size:12px; font-weight:650; font-variant-numeric:tabular-nums}
#lightbox .lb-hint{position:absolute; left:50%; bottom:12px; z-index:3; transform:translateX(-50%);
  display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border-radius:9px;
  background:rgba(0,0,0,.42); color:#dfeae4; font-size:12px; font-weight:600;
  transition:opacity .4s ease; pointer-events:none; white-space:nowrap}

/* ຕົວຢ່າງຂໍ້ຄວາມ WhatsApp ກ່ອນສົ່ງ */
.wa-prev{margin:0; padding:12px 14px; border-radius:var(--r-md); border:1px solid var(--line);
  background:var(--surface-2); color:var(--ink); font-family:inherit; font-size:12.5px;
  line-height:1.6; white-space:pre-wrap; word-break:break-word;
  max-height:240px; overflow:auto}

/* ຮູບນ້ອຍຂອງສິນຄ້າໃນລາຍການກະຕ່າ */
.goodthumb{flex:0 0 40px; width:40px; height:40px; border-radius:10px; overflow:hidden;
  background:var(--brand); display:flex; align-items:center; justify-content:center}
.goodthumb img{width:100%; height:100%; object-fit:contain}

/* ===== ໜ້າລູກຄ້າ — ຊຸດດຽວກັບ Go+Delivery ===== */
:root{
  --gp-bar:#0d6b5c;        /* ແຖບເທິງສີຂຽວນ້ຳທະເລ */
  --gp-bar-d:#0a4f44;
  --gp-page:#f5f5fa;       /* ພື້ນສີມ່ວງອ່ອນ */
  --gp-ring:#e8b84b;       /* ວົງແຫວນຄຳຮອບໄອຄອນໝວດ */
}

/* --- ແຖບເທິງ --- */
.gp-bar{flex-shrink:0; background:var(--gp-bar); color:#fff; padding:10px 12px;
  display:flex; align-items:center; gap:10px}
.gp-logo{font-family:'Inter',system-ui,sans-serif; font-size:21px; font-weight:800;
  letter-spacing:-.03em; color:#fff; flex-shrink:0; line-height:1}
.gp-search{flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:8px;
  background:#fff; border-radius:9999px; padding:0 14px; height:40px; color:var(--muted)}
.gp-search input{flex:1; min-width:0; border:none; outline:none; background:transparent;
  font-size:14px; color:var(--ink)}
.gp-ico{width:38px; height:38px; flex-shrink:0; border-radius:50%; display:flex;
  align-items:center; justify-content:center; color:#fff; position:relative}
.gp-ico:hover{background:rgba(255,255,255,.14)}
.gp-avatar{width:36px; height:36px; flex-shrink:0; border-radius:50%; background:#fff;
  color:var(--gp-bar); display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:15px}

/* --- ແຖວທີ່ຢູ່ຈັດສົ່ງ --- */
.gp-loc{flex-shrink:0; display:flex; align-items:center; gap:12px; padding:10px 14px;
  background:var(--surface); border-bottom:1px solid var(--line)}
.gp-loc .pin{width:38px; height:38px; flex-shrink:0; border-radius:50%;
  background:var(--brand-tint); color:var(--brand);
  display:flex; align-items:center; justify-content:center}
.gp-loc b{font-size:14px; font-weight:700; display:block; line-height:1.35}
.gp-pill{flex-shrink:0; min-height:34px; padding:0 16px; border-radius:9999px;
  background:var(--brand); color:#fff; font-size:13px; font-weight:650;
  display:inline-flex; align-items:center; gap:5px}

/* --- ຫົວຂໍ້ພາກ: ແຜ່ນໄອຄອນສີ + ຊື່ --- */
.sec-head{display:flex; align-items:center; gap:10px}
.sec-head .ic{width:34px; height:34px; flex-shrink:0; border-radius:11px; display:flex;
  align-items:center; justify-content:center; background:var(--brand-tint); color:var(--brand)}
.sec-head .ic.lilac{background:var(--lilac); color:#6d4fa8}
.sec-head .ic.gold{background:var(--gold-tint); color:var(--gold-ink)}
.sec-head h2{margin:0; font-size:16px; font-weight:800; letter-spacing:-.01em}

/* --- ແຜ່ນພາບໃຫຍ່ເລື່ອນໄດ້ --- */
.gp-hero{position:relative}
.gp-hero .track{display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; border-radius:var(--r-lg)}
.gp-hero .track::-webkit-scrollbar{display:none}
.gp-hero .slide{flex:0 0 100%; scroll-snap-align:center; border-radius:var(--r-lg); overflow:hidden}
.gp-hero .arw{position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px;
  border-radius:50%; background:rgba(255,255,255,.92); color:var(--ink);
  display:none; align-items:center; justify-content:center; box-shadow:var(--sh-2); z-index:2}
.gp-hero:hover .arw{display:flex}
.gp-hero .arw.l{left:8px} .gp-hero .arw.r{right:8px}
.gp-dots{display:flex; gap:6px; justify-content:center; padding-top:10px}
.gp-dots i{width:7px; height:7px; border-radius:9999px; background:var(--line-2); transition:width .25s}
.gp-dots i.on{width:20px; background:var(--brand)}

/* --- ບັດສິນຄ້າ --- */
.gp-card{background:var(--surface); border-radius:16px; box-shadow:var(--sh-2);
  display:flex; flex-direction:column; overflow:hidden}
.gp-card .top{position:relative; padding:10px 10px 0}
.gp-card .tagn{position:absolute; top:16px; left:16px; z-index:2; padding:2px 10px;
  border-radius:9999px; background:var(--brand); color:#fff; font-size:11px; font-weight:700}
.gp-card .fav{position:absolute; top:14px; right:14px; z-index:2; width:30px; height:30px;
  border-radius:50%; background:#fff; box-shadow:var(--sh-1); color:var(--muted);
  display:flex; align-items:center; justify-content:center}
.gp-card .fav.on{color:var(--danger)}
.gp-card .bd{padding:10px 12px 12px; display:flex; flex-direction:column; gap:6px; flex-grow:1}
.gp-card .shop{display:flex; align-items:center; gap:5px; font-size:11.5px;
  font-weight:600; color:var(--brand)}
.gp-card .nm{font-size:13px; font-weight:600; line-height:1.45; display:-webkit-box;
  -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.9em}
.gp-card .pr{font-size:16px; font-weight:800; color:var(--brand); text-align:right;
  font-variant-numeric:tabular-nums; margin-top:auto}
.gp-card .act{min-height:38px; border-radius:10px; background:var(--brand); color:#fff;
  font-size:13px; font-weight:650; display:flex; align-items:center; justify-content:center; gap:6px}
.gp-card .act.soft{background:var(--gold-tint); color:var(--gold-ink)}

/* --- ໄອຄອນໝວດ ວົງກົມຂອບຄຳ --- */
.gp-cats{display:flex; gap:12px; overflow-x:auto; scrollbar-width:none; padding:2px 0 4px}
.gp-cats::-webkit-scrollbar{display:none}
.gp-cat{flex:0 0 auto; width:68px; display:flex; flex-direction:column; align-items:center; gap:6px}
.gp-cat .ring{width:54px; height:54px; border-radius:50%; background:var(--surface);
  border:2px solid var(--gp-ring); display:flex; align-items:center; justify-content:center;
  font-size:23px; box-shadow:var(--sh-1)}
.gp-cat span{font-size:11px; font-weight:600; color:var(--ink-2); text-align:center; line-height:1.3}
.gp-cat[aria-pressed="true"] .ring{border-color:var(--brand); background:var(--brand-tint)}
.gp-cat[aria-pressed="true"] span{color:var(--brand); font-weight:700}

/* ພື້ນໜ້າລູກຄ້າເປັນສີມ່ວງອ່ອນຄືກັບ Go+Delivery */
#frame.shop-wide{background:var(--gp-page)}

/* ===== ໃບບິນ — ຮູບແບບດຽວກັບໃບບິນທີ່ຮ້ານປິ້ນ ===== */
.rcpt-wrap{background:#5b6b64; padding:16px 12px 28px; display:flex; justify-content:center}
.rcpt{width:100%; max-width:380px; background:#fff; color:#111;
  padding:22px 20px 18px; border-radius:4px; box-shadow:0 10px 30px rgba(0,0,0,.28);
  font-size:13.5px; line-height:1.6}
.rcpt .mid{text-align:center}
.rcpt .logo{font-family:'Inter',system-ui,sans-serif; font-size:27px; font-weight:800;
  letter-spacing:-.03em; text-align:center; line-height:1.1}
.rcpt .legal{text-align:center; font-size:15px; font-weight:800; margin-top:10px}
.rcpt .sub{text-align:center; font-size:12.5px; color:#333}
.rcpt hr{border:none; border-top:1px dashed #9a9a9a; margin:12px 0}
.rcpt .kv{display:flex; justify-content:space-between; gap:12px}
.rcpt .kv .k{color:#444; flex-shrink:0}
.rcpt .kv .v{text-align:right; font-weight:600; min-width:0; word-break:break-word}
.rcpt .li{margin:10px 0}
.rcpt .li .top{display:flex; justify-content:space-between; gap:10px; font-weight:700}
.rcpt .li .top .nm{min-width:0}
.rcpt .li .top .am{white-space:nowrap; font-variant-numeric:tabular-nums}
.rcpt .li .sub2{font-size:12.5px; color:#444; padding-left:2px}
.rcpt .li .parts{font-size:12px; color:#555; padding-left:10px; margin-top:3px; line-height:1.55}
.rcpt .sum{display:flex; justify-content:space-between; gap:10px;
  font-size:19px; font-weight:800; margin:4px 0}
.rcpt .sum .n{font-variant-numeric:tabular-nums}
.rcpt .foot{text-align:center; font-size:13px; margin-top:4px}
.rcpt .stamp{display:flex; justify-content:space-between; gap:10px;
  font-size:12px; color:#333; margin-top:8px}
.rcpt .note2{font-size:12.5px; color:#444; line-height:1.6}
.rcpt-acts{display:flex; gap:10px; padding:0 16px 16px; flex-wrap:wrap}
.rcpt-acts > *{flex:1 1 150px}

@media print{
  body{background:#fff}
  #frame{max-width:none; height:auto; margin:0; box-shadow:none; border-radius:0}
  .nav, .foot, .rcpt-acts, .hdr, .gp-bar, .gp-loc{display:none !important}
  .rcpt-wrap{background:#fff; padding:0}
  .rcpt{box-shadow:none; max-width:none; padding:0}
  .scroll{overflow:visible !important}
}

/* ===================================================================
   ຈັດກະຕ່າເອງ (BYOB) — ໜ້າຈໍດຽວຈົບ · ກາດແຍກສ່ວນ ບໍ່ມີການຊ້ອນທັບຮູບ
   =================================================================== */
.byob-head{padding:10px 12px 8px 6px; gap:8px; flex-shrink:0;
  border-bottom:1px solid var(--line); background:var(--surface)}

/* ໂຄງ 2 ຝັ່ງ — ມືຖືຕັ້ງຊ້ອນກັນ · ແທັບເລັດ/ເດັສທັອບ ແບ່ງຊ້າຍ-ຂວາ */
.byob{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:hidden}

/* ---------- ຝັ່ງຊ້າຍ: ກະດານສະຫຼຸບພາບ ---------- */
.byob-board{background:var(--surface-2); border-bottom:1px solid var(--line);
  flex:0 0 auto; max-height:40vh}
.byob-boardin{display:flex; flex-direction:column; gap:10px; padding:12px 14px 14px}

.byob-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  padding:11px 12px 12px; box-shadow:var(--sh-1)}
.byob-cardhd{display:flex; align-items:center; gap:8px; margin-bottom:8px}
.byob-step{width:20px; height:20px; flex-shrink:0; border-radius:50%; background:var(--brand);
  color:#fff; font-size:11.5px; font-weight:700; display:flex; align-items:center; justify-content:center}
.byob-step.plain{background:var(--gold); color:#2b2206}
.byob-cardt{font-size:13px; font-weight:700; color:var(--ink-2); flex-grow:1}
.byob-amt{font-size:13.5px; font-weight:700; color:var(--brand); white-space:nowrap;
  font-variant-numeric:tabular-nums}

/* ຮູບທີ່ເລືອກ — ກາດຂອງຕົນເອງ ບໍ່ວາງທັບກັນ */
.byob-pick{display:flex; align-items:center; gap:11px}
.byob-shot{width:74px; height:74px; flex-shrink:0; border-radius:11px; background:var(--surface-2);
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center; overflow:hidden}
.byob-shot img{width:100%; height:100%; object-fit:contain; display:block}
.byob-shot.bow{background:var(--gold-tint)}
.byob-noshot{color:var(--line-2)}
.byob-nm{font-size:14px; font-weight:650; line-height:1.4; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap}
.byob-change{align-self:flex-start; margin-top:3px; font-size:12.5px; font-weight:650;
  color:var(--brand); background:none; border:none; padding:0; text-decoration:underline}

.byob-empty{width:100%; display:flex; align-items:center; gap:10px; padding:14px 12px;
  border-radius:var(--r-sm); border:1.5px dashed var(--line-2); background:var(--surface-2);
  color:var(--muted); font-size:13px; font-weight:600; text-align:left}
.byob-empty svg{flex-shrink:0; color:var(--line-2)}

/* ແຖບຊ່ອງທີ່ໃຊ້ແລ້ວ */
.byob-meter{height:7px; border-radius:9999px; background:var(--surface-2); overflow:hidden; margin-bottom:5px}
.byob-meterfill{display:block; height:100%; border-radius:9999px;
  transition:width .3s cubic-bezier(.3,1.3,.5,1)}

/* ບລັອກລາຍການສິນຄ້າ ພ້ອມຈຳນວນຊິ້ນ */
.byob-lines{list-style:none; margin:0; padding:0; display:flex; flex-direction:column}
.byob-line{display:flex; align-items:center; gap:9px; padding:7px 0; border-top:1px solid var(--line)}
.byob-line:first-child{border-top:none}
.byob-thumb{width:38px; height:38px; flex-shrink:0; border-radius:8px; background-color:var(--surface-2);
  background-size:contain; background-repeat:no-repeat; background-position:center}
.byob-xline{display:flex; align-items:center; gap:9px; font-size:13.5px; padding:4px 0; color:var(--ink-2)}
.byob-msg{background:var(--gold-tint); border-radius:8px; padding:6px 10px; font-size:12.5px; margin-top:4px}
.byob-logo{width:28px; height:28px; flex-shrink:0; border-radius:6px; background:var(--surface-2);
  background-size:contain; background-repeat:no-repeat; background-position:center}
.byob-logo.big{width:52px; height:52px; border-radius:10px}

.byob-note{display:flex; gap:8px; align-items:flex-start; font-size:11.5px; line-height:1.5;
  color:var(--muted); padding:0 2px}
.byob-note svg{flex-shrink:0; margin-top:2px}

/* ປຸ່ມບວກ-ຫຼຸດ */
.byob-step2{display:inline-flex; align-items:center; gap:2px; flex-shrink:0;
  border:1px solid var(--line); border-radius:9999px; background:var(--surface); padding:2px}
.byob-step2 button{width:28px; height:28px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; color:var(--brand)}
.byob-step2 button:hover:not([disabled]){background:var(--brand-tint)}
.byob-step2 button[disabled]{color:var(--line-2); cursor:not-allowed}
.byob-step2 b{min-width:20px; text-align:center; font-size:14px; font-weight:700;
  font-variant-numeric:tabular-nums}
.byob-step2.wide{width:100%; justify-content:space-between; margin-top:5px}
.byob-step2.wide b{flex-grow:1}

/* ---------- ຝັ່ງຂວາ: ແຜງເລືອກ ---------- */
.byob-ctrl{flex:1 1 auto; min-height:0; display:flex; flex-direction:column; background:var(--bg)}
.byob-tabs{display:flex; gap:6px; padding:9px 12px; flex-shrink:0;
  background:var(--surface); border-bottom:1px solid var(--line); overflow-x:auto}
.byob-tab{flex:1 1 0; min-width:104px; display:flex; align-items:center; gap:6px; padding:7px 10px;
  border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--muted);
  font-size:12.5px; font-weight:650; text-align:left; line-height:1.3}
.byob-tab[aria-selected="true"]{border-color:var(--brand); background:var(--brand-tint); color:var(--brand-d)}
.byob-tabn{width:19px; height:19px; flex-shrink:0; border-radius:50%; background:var(--surface-2);
  color:var(--muted); font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center}
.byob-tabn.ok{background:var(--brand); color:#fff}
.byob-tab[aria-selected="true"] .byob-tabn{background:var(--brand); color:#fff}
.byob-tabt{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

.byob-panel{padding:14px 14px 20px; display:flex; flex-direction:column}
.byob-h{margin:0; font-size:15px; font-weight:700; color:var(--ink)}
.byob-sub{margin:3px 0 10px; font-size:12.5px; color:var(--muted); line-height:1.5}
.byob-chips{display:flex; gap:7px; overflow-x:auto; padding-bottom:6px; margin:0 -14px 2px;
  padding-left:14px; padding-right:14px}

.byob-grid{display:grid; gap:9px; margin-bottom:4px}
.byob-grid.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.byob-grid.g3{grid-template-columns:repeat(3,minmax(0,1fr))}

/* ບັດຕົວເລືອກ (ກະຕ່າ · ໂບ້) */
.byob-opt{position:relative; display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:8px 6px 10px; border-radius:12px; border:1px solid var(--line); background:var(--surface);
  color:var(--ink); box-shadow:var(--sh-1); text-align:center}
.byob-opt[aria-pressed="true"]{border-color:var(--brand); border-width:2px; padding:7px 5px 9px;
  background:var(--brand-tint)}
.byob-opt[disabled]{cursor:not-allowed}
.byob-optshot{width:100%; height:62px; display:flex; align-items:center; justify-content:center;
  margin-bottom:3px}
.byob-optshot img{max-width:100%; max-height:100%; object-fit:contain; display:block;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.18))}
.byob-optshot.bow{height:52px}
.byob-optnm{font-size:12.5px; font-weight:650; line-height:1.35}
.byob-optpr{font-size:12.5px; font-weight:700; color:var(--brand); font-variant-numeric:tabular-nums}
.byob-warn{font-size:10.5px; font-weight:600; color:var(--amber); line-height:1.3}
.byob-on{position:absolute; top:6px; right:6px; width:19px; height:19px; border-radius:50%;
  background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center}

/* ບັດສິນຄ້າ ມີປຸ່ມບວກ-ຫຼຸດໃນຕົວ */
.byob-item{position:relative; display:flex; flex-direction:column; align-items:center; gap:1px;
  padding:9px 8px 10px; border-radius:12px; border:1px solid var(--line); background:var(--surface);
  box-shadow:var(--sh-1); text-align:center}
.byob-item.has{border-color:var(--brand); background:var(--brand-tint)}
.byob-itemshot{width:72px; height:62px; background-size:contain; background-repeat:no-repeat;
  background-position:center; filter:drop-shadow(0 3px 4px rgba(0,0,0,.18)); margin-bottom:3px}

.byob-blocked{display:flex; flex-direction:column; align-items:center; gap:12px; padding:30px 20px;
  border-radius:var(--r-md); border:1.5px dashed var(--line-2); background:var(--surface);
  color:var(--muted); font-size:13.5px; font-weight:600; text-align:center}
.byob-full{display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:var(--r-sm);
  background:var(--gold-tint); color:var(--gold-ink); font-size:12.5px; font-weight:650; margin-bottom:8px}
.byob-full.warn{background:var(--peach); color:var(--warn)}
.byob-nextbtn{margin-top:14px; min-height:48px; border-radius:12px}

/* ---------- ແຖບສະຫຼຸບຕິດຈໍລຸ່ມສຸດ ---------- */
.byob-bar{flex-shrink:0; background:var(--surface); border-top:1px solid var(--line);
  padding:10px 14px 12px; box-shadow:0 -6px 20px -12px rgba(16,24,40,.3)}
.byob-barin{display:flex; align-items:center; gap:12px; flex-wrap:wrap}
.byob-barsum{display:flex; flex-direction:column; line-height:1.25; flex:1 1 120px; min-width:0}
.byob-bartotal{font-size:21px; font-weight:800; color:var(--brand); font-variant-numeric:tabular-nums}
.byob-barcount{font-size:12px; font-weight:650; color:var(--muted)}
.byob-barqty{display:flex; flex-direction:column; align-items:center; gap:3px; flex-shrink:0}
.byob-confirm{flex:1 1 170px; min-height:52px; border-radius:13px; display:inline-flex;
  align-items:center; justify-content:center; gap:8px; font-size:16px; font-weight:700;
  background:linear-gradient(180deg,#f6d35a,#e0a812); color:#2b2206;
  box-shadow:0 3px 0 #b8870c, 0 8px 18px -8px rgba(184,135,12,.7)}
.byob-confirm:hover:not([disabled]){background:linear-gradient(180deg,#f9dd78,#e8b317)}
.byob-confirm[disabled]{background:var(--surface-2); color:#9aa8a2; box-shadow:none; cursor:not-allowed}
.byob-barfoot{display:flex; align-items:center; gap:9px; margin-top:8px}
.byob-minbar{flex-grow:1; height:6px; border-radius:9999px; background:var(--surface-2);
  overflow:hidden; display:block}
.byob-minbar > span{display:block; height:100%; border-radius:9999px;
  transition:width .35s cubic-bezier(.3,1.3,.5,1)}
.byob-minnote{font-size:11.5px; font-weight:650; color:var(--amber); white-space:nowrap}
.byob-minnote.ok{color:#185a44}

/* ===== ແທັບເລັດ ແລະ ເດັສທັອບ — 2 ຝັ່ງແທ້ ===== */
@media (min-width:900px){
  #frame.byob-mode{max-width:1180px}
  #frame.byob-mode .byob{
    flex-direction:row; align-items:stretch; gap:0;
  }
  #frame.byob-mode .byob-board{
    flex:0 0 38%; max-width:430px; max-height:none; min-height:0;
    border-bottom:none; border-right:1px solid var(--line);
  }
  #frame.byob-mode .byob-boardin{padding:16px 16px 20px; gap:12px}
  #frame.byob-mode .byob-ctrl{flex:1 1 auto; min-width:0}
  #frame.byob-mode .byob-panel{padding:16px 20px 24px; max-width:760px}
  #frame.byob-mode .byob-tabs{padding:10px 20px}
  #frame.byob-mode .byob-grid.g3{grid-template-columns:repeat(4,minmax(0,1fr))}
  #frame.byob-mode .byob-grid.g2{grid-template-columns:repeat(3,minmax(0,1fr))}
  #frame.byob-mode .byob-bar{padding:12px 20px 14px}
  #frame.byob-mode .byob-barin{flex-wrap:nowrap}
  #frame.byob-mode .byob-confirm{flex:0 0 260px}
  #frame.byob-mode .byob-bartotal{font-size:24px}
  #frame.byob-mode .byob-shot{width:96px; height:96px}
}
@media (min-width:1150px){
  #frame.byob-mode .byob-grid.g3{grid-template-columns:repeat(5,minmax(0,1fr))}
  #frame.byob-mode .byob-grid.g2{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* ---------- ສ່ວນປະກອບແຍກກັນ ໃນໜ້າຈ່າຍເງິນ ແລະ ໃບບິນ ---------- */
.byob-parts{display:flex; flex-direction:column; gap:3px; padding:7px 10px; margin-top:2px;
  border-radius:var(--r-sm); background:var(--surface-2); border:1px solid var(--line)}
.byob-prow{display:flex; align-items:baseline; gap:7px; font-size:12.5px; line-height:1.5}
.byob-pk{flex:0 0 86px; font-weight:700; color:var(--brand-d); white-space:nowrap}
.byob-pv{flex:1 1 auto; min-width:0; color:var(--ink-2); word-break:break-word; overflow-wrap:anywhere}
.byob-pa{flex:0 0 auto; font-weight:650; color:var(--muted); white-space:nowrap;
  font-variant-numeric:tabular-nums}

/* ກະດານສະຫຼຸບ — ພັບເກັບໄດ້ເທິງມືຖື */
.byob-boardtog{width:100%; display:flex; align-items:center; gap:10px; padding:10px 14px;
  background:var(--surface); border-bottom:1px solid var(--line); text-align:left}
.byob-togt{font-size:13px; font-weight:700; color:var(--ink-2); flex-shrink:0}
.byob-togv{flex-grow:1; font-size:12.5px; font-weight:650; color:var(--brand);
  font-variant-numeric:tabular-nums; text-align:right}
.byob-togc{flex-shrink:0; color:var(--muted); display:flex; transition:transform .2s}
.byob-board.shut{max-height:none; overflow:hidden}
.byob-board.shut .byob-boardin{display:none}
@media (min-width:900px){
  #frame.byob-mode .byob-boardtog{display:none}
  #frame.byob-mode .byob-board.shut .byob-boardin{display:flex}
}

/* ===================================================================
   ຄູ່ມື — ຜັງການເຮັດວຽກ (ລູກຄ້າ ແລະ ທີມງານໃຊ້ຊຸດດຽວກັນ)
   =================================================================== */
.hlp{display:flex; flex-direction:column; gap:14px}
.hlead{margin:0; font-size:14px; color:var(--muted); line-height:1.65; max-width:60ch}

.hplate{background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  box-shadow:var(--sh-1); padding:16px 15px}
.heyebrow{display:block; font-size:10.5px; font-weight:700; letter-spacing:.11em;
  color:var(--brand); margin-bottom:4px}
.hplate h2{margin:0 0 3px; font-family:'Noto Serif Lao','Noto Sans Lao',serif;
  font-size:18px; font-weight:700; line-height:1.4}
.hcap{margin:0 0 13px; color:var(--muted); font-size:12.5px; line-height:1.6; max-width:58ch}
.hfoot{margin:13px 0 0; padding-top:11px; border-top:1px solid var(--line);
  color:var(--muted); font-size:12px; line-height:1.6}
.hfoot b{color:var(--ink-2); font-weight:650}

/* ກ່ອງໃນຜັງ */
.hnode{border:1px solid var(--line-2); border-radius:11px; background:var(--surface-2);
  padding:9px 12px; display:flex; flex-direction:column; gap:2px; min-width:0}
.hnode .t{font-size:13.5px; font-weight:650; line-height:1.45}
.hnode .s{font-size:11.5px; color:var(--muted); line-height:1.5}
.hnode.brand{background:var(--brand); border-color:var(--brand); color:#fff}
.hnode.brand .s{color:rgba(255,255,255,.78)}
.hnode.tint{background:var(--brand-tint); border-color:var(--brand)}
.hnode.gold{background:var(--gold-tint); border-color:var(--gold)}
.hnode.gold .t{color:var(--gold-ink)}
.hnode.warn{background:var(--danger-tint); border-color:var(--danger)}
.hnode.warn .t{color:var(--danger)}
.hnode.ghost{background:transparent; border-style:dashed}

.harrow{display:flex; align-items:center; justify-content:center; color:var(--line-2);
  font-size:17px; line-height:1; font-weight:700; flex:0 0 auto}
.hrow{display:flex; align-items:stretch; gap:8px; flex-wrap:wrap; margin-bottom:8px}
.hrow:last-child{margin-bottom:0}
.hrow > .hnode,.hrow > .htbl{flex:1 1 170px}
.hcol{display:flex; flex-direction:column; gap:8px}
.hcol > .harrow{transform:rotate(90deg)}
/* ຈໍແຄບ ແຖວພັບລົງລຸ່ມ ລູກສອນຕ້ອງຊີ້ລົງ */
@media (max-width:620px){ .hrow > .harrow{flex:1 1 100%; transform:rotate(90deg)} }

/* ສອງທາງ */
.hfork{display:grid; gap:9px; grid-template-columns:1fr}
@media (min-width:640px){ .hfork{grid-template-columns:1fr 1fr} }
.hbranch{border:1px solid var(--line); border-radius:12px; padding:11px; background:var(--bg);
  display:flex; flex-direction:column; gap:7px}
.hbranch h3{margin:0; font-size:13px; font-weight:700; display:flex; align-items:center; gap:7px}
.hbranch i,.hcard i{width:8px; height:8px; border-radius:50%; flex:0 0 auto;
  background:var(--brand); display:block}
.hbranch i.g,.hcard i.g{background:var(--gold)}

/* ຂັ້ນ 1-2-3 */
.hsteps{display:grid; gap:8px; grid-template-columns:1fr}
@media (min-width:640px){ .hsteps:not(.one){grid-template-columns:repeat(3,1fr)} }
.hstep{border:1px solid var(--line-2); border-radius:11px; background:var(--surface-2);
  padding:10px 12px; display:flex; flex-direction:column; gap:2px}
.hstep .n{width:20px; height:20px; border-radius:50%; background:var(--brand); color:#fff;
  font-size:11.5px; font-weight:700; display:flex; align-items:center; justify-content:center;
  margin-bottom:2px}
.hstep .t{font-size:13.5px; font-weight:650; line-height:1.4}
.hstep .s{font-size:11.5px; color:var(--muted); line-height:1.5}

/* ສອງຝັ່ງຈໍ */
.hscreen{display:grid; gap:9px; grid-template-columns:1fr; border:1px solid var(--line-2);
  border-radius:12px; padding:10px; background:var(--bg)}
@media (min-width:640px){ .hscreen{grid-template-columns:38% 1fr} }
.hpane{border:1px dashed var(--line-2); border-radius:10px; padding:10px; background:var(--surface);
  display:flex; flex-direction:column; gap:6px}
.hpane .ph{font-size:10.5px; font-weight:700; letter-spacing:.07em; color:var(--muted)}
.hmini{font-size:12px; padding:5px 9px; border-radius:7px; background:var(--surface-2);
  border:1px solid var(--line); line-height:1.45}
.hmini.on{background:var(--brand-tint); border-color:var(--brand); font-weight:650}
.hsync{display:flex; align-items:center; justify-content:center; font-size:11.5px;
  font-weight:650; color:var(--brand); padding:7px 0}

/* ສູດລາຄາ */
.hcalc{display:flex; flex-direction:column; gap:6px; margin-bottom:9px}
.hcline{display:flex; align-items:baseline; gap:9px; padding:7px 11px; border-radius:9px;
  background:var(--surface-2); border:1px solid var(--line); flex-wrap:wrap}
.hcline .op{width:15px; flex:0 0 auto; color:var(--muted); font-weight:700; text-align:center;
  font-family:'JetBrains Mono',ui-monospace,monospace}
.hcline .lbl{flex:1 1 auto; min-width:0; font-size:13px}
.hcline .val{flex:0 0 auto; font-size:11.5px; color:var(--muted);
  font-variant-numeric:tabular-nums}
.hcline.sub{background:var(--gold-tint); border-color:var(--gold)}
.hcline.sub .lbl{color:var(--gold-ink); font-weight:650}
.hcline.total{background:var(--brand); border-color:var(--brand); color:#fff}
.hcline.total .op,.hcline.total .val{color:rgba(255,255,255,.78)}
.hcline.total .lbl{font-weight:700; font-size:14.5px}

/* ທໍ່ສະຖານະ */
.hpipe{display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:9px}
.hstage{border:1px solid var(--line-2); border-radius:9999px; padding:6px 13px;
  background:var(--surface-2); display:flex; flex-direction:column; align-items:center;
  line-height:1.35; flex:0 0 auto}
.hstage .t{font-size:12.5px; font-weight:650}
.hstage .k{font-family:'JetBrains Mono',ui-monospace,monospace; font-size:10px; color:var(--muted)}
.hstage.ok{background:var(--brand-tint); border-color:var(--brand)}
.hstage.bad{background:var(--danger-tint); border-color:var(--danger)}
.hstage.bad .t{color:var(--danger)}

/* ຕາຕະລາງ */
.htbl{border:1px solid var(--line-2); border-radius:11px; overflow:hidden;
  background:var(--surface-2); min-width:0}
.htbl .hd{background:var(--brand); color:#fff; padding:6px 11px;
  font-family:'JetBrains Mono',ui-monospace,monospace; font-size:12px; font-weight:700}
.htbl ul{margin:0; padding:8px 11px; list-style:none; display:flex; flex-direction:column; gap:4px}
.htbl li{font-size:12px; display:flex; gap:7px; align-items:baseline; flex-wrap:wrap}
.htbl code{font-family:'JetBrains Mono',ui-monospace,monospace; font-size:11px;
  background:var(--surface); border:1px solid var(--line); border-radius:5px; padding:1px 5px;
  color:var(--ink-2); word-break:break-all}
.htbl li.new code{background:var(--gold-tint); border-color:var(--gold); color:var(--gold-ink);
  font-weight:600}
.htbl li .d{color:var(--muted); font-size:11px}

/* ສິດ */
.hwho{display:grid; gap:9px; grid-template-columns:1fr; margin-bottom:9px}
@media (min-width:640px){ .hwho{grid-template-columns:1fr 1fr} }
.hcard{border:1px solid var(--line-2); border-radius:12px; padding:12px; background:var(--surface-2);
  display:flex; flex-direction:column; gap:8px}
.hcard h3{margin:0; font-size:13.5px; font-weight:700; display:flex; align-items:center; gap:8px}
.hcard ul{margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:5px}
.hcard li{font-size:12.5px; display:flex; gap:8px; align-items:flex-start; line-height:1.55}
.tk{flex:0 0 auto; width:17px; height:17px; border-radius:50%; margin-top:1px;
  display:flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:700;
  background:var(--brand-tint); color:var(--brand)}
.tk.no{background:var(--danger-tint); color:var(--danger)}

/* ຈໍກວ້າງ — ອ່ານສະບາຍ ບໍ່ຍືດເຕັມ */
@media (min-width:1000px){
  #frame.shop-wide #screen[data-screen="help"] .pad{max-width:820px; margin:0 auto}
}

/* ---------- ພາບຈຳລອງກະຕ່າ (ຮູບສິນຄ້າວາງຊ້ອນ) ---------- */
.mock-stage{position:relative; width:100%; overflow:hidden; border-radius:11px;
  background:#ffffff; border:1px solid var(--line);
  box-shadow:inset 0 -14px 26px rgba(16,40,32,.05)}
.mock-basket{position:absolute; object-fit:contain; z-index:10; pointer-events:none}
.mock-front{position:absolute; object-fit:contain; z-index:260; pointer-events:none}
.mock-item{position:absolute; pointer-events:none; transform-origin:50% 100%}
.mock-item > span{position:absolute; inset:0; background-size:contain;
  background-repeat:no-repeat; background-position:bottom center;
  filter:drop-shadow(0 4px 7px rgba(16,40,32,.26))}
.mock-none{display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; padding:30px 16px; color:var(--muted); text-align:center; font-size:13px; font-weight:600}
.mock-none .sub{font-size:11.5px; opacity:.8; font-weight:400}
.mock-note{margin:7px 0 0; font-size:11px; line-height:1.55; color:var(--muted)}

/* ---------- ແຖບໂປຣໂມຊັນ — ໃຫຍ່ ເຫັນຈະແຈ້ງ ---------- */
.gp-hero .slide{background-size:cover; background-position:center}
.gp-hero .slide.photo{aspect-ratio:16 / 9}

/* ---------- ໂປສເຕີ: ຕົວໜັງສືຊ້າຍ · ຮູບຂວາ ---------- */
.poster{position:relative; display:grid; grid-template-columns:1fr 42%; align-items:center;
  gap:10px; padding:20px 0 20px 20px; min-height:240px; overflow:hidden; color:#fff}
.poster.t-green{background:radial-gradient(120% 140% at 8% 0%, #2a8a69 0%, #1f6f54 45%, #103d2d 100%)}
.poster.t-gold{background:radial-gradient(120% 140% at 8% 0%, #d9a60f 0%, #a87c06 48%, #5c4403 100%)}
.poster.t-ink{background:radial-gradient(120% 140% at 8% 0%, #1b4d6b 0%, #133a52 46%, #0a2131 100%)}
.poster::after{content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(60% 80% at 82% 50%, rgba(255,255,255,.10), rgba(255,255,255,0) 70%)}

.poster-txt{display:flex; flex-direction:column; gap:7px; min-width:0; position:relative; z-index:2}
.poster-eyebrow{font-size:11px; font-weight:800; letter-spacing:.14em;
  color:rgba(255,255,255,.72)}
.poster-t{font-family:'Noto Serif Lao','Noto Sans Lao',serif; font-size:25px; font-weight:700;
  line-height:1.25; text-wrap:balance; text-shadow:0 2px 10px rgba(0,0,0,.28)}
.poster-s{font-size:13.5px; line-height:1.55; color:rgba(255,255,255,.9)}
.poster-chip{align-self:flex-start; margin-top:2px; padding:4px 12px; border-radius:999px;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.26);
  font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums;
  backdrop-filter:blur(3px)}
.poster-cta{align-self:flex-start; margin-top:6px; padding:9px 18px; border-radius:999px;
  background:#f5c518; color:#2b2206; font-size:14px; font-weight:800; cursor:pointer;
  box-shadow:0 3px 0 #b8870c, 0 8px 18px -8px rgba(0,0,0,.5)}
.poster-cta:hover{background:#ffd93f}

.poster-art{position:relative; height:100%; min-height:170px; z-index:1}
.poster-art img{position:absolute; object-fit:contain;
  filter:drop-shadow(0 14px 22px rgba(0,0,0,.45))}
.poster-art .a1{right:-6%; bottom:-4%; width:104%; height:108%}
.poster-art .a2{left:-14%; bottom:8%; width:52%; height:52%;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}

@media (min-width:700px){
  .poster{grid-template-columns:1fr 40%; min-height:270px; padding:30px 0 30px 34px}
  .poster-t{font-size:33px}
  .poster-s{font-size:15px}
  .poster-chip{font-size:13.5px}
  .poster-cta{font-size:15px; padding:11px 22px}
}
@media (max-width:420px){
  .poster{grid-template-columns:1fr 38%; padding:16px 0 16px 16px; min-height:214px}
  .poster-t{font-size:21px}
  .poster-s{font-size:12.5px}
}

/* ---------- ແຖວລາຍການສິນຄ້າ — ຮູບເດັ່ນ ອ່ານງ່າຍ ---------- */
.goodrow{display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px;
  border-radius:var(--r-md); background:var(--surface); border:1px solid var(--line);
  text-align:left; min-height:72px}
.goodrow + .goodrow{margin-top:8px}
.goodrow:hover{border-color:var(--brand-l); background:var(--brand-tint)}
.goodrow-n{flex:0 0 22px; width:22px; height:22px; border-radius:50%; background:var(--surface-2);
  color:var(--muted); font-size:11.5px; font-weight:700; display:flex; align-items:center;
  justify-content:center; font-variant-numeric:tabular-nums}
.goodrow-t{font-size:15px; font-weight:650; line-height:1.4}
.goodthumb.big{flex:0 0 54px; width:54px; height:54px; border-radius:11px}
.goodthumb.big.empty{background:var(--surface-2); color:var(--line-2);
  border:1px dashed var(--line-2)}
@media (min-width:700px){
  .goodrow{min-height:80px; padding:12px 14px}
  .goodthumb.big{flex:0 0 64px; width:64px; height:64px}
  .goodrow-t{font-size:16px}
}

/* ---------- ທາງເຂົ້າ "ຈັດກະຕ່າເອງ" ເທິງໜ້າຮ້ານ ---------- */
.byob-entry{display:flex; align-items:center; gap:13px; width:100%; padding:14px 16px;
  border-radius:var(--r-lg); text-align:left; color:#fff;
  background:linear-gradient(100deg, #1f6f54 0%, #2a8a69 60%, #34a07c 100%);
  box-shadow:0 10px 26px -14px rgba(16,60,44,.7)}
.byob-entry:hover{background:linear-gradient(100deg, #24795c 0%, #2f9573 60%, #3aab85 100%)}
.be-ic{flex:0 0 46px; width:46px; height:46px; border-radius:13px; font-size:23px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.22)}
.be-t{font-size:16.5px; font-weight:800}
.be-s{font-size:12.5px; color:rgba(255,255,255,.88)}
.be-go{flex:0 0 auto; padding:7px 15px; border-radius:999px; background:var(--gold);
  color:#2b2206; font-size:13.5px; font-weight:800; white-space:nowrap}
@media (max-width:420px){
  .byob-entry{padding:13px 14px; gap:11px}
  .be-t{font-size:15.5px}
  .be-s{font-size:12px}
  .be-go{padding:6px 12px; font-size:12.5px}
}

/* ---------- ແຖວລາຍການໃນໜ້າຈ່າຍເງິນ — ມີຮູບ ---------- */
.ck-line{display:flex; align-items:flex-start; gap:12px; padding:10px 0;
  border-top:1px solid var(--line)}
.ck-line:first-of-type{border-top:none; padding-top:0}
.ck-shot{flex:0 0 76px; width:76px; height:76px; border-radius:11px; overflow:hidden;
  background:#fff; border:1px solid var(--line); display:flex; align-items:center;
  justify-content:center}
.ck-shot img{width:100%; height:100%; object-fit:contain; padding:4px; box-sizing:border-box}
/* ພາບຈຳລອງແບບນ້ອຍ ຂ້າງລາຍການ */
.mock-stage.sm{flex:0 0 96px; width:96px}
@media (min-width:700px){
  .ck-shot{flex:0 0 92px; width:92px; height:92px}
  .mock-stage.sm{flex:0 0 118px; width:118px}
}

/* ຈໍແຄບ — ຫຍໍ້ຮູບ ແລະ ຈັດແຖວສ່ວນປະກອບໃໝ່ ບໍ່ໃຫ້ຕົວໜັງສືຖືກບີບ */
@media (max-width:560px){
  .ck-line{gap:10px}
  .ck-line .mock-stage.sm{flex:0 0 84px; width:84px}
  .ck-line .ck-shot{flex:0 0 68px; width:68px; height:68px}
  .ck-line .byob-parts{padding:6px 8px}
  .ck-line .byob-prow{flex-wrap:wrap; gap:4px 7px}
  .ck-line .byob-pk{flex:0 0 auto}
  .ck-line .byob-pa{margin-left:auto}
  .ck-line .byob-pv{flex:1 1 100%; order:3; color:var(--ink-2)}
}
