:root { --brand:#1f4e5f; --accent:#2a9d8f; --bg:#f6f8f9; --err:#c0392b; }
  * { box-sizing: border-box; }
  body { margin:0; font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; background:var(--bg); color:#222; font-size:16px; }
  .wrap { max-width: 560px; margin: 0 auto; padding: 16px; }
  header { background: var(--brand); color:#fff; padding: 18px 16px; }
  header h1 { margin:0; font-size: 22px; }
  header p { margin: 6px 0 0; font-size: 14px; opacity:.9; }
  .card { background:#fff; border-radius:12px; padding:16px; margin:14px 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  h2 { font-size: 17px; margin: 0 0 12px; color: var(--brand); }
  .prod { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #eee; }
  .prod .info { flex:1; min-width:0; }
  .thumb { flex:none; width:64px; height:64px; padding:0; border:1px solid #e6e6e6; border-radius:10px; background:#fff; overflow:hidden; cursor:zoom-in; }
  .thumb img { width:100%; height:100%; object-fit:contain; display:block; }
  .thumb.none { cursor:default; background:#f1f3f4; color:#9aa3a8; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
  .lb { position:fixed; inset:0; background:rgba(0,0,0,.78); display:flex; align-items:center; justify-content:center; padding:20px; z-index:50; }
  .lb.hidden { display:none; }
  .lb figure { margin:0; max-width:520px; width:100%; text-align:center; }
  .lb img { width:100%; max-height:75vh; object-fit:contain; background:#fff; border-radius:12px; }
  .lb figcaption { color:#fff; margin-top:10px; font-size:15px; }
  .lb .x { position:absolute; top:12px; right:12px; width:40px; height:40px; border-radius:20px; border:0; background:#fff; font-size:22px; line-height:40px; }
  .prod:last-child { border-bottom:0; }
  .prod .n { font-weight:600; } .prod .s { font-size:13px; color:#666; }
  .tag { display:inline-block; font-size:11px; background:#e8f5f3; color:var(--accent); border-radius:6px; padding:2px 6px; margin-left:4px; }
  .qty { display:flex; align-items:center; gap:6px; }
  .qty button { width:34px; height:34px; border-radius:8px; border:1px solid #ccc; background:#fff; font-size:18px; }
  .qty span { min-width: 22px; text-align:center; font-weight:600; }
  label { display:block; font-size:14px; margin: 10px 0 4px; font-weight:600; }
  input[type=text], input[type=tel], input[type=email], textarea, select { width:100%; padding:11px; border:1px solid #ccc; border-radius:8px; font-size:16px; font-family:inherit; }
  textarea { min-height: 70px; }
  .row2 { display:flex; gap:10px; } .row2 > div { flex:1; }
  .sum div { display:flex; justify-content:space-between; padding:4px 0; }
  .sum .tot { font-size: 19px; font-weight:700; border-top:1px solid #ddd; margin-top:6px; padding-top:8px; }
  .sum .save { color: var(--accent); }
  .sum div.hidden { display:none; }
  .chk { display:flex; gap:10px; align-items:flex-start; margin:10px 0; font-size:14px; font-weight:normal; }
  #tncText, #pdpaText { white-space:pre-line; font-size:13px; max-height:50vh; overflow:auto; }
  .seller { font-size:12px; color:#666; text-align:center; margin:14px 0 4px; line-height:1.5; }
  .chk input { margin-top:3px; width:20px; height:20px; flex: none; }
  details { font-size: 13px; color:#444; margin: 4px 0 8px 30px; } summary { cursor:pointer; color: var(--brand); }
  .btn { display:block; width:100%; padding:14px; border:0; border-radius:10px; background:var(--accent); color:#fff; font-size:17px; font-weight:700; }
  .btn:disabled { background:#9bbfba; }
  .btn.sec { background:#fff; color:var(--brand); border:1px solid var(--brand); margin-top:8px; }
  .okmsg { color: #0a7a5a; font-weight: 600; }
  .err { color: var(--err); font-size:14px; margin: 8px 0; white-space: pre-line; }
  .note { font-size:13px; color:#555; }
  .ref { font-size: 28px; font-weight: 800; letter-spacing: 1px; color: var(--brand); text-align:center; margin: 6px 0; }
  .payhead { text-align:center; }
  .payhead .amt { font-size: 28px; font-weight: 800; color: var(--brand); margin: 2px 0 6px; }
  .payhead .oref { font-size: 13px; color:#777; }
  .filebox { margin-top: 4px; }
  .filebox input[type=file] { width:100%; font-size:15px; }
  .finfo { display:flex; align-items:center; gap:10px; margin-top:10px; padding:8px; border:1px solid #e3e3e3; border-radius:8px; background:#fafafa; font-size:14px; }
  .finfo img { width:48px; height:48px; object-fit:cover; border-radius:6px; background:#eee; flex:none; }
  .finfo .fi { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .finfo .fs { color:#777; font-size:12px; }
  .qrbox { text-align:center; } .qrbox img { width: 100%; max-width: 320px; border:1px solid #eee; border-radius:8px; }
  ol { padding-left: 20px; } ol li { margin: 6px 0; }
  .hp { position:absolute; left:-5000px; }
  .hidden { display:none; }
  .sgnote { margin-top:8px; padding:8px 10px; background:#f6f8fa; border-radius:8px; font-size:12.5px; }
  .ok { background:#e8f5f3; border-left: 4px solid var(--accent); padding: 12px; border-radius: 8px; }
  .zh { color:#666; font-size: 13px; }
  .social { text-align:center; margin: 18px 0 6px; }
  .social .lbl { font-size:13px; color:#666; margin-bottom:8px; }
  .social a { display:inline-flex; align-items:center; vertical-align:middle; height:40px; gap:7px; margin: 0 6px 6px; padding:0 14px; border:1px solid #ddd; border-radius:999px; background:#fff; color:#222; text-decoration:none; font-size:14px; font-weight:600; }
  .social a.ig svg { color:#d62976; }
  .social a.wa { background:#25d366; border-color:#25d366; color:#fff; }
  #footSocial { padding-top:14px; border-top:1px solid #eee; }
  .social .xhs-b { display:inline-block; background:#ff2442; color:#fff; border-radius:5px; font-size:11px; font-weight:700; padding:2px 5px; }
  .card .social { margin-bottom:0; }
  .codein { text-transform:uppercase; letter-spacing:2px; font-weight:700; }
  .welcome { background:#eef7f5; border-radius:8px; padding:10px 12px; margin:0 0 4px; font-size:14px; }
