.header-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    font-family: Arial, sans-serif;
    z-index: 9999;
}

body {
    padding-top: 116px;
}

/* Layout không gồm .header-v2 cố định — tránh khoảng trống 116px/140px */
body.account-no-site-header {
    padding-top: 0 !important;
}

.header-v2 .container-fluid {
    padding-left: 24px;
    padding-right: 24px;
}

.header-top {
    padding: 12px 0 12px;
    border-bottom: 1px solid #f2f2f2;
}

.header-top-inner,
.header-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    max-height: 42px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.header-link {
    color: #222;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.header-link:hover {
    color: #ff0800;
    text-decoration: none;
}

.delivery-link span {
    color: #666;
}

.delivery-link strong {
    color: #111;
    font-weight: 600;
}

.icon-cart {
    height: 20px;
    width: auto;
}

.cart-badge {
    color: #ff0800;
    font-weight: 700;
    margin-left: 2px;
}

.btn-create-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    border-radius: 22px;
    background: #ff0800;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-create-account:hover {
    color: #fff;
    background: #e83600;
    text-decoration: none;
}

.header-bottom {
    padding: 12px 0;
}

.header-nav-left,
.header-nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-nav-left a,
.header-nav-right a {
    color: #222;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.header-nav-left a:hover,
.header-nav-right a:hover {
    color: #ff0800;
    text-decoration: none;
}

.btn-menu-link {
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #222;
    font-size: 14px;
    cursor: pointer;
}

.btn-menu-link img {
    height: 16px;
    width: auto;
}

@media (max-width: 991px) {
    body {
        padding-top: 140px;
    }

    body.account-no-site-header {
        padding-top: 0 !important;
    }

    .header-top-inner,
    .header-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-right,
    .header-nav-left,
    .header-nav-right {
        gap: 16px;
        flex-wrap: wrap;
    }

    .btn-create-account {
        height: 36px;
        padding: 0 18px;
    }
}

/* @media (max-width: 768px) {
    .header-logo img {
        max-height: 28px;
    }
    .mainsearch__form.fixed #key_search {
        height: 35px;
        margin-top: -13px;
    }
} */

@media (max-width: 991px) {

  .mainsearch__button {
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 16px;
    margin-top: 12px;
  }
}

.mainsearch__form.fixed {
    border: 1px solid #dc3545;
}

/* ===== Shared header search (copy from home, adapted for header) ===== */
.header-v2 .mainsearch__form.fixed {
  position: relative;
  background: #fff;
  border: 1px solid #ff0800;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 8px 148px 8px 16px;
  width: 50%;
  min-width: 420px;
  max-width: 760px;
  height: auto !important;
  min-height: 0 !important;
  z-index: 200;
}

/* Prevent homepage scroll styles (home_index.css) from breaking header search */
.header-v2 .mainsearch__form,
.header-v2 .mainsearch__form.fixed {
  height: auto !important;
  max-height: 45px !important;
  min-height: 0 !important;
}

body.search-scrolled .header-v2 .mainsearch__form,
body.search-scrolled .header-v2 .mainsearch__form.fixed {
  padding: 8px 148px 8px 16px !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 18px !important;
}

body.search-scrolled .header-v2 .mainsearch__form .form-control,
body.search-scrolled .header-v2 .mainsearch__form.fixed .form-control {
  font-size: 16px !important;
  height: 42px !important;
}

@media (max-width: 991px) {
  body.search-scrolled .header-v2 .mainsearch__form.fixed {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 14px !important;
  }
}

.header-v2 .mainsearch__row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: -1px;
}

.header-v2 .mainsearch__field {
  flex: 1;
  min-width: 0;
}

.header-v2 .mainsearch__form.fixed .form-control {
  border: 0;
  box-shadow: none;
  font-size: 16px;
  color: #222;
  height: 30px;
  padding: 0;
  background: transparent;
}

.header-v2 .mainsearch__form.fixed .form-control:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

.header-v2 .mainsearch__form.fixed .form-control::placeholder {
  color: #777;
}

.header-v2 .mainsearch__extras {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  gap: 0;
}

.header-v2 .mainsearch__image {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  width: 30px;
  height: 28px;
  border-radius: 12px;
  justify-content: center;
}

.header-v2 .mainsearch__image:hover {
  color: #ff0800;
  text-decoration: none;
  background: #fff5f4;
}

.header-v2 .mainsearch__image-icon svg {
  width: 30px;
  height: 30px;
  fill: #333;
}

.header-v2 .mainsearch__image:hover .mainsearch__image-icon svg {
  fill: #ff0800;
}

.header-v2 .mainsearch__button {
  position: absolute;
  right: 2px;
  top: 49%;
  transform: translateY(-50%);
  min-width: 135px;
  height: 38px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #e76851 0%, #ff0800 100%);
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}


.header-v2 .mainsearch__button:hover {
  color: #fff;
  opacity: .95;
}

.header-v2 .mainsearch__button:focus {
  box-shadow: none;
  outline: none;
}

/* Trang trung tâm trợ giúp: /helpcenter/ (body.page-helpcenter) */
.page-helpcenter .header-v2 .mainsearch__button {
  right: -2px;
  top: 43%;
}

/* Detail product page only */
.page-detail .header-v2 .mainsearch__button_detail {
  top: 48%;
  right: 2px;
  min-width: 138px;
}

/* Suggest dropdown placement inside header */
.header-v2 .mainsearch__form.fixed .suggest {
  top: calc(100% + 8px);
}

.header-v2 .mainsearch__form.fixed #suggest {
  z-index: 10000;
  top: calc(100% + 8px) !important;
  left: 0;
  right: 0;
  width: 100%;
  border-top: 0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* Large suggestion panel like homepage screenshot */
.header-v2 .mainsearch__form.fixed #suggest.show {
  position: fixed;
  top: 59px !important;
  left: 36% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: 760px;
  max-width: calc(100vw - 48px);
  height: auto;
  max-height: 550px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 22px;
  border-top: 0;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

@media (max-width: 991px) {
  .header-v2 .mainsearch__form.fixed #suggest.show {
    top: 140px !important;
    max-height: calc(100vh - 150px);
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
}

/* Image search panel */
.header-v2 .image-search-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  max-width: 1050px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 16px;
  z-index: 10000;
}

.header-v2 .image-search-panel.active {
  display: block;
}

.header-v2 .image-search-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin-bottom: 14px;
}

.header-v2 .image-search-close {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 36px;
  line-height: 1;
  color: #555;
  cursor: pointer;
}

.header-v2 .image-search-dropzone {
  border: 2px dashed #d8d8d8;
  border-radius: 12px;
  min-height: 260px;
  padding: 28px 20px;
  text-align: center;
  background: #fafafa;
  transition: border-color .2s ease, background .2s ease;
}

.header-v2 .image-search-dropzone.dragover {
  border-color: #ff0800;
  background: #fff6ef;
}

.header-v2 .image-search-upload-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
}

.header-v2 .image-search-upload-icon svg {
  width: 54px;
  height: 54px;
  fill: #4b4b4b;
}

.header-v2 .image-search-dropzone p {
  margin: 6px 0;
  font-size: 15px;
  color: #444;
}

.header-v2 .image-search-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0800 0%, #ff5a36 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}

.header-v2 .image-search-preview {
  margin-top: 18px;
}

.header-v2 .image-search-preview img {
  max-width: 220px;
  max-height: 220px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.header-v2 .image-search-footer {
  margin-top: 12px;
  background: linear-gradient(90deg, #f7eee8 0%, #f3f3f3 100%);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
}

@media (max-width: 991px) {
  .header-v2 .mainsearch__form.fixed {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px;
  }

  .header-v2 .mainsearch__extras {
    flex-direction: column;
    align-items: stretch;
  }

  .header-v2 .mainsearch__button {
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 16px;
    margin-top: 12px;
  }
}

@media (max-width: 576px) {
  .header-v2 .mainsearch__form.fixed .form-control {
    height: 36px !important;
    font-size: 14px;
  }

  .header-v2 .mainsearch__extras {
    margin-top: 6px;
  }

  .header-v2 .mainsearch__image {
    font-size: 14px;
  }

  .header-v2 .image-search-dropzone {
    min-height: 220px;
    padding: 20px 12px;
  }
}


/* Desktop: mở menu khi hover hoặc focus (Tab); padding-top trên .header-account-menu nối vùng hover tới nút */
@media (hover: hover) and (pointer: fine) {
  .header-account:hover .header-account-menu,
  .header-account:focus-within .header-account-menu {
    display: block !important;
  }
}

.header-bottom {
  position: relative;
  z-index: 100;
}

.header-bottom-inner {
  position: relative;
}

.header-nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav-left > a,
.header-mega-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  color: #222;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}

.header-nav-left > a:hover,
.header-mega-link:hover {
  color: #222;
  text-decoration: none;
}

.header-mega-item {
  position: relative;
  display: flex;
  align-items: center;
}

.header-mega-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #222;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.header-mega-item:hover .header-mega-link::after {
  transform: scaleX(1);
}

/* .supplier-mega-panel {
  position: absolute;
  left: -140px;
  top: calc(100% + 14px);
  width: 1520px;
  background: #f3f3f3;
  padding: 24px 0 36px;
  display: none;
  z-index: 999;
} */

/* .header-mega-item:hover .supplier-mega-panel {
  display: block;
} */

/* .supplier-mega-inner {
  width: 1520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: stretch;
} */

.supplier-mega-banner {
  min-height: 298px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(90deg, #b8d5ee 0%, #86b1db 55%, #6f9ecf 100%);
  display: grid;
  grid-template-columns: 460px 1fr;
  text-decoration: none;
}

.supplier-mega-banner:hover {
  text-decoration: none;
}

.supplier-mega-banner-left {
  padding: 30px 28px;
  color: #0b3d78;
}

.supplier-mega-banner-left h3 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: #0b3d78;
}

.supplier-mega-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
}

.supplier-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.supplier-stat strong {
  font-size: 20px;
  line-height: 1;
  color: #0b3d78;
  font-weight: 700;
}

.supplier-stat span {
  font-size: 14px;
  line-height: 1.35;
  color: #0b3d78;
}

.supplier-mega-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0b4a92;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.supplier-mega-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 298px;
}

.supplier-card {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,.18);
}

.supplier-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.supplier-card:hover img {
  transform: scale(1.03);
}

.supplier-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  z-index: 2;
}

.supplier-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,42,92,.55), rgba(0,0,0,0) 45%);
}

.supplier-mega-side {
  background: #ececec;
  border-radius: 16px;
  padding: 22px 20px;
}

.supplier-mega-side h4 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
}

.supplier-mega-side a {
  display: block;
  color: #222;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  padding: 10px 0;
}

.supplier-mega-side a:hover {
  color: #000;
  text-decoration: underline;
}

.supplier-card:nth-child(1) {
  background: linear-gradient(180deg, #7fb0e0 0%, #0d4d94 100%);
}
.supplier-card:nth-child(2) {
  background: linear-gradient(180deg, #9fc2e4 0%, #0d4d94 100%);
}
.supplier-card:nth-child(3) {
  background: linear-gradient(180deg, #88aed8 0%, #0d4d94 100%);
}
.supplier-card img {
  display: none;
}

/* .header-mega-item::before {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  top: 100%;
  height: 18px;
} */

.supplier-card:nth-child(1) {
  background: linear-gradient(180deg, #7fb0e0 0%, #0d4d94 100%);
}
.supplier-card:nth-child(2) {
  background: linear-gradient(180deg, #9fc2e4 0%, #0d4d94 100%);
}
.supplier-card:nth-child(3) {
  background: linear-gradient(180deg, #88aed8 0%, #0d4d94 100%);
}
.supplier-card img {
  display: none;
}

.supplier-card {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,.18);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.supplier-card:nth-child(1) {
  background-image:
    linear-gradient(to top, rgba(0,42,92,.68), rgba(0,0,0,0) 45%),
    url('/site/main/webroot/images/factory-search.jpg');
}

.supplier-card:nth-child(2) {
  background-image:
    linear-gradient(to top, rgba(0,42,92,.68), rgba(0,0,0,0) 45%),
    url('/site/main/webroot/images/factory-ranking.jpg');
}

.supplier-card:nth-child(3) {
  background-image:
    linear-gradient(to top, rgba(0,42,92,.68), rgba(0,0,0,0) 45%),
    url('/site/main/webroot/images/factory-samples.jpg');
}
.supplier-card img {
  display: none;
}

/* .supplier-mega-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 1px);
  width: 100vw;
  background: #f3f3f3;
  padding: 16px 0 22px;
  display: none;
  z-index: 999;
} */

/* .supplier-mega-inner {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  box-sizing: border-box;
} */

.header-account {
  position: relative;
  display: flex;
  align-items: center;
}

.header-account-trigger {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.header-account-trigger:hover {
  background: #f3f3f3;
}

.header-account-trigger svg {
  width: 22px;
  height: 22px;
  fill: #222;
  display: block;
}

.header-account-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  padding-top: 10px;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: none;
  z-index: 10001;
}

.header-account-menu.active {
  display: block;
}

.header-account-menu-inner {
  padding: 18px 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.header-account-user {
  padding: 0 20px 16px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid #ececec;
  margin-bottom: 8px;
}

.header-account-menu a {
  display: block;
  padding: 10px 20px;
  color: #222;
  text-decoration: none;
  font-size: 15px;
}

.header-account-menu a:hover {
  background: #f7f7f7;
  text-decoration: none;
  color: #111;
}

.menu-divider {
  height: 1px;
  background: #ececec;
  margin: 8px 0;
}


.supplier-mega-panel {
  position: fixed;
  top: 116px; /* đúng bằng tổng chiều cao header */
  left: 0;
  width: 100%;
  background: #fff;
  padding: 22px 0 26px;
  display: none;
  z-index: 99999999;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.header-mega-item:hover .supplier-mega-panel {
  display: block;
}

.supplier-mega-inner {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 24px; /* cách đều 2 bên */
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.header-v2 .container-fluid {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.header-v2 .container-fluid {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.header-mega-item {
  position: static;
}

.supplier-mega-panel {
  position: fixed;
  top: 116px;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 22px 0 26px;
  display: none;
  z-index: 9998;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.header-mega-item:hover .supplier-mega-panel {
  display: block;
}

.supplier-mega-inner {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.supplier-mega-banner {
  min-height: 298px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(90deg, #b8d5ee 0%, #86b1db 55%, #6f9ecf 100%);
  display: grid;
  grid-template-columns: 460px 1fr;
  text-decoration: none;
}

.supplier-mega-side {
  background: #f3f3f3;
  border-radius: 16px;
  padding: 22px 20px;
}

.header-mega-item {
  position: relative;
}

.supplier-mega-panel {
  display: none;
}

.header-mega-item:hover .supplier-mega-panel {
  display: block;
}

.header-mega-item {
  position: relative;
}

.supplier-mega-panel {
  position: fixed;
  top: 116px;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 22px 0 26px;
  display: none;
  z-index: 9998;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.header-mega-item:hover .supplier-mega-panel {
  display: block;
}


.tradeassurance-mega {
  position: static;
}

.tradeassurance-panel {
  position: fixed;
  top: 116px;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 40px 0 34px;
  display: none;
  z-index: 9998;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.tradeassurance-inner {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.tradeassurance-main {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 720px;
  gap: 36px;
  align-items: center;
}

.tradeassurance-left {
  max-width: 560px;
}

.tradeassurance-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #222;
  font-size: 22px;
  font-weight: 700;
}

.tradeassurance-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffb700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.tradeassurance-left h3 {
  margin: 0 0 28px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  max-width: 520px;
}

.tradeassurance-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 182px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: #ff6a00;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.tradeassurance-btn:hover {
  background: #eb6200;
  color: #fff;
  text-decoration: none;
}

.tradeassurance-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ta-card {
  min-height: 120px;
  border-radius: 18px;
  background: #f5f5f5;
  padding: 26px 20px;
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ta-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.ta-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f6e7a8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ta-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.ta-card-text {
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.ta-card-arrow {
  color: #222;
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
  text-align: right;
}
.header-mega-link:hover + .tradeassurance-panel,
.tradeassurance-panel:hover {
  display: block;
}

.tradeassurance-panel {
  min-height: 360px;
}

.tradeassurance-main {
  padding: 0 120px;
}

.tradeassurance-inner {
  max-width: 1540px;
  padding: 0 24px;
}

.buyercenter-mega {
  position: static;
}

.buyercenter-panel {
  position: fixed;
  top: 116px;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 34px 0 42px;
  display: none;
  z-index: 9998;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.buyercenter-inner {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.buyercenter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}

.buyercenter-col h4 {
  margin: 0 0 18px;
  color: #111;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.buyercenter-col a {
  display: block;
  color: #222;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
  padding: 8px 0;
}

.buyercenter-col a:hover {
  color: #000;
  text-decoration: underline;
}

.header-mega-link:hover + .buyercenter-panel,
.buyercenter-panel:hover {
  display: block;
}

.buyercenter-mega .header-mega-link {
  position: relative;
}

.buyercenter-mega .header-mega-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 2px;
  background: #222;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.buyercenter-mega:hover .header-mega-link::after {
  transform: scaleX(1);
}

.helpcenter-mega {
  position: static;
}

.helpcenter-panel {
  position: fixed;
  top: 116px;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 40px 0 38px;
  display: none;
  z-index: 9998;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.helpcenter-inner {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.helpcenter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: stretch;
}

.helpcenter-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 38px;
  padding-right: 56px;
  border-right: 1px solid #e5e5e5;
}

.helpcenter-card {
  min-height: 144px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.helpcenter-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  border-color: #cfcfcf;
}

.helpcenter-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.helpcenter-card-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.helpcenter-card-title {
  color: #222;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  text-align: center;
}

.helpcenter-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.helpcenter-links a {
  color: #222;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.45;
}

.helpcenter-links a:hover {
  color: #000;
  text-decoration: underline;
}

.header-mega-link:hover + .helpcenter-panel,
.helpcenter-panel:hover {
  display: block;
}


/* fix cứng màn hình */
/* body {
  min-width: 1440px;
}
.header-v2 .container-fluid,
.home-container,
.main-home-wrap,
.main-section {
  width: 1440px;
  min-width: 1440px;
  margin: 0 auto;
}

.header-v2 .container-fluid,
.home-container,
.main-home-wrap,
.main-section {
  width: 1440px;
  min-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.home-hero {
  width: 1440px;
  min-width: 1440px;
  margin: 0 auto;
}

.home-tabs {
  width: 1000px;
  margin: 0 auto 24px;
}

.home-search-box {
  width: 760px;
  min-width: 760px;
  margin: 0 auto;
}

.home-content-row {
  display: grid;
  grid-template-columns: 280px 320px 320px 1fr;
  gap: 16px;
  width: 1440px;
  min-width: 1440px;
  margin: 0 auto;
}

.home-content-row {
  display: grid;
  grid-template-columns: 280px 360px 360px;
  gap: 16px;
  width: 1032px;
  min-width: 1032px;
}

.header-v2 {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px;
  min-width: 1440px;
  background: #fff;
  z-index: 9999;
}
 */
/* html, body {
  overflow-x: auto;
}

body {
  min-width: 1360px;
  padding-top: 116px;
} */



/* .header-v2 {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1360px;
  min-width: 100%;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  z-index: 9999;
} */

/* .header-v2 {
  position: fixed;
  top: 0;
  left: 250px;
  transform: none;
  width: 1360px;
  min-width: 1360px;
} */

.header-v2 .container-fluid {
  width: 1360px;
  min-width: 1360px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.main-home-wrap,
.home-hero,
.home-section,
.home-content-row {
  width: 1360px;
  min-width: 1360px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .header-top-inner,
  .header-bottom-inner,
  .header-right,
  .header-nav-left,
  .header-nav-right {
    flex-wrap: nowrap;
    flex-direction: row;
  }
  
}
@media (max-width: 768px) {
  .header-top-inner,
  .header-bottom-inner,
  .header-right,
  .header-nav-left,
  .header-nav-right {
    flex-wrap: nowrap;
    flex-direction: row;
  }
  
}

/* .header-v2 .container-fluid,
.mainsearch-inner,
.cate-banner-row,
.mainsearch-info-inner,
.sponsored-section,
.home-page-section .container-fluid,
.home-cate-section .container-fluid,
.section-product-recommend .container-fluid {
  margin-left: 0;
  margin-right: 0;
} */

.header-v2 .container-fluid {
  width: 1360px;
  min-width: 1360px;
  padding-left: 24px;
  padding-right: 24px;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.header-v2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 1360px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  font-family: Arial, sans-serif;
  z-index: 9999;
}

.header-v2 .container-fluid {
  width: 1360px;
  min-width: 1360px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  padding-top: 116px;
  min-width: 0;
}


.header-v2 .container-fluid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.form-search {
    height: 30px;
}
.input-group {
    width: 50%;
}
#suggest {
  z-index: 999;
}

/* --- Supplier mega menu: prevent Vietnamese text overflow --- */
.supplier-mega-banner-left {
  padding: 28px 26px;
  box-sizing: border-box;
}

.supplier-mega-banner-left h3 {
  max-width: 100%;
  margin: 0 0 16px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  word-break: break-word;
  hyphens: auto;
}

.supplier-mega-stats {
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 18px;
}

.supplier-stat span {
  white-space: nowrap;
}

.supplier-card span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.25;
}

/* Ghi đè cuối file: body padding lặp lại phía trên không “nuốt” class account-no-site-header */
body.account-no-site-header {
  padding-top: 0 !important;
}