:root {
  --primary-color: #375fac;
  --secondary-color: #ffa500;
}

.header-wrapper {
  box-shadow: 0px 4px 16px 0px #0000001a;
}
.nav-dropdown {
  background-color: #375fac !important;
  color: #ffffff;
}
.sub-menu.nav-dropdown .menu-item a {
  color: #ffffff !important;
}
.sub-menu.nav-dropdown .menu-item a:hover {
  color: var(--secondary-color) !important;
}
.nav-dropdown-has-arrow li.has-dropdown:after {
  border-color: hsla(0, 0%, 87%, 0) hsla(0, 0%, 87%, 0) #375fac !important;
}

/* .home-banner-swiper {
  width: 100%;
  height: 600px; 
  position: relative;
  overflow: hidden;
}

.home-banner-swiper .swiper-slide {
  height: 100%;
}

.home-banner-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 8px;
} */
.home-banner-swiper {
  width: 100%;
  height: 600px; /* khung cao 600px */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.home-banner-swiper img {
  max-height: 100%;
  width: 100%;
  height: 600px;
  object-fit: cover; /* hiển thị trọn vẹn ảnh */
}
/* Pagination dots */
.home-banner-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.home-banner-swiper .swiper-pagination-bullet-active {
  background: var(--secondary-color);
  opacity: 1;
  transform: scale(1.2);
}

/* Nút prev/next */
.swiper-button-next,
.swiper-button-prev {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.htv-tabs-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
  gap: 40px;
}
.htv-tabs-nav li {
  text-align: center;
  cursor: pointer;
  flex: auto;
  height: fit-content;
}
.htv-tabs-nav li img {
  max-width: 80px;
  display: block;
  height: 120px;
  margin: 0 auto;
  object-fit: contain;
}
.icon-tab-wrap {
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
}
.htv-tabs-nav li span {
  font-size: 16px;
  display: inline-block;
  font-weight: 700;
  color: var(--primary-color);
  padding-top: 8px;
  border-bottom: 3px solid transparent;
}
.htv-tabs-nav li:hover span {
  border-bottom: 3px #ccc solid;
}
.htv-tabs-nav li.active span {
  border-bottom: 3px var(--primary-color) solid;
}

.htv-tabs-content .tab {
  display: none;
  display: none;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease;
}
.htv-tabs-content .tab.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  gap: 40px;
}
.htv-tabs-content .tab-img {
  flex: 0 0 500px;
}
.tab-img img {
  max-height: 300px;
  object-fit: cover;
}
.tab-text {
  margin: 0 auto;
  text-align: justify;
}
.custom-section {
  padding-top: 40px;
  padding-bottom: 40px;
}
#home_tab_list-section {
  padding-top: 65px;
}
.htv-tabs-content {
  margin-top: 50px;
}
.title-primary {
  font-size: 32px;
  color: var(--primary-color);
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.title-primary::after {
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  content: "";
  left: 50%;
  transform: translateX(-50%);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.product-item {
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.product-item:hover {
  box-shadow: 0 8px 20px rgba(55, 95, 172, 0.2); /* đổ bóng màu primary */
  transform: translateY(-5px); /* nổi khối */
}

/* khung ảnh */
.product-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 10px;

  display: block;
}

.product-thumb img {
  max-width: 100%;
  height: 220px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-item:hover .product-thumb img {
  transform: scale(1.1); /* hiệu ứng zoom ảnh */
}

/* tiêu đề */
.product-title {
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0;
  color: var(--primary-color);
  line-height: 1.4;
  /* min-height: calc(1.4em * 2);  */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.product-item:hover .product-title {
  color: var(--secondary-color);
}

/* mô tả */
.product-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
  line-clamp: 3;
  -webkit-box-orient: vertical;
}
.product-infor {
  padding: 20px;
}
/* nút liên hệ */
.btn-contact {
}

.btn-contact:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}
.btn {
  display: inline-block;
  padding: 10px 22px;
  outline: none;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color) !important;
}
.btn--primary:hover {
  background: #fff;
  color: var(--primary-color);
}

.partnerSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partnerSwiper .swiper-slide img {
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partnerSwiper .swiper-slide img:hover {
  transform: scale(1.05);
}

.partnerSwiper-wrapper {
  position: relative;
  margin-top: 40px;
}

/* .partnerSwiper-wrapper .swiper-button-prev,
.partnerSwiper-wrapper .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2c4ea0;
  color: #fff;
  z-index: 10;
} */

.partnerSwiper-wrapper .swiper-button-prev {
  left: -60px;
}

.partnerSwiper-wrapper .swiper-button-next {
  right: -60px;
}
#home_partner_and_customer-section {
  padding-bottom: 65px;
}
.absolute-footer {
  display: none;
}
.footer-wrapper {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 14px;
  padding-top: 65px;
  padding-bottom: 25px;
}
.footer-wrapper h1,
.footer-wrapper h3 {
  color: #fff;
}
.footer-col-1 .img-inner img {
  /* max-width: 100%;
  height: 100px;
  object-fit: contain; */
  max-width: 230px;
}
/* .footer-col-1 .img-inner {
  text-align: center;
} */
.footer-wrapper h1 {
  font-size: 18px;
  text-transform: none;
  margin-bottom: 14px;
  margin-top: 25px;
}
.footer-wrapper p {
  margin-bottom: 10px;
}
.footer-wrapper p a {
  color: #fff !important;
}
.footer-col-2 .col.medium-6:first-child .col-inner {
  padding-right: 30px !important;
}
.footer-col-2 .col.medium-6:last-child .col-inner {
  padding-right: 30px !important;
}
.footer-col-2 .section-title-container {
  margin-bottom: 0;
}
.footer-col-2 h3,
.footer-col-2 h3 span {
  border-bottom: 0;
}
.south-side-title {
  margin-top: 20px !important;
}
.column-soical .col-inner {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}
.column-soical .col-inner .icon-inner {
  background-color: #fff;
  border-radius: 50%;
  padding: 14px;
}
.column-soical .icon-box-img svg path {
  fill: var(--primary-color);
}
.column-soical .icon-box-img {
  width: 50px !important;
}
.footer-col-1,
.footer-col-2,
.footer-col-2 .col {
  padding-bottom: 0 !important;
}
.col-menu-footer
  .ux-menu.ux-menu--divider-solid
  .ux-menu-link:not(:last-of-type)
  .ux-menu-link__link {
  border-bottom: 0 !important;
}
.col-menu-footer .ux-menu.ux-menu--divider-solid .ux-menu-link__link {
  color: #fff;
  padding-left: 20px;
  position: relative;
}
.col-menu-footer .ux-menu.ux-menu--divider-solid .ux-menu-link__link::after {
  position: absolute;
  left: 1px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
  content: "";
}
.copy-right-section .col {
  padding-bottom: 0 !important;
}
.copy-right-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #ffffff59;
}
.copy-right-section .col-inner {
  text-align: center;
}
#introduction_section .col-md-6 {
  width: 47%;
}
#introduction_section {
  padding-top: 65px;
}

#introduction_section .row {
  display: flex;
  margin-top: 50px;
  align-items: stretch; /* kéo 2 thằng cao bằng nhau */
}

#introduction_section .col-md-6 {
  display: flex;
  flex-direction: column; /* để nội dung bên trong không bị nát */
}

#introduction_section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.history-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 30px 0;
  position: relative;
}
.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 50px 0;
}

/* line nền */
.steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #ccc;
  transform: translateY(-50%);
  z-index: 0;
}

/* line progress */
.steps::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: #ffa600;
  width: var(--progress-width, 0%);
  transform: translateY(-50%);
  transition: width 0.5s ease;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.step--complete {
  background: var(--secondary-color);
  color: #fff;
}

.step--active {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
  color: #fff;
}

.step--inactive {
  background: #fff;
  color: var(--secondary-color);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeSlide 0.4s ease forwards;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Content */
.history-contents {
  position: relative;
  overflow: hidden;
}

.history-content {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.history-content.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}
.form-step .row .col-md-6 {
  width: 47%;
}
.form-step .row .col-md-6 img {
  border-radius: 8px;
}

.core_values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.core_value-desc {
  font-size: 14px;
}
.core_value-title {
  color: var(--primary-color);
}
.shop-page-title {
  display: none !important;
}
.woocommerce-breadcrumb {
  font-size: 14px;
}
.woocommerce-breadcrumb .divider {
  margin: 0 8px;
  font-size: 16px;
}

.product_category-tab ul {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.product_category-tab li {
  position: relative;
  margin-bottom: 0;
  border-radius: 50%;
  /* background-color: #6f94da9a; */
  background-color: #6f94da9a;
  padding: 10px;
}
.product_category-tab li.active {
  background-color: #f7c261bd;
}
.product_category-tab li:hover {
  background-color: #f7c261bd;
}

.product_category-tab img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.product_category-tab img:hover {
  transform: scale(1.05);
}

.product_category-name {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #f7c261bd;
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.product_category-name::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #f7c261bd transparent transparent transparent;
}

.product_category-link:hover .product_category-name {
  opacity: 1;
}
#single_product-wrap .product_thumbnail-wrap {
  position: sticky;
  top: 104px;
  align-self: flex-start;
  height: auto;
}
#single_product-wrap .product_thumbnail-inner {
  background-color: rgba(246, 250, 255, 1);
  border-radius: 8px;
  height: 500px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
#single_product-wrap .product_thumbnail-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

#single_product-wrap .col-md-6:first-child {
  padding-right: 25px;
}
#single_product-wrap .col-md-6:last-child {
  padding-left: 25px;
}
#single_product-wrap {
  padding-top: 0;
}
#single_product-wrap .product_title {
  margin-left: 0;
}
#single_product-wrap .product_title::after {
  transform: translateX(-0);
  width: 50px;
  left: 0;
}
.product_content {
  margin: 0px 0 30px;
}
.product_content p {
  line-height: 30px;
  color: #949494;
}
#btn-contact-product {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  text-transform: uppercase;
}
.relates-products_heading {
  display: flex;
  gap: 20px;
}
.relates-products_heading h1 {
  margin: 0;
  line-height: 45px;

  font-size: 20px;
}
.relates-products_heading h1::after {
  transform: translateX(-0);
  width: 50px;
  left: 0;
  bottom: -5px;
}

.relates-products_heading .btn {
  min-width: unset;
  font-size: 14px;
  line-height: 1;
  padding: 8px 15px;
  display: flex;
  align-items: center;
}

/* Overlay */
.popup-contact {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* Nội dung popup */
.popup-content {
  background: #fff;
  padding: 24px;
  max-width: 700px;
  width: 100%;
  position: relative;
}

.popup-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  color: #4e261c;
}

/* Nút đóng */
.popup-close {
  position: absolute;
  top: 7px;
  right: 24px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* Form */
.popup-form .wpcf7 input,
.popup-form .wpcf7 textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px 12px;
  border: 1px solid #bcbbbb;
  border-radius: 4px;
  height: 40px;
  box-shadow: none !important;
  outline: unset !important;
}

.popup-form .wpcf7-submit {
  background: #d00;
  height: unset !important;
  color: #fff;
  font-weight: 500;
  width: fit-content !important;
  border: 1px solid transparent !important;
  padding: 10px !important;
  border-radius: 6px !important;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.4 !important;
  text-transform: unset !important;
  margin-bottom: 0 !important;
}
.popup-form .wpcf7-submit:hover {
  background: #fff;
  color: #d00;
  border: 1px solid #d00 !important;
}
.popup-form form {
  margin-bottom: 0 !important;
}
.popup-content-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.popup-form .wpcf7 label {
  font-size: 12px;
  font-weight: 500;
  line-height: 30px;
}

#post_list-wrapper {
  padding-top: 65px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#post_list-wrapper {
  padding-top: 65px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}
.post-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.post-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Ảnh */
.post-thumb {
  display: block;
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-item:hover .post-thumb img {
  transform: scale(1.08);
}

/* Tiêu đề */
.post-title {
  font-size: 18px;
  padding: 15px 20px 10px;
  line-height: 1.4;
  word-break: break-word; /* cắt từ nếu quá dài */
  white-space: normal; /* cho phép xuống dòng */
  overflow-wrap: anywhere; /* đảm bảo chữ dài vẫn wrap */
}
.post-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}
.post-title a:hover {
  color: var(--primary-color, #0073aa);
}

/* Ngày đăng */
.post-meta {
  padding: 0 20px 10px;
  font-size: 14px;
  color: #888;
}

/* Excerpt */
.post-excerpt {
  padding: 0 20px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination */
.pagination {
  margin-top: 40px;
  text-align: center;
  justify-content: center;
}
.pagination .page-numbers {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 14px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--primary-color, #0073aa);
  color: #fff;
}
.post-item .btn {
  margin: 0 20px 20px;
}
#single_post-wrap {
  padding-top: 65px;
}
.post-single-product {
  text-transform: uppercase;
}
#single_post-wrap .single-post {
  margin-bottom: 0;
}

#single_post-wrap .post-content {
  max-width: 800px;
  margin: 50px auto 0;
}
#single_post-wrap .post-content h2,
#single_post-wrap .post-content h1,
#single_post-wrap .post-content h3 {
  color: var(--primary-color);
}
#single_post-wrap .post-content p {
  color: #a2a2a2;
  font-size: 16px;
  line-height: 32px;
}
#single_post-wrap .post-content img {
  width: 100%;
  border-radius: 12px;
}

.contact-map .map-wrap,
.contact-map .map-wrap p,
.contact-map .map-wrap iframe {
  height: 100%;
}

.contact-map .map-wrap iframe {
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 24px;
  width: 100%;
}
.contact-info {
  padding-left: 100px;
}
.contact-info h3 {
  font-size: 16px;
  color: var(--brown-color);
  text-transform: uppercase;
  line-height: 32px;
  border-bottom: 1px solid var(--brown-color);
  width: fit-content;
  font-weight: 700;
  margin-bottom: 24px !important;
}
.contact-info .contact-list {
  max-width: 500px;
}
.contact-info .contact-list li {
  list-style-type: none;
  margin-bottom: 0;
  padding: 24px 12px;
  border-top: 1px solid #e4e4e4;
}
.contact-info .contact-list li:last-child {
  border-bottom: 1px solid #e4e4e4;
}
.social-links {
  display: flex;
  gap: 8px;
}
.social-links a {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}
.social-links a img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain;
}
.contact-form7 label {
  font-size: 12px;
  line-height: 26px;
  font-weight: 500;
  color: #333333;
}
.contact-form7 input {
  height: 45px !important;
  margin-bottom: 16px !important;
  border: 0.5px solid #d7d5d5 !important;
  box-shadow: none !important;
  border-radius: 4px !important;
  padding: 10px !important;
  font-size: 16px !important;
}
.contact-form7 input[type="submit"] {
  height: 50px !important;
  padding: 0px 16px !important;
  font-size: 18px !important;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 8px;
  margin: 0 !important;
  line-height: 50px;
  border: 1px solid transparent !important;
}
.contact-form7 input[type="submit"]:hover {
  border: 1px solid var(--primary-color) !important;
  background-color: transparent !important;
  color: var(--primary-color) !important;
}
.contact-form7 textarea {
  border: 0.5px solid #d7d5d5 !important;
  box-shadow: none !important;
  margin-bottom: 24px !important;
  border-radius: 4px !important;
}
#contact-page {
  padding-top: 65px;
}
.icon-box-img svg {
  padding-top: 0 !important;
}
.gt_selector {
  margin-bottom: 0 !important;
  display: none;
}
.product-specification {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}
.product-detai-specification {
  margin: 30px 0 20px;
  font-style: italic;
  color: #ffa734;
}
.btn-download-catelog {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  font-size: 16px !important;
}
.btn-download-catelog i {
  font-size: 15px !important;
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items:flex-start;
  margin-top: 50px;
}
.certification-item a {
  display: block;
}
.certification-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.certification-item:hover img {
  transform: scale(1.05);
}
