/* Hân Võ — layout danh mục sản phẩm (phong cách À Ơi Concept) */

:root {
	/* Bảng màu ấm (đã kiểm tra tương phản WCAG AA) */
	--hanvo-primary: #8b5e3c;      /* nâu cognac — nút, link, nhấn */
	--hanvo-primary-dark: #6e4528; /* hover */
	--hanvo-primary-soft: #f3eadf; /* nền cát nhạt */
	--hanvo-accent: #c8a165;       /* vàng ánh kim — chỉ trang trí */
	--hanvo-text: #3a2f28;
	--hanvo-muted: #7a6a5e;
	--hanvo-border: #e8ded2;
	--hanvo-red: #b4432c;          /* giá */
	--hanvo-grey: #fbf7f1;         /* nền kem */
	--hanvo-font: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
	--hanvo-heading: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---------- Thanh thông báo ---------- */
.hanvo-topbar {
	background: var(--hanvo-primary);
	color: #fff;
	font: 400 13px/1.4 var(--hanvo-font);
	text-align: center;
}
.hanvo-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 32px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 8px 16px;
}

/* ---------- Khung trang ---------- */
.hanvo-catalog,
.hanvo-catalog.ast-separate-container {
	background: #fff;
}
.hanvo-catalog .site-content {
	overflow-x: clip;
}
.hanvo-catalog .site-content > .ast-container {
	max-width: 1400px;
}
.hanvo-catalog #primary,
.hanvo-catalog.ast-separate-container #primary {
	margin: 0;
	padding: 0;
	width: 100%;
}
.hanvo-catalog.ast-separate-container .ast-woocommerce-container,
.hanvo-catalog .ast-woocommerce-container {
	background: transparent;
	padding: 0;
	box-shadow: none;
}
.hanvo-catalog #primary,
.hanvo-catalog #primary h1,
.hanvo-catalog #primary h2,
.hanvo-catalog #primary h3,
.hanvo-catalog #primary button,
.hanvo-catalog #primary select {
	font-family: var(--hanvo-font);
	color: var(--hanvo-text);
}

/* Ẩn phần mặc định đã được thay thế */
.hanvo-catalog .woocommerce-products-header,
.hanvo-catalog .ast-archive-description,
.hanvo-catalog .ast-shop-toolbar-container,
.hanvo-catalog .woocommerce-result-count,
.hanvo-catalog #primary > .woocommerce-breadcrumb,
.hanvo-catalog .ast-woocommerce-container > .woocommerce-breadcrumb,
.hanvo-catalog #primary .woocommerce-ordering {
	display: none !important;
}
.hanvo-catalog #primary .hanvo-toolbar .woocommerce-ordering {
	display: block !important;
}

/* ---------- Hero ---------- */
.hanvo-hero {
	display: grid;
	/* Cột ảnh vuông để ảnh sản phẩm (vuông) hiện trọn, không bị cắt */
	grid-template-columns: minmax(0, 1fr) min(520px, 42vw);
	margin: 0 calc(50% - 50vw);
	background: var(--hanvo-grey);
}
.hanvo-hero--no-image {
	grid-template-columns: 1fr;
}
.hanvo-hero__text {
	display: flex;
	flex-direction: column;
	min-height: 320px;
	padding: 40px max(24px, calc((100vw - 1400px) / 2 + 24px));
	padding-right: 48px;
}
.hanvo-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--hanvo-muted);
}
.hanvo-breadcrumb a {
	color: var(--hanvo-muted);
	text-decoration: none;
}
.hanvo-breadcrumb a:hover {
	color: var(--hanvo-primary);
}
.hanvo-catalog .hanvo-hero__title {
	margin: 24px 0 16px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.35;
}
.hanvo-hero__desc {
	max-width: 560px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
}
.hanvo-hero__desc p:last-child {
	margin-bottom: 0;
}
.hanvo-hero__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin: auto 0 0;
	padding: 24px 0 0;
	list-style: none;
}
.hanvo-hero-cat a {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80px;
	color: var(--hanvo-text);
	text-decoration: none;
}
.hanvo-hero-cat__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 50%;
	background: var(--hanvo-primary-soft);
	transition: border-color 0.2s;
}
.hanvo-hero-cat__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.hanvo-hero-cat__initial {
	font-size: 22px;
	font-weight: 500;
	color: var(--hanvo-primary);
}
.hanvo-hero-cat.is-active .hanvo-hero-cat__img,
.hanvo-hero-cat a:hover .hanvo-hero-cat__img {
	border-color: var(--hanvo-primary);
}
.hanvo-hero-cat__label {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.3;
	text-align: center;
}
.hanvo-hero-cat.is-active .hanvo-hero-cat__label {
	font-weight: 500;
	color: var(--hanvo-primary);
}
.hanvo-hero__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	align-self: start;
	background: #f5efe8;
}
/* Ảnh tuyệt đối để chiều cao hero theo cột chữ, không theo kích thước ảnh gốc. */
.hanvo-hero__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: contain;
}

/* ---------- Thanh công cụ ---------- */
.hanvo-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--hanvo-border);
}
.hanvo-toolbar__left,
.hanvo-toolbar__right {
	display: flex;
	align-items: center;
	gap: 16px;
}
.hanvo-count {
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.hanvo-catalog .hanvo-filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--hanvo-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}
.hanvo-sort-label {
	font-size: 14px;
	text-decoration: underline;
	white-space: nowrap;
}
.hanvo-toolbar .woocommerce-ordering {
	margin: 0;
	float: none;
}
.hanvo-catalog .hanvo-toolbar .woocommerce-ordering select {
	min-width: 190px;
	height: 40px;
	padding: 0 32px 0 12px;
	border: 1px solid var(--hanvo-border);
	border-radius: 8px;
	background-color: #fff;
	font-size: 14px;
}

/* ---------- Layout bộ lọc | sản phẩm ---------- */
.hanvo-body {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 40px;
	padding: 32px 0 56px;
}
.hanvo-filter__head {
	display: none;
}
.hanvo-filter__group {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--hanvo-border);
}
.hanvo-filter__title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0 16px;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}
.hanvo-filter__title::-webkit-details-marker {
	display: none;
}
.hanvo-filter__title::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s;
}
.hanvo-filter__group[open] .hanvo-filter__title::after {
	transform: rotate(-135deg);
}
.hanvo-filter__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.hanvo-filter__list li {
	margin-bottom: 12px;
}
.hanvo-check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 300;
	line-height: 24px;
	color: var(--hanvo-text);
	text-decoration: none;
}
.hanvo-check::before {
	content: "";
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border: 1px solid #c9b9a8;
	border-radius: 4px;
	background: #fff center / 14px no-repeat;
}
.hanvo-check:hover {
	color: var(--hanvo-primary);
}
.hanvo-check.is-active {
	font-weight: 500;
}
.hanvo-check.is-active::before {
	border-color: var(--hanvo-primary);
	background-color: var(--hanvo-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.hanvo-filter__clear {
	font-size: 13px;
	color: var(--hanvo-primary);
	text-decoration: underline;
}
.hanvo-filter-overlay {
	display: none;
}

/* ---------- Lưới sản phẩm ---------- */
.hanvo-catalog .hanvo-products ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
	margin: 0 !important;
	padding: 0;
}
.hanvo-catalog .hanvo-products ul.products::before,
.hanvo-catalog .hanvo-products ul.products::after {
	display: none;
}
.hanvo-catalog .hanvo-products ul.products li.product.hanvo-card {
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	float: none;
	text-align: left;
}

.hanvo-card__media {
	position: relative;
	overflow: hidden;
}
.hanvo-card__img {
	position: relative;
	display: block;
	padding-bottom: 100%;
	background: #f5efe8;
}
.hanvo-card__img img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	transition: opacity 0.3s, transform 0.6s;
}
.hanvo-card__hover {
	opacity: 0;
}
.hanvo-card__media:hover .has-hover .hanvo-card__main {
	opacity: 0;
}
.hanvo-card__media:hover .has-hover .hanvo-card__hover {
	opacity: 1;
}
.hanvo-card__media:hover .hanvo-card__img:not(.has-hover) img {
	transform: scale(1.04);
}
.hanvo-card__tag {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 6px 12px;
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	line-height: 1.1;
	color: var(--hanvo-red);
}
.hanvo-card__actions {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}
.hanvo-card__media:hover .hanvo-card__actions,
.hanvo-card:focus-within .hanvo-card__actions {
	opacity: 1;
	visibility: visible;
}
.hanvo-card__buy {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	font-size: 14px;
	color: var(--hanvo-text);
	text-decoration: none;
}
.hanvo-card__buy:hover {
	background: var(--hanvo-primary);
	color: #fff;
}

.hanvo-card__body {
	padding-top: 16px;
}
.hanvo-card .hanvo-card__title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
}
.hanvo-card__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	color: var(--hanvo-text);
	text-decoration: none;
}
.hanvo-card__title a:hover {
	color: var(--hanvo-primary);
}
.hanvo-card__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}
.hanvo-size {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid var(--hanvo-border);
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--hanvo-text);
	text-decoration: none;
	white-space: nowrap;
}
.hanvo-size:hover {
	border-color: var(--hanvo-primary-dark);
	background: var(--hanvo-primary-dark);
	color: #fff;
}
.hanvo-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}
.hanvo-price,
.hanvo-price .woocommerce-Price-amount {
	font-size: 16px;
	font-weight: 600;
	color: var(--hanvo-red);
}
.hanvo-price-old,
.hanvo-price-old .woocommerce-Price-amount {
	font-size: 14px;
	font-weight: 500;
	color: var(--hanvo-muted);
}
.hanvo-price-badge {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--hanvo-primary-soft);
	font-size: 12px;
	color: var(--hanvo-primary);
}

/* Phân trang */
.hanvo-catalog .woocommerce-pagination {
	margin-top: 48px;
	text-align: center;
}
.hanvo-catalog .woocommerce-pagination ul.page-numbers,
.hanvo-catalog .woocommerce-pagination ul.page-numbers li {
	border: 0;
}
.hanvo-catalog .woocommerce-pagination .page-numbers li .page-numbers {
	min-width: 40px;
	margin: 0 4px;
	padding: 8px;
	border: 1px solid var(--hanvo-border);
	border-radius: 8px;
	color: var(--hanvo-text);
}
.hanvo-catalog .woocommerce-pagination .page-numbers li .page-numbers.current,
.hanvo-catalog .woocommerce-pagination .page-numbers li a.page-numbers:hover {
	border-color: var(--hanvo-primary);
	background: var(--hanvo-primary);
	color: #fff;
}

/* ---------- Khám phá thêm ---------- */
.hanvo-explore {
	padding: 56px 0 72px;
	border-top: 1px solid var(--hanvo-border);
}
.hanvo-explore__head {
	margin-bottom: 32px;
	text-align: center;
}
.hanvo-catalog .hanvo-explore__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--hanvo-primary);
}
.hanvo-explore__sub {
	margin: 0;
	font-size: 15px;
	font-weight: 300;
}
.hanvo-explore__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}
.hanvo-explore-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.hanvo-explore-card__img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f5efe8;
}
.hanvo-explore-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
}
.hanvo-explore-card:hover .hanvo-explore-card__img img {
	transform: scale(1.04);
}
.hanvo-catalog .hanvo-explore-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	text-align: center;
}
.hanvo-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 24px;
	border: 1px solid var(--hanvo-primary);
	border-radius: 16px;
	font-size: 15px;
	color: var(--hanvo-primary);
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.hanvo-btn-outline:hover,
.hanvo-btn-outline:focus {
	background: var(--hanvo-primary);
	color: #fff;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.hanvo-body {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 24px;
	}
	.hanvo-catalog .hanvo-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Mobile: bộ lọc thành ngăn kéo ---------- */
@media (max-width: 921px) {
	.hanvo-hero {
		grid-template-columns: 1fr;
	}
	.hanvo-hero__media {
		order: -1;
		aspect-ratio: auto;
		height: 260px;
	}
	.hanvo-hero__text {
		min-height: 0;
		padding: 24px 20px 32px;
	}
	.hanvo-hero-cat a {
		width: 64px;
	}
	.hanvo-hero-cat__img {
		width: 48px;
		height: 48px;
	}
	.hanvo-hero-cat__label {
		font-size: 12px;
	}
	.hanvo-catalog .hanvo-filter-toggle {
		display: inline-flex;
	}
	.hanvo-count,
	.hanvo-sort-label {
		display: none;
	}
	.hanvo-catalog .hanvo-toolbar .woocommerce-ordering select {
		min-width: 0;
		max-width: 52vw;
	}
	.hanvo-body {
		display: block;
		padding-top: 24px;
	}
	.hanvo-filter {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100000;
		width: min(320px, 85vw);
		padding: 0 24px 24px;
		overflow-y: auto;
		background: #fff;
		transform: translateX(-100%);
		transition: transform 0.25s ease;
	}
	.hanvo-filter__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 -24px 16px;
		padding: 16px 24px;
		border-bottom: 1px solid var(--hanvo-border);
	}
	.hanvo-filter__heading {
		margin: 0;
		font-size: 18px;
		font-weight: 600;
		text-transform: uppercase;
	}
	.hanvo-catalog .hanvo-filter__close {
		padding: 0 4px;
		border: 0;
		background: none;
		font-size: 28px;
		line-height: 1;
		color: var(--hanvo-text);
		cursor: pointer;
	}
	.hanvo-filter-overlay {
		position: fixed;
		inset: 0;
		z-index: 99999;
		display: block;
		background: rgba(0, 0, 0, 0.4);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s, visibility 0.25s;
	}
	.hanvo-filter-open .hanvo-filter {
		transform: none;
	}
	.hanvo-body--empty .hanvo-filter {
		position: static;
		width: auto;
		margin-bottom: 24px;
		padding: 0;
		transform: none;
	}
	.hanvo-body--empty .hanvo-filter__head,
	.hanvo-body--empty .hanvo-filter-overlay {
		display: none;
	}
	.hanvo-filter-open .hanvo-filter-overlay {
		opacity: 1;
		visibility: visible;
	}
	.hanvo-filter-open {
		overflow: hidden;
	}
	.hanvo-catalog .hanvo-products ul.products {
		gap: 28px 12px;
	}
	.hanvo-card .hanvo-card__title {
		font-size: 14px;
	}
	.hanvo-price,
	.hanvo-price .woocommerce-Price-amount {
		font-size: 15px;
	}
	/* Màn hình cảm ứng không có hover: luôn hiện nút "Mua ngay" */
	.hanvo-card__actions {
		opacity: 1;
		visibility: visible;
		padding: 8px;
	}
	.hanvo-card__buy {
		padding: 4px 10px;
		font-size: 12px;
	}
	.hanvo-explore__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hanvo-card__img img,
	.hanvo-explore-card__img img,
	.hanvo-filter {
		transition: none;
	}
}

/* =========================================================================
 * Thẻ sản phẩm dùng ngoài trang danh mục (trang chủ, shortcode [products])
 * ====================================================================== */
.hanvo-card {
	font-family: var(--hanvo-font);
}
.hanvo-home .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 24px;
	width: 100%;
	margin: 0 !important;
	padding: 0;
}
.hanvo-home .woocommerce ul.products.columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hanvo-home .woocommerce ul.products::before,
.hanvo-home .woocommerce ul.products::after {
	display: none;
}
.hanvo-home .woocommerce ul.products li.product.hanvo-card {
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	float: none;
	text-align: left;
}

/* =========================================================================
 * Trang chủ — đồng bộ với trang danh mục
 * ====================================================================== */
.hanvo-home .entry-content,
.hanvo-home .entry-content h1,
.hanvo-home .entry-content h2,
.hanvo-home .entry-content h3,
.hanvo-home .entry-content h4,
.hanvo-home .entry-content p {
	font-family: var(--hanvo-font);
}
.hanvo-home .entry-content {
	color: var(--hanvo-text);
}

/* Slider: giới hạn chiều cao để không chiếm hết màn hình */
.hanvo-home .metaslider .slides img {
	height: clamp(220px, 38vw, 560px) !important;
	object-fit: cover;
}

/* Khoảng cách các section gọn hơn */
.hanvo-home .entry-content > .wp-block-uagb-container.uagb-is-root-container {
	padding-top: 64px !important;
	padding-bottom: 64px !important;
}

/* Tiêu đề section: navy, in hoa như "KHÁM PHÁ THÊM" */
.hanvo-home .entry-content .uagb-heading-text {
	margin-bottom: 32px !important;
	font-size: 24px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--hanvo-primary) !important;
}

/* Ô bộ sưu tập: ảnh vuông, tiêu đề + mô tả căn giữa, nút viền navy */
.hanvo-home .uagb-infobox__content-wrap .uagb-ifb-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.hanvo-home .uagb-infobox__content-wrap .uagb-ifb-image-content {
	width: 100%;
	margin-bottom: 20px;
	overflow: hidden;
	background: #f5efe8;
}
.hanvo-home .uagb-infobox__content-wrap .uagb-ifb-image-content img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.6s;
}
.hanvo-home .uagb-infobox__content-wrap:hover .uagb-ifb-image-content img {
	transform: scale(1.04);
}
.hanvo-home .uagb-infobox__content-wrap .uagb-ifb-title {
	margin: 0 0 8px !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	color: var(--hanvo-text) !important;
}
.hanvo-home .uagb-infobox__content-wrap .uagb-ifb-desc {
	max-width: 340px;
	margin: 0 auto 20px !important;
	font-size: 14px !important;
	font-weight: 300;
	line-height: 1.6 !important;
	color: var(--hanvo-text) !important;
}
.hanvo-home .uagb-infobox__content-wrap .uagb-ifb-button-wrapper {
	margin-top: 0 !important;
}
.hanvo-home .uagb-infobox__content-wrap .wp-block-button .uagb-infobox-cta-link.wp-block-button__link {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 8px 24px !important;
	border: 1px solid var(--hanvo-primary) !important;
	border-radius: 16px !important;
	background: transparent !important;
	font-family: var(--hanvo-font);
	font-size: 15px !important;
	font-weight: 400;
	line-height: 1.4 !important;
	text-transform: none !important;
	color: var(--hanvo-primary) !important;
	transition: background 0.2s, color 0.2s;
}
.hanvo-home .uagb-infobox__content-wrap .wp-block-button .uagb-infobox-cta-link.wp-block-button__link:hover,
.hanvo-home .uagb-infobox__content-wrap .wp-block-button .uagb-infobox-cta-link.wp-block-button__link:focus {
	background: var(--hanvo-primary) !important;
	color: #fff !important;
}
.hanvo-home .uagb-infobox__content-wrap .uagb-infobox-cta-link svg {
	fill: currentColor !important;
}

/* Section cảm nhận khách hàng: nền xám nhạt như hero danh mục */
.hanvo-home .entry-content > .wp-block-uagb-container:has(.wp-block-uagb-testimonial) {
	background: var(--hanvo-grey) !important;
}
.hanvo-home .uagb-tm__desc,
.hanvo-home .uagb-tm__desc em {
	font-family: var(--hanvo-font);
	font-size: 15px !important;
	font-weight: 300 !important;
	line-height: 1.7 !important;
	color: var(--hanvo-text) !important;
}
.hanvo-home .uagb-tm__author-name,
.hanvo-home .uagb-tm__author-name strong {
	font-weight: 600 !important;
	color: var(--hanvo-primary) !important;
}
.hanvo-home .uagb-tm__company,
.hanvo-home .uagb-tm__company strong {
	font-weight: 400 !important;
	color: var(--hanvo-muted) !important;
}

@media (max-width: 1100px) {
	.hanvo-home .woocommerce ul.products,
	.hanvo-home .woocommerce ul.products.columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 921px) {
	.hanvo-home .entry-content > .wp-block-uagb-container.uagb-is-root-container {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}
	.hanvo-home .entry-content .uagb-heading-text {
		margin-bottom: 24px !important;
		font-size: 20px !important;
	}
	.hanvo-home .woocommerce ul.products,
	.hanvo-home .woocommerce ul.products.columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 12px;
	}
	.hanvo-home .hanvo-card__actions {
		opacity: 1;
		visibility: visible;
		padding: 8px;
	}
	.hanvo-home .hanvo-card__buy {
		padding: 4px 10px;
		font-size: 12px;
	}
}

/* =========================================================================
 * Trang chủ — bố cục theo markcross.vn (front-page.php)
 * ====================================================================== */
.hanvo-front {
	width: 100%;
	min-width: 0;
	font-family: var(--hanvo-font);
	color: var(--hanvo-text);
}
.hanvo-front h2,
.hanvo-front h3,
.hanvo-front p,
.hanvo-front a {
	font-family: var(--hanvo-font);
}
.hanvo-home .site-content {
	overflow-x: clip;
}
.hanvo-home .site-content > .ast-container {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}
.hanvo-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}
.hanvo-fp-slider,
.hanvo-fp-services,
.hanvo-fp-testimonials,
.hanvo-fp-cta {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Dải cam kết */
.hanvo-fp-services {
	background: var(--hanvo-grey);
	border-bottom: 1px solid var(--hanvo-border);
}
.hanvo-fp-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hanvo-fp-service {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 28px 16px;
}
.hanvo-fp-service + .hanvo-fp-service {
	border-left: 1px dashed #e0d3c4;
}
.hanvo-fp-service__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--hanvo-primary-soft);
}
.hanvo-fp-service__icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: var(--hanvo-primary);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.hanvo-front .hanvo-fp-service__title {
	margin: 0 0 2px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--hanvo-primary);
}
.hanvo-fp-service__desc {
	margin: 0;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.5;
}

/* Tiêu đề section có kẻ ngang hai bên */
.hanvo-front .hanvo-sec-title {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 32px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--hanvo-primary);
}
.hanvo-sec-title::before,
.hanvo-sec-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--hanvo-border);
}
.hanvo-sec-title span {
	max-width: 80%;
}

/* Khối sản phẩm */
.hanvo-fp-sec {
	padding: 56px 0 8px;
}
.hanvo-fp-products + .hanvo-fp-products {
	padding-top: 40px;
}
.hanvo-front .woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px 24px;
	margin: 0 !important;
	padding: 0;
}
.hanvo-front .woocommerce ul.products::before,
.hanvo-front .woocommerce ul.products::after {
	display: none;
}
.hanvo-front .woocommerce ul.products li.product.hanvo-card {
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	float: none;
	text-align: left;
}
.hanvo-fp-more {
	margin-top: 32px;
	text-align: center;
}
.hanvo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 32px;
	border: 1px solid var(--hanvo-primary);
	border-radius: 24px;
	background: var(--hanvo-primary);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.hanvo-btn:hover,
.hanvo-btn:focus {
	background: #fff;
	color: var(--hanvo-primary);
}
.hanvo-btn span {
	font-size: 20px;
	line-height: 1;
}

/* Kích thước giường */
.hanvo-fp-beds {
	padding-bottom: 64px;
}
.hanvo-fp-beds__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hanvo-fp-bed {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 24px 12px;
	border: 1px solid var(--hanvo-border);
	border-radius: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.hanvo-fp-bed:hover {
	border-color: var(--hanvo-primary);
	box-shadow: 0 6px 20px rgba(110, 69, 40, 0.08);
}
.hanvo-fp-bed__shape {
	position: relative;
	display: block;
	width: calc(var(--w) * 110px);
	height: 120px;
	border: 2px solid var(--hanvo-primary);
	border-radius: 8px 8px 4px 4px;
	background: linear-gradient(var(--hanvo-primary-soft) 0 32%, #fff 32%);
}
.hanvo-fp-bed__shape i {
	position: absolute;
	top: 8px;
	width: calc(50% - 12px);
	height: 18px;
	border: 1.5px solid var(--hanvo-primary);
	border-radius: 6px;
	background: #fff;
}
.hanvo-fp-bed__shape i:first-child {
	left: 8px;
}
.hanvo-fp-bed__shape i:last-child {
	right: 8px;
}
.hanvo-fp-bed__label {
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

/* Cảm nhận khách hàng (block Spectra) */
.hanvo-fp-testimonials {
	background: var(--hanvo-grey);
}
.hanvo-fp-testimonials .entry-content > .wp-block-uagb-container {
	padding-top: 64px !important;
	padding-bottom: 64px !important;
	background: transparent !important;
}
.hanvo-fp-testimonials .uagb-heading-text {
	font-family: var(--hanvo-font);
	font-size: 24px !important;
	font-weight: 500 !important;
	text-transform: uppercase;
	color: var(--hanvo-primary) !important;
}

/* Khối nhận tư vấn */
.hanvo-fp-cta {
	background: var(--hanvo-primary);
	color: #fff;
}
.hanvo-fp-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 48px;
	padding-bottom: 48px;
}
.hanvo-front .hanvo-fp-cta__title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 500;
	color: #fff;
}
.hanvo-front .hanvo-fp-cta__text {
	margin: 0;
	font-size: 15px;
	font-weight: 300;
	color: #fff;
}
.hanvo-fp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.hanvo-btn--light {
	border-color: #fff;
	background: #fff;
	color: var(--hanvo-primary);
}
.hanvo-btn--light:hover,
.hanvo-btn--light:focus {
	background: transparent;
	color: #fff;
}
.hanvo-btn--ghost {
	border-color: #fff;
	background: transparent;
	color: #fff;
}
.hanvo-btn--ghost:hover,
.hanvo-btn--ghost:focus {
	background: #fff;
	color: var(--hanvo-primary);
}

@media (max-width: 1100px) {
	.hanvo-front .woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 921px) {
	.hanvo-fp-services__grid {
		grid-template-columns: 1fr;
	}
	.hanvo-fp-service {
		justify-content: flex-start;
		padding: 14px 4px;
	}
	.hanvo-fp-service + .hanvo-fp-service {
		border-left: 0;
		border-top: 1px dashed #e0d3c4;
	}
	.hanvo-fp-sec {
		padding-top: 40px;
	}
	.hanvo-front .hanvo-sec-title {
		gap: 12px;
		margin-bottom: 24px;
		font-size: 18px;
	}
	.hanvo-front .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 12px;
	}
	.hanvo-front .hanvo-card__actions {
		opacity: 1;
		visibility: visible;
		padding: 8px;
	}
	.hanvo-front .hanvo-card__buy {
		padding: 4px 10px;
		font-size: 12px;
	}
	.hanvo-fp-beds__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.hanvo-fp-bed__shape {
		width: calc(var(--w) * 90px);
		height: 100px;
	}
	.hanvo-front .hanvo-fp-cta__title {
		font-size: 21px;
	}
}

/* Dòng sản phẩm chính (3 ô chất liệu) */
.hanvo-fp-lines__grid {
	position: relative; /* giữ .screen-reader-text bên trong khung cuộn trên mobile */
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.hanvo-fp-line {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--hanvo-border);
	border-radius: 12px;
	background: #fff;
	transition: box-shadow 0.2s, border-color 0.2s;
}
.hanvo-fp-line:hover {
	border-color: var(--hanvo-primary);
	box-shadow: 0 8px 24px rgba(110, 69, 40, 0.1);
}
.hanvo-fp-line__img {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f5efe8;
}
.hanvo-fp-line__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s;
}
.hanvo-fp-line:hover .hanvo-fp-line__img img {
	transform: scale(1.04);
}
.hanvo-fp-line__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	padding: 24px 24px 28px;
	text-align: center;
}
.hanvo-front .hanvo-fp-line__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	color: var(--hanvo-primary);
}
.hanvo-front .hanvo-fp-line__desc {
	flex: 1;
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
}
@media (max-width: 921px) {
	.hanvo-fp-lines__grid {
		display: flex;
		gap: 16px;
		margin: 0 -20px;
		padding: 0 20px 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 20px;
		-webkit-overflow-scrolling: touch;
	}
	.hanvo-fp-line {
		flex: 0 0 78%;
		scroll-snap-align: start;
	}
	.hanvo-fp-line__body {
		padding: 18px 16px 22px;
	}
}

/* Bộ sưu tập chưa có sản phẩm */
.hanvo-fp-empty {
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	padding: 24px;
	border: 1px dashed #d9c7b3;
	border-radius: 12px;
	background: var(--hanvo-grey);
}
.hanvo-fp-empty__img {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: #f5efe8;
}
.hanvo-fp-empty__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hanvo-front .hanvo-fp-empty__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	color: var(--hanvo-primary);
}
.hanvo-front .hanvo-fp-empty__desc {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}
.hanvo-fp-empty .hanvo-btn-outline {
	margin-top: 8px;
}
@media (max-width: 921px) {
	.hanvo-fp-empty {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 16px;
		text-align: center;
	}
	.hanvo-fp-empty__img {
		aspect-ratio: 16 / 10;
	}
}

/* =========================================================================
 * Tiêu đề dùng font serif Playfair Display — ấm áp, sang trọng
 * ====================================================================== */
.hanvo-catalog .hanvo-hero__title,
.hanvo-catalog .hanvo-explore__title,
.hanvo-front .hanvo-sec-title,
.hanvo-front .hanvo-fp-cta__title,
.hanvo-front .hanvo-fp-line__title,
.hanvo-front .hanvo-fp-empty__title,
.hanvo-catalog .hanvo-explore-card__title,
.hanvo-home .entry-content .uagb-heading-text,
.hanvo-fp-testimonials .uagb-heading-text {
	font-family: var(--hanvo-heading) !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.hanvo-front .hanvo-sec-title,
.hanvo-catalog .hanvo-explore__title,
.hanvo-fp-testimonials .uagb-heading-text {
	font-size: 30px !important;
	color: var(--hanvo-text) !important;
}
.hanvo-sec-title::before,
.hanvo-sec-title::after {
	background: linear-gradient(90deg, transparent, var(--hanvo-accent));
	height: 1px;
}
.hanvo-sec-title::after {
	background: linear-gradient(90deg, var(--hanvo-accent), transparent);
}
.hanvo-catalog .hanvo-hero__title {
	font-size: 34px;
}
.hanvo-front .hanvo-fp-line__title,
.hanvo-front .hanvo-fp-empty__title {
	font-size: 22px;
	color: var(--hanvo-text);
}
.hanvo-explore__sub,
.hanvo-front .hanvo-fp-cta__text {
	font-family: var(--hanvo-font);
}

/* Dải cam kết & khối tư vấn theo tông ấm */
.hanvo-fp-services {
	background: var(--hanvo-grey);
}
.hanvo-fp-cta {
	background: linear-gradient(120deg, var(--hanvo-primary-dark), var(--hanvo-primary));
}
.hanvo-btn--light {
	color: var(--hanvo-primary-dark);
}

@media (max-width: 921px) {
	.hanvo-front .hanvo-sec-title,
	.hanvo-catalog .hanvo-explore__title,
	.hanvo-fp-testimonials .uagb-heading-text {
		font-size: 23px !important;
	}
	.hanvo-catalog .hanvo-hero__title {
		font-size: 26px;
	}
}

/* Nút tông latte nhẹ (đồng bộ với base.css) */
.hanvo-btn {
	border-color: var(--hanvo-btn-border, #e2cdb5);
	background: var(--hanvo-btn-bg, #efe2d3);
	color: var(--hanvo-btn-text, #5a3920);
}
.hanvo-btn:hover,
.hanvo-btn:focus {
	border-color: var(--hanvo-btn-border, #e2cdb5);
	background: var(--hanvo-btn-bg-hover, #e4d0b9);
	color: var(--hanvo-btn-text, #5a3920);
}
.hanvo-card__buy:hover {
	background: var(--hanvo-btn-bg-hover, #e4d0b9);
	color: var(--hanvo-btn-text, #5a3920);
}
.hanvo-btn--light {
	border-color: #fff;
	background: #fff;
	color: var(--hanvo-btn-text, #5a3920);
}
.hanvo-btn--light:hover,
.hanvo-btn--light:focus {
	border-color: #fff;
	background: var(--hanvo-btn-bg, #efe2d3);
	color: var(--hanvo-btn-text, #5a3920);
}
.hanvo-btn--ghost {
	border-color: #fff;
	background: transparent;
	color: #fff;
}
.hanvo-btn--ghost:hover,
.hanvo-btn--ghost:focus {
	background: #fff;
	color: var(--hanvo-btn-text, #5a3920);
}

/* Khối "Nhận tư vấn": nền cát sáng, chữ nâu — nhẹ nhàng, ấm */
.hanvo-fp-cta {
	border-top: 1px solid var(--hanvo-border);
	background: var(--hanvo-primary-soft);
	color: var(--hanvo-text);
}
.hanvo-front .hanvo-fp-cta__title {
	color: var(--hanvo-text);
}
.hanvo-front .hanvo-fp-cta__text {
	color: #5e4f45;
}
.hanvo-fp-cta .hanvo-btn--light {
	border-color: var(--hanvo-btn-border, #e2cdb5);
	background: #fff;
	color: var(--hanvo-btn-text, #5a3920);
}
.hanvo-fp-cta .hanvo-btn--light:hover,
.hanvo-fp-cta .hanvo-btn--light:focus {
	background: var(--hanvo-btn-bg-hover, #e4d0b9);
	color: var(--hanvo-btn-text, #5a3920);
}
.hanvo-fp-cta .hanvo-btn--ghost {
	border-color: var(--hanvo-primary);
	background: transparent;
	color: var(--hanvo-primary);
}
.hanvo-fp-cta .hanvo-btn--ghost:hover,
.hanvo-fp-cta .hanvo-btn--ghost:focus {
	border-color: var(--hanvo-btn-border, #e2cdb5);
	background: #fff;
	color: var(--hanvo-btn-text, #5a3920);
}

/* Ô tròn danh mục trong hero: to, rõ, giống mẫu À Ơi */
.hanvo-hero__cats {
	gap: 20px 28px;
}
.hanvo-hero-cat a {
	width: 96px;
}
.hanvo-hero-cat__img {
	width: 84px;
	height: 84px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--hanvo-border);
	transition: box-shadow 0.2s, transform 0.2s;
}
.hanvo-hero-cat a:hover .hanvo-hero-cat__img {
	box-shadow: 0 0 0 2px var(--hanvo-accent);
	transform: translateY(-2px);
}
.hanvo-hero-cat.is-active .hanvo-hero-cat__img {
	border-color: #fff;
	box-shadow: 0 0 0 2px var(--hanvo-primary);
}
.hanvo-hero-cat__label {
	margin-top: 10px;
	font-size: 14px;
	color: var(--hanvo-text);
}
.hanvo-hero-cat.is-active .hanvo-hero-cat__label {
	font-weight: 600;
	color: var(--hanvo-primary);
}
