/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Oswald:wght@200..700&display=swap');
/*************** ADD CUSTOM CSS HERE.   ***************/
body {
	font-family: "Be Vietnam Pro", sans-serif;
}
.oswald * {
	font-family: "Oswald", sans-serif;
}
p {
	margin-bottom: 10px;
}
p:last-child {
	margin-bottom: 0;
}
h1, h2, h3, h4, h5, .banner h1, .banner h2, .banner h3, .banner h4, .banner h5 {
	line-height: inherit;
}
.section > .section-content > .row > .col {
  padding-bottom: 0;
}
.banner p {
  margin-top: 0;
 }
.header-top, 
.header-top .nav > li > a {
  text-transform: none;
  font-size: 14px;
  color: #00325E;
}
.header-main .nav > li.cart-item > a {
  text-transform: none;
  font-size: 14px;
  color: #000000;
  font-weight: normal;
  line-height: 21px;
}
.header-main .nav > li.cart-item > a .cart-price {
  display: block;
}
.header-main .nav > li.cart-item > a .cart-price span.amount {
  font-weight: normal !important;
}
.header-main .nav > li.cart-item > a.header-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-nav li.cart-item > a.header-cart-link i.icon-shopping-cart {
  order: 1;            /* icon đứng trước */
  margin: 0;           /* bỏ margin mặc định của Flatsome */
  font-size: 28px;
  margin-right: 10px;
}

.header-nav li.cart-item > a.header-cart-link .header-cart-title {
  order: 2;            /* chữ đứng sau */
  white-space: nowrap;
}

.header-bottom .header-bottom-nav > li {
  position: relative;
  margin: 0 1px;
}
.header-bottom .header-bottom-nav > li > a {
  font-size: 16px;
  font-weight: normal;
  padding: 11px 15px;
}
.header-bottom .header-bottom-nav > li.active > a {
  position: relative;
  z-index: 2;
  color: #00325E !important;
  font-weight: 600;
}
.header-bottom .header-bottom-nav > li.active:after {
  content: '';
  display: block;
  background: #DAF0FF;
  height: 45px;
  width: 100%;
  border-radius: 0 0 10px 10px;
  position: absolute;
  top: -2px;
  margin: auto;
  color: #00325E;
  z-index: 1;
  left: 0;
  opacity: 1;
  border: none;
  bottom: auto;
}

.form-flat input:not([type=submit]), .form-flat select, .form-flat textarea {
  height: 46px;
  border: 1px solid #D9D9D9;
  background-color: transparent;
}
.searchform .button.icon {
  right: 10px;
}
.banner .button {
  font-weight: normal;
  font-size: 16px;
}

.item-center.icon-box-left {
	display: flex;
	align-items: center;
}
.item-center.icon-box-left .icon-box-text {
	padding-left: 8px;
}
.item-center.icon-box-left strong {
	letter-spacing: -0.4px;
}
.icon-box p {
	margin-bottom: 0;
}
.row > .col-slider {
	max-width: 1010px;
	flex-basis: 1010px;
}
.row > .col-slider .slider-wrapper+.row:not(.row-collapse) {
	margin-top: 20px;
}
.header-vertical-menu__fly-out {
	border-radius: 8px !important;
}
/* Thiết lập chung cho khung menu dọc */
#menu-danh-muc-san-pham.ux-nav-vertical-menu {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    overflow: visible !important; /* Cho phép sub-menu tràn ra ngoài nếu cần */
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Các mục menu cấp 1 */
#menu-danh-muc-san-pham.ux-nav-vertical-menu > li {
    position: relative;
    transition: background-color 0.2s ease;
}

#menu-danh-muc-san-pham.ux-nav-vertical-menu > li:last-child {
    border-bottom: none;
}


/* Style cho thẻ a cấp 1 */
#menu-danh-muc-san-pham.ux-nav-vertical-menu > li > a.nav-top-link {
    display: flex !important;
    align-items: center;
    padding: 9px 16px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    position: relative;
	font-weight: 500;
}

/* Icon bên trái */
#menu-danh-muc-san-pham.ux-nav-vertical-menu .ux-menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Gom nhóm chữ và mô tả bên trong thẻ a */
#menu-danh-muc-san-pham.ux-nav-vertical-menu > li > a.nav-top-link {
    flex-wrap: wrap;
}

/* Style cho phần mô tả */
#menu-danh-muc-san-pham.ux-nav-vertical-menu > li > a > .menu-item-description {
    display: block;
    width: 100%;
    font-size: 12px;
    color: #666666;
    font-weight: normal;
    margin-left: 30px; /* Căn thẳng hàng với tiêu đề (bằng width icon + margin-right) */
}

/* Tạo mũi tên điều hướng sang phải */
#menu-danh-muc-san-pham.ux-nav-vertical-menu > li > a.nav-top-link::after {
    content: "›";
    margin-left: auto;
    font-size: 20px;
    color: #666666;
    line-height: 1;
    position: absolute;
    right: 10px;
    top: 16px;
}

#menu-danh-muc-san-pham.ux-nav-vertical-menu > li:hover > a.nav-top-link::after {
	color: #0152BB;
}

/* Ẩn icon mũi tên mặc định của theme để tránh bị thừa */
#menu-danh-muc-san-pham.ux-nav-vertical-menu > li > a > .icon-angle-down {
    display: none !important;
}

/* Hiệu ứng Hover đổi màu nền item */
#menu-danh-muc-san-pham.ux-nav-vertical-menu > li:hover {
    background-color: #f1f5f9;
}

#menu-danh-muc-san-pham.ux-nav-vertical-menu > li:hover > a.nav-top-link {
    color: #1d4ed8;
    font-weight: 600;
}
/* Thiết lập cho icon ban đầu */
#menu-danh-muc-san-pham.ux-nav-vertical-menu .ux-menu-icon {
    display: inline-block;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Gán đường dẫn ảnh vào thuộc tính mask cho từng icon cụ thể hoặc dùng chung nếu trình duyệt hỗ trợ */
/* Hoặc đơn giản nhất dùng filter chuẩn hóa đổi màu sang vàng cam #ECBA16 */
#menu-danh-muc-san-pham.ux-nav-vertical-menu > li:hover img {
    /* Bộ lọc tối ưu chuyển đổi sang mã màu #ECBA16 */
    filter: brightness(0) saturate(100%) invert(77%) sepia(51%) saturate(952%) hue-rotate(359deg) brightness(98%) contrast(93%);
}
/* ================================= sử lý sub-menu ================================= */
#menu-danh-muc-san-pham.ux-nav-vertical-menu .sub-menu {
    /* Đảm bảo sub-menu của Flatsome hiển thị bình thường khi hover vào li cha có class has-dropdown */
    display: none; 
}

#menu-danh-muc-san-pham.ux-nav-vertical-menu > li.menu-item-has-children:hover > .sub-menu {
    display: block !important;
}

.list-menu ul {
	margin-bottom: 0;
}
.list-menu ul li {
	list-style: none;
	border-right: 1px solid #fff;
	display: inline-block;
	margin-left: 0;
	padding: 0 15px;
}
.list-menu ul li:first-child {
	padding-left: 0;
}
.list-menu ul li:last-child {
	border: none;
}
.list-support ul {
	margin-bottom: 0;
}
.list-support ul li {
	list-style: none;
	margin-left: 0;
	padding-left: 30px;
	position: relative;
}
.list-support ul li:last-child {
	margin-bottom: 0;
}
.list-support ul li:before {
	content: '\f058';
	font-family: FontAwesome;
	color: #38C7FA;
	position: absolute;
	top: 0;
	left: 0;
}
.banner-home .banner-bg, 
.banner-home {
	border-radius: 16px;
}
.bg-blur {
	/* Độ mờ của nền */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Hỗ trợ cho Safari và trình duyệt cũ */
    
    /* Màu nền bán trong suốt (ví dụ màu trắng mờ 70%) */
    background-color: rgb(255 255 255 / 0%);
    
    /* Viền nhẹ tạo chiều sâu cho hiệu ứng kính mờ (tùy chọn) */
/*     border: 1px solid rgba(255, 255, 255, 0.3); */
	border-radius: 8px;
}

.footer-wrapper ul li {
    list-style: none;
    margin-left: 0;
}
.absolute-footer {
  border-top: 1px solid; /* Bạn có thể thay đổi độ dày 2px theo ý muốn */
  border-image: linear-gradient(to right, rgba(12, 100, 201, 0) 0%, rgba(12, 100, 201, 1) 51%, rgba(12, 100, 201, 0) 100%) 1;
}
/* ===== Container + đường gradient dưới ===== */
.section-title-container {
  position: relative !important;
  margin-bottom: 25px !important;
  padding-bottom: 15px !important;
  border: none !important;
}
.section-title-container::after {
  content: "" !important;
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px !important;
  background: linear-gradient(to right,#CBEAFF,#0152BB, #CBEAFF);
  display: block;
}

/* ===== h2: flex 1 hàng ngang ===== */
.at-title-product .section-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Reset gạch chân mặc định của theme */
.section-title-normal,
.section-title-main {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* Ẩn các thẻ <b> */
.at-title-product .section-title > b {
  display: none !important;
}

/* ===== Tiêu đề trái ===== */
.section-title-main {
  font-size: 30px !important;
  font-weight: bold !important;
  line-height: 1.2 !important;
  color: #00325E !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
}

/* ===== Cụm nút danh mục ===== */
.at-title-product .hpt-show-cats {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  gap: 5px !important;
  margin: 0 32px 0 auto !important;
  padding: 0 !important;
}
.at-title-product .hpt-show-cats li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}



/* Nút danh mục: ẩn chữ gốc bằng font-size 0, chữ mới nằm ở ::after */
.at-title-product .hpt_hdevvn_cats a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #F3F4F6 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 6px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease;
  font-size: 12px;
  font-weight: normal;
  padding: 8px 20px;

}
.at-title-product .hpt_hdevvn_cats a::after {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #444;
  transition: color 0.2s ease;
}

.at-title-product .hpt_hdevvn_cats a:hover {
  background-color: #F2F9FF !important;
  border-color: #0152BB !important;
  color: #0152BB;
  font-weight: 600;
}
.at-title-product .hpt_hdevvn_cats a:hover::after {
  color: #fff;
}

/* ===== Nút "Xem tất cả →" ===== */
.section-title > a {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #00325E !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.section-title > a:hover {
  color: #0152BB !important;
}
.section-title > a i {
  display: none !important;
}
.section-title > a::after {
  content: "\f061";
  font-size: 14px;
  line-height: 1;
  font-family: FontAwesome;
}

/* ===== Khoảng cách giữa các thẻ (~17px) ===== */
.post-item {
  padding: 0 8px 10px !important;
}

/* ===== Khung thẻ ===== */
.post-item .col-inner {
  height: 100%;
}
.post-item .box-blog-post {
  background: #fff !important;
  border: 1px solid #DFDFDF !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06) !important;
  height: 100%;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
/*.post-item .box-blog-post:hover {
  box-shadow: 0 6px 18px rgba(12, 53, 89, 0.12) !important;
  border-color: #d3dae2 !important;
}*/

/* ===== Ảnh ===== */
.post-item .box-blog-post .box-image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.post-item .box-blog-post .image-cover {
  padding-top: 68% !important;   /* tỉ lệ ~268x182 */
  border-radius: 0 !important;
}
.post-item .box-blog-post .image-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ===== Vùng chữ: flex dọc để đảo thứ tự ===== */
.post-item .box-blog-post .box-text {
  padding: 8px 10px 12px !important;
  background: #fff !important;
}
.post-item .box-blog-post .box-text-inner {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

/* 1. Ngày (đưa lên trên cùng) */
.post-item .box-blog-post .post-meta {
  order: 1;
  margin: 0 0 4px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: #999999 !important;
  opacity: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* 2. Tiêu đề */
.post-item .box-blog-post .post-title {
  order: 2;
  margin: 0 0 6px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.post-item .box-blog-post .post-title a {
  color: #0c3559 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.post-item .box-blog-post:hover .post-title a,
.post-item .box-blog-post .post-title a:hover {
  color: #0152BB !important;
}

/* Ẩn đường kẻ */
.post-item .box-blog-post .is-divider {
  display: none !important;
}

/* 3. Mô tả */
.post-item .box-blog-post .from_the_blog_excerpt {
  order: 3;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  color: #999 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ===== Card ===== */
.product-small.col .col-inner { height: 100%; }

.product-small.col .box {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #DFDFDF;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.product-small.col .box:hover {
  box-shadow: 0 8px 8px 0px rgba(0, 0, 0, .25);
}

/* ===== Ảnh: nền trắng, căn giữa, không cắt, không zoom ===== */
.product-small.col .box-image { background: #fff; }
.product-small.col .box-image .image-zoom,
.product-small.col .box-image .image-fade_in_back,
.product-small.col .box-image .image-none { background: #fff; }
.product-small.col .box-image img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: 12px;
  transform: none !important;
  transition: none;
}

/* ===== Vùng chữ ===== */
.product-small.col .box .box-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 12px 14px 14px;
  background: #fff;
  transition: background-color .25s ease;
}
.product-small.col .box:hover .box-text { background: #dbeeff; }

/* Tiêu đề */
.product-small.col .box-text .title-wrapper { margin: 0; }
.product-small.col .box-text .product-title,
.product-small.col .box-text .product-title a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #000000;
  margin: 0;
  transition: color .25s ease;
}
.product-small.col .box:hover .product-title a { color: #0152BB; }

/* Mô tả ngắn */
.product-small.col .hth-short-desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Hàng giá + nút giỏ hàng ===== */
.product-small.col .box-text .price-wrapper {
  margin-top: auto;           /* đẩy xuống đáy card, các card đều nhau */
  padding-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.product-small.col .box-text .price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  line-height: 1.2;
}
.product-small.col .box-text .price ins {
  background: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: #e4002b;
  opacity: 1;
}
.product-small.col .box-text .price .amount { color: #e4002b; font-weight: 700; }
.product-small.col .box-text .price del {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  opacity: 1;
}
.product-small.col .box-text .price del .amount { color: #9ca3af; font-weight: 400; }

/* Nút giỏ hàng */
.product-small.col .hth-cart-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  background: #fff;
  color: #1a5bbf;
  border: 1.5px solid #1a5bbf;
  border-radius: 8px;
  line-height: 1;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.product-small.col .box:hover .hth-cart-btn {
  background: #e4002b;
  border-color: #e4002b;
  color: #fff;
}
.product-small.col .hth-cart-btn.loading { opacity: .6; pointer-events: none; }
.product-small.col .hth-cart-btn::after { display: none; } /* bỏ dấu tick mặc định của Woo */

/* Ẩn link "Xem giỏ hàng" Woo tự chèn sau khi thêm */
.product-small.col .box-text .added_to_cart { display: none; }

/* ACF sub_title dưới tiêu đề */
.product-small.col .box-text .hth-sub-title {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #333333;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-nav-circle .flickity-prev-next-button .arrow, .slider-nav-circle .flickity-prev-next-button svg {
  border: 1px solid;
  border-radius: 6px;
  padding: 10px;
}

/* ===== Banner ===== */
.hth-archive-banner {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.hth-archive-banner > *:last-child { margin-bottom: 0; }

/* ===== Lưới danh mục con ===== */
.hth-subcats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 14px;
}
.hth-subcat {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  padding: 19px 15px;
  background: #fff;
  border: 1px solid #DFDFDF;
  border-radius: 8px;
  color: #0152BB;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hth-subcat:hover,
.hth-subcat.is-active {
  background: #eef6ff;
  border-color: #0152BB;
  color: #0152BB;
}
.hth-subcat:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, .08); }
.hth-subcat-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.hth-subcat:hover .hth-subcat-icon {
      filter: brightness(0) saturate(100%) invert(77%) sepia(51%) saturate(952%) hue-rotate(359deg) brightness(98%) contrast(93%);
}
.hth-subcat-name { flex: 1; }

/* ===== Thanh công cụ ===== */
.hth-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hth-result-count {
  font-size: 13px;
  color: #4b5563;
}
.hth-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hth-sort-label {
  font-size: 13px;
  color: #4b5563;
  white-space: nowrap;
}
.hth-toolbar .woocommerce-ordering {
  margin: 0;
}
.hth-toolbar .woocommerce-ordering select {
  margin: 0;
  min-width: 150px;
  height: 40px;
  padding: 0 32px 0 12px;
  font-size: 14px;
  color: #1f2937;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: none;
}
.hth-view-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: #e6f1fb;
  color: #1a5bbf;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.hth-view-toggle.is-active {
  background: #1a5bbf;
  color: #fff;
}

/* ===== Chế độ danh sách ===== */
.hth-list-view .products .product-small.col {
  flex-basis: 100% !important;
  max-width: 100% !important;
}
.hth-list-view .products .product-small.col .box {
  flex-direction: row;
  align-items: center;
}
.hth-list-view .products .product-small.col .box-image {
  flex: 0 0 200px;
  width: 200px;
}
.hth-list-view .products .product-small.col .box-text {
  align-self: stretch;
}
.hth-list-view .products .product-small.col .box-text .product-title a {
  font-size: 16px;
}

.page-title-inner {
  display: none;
}

/* ===== Khung menu ===== */
.widget_nav_menu,
.widget_nav_menu .menu-danh-muc-san-pham-container {
  overflow: visible;
}
.widget_nav_menu > div > .menu {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: visible;
}

/* ===== Mục cấp 1 ===== */
.widget_nav_menu > div > .menu > li {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color .2s ease;
}
.widget_nav_menu > div > .menu > li > a > img {

}
.widget_nav_menu > div > .menu > li:last-child { border-bottom: 0; }
.widget_nav_menu > div > .menu > li:first-child { border-radius: 8px 8px 0 0; }
.widget_nav_menu > div > .menu > li:last-child  { border-radius: 0 0 8px 8px; }

/* Link cấp 1 */
.widget_nav_menu > div > .menu > li > a {
  position: relative;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 9px 36px 9px 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #0f172a;
  text-decoration: none;
  transition: color .2s ease;
}



/* Mô tả */
.widget_nav_menu > div > .menu > li > a > .menu-item-description {
  display: block;
  width: 100%;
  margin-left: 30px;
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

/* Mũi tên › */
.widget_nav_menu > div > .menu > li > a::after {
  content: "›";
  position: absolute;
  right: 10px;
  top: 16px;
  font-size: 20px;
  line-height: 1;
  color: #666;
}

/* Ẩn nút toggle mặc định */
.widget_nav_menu > div > .menu > li > button.toggle { display: none !important; }

/* ===== Hover + active ===== */
.widget_nav_menu > div > .menu > li:hover,
.widget_nav_menu > div > .menu > li.current-menu-item,
.widget_nav_menu > div > .menu > li.current-menu-ancestor,
.widget_nav_menu > div > .menu > li.current-menu-parent {
  background-color: #f1f5f9;
}
.widget_nav_menu > div > .menu > li:hover > a,
.widget_nav_menu > div > .menu > li.current-menu-item > a,
.widget_nav_menu > div > .menu > li.current-menu-ancestor > a,
.widget_nav_menu > div > .menu > li.current-menu-parent > a {
  color: #1d4ed8;
  font-weight: 600;
}
.widget_nav_menu > div > .menu > li:hover > a img,
.widget_nav_menu > div > .menu > li.current-menu-item > a img,
.widget_nav_menu > div > .menu > li.current-menu-ancestor > a img,
.widget_nav_menu > div > .menu > li.current-menu-parent > a img {
  filter: brightness(0) saturate(100%) invert(77%) sepia(51%) saturate(952%) hue-rotate(359deg) brightness(98%) contrast(93%);
}
.widget_nav_menu > div > .menu > li:hover > a::after,
.widget_nav_menu > div > .menu > li.current-menu-item > a::after {
  color: #0152bb;
}

/* ===== Sub-menu: bung sang phải khi hover ===== */
.widget_nav_menu > div > .menu .sub-menu {
  display: none !important;
  position: absolute;
  top: -1px;
  left: 100%;
  z-index: 99;
  min-width: 230px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.widget_nav_menu > div > .menu > li.menu-item-has-children:hover > .sub-menu {
  display: block !important;
}
.widget_nav_menu > div > .menu .sub-menu li {
  margin: 0;
  padding: 0;
  border: 0;
}
.widget_nav_menu > div > .menu .sub-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.widget_nav_menu > div > .menu .sub-menu li a:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}

.page-title-bar {
  padding: 20px 0;
  font-size: 12px;
  color: #00325E;
}
.page-title-bar a {
  font-size: 12px;
  color: #00325E;
}
.category-page-row {
  padding-top: 0;
}
.single-product, 
.tax-product_cat {
  background-color: #FAF9F6;
}
.single-product #main,
.single-product #wrapper, 
.tax-product_cat #main,
.tax-product_cat #wrapper {
  background-color: transparent;
}

.hth-pi { margin-bottom: 16px; }
h1.product-title.product_title {
  font-size: 32px;
  margin-bottom: 6px;
  line-height: 38px;
}
/* Tiêu đề phụ */
.hth-pi-title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #2b2b2b;
}

/* Badge */
.hth-pi-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.hth-pi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  border-radius: 6px;
}
.hth-pi-badge .hth-pi-icon { flex: 0 0 auto; width: 18px; height: 18px; }
.hth-pi-badge.is-genuine  { background: #0b57c7; }
.hth-pi-badge.is-rohs     { background: #2e9e3e; }
.hth-pi-badge.is-instock  { background: #e4002b; }
.hth-pi-badge.is-outstock { background: #6b7280; }

/* Hàng đánh giá / mã / hãng */
.hth-pi-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  font-size: 14px;
  color: #4b5563;
}
.hth-pi-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hth-pi-stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
  color: #ECBA16;            /* sao rỗng */
  white-space: nowrap;
}
.hth-pi-stars span {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f5b301;            /* sao vàng */
}
.hth-pi-review-count,
.hth-pi-meta a { color: inherit; }
.hth-pi-meta a:hover { color: #0b57c7; }

.product-info del {
  text-decoration: none;
}
.product-info del .amount {
  font-size: 18px;
  color: #333;
  text-decoration: line-through;
}
.product-info .amount, 
.product-info ins .amount {
  font-size: 36px;
  color: #E00024;
}
.product-info .button.single_add_to_cart_button {
  text-transform: none;
  font-weight: normal;
  border-radius: 8px;
  font-size: 16px;
  background-color: #E00024;
  border: 1px solid;
}
.product-info .button.single_add_to_cart_button:hover {
  background-color: #fff;
  color: #E00024;
  box-shadow: none;
}
.product-info .button.ux-buy-now-button.button {
  background-color: #ffffff;
  text-transform: none;
  font-weight: normal;
  font-size: 16px;
  color: #0152BB;
  border: 1px solid #0152BB;
  border-radius: 8px;
}
.product-info .button.ux-buy-now-button.button:hover {
  background-color: #0152BB;
  color: #fff;
  box-shadow: none;
}
.button i, button i {
  top: 0;
}

.woocommerce-product-gallery {
  border: 1px solid #DFDFDF;
  border-radius: 8px;
  background-color: #fff;
}
.woocommerce-product-gallery img {
  border-radius: 8px;
}
.product-thumbnails a {
  border-radius: 8px;
  border: 1px solid #DFDFDF;
}


/* ===== Thanh tab ===== */
.woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  border: 0;
}
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after { display: none; }

.woocommerce-tabs ul.tabs > li {
  flex: 1 1 auto;               /* đổi thành 0 1 auto nếu muốn tab co theo chữ */
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.woocommerce-tabs ul.tabs > li::before,
.woocommerce-tabs ul.tabs > li::after { display: none !important; }

.woocommerce-tabs ul.tabs > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: #999999;
  background: #d9d9d9;
  border: 0;
  border-radius: 8px 8px 0 0;
  transition: background-color .2s ease, color .2s ease;
}
.woocommerce-tabs ul.tabs > li > a::before,
.woocommerce-tabs ul.tabs > li > a::after { display: none !important; }

.woocommerce-tabs ul.tabs > li.active > a,
.woocommerce-tabs ul.tabs > li > a:hover {
  background: #0152BB;
  color: #fff;
  font-weight: 600;
}

/* ===== Bảng thông số / tài liệu ===== */
.woocommerce-tabs .hth-tab-content table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d3e6f8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  font-size: 15px;
  color: #2b2b2b;
}
.woocommerce-tabs .hth-tab-content table th,
.woocommerce-tabs .hth-tab-content table td {
  padding: 8px 26px;
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  line-height: 1.5;
  text-transform: none;
  border: 0;
  border-bottom: 1px solid #e6f0fa;
  background: transparent;
}
.woocommerce-tabs .hth-tab-content table th + th,
.woocommerce-tabs .hth-tab-content table td + td {
  border-left: 1px solid #e6f0fa;
}
.woocommerce-tabs .hth-tab-content table tr:last-child td,
.woocommerce-tabs .hth-tab-content table tr:last-child th { border-bottom: 0; }

/* Cột 1 rộng 35% */
.woocommerce-tabs .hth-tab-content table th:first-child,
.woocommerce-tabs .hth-tab-content table td:first-child { width: 35%; }

/* Hàng tiêu đề */
.woocommerce-tabs .hth-tab-content table thead th,
.woocommerce-tabs .hth-tab-content table thead td,
.woocommerce-tabs .hth-tab-content table tr:first-child th {
  background: #dbeeff;
  color: #0b57c7;
  font-weight: 700;
}

/* Hàng xen kẽ: hàng dữ liệu đầu tiên màu trắng, hàng 2 màu xanh nhạt */
.woocommerce-tabs .hth-tab-content table tbody tr:nth-child(even) td {
  background: #f3f9fe;
}
.woocommerce-tabs .hth-tab-content table tbody tr:nth-child(odd) td {
  background: #fff;
}

.spcd-box{width:100%;max-width:322px;background:#fff;border:1px solid #dfe3e8;border-radius:8px;overflow:hidden;font-family:inherit}
.spcd-head{background:#d9eefc;color:#0b5cb8;font-weight:700;font-size:16px;line-height:1.3;padding:14px 16px;border-bottom:1px solid #dfe3e8}
.spcd-item{display:flex;align-items:center;gap:14px;padding:12px 14px 12px 12px;border-bottom:1px solid #e6e8eb;transition:.15s}
.spcd-item:last-child{border-bottom:0}
.spcd-thumb{flex:0 0 64px;width:64px;height:64px;display:block}
.spcd-img,.spcd-thumb img{width:64px;height:64px;object-fit:contain;display:block}
.spcd-noimg{display:block;width:64px;height:64px;background:#f1f3f5;border-radius:4px}
.spcd-info{flex:1;min-width:0}
.spcd-title{display:block;color:#00325E;font-size:16px;font-weight:500;line-height:1.35;text-decoration:none;word-break:break-word;transition:color .15s}
.spcd-desc{color:#999999;font-size:14px;line-height:1.4;margin-top:3px; text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;}
.spcd-price{color:#e0002a;font-weight:700;font-size:15px;margin-top:4px}
.spcd-cart{flex:0 0 36px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid #1a5fb4;border-radius:6px;color:#1a5fb4;background:#fff;text-decoration:none;transition:.15s}
.spcd-item:hover .spcd-title{color:#0b5cb8}
.spcd-item:hover .spcd-cart,.spcd-cart:hover{background:#e4002b;border-color:#e4002b;color:#fff}

h3.product-section-title.product-section-title-related {
  font-size: 32px;
  color: #0152BB;
}
.related {
  border-top: none;
}

.widget .widget-title {
    display: block;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 18px;
    padding: 10px 15px;
}
.widget .is-divider {
    display: none;
}
.widget_products .product_list_widget, 
.widget.flatsome_recent_posts > ul {
    border: 1px solid #D9D9D9;
}
.widget.flatsome_recent_posts > ul > li {
    padding: 0 10px;
}
.flatsome_recent_posts .recent-blog-posts-li a {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.widget_products .product_list_widget del {
    display: none;
}
.widget_products .product_list_widget .amount {
    font-size: 14px;
    color: #ef0000;
}
.hth-tab-docs ul {
  border: 1px solid #e1e1e1;
  list-style: none;
  overflow: hidden;
  margin: 0;
}
.hth-tab-docs ul li {
  margin: 0 !important;
  border-top: 1px solid #e1e1e1;
    padding: 10px 20px;
}
.hth-tab-docs ul li:nth-child(1) {
  border: none;
}
.hth-tab-docs ul li:nth-child(2n) {
  background: #cccccc26;
}
.hth-tab-docs ul li:hover {
  background: #00325e;
  cursor: pointer;
}
.hth-tab-docs ul li:hover * {
  color: #fff;
}
.hth-tab-docs ul li span {
  display: inline-block;
  width: 97%;
}
/* ===== Mobile ===== */
@media (max-width: 549px) {
  .woocommerce-tabs ul.tabs > li { flex: 1 1 calc(50% - 6px); }
  .woocommerce-tabs ul.tabs > li > a { padding: 12px 10px; font-size: 13px; }
  .woocommerce-tabs .hth-tab-content table th,
  .woocommerce-tabs .hth-tab-content table td { padding: 8px 12px; }
}

@media (min-width: 850px) {
  .category-page-row > .col.large-3 {
    max-width: 275px;
    flex-basis: 275px;
  }

    .post-item .box-blog-post.box-vertical .box-image {
        width: 30% !important;
        max-width: 30% !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 849px) {
  .hth-subcats { grid-template-columns: repeat(2, 1fr); }
  .hth-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ===== Mobile ===== */
@media (max-width: 549px) {
  .post-item .box-blog-post .post-title {
    font-size: 15px !important;
  }
}

/* ===== Mobile ===== */
@media (max-width: 849px) {
  .at-title-product .section-title {
    flex-wrap: wrap !important;
    row-gap: 10px !important;
  }
  .section-title-main {
    font-size: 20px !important;
  }
  .at-title-product .hpt-show-cats {
    order: 3;
    width: 100%;
    margin: 0 !important;
    overflow-x: auto;
  }
/*   .at-title-product .hpt_hdevvn_cats a {
    width: 90px !important;
  } */
  .hth-tab-docs ul li span {
    width: 93%
  }
}


@media only screen and (max-width: 480px) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
  .spcd-box {
    max-width: 100%;
  }
  h3.product-section-title.product-section-title-related {
    font-size: 26px;
  }
  .single-product .row-camket > .col {
    padding-bottom: 20px !important;
  }

}
