/* ==========================================================================
   [DPS CUSTOM FIX] - 2026-10-17 - Dev: DPS
   Single Post Editorial & Conversion Stylesheet (Kamereo & Khải San Food Standard)
   - Strict Max 700 Font-Weight Rule (No Vietnamese Glitches)
   - Zero Emoji Policy (100% Lucide SVG)
   - High-Readability Editorial Typography (Mulish, 17px/1.85)
   - Sticky Sidebar with WooCommerce Products, Cover & Promo
   - In-article TOC & Bottom-Left Floating TOC Drawer
   ========================================================================== */

/* === 1. Base Container & Freshio Overrides === */
body.single-post {
	background-color: #f8fafc !important;
	font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	color: #334155;
	-webkit-font-smoothing: antialiased;
}

/* Triệt tiêu bẫy khoảng trống 300px và viền đứt nét của Freshio */
.single-post .freshio-breadcrumb {
	min-height: unset !important;
	height: auto !important;
	padding: 12px 0 !important;
	background: #ffffff !important;
	margin: 0 0 20px 0 !important;
	border-bottom: 1px solid #e2e8f0 !important;
	display: block !important;
}

@media (min-width: 768px) {
	.single-post .freshio-breadcrumb {
		min-height: 0 !important;
		height: auto !important;
		padding: 12px 0 !important;
		margin: 0 0 24px 0 !important;
		display: block !important;
	}
	body.single-post .header-4 ~ .freshio-breadcrumb + .site-content,
	body.single-post #content.site-content {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}
}

.single-post .freshio-breadcrumb .breadcrumb-heading {
	display: none !important;
}

.single-post .freshio-breadcrumb .woocommerce-breadcrumb {
	font-size: 13px !important;
	color: #64748b !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 6px !important;
}

.single-post .freshio-breadcrumb .woocommerce-breadcrumb a {
	color: #64748b !important;
	text-decoration: none !important;
	transition: color 0.15s ease !important;
}

.single-post .freshio-breadcrumb .woocommerce-breadcrumb a:hover {
	color: #008848 !important;
}

/* Triệt tiêu layout cũ của Freshio */
.single-post #primary.content-area {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.single-post #primary.content-area:after {
	display: none !important;
	border: none !important;
}

.single-post #primary.content-area .site-main {
	margin: 0 !important;
	padding: 0 !important;
}

.single-post #secondary.widget-area {
	display: none !important;
}

/* === 2. Khung Bố Cục 2 Cột Chuẩn Kamereo === */
.ksf-single-post-wrapper {
	padding: 0 0 60px 0;
	box-sizing: border-box;
}

.ksf-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 32px;
	align-items: start;
	width: 100%;
	box-sizing: border-box;
}

/* === 3. Khối Thẻ Bài Viết Chính (Reading Card) === */
.ksf-article-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 36px 40px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
	box-sizing: border-box;
}

/* 3.1. Category Pill */
.ksf-cat-badge-wrap {
	margin-bottom: 14px;
}

.ksf-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #e8f5e9;
	color: #008848;
	font-size: 12.5px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.15s ease;
}

.ksf-cat-pill:hover {
	background: #008848;
	color: #ffffff;
}

/* 3.2. Tiêu Đề Bài Viết H1 */
.ksf-article-title {
	font-family: 'Mulish', sans-serif !important;
	font-size: clamp(24px, 3.2vw, 34px) !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.35 !important;
	margin: 0 0 16px 0 !important;
	letter-spacing: -0.02em !important;
}

/* 3.3. Thanh Meta Thông Tin */
.ksf-article-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 0;
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 24px;
	font-size: 13.5px;
	color: #64748b;
}

.ksf-meta-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.ksf-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ksf-meta-item svg {
	color: #94a3b8;
	flex-shrink: 0;
}

.ksf-meta-author {
	color: #0f172a;
	font-weight: 700;
}

.ksf-meta-author svg {
	color: #008848;
}

/* Bộ chuyển đổi cỡ chữ */
.ksf-text-sizer {
	display: inline-flex;
	align-items: center;
	background: #f1f5f9;
	padding: 3px;
	border-radius: 8px;
	gap: 2px;
}

.ksf-sizer-btn {
	background: transparent;
	border: none;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1.2;
}

.ksf-sizer-btn.is-active {
	background: #ffffff;
	color: #008848;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 3.4. Ảnh Đại Diện (Featured Image) */
.ksf-featured-image-box {
	margin: 0 0 28px 0;
	border-radius: 14px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.ksf-featured-img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

.ksf-img-caption {
	font-size: 13px;
	color: #64748b;
	font-style: italic;
	text-align: center;
	padding: 8px 14px;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
	margin: 0;
}



/* 3.6. Định Dạng Nội Dung Bài Viết (Editorial Body) */
.ksf-article-body {
	font-size: 17px;
	line-height: 1.85;
	color: #334155;
	transition: font-size 0.15s ease, line-height 0.15s ease;
}

.ksf-article-body.ksf-font-large {
	font-size: 19px !important;
	line-height: 1.95 !important;
}

.ksf-article-body p {
	margin: 0 0 20px 0;
}

/* Headings với thanh viền xanh thương hiệu */
.ksf-article-body h2 {
	font-family: 'Mulish', sans-serif !important;
	font-size: clamp(20px, 2.2vw, 24px) !important;
	font-weight: 700 !important;
	color: #0a472e !important;
	line-height: 1.4 !important;
	margin-top: 38px !important;
	margin-bottom: 16px !important;
	padding-left: 14px !important;
	border-left: 4px solid #008848 !important;
	scroll-margin-top: 110px !important;
}

.ksf-article-body h3 {
	font-family: 'Mulish', sans-serif !important;
	font-size: clamp(17px, 1.8vw, 20px) !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	line-height: 1.4 !important;
	margin-top: 26px !important;
	margin-bottom: 12px !important;
	scroll-margin-top: 110px !important;
}

.ksf-article-body h4,
.ksf-article-body h5,
.ksf-article-body h6 {
	font-weight: 700 !important;
	color: #1e293b !important;
	margin-top: 20px !important;
	margin-bottom: 10px !important;
}

/* Đảm bảo Font-Weight không vượt quá 700 */
.ksf-article-body strong,
.ksf-article-body b {
	font-weight: 700 !important;
	color: #0f172a;
}

.ksf-article-body a {
	color: #008848;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.ksf-article-body a:hover {
	color: #0a472e;
}

/* Hình ảnh trong nội dung */
.ksf-article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
	margin: 24px auto;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.ksf-article-body figure {
	margin: 24px auto;
	text-align: center;
}

.ksf-article-body figcaption {
	font-size: 13.5px;
	color: #64748b;
	font-style: italic;
	margin-top: 8px;
	text-align: center;
}

/* Danh sách gạch đầu dòng */
.ksf-article-body ul,
.ksf-article-body ol {
	margin: 16px 0 24px 24px;
	padding: 0;
}

.ksf-article-body li {
	margin-bottom: 8px;
	line-height: 1.75;
}

/* Khối trích dẫn Callout Box chuẩn Kamereo */
.ksf-article-body blockquote {
	background: #f0fdf4;
	border-left: 4px solid #16a34a;
	border-radius: 0 12px 12px 0;
	padding: 18px 22px;
	margin: 26px 0;
	color: #166534;
	font-style: italic;
	font-size: 16.5px;
	line-height: 1.8;
}

.ksf-article-body blockquote p:last-child {
	margin-bottom: 0;
}

/* Bảng biểu chuẩn responsive */
.ksf-article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 15px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}

.ksf-article-body th {
	background: #f8fafc;
	color: #0f172a;
	font-weight: 700;
	padding: 12px 16px;
	text-align: left;
	border-bottom: 2px solid #e2e8f0;
}

.ksf-article-body td {
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
}

.ksf-article-body tr:nth-child(even) td {
	background: #fafafa;
}

/* 3.7. Thanh Chia Sẻ Mạng Xã Hội */
.ksf-share-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding: 18px 22px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	margin: 36px 0 24px 0;
}

.ksf-share-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #334155;
}

.ksf-share-title svg {
	color: #008848;
}

.ksf-share-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ksf-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.15s ease;
	line-height: 1.2;
}

.ksf-share-fb,
a.ksf-share-fb,
.ksf-share-fb span,
.ksf-share-fb svg {
	color: #ffffff !important;
	fill: #ffffff !important;
}

.ksf-share-fb {
	background: #1877f2 !important;
}

.ksf-share-fb:hover {
	background: #0d65d9 !important;
	color: #ffffff !important;
}

.ksf-share-zalo,
a.ksf-share-zalo,
.ksf-share-zalo span,
.ksf-share-zalo .ksf-zalo-txt {
	color: #ffffff !important;
}

.ksf-share-zalo {
	background: #0068ff !important;
}

.ksf-share-zalo:hover {
	background: #0054cc !important;
	color: #ffffff !important;
}

.ksf-share-copy,
button.ksf-share-copy,
.ksf-share-copy span,
.ksf-share-copy svg {
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	color: #334155 !important;
	stroke: #334155 !important;
}

.ksf-share-copy:hover,
.ksf-share-copy:hover span,
.ksf-share-copy:hover svg {
	border-color: #008848 !important;
	color: #008848 !important;
	stroke: #008848 !important;
}

/* 3.8. Thẻ Tag Bài Viết */
.ksf-post-tags-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 32px 0;
}

.ksf-tags-label {
	font-size: 13.5px;
	font-weight: 700;
	color: #64748b;
}

.ksf-tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ksf-tag-pill {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	font-size: 13px;
	padding: 4px 12px;
	border-radius: 999px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ksf-tag-pill:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* 3.9. Khối Tác Giả / Ban Biên Tập */
.ksf-author-box {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px;
	margin: 32px 0;
}

.ksf-author-avatar-col {
	flex-shrink: 0;
}

.ksf-author-avatar {
	width: 68px !important;
	height: 68px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	object-position: left center !important;
	border: 2px solid #008848 !important;
	background: #ffffff !important;
	padding: 2px !important;
	box-sizing: border-box !important;
}

.ksf-author-avatar-fallback {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #008848;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
}

.ksf-author-body {
	flex: 1;
}

.ksf-author-role {
	font-size: 11.5px;
	font-weight: 700;
	color: #008848;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.ksf-author-title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.ksf-author-bio {
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 12px 0;
}

.ksf-author-view-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #008848;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ksf-author-view-all:hover {
	color: #0a472e;
	transform: translateX(3px);
}

/* 3.10. Điều Hướng Bài Trước / Sau */
.ksf-post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 32px 0;
}

.ksf-nav-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: all 0.15s ease;
}

.ksf-nav-card:hover {
	border-color: #008848;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ksf-nav-arrow {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
}

.ksf-nav-next .ksf-nav-arrow {
	justify-content: flex-end;
}

.ksf-nav-content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ksf-nav-thumb img {
	width: 50px;
	height: 50px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}

.ksf-nav-post-title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 3.11. Lưới Bài Viết Liên Quan 4 Cột Chuẩn Kamereo */
.ksf-related-section {
	margin-top: 48px;
	padding-top: 36px;
	border-top: 2px dashed #e2e8f0;
}

.ksf-related-heading {
	font-family: 'Mulish', sans-serif !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	text-align: center !important;
	margin: 0 0 28px 0 !important;
}

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

.ksf-rel-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-rel-card:hover {
	transform: translateY(-4px);
	border-color: #cbd5e1;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

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

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

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

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

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

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

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

.ksf-rel-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-rel-title a:hover {
	color: #008848;
}

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

/* 3.12. Comments Wrapper */
.ksf-comments-wrapper {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #e2e8f0;
}

/* === 4. CỘT SIDEBAR ĐỘNG (KAMEREO STANDARD + COVER/PROMO) === */
.ksf-single-sidebar {
	width: 340px;
	flex-shrink: 0;
	box-sizing: border-box;
}

.ksf-sidebar-sticky {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Thẻ chung trong Sidebar */
.ksf-sb-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
	box-sizing: border-box;
}

.ksf-sb-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
}

.ksf-sb-card-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.ksf-sb-card-link {
	font-size: 12.5px;
	font-weight: 700;
	color: #008848;
	text-decoration: none;
}

.ksf-sb-card-link:hover {
	text-decoration: underline;
}

/* 4.1. Widget Tìm Kiếm */
.ksf-sb-search-card {
	padding: 10px 14px;
}

.ksf-sb-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.ksf-sb-search-input {
	flex: 1;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
	border-radius: 8px !important;
	padding: 8px 12px !important;
	font-size: 13.5px !important;
	color: #0f172a !important;
	outline: none !important;
	box-shadow: none !important;
}

.ksf-sb-search-input:focus {
	border-color: #008848 !important;
	background: #ffffff !important;
}

.ksf-sb-search-btn {
	background: #008848;
	border: none;
	color: #ffffff;
	border-radius: 8px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease;
	flex-shrink: 0;
}

.ksf-sb-search-btn:hover {
	background: #0a472e;
}

/* 4.2. Widget Sản Phẩm Khuyến Mãi (WooCommerce) - Restyled Kamereo Standard */
.ksf-sb-products-card {
	padding: 16px !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}

.ksf-sb-products-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
}

.ksf-sb-product-row {
	display: flex !important;
	align-items: flex-start !important;
	gap: 12px !important;
	padding: 10px !important;
	border: 1px solid #f1f5f9 !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
	width: 100% !important;
}

.ksf-sb-product-row:hover {
	border-color: #86efac !important;
	background: #fafffc !important;
	box-shadow: 0 3px 10px rgba(0, 136, 72, 0.06) !important;
	transform: translateY(-1px) !important;
}

.ksf-sb-p-thumb {
	position: relative !important;
	width: 72px !important;
	height: 72px !important;
	min-width: 72px !important;
	max-width: 72px !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
}

.ksf-sb-p-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	padding: 3px !important;
	box-sizing: border-box !important;
	display: block !important;
	transition: transform 0.25s ease !important;
}

.ksf-sb-product-row:hover .ksf-sb-p-thumb img {
	transform: scale(1.06) !important;
}

.ksf-sb-p-badge {
	position: absolute !important;
	top: 3px !important;
	left: 3px !important;
	background: #dc2626 !important;
	color: #ffffff !important;
	font-size: 9.5px !important;
	font-weight: 700 !important;
	padding: 1px 4.5px !important;
	border-radius: 4px !important;
	line-height: 1.2 !important;
	box-shadow: 0 1px 3px rgba(220, 38, 38, 0.4) !important;
	z-index: 2 !important;
}

.ksf-sb-p-info {
	flex: 1 !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
}

.ksf-sb-p-title {
	font-size: 13.5px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	margin: 0 0 4px 0 !important;
}

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

.ksf-sb-p-title a:hover {
	color: #008848 !important;
}

.ksf-sb-p-price {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 3px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Giá lẻ chính + Đơn vị tính */
.ksf-sb-p-price .ksf-main-price-wrap {
	display: inline-flex !important;
	align-items: baseline !important;
	gap: 4px !important;
	flex-wrap: wrap !important;
	line-height: 1.2 !important;
}

.ksf-sb-p-price .woocommerce-Price-amount {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #008848 !important;
}

.ksf-sb-p-price del {
	font-size: 12px !important;
	color: #94a3b8 !important;
	margin-right: 4px !important;
	font-weight: 400 !important;
}

.ksf-sb-p-price del .woocommerce-Price-amount {
	font-size: 12px !important;
	color: #94a3b8 !important;
	font-weight: 400 !important;
}

.ksf-sb-p-price ins {
	text-decoration: none !important;
}

.ksf-sb-p-price ins .woocommerce-Price-amount {
	color: #dc2626 !important;
	font-weight: 700 !important;
}

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

/* Thẻ Mua Thùng Tinh Gọn trong Sidebar */
.ksf-sb-p-price .ksf-bhx-deal-badge {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	text-align: left !important;
	margin: 2px 0 0 0 !important;
	padding: 3px 8px !important;
	background: #fff7ed !important;
	border: 1px solid #fed7aa !important;
	border-radius: 6px !important;
	font-size: 10.5px !important;
	line-height: 1.25 !important;
	color: #9a3412 !important;
	width: fit-content !important;
	max-width: 100% !important;
	min-height: unset !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
}

.ksf-sb-p-price .ksf-bhx-deal-badge:hover {
	background: #ffedd5 !important;
	border-color: #f97316 !important;
}

.ksf-sb-p-price .ksf-deal-top-row {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 3px !important;
	font-size: 10.5px !important;
	font-weight: 700 !important;
	color: #c2410c !important;
	white-space: nowrap !important;
}

.ksf-sb-p-price .ksf-deal-cart-icon {
	width: 10.5px !important;
	height: 10.5px !important;
	stroke: #c2410c !important;
	vertical-align: -1px !important;
	margin-right: 2px !important;
}

.ksf-sb-p-price .ksf-deal-bottom-row {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 4px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	color: #9a3412 !important;
	white-space: nowrap !important;
}

.ksf-sb-p-price .ksf-deal-price,
.ksf-sb-p-price .ksf-deal-price .woocommerce-Price-amount {
	font-size: 11px !important;
	font-weight: 700 !important;
	color: #9a3412 !important;
}

.ksf-sb-p-price .ksf-deal-pct {
	font-size: 9.5px !important;
	font-weight: 700 !important;
	background: #dc2626 !important;
	color: #ffffff !important;
	padding: 0 4px !important;
	border-radius: 3px !important;
	line-height: 1.3 !important;
}

/* Thẻ Hàng Đặt Trước (Pre-order) trong Sidebar */
.ksf-sb-p-price .ksf-preorder-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 3px !important;
	margin: 2px 0 0 0 !important;
	padding: 2px 6px !important;
	background: #f0f9ff !important;
	border: 1px solid #bae6fd !important;
	border-radius: 4px !important;
	font-size: 10.5px !important;
	font-weight: 600 !important;
	color: #0369a1 !important;
	width: fit-content !important;
}

.ksf-sb-p-price .ksf-preorder-icon {
	width: 10.5px !important;
	height: 10.5px !important;
	stroke: #0369a1 !important;
	vertical-align: -1px !important;
}

/* Triệt tiêu thẻ .uom rác bị plugin chèn ở đuôi chuỗi giá */
.ksf-sb-p-price .uom {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	height: 0 !important;
	width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	pointer-events: none !important;
}

/* 4.3. Banner Cover & Promo (Tự Động Đồng Bộ Trang Chủ) */
.ksf-sb-banner-card,
.ksf-sb-promo-card {
	padding: 0 !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	overflow: hidden !important;
	background: #f8fafc !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.ksf-sb-banner-slider,
.ksf-sb-promo-slider {
	position: relative !important;
	width: 100% !important;
	overflow: hidden !important;
	background: #f1f5f9 !important;
}

.ksf-sb-banner-slider.ksf-cover-slider {
	aspect-ratio: 2048 / 780 !important;
}

.ksf-sb-promo-slider.ksf-promo-slider {
	aspect-ratio: 1 / 1 !important;
}

.ksf-slider-track {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
}

.ksf-slide {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: opacity 0.5s ease, visibility 0.5s !important;
	display: block !important;
	text-decoration: none !important;
	pointer-events: none !important;
}

.ksf-slide.is-active {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	z-index: 2 !important;
}

.ksf-banner-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform 0.35s ease !important;
}

.ksf-slide:hover .ksf-banner-img {
	transform: scale(1.02) !important;
}

.ksf-slider-dots {
	position: absolute !important;
	bottom: 8px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	z-index: 10 !important;
	background: rgba(0, 0, 0, 0.38) !important;
	backdrop-filter: blur(4px) !important;
	padding: 3px 7px !important;
	border-radius: 12px !important;
}

.ksf-dot {
	width: 7px !important;
	height: 7px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.6) !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.ksf-dot.is-active {
	background: #ffffff !important;
	width: 16px !important;
	border-radius: 4px !important;
}

/* 4.5. Bài Viết Nổi Bật (Trending Articles) */
.ksf-sb-trending-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

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

.ksf-sb-t-thumb {
	width: 54px;
	height: 54px;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	flex-shrink: 0;
	display: block;
}

.ksf-sb-t-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

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

.ksf-sb-t-info {
	flex: 1;
	min-width: 0;
}

.ksf-sb-t-title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 3px 0;
}

.ksf-sb-t-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-sb-t-title a:hover {
	color: #008848;
}

.ksf-sb-t-meta {
	font-size: 11px;
	color: #94a3b8;
}

/* 4.6. Chuyên Mục (Categories Chips) */
.ksf-sb-cats-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ksf-sb-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 5px 10px;
	border-radius: 8px;
	font-size: 12.5px;
	color: #334155;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ksf-sb-cat-chip:hover {
	border-color: #008848;
	color: #008848;
	background: #ffffff;
}

.ksf-sb-cat-count {
	background: #e2e8f0;
	color: #475569;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 5px;
	border-radius: 999px;
}

.ksf-sb-cat-chip:hover .ksf-sb-cat-count {
	background: #008848;
	color: #ffffff;
}

.ksf-sb-search-btn svg {
	stroke: #ffffff !important;
}

/* === 6. RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
	.ksf-single-layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.ksf-single-sidebar {
		width: 100%;
	}

	.ksf-sidebar-sticky {
		position: static;
	}

	.ksf-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.ksf-article-card {
		padding: 24px 18px;
		border-radius: 12px;
	}

	.ksf-post-navigation {
		grid-template-columns: 1fr;
	}

	.ksf-related-grid {
		grid-template-columns: 1fr;
	}

}
