/**
 * Cưới hỏi Tơ Hồng – lớp nền thay cho Flatsome để CSS gốc của mẫu (devvn/theme.css, devvn/shop-flow.css)
 * chạy trên Blocksy + GreenShift: lưới row/col, section, ảnh, box, icon-box, nút, tab, accordion, banner trượt,
 * album, thẻ mẫu tráp, header/footer Blocksy.
 * Mốc màn hình giống Flatsome: nhỏ < 550px, vừa 550–849px, lớn ≥ 850px.
 */

:root {
	--fs-color-primary: #b71c32;
	--fs-color-secondary: #2a1a1f;
	--fs-color-success: #2e7d4f;
	--fs-color-alert: #c0392b;
	--fs-color-base: #3d3034;
	--primary-color: #b71c32;
	--cuh-container: 1290px;
	--theme-normal-container-max-width: 1290px;
}

/* Khung nội dung Blocksy rộng như container Flatsome (sát mép 15px), header/footer/danh sách thẳng hàng với section. */
html:root {
	--theme-normal-container-max-width: 1260px;
}

.ct-container {
	width: min(1260px, 100% - 30px);
}

body {
	color: var(--fs-color-base);
	background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--nt-dark);
	font-weight: 600;
}

.alt-font {
	font-family: var(--nt-script);
	font-weight: 600 !important;
}

/* ---------- Blocksy: trang dựng bằng section toàn chiều ngang ---------- */

.cuh-builder .site-main > div > article > .entry-content,
.cuh-builder .entry-content.is-layout-constrained {
	--theme-content-spacing: 0;
}

.cuh-builder [data-vertical-spacing] {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.cuh-builder .entry-content > *,
.entry-content > .section,
.entry-content > section.section {
	margin-top: 0;
	margin-bottom: 0;
}

.cuh-builder .ct-container-full {
	padding-top: 0;
	padding-bottom: 0;
}

.entry-content > .section.alignfull,
.entry-content > .gspb-section.alignfull {
	width: auto;
	max-width: none;
}

/* ---------- Lưới Flatsome ---------- */

.container,
.row {
	width: 100%;
	max-width: var(--cuh-container);
	margin-left: auto;
	margin-right: auto;
}

.container {
	padding-left: 15px;
	padding-right: 15px;
}

.row {
	display: flex;
	flex-flow: row wrap;
}

.row-small {
	max-width: 1282.5px;
}

.row-large {
	max-width: 1320px;
}

.row-collapse {
	max-width: 1260px;
}

.row > .col,
.row > .gallery-col,
.row > .product-small.col {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0 15px 30px;
}

.row-small > .col,
.row.row-small > .product-small.col {
	padding: 0 9.8px 19.6px;
}

.row-collapse > .col {
	padding: 0 !important;
}

.container .row:not(.row-collapse),
.row .row:not(.row-collapse) {
	width: auto;
	margin-left: -15px;
	margin-right: -15px;
}

.row .row-small:not(.row-collapse) {
	margin-left: -9.8px;
	margin-right: -9.8px;
}

.col-inner {
	position: relative;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	flex: 1 0 auto;
}

.align-middle {
	align-items: center !important;
}

.align-center {
	justify-content: center !important;
}

.align-equal > .col {
	display: flex;
}

.small-1 { flex-basis: 8.3333%; max-width: 8.3333%; }
.small-2 { flex-basis: 16.6667%; max-width: 16.6667%; }
.small-3 { flex-basis: 25%; max-width: 25%; }
.small-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
.small-5 { flex-basis: 41.6667%; max-width: 41.6667%; }
.small-6 { flex-basis: 50%; max-width: 50%; }
.small-7 { flex-basis: 58.3333%; max-width: 58.3333%; }
.small-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
.small-9 { flex-basis: 75%; max-width: 75%; }
.small-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
.small-11 { flex-basis: 91.6667%; max-width: 91.6667%; }
.small-12, .small-columns-1 > .col { flex-basis: 100%; max-width: 100%; }
.small-columns-2 > .col { flex-basis: 50%; max-width: 50%; }
.small-columns-3 > .col { flex-basis: 33.3333%; max-width: 33.3333%; }
.small-columns-4 > .col { flex-basis: 25%; max-width: 25%; }

@media (min-width: 550px) {
	.medium-1 { flex-basis: 8.3333%; max-width: 8.3333%; }
	.medium-2 { flex-basis: 16.6667%; max-width: 16.6667%; }
	.medium-3 { flex-basis: 25%; max-width: 25%; }
	.medium-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
	.medium-5 { flex-basis: 41.6667%; max-width: 41.6667%; }
	.medium-6 { flex-basis: 50%; max-width: 50%; }
	.medium-7 { flex-basis: 58.3333%; max-width: 58.3333%; }
	.medium-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
	.medium-9 { flex-basis: 75%; max-width: 75%; }
	.medium-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
	.medium-11 { flex-basis: 91.6667%; max-width: 91.6667%; }
	.medium-12, .medium-columns-1 > .col { flex-basis: 100%; max-width: 100%; }
	.medium-columns-2 > .col { flex-basis: 50%; max-width: 50%; }
	.medium-columns-3 > .col { flex-basis: 33.3333%; max-width: 33.3333%; }
	.medium-columns-4 > .col { flex-basis: 25%; max-width: 25%; }
}

@media (min-width: 850px) {
	.large-1 { flex-basis: 8.3333%; max-width: 8.3333%; }
	.large-2 { flex-basis: 16.6667%; max-width: 16.6667%; }
	.large-3 { flex-basis: 25%; max-width: 25%; }
	.large-4 { flex-basis: 33.3333%; max-width: 33.3333%; }
	.large-5 { flex-basis: 41.6667%; max-width: 41.6667%; }
	.large-6 { flex-basis: 50%; max-width: 50%; }
	.large-7 { flex-basis: 58.3333%; max-width: 58.3333%; }
	.large-8 { flex-basis: 66.6667%; max-width: 66.6667%; }
	.large-9 { flex-basis: 75%; max-width: 75%; }
	.large-10 { flex-basis: 83.3333%; max-width: 83.3333%; }
	.large-11 { flex-basis: 91.6667%; max-width: 91.6667%; }
	.large-12, .large-columns-1 > .col { flex-basis: 100%; max-width: 100%; }
	.large-columns-2 > .col { flex-basis: 50%; max-width: 50%; }
	.large-columns-3 > .col { flex-basis: 33.3333%; max-width: 33.3333%; }
	.large-columns-4 > .col { flex-basis: 25%; max-width: 25%; }
	.large-columns-5 > .col { flex-basis: 20%; max-width: 20%; }
	.row-large > .col { padding: 0 30px 30px; }
	.row-divided > .col + .col:not(.large-12) { border-left: 1px solid var(--nt-line); }
}

/* ---------- Section, nền, khoảng trống ---------- */

.section {
	position: relative;
	display: flex;
	flex-flow: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: auto;
	padding: 30px 0;
}

.section-content {
	width: 100%;
	z-index: 1;
}

.section-bg {
	overflow: hidden;
	z-index: 0;
}

.fill {
	position: absolute;
	inset: 0;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.section-bg img,
.banner-bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.relative {
	position: relative !important;
}

.absolute {
	position: absolute !important;
}

.gap-element {
	display: block;
	height: auto;
}

.dark,
.dark p,
.dark td {
	color: #f1f1f1;
}

.dark :is(h1, h2, h3, h4, h5, h6),
.dark a:not(.button) {
	color: #fff;
}

.text-center {
	text-align: center;
}

.text-center > div,
.text-center .is-divider {
	margin-left: auto;
	margin-right: auto;
}

.text-left {
	text-align: left;
}

.uppercase {
	text-transform: uppercase;
	letter-spacing: .05em;
	line-height: 1.05;
}

.last-reset > *:last-child,
.text > *:last-child,
.col-inner > *:last-child {
	margin-bottom: 0;
}

.text p,
.text ul,
.text ol {
	margin-top: 0;
}

.is-divider {
	display: block;
	width: 100%;
	max-width: 30px;
	height: 3px;
	margin: 1em 0;
	background-color: rgba(0, 0, 0, .1);
}

.is-divider.small {
	max-width: 30px;
	height: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.hide-for-small {
	display: initial;
}

@media (max-width: 549px) {
	.hide-for-small {
		display: none !important;
	}
}

/* ---------- Tiêu đề khu ---------- */

.section-title-container {
	margin-bottom: 1.5em;
}

.section-title {
	position: relative;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.section-title b {
	display: block;
	flex: 1;
	height: 2px;
	opacity: .1;
	background-color: currentColor;
}

.section-title-normal b,
.section-title-center b:empty {
	display: none;
}

.section-title-main {
	display: block;
}

/* ---------- Ảnh (ux_image) và khung tỉ lệ ---------- */

.img {
	position: relative;
	width: 100%;
}

.img .img-inner {
	position: relative;
	overflow: hidden;
}

.img img {
	display: block;
	width: 100%;
	height: auto;
}

.image-cover {
	position: relative;
	height: auto;
	overflow: hidden;
	padding-top: 100%;
	background-position: 50% 50%;
	background-size: cover;
}

.image-cover img,
.image-cover iframe,
.img .image-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

/* ---------- Box (ảnh + chữ) ---------- */

.box {
	position: relative;
	width: 100%;
	margin: 0 auto;
}

.box a {
	display: inline-block;
}

.box-image {
	position: relative;
	height: auto;
	margin: 0 auto;
	overflow: hidden;
}

.box-image > a,
.box-image > div > a {
	display: block;
}

.box-image img {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.box-text {
	position: relative;
	width: 100%;
	padding-top: .7em;
	padding-bottom: 1.4em;
	font-size: .9em;
}

.box-text > *:last-child,
.box-text-inner > *:last-child {
	margin-bottom: 0;
}

.box-text h1, .box-text h2, .box-text h3, .box-text h4, .box-text h5, .box-text h6 {
	margin-top: .1em;
	margin-bottom: .1em;
	line-height: 1.3;
}

.box-text p {
	margin-top: .1em;
	margin-bottom: .1em;
}

a.plain {
	color: inherit;
	text-decoration: none;
}

/* ---------- Icon box ([featured_box]) ---------- */

.icon-box .icon-box-img {
	position: relative;
	max-width: 100%;
	margin-bottom: 1em;
}

.icon-box-img img,
.icon-box-img svg {
	width: 100%;
	padding-top: .2em;
}

.icon-box-img svg:not([fill="none"]) {
	fill: currentColor;
}

.icon-box-left,
.icon-box-right {
	display: flex;
}

.icon-box-left .icon-box-img {
	flex: 0 0 auto;
	max-width: 200px;
	margin-bottom: 0;
}

.icon-box-left .icon-box-text {
	flex: 1 1 0;
}

.icon-box-left .icon-box-img + .icon-box-text {
	padding-left: 1em;
}

.icon-box-center .icon-box-img {
	margin: 0 auto 1em;
}

.icon-box-text h1, .icon-box-text h2, .icon-box-text h3, .icon-box-text h4, .icon-box-text h5, .icon-box-text h6 {
	margin-bottom: .4em;
}

.icon-box-text p {
	margin-bottom: .6em;
}

.icon-box .icon-inner {
	line-height: 0;
}

/* ---------- Nút ---------- */

.button,
button.button {
	position: relative;
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 2.5em;
	margin: 0 1em 1em 0;
	padding: 0 1.2em;
	border: 1px solid transparent;
	border-radius: 99px;
	font-size: .97em;
	font-weight: 600;
	line-height: 2.4em;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	vertical-align: middle;
	color: currentColor;
	background-color: transparent;
	cursor: pointer;
	transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}

.button:hover {
	box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .2);
}

.button.primary {
	color: #fff;
	background-color: var(--fs-color-primary);
	border-color: var(--fs-color-primary);
}

.button.secondary {
	color: #fff;
	background-color: var(--fs-color-secondary);
	border-color: var(--fs-color-secondary);
}

.button.white {
	color: #3d3034;
	background-color: #fff;
	border-color: #fff;
}

.button.is-outline {
	border: 2px solid currentColor;
	line-height: 2.19em;
	background-color: transparent;
}

.button.primary.is-outline {
	color: var(--fs-color-primary);
	border-color: currentColor;
}

.button.secondary.is-outline {
	color: var(--fs-color-secondary);
	border-color: currentColor;
}

.button.white.is-outline {
	color: #fff;
	border-color: currentColor;
	background-color: transparent;
}

.button.is-outline:hover {
	box-shadow: none;
}

.button.is-link {
	padding-left: 0;
	padding-right: 0;
	border: 0;
	background-color: transparent;
	box-shadow: none;
}

.button.is-link:hover {
	box-shadow: none;
}

.button.is-small {
	font-size: .8em;
}

.button.mb-0 {
	margin-bottom: 0;
}

/* Thay icon chữ của Flatsome bằng mũi tên SVG. */
.button i.icon-angle-right {
	display: inline-block;
	position: relative;
	font-style: normal;
	vertical-align: middle;
}

/* ---------- Stack (hàng nút) ---------- */

.stack {
	--stack-gap: .75rem;
	display: flex;
	flex-flow: row wrap;
	gap: var(--stack-gap);
	align-items: stretch;
}

.stack > * {
	margin: 0 !important;
}

.stack.justify-end,
.nt-cta-band__buttons {
	justify-content: flex-end;
}

.stack.justify-center,
.nt-more-center {
	justify-content: center;
}

@media (max-width: 849px) {
	.nt-cta-band__buttons.justify-end {
		justify-content: flex-start;
	}
}

/* ---------- Tab (tabbed-content) ---------- */

.nav {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav > li {
	position: relative;
	display: inline-block;
	margin: 0 7px;
	padding: 0;
	list-style: none;
}

.nav > li > a {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 10px 0;
	text-decoration: none;
	color: inherit;
}

.nav-center {
	justify-content: center;
}

.nav-pills > li > a {
	padding: 0 .75em;
	border-radius: 99px;
}

.tab-panels .panel {
	display: none;
}

.tab-panels .panel.active {
	display: block;
}

.tab-panels {
	padding-top: 1em;
}

/* ---------- Accordion (dùng <details>) ---------- */

.accordion-item {
	display: block;
}

.accordion-title {
	position: relative;
	display: block;
	list-style: none;
	cursor: pointer;
	border-top: 1px solid #ddd;
	padding: .6em 2.3em .6em .6em;
	transition: border .2s, color .2s;
}

.accordion-title::-webkit-details-marker,
.accordion-title::marker {
	display: none;
	content: "";
}

.accordion-title .toggle {
	position: absolute;
	right: .6em;
	top: .6em;
	transition: transform .25s;
}

details[open] > .accordion-title .toggle {
	transform: rotate(180deg);
}

.accordion-inner {
	padding: 1em 2.3em 1em .6em;
}

.accordion-inner > *:last-child {
	margin-bottom: 0;
}

/* ---------- Banner trượt trang chủ ---------- */

.nt-hero-sec.section {
	display: block;
	padding: 0;
}

.nt-hero-slider {
	position: relative;
	overflow: hidden;
}

.nt-hero-slider .slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.nt-hero-slider .slider::-webkit-scrollbar {
	display: none;
}

.banner.nt-hero-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: auto;
	min-height: 30px;
	padding-top: 660px;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	background-color: var(--nt-dark);
}

@media (min-width: 550px) {
	.banner.nt-hero-slide {
		padding-top: 520px;
	}
}

@media (min-width: 850px) {
	.banner.nt-hero-slide {
		padding-top: 640px;
	}
}

.banner-inner,
.banner-bg {
	overflow: hidden;
}

.banner-layers {
	position: absolute;
	inset: 0;
	max-width: var(--cuh-container);
	height: 100%;
	margin: 0 auto;
}

.nt-hero-slide .text-box {
	position: absolute;
	left: 50%;
	top: auto;
	bottom: 5%;
	width: 92%;
	max-height: 100%;
	transform: translateX(-50%);
	z-index: 2;
}

@media (min-width: 550px) {
	.nt-hero-slide .text-box {
		left: 15px;
		bottom: auto;
		top: 50%;
		width: 64%;
		transform: translateY(-50%);
	}
}

@media (min-width: 850px) {
	.nt-hero-slide .text-box {
		width: 48%;
	}
}

.nt-hero-slide .text-box-content {
	position: relative;
}

.nt-hero-slider .flickity-page-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	display: flex;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	z-index: 3;
}

.nt-hero-slider .flickity-page-dots .dot {
	display: inline-block;
	cursor: pointer;
}

.nt-hero-slider .flickity-prev-next-button {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: rgba(42, 26, 31, .35);
	opacity: 0;
	cursor: pointer;
	transition: opacity .3s, background-color .3s;
}

.nt-hero-slider:hover .flickity-prev-next-button {
	opacity: 1;
}

.nt-hero-slider .flickity-prev-next-button:hover {
	background-color: var(--nt-primary);
}

.nt-hero-slider .flickity-prev-next-button.previous {
	left: 16px;
}

.nt-hero-slider .flickity-prev-next-button.next {
	right: 16px;
}

.nt-hero-slider .flickity-prev-next-button .nt-i {
	font-size: 22px;
}

.nt-hero-slider .flickity-prev-next-button.previous .nt-i {
	transform: rotate(180deg);
}

@media (max-width: 849px) {
	.nt-hero-slider .flickity-prev-next-button {
		display: none;
	}
}

/* ---------- Album + hộp xem ảnh ---------- */

.gallery-col .image-lightbox {
	display: block;
}

.gallery-box .box-image img {
	transition: transform .5s var(--nt-ease);
}

.gallery-box:hover .box-image img {
	transform: scale(1.05);
}

.cuh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 16px;
	background: rgba(20, 12, 15, .92);
}

.cuh-lightbox[hidden] {
	display: none;
}

.cuh-lightbox img {
	max-width: min(1200px, 100%);
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.cuh-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, .12);
	cursor: pointer;
}

.cuh-lightbox .cuh-lb-close {
	top: 14px;
	right: 14px;
}

.cuh-lightbox .cuh-lb-prev {
	left: 14px;
	top: 50%;
	margin-top: -23px;
}

.cuh-lightbox .cuh-lb-next {
	right: 14px;
	top: 50%;
	margin-top: -23px;
}

/* ---------- Thẻ mẫu tráp (Content Block) ---------- */

.sgb-card {
	display: contents;
}

.product-small.col > .col-inner {
	display: flex;
	flex-direction: column;
}

.product-small .name.product-title {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.4;
}

.product-small .name.product-title a {
	color: inherit;
	text-decoration: none;
}

.product-small .price-wrapper .price {
	display: block;
	margin-top: auto;
}

.product-small .add-to-cart-button .button {
	margin: 0;
}

.product-small .box-image .image-zoom > a {
	display: block;
}

.product-small .box-image img {
	aspect-ratio: 1;
	object-fit: cover;
}

.cuh-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 19.6px;
}

@media (min-width: 850px) {
	.cuh-cards--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Query Grid GreenShift (mẫu tráp, bài viết): lưới CSS, số cột theo lớp cuh-qgrid--N. */
.cuh-qgrid .wp-block-post-template {
	--cols: 4;
	display: grid !important;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	max-width: none;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

.cuh-qgrid--3 .wp-block-post-template {
	--cols: 3;
	gap: 26px;
}

.cuh-qgrid .gspbgrid_item {
	display: flex;
	flex: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

.cuh-qgrid .gspbgrid_item > *,
.cuh-qgrid .gspbgrid_item .product-small.box {
	width: 100%;
}

@media (max-width: 991.98px) {
	.cuh-qgrid--3 .wp-block-post-template {
		--cols: 2;
	}
}

@media (max-width: 849px) {
	.cuh-qgrid--4 .wp-block-post-template {
		--cols: 2;
		gap: 14px;
	}
}

@media (max-width: 575.98px) {
	.cuh-qgrid--3 .wp-block-post-template {
		--cols: 1;
	}
}

/* ---------- Form báo giá: thông báo + hộp nổi ---------- */

.nt-form__messages:empty {
	display: none;
}

.nt-form__messages {
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14px;
	background-color: var(--nt-soft);
	color: var(--nt-primary-dark);
}

.nt-form__messages.is-ok {
	color: #1e6b3f;
	background-color: #e8f5ec;
}

.nt-form.is-sending .nt-form__submit {
	opacity: .6;
	pointer-events: none;
}

.devvn-trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cuh-modal {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(42, 26, 31, .55);
}

.cuh-modal[hidden] {
	display: none;
}

.cuh-modal__box {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 28px 26px 22px;
	border-radius: var(--nt-radius);
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

.cuh-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	font-size: 26px;
	line-height: 1;
	color: var(--nt-dark);
	background: var(--nt-band);
	cursor: pointer;
}

body.cuh-modal-open {
	overflow: hidden;
}

/* ---------- Trang chi tiết mẫu tráp ---------- */

.cuh-pd-gallery {
	display: grid;
	gap: 10px;
}

.cuh-pd-gallery > a {
	display: block;
	overflow: hidden;
	border-radius: var(--nt-radius-sm);
	background-color: var(--nt-card);
}

.cuh-pd-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.cuh-pd-gallery:has(> a ~ a) {
	grid-template-columns: repeat(4, 1fr);
}

.cuh-pd-gallery:has(> a ~ a) > a:first-of-type {
	grid-column: 1 / -1;
}

.single-product .nt-pd-btn {
	text-decoration: none;
}

/* ---------- Header Blocksy theo mẫu ---------- */

[data-row="top"] {
	font-size: 13.5px;
}

[data-row="top"] .ct-header-text,
[data-row="top"] .ct-header-text a {
	color: rgba(255, 255, 255, .86);
}

.cuh-topbar {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.cuh-topbar .nt-info {
	gap: .45em;
	color: rgba(255, 255, 255, .86);
	text-decoration: none;
}

.cuh-topbar .nt-info b {
	color: #fff;
}

.cuh-topbar .nt-i {
	color: var(--nt-gold);
}

.cuh-topbar-social {
	display: flex;
	gap: 8px;
}

.cuh-topbar-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, .1);
	transition: background-color .2s;
}

.cuh-topbar-social a:hover {
	background-color: var(--nt-primary);
}

.cuh-topbar-social .nt-i {
	font-size: 13px;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
	font-weight: 500;
}

[data-header*="type-1"] .ct-header [data-id="button"] .ct-button {
	border-radius: 99px;
	box-shadow: 0 10px 22px rgba(183, 28, 50, .22);
}

/* ---------- Footer: nền kem, 4 cột (giới thiệu + hotline, dịch vụ, về Tơ Hồng, liên hệ công ty), dải bản quyền nâu đỏ ---------- */

.ct-footer [data-row="middle"] {
	position: relative;
	border-top: 0;
	color: var(--nt-text);
	background-image: linear-gradient(180deg, #fbf3ef 0%, #f7ebe5 100%) !important;
	--theme-text-color: var(--nt-text);
	--theme-link-initial-color: var(--nt-text);
	--theme-link-hover-color: var(--nt-primary);
	--theme-heading-color: var(--nt-dark);
}

/* Đường chỉ đỏ – vàng mảnh ở mép trên footer (gợi sợi tơ hồng). */
.ct-footer [data-row="middle"]::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--nt-primary) 0%, var(--nt-gold) 50%, var(--nt-primary) 100%);
	opacity: .85;
}

.ct-footer [data-row="middle"] :is(p, li, a) {
	font-size: 14.5px;
	color: var(--nt-text);
}

.ct-footer [data-row="middle"] a:hover {
	color: var(--nt-primary);
}

.ct-footer [data-row="middle"] :is(h2, h3, .widget-title) {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nt-dark);
}

.ct-footer [data-row="middle"] :is(h2, h3, .widget-title)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 2px;
	border-radius: 2px;
	background-color: var(--nt-primary);
}

.ct-footer [data-row="middle"] ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-footer [data-row="middle"] li {
	margin: 0;
	padding: 5px 0;
	line-height: 1.55;
}

.ct-footer [data-row="middle"] .wp-block-list li a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color .2s, transform .2s;
}

.ct-footer [data-row="middle"] .wp-block-list:not(.sgb-footer-contact) li a::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--nt-gold);
	transition: background-color .2s;
}

.ct-footer [data-row="middle"] .wp-block-list:not(.sgb-footer-contact) li a:hover {
	transform: translateX(3px);
}

.ct-footer ul.sgb-footer-contact li a {
	display: inline;
}

.ct-footer [data-row="middle"] .wp-block-list:not(.sgb-footer-contact) li a:hover::before {
	background-color: var(--nt-primary);
}

.ct-footer [data-row="middle"] .wp-block-image {
	margin: 0 0 16px;
}

.ct-footer [data-row="middle"] .wp-block-image img {
	width: 220px !important;
	height: auto;
}

.ct-footer .cuh-foot-about {
	margin: 0 0 18px;
	line-height: 1.75;
}

.ct-footer .cuh-foot-hotline {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 8px 18px 8px 8px;
	border-radius: 99px;
	background-color: #fff;
	box-shadow: 0 6px 18px rgba(42, 26, 31, .07);
	text-decoration: none;
}

.ct-footer .cuh-foot-hotline .nt-i {
	display: inline-flex;
	width: 40px;
	height: 40px;
	padding: 11px;
	border-radius: 50%;
	color: #fff;
	background-color: var(--nt-primary);
	-webkit-mask: none;
	mask: none;
	background-image: none;
	position: relative;
}

.ct-footer .cuh-foot-hotline .nt-i::after {
	content: "";
	position: absolute;
	inset: 11px;
	background-color: #fff;
	-webkit-mask: var(--nt-i) center / contain no-repeat;
	mask: var(--nt-i) center / contain no-repeat;
}

.ct-footer .cuh-foot-hotline span {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.ct-footer .cuh-foot-hotline small {
	font-size: 12px;
	color: var(--nt-muted);
}

.ct-footer .cuh-foot-hotline b {
	font-size: 18px;
	letter-spacing: .02em;
	color: var(--nt-primary);
}

.ct-footer .nt-footer-social {
	display: flex;
	gap: 10px;
}

.ct-footer .nt-footer-social .nt-social__link {
	transition: transform .2s;
}

.ct-footer .nt-footer-social .nt-social__link:hover {
	transform: translateY(-2px);
}

.ct-footer .nt-footer-social .nt-i {
	font-size: 34px;
	border-radius: 8px;
}

/* Cột liên hệ công ty */
.ct-footer .sgb-footer-company {
	margin: 0 0 14px;
	font-size: 14px !important;
	line-height: 1.5;
	color: var(--nt-dark) !important;
}

.ct-footer .sgb-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 0 0 12px;
}

.ct-footer ul.sgb-footer-contact li > span.cuh-foot-ico {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 15px;
	color: var(--nt-primary);
	background-color: #fff;
	box-shadow: 0 3px 10px rgba(42, 26, 31, .06);
}

.ct-footer .sgb-footer-contact li > span:last-child {
	padding-top: 4px;
}

/* Dải bản quyền: menu chính sách + dòng bản quyền, căn giữa */
.ct-footer [data-row="bottom"] {
	font-size: 13.5px;
	color: rgba(255, 255, 255, .7);
	--theme-text-color: rgba(255, 255, 255, .7);
	--theme-link-initial-color: rgba(255, 255, 255, .82);
	--theme-link-hover-color: #fff;
}

.ct-footer [data-row="bottom"] [data-column] {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.ct-footer [data-row="bottom"] a {
	color: rgba(255, 255, 255, .82);
}

.ct-footer [data-row="bottom"] a:hover {
	color: #fff;
}

.ct-footer [data-row="bottom"] [data-id="menu"] {
	width: 100%;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.ct-footer [data-row="bottom"] [data-id="menu"] .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 0;
}

.ct-footer [data-row="bottom"] [data-id="menu"] .menu > li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.ct-footer [data-row="bottom"] [data-id="menu"] .menu > li + li::before {
	content: "";
	width: 4px;
	height: 4px;
	margin: 0 14px;
	border-radius: 50%;
	background-color: var(--nt-gold);
	opacity: .8;
}

.ct-footer [data-row="bottom"] [data-id="menu"] .menu > li > a {
	padding: 0;
	font-size: 13.5px;
	font-weight: 400;
	text-transform: none;
	white-space: nowrap;
}

.ct-footer [data-row="bottom"] .ct-footer-copyright {
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .6);
}

.ct-footer [data-row="bottom"] .ct-footer-copyright a {
	color: var(--nt-gold);
}

/* Khối chữ: phần tử cuối không có khoảng dưới (ưu tiên hơn khoảng đoạn văn chung). */
.cuh-builder .entry-content .text > :last-child,
.cuh-builder .entry-content .col-inner > :last-child,
.cuh-builder .entry-content .box-text-inner > :last-child,
.cuh-builder .entry-content .icon-box-text > :last-child,
.cuh-builder .entry-content .accordion-inner > :last-child {
	margin-bottom: 0;
}


/* Phần động của Content Block chi tiết mẫu tráp không tạo thêm tầng bố cục. */
.cuh-pd-part {
	display: contents;
}

/* Khoảng cách chữ như Flatsome trong các trang dựng bằng section (không áp cho block GreenShift: margin nằm trong thuộc tính block). */
.cuh-builder .entry-content :is(p, ul, ol, dl, table, blockquote):not([class*="gsbp-"]),
.cuh-single-trap :is(p, ul, ol, dl, table):not([class*="gsbp-"]) {
	margin-top: 0;
	margin-bottom: 1.3em;
}

.cuh-builder .entry-content li:not([class*="gsbp-"]),
.cuh-single-trap li:not([class*="gsbp-"]) {
	margin-bottom: .6em;
}

.cuh-builder .entry-content :is(ul, ol):not([class*="gsbp-"]),
.cuh-single-trap :is(ul, ol):not([class*="gsbp-"]) {
	padding-left: 0;
}

.cuh-builder .entry-content ul:not([class]) > li,
.cuh-single-trap ul:not([class]) > li {
	margin-left: 1.3em;
}

/* Header dính khi cuộn (thanh trên cuộn khuất, hàng logo + menu ở lại). */
#header.ct-header {
	position: sticky;
	top: -38px;
	z-index: 50;
}

.admin-bar #header.ct-header {
	top: -6px;
}

@media (max-width: 999.98px) {
	#header.ct-header {
		top: -34px;
	}
}

#header.ct-header [data-row="middle"] {
	box-shadow: 0 6px 24px rgba(42, 26, 31, .06);
}

/* Nhãn giảm giá (ảnh mẫu tráp + thẻ). */
.badge-container {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	margin: 14px;
}

.cuh-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 3px 7px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background-color: var(--nt-primary);
}

.cuh-card-badge:empty {
	display: none;
}

/* ---------- Trang danh sách mẫu tráp ---------- */

.flex-row {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.flex-col {
	max-height: 100%;
}

.flex-grow {
	flex: 1;
	-ms-flex-negative: 1;
}

:is(.post-type-archive-product, .tax-product_cat) .ct-container[data-vertical-spacing] {
	padding-top: 0;
}

:is(.post-type-archive-product, .tax-product_cat) .shop-page-title {
	padding: 20px 0 8px;
}

:is(.post-type-archive-product, .tax-product_cat) .shop-page-title .container {
	padding-left: 0;
	padding-right: 0;
}

:is(.post-type-archive-product, .tax-product_cat) .woocommerce-result-count,
:is(.post-type-archive-product, .tax-product_cat) .woocommerce-ordering {
	margin: 0;
}

:is(.post-type-archive-product, .tax-product_cat) .products.row {
	width: auto;
	max-width: none;
	margin-left: -9.8px;
	margin-right: -9.8px;
}

:is(.post-type-archive-product, .tax-product_cat) .woo-listing-top,
:is(.post-type-archive-product, .tax-product_cat) .ct-woo-card-extra {
	display: none;
}

.nt-shop-trust-wrap {
	margin-top: 20px;
	margin-bottom: 40px;
}

/* Bảng như Flatsome: chỉ kẻ dòng ngang, chữ gọn (Blocksy mặc định kẻ ô). Độ ưu tiên thấp để CSS của mẫu (.nt-price-table…) ghi đè. */
table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

td,
th {
	padding: .5em;
	border: 0;
	border-bottom: 1px solid #ececec;
	font-size: .9em;
	line-height: 1.3;
	text-align: left;
}

td:first-child,
th:first-child {
	padding-left: 0;
}

/* Blocksy dùng .button::before làm bóng mờ phía sau nút (blur, z-index -1); icon mũi tên trên thẻ mẫu dùng ::before nên gỡ các hiệu ứng đó. */
.product-small.box .add-to-cart-button .button::before {
	display: block;
	position: static;
	inset: auto;
	z-index: auto;
	opacity: 1;
	filter: none;
	transform: none;
	border: 0;
	animation: none;
}

/* ---------- Cẩm nang: bài viết + chuyên mục (cỡ chữ Flatsome) ---------- */

.cuh-blog .blog-wrapper {
	padding-top: 30px;
	padding-bottom: 30px;
}

.cuh-blog .entry-header .entry-title {
	margin: 0 0 .5em;
	font-size: clamp(24px, 2.3vw, 30px);
	line-height: 1.25;
}

.cuh-blog .entry-category {
	margin-bottom: .4em;
	font-size: 11px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.cuh-blog .entry-category a {
	color: var(--nt-muted);
}

.cuh-blog .entry-meta {
	margin-bottom: 1.5em;
	font-size: .9em;
}

.cuh-blog .entry-content :is(h2) {
	margin: 1.4em 0 .6em;
	font-size: 24px;
}

.cuh-blog .entry-content :is(h3) {
	margin: 1.2em 0 .5em;
	font-size: 20px;
}

.cuh-blog .entry-content :is(p, ul, ol, table, blockquote) {
	margin-top: 0;
	margin-bottom: 1.3em;
}

.cuh-blog .entry-content li {
	margin-bottom: .6em;
}

.cuh-blog .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--nt-radius-sm);
}

.cuh-blog .widget {
	margin-bottom: 30px;
}

.cuh-blog .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cuh-blog .widget li {
	margin: 0;
	padding: 6px 0;
}

.cuh-blog .widget-title {
	display: block;
	font-weight: 700;
}

.cuh-blog .recent-blog-posts .badge {
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 10px;
}

.cuh-blog .recent-blog-posts .badge-inner {
	width: 100%;
	height: 100%;
}

.cuh-blog .mr-half {
	margin-right: 12px;
}

.cuh-blog .align-top {
	align-items: flex-start;
}

.cuh-blog .flex-row.relative input[type="search"] {
	width: 100%;
}

.cuh-blog .navigation-post {
	margin: 24px 0;
	padding: 14px 0;
	border-top: 1px solid var(--nt-line);
	border-bottom: 1px solid var(--nt-line);
}

.cuh-blog .navigation-post a {
	font-weight: 600;
	color: var(--nt-dark);
}

.cuh-blog .archive-page-header {
	padding: 10px 0 20px;
}

.cuh-blog .archive-page-header .page-title {
	font-size: clamp(26px, 2.6vw, 34px);
}

.cuh-blog .nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 10px 0 30px;
}

/* ---------- Header điện thoại: menu trái, logo giữa, nút gọi tròn phải; thanh trên 1 dòng ---------- */
@media (max-width: 999.98px) {
	[data-device="mobile"] .ct-header-cta .ct-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		min-height: 40px;
		height: 40px;
		padding: 0;
		border-radius: 50%;
		font-size: 18px;
		box-shadow: none;
	}

	.cuh-topbar {
		flex-wrap: nowrap;
		justify-content: center;
		gap: 14px;
		overflow: hidden;
		white-space: nowrap;
		font-size: 12.5px;
	}

	.cuh-topbar__hours {
		display: none !important;
	}

	.cuh-topbar__note {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.cuh-topbar__note > span {
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

@media (max-width: 549px) {
	.cuh-topbar__note .nt-i {
		display: none;
	}
}

/* Trang Cẩm nang: bài mới nhất đã ở khối nổi bật nên lưới bỏ qua bài đầu (Query Grid không có offset). */
.cuh-skip-first > .gspbgrid_item:first-child {
	display: none;
}

/* ---------- Menu xổ xuống: nền trắng, chữ tối, rê chuột đỏ (như mẫu) ---------- */
html [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu {
	--dropdown-background-color: #fff;
	--dropdown-divider: 1px solid var(--nt-line);
	--theme-link-initial-color: var(--nt-dark);
	--theme-link-hover-color: var(--nt-primary);
	--theme-link-active-color: var(--nt-primary);
	min-width: 260px;
	padding: 6px 0;
	border-radius: 10px;
	background-color: #fff;
	box-shadow: 0 16px 36px rgba(42, 26, 31, .14);
}

html [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
	padding: 11px 20px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--nt-dark);
	background-color: transparent;
}

html [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li:hover > .ct-menu-link,
html [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link:hover,
html [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .current-menu-item > .ct-menu-link {
	color: var(--nt-primary);
	background-color: var(--nt-soft);
}

html [data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu li + li {
	border-top: 1px solid var(--nt-line);
}

/* Nút chia sẻ bài viết */
.cuh-share {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 6px 0 24px;
}

.cuh-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1.5px solid var(--nt-line);
	border-radius: 50%;
	font-size: 18px;
	color: var(--nt-dark);
	background: #fff;
	cursor: pointer;
	transition: color .2s, border-color .2s, background-color .2s;
}

.cuh-share__btn:hover,
.cuh-share__btn.is-copied {
	border-color: var(--nt-primary);
	color: #fff;
	background-color: var(--nt-primary);
}

.cuh-share__btn--zalo .nt-i {
	font-size: 22px;
}

.blog-share .is-divider.medium {
	max-width: 40px;
	height: 3px;
	margin: 1.5em auto 1em;
}

/* ---------- Trạng thái của biến thể Tabs / Accordion GreenShift (script gs-greensyncpanels đổi class .active) ---------- */
.cuh-th-tabs .gs_tab.active {
	border-color: var(--nt-primary) !important;
	color: #fff !important;
	background-color: var(--nt-primary) !important;
	box-shadow: 0 10px 22px rgba(183, 28, 50, .22);
}

.cuh-th-tabs .gs_tabs_list {
	scrollbar-width: none;
}

.cuh-th-tabs .gs_tabs_list::-webkit-scrollbar {
	display: none;
}

.cuh-th-faq .gs_click_sync svg {
	transition: transform .3s ease;
}

.cuh-th-faq .gs_item.active .gs_click_sync svg {
	transform: rotate(180deg);
}

.cuh-th-faq .gs_item.active .gs_click_sync {
	color: var(--nt-primary);
}

/* Lưới Query Grid trong tab: thẻ cao bằng nhau. */
.cuh-th-tabs .gspbgrid_item .product-small.box {
	width: 100%;
}

/* Tab đang mở: cao theo nội dung (script đo chiều cao trước khi ảnh tải xong nên bị thiếu hàng). */
.cuh-th-tabs .gs_content.active {
	max-height: none !important;
}

/* ---------- Bảng giá / so sánh trong block GreenShift (th_table) ---------- */
.th-table th,
.th-table td {
	padding: 13px 18px;
	border: 0;
	border-bottom: 1px solid var(--nt-line);
	font-size: 14.5px;
	line-height: 1.45;
	text-align: left;
	vertical-align: middle;
}

.th-table th:first-child,
.th-table td:first-child {
	padding-left: 20px;
}

.th-table thead th {
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .02em;
	color: #fff;
	background-color: var(--nt-primary);
}

.th-table tbody tr:nth-child(even) td {
	background-color: #fdf9f6;
}

.th-table tbody tr:last-child td {
	border-bottom: 0;
}

.th-table td:first-child {
	font-weight: 600;
	color: var(--nt-dark);
}

.th-table td a {
	color: var(--nt-primary);
	font-weight: 600;
	text-decoration: none;
}

.th-table:not(.th-table--compare) td:last-child,
.th-table:not(.th-table--compare) th:last-child {
	text-align: right;
	white-space: nowrap;
	font-weight: 700;
	color: var(--nt-primary);
}

.th-table:not(.th-table--compare) thead th:last-child {
	color: #fff;
}

.th-table--compare th:not(:first-child),
.th-table--compare td:not(:first-child) {
	text-align: center;
}

/* Chữ trong câu trả lời / trang chính sách. */
.th-rich a {
	color: var(--nt-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.th-rich p:last-child {
	margin-bottom: 0;
}

/* Bảng giá trên điện thoại: mỗi dòng là 1 thẻ (tên + giá trên, mô tả dưới). */
@media (max-width: 575.98px) {
	.th-table:not(.th-table--compare) thead {
		display: none;
	}

	.th-table:not(.th-table--compare) tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 12px;
		padding: 13px 16px;
		border-bottom: 1px solid var(--nt-line);
	}

	.th-table:not(.th-table--compare) tbody tr:nth-child(even) {
		background-color: #fdf9f6;
	}

	.th-table:not(.th-table--compare) tr:last-child {
		border-bottom: 0;
	}

	.th-table:not(.th-table--compare) td {
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		font-size: 14px;
	}

	.th-table:not(.th-table--compare) td:first-child {
		grid-column: 1;
		grid-row: 1;
	}

	.th-table:not(.th-table--compare) td:last-child {
		grid-column: 2;
		grid-row: 1;
	}

	.th-table:not(.th-table--compare) td:not(:first-child):not(:last-child) {
		grid-column: 1 / -1;
		font-size: 13px;
		color: var(--nt-muted);
	}

	.th-table--compare th,
	.th-table--compare td {
		padding: 10px 12px;
		font-size: 13px;
	}
}

/* Danh sách / đoạn dựng bằng GreenShift: bỏ thụt lề của CSS mẫu (.entry-content ul{margin-left:20px}). */
.entry-content :is(ul, ol)[class*="gsbp-"] {
	margin-left: 0;
}

/* =====================================================================
 * Mẫu tráp (custom post mau_trap): phần động trong Content Block
 * "Trang chi tiết mẫu tráp" và "Danh sách mẫu tráp" ([cuh_trap], [cuh_shop], [cuh_trap_list]).
 * ===================================================================== */

/* Giá trên thẻ (trường động _cuh_price_old_text / _cuh_price_text). */
.th-card-old {
	font-size: 13.5px;
	font-weight: 400;
	color: var(--nt-muted);
}

.th-card-now {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--nt-primary);
}

.th-card-old:empty {
	display: none;
}

/* Đường dẫn */
.th-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 14px;
	color: var(--nt-muted);
}

.th-crumbs a {
	color: var(--nt-text);
	text-decoration: none;
}

.th-crumbs a:hover {
	color: var(--nt-primary);
}

.th-crumbs [aria-current] {
	overflow: hidden;
	max-width: 100%;
	font-weight: 600;
	color: var(--nt-dark);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.th-crumbs__sep {
	color: var(--nt-gold);
}

/* Ảnh mẫu */
.th-gallery {
	display: grid;
	gap: 12px;
}

.th-gallery__main {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	border-radius: var(--nt-radius);
	background-color: var(--nt-band);
	cursor: zoom-in;
}

.th-gallery__main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--nt-ease);
}

.th-gallery__main:hover img {
	transform: scale(1.03);
}

.th-gallery__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background-color: var(--nt-primary);
}

.th-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.th-gallery__thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	border: 2px solid transparent;
	border-radius: var(--nt-radius-sm);
	opacity: .75;
	transition: opacity .2s, border-color .2s;
}

.th-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.th-gallery__thumb:hover,
.th-gallery__thumb.is-active {
	opacity: 1;
}

.th-gallery__thumb.is-active {
	border-color: var(--nt-primary);
}

/* Danh mục, nhãn, mã, giá, mô tả ngắn */
.th-chip:not([class*="gsbp-"]) {
	display: inline-flex;
	align-items: center;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nt-primary);
	text-decoration: none;
	background-color: var(--nt-soft);
}

.th-chip:not([class*="gsbp-"]):hover {
	color: #fff;
	background-color: var(--nt-primary);
}

.th-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #8a5a00;
	background-color: var(--nt-gold-soft);
}

.th-badge .nt-i,
.th-section__icon .nt-i {
	width: 15px;
	height: 15px;
}

.th-sku {
	font-size: 14px;
	color: var(--nt-muted);
}

.th-sku b {
	font-weight: 600;
	color: var(--nt-dark);
	letter-spacing: .02em;
}

.th-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
	margin: 0;
}

.th-price__now {
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--nt-primary);
}

.th-price__old {
	font-size: 17px;
	color: var(--nt-muted);
}

.th-short {
	font-size: 16px;
	line-height: 1.75;
	color: var(--nt-text);
}

.th-short p:last-child {
	margin-bottom: 0;
}

.th-book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	background-color: var(--nt-primary);
}

.th-book:hover {
	color: #fff;
	background-color: var(--nt-primary-dark);
}

.th-pd-book a {
	width: 100%;
}

/* Bảng thông số */
.th-specs {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 15px;
}

.th-specs th,
.th-specs td {
	padding: 12px 0;
	border: 0;
	border-bottom: 1px dashed var(--nt-line);
	text-align: left;
	vertical-align: top;
	background: none;
}

.th-specs tr:last-child th,
.th-specs tr:last-child td {
	border-bottom: 0;
}

.th-specs th {
	width: 42%;
	padding-right: 14px;
	font-weight: 500;
	color: var(--nt-muted);
}

.th-specs td {
	font-weight: 600;
	color: var(--nt-dark);
}

.th-specs td a {
	color: var(--nt-primary);
}

/* Mục mô tả chi tiết (mở/đóng) */
.th-sections {
	display: grid;
	gap: 14px;
}

.th-section {
	overflow: hidden;
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius);
	background-color: #fff;
	transition: box-shadow .2s;
}

.th-section[open] {
	box-shadow: var(--nt-shadow);
}

.th-section > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
}

.th-section > summary::-webkit-details-marker,
.th-faq__item > summary::-webkit-details-marker {
	display: none;
}

.th-section__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: var(--nt-primary);
	background-color: var(--nt-soft);
}

.th-section .th-section__title {
	flex: 1;
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
	color: var(--nt-dark);
}

.th-section__chev,
.th-faq__chev {
	display: inline-flex;
	flex: none;
	color: var(--nt-muted);
	transition: transform .25s var(--nt-ease);
}

.th-section[open] .th-section__chev,
.th-faq__item[open] .th-faq__chev {
	transform: rotate(180deg);
	color: var(--nt-primary);
}

.th-section__body {
	padding: 0 20px 20px 66px;
	font-size: 15.5px;
	line-height: 1.75;
}

.th-section__body > :last-child {
	margin-bottom: 0;
}

.th-section__body img {
	height: auto;
	border-radius: var(--nt-radius-sm);
}

/* Hỏi đáp */
.th-faq {
	display: grid;
	gap: 12px;
}

.th-faq__item {
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius-sm);
	background-color: #fff;
}

.th-faq__item[open] {
	border-color: var(--nt-soft-strong);
}

.th-faq__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 600;
	color: var(--nt-dark);
	cursor: pointer;
	list-style: none;
}

.th-faq__item[open] > summary {
	color: var(--nt-primary);
}

.th-faq__a {
	padding: 0 20px 18px;
	line-height: 1.75;
}

.th-faq__a > :last-child {
	margin-bottom: 0;
}

/* Lưới thẻ mẫu tráp */
.th-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.th-cards__item {
	display: flex;
	min-width: 0;
}

.th-cards__item > * {
	flex: 1;
	min-width: 0;
}

.th-empty {
	padding: 40px 20px;
	border: 1px dashed var(--nt-line);
	border-radius: var(--nt-radius);
	text-align: center;
	color: var(--nt-muted);
	background-color: var(--nt-band);
}

/* Danh sách: banner, chip danh mục (chip đang chọn: inc/trap.php in thêm 1 dòng CSS theo danh mục), bộ lọc, đếm, phân trang */
.th-shop-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.post-type-archive-mau_trap .th-chip--all,
.th-chips__item.is-active {
	border-color: var(--nt-primary) !important;
	color: #fff !important;
	background-color: var(--nt-primary) !important;
}

.th-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border: 1px solid var(--nt-line);
	border-radius: 999px;
	font-weight: 600;
	color: var(--nt-dark);
	text-decoration: none;
	white-space: nowrap;
	background-color: #fff;
}

.th-chips__item span {
	font-size: 12px;
	opacity: .7;
}

/* ---------- Chip danh mục: cuộn ngang gọn trên điện thoại ---------- */
.th-chips {
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scroll-padding: 0 15px;
}

.th-chips::-webkit-scrollbar {
	display: none;
}

.th-chips > a {
	scroll-snap-align: start;
}

@media (max-width: 767.98px) {
	.th-chips-wrap::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 6px;
		width: 44px;
		pointer-events: none;
		background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 85%);
	}
}

/* ---------- Thanh lọc: số mẫu + ô chọn dạng viên (máy tính) / nút "Bộ lọc" + bảng trượt từ đáy (điện thoại) ---------- */
.th-filter {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 16px;
	margin: 0;
	padding: 12px 12px 12px 22px;
	border: 1px solid var(--nt-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(42, 26, 31, .06);
}

.th-fbar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
}

.th-fbar__count {
	margin: 0;
	font-size: 15px;
	white-space: nowrap;
	color: var(--nt-muted);
}

.th-fbar__count b {
	font-family: "Playfair Display", serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--nt-primary);
}

.th-fbar__open {
	display: none;
}

.th-fpanel {
	display: flex;
	align-items: center;
	gap: 10px;
}

.th-fpanel__head,
.th-fpanel__foot {
	display: none;
}

.th-fpanel__body {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Ô chọn dạng viên: nhãn nhỏ ở trên, giá trị đậm ở dưới. */
.th-fsel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 140px;
	height: 52px;
	margin: 0;
	padding: 0 40px 0 18px;
	border: 1px solid var(--nt-line);
	border-radius: 999px;
	background: var(--nt-band, #fbf6f1);
	cursor: pointer;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.th-fsel::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--nt-dark);
	border-bottom: 2px solid var(--nt-dark);
	transform: rotate(45deg);
	pointer-events: none;
}

.th-fsel:hover {
	border-color: var(--nt-primary);
}

.th-fsel:focus-within {
	border-color: var(--nt-primary);
	box-shadow: 0 0 0 3px var(--nt-soft);
}

.th-fsel.is-set {
	border-color: var(--nt-primary);
	background: var(--nt-soft);
}

.th-fsel__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--nt-muted);
}

.th-fsel select {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--nt-dark);
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.th-fsel select:focus {
	outline: 0;
	box-shadow: none;
}

.th-fsel.is-set select {
	color: var(--nt-primary);
}

/* Nhãn bộ lọc đang bật */
.th-ftags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 2px 10px 2px 0;
}

.th-ftag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nt-primary);
	text-decoration: none;
	background: var(--nt-soft);
	transition: background-color .2s, color .2s;
}

.th-ftag span {
	font-weight: 500;
	color: var(--nt-muted);
}

.th-ftag i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-style: normal;
	font-size: 15px;
	line-height: 1;
	color: #fff;
	background: var(--nt-primary);
}

.th-ftag:hover {
	color: #fff;
	background: var(--nt-primary);
}

.th-ftag:hover span {
	color: rgba(255, 255, 255, .8);
}

.th-ftag:hover i {
	color: var(--nt-primary);
	background: #fff;
}

.th-ftags__clear {
	margin-left: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nt-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Có bộ lọc đang bật: thanh thành khối bo góc vừa để chứa thêm hàng nhãn. */
.th-filter:has(.th-ftags) {
	border-radius: 26px;
}

/* Danh sách thả xuống tự vẽ (máy tính) */
.th-fsel.is-menu {
	z-index: 20;
	border-color: var(--nt-primary);
	box-shadow: 0 0 0 3px var(--nt-soft);
}

.th-fsel.is-menu::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.th-fmenu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	min-width: max(100%, 210px);
	max-height: 320px;
	overflow-y: auto;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--nt-line);
	border-radius: 18px;
	list-style: none;
	background: #fff;
	box-shadow: 0 18px 44px rgba(42, 26, 31, .14);
	cursor: default;
	animation: th-fmenu-in .16s ease-out;
}

.th-fsel--sort .th-fmenu {
	left: auto;
	right: 0;
}

@keyframes th-fmenu-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.th-fmenu li {
	position: relative;
	margin: 0;
	padding: 10px 36px 10px 14px;
	border-radius: 12px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
	color: var(--nt-dark);
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.th-fmenu li + li {
	margin-top: 2px;
}

.th-fmenu li.is-active {
	background: var(--nt-band);
}

.th-fmenu li.is-selected {
	font-weight: 700;
	color: var(--nt-primary);
	background: var(--nt-soft);
}

.th-fmenu li.is-selected::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 5px;
	height: 10px;
	margin-top: -7px;
	border-right: 2px solid var(--nt-primary);
	border-bottom: 2px solid var(--nt-primary);
	transform: rotate(45deg);
}

.th-fbackdrop {
	display: none;
}

/* Điện thoại / tablet dọc: số mẫu + nút "Bộ lọc"; ô chọn nằm trong bảng trượt từ đáy. */
@media (max-width: 849.98px) {
	.th-filter {
		gap: 10px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
	}

	.th-filter:has(.th-ftags) {
		border-radius: 0;
	}

	.th-fbar {
		justify-content: space-between;
		width: 100%;
		margin: 0;
		padding: 8px 8px 8px 18px;
		border: 1px solid var(--nt-line);
		border-radius: 999px;
		background: #fff;
		box-shadow: 0 8px 24px rgba(42, 26, 31, .06);
	}

	.th-fbar__open {
		position: relative;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 44px;
		margin: 0;
		padding: 0 18px;
		border: 0;
		border-radius: 999px;
		font-size: 14.5px;
		font-weight: 700;
		color: #fff;
		background: var(--nt-dark);
		cursor: pointer;
	}

	.th-fbar__open .nt-i {
		font-size: 17px;
	}

	.th-fbar__open em {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 20px;
		padding: 0 5px;
		border-radius: 999px;
		font-size: 12px;
		font-style: normal;
		color: var(--nt-dark);
		background: var(--nt-gold);
	}

	.th-ftags {
		padding: 0;
	}

	.th-fpanel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99995;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: 86vh;
		border-radius: 24px 24px 0 0;
		background: #fff;
		box-shadow: 0 -20px 60px rgba(42, 26, 31, .25);
		transform: translateY(105%);
		visibility: hidden;
	}

	/* Hiệu ứng trượt chỉ chạy trong lúc mở/đóng (.is-anim, JS gỡ sau 0,4s): nếu trình duyệt không kịp
	   vẽ hiệu ứng thì bảng vẫn về đúng vị trí, không bị kẹt dưới đáy màn hình. */
	.th-filter.is-anim .th-fpanel {
		transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility .3s;
	}

	.th-filter.is-open .th-fpanel {
		transform: none;
		visibility: visible;
	}

	.th-fpanel::before {
		content: "";
		align-self: center;
		width: 44px;
		height: 5px;
		margin-top: 10px;
		border-radius: 99px;
		background: var(--nt-line);
	}

	.th-fpanel__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 20px 6px;
	}

	.th-fpanel__head b {
		font-family: "Playfair Display", serif;
		font-size: 21px;
		font-weight: 600;
		color: var(--nt-dark);
	}

	.th-fpanel__close {
		width: 38px;
		height: 38px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		font-size: 24px;
		line-height: 1;
		color: var(--nt-dark);
		background: var(--nt-band, #fbf6f1);
		cursor: pointer;
	}

	.th-fpanel__body {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		overflow-y: auto;
		padding: 10px 20px 14px;
	}

	.th-fsel {
		min-width: 0;
		height: 60px;
		padding: 0 44px 0 20px;
		border-radius: 18px;
	}

	.th-fsel select {
		font-size: 16px;
	}

	.th-fpanel__foot {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--nt-line);
	}

	.th-fpanel__reset {
		flex: none;
		padding: 0 6px;
		font-weight: 600;
		color: var(--nt-muted);
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	.th-fpanel__apply {
		flex: 1;
		height: 52px;
		margin: 0;
		border: 0;
		border-radius: 999px;
		font-size: 16px;
		font-weight: 700;
		color: #fff;
		background: var(--nt-primary);
		box-shadow: 0 12px 26px rgba(183, 28, 50, .25);
		cursor: pointer;
	}

	.th-fbackdrop {
		position: fixed;
		inset: 0;
		z-index: 99994;
		display: block;
		background: rgba(42, 26, 31, .45);
		opacity: 0;
	}

	.th-fbackdrop.is-anim {
		transition: opacity .3s;
	}

	.th-fbackdrop.is-open {
		opacity: 1;
	}

	/* Lớp nền chỉ hiện khi bảng lọc mở; lúc ẩn không được chặn thao tác chạm trên trang. */
	.th-fbackdrop[hidden] {
		display: none;
	}

	body.th-filter-open {
		overflow: hidden;
	}

	@media (prefers-reduced-motion: reduce) {
		.th-filter.is-anim .th-fpanel,
		.th-fbackdrop.is-anim {
			transition: none;
		}
	}
}

.th-count {
	margin: 0;
	font-size: 14.5px;
	color: var(--nt-muted);
}

.th-count b {
	color: var(--nt-dark);
}

.th-pagination {
	margin-top: 40px;
}

.th-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.th-pagination li {
	margin: 0;
}

.th-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--nt-line);
	border-radius: 999px;
	font-weight: 600;
	color: var(--nt-dark);
	text-decoration: none;
	background-color: #fff;
}

.th-pagination a.page-numbers:hover {
	border-color: var(--nt-primary);
	color: var(--nt-primary);
}

.th-pagination .page-numbers.current {
	border-color: var(--nt-primary);
	color: #fff;
	background-color: var(--nt-primary);
}

@media (max-width: 999.98px) {
	.th-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 767.98px) {
	.th-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.th-section__body {
		padding-left: 20px;
	}

}

/* =====================================================================
 * Dịch vụ (custom post dich_vu): lưới thẻ (Query Grid + thẻ thêm) và phần động [cuh_dv part="…"].
 * ===================================================================== */

/* Query Grid "trong suốt": thẻ dịch vụ và thẻ trọn gói nằm chung 1 lưới. */
.th-dv-grid > .cuh-qgrid,
.th-dv-grid .cuh-qgrid .wp-block-post-template {
	display: contents !important;
}

/* Thẻ nằm trong <ul> của Query Grid: Blocksy gạch chân link trong danh sách (.entry-content ul a) – bỏ cho thẻ. */
.cuh-qgrid .wp-block-post-template a {
	--theme-text-decoration: none;
}

/* Query Grid in thêm 1 div.clearfix ngay sau nó – không để chiếm ô lưới. */
.th-dv-grid > .clearfix {
	display: none;
}

.th-dv-grid .gspbgrid_item {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.th-dv-grid .gspbgrid_item > .sgb-card,
.th-dv-grid .th-dv-card {
	width: 100%;
}

.th-dv-card img {
	transition: transform .6s var(--nt-ease);
}

.th-dv-card:hover img {
	transform: scale(1.04);
}

/* Banner: ảnh đại diện phủ nền. */
.th-dv-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 50%;
}

.th-dv-hero .th-crumbs a {
	color: var(--nt-muted);
}

/* Giới thiệu */
.th-dv-intro {
	font-size: 16px;
	line-height: 1.8;
	color: var(--nt-text);
}

.th-dv-intro p {
	margin: 0 0 1em;
}

.th-dv-intro > :last-child {
	margin-bottom: 0;
}

.th-check {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.th-check li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--nt-text);
}

.th-check__tick {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	border-radius: 50%;
	color: var(--nt-primary);
	background-color: var(--nt-soft);
}

/* Bảng giá (ô dùng kiểu .th-table) */
.th-dv-table {
	overflow-x: auto;
	border: 1px solid var(--nt-line);
	border-radius: 18px;
	background-color: #fff;
	box-shadow: 0 8px 24px rgba(42, 26, 31, .05);
}

.th-dv-table .th-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

/* Ảnh tham khảo */
.th-dv-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.th-dv-gallery__item {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--nt-radius);
	background-color: var(--nt-band);
	cursor: zoom-in;
}

.th-dv-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--nt-ease);
}

.th-dv-gallery__item:hover img {
	transform: scale(1.05);
}

/* Dịch vụ khác */
.th-others {
	display: grid;
	gap: 12px;
}

.th-other {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 16px 10px 10px;
	border: 1px solid var(--nt-line);
	border-radius: var(--nt-radius);
	color: var(--nt-dark);
	text-decoration: none;
	background-color: #fff;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.th-other:hover {
	border-color: var(--nt-soft-strong);
	color: var(--nt-dark);
	box-shadow: var(--nt-shadow);
	transform: translateX(3px);
}

.th-other__img {
	flex: none;
	width: 76px;
	height: 60px;
	border-radius: 12px;
	object-fit: cover;
}

.th-other__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.th-other__text b {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.th-other__text em {
	font-size: 13.5px;
	font-style: normal;
	font-weight: 700;
	color: var(--nt-primary);
}

.th-other__arrow {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--nt-primary);
}

@media (max-width: 999.98px) {
	.th-dv-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.th-dv-gallery {
		gap: 10px;
	}

	.th-others {
		grid-template-columns: 1fr;
	}
}

/* Nút liên hệ nổi cạnh phải (Cài đặt → Thông tin liên hệ): nhãn bật sang trái, nút lên đầu trang nhích lên.
   Điện thoại vẫn là thanh nút dưới đáy (theme.css). */
@media (min-width: 850px) {
	.nt-float--right {
		left: auto;
		right: 22px;
		align-items: flex-end;
	}

	.nt-float--right .nt-float__label {
		left: auto;
		right: calc(100% + 10px);
		transform: translate(6px, -50%);
	}

	.nt-float--right .nt-float__btn:hover .nt-float__label {
		transform: translate(0, -50%);
	}

	.nt-float-right .ct-back-to-top {
		bottom: 300px;
	}
}

/* Chân trang: dòng thông báo web demo dưới dòng bản quyền. */
.cuh-demo-note {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	opacity: .75;
}
