/* ==========================================================================
   [DPS MODULAR ARCHITECTURE] - Single Product Page CSS
   File: assets/css/single-product.css
   Mục đích: Thiết kế giao diện chi tiết sản phẩm chuẩn Bách Hóa Xanh (Tỉ Lệ Vàng 65% - 35%)
             Decouple 100% khỏi Elementor Theme Builder
   ========================================================================== */

/* 1. KHUNG TỔNG THỂ TRANG SINGLE PRODUCT */
.single-product .site-content {
	background-color: #f8fafc !important;
	padding-top: 12px !important;
	padding-bottom: 40px !important;
}

.ksf-single-product-container {
	width: 100% !important;
	max-width: 1340px !important;
	margin: 0 auto !important;
	box-sizing: border-box !important;
}

/* 2. CARD SẢN PHẨM CHÍNH (TOP CARD) & TRIỆT TIÊU FLOAT TỪ PARENT THEME */
.single-product div.product {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.single-product div.product .content-single-wrapper {
	display: contents !important;
}

.single-product div.product .ksf-single-product-top-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 24px 28px !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
	margin-bottom: 24px !important;
	display: flex !important;
	flex-direction: row !important;
	gap: 32px !important;
	align-items: flex-start !important;
	width: 100% !important;
	box-sizing: border-box !important;
	float: none !important;
}

.single-product div.product .ksf-single-product-gallery {
	float: none !important;
	box-sizing: border-box !important;
}

.single-product div.product .ksf-single-product-gallery .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	opacity: 1 !important;
}

.single-product div.product .ksf-single-product-summary,
.single-product div.product .summary.entry-summary {
	float: none !important;
	box-sizing: border-box !important;
}

/* 3. TỈ LỆ VÀNG 65% (ẢNH) - 35% (THÔNG TIN & MUA KÈM) TRÊN DESKTOP */
@media (min-width: 1025px) {
	.single-product div.product .ksf-single-product-gallery,
	.ksf-single-product-gallery {
		width: calc(65% - 16px) !important;
		max-width: calc(65% - 16px) !important;
		flex: 0 0 calc(65% - 16px) !important;
		box-sizing: border-box !important;
		display: flex !important;
		flex-direction: column !important;
		float: none !important;
	}

	.single-product div.product .ksf-single-product-summary,
	.ksf-single-product-summary {
		width: calc(35% - 16px) !important;
		max-width: calc(35% - 16px) !important;
		flex: 0 0 calc(35% - 16px) !important;
		box-sizing: border-box !important;
		display: flex !important;
		flex-direction: column !important;
		float: none !important;
	}

	.single-product div.product .summary,
	.single-product div.product .entry-summary {
		width: 100% !important;
		float: none !important;
	}
}

@media (max-width: 1024px) {
	.single-product div.product .ksf-single-product-top-card {
		flex-direction: column !important;
		gap: 20px !important;
		padding: 16px !important;
	}

	.single-product div.product .ksf-single-product-gallery,
	.single-product div.product .ksf-single-product-summary {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
	}
}

@media (max-width: 768px) {
	.single-product .site-content {
		padding-top: 8px !important;
		padding-bottom: 24px !important;
	}

	.single-product div.product .ksf-single-product-top-card {
		flex-direction: column !important;
		padding: 14px 12px !important;
		gap: 16px !important;
		border-radius: 8px !important;
		margin-bottom: 16px !important;
	}

	.single-product div.product .ksf-single-product-gallery,
	.ksf-single-product-gallery,
	.single-product div.product .ksf-single-product-summary,
	.ksf-single-product-summary {
		width: 100% !important;
		max-width: 100% !important;
		flex: none !important;
		float: none !important;
		display: block !important;
	}

	.ksf-single-product-gallery .woocommerce-product-gallery {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		margin: 0 !important;
	}

	.ksf-single-product-gallery .woocommerce-product-gallery__wrapper {
		width: 100% !important;
		max-width: 100% !important;
	}

	.ksf-single-product-gallery .woocommerce-product-gallery__image img {
		max-height: 340px !important;
		width: auto !important;
		max-width: 100% !important;
		margin: 0 auto !important;
	}

	.ksf-single-product-summary .product_title {
		font-size: 20px !important;
		line-height: 1.35 !important;
		margin-bottom: 8px !important;
	}

	.ksf-single-product-summary .price {
		font-size: 22px !important;
		margin-bottom: 12px !important;
	}

	.ksf-product-meta-row {
		margin-top: 14px !important;
		padding-top: 10px !important;
		gap: 12px !important;
		font-size: 12.5px !important;
	}

	.ksf-commitments-grid {
		grid-template-columns: 1fr !important;
		gap: 6px !important;
	}

	.ksf-single-product-details {
		padding: 16px !important;
		border-radius: 8px !important;
		margin-bottom: 20px !important;
	}
}

/* Ẩn triệt để stock text trùng lặp và UOM thừa */
.single-product div.product .ksf-single-product-summary p.stock,
.single-product div.product form.cart .stock,
.single-product div.product .entry-summary p.stock {
	display: none !important;
}

.single-product div.product .price .ksf-price-unit ~ .uom,
.single-product div.product .price > .uom {
	display: none !important;
}

/* 4. CỘT TRÁI: GALLERY & ẢNH SẢN PHẨM */
.ksf-single-product-gallery .woocommerce-product-gallery {
	width: 100% !important;
	position: relative !important;
	margin: 0 !important;
}

.ksf-single-product-gallery .woocommerce-product-gallery__image img {
	width: 100% !important;
	max-height: 520px !important;
	object-fit: contain !important;
	display: block !important;
	margin: 0 auto !important;
	border-radius: 8px !important;
}

.ksf-single-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	z-index: 9 !important;
	width: 36px !important;
	height: 36px !important;
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
}

.ksf-single-product-gallery .flex-control-thumbs {
	display: flex !important;
	gap: 10px !important;
	list-style: none !important;
	margin: 14px 0 0 0 !important;
	padding: 0 !important;
	overflow-x: auto !important;
}

.ksf-single-product-gallery .flex-control-thumbs li {
	width: 72px !important;
	height: 72px !important;
	min-width: 72px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	padding: 3px !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.ksf-single-product-gallery .flex-control-thumbs li img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	display: block !important;
}

.ksf-single-product-gallery .flex-control-thumbs li img.flex-active,
.ksf-single-product-gallery .flex-control-thumbs li:hover {
	border-color: #008848 !important;
}

/* THÔNG TIN META (MÃ SẢN PHẨM & DANH MỤC) */
.ksf-product-meta-row {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 20px !important;
	margin-top: 20px !important;
	padding-top: 14px !important;
	border-top: 1px solid #f1f5f9 !important;
	font-size: 13.5px !important;
	color: #64748b !important;
}

.ksf-meta-item strong {
	color: #0f172a !important;
	font-weight: 600 !important;
	margin-right: 4px !important;
}

.ksf-meta-item a {
	color: #008848 !important;
	text-decoration: none !important;
	font-weight: 600 !important;
}

.ksf-meta-item a:hover {
	text-decoration: underline !important;
}

/* 5. CỘT PHẢI: TIÊU ĐỀ, GIÁ, TỒN KHO & ĐẶT HÀNG */
.ksf-single-product-summary .product_title {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.35 !important;
	margin: 0 0 12px 0 !important;
}

.ksf-single-product-summary .price {
	font-size: 26px !important;
	font-weight: 800 !important;
	color: #008848 !important;
	display: flex !important;
	align-items: baseline !important;
	gap: 8px !important;
	margin: 0 0 14px 0 !important;
	line-height: 1.2 !important;
}

.ksf-single-product-summary .price del {
	font-size: 16px !important;
	color: #94a3b8 !important;
	font-weight: 500 !important;
}

.ksf-single-product-summary .price ins {
	text-decoration: none !important;
}

/* Badge Tồn Kho */
.ksf-stock-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 5px 12px !important;
	background: #ecfdf5 !important;
	color: #065f46 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	border-radius: 9999px !important;
	margin-bottom: 16px !important;
	width: fit-content !important;
	border: 1px solid #d1fae5 !important;
}

.ksf-stock-badge.is-out-of-stock {
	background: #fef2f2 !important;
	color: #991b1b !important;
	border-color: #fee2e2 !important;
}

.ksf-stock-dot {
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
	background: #10b981 !important;
	display: inline-block !important;
}

.ksf-stock-badge.is-out-of-stock .ksf-stock-dot {
	background: #ef4444 !important;
}

/* Form Giỏ Hàng & Ô Số Lượng */
.ksf-single-product-summary form.cart {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	margin: 16px 0 18px 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Triệt tiêu hoàn toàn kiểu dáng quantity cũ từ parent theme Freshio */
.single-product div.product form.cart .quantity,
.single-product div.product form.cart .quantity.ksf-qty-wrapper {
	display: inline-flex !important;
	align-items: center !important;
	position: static !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	height: 48px !important;
	width: auto !important;
	min-width: 120px !important;
	background: #ffffff !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.single-product div.product form.cart .quantity button,
.single-product div.product form.cart .quantity .ksf-qty-btn {
	position: static !important;
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 46px !important;
	background: #f8fafc !important;
	border: none !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	color: #334155 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background 0.15s ease !important;
	user-select: none !important;
	padding: 0 !important;
	margin: 0 !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
}

.single-product div.product form.cart .quantity button:hover,
.single-product div.product form.cart .quantity .ksf-qty-btn:hover {
	background: #e2e8f0 !important;
	color: #0f172a !important;
}

/* Ẩn triệt để nút minus/plus do freshio quantity.js tự chèn */
.single-product div.product form.cart .quantity button:not(.ksf-qty-btn) {
	display: none !important;
}

.single-product div.product form.cart .quantity .qty,
.single-product div.product form.cart .quantity input.ksf-qty-field {
	position: static !important;
	width: 48px !important;
	min-width: 48px !important;
	max-width: 48px !important;
	height: 46px !important;
	line-height: 46px !important;
	text-align: center !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	background: transparent !important;
	-moz-appearance: textfield !important;
}

.single-product div.product form.cart .quantity input.qty::-webkit-inner-spin-button,
.single-product div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product div.product form.cart .quantity .ksf-qty-field::-webkit-inner-spin-button,
.single-product div.product form.cart .quantity .ksf-qty-field::-webkit-outer-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

.ksf-single-product-summary form.cart button.single_add_to_cart_button {
	flex: 1 1 auto !important;
	height: 48px !important;
	background: #008848 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	box-shadow: 0 4px 14px rgba(0, 136, 72, 0.25) !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	transition: all 0.2s ease !important;
	margin: 0 !important;
}

.ksf-single-product-summary form.cart button.single_add_to_cart_button:hover {
	background: #00703c !important;
	box-shadow: 0 6px 18px rgba(0, 136, 72, 0.35) !important;
	transform: translateY(-1px) !important;
}

/* 6. KHỐI CAM KẾT CHÍNH SÁCH (3 CHIPS) */
.ksf-commitments-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 8px !important;
	margin-top: 4px !important;
	margin-bottom: 8px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.ksf-commit-item {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 8px 10px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	color: #334155 !important;
	line-height: 1.25 !important;
	box-sizing: border-box !important;
}

.ksf-commit-item svg {
	color: #008848 !important;
	flex-shrink: 0 !important;
}

@media (max-width: 480px) {
	.ksf-commitments-grid {
		grid-template-columns: 1fr !important;
		gap: 6px !important;
	}
}

/* 7. KHỐI CHI TIẾT SẢN PHẨM (DESCRIPTION) */
.ksf-single-product-details {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 24px 28px !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
	margin-bottom: 30px !important;
	width: 100% !important;
	max-width: 1340px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
}

.ksf-details-header {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding-bottom: 14px !important;
	margin-bottom: 18px !important;
	border-bottom: 2px solid #008848 !important;
}

.ksf-details-header h2,
.ksf-details-header h3 {
	font-size: 16px !important;
	font-weight: 800 !important;
	color: #008848 !important;
	text-transform: uppercase !important;
	margin: 0 !important;
	letter-spacing: 0.3px !important;
}

.ksf-details-body {
	font-size: 15px !important;
	line-height: 1.7 !important;
	color: #334155 !important;
}

.ksf-details-body img {
	max-width: 100% !important;
	height: auto !important;
	border-radius: 8px !important;
}

/* WooCommerce Tabs (nếu có) */
.woocommerce-tabs ul.tabs {
	display: flex !important;
	gap: 8px !important;
	border-bottom: 2px solid #e2e8f0 !important;
	margin: 0 0 20px 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
}

.woocommerce-tabs ul.tabs li a {
	display: block !important;
	padding: 10px 18px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #64748b !important;
	border-bottom: 2px solid transparent !important;
	margin-bottom: -2px !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	color: #008848 !important;
	border-bottom-color: #008848 !important;
}

.woocommerce-tabs .panel {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

/* 8. KỆ SẢN PHẨM CÙNG DANH MỤC: 5 SP TRÊN DESKTOP (1 HÀNG 5 CỘT), 6 SP TRÊN MOBILE (2 HÀNG 3 CỘT) */
@media (min-width: 1025px) {
	.single-product .ksf-related-section-wrap ul.products,
	.single-product #ksf-single-related-shelf ul.products,
	body.single-product #ksf-single-related-shelf ul.products,
	#ksf-single-related-shelf ul.products {
		display: grid !important;
		grid-template-columns: repeat(5, 1fr) !important;
		gap: 12px !important;
	}

	.woocommerce-page #ksf-single-related-shelf ul.products li.product:nth-child(n+6),
	.woocommerce-page .ksf-related-section-wrap ul.products li.product:nth-child(n+6),
	body.single-product #ksf-single-related-shelf ul.products li.product:nth-child(n+6),
	body.single-product .ksf-related-section-wrap ul.products li.product:nth-child(n+6),
	#ksf-single-related-shelf ul.products > li:nth-child(n+6),
	.ksf-related-section-wrap ul.products > li:nth-child(n+6) {
		display: none !important;
	}
}

@media (max-width: 1024px) {
	.single-product .ksf-related-section-wrap ul.products,
	.single-product #ksf-single-related-shelf ul.products,
	body.single-product #ksf-single-related-shelf ul.products,
	#ksf-single-related-shelf ul.products {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 6px !important;
	}

	.woocommerce-page #ksf-single-related-shelf ul.products li.product:nth-child(6),
	.woocommerce-page .ksf-related-section-wrap ul.products li.product:nth-child(6),
	body.single-product #ksf-single-related-shelf ul.products li.product:nth-child(6),
	body.single-product .ksf-related-section-wrap ul.products li.product:nth-child(6),
	#ksf-single-related-shelf ul.products > li:nth-child(6),
	.ksf-related-section-wrap ul.products > li:nth-child(6) {
		display: flex !important;
	}
}

/* ==========================================================================
   [DPS CUSTOM FIX] - 2026-10-16 - Dev: DPS
   Mục đích: Thiết kế hệ thống Đánh giá & Bình luận [dps_comments] chuẩn Design System Khải San Food
             - 100% Light Theme sạch sẽ, triệt tiêu hoàn toàn Dark Mode gây lệch tông
             - Màu chủ đạo xanh lục bảo Khải San Food (#008848 / hover #006e3a)
             - Sao đánh giá Amber Gold (#f59e0b) sáng rõ, ấm áp
             - Typography Slate chuẩn (#0f172a, #334155, #64748b, #94a3b8)
             - Card bo tròn 12px, viền #e2e8f0, nền trắng #ffffff & xám nhẹ #f8fafc
             - Badge "Đã mua hàng" xanh ngọc chuẩn e-commerce
             - Zero Emoji Policy trên toàn bộ giao diện
   ========================================================================== */

/* 1. Scoped CSS Variables & Light Theme Enforcement */
.ksf-product-reviews-box,
.ksf-product-reviews-box #reviews,
.ksf-product-reviews-box #dps-comment-container,
.ksf-product-reviews-box .dps-comment-root,
.ksf-product-reviews-box .dps-product-reviews {
	--dps-primary: #008848 !important;
	--dps-primary-hover: #006e3a !important;
	--dps-primary-light: #e6f7ec !important;
	--dps-danger: #ef4444 !important;
	--dps-danger-light: #fee2e2 !important;
	--dps-success: #008848 !important;
	--dps-warning: #f59e0b !important;
	--dps-bg-main: #ffffff !important;
	--dps-bg-subtle: #f8fafc !important;
	--dps-bg-input: #ffffff !important;
	--dps-bg-hover: #f1f5f9 !important;
	--dps-border: #e2e8f0 !important;
	--dps-border-focus: #008848 !important;
	--dps-text-main: #0f172a !important;
	--dps-text-muted: #64748b !important;
	--dps-text-subtle: #94a3b8 !important;
	--dps-review-star: #f59e0b !important;
	--dps-font: inherit !important;
	background-color: #ffffff !important;
	color: #0f172a !important;
	font-family: inherit !important;
}

/* Triệt tiêu triệt để Dark Mode từ OS hoặc thiết bị */
@media (prefers-color-scheme: dark) {
	.ksf-product-reviews-box,
	.ksf-product-reviews-box #reviews,
	.ksf-product-reviews-box #dps-comment-container,
	.ksf-product-reviews-box .dps-comment-root,
	.ksf-product-reviews-box .dps-product-reviews,
	.ksf-product-reviews-box [data-theme="dark"] {
		--dps-primary: #008848 !important;
		--dps-primary-hover: #006e3a !important;
		--dps-primary-light: #e6f7ec !important;
		--dps-bg-main: #ffffff !important;
		--dps-bg-subtle: #f8fafc !important;
		--dps-bg-input: #ffffff !important;
		--dps-bg-hover: #f1f5f9 !important;
		--dps-border: #e2e8f0 !important;
		--dps-border-focus: #008848 !important;
		--dps-text-main: #0f172a !important;
		--dps-text-muted: #64748b !important;
		--dps-text-subtle: #94a3b8 !important;
		--dps-review-star: #f59e0b !important;
		background-color: #ffffff !important;
		color: #0f172a !important;
	}
}

/* 2. Khung bao ngoài */
.ksf-product-reviews-box {
	margin-top: 24px !important;
	padding-top: 24px !important;
	border-top: 1px solid #e2e8f0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	clear: both !important;
}

/* 3. Tiêu đề khối */
.ksf-product-reviews-box .dps-comment-header {
	margin-bottom: 20px !important;
	padding-bottom: 0 !important;
	border-bottom: none !important;
}

.ksf-product-reviews-box .dps-comment-title {
	font-size: 19px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
}

.ksf-product-reviews-box .dps-comment-count {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #64748b !important;
}

/* 4. Khối tổng hợp điểm đánh giá */
.ksf-product-reviews-box .dps-review-summary {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 22px 24px !important;
	gap: 24px !important;
	margin-bottom: 20px !important;
	align-items: center !important;
}

.ksf-product-reviews-box .dps-review-score strong {
	font-size: 44px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	letter-spacing: -1px !important;
	line-height: 1.1 !important;
}

.ksf-product-reviews-box .dps-review-score > div > span {
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #94a3b8 !important;
}

.ksf-product-reviews-box .dps-review-score p {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #64748b !important;
	margin: 6px 0 0 !important;
}

.ksf-product-reviews-box .dps-review-stars {
	color: #e2e8f0 !important;
	font-size: 21px !important;
	letter-spacing: 2px !important;
}

.ksf-product-reviews-box .dps-review-stars .dps-review-stars-fill {
	color: #f59e0b !important;
}

.ksf-product-reviews-box .dps-review-histogram {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
}

.ksf-product-reviews-box .dps-review-bar-row {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-size: 13px !important;
	color: #475569 !important;
	font-weight: 600 !important;
	margin: 0 !important;
}

.ksf-product-reviews-box .dps-review-star-icon {
	color: #f59e0b !important;
	margin-left: 2px !important;
}

.ksf-product-reviews-box .dps-review-track {
	height: 8px !important;
	background: #e2e8f0 !important;
	border-radius: 999px !important;
	overflow: hidden !important;
}

.ksf-product-reviews-box .dps-review-track i {
	background: #f59e0b !important;
	border-radius: 999px !important;
}

.ksf-product-reviews-box .dps-review-bar-row > span:last-child {
	color: #64748b !important;
	font-size: 12.5px !important;
	min-width: 24px !important;
	text-align: right !important;
}

.ksf-product-reviews-box .dps-review-cta p {
	font-size: 13px !important;
	color: #64748b !important;
	line-height: 1.5 !important;
	margin: 0 0 12px !important;
}

.ksf-product-reviews-box .dps-btn-write-review {
	background: #008848 !important;
	color: #ffffff !important;
	border: 1px solid #008848 !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	padding: 10px 22px !important;
	cursor: pointer !important;
	box-shadow: 0 2px 6px rgba(0, 136, 72, 0.2) !important;
	transition: all 0.2s ease !important;
}

.ksf-product-reviews-box .dps-btn-write-review:hover {
	background: #006e3a !important;
	border-color: #006e3a !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(0, 136, 72, 0.28) !important;
}

/* 5. Bộ lọc sao & Sắp xếp */
.ksf-product-reviews-box .dps-review-toolbar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	padding: 14px 0 16px !important;
	border-bottom: 1px solid #f1f5f9 !important;
	margin-bottom: 6px !important;
}

.ksf-product-reviews-box .dps-review-filters {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
}

.ksf-product-reviews-box .dps-review-filter {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	color: #475569 !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 6px 14px !important;
	min-height: 34px !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
}

.ksf-product-reviews-box .dps-review-filter:hover {
	background: #f8fafc !important;
	border-color: #cbd5e1 !important;
	color: #0f172a !important;
}

.ksf-product-reviews-box .dps-review-filter.active {
	background: #e6f7ec !important;
	border-color: #008848 !important;
	color: #008848 !important;
	font-weight: 700 !important;
	box-shadow: 0 1px 2px rgba(0, 136, 72, 0.1) !important;
}

.ksf-product-reviews-box .dps-review-toolbar {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 12px 16px !important;
}

.ksf-product-reviews-box .dps-review-sort-label,
.dps-product-reviews .dps-review-sort-label {
	font-size: 13.5px !important;
	color: #64748b !important;
	font-weight: 500 !important;
	display: inline-flex !important;
	align-items: center !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	width: auto !important;
	gap: 8px !important;
}

.ksf-product-reviews-box .dps-review-sort,
.dps-product-reviews .dps-review-sort {
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	color: #0f172a !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 6px 12px !important;
	min-height: 34px !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	width: auto !important;
	flex-shrink: 0 !important;
}

.ksf-product-reviews-box .dps-review-sort:focus,
.dps-product-reviews .dps-review-sort:focus {
	border-color: #008848 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.15) !important;
}

/* 6. Form viết đánh giá & Guest Login Card */
.ksf-product-reviews-box .dps-main-form-wrapper {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 20px !important;
	margin: 16px 0 20px !important;
}

.ksf-product-reviews-box .dps-comment-guest-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 10px !important;
	padding: 24px !important;
	text-align: center !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.ksf-product-reviews-box .dps-brand-badge {
	background: #e6f7ec !important;
	color: #008848 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 3px 8px !important;
	border-radius: 4px !important;
	letter-spacing: 0.5px !important;
}

.ksf-product-reviews-box .dps-comment-guest-title {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 12px 0 6px !important;
}

.ksf-product-reviews-box .dps-comment-guest-desc {
	font-size: 13.5px !important;
	color: #64748b !important;
	margin-bottom: 16px !important;
}

.ksf-product-reviews-box .dps-review-wp-login {
	color: #008848 !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	font-size: 13px !important;
	display: inline-block !important;
	margin-top: 12px !important;
}

.ksf-product-reviews-box .dps-comment-guest-terms {
	font-size: 12px !important;
	color: #94a3b8 !important;
	margin-top: 12px !important;
}

.ksf-product-reviews-box .dps-rating-picker legend {
	font-size: 14.5px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin-bottom: 6px !important;
}

.ksf-product-reviews-box .dps-rating-options label {
	color: #cbd5e1 !important;
	cursor: pointer !important;
	font-size: 28px !important;
}

.ksf-product-reviews-box .dps-rating-options .selected,
.ksf-product-reviews-box .dps-rating-options label:has(input:checked) {
	color: #f59e0b !important;
}

.ksf-product-reviews-box .dps-textarea {
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	color: #0f172a !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	padding: 12px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.ksf-product-reviews-box .dps-textarea:focus {
	border-color: #008848 !important;
	box-shadow: 0 0 0 3px rgba(0, 136, 72, 0.15) !important;
	outline: none !important;
}

.ksf-product-reviews-box .dps-btn-submit {
	background: #008848 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	padding: 9px 20px !important;
	cursor: pointer !important;
	box-shadow: 0 2px 6px rgba(0, 136, 72, 0.2) !important;
	transition: all 0.2s ease !important;
}

.ksf-product-reviews-box .dps-btn-submit:hover {
	background: #006e3a !important;
}

/* 7. Danh sách bình luận & đánh giá */
.ksf-product-reviews-box .dps-comment-item {
	background: #ffffff !important;
	border-bottom: 1px solid #f1f5f9 !important;
	padding: 18px 0 !important;
	color: #0f172a !important;
}

.ksf-product-reviews-box .dps-author-name {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
}

.ksf-product-reviews-box .dps-badge-purchased {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	background: #e6f7ec !important;
	color: #008848 !important;
	border: 1px solid #bbf7d0 !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	padding: 1px 7px !important;
	border-radius: 4px !important;
	vertical-align: middle !important;
	margin-left: 6px !important;
}

.ksf-product-reviews-box .dps-comment-time {
	font-size: 12.5px !important;
	color: #94a3b8 !important;
	margin-left: 6px !important;
}

.ksf-product-reviews-box .dps-review-item-stars {
	color: #f59e0b !important;
	font-size: 15px !important;
	letter-spacing: 2px !important;
	margin: 3px 0 6px !important;
}

.ksf-product-reviews-box .dps-comment-text,
.ksf-product-reviews-box .dps-comment-body p {
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: #334155 !important;
	margin: 4px 0 8px !important;
}

.ksf-product-reviews-box .dps-action-btn {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #64748b !important;
	transition: color 0.15s ease !important;
}

.ksf-product-reviews-box .dps-action-btn:hover {
	color: #008848 !important;
}

.ksf-product-reviews-box .dps-replies-stream {
	margin-left: 44px !important;
	border-left: 2px solid #e2e8f0 !important;
	padding-left: 16px !important;
	margin-top: 12px !important;
}

.ksf-product-reviews-box .dps-btn-load-more {
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	color: #008848 !important;
	font-weight: 700 !important;
	border-radius: 8px !important;
	padding: 10px 24px !important;
	font-size: 13.5px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.ksf-product-reviews-box .dps-btn-load-more:hover {
	background: #e6f7ec !important;
	border-color: #008848 !important;
}

/* Zero Emoji Policy: Ẩn biểu tượng emoji thô nếu có */
.ksf-product-reviews-box .dps-empty-icon {
	display: none !important;
}

/* 8. Responsive Mobile */
@media (max-width: 768px) {
	.ksf-product-reviews-box {
		margin-top: 18px !important;
		padding-top: 18px !important;
	}

	.ksf-product-reviews-box .dps-review-summary {
		grid-template-columns: 100px minmax(0, 1fr) !important;
		gap: 16px !important;
		padding: 16px !important;
	}

	.ksf-product-reviews-box .dps-review-cta {
		grid-column: 1 / -1 !important;
		margin-top: 8px !important;
	}

	.ksf-product-reviews-box .dps-review-cta p {
		display: none !important;
	}

	.ksf-product-reviews-box .dps-btn-write-review {
		width: 100% !important;
		min-height: 42px !important;
	}

	.ksf-product-reviews-box .dps-review-score strong {
		font-size: 36px !important;
	}

	.ksf-product-reviews-box .dps-comment-title {
		font-size: 17px !important;
	}

	.ksf-product-reviews-box .dps-replies-stream {
		margin-left: 20px !important;
		padding-left: 10px !important;
	}
}
/* ===================== END [DPS CUSTOM FIX] ===================== */

/* ==========================================================================
   [DPS CUSTOM FIX] - 2026-10-16 - Dev: DPS
   Mục đích: Thanh số đánh giá và điểm trung bình chuẩn Shopee
             (Nằm giữa tiêu đề H1 và giá bán)
   ========================================================================== */
.ksf-single-rating-bar {
	display: inline-flex !important;
	align-items: center !important;
	gap: 12px !important;
	margin-top: 6px !important;
	margin-bottom: 14px !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
	flex-wrap: wrap !important;
}

.ksf-single-rating-bar .ksf-rating-anchor,
.ksf-single-rating-bar .ksf-rating-count-link {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	text-decoration: none !important;
	color: inherit !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
}

.ksf-single-rating-bar .ksf-rating-score-num {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	border-bottom: 1.5px solid #0f172a !important;
	line-height: 1.1 !important;
	padding-bottom: 1px !important;
}

.ksf-single-rating-bar .ksf-rating-stars-wrap {
	position: relative !important;
	display: inline-block !important;
	color: #cbd5e1 !important;
	font-size: 14px !important;
	letter-spacing: 2px !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}

.ksf-single-rating-bar .ksf-rating-stars-bg {
	color: #cbd5e1 !important;
}

.ksf-single-rating-bar .ksf-rating-stars-fill {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	height: 100% !important;
	overflow: hidden !important;
	color: #f59e0b !important;
	white-space: nowrap !important;
}

.ksf-single-rating-bar .ksf-rating-pipe {
	width: 1px !important;
	height: 14px !important;
	background: #cbd5e1 !important;
	display: inline-block !important;
}

.ksf-single-rating-bar .ksf-rating-count-num {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	border-bottom: 1.5px solid #0f172a !important;
	line-height: 1.1 !important;
	padding-bottom: 1px !important;
}

.ksf-single-rating-bar .ksf-rating-count-text {
	font-size: 13.5px !important;
	color: #64748b !important;
	font-weight: 500 !important;
}

.ksf-single-rating-bar a:hover .ksf-rating-score-num,
.ksf-single-rating-bar a:hover .ksf-rating-count-num {
	color: #008848 !important;
	border-bottom-color: #008848 !important;
}

.ksf-single-rating-bar a:hover .ksf-rating-count-text {
	color: #008848 !important;
}

.ksf-single-rating-bar .ksf-rating-sold-wrap,
.ksf-single-rating-bar .dps-product-sold {
	display: inline-flex !important;
	align-items: center !important;
	flex-direction: row !important;
	gap: 4px !important;
	font-size: 13.5px !important;
	color: #64748b !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	text-decoration: none !important;
}

.ksf-single-rating-bar .dps-product-sold strong,
.ksf-single-rating-bar .dps-product-sold [data-dps-sold-count] {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
}

/* Offset cuộn tới phần review tránh bị che bởi Sticky Header */
#reviews,
.ksf-product-reviews-box {
	scroll-margin-top: 130px !important;
}
/* ===================== END [DPS CUSTOM FIX] ===================== */



