/*
 * CHỢ XANH 24H – giao diện siêu thị bách hoá (Blocksy + GreenShift).
 * Màu: xanh dương #00843D (chính), xanh đêm #0F2A1A (chữ, nền tối), vàng #FFD23F (nhấn), đỏ #E5212D (giá, giảm giá),
 * nền xám xanh #F1F7F2, đường kẻ #E2EBE4. Font: Be Vietnam Pro (Blocksy).
 * Khối GreenShift có style riêng trong block; file này lo phần dùng chung: header, thẻ sản phẩm, lưới Query Grid,
 * trang danh sách (danh mục con, hãng, bộ lọc), trang sản phẩm (giá, khuyến mãi, thông số), giỏ hàng / thanh toán, chân trang.
 */

:root {
	--vs-ink: #0F2A1A;
	--vs-text: #2F3B33;
	--vs-muted: #67736B;
	--vs-line: #E2EBE4;
	--vs-soft: #F1F7F2;
	--vs-accent: #00843D;
	--vs-primary: #00843D;
	--vs-primary-d: #006B31;
	--vs-yellow: #ffd23f;
	--vs-sale: #e5212d;
	--vs-radius: 12px;
	--vs-container: min(1260px, calc(100% - 30px));
	--theme-button-min-height: 44px;
}

body {
	color: var(--vs-text);
	-webkit-font-smoothing: antialiased;
}

/* Trang dựng bằng GreenShift: section tự lo khoảng cách, bỏ đệm trên/dưới của Blocksy. */
.chx-builder .ct-container-full {
	padding-top: 0;
	padding-bottom: 0;
}

/* Container ~1250px trên mọi trang Blocksy. */
.ct-container,
.ct-container-narrow {
	width: var(--vs-container);
}

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

.chx-ico {
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
}

.chx-ico svg {
	width: 1em;
	height: 1em;
}

/* ------------------------------------------------------------------ nút dùng chung */
.chx-btn,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 24px;
	border: 1px solid var(--vs-primary);
	border-radius: 999px;
	background: var(--vs-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.chx-btn:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
	background: var(--vs-primary-d);
	border-color: var(--vs-primary-d);
	color: #fff;
}

.chx-btn--light {
	background: #fff;
	color: var(--vs-ink);
	border-color: var(--vs-line);
}

/* ------------------------------------------------------------------ header */
.chx-topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0;
	font-size: 12.5px;
	letter-spacing: .02em;
	color: rgba(255, 255, 255, .86);
	white-space: nowrap;
}

.chx-topbar a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.chx-topbar__sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
}

[data-row*="top"] .ct-header-text {
	width: 100%;
}

/* Ô tìm kiếm ở giữa header. */
.ct-header-text .sgb-search {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	height: 44px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.sgb-search:focus-within {
	border-color: var(--vs-yellow);
	box-shadow: 0 0 0 4px rgba(255, 210, 63, .25);
}

.sgb-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 6px 0 20px;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 14px;
	color: var(--vs-ink);
}

.sgb-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--vs-ink);
	cursor: pointer;
	min-height: 0;
}

/* Menu danh mục: mục Sale màu nhấn, dropdown 1 cột gọn. */
.ct-header .chx-menu-sale > a {
	color: var(--vs-accent) !important;
}

.ct-header [data-id="menu"] .sub-menu {
	padding: 8px 0;
	border: 1px solid var(--vs-line);
	border-radius: 10px;
	box-shadow: 0 18px 40px rgba(15, 42, 26, .12);
	overflow: hidden;
}

.ct-header [data-id="menu"] .sub-menu .ct-menu-link {
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 500;
	gap: 10px;
}

.ct-header [data-id="menu"] .sub-menu .ct-menu-link:hover {
	background: var(--vs-soft);
}

.sgb-menu-icon--img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: contain;
	flex-shrink: 0;
	background: #fff;
}

.sgb-menu-label {
	display: inline-block;
}

/* Dropdown giỏ hàng Blocksy: mặc định nền tối chữ trắng – đổi sang nền trắng thì phải đặt lại màu chữ cho mọi phần
   (tên, Màu sắc / Size của biến thể, số lượng × giá, tạm tính), nếu không chữ trắng trên nền trắng. */
.ct-header-cart .ct-cart-content {
	--theme-text-color: var(--vs-text);
	--theme-link-initial-color: var(--vs-ink);
	--theme-link-hover-color: var(--vs-accent);
	--theme-headings-color: var(--vs-ink);
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(15, 42, 26, .14);
	background: #fff;
	color: var(--vs-text);
}

.ct-header-cart .ct-cart-content .woocommerce-mini-cart-item a:not(.remove) {
	color: var(--vs-ink);
	font-weight: 500;
}

.ct-header-cart .ct-cart-content dl.variation,
.ct-header-cart .ct-cart-content dl.variation dt,
.ct-header-cart .ct-cart-content dl.variation dd,
.ct-header-cart .ct-cart-content dl.variation p {
	color: var(--vs-muted);
	background: none;
	font-size: 12.5px;
	font-weight: 400;
}

.ct-header-cart .ct-cart-content dl.variation dt {
	font-weight: 600;
}

.ct-header-cart .ct-cart-content .quantity,
.ct-header-cart .ct-cart-content .quantity .amount,
.ct-header-cart .ct-cart-content .woocommerce-mini-cart__total,
.ct-header-cart .ct-cart-content .woocommerce-mini-cart__total .amount,
.ct-header-cart .ct-cart-content .woocommerce-mini-cart__empty-message {
	color: var(--vs-ink);
}

.ct-header-cart .ct-cart-content .woocommerce-mini-cart__total {
	border-top-color: var(--vs-line);
}

.ct-header-cart .ct-cart-content .remove {
	color: var(--vs-muted);
	border-color: var(--vs-line);
}

.ct-header-cart .ct-cart-content .woocommerce-mini-cart-item img {
	width: 56px;
	height: 75px;
	object-fit: cover;
	border-radius: 6px;
}

.ct-header-cart .woocommerce-mini-cart__buttons .button {
	min-height: 40px;
	padding: 0 14px;
	font-size: 13.5px;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
}

.ct-header-cart .woocommerce-mini-cart__buttons .button:not(.checkout) {
	background: #fff;
	color: var(--vs-ink);
}

/* ------------------------------------------------------------------ menu điện thoại (offcanvas) */
#offcanvas .ct-panel-actions .sgb-oc-brand img {
	display: block;
	width: auto;
	height: 26px;
}

#offcanvas .ct-social-box {
	--theme-icon-color: var(--vs-ink);
	margin-top: 18px;
}

#offcanvas .ct-panel-actions {
	justify-content: space-between;
	gap: 12px;
}

#offcanvas .sgb-menu-icon--svg {
	display: inline-flex;
	color: var(--vs-muted);
}

#offcanvas .ct-menu-link {
	gap: 12px;
}

.sgb-oc-contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 24px;
	padding: 18px;
	border-radius: 12px;
	background: var(--vs-soft);
}

.sgb-oc-contact__label {
	font-size: 13px;
	color: var(--vs-muted);
}

.sgb-oc-contact__tel {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	font-weight: 700;
	color: var(--vs-ink);
	text-decoration: none;
}

.sgb-oc-contact__zalo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border-radius: 999px;
	background: var(--vs-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

/* ------------------------------------------------------------------ lưới Query Grid (số cột theo lớp chx-qgrid--N) */
.chx-qgrid {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
}

.chx-qgrid .wp-block-post-template {
	--cols: 4;
	display: grid !important;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: 32px 20px;
	width: 100%;
	max-width: none;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

.chx-qgrid--3 .wp-block-post-template {
	--cols: 3;
}

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

.chx-qgrid .gspbgrid_item > *,
.chx-qgrid .sgb-card {
	width: 100%;
}

.chx-qgrid + .clearfix,
.wp-block-greenshift-blocks-querygrid + .clearfix {
	display: none;
}

@media (max-width: 999.98px) {
	.chx-qgrid--4 .wp-block-post-template {
		--cols: 3;
	}
	.chx-qgrid--3 .wp-block-post-template {
		gap: 24px 16px;
	}
}

@media (max-width: 767.98px) {
	.chx-qgrid--4 .wp-block-post-template,
	.chx-qgrid--3 .wp-block-post-template {
		--cols: 2;
		gap: 24px 12px;
	}
	.chx-news-grid .wp-block-post-template {
		--cols: 1;
	}
}

/* Phân trang của Query Grid. */
.chx-qgrid .pagination {
	margin-top: 40px;
}

.chx-qgrid .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.chx-qgrid .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--vs-line);
	border-radius: 999px;
	color: var(--vs-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.chx-qgrid a.page-numbers:hover {
	border-color: var(--vs-ink);
}

.chx-qgrid .page-numbers.current {
	background: var(--vs-ink);
	border-color: var(--vs-ink);
	color: #fff;
}

.woocommerce ul.products:has(.chx-loop-item) {
	display: grid;
}

/* Ảnh trong khối trang chủ: phóng nhẹ khi rê chuột. */
.chx-tile:hover .chx-zoom {
	transform: scale(1.04);
}

.chx-chiprow {
	scrollbar-width: none;
}

.chx-chiprow::-webkit-scrollbar {
	display: none;
}

/* Thẻ bài viết (Query Grid). */
.chx-news-grid .gspbgrid_item article {
	width: 100%;
}

/* ------------------------------------------------------------------ đăng ký nhận ưu đãi */
.chx-subscribe {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chx-subscribe input[type="email"] {
	flex: 1 1 220px;
	min-width: 0;
	height: 50px;
	padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, .25) !important;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08) !important;
	color: #fff;
	font-size: 15px;
}

.chx-subscribe input[type="email"]::placeholder {
	color: rgba(255, 255, 255, .6);
}

.chx-subscribe button {
	height: 50px;
	min-height: 50px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--vs-yellow);
	color: var(--vs-ink);
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
}

.chx-subscribe button:hover {
	background: #ffe07a;
}

.chx-subscribe .chx-form__msg {
	flex-basis: 100%;
	font-size: 14px;
	color: #fff;
}

.chx-subscribe .chx-form__msg strong {
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .14);
	letter-spacing: .06em;
}

.chx-trap {
	position: absolute !important;
	left: -9999px !important;
}

/* ------------------------------------------------------------------ form liên hệ */
.chx-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.chx-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.chx-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vs-ink);
}

.chx-form__field b {
	color: var(--vs-accent);
}

.chx-form input,
.chx-form select,
.chx-form textarea {
	width: 100%;
	border: 1px solid var(--vs-line) !important;
	border-radius: 8px !important;
	background: #fff;
	font-size: 15px;
	font-weight: 400;
}

.chx-form input,
.chx-form select {
	height: 46px;
}

.chx-form input:focus,
.chx-form select:focus,
.chx-form textarea:focus {
	border-color: var(--vs-ink) !important;
}

.chx-form .chx-btn {
	align-self: flex-start;
	min-width: 180px;
}

.chx-form__note {
	margin: 0;
	font-size: 13px;
	color: var(--vs-muted);
}

.chx-form__msg:empty {
	display: none;
}

.chx-form__msg {
	padding: 12px 14px;
	border-radius: 8px;
	background: var(--vs-soft);
	font-size: 14px;
}

.chx-form__msg.is-error {
	color: #a12a1d;
}

.chx-subscribe .chx-form__msg {
	padding: 0;
	background: none;
}

form.is-sending [type="submit"] {
	opacity: .6;
	pointer-events: none;
}

@media (max-width: 575.98px) {
	.chx-form__row {
		grid-template-columns: 1fr;
	}
	.chx-subscribe button {
		flex: 1 1 100%;
	}
}

/* ------------------------------------------------------------------ trang danh sách */
.chx-subcats {
	position: relative;
	margin: 0 0 22px;
}

.chx-subcats__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px 0 6px;
	cursor: grab;
	scroll-behavior: smooth;
}

.chx-subcats__track::-webkit-scrollbar {
	display: none;
}

.chx-subcats__track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}

.chx-subcats__track.is-dragging a {
	pointer-events: none;
}

.chx-subcat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	width: 92px;
	text-decoration: none;
	color: var(--vs-ink);
}

.chx-subcat__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--vs-soft);
	box-shadow: 0 0 0 1px var(--vs-line);
	transition: box-shadow .2s ease;
	font-size: 26px;
	color: var(--vs-ink);
}

.chx-subcat__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 18%;
}

.chx-subcat__name {
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}

.chx-subcat:hover .chx-subcat__img {
	box-shadow: 0 0 0 1.5px var(--vs-ink);
}

.chx-subcat.is-active .chx-subcat__img {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--vs-ink);
}

.chx-subcat.is-active .chx-subcat__name {
	font-weight: 700;
}

.chx-subcats.has-fade::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 6px;
	width: 48px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

/* Bộ lọc. */
.chx-filter {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin: 0 0 14px;
	padding: 12px 0;
	border-top: 1px solid var(--vs-line);
	border-bottom: 1px solid var(--vs-line);
	background: #fff;
}

.admin-bar .chx-filter {
	top: 32px;
}

.chx-filter__title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--vs-ink);
}

.chx-filter__title .chx-ico {
	font-size: 18px;
}

.chx-filter__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chx-filter__end {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.chx-filter__count {
	font-size: 13.5px;
	color: var(--vs-muted);
	white-space: nowrap;
}

.chx-filter__field select {
	height: 38px;
	min-width: 0;
	padding: 0 34px 0 16px !important;
	border: 1px solid var(--vs-line) !important;
	border-radius: 999px !important;
	background-color: #fff;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--vs-ink);
	cursor: pointer;
}

.chx-filter__field select:hover {
	border-color: var(--vs-ink) !important;
}

.chx-filter__field.is-set select {
	border-color: var(--vs-ink) !important;
	background-color: var(--vs-ink);
	color: #fff;
	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='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.chx-filter__sort select {
	border-color: transparent !important;
	padding-left: 8px !important;
	font-weight: 600;
}

.chx-filter__submit {
	display: none;
}

.no-js .chx-filter__submit {
	display: inline-flex;
}

.chx-filter__active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
}

.chx-filter__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 10px 0 12px;
	border-radius: 999px;
	background: var(--vs-soft);
	color: var(--vs-ink);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.chx-filter__chip .chx-ico {
	font-size: 14px;
}

.chx-filter__chip:hover {
	background: var(--vs-line);
}

.chx-filter__reset {
	font-size: 13px;
	font-weight: 600;
	color: var(--vs-ink);
}

.chx-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 56px 16px;
	text-align: center;
	color: var(--vs-muted);
}

.chx-shop .chx-shop-desc:empty {
	display: none;
}

@media (max-width: 767.98px) {
	.chx-filter {
		position: static;
		padding: 10px 0;
	}
	.chx-filter__title {
		display: none;
	}
	.chx-filter__fields {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		width: 100%;
		margin: 0 -15px;
		padding: 0 15px;
		width: calc(100% + 30px);
	}
	.chx-filter__fields::-webkit-scrollbar {
		display: none;
	}
	.chx-filter__field {
		flex-shrink: 0;
	}
	.chx-filter__end {
		width: 100%;
		margin-left: 0;
		justify-content: space-between;
	}
	.chx-subcat {
		width: 76px;
	}
	.chx-subcat__img {
		width: 64px;
		height: 64px;
	}
}

/* ------------------------------------------------------------------ trang sản phẩm */
.chx-single-product .chx-notices:not(:has(*)) {
	display: none;
}

.chx-single-product .chx-notices .woocommerce-message,
.chx-single-product .chx-notices .woocommerce-error {
	width: var(--vs-container);
	margin: 16px auto 0;
}

.chx-pcart form.cart {
	margin: 0;
}

.chx-pcart .woocommerce-variation-add-to-cart,
.chx-pcart form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.chx-pcart .quantity {
	height: 50px;
	border: 1px solid var(--vs-line);
	border-radius: 999px;
	overflow: hidden;
}

.chx-pcart .quantity input {
	height: 100%;
	border: 0 !important;
}

.chx-pcart .single_add_to_cart_button,
.chx-pcart .chx-buy-now {
	flex: 1 1 140px;
	min-height: 50px;
	border-radius: 999px !important;
	font-size: 15px;
	font-weight: 600;
}

.chx-pcart .single_add_to_cart_button {
	background: #fff !important;
	color: var(--vs-ink) !important;
	border: 1px solid var(--vs-ink) !important;
}

.chx-pcart .single_add_to_cart_button:hover {
	background: var(--vs-soft) !important;
}

.chx-pcart .single_add_to_cart_button.disabled {
	opacity: 1 !important;
	cursor: pointer;
}

.chx-pcart .chx-buy-now {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	border: 1px solid var(--vs-ink);
	background: var(--vs-ink);
	color: #fff;
	cursor: pointer;
}

.chx-pcart .chx-buy-now:hover {
	background: #000;
}

.chx-promises {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
	margin: 6px 0 0;
	padding: 18px;
	border-radius: var(--vs-radius);
	background: var(--vs-soft);
	list-style: none;
}

.chx-promises li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--vs-muted);
}

.chx-promises .chx-ico {
	font-size: 22px;
	color: var(--vs-ink);
}

.chx-promises strong {
	display: block;
	font-size: 13.5px;
	color: var(--vs-ink);
}

@media (max-width: 400px) {
	.chx-promises {
		grid-template-columns: 1fr;
	}
}

/* Accordion: dấu + xoay thành × khi mở. */
.chx-acc .gs_click_sync[aria-expanded="true"] svg {
	transform: rotate(45deg);
}

.chx-specs {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 14px;
}

.chx-specs th,
.chx-specs td {
	padding: 9px 0;
	border: 0;
	border-bottom: 1px dashed var(--vs-line);
	text-align: left;
	vertical-align: top;
}

.chx-specs th {
	width: 38%;
	font-weight: 500;
	color: var(--vs-muted);
}

.chx-specs td {
	color: var(--vs-ink);
}

.chx-pdesc h3 {
	margin: 18px 0 8px;
	font-size: 15px;
	font-weight: 700;
}

.chx-pdesc h3:first-child {
	margin-top: 0;
}

.chx-pdesc p,
.chx-pdesc ul {
	margin: 0 0 10px;
}

.chx-pdesc ul {
	padding-left: 18px;
}

.chx-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--vs-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Đánh giá. */
.chx-reviews #reviews {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 32px;
}

.chx-reviews .woocommerce-Reviews-title {
	display: none;
}

.chx-reviews .woocommerce-noreviews {
	margin: 0;
	color: var(--vs-muted);
}

.chx-reviews #review_form_wrapper {
	padding: 24px;
	border-radius: 12px;
	background: #fff;
}

.chx-reviews .comment-reply-title {
	display: block;
	margin-bottom: 10px;
	font-size: 17px;
	font-weight: 700;
	color: var(--vs-ink);
}

@media (max-width: 849.98px) {
	.chx-reviews #reviews {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ giỏ hàng, thanh toán */
.woocommerce-cart .ct-container-full,
.woocommerce-checkout .ct-container-full {
	padding-top: 40px;
}

.woocommerce-cart .woocommerce-cart-form img {
	width: 72px;
	height: 96px;
	object-fit: cover;
	border-radius: 8px;
}

.woocommerce-checkout .chx-hidden-field {
	display: none !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
	border-radius: 8px;
}

/* ------------------------------------------------------------------ trang nội dung (chính sách, hỏi đáp) */
.th-rich > *:last-child {
	margin-bottom: 0;
}

.th-rich p {
	margin: 0 0 12px;
}

.th-rich ul,
.th-rich ol {
	margin: 0 0 12px;
	padding-left: 20px;
}

.th-rich li {
	margin-bottom: 6px;
}

.th-rich a {
	color: var(--vs-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.th-table th,
.th-table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--vs-line);
	text-align: left;
	font-size: 14.5px;
}

.th-table thead th {
	background: var(--vs-soft);
	font-weight: 600;
	color: var(--vs-ink);
}

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

/* ------------------------------------------------------------------ chân trang (nền tối) */
#footer {
	--theme-text-color: rgba(255, 255, 255, .72);
	--theme-link-initial-color: rgba(255, 255, 255, .72);
	--theme-link-hover-color: #fff;
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
}

#footer p,
#footer li {
	color: rgba(255, 255, 255, .72);
}

#footer .wp-block-heading {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
}

#footer ul.wp-block-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

#footer ul.wp-block-list li {
	margin: 0 0 10px;
}

#footer a {
	color: rgba(255, 255, 255, .72);
	text-decoration: none;
}

#footer a:hover {
	color: #fff;
}

#footer .chx-foot-about {
	margin: 18px 0;
	line-height: 1.7;
}

#footer .ct-footer-copyright {
	font-size: 13px;
	color: rgba(255, 255, 255, .55);
}

/* Dòng thông báo web demo dưới bản quyền. */
#footer .chx-demo-note {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .45);
}

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

.chx-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	font-size: 17px;
	transition: background-color .2s ease, border-color .2s ease;
}

#footer .chx-social a:hover {
	background: #fff;
	border-color: #fff;
	color: var(--vs-ink);
}

#footer .sgb-footer-company {
	margin: 0 0 12px;
	color: #fff;
	font-size: 13.5px;
	line-height: 1.5;
}

#footer .sgb-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.55;
}

#footer .chx-foot-ico {
	margin-top: 2px;
	font-size: 17px;
	color: rgba(255, 255, 255, .55);
}

/* Thông báo "Đã thêm vào giỏ" (thêm nhanh từ thẻ). */
.chx-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: calc(100% - 24px);
	padding: 12px 14px 12px 18px;
	border-radius: 999px;
	background: var(--vs-ink);
	color: #fff;
	font-size: 14px;
	box-shadow: 0 18px 40px rgba(15, 42, 26, .25);
	opacity: 0;
	transform: translate(-50%, 16px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
}

.chx-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.chx-toast a {
	flex-shrink: 0;
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--vs-ink);
	font-weight: 600;
	text-decoration: none;
}

/* Nút liên hệ nổi (Cài đặt → Thông tin liên hệ: bật/tắt, cạnh trái/phải, Gọi · Zalo · Messenger). */
.chx-float {
	position: fixed;
	bottom: 84px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.chx-float--right {
	right: 18px;
	align-items: flex-end;
}

.chx-float--left {
	left: 18px;
	align-items: flex-start;
}

.chx-float__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 18px 0 13px;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 12px 28px rgba(15, 42, 26, .22);
	transition: transform .2s ease;
}

.chx-float__btn:hover {
	color: #fff;
	transform: translateY(-2px);
}

.chx-float__btn .chx-ico {
	font-size: 22px;
}

.chx-float__btn--call {
	background: var(--vs-ink);
}

.chx-float__btn--zalo {
	background: #0068ff;
}

.chx-float__btn--messenger {
	background: linear-gradient(45deg, #0a7cff 0%, #a033ff 60%, #ff5c87 100%);
}

@media (max-width: 575.98px) {
	.chx-float {
		bottom: 72px;
		gap: 8px;
	}
	.chx-float--right {
		right: 12px;
	}
	.chx-float--left {
		left: 12px;
	}
	.chx-float__btn {
		width: 48px;
		height: 48px;
		padding: 0;
		justify-content: center;
	}
	.chx-float__btn span:not(.chx-ico) {
		display: none;
	}
	.chx-topbar__more {
		display: none;
	}
	.chx-topbar__sep {
		display: none;
	}
}

/* ------------------------------------------------------------------ bài viết (Cẩm nang) */
.single-post .entry-content h2 {
	margin-top: 1.6em;
	font-size: 24px;
}

.single-post .entry-content a {
	color: var(--vs-accent);
}

.entry-card .ct-media-container {
	border-radius: 10px;
}

/* ================================================================== bách hoá: header xanh */
/* Hàng giữa header nền xanh: icon tài khoản, giỏ hàng, nút menu điện thoại màu trắng. */
.ct-header [data-row*="middle"] {
	--theme-icon-color: #fff;
	--theme-icon-hover-color: var(--vs-yellow);
	--theme-link-initial-color: #fff;
	--theme-link-hover-color: var(--vs-yellow);
}

.ct-header [data-row*="middle"] .ct-header-trigger,
.ct-header [data-row*="middle"] .ct-header-search,
.ct-header [data-row*="middle"] .ct-header-account,
.ct-header [data-row*="middle"] .ct-header-cart > a {
	color: #fff;
}

.ct-header [data-row*="middle"] .ct-dynamic-count-cart {
	background: var(--vs-yellow) !important;
	color: var(--vs-ink) !important;
}

.chx-hotline-head {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff !important;
	text-decoration: none;
	line-height: 1.25;
	white-space: nowrap;
}

.chx-hotline-head .chx-ico {
	font-size: 26px;
}

.chx-hotline-head small {
	display: block;
	font-size: 11.5px;
	opacity: .85;
}

.chx-hotline-head strong {
	font-size: 15px;
}

/* Menu danh mục (hàng dưới): icon danh mục cha. */
.ct-header [data-id="menu"] > ul > li > .ct-menu-link .chx-ico {
	font-size: 19px;
	color: var(--vs-primary);
}

.ct-header [data-id="menu"] > ul > li > .ct-menu-link {
	gap: 6px;
}

/* ================================================================== thẻ sản phẩm (Content Block "Thẻ sản phẩm") */
.chx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px 12px 14px;
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius);
	background: #fff;
	transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.chx-card:hover {
	border-color: #c9d6ee;
	box-shadow: 0 14px 34px rgba(15, 42, 26, .1);
	transform: translateY(-2px);
}

.chx-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	margin-bottom: 10px;
}

.chx-card__img {
	display: block;
	width: 100%;
	height: 100%;
}

.chx-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.chx-card:hover .chx-card__img img {
	transform: scale(1.04);
}

.chx-badges {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	pointer-events: none;
}

.chx-badge {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 6px;
	background: var(--vs-soft);
	color: var(--vs-ink);
	font-size: 11.5px;
	font-weight: 700;
	white-space: nowrap;
}

.chx-badge--sale {
	background: var(--vs-sale);
	color: #fff;
}

.chx-badge--pay {
	background: #eaf1ff;
	color: var(--vs-primary);
}

.chx-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 7px;
}

.chx-card-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.chx-card-chips span {
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--vs-soft);
	color: var(--vs-muted);
	font-size: 11.5px;
	line-height: 1.5;
}

.chx-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.chx-card__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	min-height: 2.9em;
	color: var(--vs-ink);
	text-decoration: none;
}

.chx-card__title a:hover {
	color: var(--vs-primary);
}

.chx-card__pricewrap {
	margin-top: auto;
}

.chx-card__price .gspb_price_value,
.chx-card__price .price {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}

.chx-card__price .amount {
	font-size: 16px;
	font-weight: 700;
	color: var(--vs-sale);
}

.chx-card__price ins {
	order: -1;
	text-decoration: none;
}

.chx-card__price del {
	line-height: 1.3;
}

.chx-card__price del .amount {
	font-size: 13px;
	font-weight: 400;
	color: var(--vs-muted);
}

.chx-card .chx-card-cart.button {
	gap: 6px;
	width: 100%;
	min-height: 36px;
	margin-top: 4px;
	padding: 0 12px;
	border: 1px solid var(--vs-primary) !important;
	background: #fff !important;
	color: var(--vs-primary) !important;
	font-size: 13px;
}

.chx-card .chx-card-cart.button:hover {
	background: var(--vs-primary) !important;
	color: #fff !important;
}

.chx-card-cart .chx-ico {
	font-size: 16px;
}

.chx-card-cart.loading {
	opacity: .6;
}

.chx-card .added_to_cart {
	display: none !important;
}

.chx-card-oos {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--vs-muted);
}

.chx-qgrid--5 .wp-block-post-template {
	--cols: 5;
	gap: 12px;
}

.chx-qgrid--4 .wp-block-post-template {
	gap: 14px;
}

@media (max-width: 1199.98px) {
	.chx-qgrid--5 .wp-block-post-template {
		--cols: 4;
	}
}

@media (max-width: 999.98px) {
	.chx-qgrid--5 .wp-block-post-template {
		--cols: 3;
	}
}

@media (max-width: 767.98px) {
	.chx-qgrid--5 .wp-block-post-template {
		--cols: 2;
		gap: 8px;
	}
	.chx-qgrid--4 .wp-block-post-template {
		gap: 8px;
	}
	.chx-card {
		padding: 8px 8px 10px;
	}
	.chx-card__title {
		font-size: 13px;
	}
	.chx-card__price .amount {
		font-size: 14.5px;
	}
	.chx-card__price del .amount {
		font-size: 12px;
	}
	.chx-badge {
		height: 20px;
		padding: 0 6px;
		font-size: 10.5px;
	}
	.chx-card-chips span:nth-child(2) {
		display: none;
	}
}

/* Lưới cuộn ngang (khu Giá sốc trang chủ trên điện thoại). */
@media (max-width: 767.98px) {
	.chx-qgrid--scroll .wp-block-post-template {
		display: flex !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}
	.chx-qgrid--scroll .wp-block-post-template::-webkit-scrollbar {
		display: none;
	}
	.chx-qgrid--scroll .gspbgrid_item {
		flex: 0 0 44%;
		scroll-snap-align: start;
	}
}

/* Vòng lặp Woo (giỏ hàng: sản phẩm bán kèm). */
.woocommerce ul.products:has(.chx-loop-item) {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

/* ================================================================== trang chủ */
.chx-slider {
	position: relative;
	overflow: hidden;
}

.chx-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	height: 100%;
}

.chx-slider__track::-webkit-scrollbar {
	display: none;
}

.chx-slider__track > * {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

.chx-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.chx-slider__dots button {
	width: 8px;
	height: 8px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: rgba(255, 255, 255, .6);
	cursor: pointer;
	transition: width .25s ease, background-color .25s ease;
}

.chx-slider__dots button.is-on {
	width: 22px;
	background: #fff;
}

.chx-catnav a:hover {
	background: var(--vs-soft);
	color: var(--vs-primary) !important;
}

.chx-catnav a:hover svg {
	color: var(--vs-primary);
}

.chx-countdown {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.chx-countdown span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 30px;
	border-radius: 6px;
	background: #fff;
	color: var(--vs-sale);
	font-size: 15px;
}

.chx-countdown b {
	color: #fff;
}

.chx-chiprow {
	scrollbar-width: none;
}

.chx-chiprow::-webkit-scrollbar {
	display: none;
}

/* ================================================================== trang danh sách: hãng */
.chx-brands {
	position: relative;
	margin: 0 0 14px;
}

.chx-brands__track {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.chx-brands__track::-webkit-scrollbar {
	display: none;
}

.chx-brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 92px;
	height: 38px;
	padding: 0 16px;
	border: 1px solid var(--vs-line);
	border-radius: 8px;
	background: #fff;
	color: var(--vs-ink);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .02em;
	text-decoration: none;
	text-transform: uppercase;
	transition: border-color .2s ease, color .2s ease;
}

.chx-brand:hover,
.chx-brand.is-active {
	border-color: var(--vs-primary);
	color: var(--vs-primary);
}

.chx-brand.is-active {
	background: #eaf1ff;
}

/* ================================================================== trang sản phẩm */
.chx-single-product .chx-notices:not(:has(*)) {
	display: none;
}

.chx-single-product .chx-notices .woocommerce-message,
.chx-single-product .chx-notices .woocommerce-error {
	width: var(--vs-container);
	margin: 16px auto 0;
}

.chx-pmeta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	font-size: 13.5px;
	color: var(--vs-muted);
}

.chx-pmeta > i {
	width: 1px;
	height: 14px;
	background: var(--vs-line);
}

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

.chx-pmeta__brand strong {
	color: var(--vs-primary);
}

.chx-pmeta__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.chx-pmeta__rating .chx-ico {
	color: #f5a623;
}

.chx-pmeta__stock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
}

.chx-pmeta__stock.is-in {
	color: #12a150;
}

.chx-saving {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13.5px;
	color: var(--vs-sale);
}

.chx-saving .chx-ico {
	font-size: 16px;
}

.chx-highlights {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chx-highlights li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	margin: 0;
	padding: 9px 12px;
	border-radius: 8px;
	background: var(--vs-soft);
	font-size: 12px;
	color: var(--vs-muted);
}

.chx-highlights strong {
	overflow: hidden;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vs-ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chx-pcart .single_add_to_cart_button {
	background: #fff !important;
	color: var(--vs-primary) !important;
	border: 1px solid var(--vs-primary) !important;
}

.chx-pcart .single_add_to_cart_button:hover {
	background: #eaf1ff !important;
}

.chx-pcart .chx-buy-now {
	border-color: var(--vs-sale) !important;
	background: var(--vs-sale) !important;
	color: #fff !important;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.chx-pcart .chx-buy-now:hover {
	background: #c81b26 !important;
}

.chx-installment {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding: 9px 16px;
	border: 1px solid #cfe0ff;
	border-radius: 999px;
	background: #f4f8ff;
	color: var(--vs-primary);
	font-size: 12.5px;
	line-height: 1.35;
	text-decoration: none;
}

.chx-installment .chx-ico {
	font-size: 24px;
}

.chx-installment strong {
	display: block;
	font-size: 14px;
}

.chx-installment:hover {
	background: #eaf1ff;
}

.chx-pd-hotline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0;
	font-size: 14px;
	color: var(--vs-muted);
}

.chx-pd-hotline .chx-ico {
	color: var(--vs-primary);
}

.chx-pd-hotline a {
	font-weight: 700;
	color: var(--vs-primary);
	text-decoration: none;
}

.chx-promises .chx-ico {
	color: var(--vs-primary);
}

.chx-specs {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 13.5px;
}

.chx-specs tr:nth-child(odd) {
	background: var(--vs-soft);
}

.chx-specs th,
.chx-specs td {
	padding: 9px 12px;
	border: 0;
	vertical-align: top;
	text-align: left;
}

.chx-specs th {
	width: 42%;
	font-weight: 500;
	color: var(--vs-muted);
}

.chx-specs td {
	color: var(--vs-ink);
}

.chx-pdesc {
	position: relative;
	font-size: 15px;
	line-height: 1.75;
	color: var(--vs-text);
}

.chx-specs-wrap {
	position: relative;
}

.chx-pdesc.is-collapsed,
.chx-specs-wrap.is-collapsed {
	max-height: var(--chx-more-h, 680px);
	overflow: hidden;
}

.chx-pdesc.is-collapsed::after,
.chx-specs-wrap.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 140px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}

.chx-more-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	margin: 16px auto 0;
	padding: 0 22px;
	border: 1px solid var(--vs-primary);
	border-radius: 999px;
	background: #fff;
	color: var(--vs-primary);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.chx-more-btn .chx-ico {
	transform: rotate(90deg);
	transition: transform .25s ease;
}

.chx-more-btn.is-open .chx-ico {
	transform: rotate(-90deg);
}

.chx-muted {
	color: var(--vs-muted);
}

@media (max-width: 575.98px) {
	.chx-highlights {
		grid-template-columns: 1fr;
	}
}

.chx-specs tr.chx-specs__group,
.chx-specs tr.chx-specs__group:nth-child(odd) {
	background: #fff;
}

.chx-specs .chx-specs__group th {
	width: auto;
	padding: 16px 12px 8px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--vs-ink);
}

.chx-specs tbody:first-child .chx-specs__group th {
	padding-top: 4px;
}

.chx-specs tbody tr:not(.chx-specs__group):nth-child(even) {
	background: var(--vs-soft);
}

.chx-specs tbody tr:not(.chx-specs__group):nth-child(odd) {
	background: #fff;
}

/* Ảnh danh mục con: ảnh sản phẩm nền trắng, không cắt. */
.chx-subcat__img img {
	object-fit: contain !important;
	background: #fff;
	padding: 6px;
}

.chx-saving {
	display: block;
	line-height: 1.5;
}

.chx-saving .chx-ico {
	margin-right: 4px;
	vertical-align: -2px;
}

@media (max-width: 767.98px) {
	.chx-card .chx-card-cart.button {
		min-height: 32px;
		padding: 0 6px;
		font-size: 12.5px;
		white-space: nowrap;
	}
	.chx-card-cart .chx-ico {
		display: none;
	}
}

/* ================================================================== bộ lọc nhiều lựa chọn (nút thả xuống) */
.chx-fdrop {
	position: relative;
	flex-shrink: 0;
}

.chx-fdrop > summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 12px 0 16px;
	border: 1px solid var(--vs-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--vs-ink);
	list-style: none;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}

.chx-fdrop > summary::-webkit-details-marker {
	display: none;
}

.chx-fdrop > summary .chx-ico {
	font-size: 14px;
	transform: rotate(90deg);
	transition: transform .2s ease;
}

.chx-fdrop[open] > summary .chx-ico {
	transform: rotate(-90deg);
}

.chx-fdrop > summary:hover,
.chx-fdrop[open] > summary {
	border-color: var(--vs-primary);
	color: var(--vs-primary);
}

.chx-fdrop.is-set > summary {
	border-color: var(--vs-primary);
	background: #eaf1ff;
	color: var(--vs-primary);
	font-weight: 600;
}

.chx-fdrop > summary b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 99px;
	background: var(--vs-primary);
	color: #fff;
	font-size: 11px;
}

.chx-fdrop__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	width: max-content;
	min-width: 240px;
	max-width: min(480px, 90vw);
	padding: 14px;
	border: 1px solid var(--vs-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 42, 26, .16);
}

.chx-fdrop__opts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-height: 320px;
	overflow-y: auto;
}

.chx-fopt {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid var(--vs-line);
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--vs-ink);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.chx-fopt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.chx-fopt small {
	font-size: 11.5px;
	color: var(--vs-muted);
}

.chx-fopt:hover {
	border-color: var(--vs-primary);
}

.chx-fopt:has(input:checked) {
	border-color: var(--vs-primary);
	background: #eaf1ff;
	color: var(--vs-primary);
	font-weight: 600;
}

.chx-fopt:has(input:focus-visible) {
	outline: 2px solid var(--vs-primary);
	outline-offset: 2px;
}

.chx-fdrop__actions {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--vs-line);
}

.chx-fdrop__actions button {
	flex: 1;
	min-height: 38px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}

.chx-fdrop__clear {
	border: 1px solid var(--vs-line);
	background: #fff;
	color: var(--vs-ink);
}

.chx-fdrop__go {
	border: 1px solid var(--vs-primary);
	background: var(--vs-primary);
	color: #fff;
}

.chx-brand[aria-pressed="true"]::after {
	content: "✓";
	margin-left: 6px;
	font-size: 12px;
}

/* Điện thoại: bảng chọn thành tấm trượt từ dưới lên (hàng nút cuộn ngang không cắt mất bảng). */
@media (max-width: 767.98px) {
	.chx-fdrop__panel {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1000;
		width: auto;
		max-width: none;
		padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -12px 40px rgba(15, 42, 26, .25);
	}
	.chx-fdrop[open]::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(15, 42, 26, .45);
	}
	.chx-fdrop__opts {
		max-height: 55vh;
	}
}

/* ================================================================== trang sản phẩm: chọn phiên bản / màu */
.chx-pcart .variations_form table.variations,
.chx-pcart table.variations tbody,
.chx-pcart table.variations tr,
.chx-pcart table.variations td,
.chx-pcart table.variations th {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.chx-pcart table.variations th.label {
	display: none;
}

.chx-pcart table.variations tr + tr {
	margin-top: 14px;
}

.chx-select-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.chx-attr__head {
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--vs-muted);
}

.chx-attr__head strong {
	color: var(--vs-ink);
}

.chx-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chx-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	min-width: 72px;
	justify-content: center;
	padding: 0 14px;
	border: 1px solid var(--vs-line);
	border-radius: 10px;
	background: #fff;
	color: var(--vs-ink);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.chx-chip:hover {
	border-color: var(--vs-primary);
}

.chx-chip[aria-pressed="true"] {
	border-color: var(--vs-primary);
	background: #eaf1ff;
	color: var(--vs-primary);
	font-weight: 700;
	box-shadow: inset 0 0 0 1px var(--vs-primary);
}

.chx-chip:disabled {
	opacity: .4;
	text-decoration: line-through;
	cursor: not-allowed;
}

.chx-chip .chx-dot {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 50%;
	background: var(--c);
}

.chx-pcart .single_variation_wrap .woocommerce-variation-price,
.chx-pcart .woocommerce-variation-availability {
	display: none;
}

.chx-pcart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.chx-pcart .single_add_to_cart_button.disabled {
	opacity: 1 !important;
	cursor: pointer;
}

.chx-attr.is-missing .chx-chips {
	animation: chx-shake .4s;
}

.chx-attr.is-missing .chx-attr__head strong {
	color: var(--vs-sale);
}

@keyframes chx-shake {
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.chx-card .chx-card-cart--pick.button {
	border-color: var(--vs-line) !important;
	color: var(--vs-ink) !important;
}

@media (max-width: 767.98px) {
	body.chx-fsheet-open .chx-float {
		display: none;
	}
}

/* Tốc độ: các khu bên dưới màn hình đầu chỉ tính layout / vẽ khi cuộn tới (trang chủ có ~55 thẻ sản phẩm). */
.chx-builder .entry-content > section.alignfull:nth-of-type(n+4) {
	content-visibility: auto;
	contain-intrinsic-size: auto 640px;
}

/* ================================================================== PageSpeed: độ tương phản + vùng chạm (Lighthouse) */
.chx-slider__dots { gap: 0; bottom: 4px; }
.chx-slider__dots button { box-sizing: content-box; border: 8px solid transparent; background-clip: padding-box; }
del, del .amount, del bdi, .price del, .gspb_price_value del { color: #66706A !important; opacity: 1 !important; }
#footer .chx-demo-note { color: #B5C4BA; }
.ct-footer-copyright a { text-decoration: underline; text-underline-offset: 2px; }
.chx-pmeta__stock.is-in { color: #0B7A3B !important; }
.chx-saving, .chx-saving .amount, .chx-saving strong { color: #C4161F !important; }
.chx-promo-box > p, .chx-promo-box > p span { color: #006B31 !important; }
