/* Shop AMITA – màu theo bộ nhận diện (KE-HOACH mục 8): đỏ #E81836 nút mua, xanh #1D6434 tiêu đề/menu/chân trang, chữ #393536. */
:root { --do: #E81836; --do-dam: #c3112b; --xanh: #1D6434; --xanh-nhat: #eef6f0; --chu: #393536; --xam: #656263; --vien: #e3e1e1; --nen: #ffffff; --nen2: #f7f7f5; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--chu); background: var(--nen); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--xanh); }
h1, h2, h3 { color: var(--xanh); line-height: 1.3; }
h1 { font-size: 1.6rem; margin: .6em 0 .5em; }
h2 { font-size: 1.3rem; margin: 1.2em 0 .5em; }
.vung { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.an-chu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.thanh-tren { background: var(--xanh); color: #fff; font-size: .85rem; }
.thanh-tren .vung { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.thanh-tren a { color: #fff; font-weight: 600; text-decoration: none; }
.dau { background: #fff; border-bottom: 1px solid var(--vien); position: sticky; top: 0; z-index: 10; }
.dau-vung { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo img { width: 160px; height: auto; display: block; }
/* 22/11 15:38 (anh chốt slogan) */
.logo { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.logo .slogan { font-size: .74rem; font-weight: 600; color: var(--xanh); white-space: nowrap; letter-spacing: 0; }
@media (max-width: 600px) { .logo .slogan { font-size: .64rem; white-space: normal; max-width: 150px; line-height: 1.25; text-wrap: balance; } .logo img { width: 128px; } }
.tim { flex: 1 1 280px; display: flex; min-width: 0; }
.tim input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--vien); border-radius: 8px 0 0 8px; font-size: 1rem; }
.tim button { padding: 10px 16px; border: 0; background: var(--xanh); color: #fff; border-radius: 0 8px 8px 0; font-weight: 600; cursor: pointer; }
.nut-dau { display: flex; gap: 10px; align-items: center; }
.nut-dau a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--vien); color: var(--chu); white-space: nowrap; }
.nut-dau .gio { background: var(--do); color: #fff; border-color: var(--do); }
.nut-dau .so { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; background: #fff; color: var(--do); border-radius: 11px; text-align: center; font-size: .85rem; }
.menu { background: var(--xanh-nhat); border-top: 1px solid var(--vien); }
.menu-may { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.menu-may > li { position: relative; }
.menu-may a, .menu-may span { display: block; padding: 10px 0; color: var(--xanh); text-decoration: none; font-weight: 600; cursor: default; }
.menu-may .co-con > ul { display: none; position: absolute; top: 100%; left: -12px; background: #fff; border: 1px solid var(--vien); border-radius: 8px; list-style: none; margin: 0; padding: 6px 12px; min-width: 180px; z-index: 20; }
.menu-may .co-con:hover > ul, .menu-may .co-con:focus-within > ul { display: block; }
.menu-may .co-con > span::after { content: " ▾"; }
.menu-dt { display: none; }
.chinh { padding-bottom: 40px; min-height: 50vh; }
.vet { font-size: .9rem; color: var(--xam); margin-top: 14px; }
.vet a { color: var(--xam); }
.banner { margin: 16px 0; }
.banner img { border-radius: 12px; width: 100%; }
.luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.the { border: 1px solid var(--vien); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; background: #fff; }
.the a { text-decoration: none; color: inherit; }
.the img { border-radius: 8px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.the h3 { font-size: .95rem; color: var(--chu); margin: 8px 0 4px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.2em; }
.the-gia { margin: 4px 0 8px; display: flex; flex-direction: column; }
.gia { color: var(--do); font-weight: 700; font-size: 1.1rem; }
.the-si { font-size: .85rem; color: var(--xanh); font-weight: 600; }
.the .nut { margin-top: auto; }
.nut { display: inline-block; text-align: center; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid var(--do); cursor: pointer; font-size: 1rem; }
.nut-chinh { background: var(--do); color: #fff; }
.nut-chinh:hover { background: var(--do-dam); }
.nut-phu { background: #fff; color: var(--do); }
.nut-to { width: 100%; padding: 14px; font-size: 1.1rem; }
.nhom-dau { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.nhom-dau a { font-weight: 600; white-space: nowrap; }
.khoi-si { background: var(--xanh-nhat); border-radius: 12px; padding: 16px; margin: 20px 0; }
.khoi-si h2 { margin-top: 0; }
.si-o { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.si-o div { background: #fff; border-radius: 10px; padding: 12px; text-align: center; border: 1px solid var(--vien); }
.si-o b { display: block; font-size: 1.05rem; } .si-o span { display: block; color: var(--xam); font-size: .85rem; }
.si-o strong { display: block; color: var(--do); font-size: 1.6rem; }
.cam-ket { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.cam-ket div { border-left: 4px solid var(--xanh); background: var(--nen2); padding: 12px; border-radius: 0 8px 8px 0; }
.cam-ket b { display: block; color: var(--xanh); } .cam-ket span { font-size: .9rem; }
.kho { background: var(--nen2); padding: 4px 16px 12px; border-radius: 12px; margin-top: 24px; }
.sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 12px; }
.anh-chon { position: absolute; opacity: 0; pointer-events: none; }
.anh-khung { border: 1px solid var(--vien); border-radius: 12px; overflow: hidden; }
.anh-lon { display: none; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.anh-nho { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.anh-nho label { flex: 0 0 72px; border: 2px solid var(--vien); border-radius: 8px; overflow: hidden; cursor: pointer; }
#a0:checked ~ .anh-khung .a0, #a1:checked ~ .anh-khung .a1, #a2:checked ~ .anh-khung .a2, #a3:checked ~ .anh-khung .a3, #a4:checked ~ .anh-khung .a4, #a5:checked ~ .anh-khung .a5, #a6:checked ~ .anh-khung .a6, #a7:checked ~ .anh-khung .a7 { display: block; }
.sp-tom h1 { margin-top: 0; font-size: 1.45rem; }
.ma { color: var(--xam); font-size: .9rem; margin: 0 0 8px; }
.gia-to .gia { font-size: 1.8rem; } .gia-to small { color: var(--xam); }
.bang { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .95rem; }
.bang th, .bang td { border: 1px solid var(--vien); padding: 8px 10px; text-align: left; vertical-align: top; }
.bang thead th { background: var(--xanh-nhat); color: var(--xanh); }
.bang caption { text-align: left; font-weight: 600; color: var(--xanh); padding-bottom: 4px; }
.bang-cuon { overflow-x: auto; max-width: 100%; }
.bang-si td:last-child { color: var(--do); }
.ton .con { color: var(--xanh); font-weight: 700; } .het { color: var(--do); font-weight: 700; }
.mua { margin: 12px 0; display: flex; flex-direction: column; gap: 12px; }
.bien-the { border: 1px solid var(--vien); border-radius: 8px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.bien-the legend { font-weight: 600; padding: 0 4px; }
.so-luong input { width: 110px; padding: 10px; font-size: 1rem; border: 1px solid var(--vien); border-radius: 8px; margin-left: 8px; }
.nut-mua { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nho-chu { font-size: .9rem; color: var(--xam); }
.sp-mo-ta { max-width: 860px; }
.cam-ket-sp { background: var(--xanh-nhat); padding: 12px; border-radius: 8px; }
.bao { background: #fff7e0; border: 1px solid #f0d58a; padding: 10px 12px; border-radius: 8px; }
.bao.loi { background: #fdecee; border-color: #f2a8b3; color: #8a1022; }
.gio-sp { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.gio-sp img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex: 0 0 56px; }
.gio-sp small { display: block; color: var(--xam); }
.gio input[type=number] { width: 80px; padding: 8px; border: 1px solid var(--vien); border-radius: 6px; font-size: 1rem; }
.giam { color: var(--do); display: block; font-size: .8rem; }
.nut-xoa { background: none; border: 1px solid var(--vien); border-radius: 6px; padding: 6px 10px; cursor: pointer; color: var(--xam); }
.gio-cuoi { max-width: 480px; margin-left: auto; }
.tom-tat { background: var(--nen2); border-radius: 12px; padding: 12px 16px; }
.tom-tat p { margin: 6px 0; }
.tom-tat .tong { font-size: 1.15rem; } .tom-tat .tong strong { color: var(--do); font-size: 1.35rem; }
.goi-y { background: #fff; border: 1px dashed var(--xanh); padding: 8px; border-radius: 8px; }
.thanh-toan { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; }
.form-dat { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.form-dat label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.form-dat input:not([type=radio]):not([type=checkbox]), .form-dat textarea { padding: 10px 12px; border: 1px solid var(--vien); border-radius: 8px; font-size: 1rem; font-family: inherit; }
.form-dat .chon { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.form-dat .chon input { margin-top: 4px; flex: 0 0 auto; }
.hd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hd input, .hd select, .hd textarea { min-width: 0; width: 100%; box-sizing: border-box; }   /* 25/11 vòng 3: ô hóa đơn không lấn sang khối "Đơn của bạn" ở 981–1151 px */
.xong { background: var(--nen2); border-radius: 12px; padding: 16px; max-width: 760px; }
.ma-don { font-size: 1.5rem; color: var(--do); letter-spacing: .5px; }
.qr-khung { max-width: 260px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--vien); }
.qr-khung svg { width: 100%; height: auto; display: block; }
.ck { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 12px; }
.ck dt { color: var(--xam); } .ck dd { margin: 0; font-weight: 600; }
.ck input { width: 100%; max-width: 280px; padding: 6px 8px; border: 1px solid var(--vien); border-radius: 6px; font-size: 1rem; font-weight: 600; }
.noi-dung { max-width: 860px; }
.ban-do iframe { width: 100%; max-width: 100%; border: 0; border-radius: 12px; }
.chan { background: var(--xanh); color: #fff; margin-top: 32px; }
.chan a { color: #fff; }
.chan h3 { color: #fff; font-size: 1rem; }
.chan ul { list-style: none; padding: 0; margin: 0; } .chan li { margin: 4px 0; text-wrap: balance; }
.chan-luoi { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr; gap: 24px; padding-top: 24px; padding-bottom: 16px; font-size: .92rem; }
.ban-quyen { border-top: 1px solid rgba(255,255,255,.25); padding-top: 10px; padding-bottom: 14px; font-size: .85rem; }
@media (max-width: 980px) {
  .luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cam-ket { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chan-luoi { grid-template-columns: 1fr 1fr; }
  .thanh-toan { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  h1 { font-size: 1.35rem; }
  .menu-may { display: none; }
  .menu-dt { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; white-space: nowrap; }
  .menu-dt a { flex: 0 0 auto; padding: 6px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--vien); text-decoration: none; font-weight: 600; font-size: .9rem; }
  .logo img { width: 120px; }
  .dau-vung { gap: 10px; }
  .tim { order: 3; flex-basis: 100%; }
  .nut-dau { margin-left: auto; }
  .luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sp { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .si-o { gap: 8px; } .si-o strong { font-size: 1.3rem; }
  .cam-ket { grid-template-columns: minmax(0, 1fr); }
  .chan-luoi { grid-template-columns: minmax(0, 1fr); }
  .hd { grid-template-columns: minmax(0, 1fr); }
  .gio-cuoi { max-width: none; }
  .ck { grid-template-columns: 110px minmax(0, 1fr); }
  .thanh-tren .vung span { display: none; }
  .gio thead { display: none; }
  .gio, .gio tbody, .gio tr, .gio td { display: block; width: 100%; }
  .gio tr { border: 1px solid var(--vien); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; }
  .gio td { border: 0; padding: 4px 8px; }
  .gio td:nth-child(2)::before { content: "Đơn giá: "; color: var(--xam); }
  .gio td:nth-child(3)::before { content: "Số lượng: "; color: var(--xam); }
  .gio td:nth-child(4)::before { content: "Thành tiền: "; color: var(--xam); }
  .gio td:nth-child(2) br { display: none; }
  .gio td:nth-child(2) s { margin-right: 6px; }
  .gio .giam { display: inline; margin-left: 6px; }
}

/* 22/11 08:30 (anh): chân trang, nút nổi Gọi / Chat Zalo, video giới thiệu, cân dòng tiêu đề */
.chan .chan-gio { font-weight: 600; margin-top: 8px; }
.ban-quyen { text-align: center; }
h1, h2, h3 { text-wrap: balance; }
.nut-noi { position: fixed; right: 14px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.nut-noi a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; color: #fff; text-decoration: none; font-size: .92rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.nut-noi a b { font-weight: 700; }
.nut-noi .nn-goi { background: #E81836; }
.nut-noi .nn-zalo { background: #0068FF; }
.video-gt { margin: 16px 0 24px; }
.video-gt video { display: block; width: 100%; height: auto; max-width: 960px; border-radius: 10px; background: #000; }
.video-gt figcaption { font-size: .88rem; color: #555; margin-top: 6px; }
@media (max-width: 600px) {
  .nut-noi { right: 10px; bottom: 12px; }
  .nut-noi a { padding: 11px; } .nut-noi a b { display: none; }
  .chan { padding-bottom: 24px; }   /* 22/11 15:35 (anh): bỏ khoảng xanh trống – nút nổi đã dời lên giữa phải */
}

/* 22/11 09:30: bảng giá sỉ cân cột, thông báo đã thêm giỏ, nút sao chép, tra MST, hộp cookie */
.bang-si { width: 100%; table-layout: fixed; }
.bang-si th:nth-child(1), .bang-si td:nth-child(1) { width: 44%; }
.bang-si th:nth-child(2), .bang-si td:nth-child(2) { width: 20%; text-align: center; }
.bang-si th:nth-child(3), .bang-si td:nth-child(3) { width: 36%; text-align: right; }
.da-them { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: #e8f5ec; border: 1px solid #1D6434; color: #1D6434; padding: 12px 16px; border-radius: 10px; margin: 8px 0 16px; font-size: 1rem; }
.da-them .nut { margin-left: auto; }
button[disabled] { opacity: .65; cursor: progress; }
.ck dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.ck .ck-tien { color: #E81836; font-size: 1.15rem; }
.nut-chep { border: 1px solid #1D6434; background: #fff; color: #1D6434; border-radius: 6px; padding: 4px 10px; font-size: .85rem; cursor: pointer; }
.nut-chep.da { background: #1D6434; color: #fff; }
.an-chep { position: fixed; left: -9999px; top: 0; }
.mst-dong { display: flex; gap: 8px; } .mst-dong input { flex: 1; min-width: 0; }
.mst-bao { display: block; color: #1D6434; min-height: 1em; }
/* 22/11 15:33 (anh): thanh cookie che gần hết nội dung → thanh mỏng 1 dòng sát đáy, chừa chỗ nút nổi bên phải */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: #fff; border-top: 1px solid #ccc; padding: 6px 12px; box-shadow: 0 -2px 10px rgba(0,0,0,.12); font-size: .82rem; line-height: 1.35; }
.cookie p { margin: 0; }
.cookie-nut { display: flex; gap: 6px; flex: none; }
.cookie .nut { padding: 4px 12px; font-size: .82rem; min-height: 0; }
.cookie[hidden] { display: none; }
.form-dat select { padding: 10px 12px; border: 1px solid var(--vien); border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff; }
/* nút nổi gọn (không che nút Mua ngay): tròn 52px, chữ nhỏ dưới biểu tượng */
.nut-noi a { flex-direction: column; justify-content: center; gap: 0; width: 56px; height: 56px; padding: 0; border-radius: 50%; font-size: .68rem; line-height: 1.1; }
.nut-noi a span { font-size: 1.15rem; }
@media (max-width: 600px) { .nut-noi a { width: 50px; height: 50px; padding: 0; } .nut-noi a b { display: block; font-size: .6rem; } }
/* 22/11 09:36 (anh): nút Gọi / Chat Zalo canh giữa theo chiều dọc, sát mép phải */
.nut-noi { top: 50%; bottom: auto; right: 12px; transform: translateY(-50%); }
@media (max-width: 600px) { .nut-noi { top: 50%; bottom: auto; right: 8px; } }
/* 22/11 09:49 (anh: nút xấu) – 2 thẻ gắn mép phải, cùng cỡ, biểu tượng SVG + chữ */
.nut-noi { right: 0; gap: 8px; }
.nut-noi a { width: 62px; height: 62px; border-radius: 14px 0 0 14px; padding: 0; gap: 3px; box-shadow: -2px 3px 12px rgba(0,0,0,.18); font-size: .72rem; line-height: 1; }
.nut-noi a b { display: block; font-weight: 700; letter-spacing: .2px; }
.nut-noi a svg { display: block; }
.nut-noi .nn-zalo-chu { display: block; font-weight: 800; font-size: .95rem; font-style: normal; letter-spacing: -.2px; }
.nut-noi a:hover, .nut-noi a:focus-visible { width: 70px; }
@media (max-width: 600px) { .nut-noi { right: 0; } .nut-noi a { width: 54px; height: 54px; } .nut-noi a b { display: block; font-size: .64rem; } }
.nut-noi a { transition: width .15s ease; }
body:has(#hopCookie:not([hidden])) { padding-bottom: 64px; }
/* 22/11 15:35 (anh): không để 1 chữ rớt dòng – tiêu đề, dòng bản quyền cân dòng; đoạn văn tránh chữ mồ côi */
h1, h2, h3, .ban-quyen, .the-sp .ten, .nut { text-wrap: balance; }
p, li, dd, td, figcaption { text-wrap: pretty; }
/* 22/11 15:40: điện thoại – tên sản phẩm hiện đủ (trước cắt 3 dòng làm mất mã như DM03, D.888 và lộ dấu dòng thứ 4) */
@media (max-width: 600px) { .the h3 { display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 0; } }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
th, td { text-wrap: balance; }

/* 22/11 20:32 (anh): giỏ tự cập nhật số lượng; thêm mã khác ngay trong giỏ; trang sản phẩm báo số đang có trong giỏ */
.gio-tu{display:none}
.co-js .nut-gio{display:none}
.co-js .gio-tu{display:block;margin:6px 0 0}
.them-ma{margin:18px 0;padding:14px 16px;border:1px solid #d7e6dc;border-radius:10px;background:#f6fbf7}
.them-ma h2{font-size:1.05rem;margin:0 0 10px}
.them-dong{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.them-dong label{display:flex;flex-direction:column;gap:4px;font-size:.92rem}
.them-dong select{min-width:0;max-width:100%;width:420px;padding:8px;border:1px solid #c9d6cd;border-radius:6px;font:inherit}
.them-dong input[type=number]{width:96px;padding:8px;border:1px solid #c9d6cd;border-radius:6px;font:inherit}
.trong-gio{margin:6px 0 0;font-size:.92rem;color:#1D6434}
@media (max-width:640px){.them-dong select{width:100%}.them-dong label:first-child{flex:1 1 100%}}
/* A12b 22/11 (GIAO 2210, lỗi B): cụm nút nổi bên phải (Gọi, Zalo, chat) đè cột Xóa / Thành tiền của bảng giỏ ở màn ≤ 1360 px.
   Cách (a): chừa lề phải cho bảng giỏ + khối tổng tiền (nút nổi rộng tối đa 70 px, sát mép phải) – nút nổi giữ nguyên chỗ trên mọi trang. */
/* (25/11 GIAO 1108: thay bằng luật chừa lề phải cho MỌI trang ở cuối tệp – bỏ lề riêng của bảng giỏ để không cộng dồn) */
/* A12b lỗi B vòng 2: nút "Hỏi" (mở chat) trong cụm nút nổi – chỉ có ở giỏ / đặt hàng khi bật SHOP_CHAT */
.nut-noi .nn-chat { background: #1D6434; }
/* GIAO-2210 mục 2 (24/11): màn ≤ 600 px – chừa lề phải cho cụm nút nổi Gọi/Zalo/Hỏi (rộng 54 px, sát mép phải) ở /lien-he, /chinh-sach-* và /tin-tuc* (thêm 24/11 23:4x) để nút không đè chữ */
/* (25/11 GIAO 1108: luật riêng body.chua-le-phai thay bằng luật chung ở cuối tệp) */
/* Cùng việc: trang Đặt hàng (/thanh-toan và khi /dat-hang báo lỗi) – nút nổi đè ô địa chỉ, ô đồng ý, câu gửi hàng ở 420 px (đo 24/11) → chừa lề phải cho khối form */
/* (25/11 GIAO 1108: lề riêng .thanh-toan thay bằng luật chung ở cuối tệp) */
/* GIAO 25/11 11:08 (đợt quét 25/11: nút nổi Gọi/Zalo che chữ ở 129/130 trang) – chừa lề phải cho cụm nút nổi trên MỌI trang.
   Nút nổi sát mép phải: rộng 62 px (70 px khi rê chuột) trên máy tính, 54 px trên điện thoại.
   ≤ 600 px: nội dung chính + chân trang cách mép phải 64 px.
   601 px trở lên: nội dung cách mép phải ≥ 86 px (70 px nút + 16 px, tính cả thanh cuộn) – màn rộng ≥ 1372 px khung 1200 px tự đủ lề, không thêm. */
@media (max-width: 600px) { main.chinh, .chan .vung { padding-right: 64px; } }
@media (min-width: 601px) { main.chinh, .chan .vung { padding-right: min(86px, max(16px, calc(86px - (100vw - 1200px) / 2))); } }
/* GIAO 25/11 14:55 mục 3: trang Đặt hàng khổ ≥ 981 px (2 cột) – bảng "Đơn của bạn" ở cột phải rộng hơn cột (cột "Thành tiền" bị đẩy ra ngoài, phải cuộn ngang) → hiện dạng thẻ từng dòng như điện thoại */
@media (min-width: 981px) {
  .thanh-toan .gio thead { display: none; }
  .thanh-toan .gio, .thanh-toan .gio tbody, .thanh-toan .gio tr, .thanh-toan .gio td { display: block; width: 100%; }
  .thanh-toan .gio tr { border: 1px solid var(--vien); border-radius: 10px; margin-bottom: 10px; padding: 6px 4px; }
  .thanh-toan .gio td { border: 0; padding: 4px 8px; }
  .thanh-toan .gio td:nth-child(2)::before { content: "Đơn giá: "; color: var(--xam); }
  .thanh-toan .gio td:nth-child(3)::before { content: "Số lượng: "; color: var(--xam); }
  .thanh-toan .gio td:nth-child(4)::before { content: "Thành tiền: "; color: var(--xam); }
  .thanh-toan .gio td:nth-child(2) br { display: none; }
  .thanh-toan .gio td:nth-child(2) s { margin-right: 6px; }
  .thanh-toan .gio .giam { display: inline; margin-left: 6px; }
}
