/*
 * Image sizes of the legacy site. The old PHP code cropped uploads server-side
 * (timthumb zc=1); here the browser crops with object-fit so the admin can
 * upload any image and the layout stays identical.
 */
.img_tintucnb img,
.box_tintucnb .img_tintucnb img { width: 100%; height: 217px; object-fit: cover; }
.box_news_img img { width: 210px; height: 170px; object-fit: cover; }
.img_kh img { width: 87px; height: 87px; object-fit: cover; }
.img_tieuchi img { width: 60px; height: 60px; object-fit: contain; }
.khachhang_tieubieu img { width: 170px; height: 170px; object-fit: contain; }
.slider-wrapper .nivoSlider img { max-width: 100%; height: auto; }
.noimg { object-fit: contain !important; background: #fff; }
.social-footer a:not(.social-img) { display: inline-block; width: 41px; height: 41px; line-height: 41px; margin: 8px 8px 0 0; border-radius: 50%; background: #fff; color: #0d77bb; text-align: center; font-size: 20px; }
.social-footer a:not(.social-img):hover { background: #0d77bb; color: #fff; }

/* Invoice templates: the legacy site cropped every picture to 270x383 (timthumb zc=1), so all cards were the same
   height and the grid stayed in rows of four. Same crop here, done in CSS. */
.invoice-grid > li > a { display: block; }
/* desktop template crops the pictures to 270x383 (timthumb); the phone template shows them as they are */
@media (min-width: 1200px) {
  .invoice-grid > li img.img-responsive { width: 100%; aspect-ratio: 270 / 383; object-fit: cover; object-position: center; }
}

/* Legacy footer: payment logos are 50x50 thumbnails (thumb(..., 50, 50)) */
.box_phuongthuc .img_phuongthuc img { width: 50px; height: 50px; object-fit: cover; }

/* Legacy card title is plain text (no link colour) */
.wap-sanpham .pding-sp .item-sanpham h3 a { color: inherit; }

/* Legacy mobile "Gọi Điện | Zalo" bar: phones only */
#goidien { display: none; }
#goidien table { width: 100%; text-align: center; margin: auto; background: #fff; }
#goidien td { width: 50%; }
#goidien img { width: 12%; max-width: 35px; vertical-align: middle; }
#goidien a { color: #fff; text-decoration: none !important; font-size: 18px; }

/* Legacy mobile page title replaces the breadcrumb trail on phones */
.phone-title-main { display: none; }

/* No picture: the legacy noimage thumbnail (311x217, whole image on white) */
.img_tintucnb img.noimg { height: auto !important; aspect-ratio: 311 / 217; object-fit: contain; background: #fff; }

.phone-only { display: none; }
