/* ==========================================================================
   X3SALES Home About — UX Builder element
   Tái tạo khối ".home-about" của nahaki.com.vn.
   TẤT CẢ CSS được scope dưới .vhm-home-about để KHÔNG ảnh hưởng Flatsome/Woo.
   ========================================================================== */

.vhm-home-about {
	/* Biến màu mặc định, có thể override qua inline style từ field colorpicker. */
	--vhm-subtitle-color: var(--fs-color-secondary);
	--vhm-title-color: var(--fs-color-primary);
	--vhm-number-color: var(--fs-color-primary);

	padding: 60px 0;
	overflow: hidden;
}
.absolute-footer {
    display: none;
}
.vhm-home-about__container {
	width: 100%;
	max-width: 1230px;
	margin: 0 auto;
	
	box-sizing: border-box;
}

/* --- Lưới 2 cột (tự dựng, không dùng .row/.col của Flatsome/Bootstrap) --- */
.vhm-home-about__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0 -15px;
	row-gap: 48px;
}

.vhm-home-about__content,
.vhm-home-about__media {
	width: 100%;
	padding: 0 15px;
	box-sizing: border-box;
}

@media (min-width: 992px) {
	.vhm-home-about__content,
	.vhm-home-about__media {
		width: 50%;
	}
	/* Bản gốc: gallery bên trái, nội dung bên phải (order-lg-0 / order-lg-2). */
	.vhm-home-about__media {
		order: 0;
	}
	.vhm-home-about__content {
		order: 2;
	}
}

/* --------------------------------- Nội dung -------------------------------- */
.vhm-home-about__subtitle {
	color: var(--vhm-subtitle-color);
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.vhm-home-about__subtitle::before {
	content: "";
	width: 23px;
	height: 3px;
	background-color: var(--vhm-subtitle-color);
	display: inline-block;
	position: relative;
	top: -4px;
	margin-right: 16px;
}

.vhm-home-about__title {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--vhm-title-color);
	text-transform: uppercase;
	margin: 0 0 20px;
}

.vhm-home-about__text {
	font-size: 18px;
	line-height: 1.5;
	margin-bottom: 20px;
}

.vhm-home-about__text p {
	margin-bottom: 12px;
}

/* --------------------------------- Số liệu -------------------------------- */
.vhm-home-about__stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	row-gap: 24px;
	margin-top: 10px;
}

.vhm-home-about__stat {
	width: 50%;            /* mobile: 2 ô / hàng */
	padding: 0 8px;
	box-sizing: border-box;
	text-align: center;
}

@media (min-width: 576px) {
	.vhm-home-about__stat {
		width: 33.3333%;   /* >=576px: 3 ô / hàng */
		text-align: left;
	}
}

.vhm-home-about__stat-icon {
	width: 70px;
	height: 70px;
	object-fit: contain;
}

.vhm-home-about__stat-value {
	font-family: 'UTM Helve', UTMHelve, sans-serif;
	font-size: 44px;
	font-weight: 700;
	line-height: 46px;
	color: var(--vhm-number-color);
	margin: 12px 0;
}

.vhm-home-about__stat-label {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
}

/* ---------------------------------- Nút ----------------------------------- */
.vhm-home-about__button a {
	font-family: 'UTM Helve', UTMHelve, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #000;
	display: inline-flex;
	align-items: center;
	gap: 15px;
	margin-top: 40px;
	text-decoration: none;
	transition: color 0.3s ease;
}

/* Mũi tên (SVG inline, không phụ thuộc asset ngoài). */
.vhm-home-about__button a::after {
	content: "";
	width: 30px;
	height: 15px;
	display: inline-block;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='15' viewBox='0 0 30 15'%3E%3Cpath d='M28.7251 7.75006L29.3126 8.33756C29.4684 8.18174 29.5559 7.97041 29.5559 7.75006C29.5559 7.5297 29.4684 7.31837 29.3126 7.16256L28.7251 7.75006ZM29.3126 7.16256L22.8501 0.700056L21.6751 1.87506L28.1376 8.33756L29.3126 7.16256ZM28.1376 7.16256L21.6751 13.6251L22.8501 14.8001L29.3126 8.33756L28.1376 7.16256ZM28.7251 6.91816L0.525081 6.91816L0.52508 8.58196L28.7251 8.58196L28.7251 6.91816Z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='15' viewBox='0 0 30 15'%3E%3Cpath d='M28.7251 7.75006L29.3126 8.33756C29.4684 8.18174 29.5559 7.97041 29.5559 7.75006C29.5559 7.5297 29.4684 7.31837 29.3126 7.16256L28.7251 7.75006ZM29.3126 7.16256L22.8501 0.700056L21.6751 1.87506L28.1376 8.33756L29.3126 7.16256ZM28.1376 7.16256L21.6751 13.6251L22.8501 14.8001L29.3126 8.33756L28.1376 7.16256ZM28.7251 6.91816L0.525081 6.91816L0.52508 8.58196L28.7251 8.58196L28.7251 6.91816Z'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform 0.5s ease, opacity 0.5s ease;
}

.vhm-home-about__button a:hover {
	color: var(--vhm-subtitle-color);
}

.vhm-home-about__button a:hover::after {
	transform: translateX(-10px);
	opacity: 0;
}

@media (max-width: 575px) {
	.vhm-home-about__button {
		text-align: center;
	}
	.vhm-home-about__button a {
		justify-content: center;
	}
}

/* ---------------------------- Hình (1 ảnh duy nhất) ----------------------- */
/* Cột hình làm mốc định vị cho lớp nền trang trí (bản đồ chấm bi). */
.vhm-home-about__media {
	position: relative;
}

/* Nền trang trí ĐÈ DƯỚI ảnh (::before + z-index thấp hơn ảnh). */
.vhm-home-about__media::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 826px;
	max-width: 150%;
	height: 442px;
	background: url("../img/ab-bg.png") center center / contain no-repeat;
	pointer-events: none;
}

.vhm-home-about__img {
	position: relative;
	z-index: 2;            /* ảnh nằm TRÊN nền trang trí */
	max-width: 518px;
	margin: 0 auto;
}

.vhm-home-about__img-inner {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	line-height: 0;
}

.vhm-home-about__img-inner .vhm-home-about__img-el {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 767px) {
	.vhm-home-about__title {
		font-size: 28px;
	}
	.vhm-home-about__text {
		font-size: 14px;
	}
}

/* ==========================================================================
   X3SALES Home Categories — UX Builder element
   Clone khối ".home-cat text-white" của nahaki.com.vn.
   TẤT CẢ CSS scope dưới .vhm-home-cat (không ảnh hưởng Flatsome/Woo).
   ========================================================================== */
.vhm-home-cat {
	position: relative;
	padding: 60px 0 80px;
	color: #fff;
	
	overflow: hidden;
}

/* Lớp phủ tối tùy chọn (đặt qua field colorpicker). */
.vhm-home-cat__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.vhm-home-cat__inner {
	position: relative;
	z-index: 2;
	max-width: 1230px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* ----- Tiêu đề dạng ribbon ----- */
.vhm-home-cat__title {
	background: url("../img/bg-title.svg") center / contain no-repeat;
	max-width: 310px;
	min-height: 63px;
	margin: 0 auto 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.vhm-home-cat__title-text {
	width: 77%;
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	line-height: 1.2;
}

/* ----- Lưới card ----- */
.vhm-home-cat__grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -8px;
	row-gap: 1.5rem;
}
.vhm-home-cat__item {
	width: 50%;            /* mobile/tablet: 2 cột (giống col-6) */
	padding: 0 8px;
	box-sizing: border-box;
}
@media (min-width: 992px) {
	.vhm-home-cat--cols-2 .vhm-home-cat__item { width: 50%; }
	.vhm-home-cat--cols-3 .vhm-home-cat__item { width: 33.3333%; }
	.vhm-home-cat--cols-4 .vhm-home-cat__item { width: 25%; }
}

/* ----- Card ----- */
.vhm-home-cat__box {
	position: relative;
	display: block;
	border: 2px solid #fff;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
}
.vhm-home-cat__img {
	position: relative;
	padding-top: 61%;      /* tỉ lệ khung ảnh giống bản gốc */
	overflow: hidden;
}
.vhm-home-cat__img-el {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.vhm-home-cat__box:hover .vhm-home-cat__img-el {
	transform: scale(1.06);
}
.vhm-home-cat__name {
	position: absolute;
	inset: 0;
	z-index: 2;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 8px;
	box-sizing: border-box;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	background-color: rgba(0, 0, 0, 0.2);
	transition: background-color 0.3s ease;
}
.vhm-home-cat__box:hover .vhm-home-cat__name {
	background-color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 575px) {
	.vhm-home-cat {
		padding: 40px 0 50px;
	}
	.vhm-home-cat__title-text {
		font-size: 16px;
	}
	.vhm-home-cat__name {
		font-size: 12px;
		text-transform: none;
	}
}


/* ==========================================================================
   X3SALES Home Project — UX Builder element
   Tái tạo khối ".home-project" (DỰ ÁN ĐÃ TRIỂN KHAI) của nahaki.com.vn.
   TẤT CẢ CSS scope dưới .vhm-home-project → KHÔNG ảnh hưởng Flatsome/Woo.
   ========================================================================== */

.vhm-home-project {
	/* Biến màu mặc định, có thể override qua inline style từ field colorpicker. */
	--vhm-pj-border: var(--fs-color-primary);
	--vhm-pj-hover: var(--fs-color-primary);

	padding: 70px 0 30px;
}

.vhm-home-project__container {
	width: 100%;
	max-width: 1230px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* --- Khung viền ngoài bo góc + tiêu đề ribbon đè lên cạnh trên --- */
.vhm-home-project__wrap {
	position: relative;
	border: 2px solid var(--vhm-pj-border);
	border-radius: 30px;
	padding: 40px;
	box-sizing: border-box;
}

/* Ribbon tiêu đề "DỰ ÁN ĐÃ TRIỂN KHAI" — căn giữa, đè lên cạnh trên của khung. */
.vhm-home-project__title {
	position: absolute;
	z-index: 9;
	top: -22px;
	left: 50%;
	transform: translateX(-50%);
	width: 368px;
	max-width: 90%;
	height: 81px;
	background: url("../img/bg-title.svg") center center / contain no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.vhm-home-project__title h2 {
	width: max-content;
	max-width: 90%;
	margin: 0;
	padding: 0 18px;
	color: #fff;
	font-family: 'UTM Helve', UTMHelve, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

/* --- Lưới 3 cột (tự dựng, KHÔNG dùng .row/.col của Flatsome/Bootstrap) --- */
.vhm-home-project__row {
	display: flex;
	flex-wrap: wrap;
	margin: 28px -12px 0; /* chừa chỗ cho ribbon tiêu đề đè lên cạnh trên */
}

.vhm-home-project__col {
	width: 100%;
	padding: 12px;
	box-sizing: border-box;
}

@media (min-width: 992px) {
	.vhm-home-project__col {
		width: 33.3333%;
	}
}

/* Hộp viền của từng cột danh mục. */
.vhm-home-project__col-inner {
	position: relative;
	height: 100%;
	border: 2px solid var(--vhm-pj-border);
	border-radius: 30px;
	padding: 30px;
	box-sizing: border-box;
}

/* Banner tiêu đề danh mục — thò ra mép trái hộp (giống bản gốc). */
.vhm-home-project__col-title {
	position: relative;
	left: -46px;
	min-width: 300px;
	max-width: 100%;
	height: 80px;
	padding-left: 87px;
	margin-bottom: 8px;
	background: url("/wp-content/uploads/2026/06/img.png") left center / contain no-repeat;
	box-sizing: border-box;
}

.vhm-home-project__col-title h3 {
	position: relative;
	top: 16px;
	width: 90%;
	margin: 0;
	color: #fff;
	font-family: 'UTM Helve', UTMHelve, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	-webkit-box-orient: vertical;
}

/* --- Card dự án: ảnh trái + tên phải LUÔN cùng 1 hàng (flexbox) --- */
.vhm-home-project__list {
	margin-top: 4px;
}

.vhm-home-project__card {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 20px;
	text-decoration: none;
}

.vhm-home-project__img {
	flex: 0 0 110px;       /* ảnh giữ bề rộng cố định, không co */
	width: 110px;
	height: auto;
	aspect-ratio: 1.5 / 1;
	object-fit: cover;
	border-radius: 6px;
	transition: transform 0.5s ease;
}

.vhm-home-project__card-title {
	flex: 1 1 auto;        /* tiêu đề chiếm phần còn lại của hàng */
	min-width: 0;          /* cho phép cắt chữ trong flex item */
	margin: 0;
	color: #000;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	transition: color 0.3s ease;
}

a.vhm-home-project__card:hover .vhm-home-project__img {
	transform: scale(1.05);
}

a.vhm-home-project__card:hover .vhm-home-project__card-title {
	color: var(--vhm-pj-hover);
}

/* --- Nút "Xem thêm dự án" + mũi tên (SVG inline, không phụ thuộc asset ngoài) --- */
.vhm-home-project__more {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	margin-top: 10px;
	color: #000;
	font-family: 'UTM Helve', UTMHelve, sans-serif;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.3s ease;
}

.vhm-home-project__more::after {
	content: "";
	width: 30px;
	height: 15px;
	display: inline-block;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='15' viewBox='0 0 30 15'%3E%3Cpath d='M28.7251 7.75006L29.3126 8.33756C29.4684 8.18174 29.5559 7.97041 29.5559 7.75006C29.5559 7.5297 29.4684 7.31837 29.3126 7.16256L28.7251 7.75006ZM29.3126 7.16256L22.8501 0.700056L21.6751 1.87506L28.1376 8.33756L29.3126 7.16256ZM28.1376 7.16256L21.6751 13.6251L22.8501 14.8001L29.3126 8.33756L28.1376 7.16256ZM28.7251 6.91816L0.525081 6.91816L0.52508 8.58196L28.7251 8.58196L28.7251 6.91816Z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='15' viewBox='0 0 30 15'%3E%3Cpath d='M28.7251 7.75006L29.3126 8.33756C29.4684 8.18174 29.5559 7.97041 29.5559 7.75006C29.5559 7.5297 29.4684 7.31837 29.3126 7.16256L28.7251 7.75006ZM29.3126 7.16256L22.8501 0.700056L21.6751 1.87506L28.1376 8.33756L29.3126 7.16256ZM28.1376 7.16256L21.6751 13.6251L22.8501 14.8001L29.3126 8.33756L28.1376 7.16256ZM28.7251 6.91816L0.525081 6.91816L0.52508 8.58196L28.7251 8.58196L28.7251 6.91816Z'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform 0.5s ease;
}

.vhm-home-project__more:hover {
	color: var(--vhm-pj-hover);
}

.vhm-home-project__more:hover::after {
	transform: translateX(8px);
}

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 1199px) {
	.vhm-home-project__col-title {
		left: -38px;
	}
}

@media (max-width: 991px) {
	.vhm-home-project__wrap {
		padding: 30px 20px 20px;
	}
	.vhm-home-project__col-inner {
		padding: 20px;
	}
	.vhm-home-project__col-title {
		left: -34px;
		min-width: 0;
	}
	.vhm-home-project__title h2 {
		font-size: 16px;
	}
	.vhm-home-project__col-title h3 {
		font-size: 14px;
	}
	.vhm-home-project__img {
		flex-basis: 110px;
		width: 110px;
	}
	.vhm-home-project__card-title {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.vhm-home-project__title {
		width: 300px;
		height: 66px;
	}
}

/* ==========================================================================
   X3SALES Home Product  (clone ".home-product" của nahaki.com.vn)
   Section: tiêu đề ribbon → thanh TAB danh mục → mỗi tab là 1 slider sản phẩm.
   TẤT CẢ CSS scope dưới .vhm-home-product → KHÔNG ảnh hưởng Flatsome/Woo/UX/owl.
   ========================================================================== */

.vhm-home-product {
	/* Biến cục bộ (có fallback) – PHP đổ màu/per-view qua inline style trên thẻ này. */
	--vhm-hp-tab: var(--fs-color-primary);
	--vhm-hp-tab-active: var(--fs-color-secondary);
	--vhm-hp-arrow: var(--fs-color-primary);
	--vhm-hp-panel: #F2F3F5;
	--vhm-hp-gap: 20px;
	--vhm-hp-pv: 2;    /* số CỘT/màn hình (mobile-first; ghi đè theo breakpoint) */

	box-sizing: border-box;
	padding: 40px 0;
	overflow: hidden;
}

.vhm-home-product *,
.vhm-home-product *::before,
.vhm-home-product *::after {
	box-sizing: border-box;
}

/* Số CỘT/màn hình theo breakpoint (khớp owl của nahaki: 2 / 3 / 4). */
@media (min-width: 768px) {
	.vhm-home-product { --vhm-hp-pv: 3; }
}
@media (min-width: 992px) {
	.vhm-home-product { --vhm-hp-pv: var(--vhm-hp-pv-lg, 4); }
}

.vhm-home-product__container {
	width: 100%;
	max-width: 1230px;
	margin: 0 auto;
	padding: 0 15px;
}

/* ----- Tiêu đề dạng ribbon (banner SVG navy, chồng lên mép trên panel xám) ----- */
.vhm-home-product__title {
	position: relative;
	z-index: 2;
	background: url("../img/bg-title.svg") center / contain no-repeat;
	width: 306px;
	max-width: 90%;
	min-height: 63px;
	margin: 0 auto -31px;          /* -31px: kéo panel xám lên ôm nửa dưới banner */
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.vhm-home-product__title-text {
	width: 77%;
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

/* ----- Panel nền xám bo góc (tiêu đề straddle mép trên) ----- */
.vhm-home-product__wrap {
	position: relative;
	background: var(--vhm-hp-panel);
	border-radius: 16px;
	padding: 56px 36px 40px;       /* padding-top chừa chỗ cho banner straddle */
}

/* ----- Thanh tab (pills) ----- */
.vhm-home-product__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px;
}

.vhm-home-product__tab {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	color: #fff;
	background-color: var(--vhm-hp-tab);
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.vhm-home-product__tab:hover,
.vhm-home-product__tab:focus {
	opacity: 0.92;
	outline: none;
}

.vhm-home-product__tab.is-active {
	background-color: var(--vhm-hp-tab-active);
}

/* Tablet trở xuống: thanh tab thành lưới 2 cột, mỗi nút lấp đầy ô (giống nahaki). */
@media (max-width: 991px) {
	.vhm-home-product__tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.vhm-home-product__tab {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		text-align: center;
	}
}

/* ----- Vùng panel: chỉ hiện panel đang active ----- */
.vhm-home-product__panel {
	display: none;
}

.vhm-home-product__panel.is-active {
	display: block;
}

/* ----- Slider ----- */
.vhm-home-product__slider {
	position: relative;
}

/* Viewport là khối cuộn ngang; track tràn ra ngoài tạo vùng cuộn. */
.vhm-home-product__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;   /* ẩn scrollbar IE/Edge */
	scrollbar-width: none;      /* ẩn scrollbar Firefox  */
}

.vhm-home-product__viewport::-webkit-scrollbar {
	display: none;              /* ẩn scrollbar WebKit   */
}

/* Track = lưới auto-flow theo CỘT: mỗi cột có N dòng (rows), các cột nối tiếp
   theo chiều ngang → tổng bề rộng > viewport nên cuộn được. */
.vhm-home-product__track {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(2, auto);   /* 2 DÒNG (mặc định, giống nahaki) */
	grid-auto-columns: calc((100% - (var(--vhm-hp-pv) - 1) * var(--vhm-hp-gap)) / var(--vhm-hp-pv));
	gap: var(--vhm-hp-gap);
	padding: 4px 0;
}

/* Tùy chọn 1 dòng (qua modifier class từ field "Số dòng"). */
.vhm-home-product--rows-1 .vhm-home-product__track {
	grid-template-rows: auto;
}

.vhm-home-product__slide {
	min-width: 0;               /* cho phép card co trong ô grid (chống tràn) */
	scroll-snap-align: start;   /* 2 ô cùng cột có cùng mép trái → snap theo cột */
}

/* ===== Chế độ UX Builder: lưới tĩnh, hiện hết sản phẩm, tắt cuộn/mũi tên/chấm =====
   Tránh hiển thị lệch khi preview trong builder (iframe đổi bề rộng + wrapper editor). */
.vhm-home-product--builder .vhm-home-product__viewport {
	overflow: visible;
	scroll-snap-type: none;
}
.vhm-home-product--builder .vhm-home-product__track {
	display: flex;
	flex-wrap: wrap;
	grid-template-rows: none;
}
.vhm-home-product--builder .vhm-home-product__slide {
	width: calc((100% - (var(--vhm-hp-pv) - 1) * var(--vhm-hp-gap)) / var(--vhm-hp-pv));
}
.vhm-home-product--builder .vhm-home-product__nav,
.vhm-home-product--builder .vhm-home-product__dots {
	display: none;
}

/* ----- Thẻ sản phẩm (tái tạo .item-right-list-products) ----- */
.vhm-home-product__card {
	height: 100%;
	padding: 16px 9px;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 10px;
	box-shadow: 0 4px 25px 0 rgba(0, 0, 0, 0.15);
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.vhm-home-product__card:hover {
	border-color: var(--vhm-hp-tab);
	box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.18);
}

.vhm-home-product__media {
	display: block;
	position: relative;
	overflow: hidden;
	margin-bottom: 16px;
	border-radius: 6px;
	background: #fff;
}

.vhm-home-product__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;   /* hiện trọn sản phẩm trên nền trắng, không cắt/méo */
	transition: transform 0.4s ease;
}

.vhm-home-product__card:hover .vhm-home-product__img {
	transform: scale(1.06);
}

.vhm-home-product__caption {
	text-align: center;
}

.vhm-home-product__name {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a;
	text-transform: none;
	/* Ghim 2 dòng như bản gốc. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 44px;
}

.vhm-home-product__name a {
	color: inherit;
	text-decoration: none;
}

.vhm-home-product__name a:hover {
	color: var(--vhm-hp-tab);
}

/* ----- Nút điều hướng (prev/next) ----- */
/* Mặc định ẩn; chỉ hiện khi slider thật sự cuộn được (JS thêm .is-scrollable)
   và từ tablet trở lên (mobile dùng vuốt + chấm). */
.vhm-home-product__nav {
	display: none;
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	cursor: pointer;
	position: absolute;
	/* Canh giữa theo chiều cao viewport (trừ ~18px cho hàng chấm bên dưới). */
	top: calc(50% - 18px);
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	background-color: var(--vhm-hp-arrow);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.vhm-home-product__nav:hover {
	opacity: 0.9;
}

/* Đặt mũi tên trong dải padding của panel xám (sát hai mép, không bị cắt). */
.vhm-home-product__nav--prev { left: -22px; }
.vhm-home-product__nav--next { right: -22px; }

.vhm-home-product__nav[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* Hiện mũi tên khi cuộn được, từ tablet trở lên. */
@media (min-width: 768px) {
	.vhm-home-product__slider.is-scrollable .vhm-home-product__nav {
		display: block;
	}
}

/* ----- Chấm điều hướng (dots) ----- */
.vhm-home-product__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.vhm-home-product__dots:empty {
	margin-top: 0;
}

/* Tăng specificity (.vhm-home-product ...) để thắng style <button> mặc định của theme. */
.vhm-home-product .vhm-home-product__dot {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	flex: 0 0 12px;          /* không co/giãn → giữ đúng bề rộng */
	width: 12px;
	min-width: 12px;
	height: 12px;
	min-height: 12px;
	padding: 0;
	margin: 0;
	border: 0;
	line-height: 0;
	font-size: 0;
	border-radius: 50%;      /* tròn */
	background-color: rgba(0, 0, 0, 0.15);
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.vhm-home-product .vhm-home-product__dot.is-active {
	background-color: var(--vhm-hp-arrow);
}

/* ----- Tinh chỉnh nhỏ trên mobile ----- */
@media (max-width: 767px) {
	.vhm-home-product {
		padding: 28px 0;
		--vhm-hp-gap: 10px;   /* khớp owl mobile margin:10 của nahaki */
	}
	.vhm-home-product__title {
		min-height: 52px;
		margin-bottom: -26px;
	}
	.vhm-home-product__title-text {
		font-size: 15px;
	}
	.vhm-home-product__wrap {
		padding: 44px 14px 28px;
	}
	.vhm-home-product__tab {
		font-size: 12px;
		padding: 8px 12px;
	}
	.vhm-home-product__card {
		padding: 8px 6px;
	}
	.vhm-home-product__name {
		font-size: 13px;
		min-height: 38px;
	}
}

/* ==========================================================================
   X3SALES Home Review — UX Builder element
   Clone khối ".home-review text-white home-dot" của nahaki.com.vn.
   Slider scroll-snap thuần, scope dưới .vhm-home-review (không đụng Flatsome/Woo).
   ========================================================================== */
.vhm-home-review {
	position: relative;
	padding: 60px 0;
	color: #fff;
	background: #1a2238 url("../img/review-bg-default.jpg") center / cover no-repeat;
	overflow: hidden;
}
.vhm-home-review__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.vhm-home-review__inner {
	position: relative;
	z-index: 2;
	max-width: 1230px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}

/* ----- Tiêu đề (kiểu .title-af: có gạch trang trí bên dưới) ----- */
.vhm-home-review__title {
	text-align: center;
}
.vhm-home-review__title-text {
	margin: 0 0 60px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	text-transform: uppercase;
}
.vhm-home-review__title-text::after {
	content: "";
	display: block;
	width: 256px;
	max-width: 100%;
	height: 13px;
	margin: 15px auto 0;
	background: url("../img/icon-title.svg") center / contain no-repeat;
}

/* ----- Slider (scroll-snap) ----- */
.vhm-home-review__slider {
	position: relative;
}
.vhm-home-review__viewport {
	display: flex;
	gap: 60px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.vhm-home-review__viewport::-webkit-scrollbar {
	display: none;
}
.vhm-home-review__item {
	flex: 0 0 100%;             /* mobile/tablet: 1 review / màn hình */
	scroll-snap-align: start;
	box-sizing: border-box;
}
@media (min-width: 992px) {
	.vhm-home-review--items-1 .vhm-home-review__item { flex-basis: 100%; }
	.vhm-home-review--items-2 .vhm-home-review__item { flex-basis: calc((100% - 60px) / 2); }
	.vhm-home-review--items-3 .vhm-home-review__item { flex-basis: calc((100% - 120px) / 3); }
}

/* ----- Card review ----- */
.vhm-home-review__card {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	height: 100%;
}
.vhm-home-review__avatar {
	width: 80px;
	height: 80px;
	flex: 0 0 80px;
	object-fit: cover;
	border: 2px solid #fff;
	border-radius: 50%;
}
.vhm-home-review__content {
	flex: 1 1 auto;
	min-width: 0;
	background: rgba(0, 0, 0, 0.3);
	padding: 30px;
	border-radius: 20px;
}
.vhm-home-review__text {
	font-size: 15px;
	line-height: 1.6;
}
.vhm-home-review__text p {
	margin: 0 0 12px;
}
.vhm-home-review__text p:last-child {
	margin-bottom: 0;
}
.vhm-home-review__name {
	margin: 20px 0 0;
	font-size: 16px;
	font-weight: 700;
}

/* ----- Dots ----- */
.vhm-home-review__dots {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 40px;
}
.vhm-home-review__dots:empty {
	display: none;
}
.vhm-home-review__dot {
	flex: 0 0 15px;        /* không cho flex co/giãn -> giữ đúng 15px */
	width: 15px;
	height: 15px;
	/* Hoá giải style mặc định Flatsome áp cho MỌI <button>
	   (min-height:2.5em; min-width:24px; padding:0 1.2em; margin-right:1em). */
	min-width: 15px;
	min-height: 15px;
	max-width: 15px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	line-height: 0;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 0.2);
	transition: background-color 0.3s ease;
}
.vhm-home-review__dot.is-active {
	background-color: #fff;
}

/* ----- Responsive ----- */
@media (max-width: 575px) {
	.vhm-home-review__title-text {
		font-size: 22px;
		margin-bottom: 30px;
	}
	.vhm-home-review__card {
		flex-direction: column;
		gap: 20px;
		align-items: center;
		text-align: center;
	}
	.vhm-home-review__content {
		width: 100%;
	}
}

/* ==========================================================================
   X3SALES Menu List — UX Builder element
   Khối "danh mục" dạng sidebar: tiêu đề + đường kẻ + danh sách mục (title + link).
   KHÔNG có màu nền; màu chữ kế thừa khối cha (có thể override bằng field "Màu chữ").
   Scope dưới .vhm-menu-list để KHÔNG ảnh hưởng Flatsome/Woo.
   ========================================================================== */

.vhm-menu-list {
	/* Đường kẻ phân cách bám theo màu chữ hiện tại (nhạt đi) -> hợp cả nền sáng lẫn tối. */
	--vhm-ml-line: color-mix(in srgb, currentColor 22%, transparent);
}
.vhm-menu-list__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--vhm-ml-line);
    padding-left: 0px !important;
    margin-left: 0px !important;
}
.vhm-menu-list__title {
	margin: 0 0 14px;
	padding-bottom: 14px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .3px;
	color: inherit;
	border-bottom: 2px solid currentColor;
}

.vhm-menu-list__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vhm-menu-list__item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--vhm-ml-line);
}

.vhm-menu-list__item:last-child {
	border-bottom: 0;
}

.vhm-menu-list__link {
	display: block;
	padding: 11px 0;
	font-size: 16px;
	line-height: 1.4;
	color: inherit;
	text-decoration: none;
	transition: opacity .2s ease, padding-left .2s ease;
}

a.vhm-menu-list__link:hover {
	opacity: .75;
	padding-left: 6px;
}

/* =========================================================================
 * "Chip viền builder" — DÙNG CHUNG cho mọi element trang chủ (vhm_home_*).
 * Chỉ hiển thị BÊN TRONG UX Builder (hàm render trả các class này khi
 * ux_builder_is_active()). Frontend giữ nguyên bố cục thật → không bị ảnh hưởng.
 * ====================================================================== */

/* Dải biên tập của element CHA. */
.vhm-builder {
	display: block;
	margin: 0;
	padding: 16px;
	border: 1px dashed var(--fs-color-primary, #264b9c);
	border-radius: 10px;
	background: #f7f9fc;
	color: #1f2733;
}

.vhm-builder__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
}

.vhm-builder__note,
.vhm-bgroup__note {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #5b6675;
}

.vhm-builder__items {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Nhóm con kiểu container (Tab / Cột) — lồng trong dải của cha. */
.vhm-bgroup {
	flex: 1 1 240px;
	min-width: 0;
	padding: 12px;
	border: 1px dashed rgba(38, 75, 156, .5);
	border-radius: 8px;
	background: #fff;
}

.vhm-bgroup__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
}

/* Một chip (element con kiểu "lá"). */
.vhm-bchip {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 1 auto;
	max-width: 100%;
	min-height: 48px;
	padding: 8px 12px;
	border: 1px dashed rgba(38, 75, 156, .55);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.35;
}

.vhm-bchip--block {
	flex: 1 1 100%;
}

.vhm-bchip__tag {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--fs-color-primary, #264b9c);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	white-space: nowrap;
}

.vhm-bchip__thumb {
	flex: 0 0 auto;
}

.vhm-bchip__thumb img {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 6px;
}

.vhm-bchip__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.vhm-bchip__title {
	font-weight: 600;
	color: #1f2733;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vhm-bchip--block .vhm-bchip__title {
	white-space: normal;
}

.vhm-bchip__meta {
	font-size: 12px;
	color: #6b7585;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
