/* Sắp lại trang xe + tin tức cho gọn (chinh_trang.py chèn tệp này), 01/12/2026 */

/* ---- danh sách bài: bỏ ảnh nhỏ (ảnh đầu bài gần như giống nhau nên nhìn lặp), chữ thoáng ---- */
.ds-bai{gap:0}
.bai-dong{padding:12px 0;gap:0}
.bai-dong img{display:none}
.bai-chu b{font-size:15.5px;-webkit-line-clamp:2}
.bai-chu time,.bai-chu .doc{font-size:12.5px;color:var(--phu)}
.bai-chu time{margin-top:4px}
.bai-chu{display:block}
.bai-chu .bai-muc{display:block;margin-bottom:3px}
.bai-chu b{display:-webkit-box}
.bai-dong::after{content:"›";margin-left:auto;padding-left:12px;color:#B7BCD0;font-size:22px;align-self:center}
.bai-to .doc{font-size:13px;color:var(--phu)}
.bai-to img{aspect-ratio:2/1}

/* thanh lọc chuyên mục dính dưới đầu trang */
.loc-dinh{position:sticky;top:var(--cao-dau);z-index:30;background:rgba(255,255,255,.97);padding-top:8px;padding-bottom:8px;margin-bottom:4px}

/* ---- trang xe ---- */
.gx-tt h1{margin-bottom:6px}
.gx-gia{margin-bottom:14px}
.gx-bang{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--vien);border-radius:14px;overflow:hidden;font-size:14.5px;margin:0 0 14px}
.gx-bang caption{text-align:left;font-family:var(--f-td);font-weight:800;font-size:18px;color:var(--navy);padding:0 0 8px}
.gx-bang th,.gx-bang td{padding:10px 12px;text-align:left;vertical-align:top;border-top:1px solid var(--vien);line-height:1.4}
.gx-bang tr:first-of-type th,.gx-bang tr:first-of-type td{border-top:0}
.gx-bang th{width:36%;background:var(--nen-2);color:var(--phu);font-weight:600}
.gx-bang td{color:var(--navy);font-weight:600}
.gx-bang .gx-bang-gia{color:var(--hong-chu);font-weight:800}
.gx-nut{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gx-nut .nut{flex:none;min-height:50px;padding:0 10px;white-space:nowrap}
.gx-luu{margin-top:10px}

/* hàng xe vuốt ngang (Xe khác / Xe đang bán) */
.luoi-xe.hang-truot{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 16px;margin:0 -16px;padding:2px 16px 8px;scrollbar-width:none}
.luoi-xe.hang-truot::-webkit-scrollbar{display:none}
.hang-truot .the-xe{flex:0 0 46%;scroll-snap-align:start}
.hang-truot .the-dd{display:none}
.hang-truot .the-ten{min-height:0}
.hang-truot .the-zalo{display:none}
.hang-truot .the-than{padding-bottom:10px}

/* hộp liên hệ cuối bài: 2 nút một hàng, không gãy chữ */
.hop-lh .hang-nut{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hop-lh .nut{white-space:nowrap;padding:0 10px}

@media (min-width:640px){
  .hang-truot .the-xe{flex-basis:30%}
  .ds-bai{column-gap:28px}
}
@media (min-width:960px){
  .hang-truot .the-xe{flex-basis:23%}
  .luoi-xe.hang-truot{margin:0;padding:2px 0 8px}
  .hop-lh .hang-nut{display:flex}
  .gx-nut .nut{min-height:52px}
}
.bai-to>span{display:block}
.bai-to .bai-muc,.bai-to b{display:block}
.bai-to time{display:inline-block;margin-top:6px}

/* 01/12 bổ sung: menu Sản phẩm, bản đồ, trang chính sách, hãng chưa có xe */
.menu-sp{position:relative;display:inline-flex}
.menu-sp>a{display:inline-flex;align-items:center;gap:4px}
.menu-sp>a .ic{font-size:.9em;transition:transform .2s}
.menu-sp-ds{position:absolute;top:100%;left:50%;transform:translate(-50%,6px);min-width:200px;background:#fff;border:1px solid #ECE7F3;border-radius:16px;box-shadow:0 12px 32px rgba(29,42,91,.14);padding:8px;display:grid;opacity:0;visibility:hidden;transition:opacity .15s,transform .15s;z-index:60}
.menu-sp-ds a{padding:9px 14px;border-radius:10px;color:#1D2A5B;font-weight:600;white-space:nowrap}
.menu-sp-ds a:hover{background:#FFF0F6;color:#E0559A}
.menu-sp-ds .menu-sp-tat{border-top:1px solid #F0ECF5;margin-top:4px;color:#3D8BFF}
.menu-sp:hover .menu-sp-ds,.menu-sp:focus-within .menu-sp-ds{opacity:1;visibility:visible;transform:translate(-50%,0)}
.menu-sp:hover>a .ic{transform:rotate(180deg)}
.ngan-hang{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ban-do{margin-top:14px;border-radius:18px;overflow:hidden;border:1px solid #ECE7F3;background:#F6F3FA}
.ban-do iframe{display:block;width:100%;height:260px;border:0}
.ban-do-nut{display:flex;justify-content:center;align-items:center;gap:8px;margin:0;border-radius:0;padding:14px;background:#3D8BFF;color:#fff;font-weight:700}
.ban-do-nut:hover{background:#2F79EA;color:#fff}
.cua-hang.co-ban-do .ban-do{margin-top:18px}
.td-ban-do{margin:28px 0 0;font-size:1.25rem;color:#1D2A5B}
.cs-muc{padding:0;margin-top:26px}
.cs-muc h2{font-size:1.2rem;margin:0 0 12px;color:#1D2A5B}
.cs-bang td b{color:#E0559A}
.cs-ds{margin:0;padding-left:1.2em;display:grid;gap:10px;line-height:1.6;color:#2B3352}
.cs-ds li::marker{color:#FF6FAE;font-weight:700}
.cs-nut{margin-top:28px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cs-nut .nut{justify-content:center;white-space:nowrap}
.chip-trong{opacity:.85}
.rong-hang{margin:12px 0 24px;padding:22px 18px;border:1.5px dashed #F5B9D4;border-radius:18px;background:#FFF7FB;text-align:center;color:#1D2A5B}
.rong-hang p{margin:0 0 14px;line-height:1.6}
.rong-hang .hang-nut{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (min-width:960px){.ban-do iframe{height:340px}}
.cs-p{margin:0 0 12px;line-height:1.65;color:#2B3352}
.cs-h3{font-size:1.02rem;margin:18px 0 10px;color:#1D2A5B}
.cs-bang+.cs-p{margin-top:12px}

/* 01/12 08:42: logo to hơn, dòng thế mạnh, menu điện thoại không tràn */
.logo img{height:44px}
@media (min-width:960px){.logo img{height:52px}}
.ngan-dau img{height:40px}
.logo-ngan{display:block;line-height:0}
.ngan-menu{overflow-x:hidden}
.ngan-hang a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dau-the-manh{background:linear-gradient(90deg,#1D2A5B,#2B3C7A);color:#fff;font:600 12.5px/1 "Be Vietnam Pro",system-ui,sans-serif;letter-spacing:.01em}
.tm-ds{position:relative;height:30px;display:flex;align-items:center;justify-content:center;gap:22px;overflow:hidden}
.tm-ds span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.tm-ds span::before{content:"";width:6px;height:6px;border-radius:50%;background:linear-gradient(135deg,#FF6FAE,#3D8BFF);flex:0 0 auto}
@media (max-width:959px){
 .tm-ds span{position:absolute;left:0;right:0;justify-content:center;opacity:0;transform:translateY(8px);animation:tmXoay 12s infinite}
 .tm-ds span:nth-child(2){animation-delay:3s}.tm-ds span:nth-child(3){animation-delay:6s}.tm-ds span:nth-child(4){animation-delay:9s}
}
@keyframes tmXoay{0%{opacity:0;transform:translateY(8px)}4%,22%{opacity:1;transform:none}26%,100%{opacity:0;transform:translateY(-8px)}}
@media (prefers-reduced-motion:reduce){.tm-ds span{animation:none}.tm-ds span:first-child{opacity:1;transform:none}}
/* 01/12 quét 299 trang: chữ ẩn "Sắp xếp" ở /xe/ thoát khung cuộn làm trang rộng 406px trên máy 360px */
.loc .sap{position:relative}
.thanh-day{grid-template-columns:repeat(3,minmax(0,1fr))}
.thanh-day a{overflow:hidden}
.hang-nut .nut{min-width:0}
.hop-lh .hang-nut,.rong-hang .hang-nut{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:379px){.hang-nut .nut{padding:0 10px}.cs-nut .nut{white-space:normal;text-align:center;line-height:1.2}.hang-nut .nut .ic{flex:none}}
/* 01/12: bảng trong bài không bẻ đôi con số giá (bai-than đặt overflow-wrap:anywhere); bảng rộng thì cuộn ngang trong khung .bang */
.bang th,.bang td{overflow-wrap:normal;word-break:normal}
.bang td{white-space:normal}
@media (max-width:479px){.bang th,.bang td{padding:9px 8px}.bang table{font-size:14px}}
