/* Phần bán hàng dùng chung — tiền tố lh- để không đụng CSS của trang */
:root{
  --lh-mat:#fff; --lh-nen:#F3F4F6; --lh-chu:#16191D; --lh-nhat:#5B6470; --lh-vien:#E1E4E8;
  --lh-do:#D70A14; --lh-do-dam:#B0060E; --lh-xanh:#0B6E4F; --lh-zalo:#0068FF; --lh-canh:#B45309;
  --lh-bong:0 -10px 40px rgba(15,23,42,.18);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --lh-mat:#1C1F23; --lh-nen:#121417; --lh-chu:#E8EAED; --lh-nhat:#9AA3AE; --lh-vien:#2E3338; --lh-xanh:#34D399; --lh-canh:#FBBF24;
  --lh-bong:0 -10px 40px rgba(0,0,0,.6);}}
:root[data-theme="dark"]{
  --lh-mat:#1C1F23; --lh-nen:#121417; --lh-chu:#E8EAED; --lh-nhat:#9AA3AE; --lh-vien:#2E3338; --lh-xanh:#34D399; --lh-canh:#FBBF24;
  --lh-bong:0 -10px 40px rgba(0,0,0,.6);}

[hidden]{display:none!important}
.lh-man{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:50}
.lh-sheet{position:fixed;z-index:51;background:var(--lh-mat);color:var(--lh-chu);display:flex;flex-direction:column;
  font-family:inherit;box-shadow:var(--lh-bong);transition:transform .2s ease,opacity .2s}
.lh-sheet svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* máy tính: ngăn bên phải */
@media (min-width:721px){
  .lh-sheet{top:0;right:0;bottom:0;width:min(460px,100vw);transform:translateX(100%)}
  .lh-sheet.mo{transform:none}
  .lh-sheet.lh-nho-sheet{top:50%;left:50%;right:auto;bottom:auto;width:420px;max-height:90vh;border-radius:16px;
    transform:translate(-50%,-46%);opacity:0}
  .lh-sheet.lh-nho-sheet.mo{transform:translate(-50%,-50%);opacity:1}
}
/* điện thoại: trượt từ dưới lên */
@media (max-width:720px){
  .lh-sheet{left:0;right:0;bottom:0;max-height:88vh;border-radius:18px 18px 0 0;transform:translateY(100%);
    padding-bottom:env(safe-area-inset-bottom)}
  .lh-sheet.mo{transform:none}
}
.lh-dau{display:flex;align-items:flex-start;gap:12px;padding:16px 16px 12px;border-bottom:1px solid var(--lh-vien)}
.lh-dau>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lh-dau b{font-size:18px;font-weight:700;line-height:1.3}
.lh-dau span{font-size:13px;color:var(--lh-nhat)}
.lh-x{border:0;background:var(--lh-nen);color:var(--lh-chu);width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.lh-than{padding:14px 16px 20px;overflow:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:12px}
.lh-nho{font-size:12.5px;color:var(--lh-nhat);margin:0;line-height:1.5}

.lh-nut{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 16px;border-radius:12px;border:0;
  font:inherit;font-weight:700;font-size:15px;text-decoration:none;cursor:pointer;text-align:center}
.lh-nut-chinh{background:var(--lh-do);color:#fff}
.lh-nut-chinh:hover{background:var(--lh-do-dam)}
.lh-nut-chinh:disabled{opacity:.6;cursor:wait}
.lh-nut-zalo{background:var(--lh-zalo);color:#fff}
.lh-nut:focus-visible,.lh-tb:focus-visible,.lh-goi:focus-visible{outline:3px solid #2563EB;outline-offset:2px}

.lh-goi{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 12px;align-items:center;padding:14px 16px;
  border:1px solid var(--lh-vien);border-radius:14px;text-decoration:none;color:var(--lh-chu)}
.lh-goi:hover{border-color:var(--lh-do)}
.lh-goi-mien{font-size:13px;color:var(--lh-nhat);font-weight:600}
.lh-goi-so{font-size:24px;font-weight:800;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.lh-goi-nut{grid-row:1/3;grid-column:2;background:var(--lh-do);color:#fff;font-weight:700;font-size:14px;padding:10px 14px;border-radius:10px}

.lh-form label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:var(--lh-nhat)}
.lh-form label i{color:var(--lh-do);font-style:normal}
.lh-form input,.lh-form textarea{font:inherit;font-size:16px;color:var(--lh-chu);background:var(--lh-mat);border:1px solid var(--lh-vien);
  border-radius:10px;padding:11px 12px;min-height:46px;width:100%;box-sizing:border-box}
.lh-form input:focus,.lh-form textarea:focus{outline:2px solid var(--lh-do);outline-offset:0;border-color:transparent}
.lh-hai{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:420px){.lh-hai{grid-template-columns:1fr}}
.lh-loi{background:#FEE2E2;color:#991B1B;border-radius:10px;padding:10px 12px;font-size:14px;font-weight:600}
.lh-gio{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.lh-gio li{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--lh-vien);border-radius:12px}
.lh-gm{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lh-gm b{font-size:14px;line-height:1.3}
.lh-gm span{font-size:12px;color:var(--lh-nhat);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lh-sl{display:flex;align-items:center;border:1px solid var(--lh-vien);border-radius:10px;overflow:hidden;flex:none}
.lh-sl button{border:0;background:var(--lh-nen);color:var(--lh-chu);width:34px;height:34px;font-size:18px;cursor:pointer}
.lh-sl output{min-width:30px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.lh-xoa{border:0;background:none;color:var(--lh-nhat);width:30px;height:30px;cursor:pointer;font-size:15px;flex:none}
.lh-xong{align-items:stretch;text-align:center}
.lh-xong p{margin:0;line-height:1.6;font-size:15px}
.lh-tick{width:64px;height:64px;border-radius:50%;background:#DCFCE7;color:#15803D;font-size:34px;font-weight:800;display:flex;
  align-items:center;justify-content:center;margin:8px auto 4px}

/* thanh hành động */
.lh-thanh{display:flex;gap:6px}
.lh-tb{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:44px;padding:0 14px;border-radius:12px;
  border:1px solid var(--lh-vien);background:var(--lh-mat);color:var(--lh-chu);font:inherit;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
.lh-tb svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.lh-tb:hover{border-color:var(--lh-chu)}
.lh-tb-gia{background:var(--lh-do);border-color:var(--lh-do);color:#fff}
.lh-tb-gia:hover{background:var(--lh-do-dam);border-color:var(--lh-do-dam)}
.lh-dem{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#111;color:#fff;
  font-size:11px;font-style:normal;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid var(--lh-mat)}
.lh-tb-gia .lh-dem{background:#FFD200;color:#111}
@media (max-width:720px){
  .lh-thanh{width:100%;gap:4px}
  .lh-tb{flex:1;flex-direction:column;gap:2px;height:54px;padding:4px 2px;font-size:11.5px;border:0;border-radius:10px;background:transparent}
  .lh-tb-gia{flex:1.35;background:var(--lh-do);color:#fff}
  .lh-dem{top:2px;right:calc(50% - 22px)}
}

.lh-bao{position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(20px);background:#111;color:#fff;padding:11px 16px;border-radius:12px;
  font-size:14px;font-weight:600;opacity:0;pointer-events:none;transition:.2s;z-index:60;max-width:calc(100vw - 32px);text-align:center}
.lh-bao.hien{opacity:1;transform:translateX(-50%)}
@media (prefers-reduced-motion:reduce){.lh-sheet,.lh-bao{transition:none}}
