/* ============================================================
 * SOFT4U — LAYOUT 2 CỘT TRANG SẢN PHẨM (soft4u.vn, product-layout.php 1.0.0)
 *   Chuyển từ office365 theme1-child v2.6.0. Màu đọc biến --s4u-* của
 *   single-product.css, thiếu biến thì dùng màu dự phòng ghi sẵn.
 *   Chỉ áp cho trang có body class .s4u-layout-2col.
 *   Desktop: cột trái nội dung + cột phải dính, khung 1160px.
 *   Mobile : xếp 1 cột, mục lục dạng chip, thanh mua cố định ở đáy.
 * ============================================================ */
:root {
	--s4u-content-max: 1160px;
	--s4u-rail-w: 340px;
	--s4u-sticky-top: 96px;
}

/* Các khối bên dưới hero dùng chung khung 1160px để thẳng mép */
.s4u-layout-2col .s4u-pl,
.s4u-layout-2col .s4u-pl-reviews,
.s4u-layout-2col .s4u-pl-compare,
.s4u-product-redesign.s4u-layout-2col .s4u-product-faq {
	width: calc(100% - 32px) !important;
	max-width: var(--s4u-content-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}

/* Cuộn tới mục không bị header che */
.s4u-layout-2col .s4u-pl h2[id],
.s4u-layout-2col #so-sanh,
.s4u-layout-2col #faq,
.s4u-layout-2col #danh-gia,
.s4u-layout-2col #hoi-dap,
.s4u-layout-2col #s4u-buy {
	scroll-margin-top: var(--s4u-sticky-top);
}

/* ---------- Khung 2 cột ---------- */
.s4u-pl {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--s4u-rail-w);
	gap: 32px;
	align-items: start;
	margin-top: 34px;
	margin-bottom: 10px;
}
.s4u-pl-main {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}
.s4u-pl-rail {
	position: sticky;
	top: var(--s4u-sticky-top);
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	/* Cột phải cao hơn màn hình thì tự cuộn riêng, không bị cắt phần dưới */
	max-height: calc(100vh - var(--s4u-sticky-top) - 16px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	padding: 0 2px 4px;
}
.s4u-pl-rail .s4u-pl-card {
	box-shadow: 0 6px 16px rgba(20, 40, 60, 0.04);
}
.s4u-pl-chips {
	display: none;
}

/* ---------- Thẻ dùng chung ---------- */
.s4u-pl-card {
	background: #fff;
	border: 1px solid #e3ebe7;
	border-radius: 20px;
	box-shadow: 0 14px 34px rgba(20, 40, 60, 0.05);
	padding: 24px 26px;
	box-sizing: border-box;
	min-width: 0;
}
.s4u-pl-card__title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--s4u-ink, #12201d);
}

/* Danh sách có dấu tích */
.s4u-pl-checks {
	margin: 0;
	padding: 0;
	list-style: none;
}
.s4u-pl-checks li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 26px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--s4u-body, #263633);
}
.s4u-pl-checks li:last-child {
	margin-bottom: 0;
}
.s4u-pl-checks li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: var(--s4u-green, #16a35a);
}
.s4u-pl-checks--sm li {
	font-size: 14px;
	line-height: 1.55;
	padding-left: 24px;
}
.s4u-pl-checks a {
	color: var(--s4u-green-d, #08713e);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(8, 113, 62, 0.35);
}

/* Nhận được gì + Phù hợp với ai: 2 thẻ cạnh nhau */
.s4u-pl-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.s4u-pl-pair .s4u-pl-card__title {
	font-size: 17px;
}

/* Khung nguồn gốc CSP */
.s4u-pl-origin {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid #b9e0c9;
	border-radius: 16px;
	background: var(--s4u-panel, #f3faf6);
}
.s4u-pl-origin__ico {
	flex: 0 0 auto;
	display: flex;
	margin-top: 2px;
	font-size: 22px;
	color: var(--s4u-green-d, #08713e);
}
.s4u-pl-origin__title {
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--s4u-ink, #12201d);
}
.s4u-pl-origin__text {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--s4u-body, #263633);
}
.s4u-pl-origin__text a {
	color: var(--s4u-green-d, #08713e);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(8, 113, 62, 0.35);
}

/* ---------- Nội dung mô tả (thay cho panel tabs cũ) ---------- */
.s4u-pl-tab {
	padding: 30px 32px;
}
.s4u-pl-prose {
	font-size: 16px;
	line-height: 1.75;
	color: var(--s4u-body, #263633);
	overflow-wrap: anywhere;
}
.s4u-pl-prose > :first-child {
	margin-top: 0;
}
.s4u-pl-prose > :last-child {
	margin-bottom: 0;
}
.s4u-pl-prose p,
.s4u-pl-prose li {
	font-size: 16px;
	line-height: 1.75;
	font-weight: 400;
	color: var(--s4u-body, #263633);
}
.s4u-pl-prose p {
	margin: 0 0 16px;
}
.s4u-pl-prose ul,
.s4u-pl-prose ol {
	margin: 0 0 20px;
	padding-left: 22px;
}
.s4u-pl-prose li {
	margin: 0 0 8px;
}
.s4u-pl-prose h2 {
	margin: 30px 0 12px;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.35;
	color: var(--s4u-ink, #12201d);
}
.s4u-pl-prose h3 {
	margin: 22px 0 10px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--s4u-ink, #12201d);
}
.s4u-pl-prose h4 {
	margin: 16px 0 8px;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--s4u-ink, #12201d);
}
.s4u-pl-prose img {
	max-width: 100%;
	height: auto;
}
.s4u-pl-prose table {
	width: 100%;
	margin: 0 0 20px;
	border-collapse: collapse;
	font-size: 14.5px;
}
.s4u-pl-prose th,
.s4u-pl-prose td {
	padding: 10px 12px;
	border: 1px solid #e3ebe7;
	text-align: left;
	vertical-align: top;
}
.s4u-pl-prose tr:nth-child(odd) td {
	background: #fafcfb;
}
.s4u-pl-prose a {
	color: var(--s4u-green-d, #08713e);
}

/* ---------- Cột phải ---------- */
.s4u-pl-side {
	padding: 18px 20px;
}
.s4u-pl-side__title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--s4u-ink, #12201d);
}

/* Khung mua thu nhỏ */
.s4u-pl-buy {
	padding: 20px;
	border-color: #b9e0c9;
}
.s4u-pl-buy__name {
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--s4u-ink, #12201d);
}
.s4u-pl-buy__price {
	margin-bottom: 14px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #c2410c;
}
.s4u-pl-buy__price .woocommerce-Price-amount {
	color: inherit;
}
.s4u-pl-from {
	font-size: 14px;
	font-weight: 500;
	color: var(--s4u-muted, #64736f);
}
.s4u-pl-buy__btn,
.s4u-pl-bar__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #ff7a1a 0%, var(--s4u-orange-d, #e95008) 100%);
	box-shadow: 0 10px 24px rgba(255, 106, 19, 0.28);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-decoration: none;
	transition: filter 0.15s ease;
}
.s4u-pl-buy__btn:hover,
.s4u-pl-bar__btn:hover {
	filter: brightness(1.05);
}
.s4u-pl-buy__zalo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 10px;
	border: 1px solid var(--s4u-zalo, #0068ff);
	border-radius: 12px;
	color: var(--s4u-zalo, #0068ff);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}
.s4u-pl-buy__zalo:hover {
	background: var(--s4u-zalo, #0068ff);
	color: #fff;
}

/* Thông số nhanh / Yêu cầu hệ thống */
.s4u-pl-pairs {
	margin: 0;
}
.s4u-pl-pairs__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid #eef3f1;
	font-size: 14px;
	line-height: 1.45;
}
.s4u-pl-pairs__row:first-child {
	padding-top: 0;
}
.s4u-pl-pairs__row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}
.s4u-pl-pairs dt {
	flex: 0 1 auto;
	margin: 0;
	font-weight: 400;
	color: var(--s4u-muted, #64736f);
}
.s4u-pl-pairs dd {
	flex: 0 1 60%;
	margin: 0;
	font-weight: 600;
	text-align: right;
	color: var(--s4u-ink, #12201d);
}

/* Mục lục */
.s4u-pl-toc {
	padding: 16px 12px;
}
.s4u-pl-toc .s4u-pl-side__title {
	padding: 0 8px;
}
.s4u-pl-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 46vh;
	overflow-y: auto;
}
.s4u-pl-toc li {
	margin: 0;
}
.s4u-pl-toc a {
	display: block;
	padding: 7px 8px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--s4u-body, #263633);
	text-decoration: none;
}
.s4u-pl-toc a:hover {
	background: var(--s4u-panel, #f3faf6);
	color: var(--s4u-green-d, #08713e);
}

/* ---------- Đánh giá + Hỏi & Đáp ---------- */
.s4u-pl-reviews {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin-top: 44px;
	margin-bottom: 44px;
}
.s4u-pl-review {
	padding: 28px 30px;
}

/* ---------- Thanh mua cố định (mobile) ---------- */
.s4u-pl-bar {
	display: none;
}

/* Màn vừa: thu hẹp cột phải */
@media (min-width: 850px) and (max-width: 1099px) {
	:root {
		--s4u-rail-w: 290px;
	}
	.s4u-pl {
		gap: 24px;
	}
	.s4u-pl-pair {
		grid-template-columns: 1fr;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 849px) {
	.s4u-layout-2col .s4u-pl,
	.s4u-layout-2col .s4u-pl-reviews,
	.s4u-layout-2col .s4u-pl-compare,
	.s4u-product-redesign.s4u-layout-2col .s4u-product-faq {
		width: calc(100% - 20px) !important;
	}
	.s4u-pl {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		margin-top: 22px;
	}
	.s4u-pl > * {
		min-width: 0;
	}
	.s4u-pl-chips {
		order: -2;
		display: flex;
		gap: 8px;
		margin: 0 -10px;
		padding: 0 10px 4px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.s4u-pl-chips::-webkit-scrollbar {
		display: none;
	}
	.s4u-pl-chips a {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		min-height: 36px;
		max-width: 220px;
		padding: 0 14px;
		overflow: hidden;
		border: 1px solid #d6e4dd;
		border-radius: 999px;
		background: #fff;
		color: var(--s4u-body, #263633);
		font-size: 13px;
		white-space: nowrap;
		text-overflow: ellipsis;
		text-decoration: none;
	}
	.s4u-pl-rail {
		order: 1; /* mobile: thông số nằm sau nội dung chính */
		position: static;
		gap: 12px;
		max-height: none;
		overflow: visible;
		padding: 0;
	}
	.s4u-pl-rail .s4u-pl-buy,
	.s4u-pl-rail .s4u-pl-toc {
		display: none;
	}
	.s4u-pl-main {
		gap: 18px;
	}
	.s4u-pl-pair {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.s4u-pl-card,
	.s4u-pl-tab,
	.s4u-pl-review {
		padding: 18px 16px;
		border-radius: 16px;
	}
	.s4u-pl-card__title {
		font-size: 18px;
	}
	.s4u-pl-prose h2 {
		font-size: 21px;
	}
	.s4u-pl-prose h3 {
		font-size: 17.5px;
	}
	.s4u-pl-prose p,
	.s4u-pl-prose li {
		font-size: 15px;
	}
	.s4u-pl-prose table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.s4u-pl-reviews {
		margin-top: 26px;
		margin-bottom: 26px;
	}

	/* Thanh mua cố định ở đáy */
	.s4u-pl-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid #e3ebe7;
		box-shadow: 0 -10px 30px rgba(20, 40, 60, 0.10);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform 0.2s ease, visibility 0.2s;
	}
	.s4u-pl-bar.is-visible {
		transform: translateY(0);
		visibility: visible;
	}
	.s4u-pl-bar__info {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
	}
	.s4u-pl-bar__name {
		overflow: hidden;
		font-size: 12px;
		line-height: 1.3;
		color: var(--s4u-muted, #64736f);
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	.s4u-pl-bar__price {
		font-size: 17px;
		font-weight: 700;
		line-height: 1.3;
		color: #c2410c;
	}
	.s4u-pl-bar__price .s4u-pl-from {
		font-size: 12px;
	}
	.s4u-pl-bar__zalo {
		flex: 0 0 48px;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 48px;
		border: 1px solid var(--s4u-zalo, #0068ff);
		border-radius: 12px;
		color: var(--s4u-zalo, #0068ff);
		font-size: 13px;
		font-weight: 700;
		text-decoration: none;
	}
	.s4u-pl-bar__btn {
		flex: 0 0 128px;
		min-height: 48px;
		font-size: 14px;
	}
	body.s4u-pl-bar-on {
		padding-bottom: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.s4u-pl-bar {
		transition: none;
	}
}


/* ============================================================
 * PHẦN THÊM CHO KASPERSKY (soft4u.vn)
 * ============================================================ */

/* Trả lời nhanh */
.s4u-pl-answer {
	border-color: #b9e0c9;
	background: linear-gradient(180deg, var(--s4u-panel, #f3faf6) 0%, #fff 70%);
}
.s4u-pl-answer__price {
	margin-top: 4px !important;
	padding-top: 12px;
	border-top: 1px dashed #cfe3d8;
	font-weight: 600 !important;
	color: var(--s4u-green-d, #08713e) !important;
}

/* Nên chọn mấy thiết bị */
.s4u-pl-dev__intro {
	margin: -4px 0 16px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--s4u-muted, #64736f);
}
.s4u-pl-dev__wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.s4u-pl-dev__table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
}
.s4u-pl-dev__table th,
.s4u-pl-dev__table td {
	padding: 12px 12px;
	border: 0;
	border-bottom: 1px solid #eef3f1;
	text-align: left;
	vertical-align: middle;
	background: transparent;
}
.s4u-pl-dev__table thead th {
	font-size: 13px;
	font-weight: 600;
	color: var(--s4u-muted, #64736f);
	text-transform: none;
	letter-spacing: 0;
}
.s4u-pl-dev__table tbody th strong {
	display: block;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--s4u-ink, #12201d);
}
.s4u-pl-dev__table tbody th span {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--s4u-muted, #64736f);
}
.s4u-pl-dev__table td {
	font-weight: 600;
	color: var(--s4u-ink, #12201d);
	white-space: nowrap;
}
.s4u-pl-dev__table td[data-label="Mỗi máy / năm"] {
	color: var(--s4u-green-d, #08713e);
}
.s4u-pl-dev__table tbody tr:last-child th,
.s4u-pl-dev__table tbody tr:last-child td {
	border-bottom: 0;
}
.s4u-pl-dev__table tbody tr.is-current th,
.s4u-pl-dev__table tbody tr.is-current td {
	background: var(--s4u-panel, #f3faf6);
}
.s4u-pl-dev__act {
	text-align: right !important;
}
.s4u-pl-dev__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--s4u-green, #16a35a);
	border-radius: 10px;
	color: var(--s4u-green-d, #08713e) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}
.s4u-pl-dev__btn:hover {
	background: var(--s4u-green, #16a35a);
	color: #fff !important;
}

/* So sánh 3 bản (bằng chữ) */
.s4u-pl-compare {
	margin-top: 26px;
	margin-bottom: 26px;
}
.s4u-pl-compare__wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.s4u-pl-compare__table {
	width: 100%;
	min-width: 560px;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
}
.s4u-pl-compare__table th,
.s4u-pl-compare__table td {
	padding: 11px 14px;
	border: 0;
	border-bottom: 1px solid #eef3f1;
	text-align: center;
	vertical-align: middle;
	background: transparent;
}
.s4u-pl-compare__table tbody th {
	text-align: left;
	font-weight: 500;
	color: var(--s4u-body, #263633);
}
.s4u-pl-compare__table thead th {
	font-size: 15px;
	font-weight: 700;
	color: var(--s4u-ink, #12201d);
	vertical-align: bottom;
}
.s4u-pl-compare__table thead th:first-child {
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: var(--s4u-muted, #64736f);
}
.s4u-pl-compare__tag {
	display: block;
	margin: 0 auto 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--s4u-green-d, #08713e);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.s4u-pl-compare__table .s4u-pl-cur {
	background: var(--s4u-panel, #f3faf6);
}
.s4u-pl-compare__table td.s4u-pl-yes {
	font-weight: 600;
	color: var(--s4u-green-d, #08713e);
}
.s4u-pl-compare__table td.s4u-pl-yes::before {
	content: "\2713\00a0";
}
.s4u-pl-compare__table td.s4u-pl-no {
	color: #9aa6a2;
}
.s4u-pl-compare__price td {
	font-weight: 700;
	color: #c2410c;
}
.s4u-pl-compare__price td a {
	display: inline-block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--s4u-green-d, #08713e);
}
.s4u-pl-compare__note {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--s4u-muted, #64736f);
}

/* Nguồn thông số */
.s4u-pl-sources .s4u-pl-prose p,
.s4u-pl-sources .s4u-pl-prose li {
	font-size: 14px;
	line-height: 1.6;
}

/* FAQ: tiêu đề h2 (trước là h3) */
.s4u-layout-2col .s4u-product-faq__title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

@media (max-width: 849px) {
	.s4u-pl-dev__table thead {
		display: none;
	}
	.s4u-pl-dev__table,
	.s4u-pl-dev__table tbody,
	.s4u-pl-dev__table tr {
		display: block;
		width: 100%;
	}
	.s4u-pl-dev__table tbody tr {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px 10px;
		padding: 12px 0;
		border-bottom: 1px solid #eef3f1;
	}
	.s4u-pl-dev__table tbody tr:last-child {
		border-bottom: 0;
	}
	.s4u-pl-dev__table tbody th,
	.s4u-pl-dev__table tbody td {
		display: block;
		padding: 0;
		border: 0;
	}
	.s4u-pl-dev__table tbody th {
		grid-column: 1 / -1;
	}
	.s4u-pl-dev__table tbody td::before {
		content: attr(data-label);
		display: block;
		font-size: 12px;
		font-weight: 500;
		color: var(--s4u-muted, #64736f);
	}
	.s4u-pl-dev__table td.s4u-pl-dev__act {
		grid-column: 1 / -1;
		text-align: left !important;
	}
	.s4u-pl-dev__btn {
		width: 100%;
	}
	.s4u-pl-compare {
		margin-top: 18px;
		margin-bottom: 18px;
	}
	.s4u-pl-compare__table th,
	.s4u-pl-compare__table td {
		padding: 10px 8px;
		font-size: 13.5px;
	}
}
