/* V39: sửa mất chữ logo trên điện thoại + kho chữ nghệ thuật */
@media (max-width:520px){.topbar .nd34Brand div{display:block!important;min-width:0}.topbar .nd34Brand small{display:none!important}.topbar .nd34Brand strong{font-size:12.5px!important;line-height:1.2}.topbar .nd34Brand img{height:30px!important}}
.nd39{margin-top:12px}
.nd39Txt{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:#4b5a73;margin-bottom:8px}
.nd39Txt input{padding:8px 10px;border:1px solid #d9e0ea;border-radius:10px;font:500 14px 'Be Vietnam Pro',system-ui,sans-serif}
.nd39Chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.nd39Chips button{padding:6px 11px;border-radius:999px;border:1px solid #dde3ec;background:#fff;font-size:12px;font-weight:600;cursor:pointer}
.nd39Chips button.on{background:#1e2a3d;color:#fff;border-color:#1e2a3d}
.nd39Grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.nd39Card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:76px;padding:10px 6px;border:1px solid #e6ebf2;border-radius:12px;background:#fff;cursor:pointer;transition:transform .12s ease,border-color .12s ease;content-visibility:auto;contain-intrinsic-size:auto 80px}
.nd39Card:hover{border-color:#b3192b;transform:translateY(-2px)}
.nd39Card .s{font-size:22px;line-height:1.25;color:#b3192b;text-align:center;word-break:break-word}
.nd39Card small{font-size:11px;color:#6b7a90}

/* V42: giá đặt in là chính, giá file là phụ – gọn trên mọi màn hình */
.nd37Foot{gap:10px!important}
.nd37Foot .nd37P{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important;min-width:0;flex:1 1 auto;line-height:1.2}
.nd42Pr{display:block!important;color:#a3122a;font-size:16px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.nd42Pr small{display:inline!important;font-size:12px!important;font-weight:600;color:#a3122a;opacity:.8;white-space:nowrap}
.nd42Pr.free{color:#0f9d58}
.nd42Fl{display:block!important;font-size:11.5px;font-weight:600;color:#7a6a5d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.nd42Fl.free{color:#0f9d58}
.nd37Go{flex:none}
/* thẻ hẹp (4 cột trên máy tính) */
@media (min-width:641px) and (max-width:1280px){.nd42Pr{font-size:15px}.nd37Go{padding:7px 11px;font-size:12.5px}}
/* điện thoại: giá trên, nút "Thiết kế" rộng bên dưới */
@media (max-width:640px){
  .nd37Foot{flex-direction:column!important;align-items:stretch!important;gap:8px!important}
  .nd37Foot .nd37P{flex-direction:column!important;align-items:flex-start!important}
  .nd42Pr{font-size:15px}.nd42Pr small{font-size:11px!important}
  .nd42Fl{font-size:11px}
  .nd37Go{text-align:center}
}
/* thẻ mẫu nhỏ trong trình thiết kế */
.nd27Card .nd37Foot .nd37P{flex-direction:row!important;flex-wrap:wrap;align-items:baseline!important;gap:2px 8px!important}
.nd27Card .nd42Pr{font-size:12.5px}.nd27Card .nd42Pr small{font-size:10.5px!important}
.nd27Card .nd42Fl{font-size:10.5px}

/* V44: giá in đỏ đậm, không nền – nhãn nhỏ + số to, nút bên phải, giá file bên dưới */
.nd27HCard .nd37Foot{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"pr go" "fl fl";align-items:end;gap:6px 12px!important;padding-top:12px!important}
.nd27HCard .nd37Foot .nd37P{display:contents!important}
.nd27HCard .nd42Pr{grid-area:pr;display:block!important;min-width:0;background:none;border:0;padding:0;box-shadow:none;color:#8f0f22;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd27HCard .nd42Pr .nd43Lb{display:block!important;margin-bottom:3px;font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9a8678}
.nd27HCard .nd42Pr strong{font-size:22px;font-weight:800;letter-spacing:-.02em;color:#8f0f22}
.nd27HCard .nd42Pr small{display:inline!important;margin-left:2px;font-size:12.5px!important;font-weight:600;color:#8f0f22;opacity:.75}
.nd27HCard .nd42Pr.free{color:#0f9d58;font-size:16px;font-weight:800}
.nd27HCard .nd42Fl{grid-area:fl;display:flex!important;align-items:center;gap:6px;padding-top:8px;border-top:1px solid #f1e8de;font-size:12px;font-weight:500;color:#8a7a6e}
.nd27HCard .nd42Fl.free{color:#0f9d58;font-weight:600}
.nd27HCard .nd37Go{grid-area:go;align-self:end;background:#8f0f22;padding:8px 14px;border-radius:999px}
.nd27HCard:hover .nd37Go{background:#6e0a19}
@media (min-width:641px) and (max-width:1280px){.nd27HCard .nd42Pr strong{font-size:20px}.nd27HCard .nd37Go{padding:7px 12px}}
@media (max-width:640px){
  .nd27HCard .nd37Foot{grid-template-columns:1fr;grid-template-areas:"pr" "fl" "go";gap:6px!important;align-items:stretch}
  .nd27HCard .nd42Pr .nd43Lb{font-size:9.5px}
  .nd27HCard .nd42Pr strong{font-size:18px}
  .nd27HCard .nd42Pr small{font-size:11px!important}
  .nd27HCard .nd42Fl{font-size:11px;padding-top:6px}
  .nd27HCard .nd37Go{text-align:center;padding:8px}
}

/* V46: giá in + giá file gộp 1 khối bên trái, nút bên phải; giá nhỏ lại để không bị che */
.nd27HCard .nd37Foot{grid-template-areas:"pr go" "fl go"!important;align-items:center!important;gap:3px 10px!important}
.nd27HCard .nd42Pr strong{font-size:18px!important}
.nd27HCard .nd42Pr small{font-size:11px!important;margin-left:1px}
.nd27HCard .nd42Pr .nd43Lb{font-size:9.5px!important;margin-bottom:2px}
.nd27HCard .nd42Fl{align-self:start;padding-top:0!important;border-top:0!important;font-size:11.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nd27HCard .nd37Go{align-self:center!important;padding:7px 12px!important;font-size:12.5px}
@media (min-width:641px) and (max-width:1280px){.nd27HCard .nd42Pr strong{font-size:17px!important}.nd27HCard .nd37Go{padding:7px 10px!important}}
@media (max-width:640px){
  .nd27HCard .nd37Foot{grid-template-areas:"pr" "fl" "go"!important;align-items:stretch!important;gap:3px!important}
  .nd27HCard .nd42Pr strong{font-size:16px!important}
  .nd27HCard .nd42Fl{font-size:11px!important}
  .nd27HCard .nd37Go{margin-top:6px;padding:8px!important}
}
