body {
  margin: 0;
  background-color: #f5f5f575 !important;
}

/* ===== Slide banner: đúng aspect ratio 7:2 theo ảnh gốc (1440x412, 2560x733...) ===== */
.section-slide-banner {
  width: 100%;
  background-color: #eeeeee;
}
.section-slide-banner .carousel,
.section-slide-banner .carousel-inner {
  width: 100%;
}
.section-slide-banner .carousel-item {
  aspect-ratio: 7 / 2;
  background-color: #eeeeee;
}
.section-slide-banner .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Section news: cố định kích thước articles trong flex container ===== */
.section-news .new-papper-content .new-tab-pane .scroll-articles .articles {
  flex: 0 0 auto;
  width: calc((100% - 100px) / 3) !important;
  height: 480px !important;
  max-height: 480px !important;
}
.section-news .new-papper-content .new-tab-pane .scroll-articles .articles a,
.section-news .new-papper-content .new-tab-pane .scroll-articles .articles .articles-image {
  display: block;
  width: 100%;
  height: 100%;
}
.section-news .new-papper-content .new-tab-pane .scroll-articles .articles .articles-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================================
   CATEGORY MEGA (component tagCategoryMega) — fix img overflow + layout
================================================================ */
/* ẨN tuyệt đối mega panel ngoài hover/active để không "tự nhiên hiện" */
.container-category .category-list .list-item .item-support {
  display: none !important;
}
.container-category .category-list .list-item:hover .item-support,
.container-category .category-list .list-item.open .item-support {
  display: block !important;
}

/* Bridge pseudo-element — phủ gap giữa button category và panel item-support.
   Pseudo gắn TRÊN .item-support (extend lên trên 40px). KHÔNG set position
   relative cho .list-item — tránh đổi reference của item-support (top:91px gốc).
   CHỈ desktop (>=768px) — mobile dùng JS toggle click, không cần bridge. */
@media (min-width: 768px) {
  .container-category .category-list .list-item:hover .item-support::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 1;
    background: transparent;
  }
}
.container-category .category-list .list-item .item-support .support-card {
  display: flex !important;
  flex-wrap: wrap;
  width: 100%;
}
.container-category .category-list .list-item .item-support .support-card .card-col {
  flex: 0 0 calc(20% - 8px);
  max-width: calc(20% - 8px);
  padding: 0 5px !important;
}
.container-category .category-list .list-item .item-support .support-card .card-col .col-product-link {
  display: block;
  text-decoration: none;
}
.container-category .category-list .list-item .item-support .support-card .card-col .card {
  display: block !important;
  width: 100%;
  border: none;
  overflow: hidden;
}
.container-category .card-img-top {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

/* Card height đồng đều — name 2 dòng min-height, price luôn align bottom */
.container-category .support-card .card-col,
.container-category .support-card .card-col .col-product-link,
.container-category .support-card .card-col .card {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}
.container-category .support-card .card-col .card .card-body {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 12px;
}
.container-category .support-card .card-col .card .card-name {
  min-height: 44px;            /* fit 2 dòng title (font 14-16px × 1.4 line-height) */
}
.container-category .support-card .card-col .card .card-name h5 {
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.container-category .support-card .card-col .card .card-price {
  margin-top: auto;            /* đẩy giá xuống đáy → align cùng hàng giữa các card */
  padding-top: 8px;
}

/* Khi số xe ít hơn 5, vẫn giữ width 20% mỗi card (không stretch full) */
.container-category .category-list .list-item .item-support .support-card.row .card-col.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

/* ================================================================
   PRODUCT CARD (component tagProductCard) — match hoaiminh.vn
================================================================ */
/* Card wrapper: align-items stretch để 3 cards cùng height */
.section-product .card-wrapper {
  display: flex;
  align-items: stretch;
  gap: 20px;
}
.section-product .card-wrapper .product-card-slider {
  height: auto;
}

/* ===== Carousel control prev/next: giống section-news (tròn, mờ, viền xám) ===== */
.section-product .carousel { position: relative; }
.section-product .carousel .carousel-control-prev,
.section-product .carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(85, 85, 85, .41);   /* #55555569 — giống section-news */
  border-radius: 50%;
  opacity: 0.2;                              /* mờ mặc định */
  transition: opacity .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section-product .carousel .carousel-control-prev { left: 20px; }
.section-product .carousel .carousel-control-next { right: 20px; }
.section-product .carousel .carousel-control-prev:hover,
.section-product .carousel .carousel-control-next:hover {
  opacity: 1;
  border-color: transparent;
  box-shadow: 1px 4px 6px rgba(85, 85, 85, .41);
}
.section-product .carousel .carousel-control-prev-icon,
.section-product .carousel .carousel-control-next-icon {
  width: 14px; height: 14px;
  background-size: 100% 100%;
}

@media (max-width: 767px) {
  .section-product .carousel .carousel-control-prev,
  .section-product .carousel .carousel-control-next { width: 36px; height: 36px; }
  .section-product .carousel .carousel-control-prev { left: 8px; }
  .section-product .carousel .carousel-control-next { right: 8px; }
}
.product-card-slider {
  background-color: #fff;
  box-shadow: 1px 5px 20px 0 rgba(0,0,0,.15);
  margin: 10px;
  padding: 20px 20px 0;
  position: relative;
  overflow: hidden;
  /* flex column để price-wrapper luôn nằm đáy cùng vị trí giữa các card */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card-slider .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.product-card-slider .card-body .box-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Ribbon "For Sale" góc trên phải */
.product-card-slider .card-chip {
  width: 100px; height: 100px;
  position: absolute;
  top: 0; right: 0;
  overflow: hidden;
  z-index: 2;
}
.product-card-slider .card-chip .chip-content {
  position: absolute;
  left: -35px; top: 20px;
  width: 200px;
  font-size: 12px;
  padding: 5px 0;
  transform: rotate(45deg);
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
}
.product-card-slider .card-chip .chip-discount { background-color: #ff2626; }

/* Tên xe — height cố định 2 dòng để các card cùng chiều cao */
.product-card-slider .ap-title-info {
  min-height: 60px;             /* 24px × 1.2 × 2 dòng ≈ 58px (theo font 24px gốc) */
  display: flex;
  align-items: flex-start;
}
.product-card-slider .ap-title-info .ap-title {
  margin-bottom: 0;
  width: 100%;
}
.product-card-slider .ap-title-info .ap-title a {
  font-size: 24px;              /* hoaiminh.vn gốc */
  color: #121212;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* tối đa 2 dòng, dài hơn ellipsis */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ảnh — khung CỐ ĐỊNH height + object-fit contain để giữ tỷ lệ ảnh gốc */
.product-card-slider .slider-image-card {
  overflow: hidden;
  position: relative;
  height: 220px;            /* chiều cao cố định */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;   /* nền trắng khi ảnh có alpha hoặc tỉ lệ khác */
}
.product-card-slider .slider-image-card .card-img-top,
.product-card-slider .card-img-top {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;       /* fit khung không méo, không crop */
  transition: transform .3s ease-in-out;
}
.product-card-slider:hover .card-img-top {
  transform: scale(1.06);
}

/* Responsive chiều cao ảnh — giảm trên tablet/mobile */
@media (max-width: 1199px) {
  .product-card-slider .slider-image-card { height: 200px; }
}
@media (max-width: 767px) {
  .product-card-slider .slider-image-card { height: 220px; }
}

/* Body: info grid 2x2 — theo CSS GỐC hoaiminh.vn */
.product-card-slider .card-body { padding: 0; }
.product-card-slider .card-body .box-text .title-wrapper {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(19,18,18,.1);
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;                   /* hoaiminh.vn gốc */
  width: 50%;
  height: 45px;                /* hoaiminh.vn gốc — height cố định */
  margin-top: 30px;            /* hoaiminh.vn gốc — gap giữa 2 hàng */
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item .infor h5 {
  /* Clamp 2 dòng — text dài hơn sẽ ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item i {
  font-size: 20px;
  color: #ff2626;
  width: 30px;
  text-align: end;             /* hoaiminh.vn gốc */
  flex-shrink: 0;
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item .infor {
  margin-left: 5px;            /* hoaiminh.vn gốc */
  text-align: start;
  flex: 1 1 auto;
  min-width: 0;
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item .infor h5 {
  margin: 0;                   /* hoaiminh.vn gốc */
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: #121212;
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item .infor h5:has(.item-color) {
  display: flex;
  gap: 6px;
  padding-left: 8px;          /* dịch hàng màu ra xa icon palette để hình bình hành đầu ko bị đè */
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item .infor h5 .item-color {
  width: 30px; height: 22px;
  border: 1px solid #d2d2d2;
  transform: skewX(-30deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item .infor h5 .item-color:first-child {
  margin-left: 4px;           /* bù khoảng cho góc trái bình hành nhô ra */
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item .infor span {
  font-size: 14px;             /* hoaiminh.vn gốc */
  color: #555;
}
.product-card-slider .card-body .box-text .title-wrapper .infor-item .infor-engine-type h5 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer card: giá + button — theo CSS GỐC hoaiminh.vn */
.product-card-slider .card-body .box-text .price-wrapper {
  height: 70px;                /* hoaiminh.vn gốc */
  margin-top: 40px;            /* hoaiminh.vn gốc — gap với title-wrapper */
  border-top: 1px solid rgba(19,18,18,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card-slider .card-body .box-text .price-wrapper .wrapper-content {
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}
.product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price-discount,
.product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.4;
}
/* Title "GIÁ GỐC:" / "GIÁ CÒN:" — GIỮ NGUYÊN style gốc: xám nhạt, không bold */
.product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price-discount label,
.product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price label {
  text-transform: uppercase;
  color: #b1b1b1 !important;
  font-size: 12px !important;
  font-weight: normal !important;
  margin: 0;
  min-width: 55px;
}
/* GIÁ GỐC (strike): ĐEN */
.section-product .product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price-discount span,
.section .product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price-discount span {
  color: #121212 !important;
  text-decoration: line-through !important;
  font-size: 14px !important;
}

/* GIÁ CÒN (đứng sau GIÁ GỐC — có khuyến mại): ĐỎ */
.section-product .product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price-discount + .price span,
.section .product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price-discount + .price span {
  color: #ff2626 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

/* GIÁ BÁN (không có khuyến mại — .price là phần tử duy nhất): ĐEN giống GIÁ GỐC */
.section-product .product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price:only-child span,
.section .product-card-slider .card-body .box-text .price-wrapper .wrapper-content .price:only-child span {
  color: #121212 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}
.product-card-slider .card-body .box-text .price-wrapper a {
  text-transform: uppercase;
  font-size: 13px;
  background: #ff2626;
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  line-height: 1.2;
  transition: background-color .2s ease;
}
.product-card-slider .card-body .box-text .price-wrapper a:hover {
  background: #000;
}

/* Responsive */
@media (max-width: 767px) {
  /* Card cho rộng tối đa, có max-width để không tràn quá rộng trên tablet portrait */
  .vehicle-list-grid .vlg-row { gap: 16px !important; }
  .vehicle-list-grid .product-card-slider { max-width: 100%; margin: 0 auto; }

  .product-card-slider .ap-title-info .ap-title a { font-size: 18px; }
  .product-card-slider .ap-title-info { min-height: 48px; }

  /* Mobile: infor-item 50% (2x2) — giữ layout giống desktop, gọn hơn 1-col stacked */
  .product-card-slider .card-body .box-text .title-wrapper .infor-item {
    width: 50%;
    height: auto;
    min-height: 56px;
    margin-top: 18px;
    gap: 8px;
  }
  .product-card-slider .card-body .box-text .title-wrapper .infor-item i { font-size: 18px; width: 24px; }
  .product-card-slider .card-body .box-text .title-wrapper .infor-item .infor h5 { font-size: 13px; }
  .product-card-slider .card-body .box-text .title-wrapper .infor-item .infor span { font-size: 12px; }

  /* Mobile: giá ở trên, nút full-width ở dưới.
     KHÔNG ép height fixed — để content (giá + nút) tự co dãn,
     bo padding 2 bên cho nút không dính mép card. */
  .product-card-slider .card-body .box-text .price-wrapper {
    flex-wrap: wrap;
    height: auto !important;
    min-height: 90px;
    padding: 12px 0 14px;
    gap: 10px;
    align-items: stretch;
  }
  .product-card-slider .card-body .box-text .price-wrapper .wrapper-content {
    width: 100%;
    text-align: center;
  }
  .product-card-slider .card-body .box-text .price-wrapper a {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 14px;
    /* "Xem chi tiết" trên 1 dòng — bỏ <br> visual bằng cách reset line-height */
    line-height: 1.2;
  }
  /* Nút có <br> giữa "Xem" và "chi tiết" — ẩn br trên mobile để gọn */
  .product-card-slider .card-body .box-text .price-wrapper a br { display: none; }
}

/* ================================================================
   PAGE VEHICLE LIST (phân loại xe theo category)
================================================================ */
.vehicle-list-banner {
  position: relative;
  background-color: #1a1a1a;    /* fallback nếu không có URLBannerLarge */
  color: #fff;
  padding: 60px 0 70px;
  overflow: hidden;
}
.vehicle-list-banner .vlb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.4) 100%);
  z-index: 1;
}
.vehicle-list-banner .vlb-inner { position: relative; z-index: 2; max-width: 1500px; }
.vehicle-list-banner .vlb-breadcrumb {
  font-size: 14px; color: #bbb; margin-bottom: 16px;
}
.vehicle-list-banner .vlb-breadcrumb a { color: #ddd; text-decoration: none; }
.vehicle-list-banner .vlb-breadcrumb a:hover { color: #ff2626; }
.vehicle-list-banner .vlb-breadcrumb span { margin: 0 6px; color: #777; }
.vehicle-list-banner .vlb-breadcrumb strong { color: #ff2626; }
.vehicle-list-banner .vlb-title {
  font-size: 42px; text-transform: uppercase; margin: 0 0 8px;
}
.vehicle-list-banner .vlb-meta { display: flex; align-items: baseline; gap: 6px; color: #bbb; }
.vehicle-list-banner .vlb-meta .vlb-count {
  color: #ff2626; font-size: 22px; font-weight: 700;
}
.vehicle-list-banner .vlb-meta .vlb-count-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

.vehicle-list-grid { padding: 40px 0 60px; }
.vehicle-list-grid .container-fluid { max-width: 1500px; }
.vehicle-list-grid .vlg-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vehicle-list-grid .vlg-col { min-width: 0; }
.vehicle-list-grid .vlg-empty {
  text-align: center; padding: 60px 20px; color: #888; font-size: 16px;
}

/* Responsive */
@media (max-width: 1199px) {
  .vehicle-list-grid .vlg-row { grid-template-columns: repeat(2, 1fr); }
  .vehicle-list-banner .vlb-title { font-size: 32px; }
}
@media (max-width: 767px) {
  .vehicle-list-grid .vlg-row { grid-template-columns: 1fr; }
  .vehicle-list-banner { padding: 24px 0 30px; }
  .vehicle-list-banner .vlb-title { font-size: 24px; }
  .vehicle-list-banner .vlb-meta .vlb-count { font-size: 18px; }
}

/* ================================================================
   PAGE VEHICLE DETAIL
================================================================ */
.vehicle-detail { padding: 30px 0 60px; }
.vehicle-detail .container-fluid { max-width: 1500px; }
.vehicle-detail .vd-breadcrumb {
  font-size: 14px; color: #777; margin-bottom: 16px;
}
.vehicle-detail .vd-breadcrumb a { color: #555; text-decoration: none; }
.vehicle-detail .vd-breadcrumb a:hover { color: #ff2626; }
.vehicle-detail .vd-breadcrumb span { margin: 0 6px; color: #ccc; }
.vehicle-detail .vd-breadcrumb strong { color: #ff2626; }

.vehicle-detail .vd-title {
  font-size: 36px; color: #121212;
  text-transform: uppercase; margin: 8px 0 24px;
}

.vehicle-detail .vd-main { gap: 24px; margin: 0; }
.vehicle-detail .vd-gallery .vd-main-image {
  background: #fafafa; border: 1px solid #eee; padding: 20px;
  text-align: center; margin-bottom: 12px;
}
.vehicle-detail .vd-gallery .vd-main-image img {
  max-width: 100%; max-height: 480px; object-fit: contain;
}
.vehicle-detail .vd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.vehicle-detail .vd-thumbs .vd-thumb {
  display: block; width: 90px; height: 70px; overflow: hidden;
  border: 2px solid #eee; cursor: pointer; transition: border-color .2s;
}
.vehicle-detail .vd-thumbs .vd-thumb:hover,
.vehicle-detail .vd-thumbs .vd-thumb.active { border-color: #ff2626; }
.vehicle-detail .vd-thumbs .vd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.vehicle-detail .vd-colors {
  display: flex; gap: 10px; align-items: center; margin-top: 16px;
}
.vehicle-detail .vd-colors .vd-colors-label { font-size: 14px; color: #555; margin-right: 4px; }
.vehicle-detail .vd-colors .vd-color-swatch {
  display: inline-block; width: 26px; height: 26px;
  border: 1px solid #ccc; border-radius: 50%;
  cursor: pointer; transition: transform .2s;
}
.vehicle-detail .vd-colors .vd-color-swatch:hover { transform: scale(1.15); }
.vehicle-detail .vd-colors .vd-color-swatch.active {
  box-shadow: 0 0 0 2px #ff2626;
  transform: scale(1.1);
}

.vehicle-detail .vd-sidebar .vd-price-box {
  background: #fafafa; border: 1px solid #eee; padding: 20px;
  margin-bottom: 24px;
}
.vehicle-detail .vd-price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.vehicle-detail .vd-price-line label {
  text-transform: uppercase; font-size: 12px; color: #b1b1b1;
  min-width: 70px; margin: 0;
}
.vehicle-detail .vd-price-original {
  color: rgba(255,38,38,.76); text-decoration: line-through; font-size: 16px;
}
.vehicle-detail .vd-price-final { color: #121212; font-size: 28px; }
.vehicle-detail .vd-btn-contact {
  display: block; margin-top: 16px;
  background: #ff2626; color: #fff; text-decoration: none;
  text-align: center; padding: 14px 20px;
  text-transform: uppercase; font-size: 15px;
  transition: background .2s;
}
.vehicle-detail .vd-btn-contact:hover { background: #000; color: #fff; }

.vehicle-detail .vd-specs { background: #fff; }
.vehicle-detail .vd-specs-title {
  font-size: 20px; color: #121212; text-transform: uppercase;
  border-bottom: 2px solid #ff2626; padding-bottom: 8px; margin-bottom: 12px;
}
.vehicle-detail .vd-specs-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0;
}
.vehicle-detail .vd-specs-list dt {
  font-weight: 500; color: #555; font-size: 14px;
  border-bottom: 1px dashed #eee; padding: 6px 0;
}
.vehicle-detail .vd-specs-list dd {
  color: #121212; font-size: 14px; font-weight: 600;
  border-bottom: 1px dashed #eee; padding: 6px 0; margin: 0;
}

.vehicle-detail .vd-tabs .nav-tabs { border-bottom: 2px solid #eee; }
.vehicle-detail .vd-tabs .nav-tabs .nav-link {
  border: none; color: #555; text-transform: uppercase; font-weight: 500;
  padding: 12px 24px; border-bottom: 3px solid transparent;
}
.vehicle-detail .vd-tabs .nav-tabs .nav-link.active {
  color: #ff2626; border-bottom-color: #ff2626; background: transparent;
}
.vehicle-detail .vd-tab-content { padding: 24px 0; }
.vehicle-detail .vd-tab-content h3 { margin-bottom: 12px; color: #121212; }
.vehicle-detail .vd-tab-content ul { padding-left: 20px; }
.vehicle-detail .vd-tab-content li { margin-bottom: 6px; color: #555; }

.vehicle-detail .vd-specs-table { width: 100%; border-collapse: collapse; }
.vehicle-detail .vd-specs-table th,
.vehicle-detail .vd-specs-table td {
  padding: 10px 14px; border-bottom: 1px solid #eee; vertical-align: top;
}
.vehicle-detail .vd-specs-table th {
  text-align: left; width: 280px; color: #555; font-weight: 500; background: #fafafa;
}
.vehicle-detail .vd-specs-table td { color: #121212; font-weight: 500; }

/* Mobile responsive */
@media (max-width: 991px) {
  .vehicle-detail .container-fluid { padding-left: 12px; padding-right: 12px; }

  /* Force stack 2 cột (gallery + sidebar) thành 1 cột — override template col-5 */
  .vehicle-detail .vd-main {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    margin: 0 !important;
  }
  .vehicle-detail .vd-main > .col,
  .vehicle-detail .vd-main > .col-5,
  .vehicle-detail .vd-main > div {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .vehicle-detail .vd-title { font-size: 22px; line-height: 1.3; }
  .vehicle-detail .vd-breadcrumb { font-size: 13px; }

  /* Gallery: ảnh chính full width, max-height giảm */
  .vehicle-detail .vd-gallery .vd-main-image { padding: 14px; }
  .vehicle-detail .vd-gallery .vd-main-image img { max-height: 320px; }
  .vehicle-detail .vd-thumbs .vd-thumb { width: 70px; height: 56px; }

  /* Giá: layout dọc tránh chữ "GIÁ TỪ:" đè giá */
  .vehicle-detail .vd-price-line { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 12px; }
  .vehicle-detail .vd-price-line label { min-width: 0; }
  .vehicle-detail .vd-price-final { font-size: 24px; }

  /* Specs: 1 cột + table dạng dọc */
  .vehicle-detail .vd-specs-list { grid-template-columns: 1fr; }
  .vehicle-detail .vd-specs-title { font-size: 18px; }
  .vehicle-detail .vd-specs-table th { width: 45%; padding: 8px 10px; font-size: 13px; }
  .vehicle-detail .vd-specs-table td { padding: 8px 10px; font-size: 13px; }

  /* Tabs: nav-link gọn */
  .vehicle-detail .vd-tabs .nav-tabs .nav-link { padding: 10px 14px; font-size: 13px; }
}

/* Mobile rất nhỏ */
@media (max-width: 480px) {
  .vehicle-detail .vd-gallery .vd-main-image img { max-height: 260px; }
  .vehicle-detail .vd-thumbs .vd-thumb { width: 60px; height: 48px; }
}

.vehicle-detail-empty { background: #fafafa; }

/* ================================================================
   SECTION TYPE-PRODUCT — animation hover (giống autobike-light)
================================================================ */
.section-type-product .bike-model .row .col {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.section-type-product .bike-model .row .col .model-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.section-type-product .bike-model .row .col .model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.6,.2,1), filter .4s ease;
}
/* Overlay tối nhẹ luôn-luôn trên ảnh để text bottom dễ đọc */
.section-type-product .bike-model .row .col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 100%);
  z-index: 1;
  pointer-events: none;
  transition: background .4s ease;
}
/* Hover effect: zoom ảnh + darken overlay */
.section-type-product .bike-model .row .col:hover .model-image img {
  transform: scale(1.08);
  filter: brightness(.9);
}
.section-type-product .bike-model .row .col:hover::before {
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.75) 100%);
}
/* Text title-group fade-up on hover */
.section-type-product .bike-model .row .col .model-title-group {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  transform: translateY(0);
  transition: transform .4s ease;
}
.section-type-product .bike-model .row .col:hover .model-title-group {
  transform: translateY(-6px);
}
.section-type-product .bike-model .row .col .model-title-group .model-title {
  transition: color .3s ease, letter-spacing .3s ease;
}
.section-type-product .bike-model .row .col:hover .model-title-group .model-title {
  color: #ff2626;
  letter-spacing: 2px;
}

/* ===== Section type-product: chỉnh lại height & fix overflow trên desktop ===== */
.section-type-product .bike-model .row {
  margin: 0 !important;
  width: 100% !important;
  overflow: hidden;          /* phòng overflow ngang gây cắt card cuối */
  gap: 8px;
  display: flex;
  flex-wrap: nowrap;
}
.section-type-product .bike-model .row .col {
  flex: 1 1 0;
  min-width: 0;              /* cho phép col co theo không gian */
  height: 480px !important;
  max-height: 480px !important;
  padding: 0 !important;
}
.section-type-product .bike-model .row .col .model-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Title overlay: căn giữa horizontal, padding hợp lý */
.section-type-product .bike-model .row .col .model-title-group {
  align-items: center !important;
  text-align: center;
  padding: 24px !important;
  height: 100px !important;
  background-color: rgba(0,0,0,0.65) !important;
}
.section-type-product .bike-model .row .col .model-title-group .model-title {
  font-size: 26px !important;
  margin: 0 !important;
}
.section-type-product .bike-model .row .col .model-title-group .model-product {
  font-size: 13px !important;
  margin: 4px 0 0 !important;
  letter-spacing: 1px;
}

/* ================================================================
   FOOTER (redesign 4-col layout)
   col-3 logo | col-3 contact | col-2 menu (Xe máy + Tin tức) | col-4 stores
================================================================ */
footer { background-color: #000 !important; padding: 50px 40px; }
footer .container-fluid { padding: 0; max-width: 1500px; }
footer .footer-header-row,
footer .footer-content-row,
footer .footer-row { margin: 0; }
footer .footer-col { padding: 0 12px; }
footer .footer-header-row { margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ----- COL 1: LOGO + SLOGAN — match đúng hoaiminh.vn ----- */
footer .container-fluid .row .footer-col-logo {
  text-transform: uppercase;
}
footer .container-fluid .row .footer-col-logo .image-logo {
  display: flex !important;
  gap: 30px !important;
  align-items: center !important;
}
footer .container-fluid .row .footer-col-logo .image-logo .img img {
  width: 150px !important;
  height: auto !important;
}
footer .container-fluid .row .footer-col-logo .image-logo .name {
  display: flex !important;
  flex-direction: column !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
}
footer .container-fluid .row .footer-col-logo .image-logo .name .name-title {
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
}
footer .container-fluid .row .footer-col-logo .image-logo .name .name-slogan {
  color: #ff2626 !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
}

/* ----- COL 2: CONTACT — match font 16px / gap 24px / social 48px ----- */
footer .container-fluid .row .footer-col-contact .contact-content {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}
footer .container-fluid .row .footer-col-contact .content-item {
  display: flex !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
}
footer .container-fluid .row .footer-col-contact .content-item i {
  color: #b1b1b1 !important;
  font-size: 16px !important;
  width: 20px !important;
  text-align: center;
  margin-right: 15px !important;
  margin-top: 4px;
  flex-shrink: 0;
}
footer .container-fluid .row .footer-col-contact .content-item span {
  color: #b1b1b1 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  flex: 1 1 auto;
  word-break: break-word;
}
footer .container-fluid .row .footer-col-contact .content-item.social-item {
  gap: 0 !important;
  margin-top: 6px !important;
}
footer .container-fluid .row .footer-col-contact .content-item.social-item a {
  width: 48px !important;
  height: 48px !important;
  border: 1px solid #b1b1b1 !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  color: #b1b1b1 !important;
  text-decoration: none !important;
  margin-right: 12px !important;
  transition: color .2s ease, border-color .2s ease;
}
footer .container-fluid .row .footer-col-contact .content-item.social-item a:last-child {
  margin-right: 0 !important;
}
footer .container-fluid .row .footer-col-contact .content-item.social-item a i {
  font-size: 16px !important;
  margin: 0 !important;
}
footer .footer-col-contact .content-item.social-item .content-facebook:hover { color: #1877f2; border-color: #1877f2; }
footer .footer-col-contact .content-item.social-item .content-tiktok:hover { color: #fff; border-color: #fff; }
footer .footer-col-contact .content-item.social-item .content-youtube:hover { color: #ff2626; border-color: #ff2626; }

/* ----- COL 3: MENU (Xe máy + Tin tức) — title 20px, item 16px, group 20px gap ----- */
footer .container-fluid .row .footer-col-menu .title {
  color: #fff !important;
  font-size: 20px !important;
  margin: 0 0 8px 0 !important;
  text-transform: capitalize !important;
  padding: 0 !important;
}
footer .container-fluid .row .footer-col-menu .title.mt-4 { margin-top: 20px !important; }
footer .container-fluid .row .footer-col-menu .col-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
footer .container-fluid .row .footer-col-menu .col-menu .menu-item {
  margin: 5px 0 0 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: 1.4 !important;
}
footer .container-fluid .row .footer-col-menu .col-menu .menu-item a {
  color: #b1b1b1 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  transition: color .2s ease;
}
footer .container-fluid .row .footer-col-menu .col-menu .menu-item a:hover { color: #fff !important; }

/* ----- COL 4: CỬA HÀNG (TradeName 185px + Address) ----- */
footer .container-fluid .row .footer-col-stores .title {
  color: #fff !important;
  font-size: 20px !important;
  margin: 0 0 14px 0 !important;
  text-transform: capitalize !important;
  padding: 0 !important;
}
footer .container-fluid .row .footer-col-stores .col-stores {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
footer .container-fluid .row .footer-col-stores .store-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}
footer .container-fluid .row .footer-col-stores .store-item .store-name {
  flex: 0 0 185px;
  min-width: 185px;
  width: 185px;
  color: #b1b1b1 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  line-height: 1.4;
  transition: color .2s ease;
}
/* Hover chỉ đổi màu chữ — giống menu "Xe máy". KHÔNG có background highlight. */
footer .container-fluid .row .footer-col-stores .store-item,
footer .container-fluid .row .footer-col-stores .store-item:hover,
footer .container-fluid .row .footer-col-stores .store-item:focus,
footer .container-fluid .row .footer-col-stores .store-item.active {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
footer .container-fluid .row .footer-col-stores .store-item .store-name,
footer .container-fluid .row .footer-col-stores .store-item .store-name:hover,
footer .container-fluid .row .footer-col-stores .store-item .store-name:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
footer .container-fluid .row .footer-col-stores .store-item .store-name,
footer .container-fluid .row .footer-col-stores .store-item .store-address {
  background: transparent !important;
  transition: color .2s ease;
}
footer .container-fluid .row .footer-col-stores .store-item:hover .store-name,
footer .container-fluid .row .footer-col-stores .store-item:hover .store-address,
footer .container-fluid .row .footer-col-stores .store-item .store-name:hover {
  color: #fff !important;
  background: transparent !important;
}
footer .container-fluid .row .footer-col-stores .store-item .store-address {
  flex: 1 1 auto;
  color: #b1b1b1 !important;
  font-size: 16px !important;
  line-height: 1.4;
  word-break: break-word;
}

/* ----- Responsive footer cho thiết kế mới ----- */
@media (max-width: 1199px) {
  footer { padding: 40px 20px; }
  footer .footer-col { padding: 0 12px; }
  footer .footer-col-logo .image-logo .name .name-title { font-size: 18px; }
  footer .footer-col-logo .image-logo .name .name-slogan { font-size: 14px; }
  footer .footer-col-stores .store-item .store-name { flex: 0 0 150px; font-size: 14px; }
  footer .footer-col-stores .store-item .store-address { font-size: 13px; }
}
@media (max-width: 991px) {
  /* Tablet: 2x2 — logo+contact trên, menu+stores dưới */
  footer .footer-row > .footer-col {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin-bottom: 30px;
  }
}
@media (max-width: 767px) {
  footer { padding: 30px 15px !important; }
  footer .footer-row { flex-direction: column !important; }
  footer .footer-row > .footer-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin-bottom: 25px;
  }
  footer .footer-col-logo .image-logo {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  footer .footer-col-logo .image-logo .img img { width: 90px; }
  footer .footer-col-logo .image-logo .name .name-title { font-size: 18px; }
  footer .footer-col-logo .image-logo .name .name-slogan { font-size: 14px; }
  footer .footer-col-stores .store-item {
    flex-direction: column;
    gap: 4px;
  }
  footer .footer-col-stores .store-item .store-name { flex: none; }
}

/* ================================================================
   END FOOTER REDESIGN
================================================================ */

/* ===== (Cũ) Footer rule cho col-4 và col-5 — KEEP để tương thích nếu còn dùng ===== */
footer .container-fluid .row .col-4,
footer .container-fluid .row .col-5 {
  margin-top: 30px;
}
footer .container-fluid .row .col-4 .col-contact .contact-content,
footer .container-fluid .row .col-5 .col-contact .contact-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .container-fluid .row .col-4 .col-contact .contact-content .content-item,
footer .container-fluid .row .col-5 .col-contact .contact-content .content-item {
  display: flex;
  align-items: flex-start;
}
footer .container-fluid .row .col-4 .col-contact .contact-content .content-item i,
footer .container-fluid .row .col-5 .col-contact .contact-content .content-item i {
  margin-right: 14px;
  color: #b1b1b1;
  font-size: 16px;
  margin-top: 4px;
}
footer .container-fluid .row .col-4 .col-contact .contact-content .content-item span,
footer .container-fluid .row .col-5 .col-contact .contact-content .content-item span {
  color: #b1b1b1;
  font-size: 15px;
  line-height: 1.5;
  flex: 1 1 auto;
  word-break: break-word;
}
footer .container-fluid .row .col-4 .col-menu .menu-item a,
footer .container-fluid .row .col-5 .col-menu .menu-item a {
  flex: 1 1 auto;
  word-break: break-word;
}
footer .container-fluid .row .col-4 .col-menu .menu-item,
footer .container-fluid .row .col-5 .col-menu .menu-item {
  width: 100%;
}
footer .container-fluid .row .col-4 .col-contact .contact-content .content-item a,
footer .container-fluid .row .col-5 .col-contact .contact-content .content-item a {
  height: 42px; width: 42px;
  border: 1px solid #b1b1b1; border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  text-decoration: none; margin-right: 12px;
  color: #b1b1b1;
}
footer .container-fluid .row .col-4 .title,
footer .container-fluid .row .col-5 .title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 15px;
}
footer .container-fluid .row .col-3 .col-menu,
footer .container-fluid .row .col-4 .col-menu,
footer .container-fluid .row .col-5 .col-menu {
  padding: 0 !important;       /* override style.css padding-left: 35px */
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;                   /* đồng nhất với .contact-content */
}
footer .container-fluid .row .col-3 .col-menu .menu-item,
footer .container-fluid .row .col-4 .col-menu .menu-item,
footer .container-fluid .row .col-5 .col-menu .menu-item {
  display: flex;
  align-items: center;
  margin: 0 !important;        /* override style.css nth-child(2) margin-top: 20px */
  line-height: 1.4;
}
footer .container-fluid .row .col-3 .col-menu .menu-item i,
footer .container-fluid .row .col-4 .col-menu .menu-item i,
footer .container-fluid .row .col-5 .col-menu .menu-item i {
  color: #b1b1b1;
  margin-right: 14px;          /* đồng nhất với .content-item i */
  font-size: 16px;             /* đồng nhất với .content-item i */
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
footer .container-fluid .row .col-3 .col-menu .menu-item a,
footer .container-fluid .row .col-4 .col-menu .menu-item a,
footer .container-fluid .row .col-5 .col-menu .menu-item a {
  flex: 1 1 auto;
  word-break: break-word;
  font-size: 16px;
  color: #b1b1b1;
  text-decoration: none;
}
footer .container-fluid .row .col-3 .col-menu .menu-item a:hover,
footer .container-fluid .row .col-4 .col-menu .menu-item a:hover,
footer .container-fluid .row .col-5 .col-menu .menu-item a:hover {
  color: #fff;
}
footer .container-fluid .row .col-3 .title,
footer .container-fluid .row .col-4 .title,
footer .container-fluid .row .col-5 .title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
}
footer .container-fluid .row .col-4 .col-menu .menu-item a,
footer .container-fluid .row .col-5 .col-menu .menu-item a {
  font-size: 16px; color: #b1b1b1; text-decoration: none;
}
footer .container-fluid .row .col-4 .col-menu .menu-item a:hover,
footer .container-fluid .row .col-5 .col-menu .menu-item a:hover { color: #fff; }
footer .container-fluid .row .col-5 .col-location .menu-item a {
  min-width: 130px;
  font-weight: 600;
}
footer .container-fluid .row .col-5 .col-location .menu-item span {
  color: #b1b1b1; font-size: 14px;
  flex: 1 1 auto;
}

.container-fluid {
  padding-left: 50px !important;
  padding-right: 50px !important;
}

.mt-10 {
  margin-top: 3em !important;
}

.section .section-title-container {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.section .section-title-container .section-title {
  position: relative;
  width: 100%;
}

.section .section-title-container .section-title div {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.section .section-title-container .section-title div a {
  background-color: #02010100;
  fill: #121212;
  color: #121212;
  border-style: solid;
  border-width: 0px 0px 2px 0px;
  border-color: #02010100;
  padding: 0px 0px 5px 0px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0px 0px 0px 0px;
  padding: 21px 35px 21px 35px;
  box-shadow: none;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px !important;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.section .section-title-container .section-title div a:hover {
  border-color: #ff2626;
}

.section .section-title-container .section-title div a i {
  font-size: 14px;
}

.section .section-title-container .section-title div a span {
  font-size: 16px;
}

.section .section-title-container .section-title b {
  display: block;
  background-color: currentColor;
  height: 2px;
  opacity: 0.1;
  width: 100%;
}

.section .section-title-container .section-title .section-title-main {
  margin-right: 15px;
  text-transform: none;
  font-size: 40px;
  line-height: 1.2em;
  color: #121212;
}
