
/* === Reset & Base Layout === */
.ksf-bhx-home {
	background: #f4f6f8;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1e293b;
	padding-bottom: 50px;
}

.ksf-bhx-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* === 1. Hero Banner & Thông Điệp Bách Hóa === */
.ksf-bhx-hero {
	padding: 16px 0 12px 0;
}

/* Trust Badges Bar (Hỗ trợ Desktop 4 cột & Mobile Marquee) */
.ksf-bhx-trust-bar {
	background: #ffffff;
	border-radius: 10px;
	padding: 12px 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	border: 1px solid #e2e8f0;
	overflow: hidden;
}

.ksf-bhx-trust-track {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	width: 100%;
}

.ksf-bhx-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ksf-trust-clone {
	display: none !important;
}

.ksf-bhx-trust-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e8f5e9;
	color: #008848;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}

.ksf-bhx-trust-title {
	font-size: 12px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
	line-height: 1.25;
}

.ksf-bhx-trust-sub {
	font-size: 11px;
	color: #64748b;
	margin: 0;
}

/* === 2. Quick Category Ribbon (Thanh Icon Danh Mục Tròn) === */
.ksf-bhx-cat-ribbon {
	padding: 10px 0 16px 0;
}

.ksf-bhx-cat-scroll {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 4px 2px 8px 2px;
}

.ksf-bhx-cat-scroll::-webkit-scrollbar {
	height: 4px;
}

.ksf-bhx-cat-scroll::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.ksf-bhx-cat-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	min-width: 72px;
	max-width: 80px;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.ksf-bhx-cat-chip:hover {
	transform: translateY(-3px);
}

.ksf-bhx-chip-icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #008848;
	margin-bottom: 6px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	transition: all 0.15s ease;
}

.ksf-bhx-cat-chip:hover .ksf-bhx-chip-icon {
	border-color: #008848;
	background: #f0fdf4;
	box-shadow: 0 4px 10px rgba(0, 136, 72, 0.18);
}

.ksf-bhx-cat-chip.is-brand .ksf-bhx-chip-icon {
	background: #ffffff;
	border-color: #e2e8f0;
	padding: 4px;
	box-sizing: border-box;
}

.ksf-bhx-cat-chip.is-brand:hover .ksf-bhx-chip-icon {
	border-color: #008848;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 136, 72, 0.2);
}

.ksf-bhx-brand-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ksf-bhx-cat-chip:hover .ksf-bhx-brand-img {
	transform: scale(1.12);
}

@media (min-width: 1200px) {
	.ksf-bhx-cat-scroll {
		justify-content: space-between !important;
	}
}

.ksf-bhx-chip-name {
	font-size: 11px;
	font-weight: 600;
	color: #334155;
	text-align: center;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* === 3. Shelf Blocks (Các Kệ Hàng Theo Ngành) === */
.ksf-bhx-shelf {
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	padding: 16px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Shelf Header */
.ksf-bhx-shelf-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	margin-bottom: 14px;
	border-bottom: 2px solid #f1f5f9;
}

.ksf-bhx-shelf-title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ksf-bhx-shelf-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #008848;
}

.ksf-bhx-shelf-deal .ksf-bhx-shelf-icon {
	color: #d97706;
}

.ksf-bhx-shelf-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.ksf-bhx-shelf-viewall {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12.5px;
	font-weight: 700;
	color: #008848;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 14px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	transition: all 0.15s ease;
}

.ksf-bhx-shelf-viewall:hover {
	background: #008848;
	color: #ffffff;
}

/* Kệ Deal Thùng Đặc Biệt */
.ksf-bhx-shelf-deal {
	background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
	border: 1.5px solid #fde68a;
	box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}

.ksf-bhx-shelf-deal .ksf-bhx-shelf-header {
	border-bottom-color: #fef3c7;
}

.ksf-bhx-shelf-deal .ksf-bhx-shelf-title {
	color: #b45309;
}

.ksf-bhx-shelf-deal .ksf-bhx-shelf-viewall {
	color: #b45309;
	background: #fef3c7;
	border-color: #fde68a;
}

.ksf-bhx-shelf-deal .ksf-bhx-shelf-viewall:hover {
	background: #d97706;
	color: #ffffff;
}

/* === 4. Grid Sản Phẩm Chuẩn BHX === */
.ksf-bhx-shelf ul.products {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr) !important;
	gap: 12px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ksf-bhx-shelf ul.products li.product {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: none !important;
	float: none !important;
	box-sizing: border-box !important;
}

.ksf-bhx-shelf ul.products li.product .product-block {
	display: flex !important;
	flex-direction: column !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	padding: 10px !important;
	height: 100% !important;
	box-sizing: border-box !important;
	position: relative !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.ksf-bhx-shelf ul.products li.product:hover .product-block {
	transform: translateY(-3px) !important;
	border-color: #008848 !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Ảnh sản phẩm vuông */
.ksf-bhx-shelf ul.products li.product .product-transition {
	position: relative !important;
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	overflow: hidden !important;
	border-radius: 6px !important;
	background: #f8fafc !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-bottom: 8px !important;
}

.ksf-bhx-shelf ul.products li.product .product-transition img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	display: block !important;
	transition: transform 0.2s ease !important;
}

.ksf-bhx-shelf ul.products li.product:hover .product-transition img {
	transform: scale(1.04) !important;
}

/* Product Hover Image (Ảnh thùng & Biến thể) */
.ksf-bhx-shelf ul.products li.product .product-transition .product-img-wrap.ksf-has-hover-image {
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
	overflow: hidden !important;
	display: block !important;
}
.ksf-bhx-shelf ul.products li.product .product-transition .product-img-wrap.ksf-has-hover-image .inner {
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.ksf-bhx-shelf ul.products li.product .product-img-wrap.ksf-has-hover-image .ksf-main-image {
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: 1 !important;
	position: relative !important;
	z-index: 1 !important;
	transition: opacity 0.28s ease, transform 0.28s ease !important;
}
.ksf-bhx-shelf ul.products li.product .product-img-wrap.ksf-has-hover-image .ksf-second-image {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #ffffff !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	z-index: 2 !important;
	transform: scale(0.96) !important;
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s !important;
}
.ksf-bhx-shelf ul.products li.product:hover .ksf-has-hover-image .ksf-main-image,
.ksf-bhx-shelf ul.products li.product .ksf-has-hover-image.is-hovered .ksf-main-image {
	opacity: 0 !important;
	transform: scale(0.96) !important;
}
.ksf-bhx-shelf ul.products li.product:hover .ksf-has-hover-image .ksf-second-image,
.ksf-bhx-shelf ul.products li.product .ksf-has-hover-image.is-hovered .ksf-second-image {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: scale(1) !important;
	z-index: 3 !important;
}
.ksf-bhx-shelf ul.products li.product:hover .ksf-thumb-hover-badge,
.ksf-bhx-shelf ul.products li.product .ksf-has-hover-image.is-hovered .ksf-thumb-hover-badge {
	opacity: 1 !important;
	transform: translateX(-50%) translateY(0) !important;
}

/* Tiêu đề sản phẩm */
.ksf-bhx-shelf ul.products li.product .woocommerce-loop-product__title {
	font-size: 13px !important;
	line-height: 17px !important;
	height: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	margin: 2px 0 6px 0 !important;
	padding: 0 !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	display: -webkit-box !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	font-weight: 500 !important;
	color: #1e293b !important;
}

.ksf-bhx-shelf ul.products li.product .woocommerce-loop-product__title a {
	color: #1e293b !important;
	text-decoration: none !important;
}

.ksf-bhx-shelf ul.products li.product:hover .woocommerce-loop-product__title a {
	color: #008848 !important;
}

/* Cụm Giá & Badge Thùng Chuẩn Bách Hóa Xanh */
.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;
	margin: 0 0 8px 0 !important;
	padding: 0 !important;
	border: none !important;
	line-height: 1.25 !important;
	min-height: 48px !important;
}

.ksf-main-price-wrap {
	display: inline-flex !important;
	align-items: baseline !important;
	justify-content: center !important;
	text-align: center !important;
	gap: 3px !important;
	width: 100% !important;
}

.ksf-bhx-shelf ul.products li.product .price .amount {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #008848 !important;
}

.ksf-price-unit {
	font-size: 12px !important;
	color: #64748b !important;
	font-weight: 500 !important;
}

/* Triệt tiêu thẻ .uom cũ rớt bơ vơ ở đáy */
.price .uom,
.product-block .price .uom,
ul.products li.product .price .uom,
.ksf-bhx-shelf ul.products li.product .price .uom {
	display: none !important;
}

/* Tag Thùng Chuẩn Bách Hóa Xanh: 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 !important;
	user-select: none !important;
	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-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 !important;
	margin-right: 2px !important;
	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;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	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;
}

/* Nút Chọn Mua / Bộ Qty Chuẩn BHX */
.ksf-bhx-shelf .ksf-qty-control {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	margin-top: auto !important;
}

.ksf-bhx-shelf .ksf-qty-control:not(.has-items) {
	border: 1px solid #008848 !important;
	background: #f0fdf4 !important;
	border-radius: 4px !important;
	height: 32px !important;
	cursor: pointer !important;
	position: relative !important;
	overflow: hidden !important;
	transition: all 0.15s ease !important;
}

.ksf-bhx-shelf .ksf-qty-control:not(.has-items):hover {
	background: #008848 !important;
}

.ksf-bhx-shelf .ksf-qty-control:not(.has-items) .ksf-qty-minus,
.ksf-bhx-shelf .ksf-qty-control:not(.has-items) .ksf-qty-input {
	display: none !important;
}

.ksf-bhx-shelf .ksf-qty-control:not(.has-items) .ksf-qty-plus {
	width: 100% !important;
	height: 100% !important;
	background: transparent !important;
	color: #008848 !important;
	border: none !important;
	font-size: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
}

.ksf-bhx-shelf .ksf-qty-control:not(.has-items) .ksf-qty-plus::after {
	content: 'MUA' !important;
	display: block !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px !important;
	color: #008848 !important;
	line-height: 30px !important;
	text-align: center !important;
}

.ksf-bhx-shelf .ksf-qty-control:not(.has-items):hover .ksf-qty-plus::after {
	color: #ffffff !important;
}

/* Nút Đặt Trước cho sản phẩm Pre-order */
.ksf-is-preorder .ksf-qty-control:not(.has-items) {
	border-color: #2563eb !important;
	background: #eff6ff !important;
}

.ksf-is-preorder .ksf-qty-control:not(.has-items):hover {
	background: #2563eb !important;
}

.ksf-is-preorder .ksf-qty-control:not(.has-items) .ksf-qty-plus::after {
	content: 'ĐẶT TRƯỚC' !important;
	color: #1d4ed8 !important;
	font-size: 12px !important;
}

.ksf-is-preorder .ksf-qty-control:not(.has-items):hover .ksf-qty-plus::after {
	color: #ffffff !important;
}

/* Badge Pre-order Đặt Trước */
.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.25 !important;
	color: #1d4ed8 !important;
	background: #eff6ff !important;
	border: 1px solid #bfdbfe !important;
	padding: 2px 7px !important;
	border-radius: 4px !important;
	font-weight: 700 !important;
}

/* Khi đã có số lượng trong giỏ (has-items) */
.ksf-bhx-shelf .ksf-qty-control.has-items {
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px !important;
	background: #ffffff !important;
	height: 32px !important;
	padding: 2px !important;
	box-sizing: border-box !important;
}

.ksf-bhx-shelf .ksf-qty-control.has-items .ksf-qty-btn {
	width: 28px !important;
	height: 26px !important;
	border-radius: 3px !important;
	border: none !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
}

.ksf-bhx-shelf .ksf-qty-control.has-items .ksf-qty-plus {
	background: #008848 !important;
	color: #ffffff !important;
}

.ksf-bhx-shelf .ksf-qty-control.has-items .ksf-qty-plus::after {
	content: none !important;
}

.ksf-bhx-shelf .ksf-qty-control.has-items .ksf-qty-minus {
	background: #f1f5f9 !important;
	color: #334155 !important;
}

.ksf-bhx-shelf .ksf-qty-control.has-items .ksf-qty-input {
	display: block !important;
	width: calc(100% - 56px) !important;
	height: 26px !important;
	border: none !important;
	text-align: center !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #008848 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* === Responsive Mobile (<= 768px) === */
@media (max-width: 768px) {
	.ksf-bhx-container {
		padding: 0 10px;
	}

	.ksf-bhx-hero {
		padding: 10px 0 8px 0;
	}


	/* ==========================================================================
	   [DPS CUSTOM FIX] - 2026-10-15 - Dev: DPS
	   Mục đích: Chuyển trust-bar trên Mobile thành MarqueeSection cuộn vô tận
	             mượt mà (chuẩn Kamereo.vn mobile), hiển thị trọn vẹn cả Title & Subtitle.
	   ========================================================================== */
	.ksf-bhx-trust-bar {
		display: block !important;
		padding: 10px 0 !important;
		overflow: hidden !important;
		border-radius: 10px !important;
		position: relative !important;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
	}

	.ksf-bhx-trust-track {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		width: max-content !important;
		gap: 24px !important;
		animation: ksfTrustMarquee 18s linear infinite !important;
		will-change: transform !important;
	}

	.ksf-bhx-trust-bar:hover .ksf-bhx-trust-track,
	.ksf-bhx-trust-bar:active .ksf-bhx-trust-track {
		animation-play-state: paused !important;
	}

	.ksf-bhx-trust-item {
		display: inline-flex !important;
		align-items: center !important;
		gap: 8px !important;
		flex-shrink: 0 !important;
		white-space: nowrap !important;
	}

	.ksf-trust-clone {
		display: inline-flex !important;
	}

	.ksf-bhx-trust-icon {
		width: 32px !important;
		height: 32px !important;
		font-size: 16px !important;
		flex-shrink: 0 !important;
	}

	.ksf-bhx-trust-title {
		font-size: 11.5px !important;
		font-weight: 700 !important;
		line-height: 1.25 !important;
		color: #1e293b !important;
		margin: 0 !important;
	}

	.ksf-bhx-trust-sub {
		display: block !important;
		font-size: 10px !important;
		color: #64748b !important;
		margin: 0 !important;
		line-height: 1.2 !important;
	}

	@keyframes ksfTrustMarquee {
		0% {
			transform: translateX(0);
		}
		100% {
			transform: translateX(calc(-50% - 12px));
		}
	}
	/* ===================== END [DPS CUSTOM FIX] ===================== */

	.ksf-bhx-shelf {
		padding: 12px 8px;
		border-radius: 10px;
		margin-bottom: 14px;
	}

	.ksf-bhx-shelf-title {
		font-size: 15px;
	}

	.ksf-bhx-shelf-viewall {
		font-size: 11px;
		padding: 3px 8px;
	}

	/* Grid 3 Cột Chuẩn Mobile BHX */
	.ksf-bhx-shelf ul.products {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 6px !important;
	}

	.ksf-bhx-shelf ul.products li.product .product-block {
		padding: 6px !important;
	}

	.ksf-bhx-shelf ul.products li.product .woocommerce-loop-product__title {
		font-size: 11px !important;
		line-height: 14px !important;
		height: 28px !important;
		min-height: 28px !important;
		max-height: 28px !important;
		margin: 2px 0 4px 0 !important;
	}

	.ksf-bhx-shelf ul.products li.product .price {
		display: flex !important;
		flex-direction: column !important;
		align-items: center !important;
		justify-content: center !important;
		text-align: center !important;
		margin: 0 0 6px 0 !important;
		min-height: auto !important;
	}

	.ksf-bhx-shelf ul.products li.product .price .amount {
		font-size: 12.5px !important;
	}

	/* Badge Thùng 2 Dòng Mobile: Không bao giờ bị cắt cụt chữ */
	.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 !important;
		overflow: visible !important;
		text-overflow: clip !important;
	}

	.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;
	}

	.ksf-bhx-shelf .ksf-qty-control .ksf-qty-btn {
		width: 24px !important;
		height: 24px !important;
	}

	.ksf-bhx-shelf .ksf-qty-control .ksf-qty-input {
		height: 24px !important;
		font-size: 11px !important;
	}
}

@media (max-width: 480px) {
	/* Trên màn hình rất nhỏ (dưới 360px), tự chuyển 2 cột nếu cần, mặc định giữ 3 cột cực đẹp */
	.ksf-bhx-chip-icon {
		width: 46px;
		height: 46px;
		font-size: 20px;
	}

	.ksf-bhx-chip-name {
		font-size: 10.5px;
	}
}

/* === 9. Kệ Tin Tức & Mẹo Vặt Mới Nhất Dưới Cùng Trang Chủ === */
.ksf-bhx-shelf-news {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.ksf-home-news-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 4px;
}

@media (max-width: 991px) {
	.ksf-home-news-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

@media (max-width: 575px) {
	.ksf-home-news-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

.ksf-home-news-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ksf-home-news-card:hover {
	transform: translateY(-4px);
	border-color: #cbd5e1;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.ksf-home-news-thumb-link {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
	position: relative;
}

.ksf-home-news-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	display: block;
}

.ksf-home-news-card:hover .ksf-home-news-img {
	transform: scale(1.05);
}

.ksf-home-news-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #008848;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
}

.ksf-home-news-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	padding: 12px 14px 4px 14px;
	font-size: 11.5px;
	color: #94a3b8;
}

.ksf-home-news-meta .ksf-meta-dot {
	color: #cbd5e1;
}

.ksf-home-news-title {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	padding: 4px 14px;
	flex: 1;
}

.ksf-home-news-title a {
	color: #0f172a;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.ksf-home-news-title a:hover {
	color: #008848;
}

.ksf-home-news-excerpt {
	font-size: 12.5px;
	line-height: 1.5;
	color: #64748b;
	padding: 0 14px 14px 14px;
	margin: 6px 0 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
