
	/* ==========================================================
	   KHAISANFOOD - BACH HOA XANH CATALOG LAYOUT (DESKTOP)
	   ========================================================== */

	/* Sidebar Danh Mục Cố Định Trái */
	.ksf-bhx-sidebar {
		width: 250px !important;
		min-width: 250px !important;
		max-width: 250px !important;
		background: #ffffff !important;
		border-radius: 8px !important;
		border: 1px solid #e2e8f0 !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
		position: sticky !important;
		top: 85px !important;
		z-index: 10 !important;
		overflow: hidden !important;
		box-sizing: border-box !important;
	}

	.ksf-bhx-sidebar-header {
		background: #0a773d !important;
		color: #ffffff !important;
		padding: 12px 14px !important;
		display: flex !important;
		align-items: center !important;
		gap: 8px !important;
		font-weight: 700 !important;
		font-size: 13px !important;
		letter-spacing: 0.5px !important;
		text-transform: uppercase !important;
	}

	.ksf-bhx-header-icon {
		stroke: #ffffff !important;
		flex-shrink: 0 !important;
	}

	.ksf-bhx-sidebar-body {
		max-height: calc(100vh - 150px) !important;
		overflow-y: auto !important;
		padding: 0 !important;
	}

	.ksf-bhx-menu-tree {
		list-style: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.ksf-bhx-menu-tree > li {
		border-bottom: 1px solid #f1f5f9 !important;
		margin: 0 !important;
		position: relative !important;
	}

	.ksf-bhx-menu-tree > li:last-child {
		border-bottom: none !important;
	}

	.ksf-bhx-menu-tree > li > a {
		display: flex !important;
		align-items: center !important;
		padding: 10px 14px !important;
		font-size: 13px !important;
		font-weight: 600 !important;
		color: #1e293b !important;
		text-decoration: none !important;
		transition: all 0.15s ease !important;
	}

	.ksf-bhx-menu-tree > li > a:hover {
		background: #f0fdf4 !important;
		color: #0a773d !important;
		padding-left: 17px !important;
	}

	.ksf-bhx-menu-tree > li.current-menu-item > a,
	.ksf-bhx-menu-tree > li.current-cat > a,
	.ksf-bhx-menu-tree > li.current-menu-ancestor > a {
		background: #e6f7ec !important;
		color: #0a773d !important;
		font-weight: 700 !important;
		border-left: 4px solid #0a773d !important;
	}

	.ksf-bhx-menu-tree .sub-menu {
		list-style: none !important;
		margin: 0 !important;
		padding: 0 0 6px 0 !important;
		background: #f8fafc !important;
		border-top: 1px solid #f1f5f9 !important;
	}

	.ksf-bhx-menu-tree .sub-menu li {
		margin: 0 !important;
	}

	.ksf-bhx-menu-tree .sub-menu li a {
		display: block !important;
		padding: 6px 14px 6px 26px !important;
		font-size: 12px !important;
		font-weight: 500 !important;
		color: #64748b !important;
		text-decoration: none !important;
		transition: color 0.15s ease !important;
	}

	.ksf-bhx-menu-tree .sub-menu li a:hover {
		color: #0a773d !important;
		font-weight: 600 !important;
	}

	.ksf-bhx-menu-tree .sub-menu li.current-menu-item a {
		color: #0a773d !important;
		font-weight: 700 !important;
	}

	/* Cột Phải - Main Catalog */

	/* Quick Filters Pills */
	.ksf-bhx-quick-filters {
		margin-bottom: 12px !important;
	}

	.ksf-bhx-pills-row {
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
		align-items: center !important;
	}

	.ksf-bhx-pill {
		display: inline-flex !important;
		align-items: center !important;
		gap: 4px !important;
		padding: 5px 12px !important;
		border-radius: 18px !important;
		background: #f1f5f9 !important;
		border: 1px solid #e2e8f0 !important;
		color: #334155 !important;
		font-size: 12px !important;
		font-weight: 500 !important;
		text-decoration: none !important;
		transition: all 0.15s ease !important;
	}

	.ksf-bhx-pill:hover {
		background: #e6f7ec !important;
		border-color: #86efac !important;
		color: #0a773d !important;
	}

	.ksf-bhx-pill.is-active {
		background: #0a773d !important;
		border-color: #0a773d !important;
		color: #ffffff !important;
		font-weight: 600 !important;
	}

	.ksf-bhx-pill.is-active .ksf-pill-count {
		color: #dcfce7 !important;
	}

	.ksf-pill-count {
		font-size: 11px;
		color: #94a3b8 !important;
	}

	/* Thanh Sắp Xếp chuẩn Bách Hóa Xanh */


	/* TRIỆT TIÊU LỖI THEME CHA: BẬT GRID 5 CỘT TRÊN DESKTOP CHUẨN BÁCH HÓA XANH */
	@media (min-width: 1025px) {


		/* Thẻ Card chuẩn tỉ lệ Bách Hóa Xanh (Dáng chữ nhật đứng thanh thoát, nhỏ gọn, không khoảng trống thừa) */



		/* Khu vực hình ảnh sản phẩm: Nền trắng tinh, chiếm 150px cân đối */




		/* Tên sản phẩm: 2 dòng chuẩn mực, không lệch hàng */


		/* Cụm giá & Đơn vị tính: Triệt tiêu đường gạch xám ngầm của theme Freshio */




		/* Cụm đơn vị tính liền giá & tag Mua Thùng chuẩn Bách Hóa Xanh (Căn Giữa Tâm) */
		.ksf-bhx-shelf ul.products li.product .price,
		ul.products li.product .price,
		.product-block .price {
			display: flex !important;
			flex-direction: column !important;
			align-items: center !important;
			justify-content: center !important;
			text-align: center !important;
		}

		.ksf-main-price-wrap {
			display: inline-flex !important;
			align-items: baseline !important;
			justify-content: center !important;
			text-align: center !important;
			gap: 2px !important;
			width: 100% !important;
		}

		.ksf-price-unit {
			font-size: 12px !important;
			color: #64748b !important;
			font-weight: 500 !important;
			margin-left: 2px;
		}

		/* Tag Thùng Căn Giữa: 2 dòng đồng bộ cả Desktop & Mobile */
		.ksf-bhx-deal-badge {
			display: flex !important;
			flex-direction: column !important;
			align-items: center !important;
			justify-content: center !important;
			text-align: center !important;
			gap: 2px !important;
			margin: 4px auto 0 auto !important;
			background: #fff7ed !important;
			border: 1px solid #fed7aa !important;
			padding: 4px 8px !important;
			border-radius: 6px !important;
			font-size: 11px !important;
			line-height: 1.25 !important;
			color: #9a3412 !important;
			width: fit-content !important;
			max-width: 95% !important;
			cursor: pointer;
			user-select: none;
			height: auto !important;
			min-height: 38px !important;
			box-sizing: border-box !important;
			transition: all 0.15s ease !important;
		}

		.ksf-deal-top-row {
			display: inline-flex !important;
			align-items: center !important;
			justify-content: center !important;
			gap: 3px !important;
			white-space: nowrap !important;
		}

		.ksf-deal-top-row::after {
			content: none !important;
		}

		.ksf-deal-bottom-row {
			display: inline-flex !important;
			align-items: center !important;
			justify-content: center !important;
			gap: 4px !important;
			white-space: nowrap !important;
		}

		.ksf-deal-label {
			color: #7c2d12 !important;
			font-weight: 600 !important;
		}

		.ksf-deal-price,
		.ksf-deal-price .amount {
			color: #c2410c !important;
			font-size: 11.5px !important;
			font-weight: 700 !important;
		}

		.ksf-deal-pct {
			background: #dc2626 !important;
			color: #ffffff !important;
			font-size: 9.5px !important;
			font-weight: 700 !important;
			padding: 1px 4px !important;
			border-radius: 3px !important;
			line-height: 1.1 !important;
			white-space: nowrap !important;
			flex-shrink: 0;
			display: inline-block !important;
		}

		/* Tag Đặt Trước: Căn Giữa Tâm Tuyệt Đối */
		.ksf-preorder-badge {
			display: inline-flex !important;
			align-items: center !important;
			justify-content: center !important;
			align-self: center !important;
			gap: 4px !important;
			margin: 4px auto 0 auto !important;
			font-size: 11px !important;
			line-height: 1.3 !important;
			color: #1d4ed8 !important;
			background: #eff6ff !important;
			border: 1px solid #bfdbfe !important;
			padding: 2px 7px !important;
			border-radius: 4px !important;
			font-weight: 700 !important;
			width: fit-content !important;
			max-width: 100% !important;
			text-align: center !important;
		}

		.ksf-bhx-deal-badge:hover {
			background: #ffedd5 !important;
			border-color: #f97316 !important;
			transform: translateY(-1px) !important;
			box-shadow: 0 2px 6px rgba(249, 115, 22, 0.15) !important;
		}

		.ksf-bhx-deal-badge:active,
		.ksf-bhx-deal-badge.is-clicked {
			transform: scale(0.96) !important;
			background: #fed7aa !important;
		}

		.ksf-deal-cart-icon {
			font-size: 11px;
			margin-right: 2px;
			flex-shrink: 0 !important;
		}

		.ksf-qty-carton-note {
			display: block !important;
			font-size: 10.5px !important;
			color: #047857 !important;
			font-weight: 700 !important;
			margin-top: 4px !important;
			text-align: center !important;
			background: #ecfdf5 !important;
			border: 1px solid #a7f3d0 !important;
			border-radius: 4px !important;
			padding: 1px 4px !important;
			line-height: 16px !important;
			width: 100% !important;
			box-sizing: border-box !important;
		}

		.ksf-deal-label {
			color: #7c2d12 !important;
			font-weight: 600 !important;
		}

		.ksf-deal-price,
		.ksf-deal-price .amount {
			color: #c2410c !important;
			font-size: 11.5px !important;
			font-weight: 700 !important;
		}

		.ksf-deal-pct {
			background: #dc2626 !important;
			color: #ffffff !important;
			font-size: 9.5px !important;
			font-weight: 700 !important;
			padding: 1px 4px !important;
			border-radius: 3px !important;
			line-height: 1.1 !important;
		}

		.ksf-preorder-badge {
			display: inline-flex !important;
			align-items: center !important;
			gap: 4px !important;
			margin-top: 4px !important;
			font-size: 11px !important;
			line-height: 1.3 !important;
			color: #1d4ed8 !important;
			background: #eff6ff !important;
			border: 1px solid #bfdbfe !important;
			padding: 2px 7px !important;
			border-radius: 4px !important;
			font-weight: 700 !important;
			width: fit-content !important;
		}

		/* Triệt tiêu thẻ .uom rớt đáy của WooCommerce */
		.price .uom,
		.product-block .price .uom,
		ul.products li.product .price .uom {
			display: none !important;
		}

		/* Nút MUA chuẩn Bách Hóa Xanh (Khi số lượng = 0) */

		/* Khi chưa có trong giỏ hàng (qty = 0): Nút MUA nền xanh mint thanh lịch chuẩn BHX */






		/* Khi đã có trong giỏ hàng (has-items / qty > 0): Bộ tăng giảm số lượng Kamereo */





	}

	/* Khi thu nhỏ màn hình (<= 1024px) */
	@media (max-width: 1024px) {
		.ksf-bhx-sidebar {
			display: none !important;
		}
	}

	/* ==========================================================
	   KHAISANFOOD - MOBILE CATEGORY OPTIMIZATIONS (BHX STYLE)
	   ========================================================== */
	@media (max-width: 768px) {
		/* 1. Ẩn spacer, heading và breadcrumb cồng kềnh của Elementor & Theme trên mobile */
		.elementor-element-d8310c4,
		.elementor-widget-spacer,
		.elementor-element-4a6b99b,
		.elementor-element-38c8256,
		.elementor-widget-woocommerce-breadcrumb,
		.freshio-breadcrumb {
			display: none !important;
		}

		.site-content {
			padding-top: 4px !important;
		}


		/* 2. Thanh Quick Filters Pills cuộn ngang mượt mà (1 dòng duy nhất, không wrap 5 dòng) */
		.ksf-bhx-quick-filters {
			margin: 4px 0 10px 0 !important;
			padding: 0 !important;
			width: 100% !important;
			overflow: hidden !important;
		}

		.ksf-bhx-pills-row {
			display: flex !important;
			flex-wrap: nowrap !important;
			overflow-x: auto !important;
			-webkit-overflow-scrolling: touch !important;
			scrollbar-width: none !important;
			padding: 4px 6px 6px 6px !important;
			gap: 6px !important;
		}

		.ksf-bhx-pills-row::-webkit-scrollbar {
			display: none !important;
		}

		.ksf-bhx-pill {
			flex-shrink: 0 !important;
			white-space: nowrap !important;
			padding: 5px 12px !important;
			font-size: 12px !important;
			border-radius: 16px !important;
			background: #f1f5f9 !important;
			border: 1px solid #e2e8f0 !important;
			color: #334155 !important;
			line-height: 1.2 !important;
		}

		.ksf-bhx-pill.is-active {
			background: #0a773d !important;
			border-color: #0a773d !important;
			color: #ffffff !important;
			font-weight: 600 !important;
		}

		.ksf-bhx-pill.is-active .ksf-pill-count {
			color: #dcfce7 !important;
		}

		/* 3. Thanh Sắp Xếp & Filter gọn gàng chuẩn Mobile */



		/* 4. Thẻ sản phẩm chuẩn BHX Mobile (Lưới 3 cột) */
		.woocommerce ul.products li.product,
		ul.products li.product {
			padding: 6px 4px 8px 4px !important;
			border: 1px solid #eef2f6 !important;
			border-radius: 6px !important;
			background: #ffffff !important;
			min-height: 235px !important;
			display: flex !important;
			flex-direction: column !important;
			justify-content: flex-start !important;
			box-sizing: border-box !important;
		}

		.product-block {
			display: flex !important;
			flex-direction: column !important;
			height: 100% !important;
			width: 100% !important;
			justify-content: flex-start !important;
		}

		/* Thumbnail ảnh sản phẩm: Nền trắng tinh, chiếm 100px */
		.product-block .product-transition {
			width: 100% !important;
			height: 100px !important;
			min-height: 100px !important;
			max-height: 100px !important;
			background: #ffffff !important;
			display: block !important;
			position: relative !important;
			margin-bottom: 4px !important;
			border-radius: 0 !important;
		}

		.product-block .product-transition .product-image {
			width: 100% !important;
			height: 100% !important;
			display: flex !important;
			align-items: center !important;
			justify-content: center !important;
		}

		.product-block .product-transition img {
			width: auto !important;
			height: auto !important;
			max-height: 95px !important;
			max-width: 100% !important;
			object-fit: contain;
			display: block !important;
			margin: 0 auto;
			padding: 0 !important;
		}

		/* Tên sản phẩm 2 dòng */
		ul.products li.product .woocommerce-loop-product__title,
		.product-block .woocommerce-loop-product__title {
			font-size: 11.5px !important;
			line-height: 15px !important;
			height: 30px !important;
			min-height: 30px !important;
			max-height: 30px !important;
			margin: 2px 0 2px 0 !important;
			padding: 0 !important;
			text-align: left !important;
			font-weight: 500 !important;
			color: #1f2937 !important;
		}

		/* Giá sản phẩm */
		ul.products li.product .price,
		.product-block .price {
			font-size: 12px !important;
			line-height: 15px !important;
			min-height: 16px !important;
			margin: 0 0 6px 0 !important;
			display: flex !important;
			flex-direction: column !important;
			align-items: center !important;
			justify-content: center !important;
			text-align: center !important;
			position: relative !important;
			gap: 2px !important;
			margin: 0 0 6px 0 !important;
		}

		ul.products li.product .price::after,
		.product-block .price::after {
			display: none !important;
			content: none !important;
		}

		ul.products li.product .price .amount,
		.product-block .price .amount {
			font-size: 12px !important;
			font-weight: 700 !important;
			color: #0a773d !important;
		}

		.ksf-main-price-wrap {
			display: inline-flex !important;
			align-items: baseline !important;
			justify-content: center !important;
			text-align: center !important;
			gap: 2px !important;
			width: 100% !important;
		}

		.ksf-price-unit {
			font-size: 10px !important;
			color: #64748b !important;
			font-weight: 500 !important;
		}

		/* Badge Thùng 2 Dòng Mobile: Không bao giờ bị cắt cụt */
		.ksf-bhx-deal-badge {
			display: flex !important;
			flex-direction: column !important;
			align-items: center !important;
			justify-content: center !important;
			text-align: center !important;
			gap: 2px !important;
			margin: 4px auto 0 auto !important;
			background: #fff7ed !important;
			border: 1px solid #fed7aa !important;
			padding: 3px 4px !important;
			border-radius: 4px !important;
			font-size: 10px !important;
			line-height: 1.2 !important;
			color: #9a3412 !important;
			width: 100% !important;
			max-width: 100% !important;
			box-sizing: border-box !important;
			height: auto !important;
			min-height: 38px !important;
			white-space: normal;
			overflow: visible !important;
			text-overflow: clip;
		}

		.ksf-deal-top-row {
			display: flex !important;
			align-items: center !important;
			justify-content: center !important;
			gap: 2px !important;
			width: 100% !important;
			font-size: 10px !important;
			color: #7c2d12 !important;
			font-weight: 600 !important;
			line-height: 1.1 !important;
		}

		.ksf-deal-top-row::after {
			display: none !important;
		}

		.ksf-deal-bottom-row {
			display: flex !important;
			align-items: center !important;
			justify-content: center !important;
			gap: 3px !important;
			width: 100% !important;
			line-height: 1.2 !important;
		}

		.ksf-deal-label {
			color: #7c2d12 !important;
			font-weight: 600 !important;
		}

		.ksf-deal-price,
		.ksf-deal-price .amount {
			color: #c2410c !important;
			font-size: 11px !important;
			font-weight: 700 !important;
		}

		.ksf-deal-pct {
			background: #dc2626 !important;
			color: #ffffff !important;
			font-size: 8.5px !important;
			font-weight: 700 !important;
			padding: 1px 3px !important;
			border-radius: 3px !important;
			line-height: 1 !important;
			white-space: nowrap !important;
		}

		/* Tag Đặt Trước: Căn Giữa Tâm Tuyệt Đối */
		.ksf-preorder-badge {
			display: inline-flex !important;
			align-items: center !important;
			justify-content: center !important;
			align-self: center !important;
			gap: 4px !important;
			margin: 4px auto 0 auto !important;
			font-size: 10px !important;
			line-height: 1.25 !important;
			color: #1d4ed8 !important;
			background: #eff6ff !important;
			border: 1px solid #bfdbfe !important;
			padding: 2px 6px !important;
			border-radius: 4px !important;
			font-weight: 700 !important;
			width: fit-content !important;
			max-width: 100% !important;
			text-align: center !important;
		}

		.ksf-preorder-badge {
			display: inline-flex !important;
			align-items: center !important;
			gap: 3px !important;
			margin-top: 3px !important;
			font-size: 9.5px !important;
			line-height: 1.2 !important;
			color: #1d4ed8 !important;
			background: #eff6ff !important;
			border: 1px solid #bfdbfe !important;
			padding: 1px 5px !important;
			border-radius: 3px !important;
			font-weight: 700 !important;
			width: fit-content !important;
		}

		ul.products li.product .price .uom,
		.product-block .price .uom,
		.price .uom {
			display: none !important;
		}

		/* 5. Nút MUA chuẩn BHX trên Mobile */
		.ksf-qty-control {
			width: 100% !important;
			max-width: 100% !important;
			height: 28px !important;
			margin-top: auto !important;
			box-sizing: border-box !important;
		}

		/* Khi qty = 0: Nút MUA xanh mint nhẹ */
		.ksf-qty-control:not(.has-items) {
			background: #f2fbf5 !important;
			border: 1px solid #c7eed5 !important;
			border-radius: 4px !important;
			display: flex !important;
			align-items: center !important;
			justify-content: center !important;
			padding: 0 !important;
			cursor: pointer !important;
		}

		.ksf-qty-control:not(.has-items):active {
			background: #0a773d !important;
			border-color: #0a773d !important;
		}

		.ksf-qty-control:not(.has-items) .ksf-qty-minus,
		.ksf-qty-control:not(.has-items) .ksf-qty-input {
			display: none !important;
		}

		.ksf-qty-control:not(.has-items) .ksf-qty-plus {
			width: 100% !important;
			height: 100% !important;
			display: flex !important;
			align-items: center !important;
			justify-content: center !important;
			background: transparent !important;
			border: none !important;
			box-shadow: none !important;
			font-size: 0 !important;
			cursor: pointer !important;
			border-radius: 4px !important;
		}

		.ksf-qty-control:not(.has-items) .ksf-qty-plus::after {
			content: 'MUA' !important;
			display: block !important;
			font-size: 11.5px !important;
			font-weight: 700 !important;
			color: #0a773d !important;
			letter-spacing: 0.5px !important;
			text-align: center !important;
			line-height: 26px !important;
		}

		.ksf-qty-control:not(.has-items):active .ksf-qty-plus::after {
			color: #ffffff !important;
		}

		/* Khi qty > 0: Bộ tăng giảm số lượng Kamereo nhỏ gọn */
		.ksf-qty-control.has-items {
			background: #ffffff !important;
			border: 1px solid #0a773d !important;
			border-radius: 4px !important;
			padding: 0 !important;
			height: 28px !important;
		}

		.ksf-qty-control.has-items .ksf-qty-btn {
			width: 24px !important;
			min-width: 24px !important;
			height: 26px !important;
			font-size: 14px !important;
			border-radius: 3px !important;
			padding: 0 !important;
			line-height: 1 !important;
		}

		.ksf-qty-control.has-items .ksf-qty-plus {
			background: #0a773d !important;
			color: #ffffff !important;
		}

		.ksf-qty-control.has-items .ksf-qty-plus::after {
			content: none !important;
		}

		.ksf-qty-control.has-items .ksf-qty-minus {
			background: #f1f5f9 !important;
			color: #334155 !important;
		}

		.ksf-qty-control.has-items .ksf-qty-input {
			height: 26px !important;
			font-size: 12px !important;
			font-weight: 700 !important;
			color: #0a773d !important;
			padding: 0 !important;
		}

		/* 6. Nhãn giá thùng ưu đãi chuẩn BHX */
		.ksf-carton-price-badge {
			display: block !important;
			margin-top: 3px !important;
			font-size: 11px !important;
			line-height: 1.25 !important;
			color: #475569 !important;
			font-weight: 500 !important;
		}

		.ksf-carton-amount {
			color: #d97706 !important;
			font-weight: 700 !important;
		}

		.ksf-carton-saving {
			color: #16a34a !important;
			font-size: 10px !important;
			font-weight: 700 !important;
		}
	}
	