:root{--navy:#1b2540;--amber:#f2a93b;--paper:#f7f6f2;--muted:#6b7286;--line:#e3e1da}
*{box-sizing:border-box}
body{margin:0;font-family:"Noto Sans Myanmar","Padauk",system-ui,sans-serif;background:var(--paper);color:var(--navy);line-height:1.6}
header{background:var(--navy);color:#fff;padding:26px 18px 20px;border-bottom:4px solid var(--amber)}
header h1{margin:0;font-size:1.45rem}
header p{margin:2px 0 0;color:#c9cfdf;font-size:.88rem}
main{max-width:640px;margin:0 auto;padding:14px}
.product{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:14px;overflow:hidden}
.product h2{margin:0;padding:12px 16px;font-size:1.08rem;border-bottom:1px solid var(--line)}
.product h2 small{font-weight:400;color:var(--muted);font-size:.85rem;margin-left:6px}
.row{display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.size{font-weight:600;min-width:96px;font-size:.92rem}
.colors{flex:1;display:flex;flex-wrap:wrap;gap:6px 12px}
.chip{display:flex;align-items:center;gap:6px;font-size:.85rem;color:var(--muted)}
.dot{width:22px;height:22px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(27,37,64,.18)}
.price{font-weight:700;background:#fff4e0;border:1px solid var(--amber);padding:2px 10px;border-radius:999px;white-space:nowrap;font-size:.93rem}
.msg{text-align:center;color:var(--muted);padding:40px 0}
footer{text-align:center;color:var(--muted);font-size:.82rem;padding:8px 16px 30px}
footer a{color:var(--navy)}
a:focus-visible,button:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
@media (max-width:440px){.row{flex-wrap:wrap}.colors{order:3;flex-basis:100%}.price{margin-left:auto}}
.plink{color:inherit;text-decoration:none}
body.admin .plink{color:#1d5fd1;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
body.admin .plink:hover{color:#1449a8}
body.admin .product h2{cursor:pointer}
.gh{display:flex;align-items:center;gap:12px}
.gthumb{width:56px;height:56px;border-radius:10px;flex:none;background:#eee center/cover;box-shadow:inset 0 0 0 1px rgba(27,37,64,.12)}
.gthumb.none{display:grid;place-items:center;background:#fbfaf7;border:1.5px dashed #c9c6bc;box-shadow:none;font-size:.68rem;font-weight:400;color:var(--muted);text-decoration:none}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translate(-50%,16px);opacity:0;
  background:var(--navy);color:#fff;padding:11px 18px;border-radius:12px;font-size:.92rem;box-shadow:0 6px 20px rgba(27,37,64,.25);
  border-left:4px solid var(--amber);z-index:50;transition:opacity .25s,transform .25s;max-width:90vw}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.toast{transition:none}}
header.has-logo{display:grid;grid-template-columns:auto 1fr auto;column-gap:12px;align-items:center}
header.has-logo .logo{grid-row:1 / span 3;height:42px;width:auto;max-width:120px;object-fit:contain;border-radius:8px;background:#fff;padding:3px}
header.has-logo > :not(.logo){grid-column:2}
header.has-logo .who{grid-column:3;grid-row:1 / span 3}
.with-who{display:flex;align-items:center;gap:12px}
.with-who .ht{flex:1;min-width:0}
.who .wn{font-size:.78rem;color:#c9cfdf;margin-bottom:5px;white-space:nowrap}
.who .wb{display:flex;gap:6px;justify-content:flex-end}
.who .wb button,.who .wb a{font:inherit;font-size:.82rem;line-height:1.4;padding:5px 11px;border-radius:9px;cursor:pointer;text-decoration:none;white-space:nowrap}
.who .wb button{background:none;border:1px solid #56628a;color:#fff}
.who .qrbtn{background:var(--amber);color:var(--navy);font-weight:600;border:1px solid var(--amber)}
@media (max-width:520px){
  .with-who{flex-wrap:wrap;row-gap:10px}
  .with-who .who{flex-basis:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}
  .who .wn{margin:0;overflow:hidden;text-overflow:ellipsis}
}
header.has-logo.with-who .logo{grid-row:1}
header.has-logo.with-who .ht{grid-column:2;grid-row:1}
header.has-logo.with-who .who{grid-column:3;grid-row:1}
@media (max-width:520px){
  header.has-logo.with-who{grid-template-columns:auto 1fr}
  header.has-logo.with-who .who{grid-column:1 / -1;grid-row:2;margin-top:10px}
}
header.has-logo .logo{height:52px;width:52px;border-radius:50%;padding:0;background:none;box-shadow:0 0 0 2px rgba(242,169,59,.6)}
.who .rf{font-size:1.05rem!important;line-height:1!important;padding:4px 9px!important;min-width:34px}
.rf.spin{animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.rf.spin{animation:none}}
.who:empty{display:none!important}
.navbar{display:flex;justify-content:space-between;gap:10px;max-width:640px;margin:0 auto;padding:12px 14px 0}
.navbar[hidden]{display:none}
.navbar a,.navbar button{font:inherit;font-size:.9rem;display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:10px;
  border:1px solid var(--line);background:#fff;color:var(--navy);text-decoration:none;cursor:pointer}
.navbar svg{width:18px;height:18px}
