/* Trang Tin tuc dang tap chi + trang chuyen muc dang luoi (inc/news-hub.php). Nap sau style.css, chi trang tin.
   Khong dung vien mot ben tren khoi bo goc (chu shop cam). */

:root {
	--pf-line: #E3E6DA;
	--pf-ease: cubic-bezier(.2, .7, .2, 1);
	--pf-radius: 20px;
	/* Chu nhan nho tren nen trang: --theme-3 (#80C41C) chi dat 2.1:1 -> dung xanh dam 5.6:1 (WCAG AA). */
	--pf-label: #467312;
}

/* Tieu de chi cho trinh doc man hinh (giu thu tu h1 > h2 > h3). */
.pf-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Banner: dung quy tac chung trong style.css (.breadcrumb-wrapper .page-heading). */
.pf-news-banner .breadcrumb-list a { color: inherit; }

/* O cay trong (template-parts/news/crop-tiles.php): 5 the ngang gon kieu bao dien tu (cao ~66px thay vi 215px). */
.pf-crops { padding: 14px 0 12px; }
.pf-crops-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pf-crop {
	display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px;
	border: 1px solid #E6E9DF; border-radius: 14px; background: #fff; color: var(--header);
	transition: border-color .2s var(--pf-ease), background-color .2s var(--pf-ease);
}
.pf-crop-img {
	position: relative; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden;
	border-radius: 10px; background: var(--bg2);
}
.pf-crop-img img { display: block; width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; transition: transform .45s var(--pf-ease); }
.pf-crop-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pf-crop-name { font-family: var(--heading-font); font-size: 14.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-crop-n { font-size: 12px; font-weight: 500; line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums; }
.pf-crop:hover { border-color: #C7D3B6; background: #FAFBF7; }
.pf-crop:hover .pf-crop-img img { transform: scale(1.06); }
.pf-crop:hover .pf-crop-name { color: var(--theme-2); }
.pf-crop:focus-visible { outline: 2px solid var(--theme-2); outline-offset: 2px; }
.pf-crop[aria-current="page"] { border-color: var(--theme-2); background: #EEF3E6; }
.pf-crop[aria-current="page"] .pf-crop-name { color: var(--theme-2); }
@media (max-width: 991px) {
	.pf-crops { padding: 12px 0 8px; }
	.pf-crops-list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.pf-crops-list::-webkit-scrollbar { display: none; }
	.pf-crops-list li { flex: 0 0 auto; scroll-snap-align: start; }
}
@media (max-width: 767px) {
	.pf-crops-list { gap: 8px; }
	.pf-crop { padding: 6px 12px 6px 6px; gap: 9px; border-radius: 12px; }
	.pf-crop-img { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 8px; }
	.pf-crop-name { font-size: 13.5px; }
	.pf-crop-n { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
	.pf-crop-img img { transition: none; }
}

/* Thanh tab chuyen muc kieu bao lon (underline tabs + fade mep phai + o tim kiem tich hop). */
.pf-news-bar { background: #fff; border-bottom: 1px solid var(--pf-line); }
.pf-news-bar-inner { display: flex; align-items: center; gap: 20px; padding-top: 0; padding-bottom: 0; border-top: 1px solid #F0F2EA; }
.pf-news-tabs { position: relative; flex: 1 1 auto; min-width: 0; }
.pf-news-tabs ul {
	display: flex; gap: 4px; margin: 0; padding: 0 34px 0 0; list-style: none;
	overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
	-webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 42px), transparent);
	mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 42px), transparent);
}
.pf-news-tabs.has-prev ul {
	padding-left: 34px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 42px, #000 calc(100% - 42px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 42px, #000 calc(100% - 42px), transparent);
}
.pf-news-tabs.at-end ul {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 42px, #000 100%);
	mask-image: linear-gradient(90deg, transparent, #000 42px, #000 100%);
}
.pf-news-tabs:not(.has-prev).at-end ul {
	-webkit-mask-image: none;
	mask-image: none;
}
.pf-tabs-nav {
	position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
	border: 1px solid #DCE2D1; border-radius: 50%; background: #fff; color: #3A4138;
	font-size: 11px; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 45, 20, .08);
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.pf-tabs-nav[hidden] { display: none; }
.pf-tabs-nav--prev { left: 0; }
.pf-tabs-nav--next { right: 0; }
.pf-tabs-nav:hover, .pf-tabs-nav:focus-visible { border-color: var(--theme-2); background: #EEF3E6; color: var(--theme-2); }
.pf-news-tabs ul::-webkit-scrollbar { display: none; }
.pf-news-tabs li { flex: 0 0 auto; scroll-snap-align: start; }
.pf-news-tabs a {
	position: relative; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 11px;
	border: 0; border-radius: 0; background: transparent;
	font-family: var(--heading-font); font-size: 14.5px; font-weight: 500; line-height: 1; color: #3A4138; white-space: nowrap;
	transition: color .2s var(--pf-ease);
}
.pf-news-tabs a::after {
	content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2.5px;
	border-radius: 2px 2px 0 0; background: var(--theme-2); transform: scaleX(0); transition: transform .2s var(--pf-ease);
}
.pf-news-tabs a:hover { color: var(--theme-2); }
.pf-news-tabs a[aria-current="page"] { color: var(--theme-2); font-weight: 700; }
.pf-news-tabs a[aria-current="page"]::after { transform: scaleX(1); }
.pf-news-tab-n { display: none; }

/* O tim kiem tich hop ben phai thanh chuyen muc (desktop >= 992px). */
.pf-bar-search {
	position: relative; flex: 0 0 228px; display: flex; align-items: center;
	height: 36px; padding: 0 12px; border: 1px solid #DCE2D1; border-radius: 9px; background: #F7F8F3;
	transition: border-color .2s ease, background-color .2s ease;
}
.pf-bar-search:focus-within { border-color: var(--theme-2); background: #fff; }
.pf-bar-search i { flex: 0 0 auto; font-size: 13px; color: #6B7467; margin-right: 8px; }
.pf-bar-search input[type="search"] {
	flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 0;
	color: var(--header); font-size: 13.5px; line-height: 1.2; outline: none;
}
.pf-bar-search input[type="search"]::placeholder { color: #757E71; }
@media (max-width: 991px) {
	.pf-bar-search { display: none; }
}


@media (min-width: 992px) and (max-width: 1199px) {
	.pf-news-tabs a { padding: 0 9px; font-size: 13.5px; }
	.pf-bar-search { flex: 0 0 185px; }
}
/* <=991px: thay hang tab bang 1 nut chon + bang truot tu duoi len (khong cat chu, khong phai vuot ngang). */
.pf-picks, .pf-cat-trigger, .pf-cat-sheet { display: none; }
@media (max-width: 991px) {
	.pf-news-bar-inner { padding-top: 10px; padding-bottom: 10px; }
	.pf-news-tabs { display: none; }
	.pf-picks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; }
	.pf-picks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pf-cat-trigger {
		display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; height: 44px; padding: 0 11px 0 12px;
		border: 1px solid #DCE2D1; border-radius: 10px; background: #F8F9F5;
		font-family: var(--heading-font); line-height: 1; color: var(--header); text-align: left; cursor: pointer;
		transition: border-color .2s var(--pf-ease), background-color .2s var(--pf-ease);
	}
	.pf-cat-trigger:hover, .pf-cat-trigger[aria-expanded="true"] { border-color: var(--theme-2); background: #fff; }
	.pf-cat-trigger:focus-visible { outline: 2px solid var(--theme-2); outline-offset: 2px; }
	.pf-cat-trigger-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
	.pf-cat-trigger-k { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6B7467; line-height: 1.1; }
	.pf-cat-trigger-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--theme-2); line-height: 1.2; }
	.pf-cat-trigger .pf-news-tab-n { display: none; }
	.pf-cat-chev { flex: 0 0 auto; width: 16px; height: 16px; padding: 0; border-radius: 0; background: transparent; color: #5C6858; transition: transform .2s ease, color .2s ease; }
	.pf-cat-trigger[aria-expanded="true"] .pf-cat-chev { transform: rotate(180deg); color: var(--theme-2); }

	.pf-cat-sheet[open] { display: flex; }
	.pf-cat-sheet {
		position: fixed; inset: auto 0 0 0; flex-direction: column; width: 100%; max-width: 100%; max-height: min(82vh, 640px);
		margin: 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0;
		background: #fff; color: var(--header); box-shadow: 0 -24px 60px -20px rgba(15, 84, 30, .35);
		animation: pf-sheet-in .28s cubic-bezier(.22, 1, .36, 1);
	}
	.pf-cat-sheet::backdrop { background: rgba(10, 32, 14, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: pf-fade-in .25s ease; }
	.pf-cat-sheet.is-closing { animation: pf-sheet-out .2s cubic-bezier(.4, 0, 1, 1) forwards; }
	.pf-cat-sheet.is-closing::backdrop { animation: pf-fade-out .2s ease forwards; }
	/* Thanh nam keo o giua dinh bang (bao hieu keo/vuot duoc). */
	.pf-cat-sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 4px 12px; }
	.pf-cat-sheet-head::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 999px; background: #D9DDD0; }
	.pf-cat-sheet-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; }
	.pf-cat-sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #F4F6EE; color: var(--header); cursor: pointer; }
	.pf-cat-sheet-close:focus-visible { outline: 2px solid var(--theme-2); outline-offset: 2px; }
	.pf-cat-sheet-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
	.pf-cat-sheet-list a {
		display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px;
		border-radius: 10px; background: transparent;
		font-family: var(--heading-font); font-size: 15px; font-weight: 500; color: var(--header);
		transition: background-color .18s ease, color .18s ease;
	}
	.pf-cat-sheet-list a:hover { background: #F5F7F0; }
	.pf-cat-sheet-list a:focus-visible { outline: 2px solid var(--theme-2); outline-offset: 2px; }
	.pf-cat-sheet-list a[aria-current="page"] { background: #EEF3E6; color: var(--theme-2); font-weight: 700; }
}
@keyframes pf-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pf-sheet-out { from { transform: none; } to { transform: translateY(100%); } }
@keyframes pf-fade-in { from { opacity: 0; } }
@keyframes pf-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.pf-cat-sheet, .pf-cat-sheet::backdrop { animation: none !important; }
}

/* The bai. */
.pf-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pf-card-media { display: block; overflow: hidden; border-radius: var(--pf-radius); background: var(--bg2); isolation: isolate; }
.pf-card-media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--pf-ease); }
.pf-card:hover .pf-card-media img { transform: scale(1.045); }
.pf-card-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 20px; }
.pf-card-cat {
	display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--theme);
	font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--theme-2); transition: background-color .25s var(--pf-ease), color .25s var(--pf-ease);
}
.pf-card-cat:hover { background: var(--theme-2); color: #fff; }
.pf-card-title { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.35; text-wrap: wrap; /* pretty cat dong 1 som (chu shop 2026-11-29) */ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-card-title a { color: var(--header); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s var(--pf-ease), background-size .4s var(--pf-ease); }
.pf-card:hover .pf-card-title a { color: var(--theme-2); background-size: 100% 1px; }
.pf-card-excerpt { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text); }
/* Ngay dang day xuong day the: cac the cung hang thang dong ngay du tieu de 2 hay 3 dong. */
.pf-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: auto 0 0; font-size: 14px; line-height: 1.4; color: var(--text); }
.pf-card-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px; border-radius: 50%; background: var(--theme-3); vertical-align: middle; }

/* The lon (khoi noi bat + bai dau luoi chuyen muc). */
.pf-card--feature .pf-card-title { font-size: 34px; line-height: 1.22; -webkit-line-clamp: 3; }
.pf-card--feature .pf-card-body { gap: 14px; padding-top: 26px; }

/* The ngang nho (cot phai khoi noi bat). */
.pf-card--row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px 0; }
.pf-card--row + .pf-card--row { border-top: 1px solid var(--pf-line); }
.pf-card--row .pf-card-media { border-radius: 14px; }
.pf-card--row .pf-card-media img { aspect-ratio: 4 / 3; }
.pf-card--row .pf-card-body { gap: 8px; padding-top: 0; }
.pf-card--row .pf-card-title { font-size: 18px; -webkit-line-clamp: 3; }
.pf-card--row .pf-card-cat { padding: 0; background: none; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--pf-label); }
.pf-card--row .pf-card-cat:hover { background: none; color: var(--theme-2); }

/* Nhan muc nho (vd "Bai viet khac") kem vach ngang keo dai. */
.pf-news-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-family: var(--heading-font); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--theme-2); }
.pf-news-kicker::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--pf-line); }

.pf-news-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.pf-news-row-title { margin: 0; font-size: 36px; font-weight: 500; line-height: 1.15; }
.pf-news-row-title a { color: var(--header); transition: color .25s var(--pf-ease); }
.pf-news-row-title a:hover { color: var(--theme-2); }
.pf-news-row-desc { max-width: 680px; margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.pf-news-more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px; font-family: var(--heading-font); font-size: 16px; font-weight: 500; color: var(--header); }
.pf-news-more i { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--theme); color: var(--theme-2); font-size: 14px; transition: background-color .3s var(--pf-ease), color .3s var(--pf-ease), transform .3s var(--pf-ease); }
.pf-news-more:hover { color: var(--theme-2); }
.pf-news-more:focus-visible { outline: 2px solid var(--theme-3); outline-offset: 4px; border-radius: 999px; }
.pf-news-more:hover i { background: var(--theme-2); color: #fff; transform: translateX(4px); }

/* Gioi thieu chuyen muc (template-parts/leafix/news-archive.php). */
.pf-news-intro { max-width: 780px; margin: 0 0 22px; font-size: 16.5px; font-weight: 400; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.pf-news-pages { margin-top: 64px; }

/* Trang thai trong. */
.pf-news-empty { display: flex; flex-direction: column; align-items: center; max-width: 560px; margin: 24px auto 0; padding: 56px 32px; border-radius: 30px; background: var(--bg2); text-align: center; }
.pf-news-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 22px; border-radius: 50%; background: var(--theme); color: var(--theme-2); font-size: 26px; }
.pf-news-empty-title { margin: 0 0 10px; font-size: 26px; font-weight: 500; line-height: 1.3; text-wrap: balance; }
.pf-news-empty-text { margin: 0 0 26px; font-size: 16px; line-height: 1.65; color: var(--text); text-wrap: balance; }
.pf-news-empty-form { display: flex; gap: 8px; width: 100%; max-width: 420px; margin: 0 0 26px; }
.pf-news-empty-form input[type="search"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 20px; border: 1px solid var(--pf-line); border-radius: 999px; background: #fff; font-size: 15px; color: var(--header); outline: none; transition: border-color .25s var(--pf-ease); }
.pf-news-empty-form input[type="search"]:focus { border-color: var(--theme-2); }
.pf-news-empty-form button { flex: 0 0 auto; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--theme-2); color: #fff; font-family: var(--heading-font); font-size: 15px; font-weight: 500; transition: background-color .25s var(--pf-ease); }
.pf-news-empty-form button:hover { background: var(--header); }

@media (max-width: 1199px) {
	.pf-card--feature .pf-card-title { font-size: 30px; }
	.pf-news-row-title { font-size: 32px; }
}
@media (max-width: 991px) {
}
@media (max-width: 767px) {
	.pf-card--feature .pf-card-title { font-size: 26px; -webkit-line-clamp: 4; }
	.pf-card--feature .pf-card-excerpt { font-size: 16px; }
	.pf-card--row { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
	.pf-card--row .pf-card-title { font-size: 17px; }
	.pf-card-title { font-size: 19px; }
	.pf-news-row-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
	.pf-news-row-title { font-size: 28px; }
	.pf-news-row-desc { font-size: 15px; }
	.pf-news-intro { margin-bottom: 18px; font-size: 15px; }
	.pf-news-empty { padding: 40px 20px; }
	.pf-news-empty-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.pf-card-media img, .pf-news-more i, .pf-card-title a { transition: none; }
}

/* ==== Trang Tin tuc kieu tap chi (inc/news-magazine.php) ====
   Nhip nen: hero trang > Giai phap kem > Ky thuat trang > San pham xanh dam > Benh hai kem > Dinh duong trang
   > Tin tuc kem > Bai viet khac trang. Tach dong bang vach thang khong bo goc, khong vien mot ben tren khoi bo. */

/* The chu tren anh (hero lon + khoi Tin tuc & thi truong). */
.pf-card--overlay { justify-content: flex-end; min-height: 380px; overflow: hidden; border-radius: var(--pf-radius); background: var(--header); isolation: isolate; }
.pf-card--overlay .pf-card-media { position: absolute; inset: 0; border-radius: 0; }
.pf-card--overlay .pf-card-media img { aspect-ratio: auto; }
.pf-card--overlay .pf-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 32, 16, 0) 30%, rgba(12, 32, 16, .55) 58%, rgba(12, 32, 16, .92) 100%); }
.pf-card--overlay .pf-card-body { position: relative; z-index: 1; flex: 0 0 auto; padding: 28px; pointer-events: none; }
.pf-card--overlay .pf-card-body a { pointer-events: auto; }
.pf-card--overlay .pf-card-title { font-size: 22px; -webkit-line-clamp: 4; }
.pf-card--overlay .pf-card-title a, .pf-card--overlay:hover .pf-card-title a { color: #fff; }
.pf-card--overlay .pf-card-meta { color: rgba(255, 255, 255, .78); }
.pf-card--overlay .pf-card-meta span + span::before { background: var(--theme); }

/* Dong co tom tat (luong "Bai viet khac"). */
.pf-card--list { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 0; }
.pf-card--list + .pf-card--list { border-top: 1px solid var(--pf-line); }
.pf-card--list .pf-card-media { border-radius: 16px; }
.pf-card--list .pf-card-body { gap: 10px; padding-top: 0; }
.pf-card--list .pf-card-cat { padding: 0; background: none; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--pf-label); }
.pf-card--list .pf-card-cat:hover { background: none; color: var(--theme-2); }
.pf-card--list .pf-card-title { font-size: 22px; -webkit-line-clamp: 3; }
.pf-card--list .pf-card-excerpt { font-size: 16px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-card--list .pf-card-meta { margin-top: 2px; }



/* Dai san pham nen xanh dam. */
.pf-mag-products { padding: 88px 0; background: var(--theme-2); }
.pf-mag-products .pf-news-row-title a { color: #fff; }
.pf-mag-products .pf-news-row-title a:hover { color: var(--theme); }
.pf-mag-products .pf-news-row-desc { color: rgba(255, 255, 255, .78); }
.pf-mag-products .pf-news-more { color: #fff; }
.pf-mag-products .pf-news-more:hover { color: var(--theme); }
.pf-mag-products .pf-news-more:hover i { background: #fff; color: var(--theme-2); }
.pf-mag-products-nav { display: flex; align-items: center; gap: 10px; }
.pf-mag-products-nav .pf-news-more { margin-left: 22px; }
.pf-mag-nav { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; font-size: 15px; transition: background-color .25s var(--pf-ease), border-color .25s var(--pf-ease), color .25s var(--pf-ease), opacity .25s var(--pf-ease); }
.pf-mag-nav:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--theme-2); }
.pf-mag-nav:focus-visible { outline: 2px solid var(--theme); outline-offset: 3px; }
.pf-mag-nav:disabled { opacity: .35; cursor: default; }
.pf-mag-products-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pf-mag-products-track::-webkit-scrollbar { display: none; }
/* Nen trang chi o phan chu: nen trang ca the lo ra vien sang mo o goc bo tron anh (chu shop 2026-11-29). */
.pf-prod { display: flex; flex-direction: column; border-radius: var(--pf-radius); scroll-snap-align: start; }
.pf-prod-media { display: block; overflow: hidden; border-radius: var(--pf-radius) var(--pf-radius) 0 0; background: #fff; isolation: isolate; }
.pf-prod-media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .7s var(--pf-ease); }
.pf-prod:hover .pf-prod-media img { transform: scale(1.05); }
.pf-prod-body { flex: 1 1 auto; padding: 18px 22px 24px; border-top: 1px solid var(--pf-line); border-radius: 0 0 var(--pf-radius) var(--pf-radius); background: #fff; }
.pf-prod-cat { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; color: var(--pf-label); }
.pf-prod-name { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-prod-name a { color: var(--header); transition: color .25s var(--pf-ease); }
.pf-prod:hover .pf-prod-name a { color: var(--theme-2); }

/* Bai viet khac + cot phu. */
.pf-mag-more { padding: 88px 0 110px; }
.pf-mag-more-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.pf-mag-stream .pf-news-kicker { margin-bottom: 4px; }
.pf-mag-load { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; margin-top: 28px; border: 1px solid var(--pf-line); border-radius: 999px; font-family: var(--heading-font); font-size: 16px; font-weight: 500; color: var(--header); transition: background-color .25s var(--pf-ease), border-color .25s var(--pf-ease), color .25s var(--pf-ease); }
.pf-mag-load i { font-size: 14px; color: var(--pf-label); transition: color .25s var(--pf-ease); }
.pf-mag-load:hover { background: var(--theme-2); border-color: var(--theme-2); color: #fff; }
.pf-mag-load:hover i { color: var(--theme); }
.pf-mag-load:focus-visible { outline: 2px solid var(--theme-3); outline-offset: 3px; }
.pf-mag-load[aria-busy="true"] { pointer-events: none; opacity: .7; }
.pf-mag-load-status { margin: 12px 0 0; font-size: 14px; text-align: center; color: var(--text); }
.pf-mag-load-status:empty { margin: 0; }

.pf-mag-side-pin { display: flex; flex-direction: column; gap: 24px; }
.pf-side-box { padding: 28px; border-radius: var(--pf-radius); background: var(--bg2); }
.pf-side-title { margin: 0 0 14px; font-size: 22px; font-weight: 500; line-height: 1.25; }
.pf-side-rank { margin: 0; padding: 0; list-style: none; }
.pf-side-rank li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; }
.pf-side-rank li + li { border-top: 1px solid var(--pf-line); }
.pf-side-rank li:last-child { padding-bottom: 0; }
.pf-side-rank-n { font-family: var(--heading-font); font-size: 24px; font-weight: 600; line-height: 1; color: var(--pf-label); }
.pf-side-rank a { font-family: var(--heading-font); font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--header); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s var(--pf-ease); }
.pf-side-rank a:hover { color: var(--theme-2); }
.pf-side-help { background: var(--theme-2); }
.pf-side-help .pf-side-title { color: #fff; }
.pf-side-help p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.pf-side-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-side-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 999px; font-family: var(--heading-font); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .25s var(--pf-ease), border-color .25s var(--pf-ease), color .25s var(--pf-ease); }
.pf-side-btn--call { flex: 1 1 auto; background: var(--theme); color: var(--theme-2); }
.pf-side-btn--call:hover { background: #fff; color: var(--theme-2); }
.pf-side-btn--zalo { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.pf-side-btn--zalo:hover { border-color: #fff; background: #fff; color: var(--theme-2); }
.pf-side-btn:focus-visible { outline: 2px solid var(--theme); outline-offset: 3px; }
.pf-side-prods { margin: 0; padding: 0; list-style: none; }
.pf-side-prods li + li { border-top: 1px solid var(--pf-line); }
.pf-side-prod { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; }
.pf-side-prods li:first-child .pf-side-prod { padding-top: 0; }
.pf-side-prods li:last-child .pf-side-prod { padding-bottom: 0; }
.pf-side-prod-img { display: block; overflow: hidden; border-radius: 12px; background: #fff; }
.pf-side-prod-img img { display: block; width: 64px; height: 64px; object-fit: cover; }
.pf-side-prod-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-side-prod-cat { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pf-label); }
.pf-side-prod-name { font-family: var(--heading-font); font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--header); transition: color .25s var(--pf-ease); }
.pf-side-prod:hover .pf-side-prod-name { color: var(--theme-2); }

@media (max-width: 1199px) {
	.pf-mag-more-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
	.pf-card--list { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
	.pf-card--list .pf-card-title { font-size: 20px; }
}
@media (max-width: 991px) {
	.pf-mag-products .pf-news-row-head { flex-wrap: wrap; align-items: flex-start; gap: 18px 24px; }
	.pf-mag-products-nav { flex-wrap: wrap; }
	.pf-mag-products-nav .pf-news-more { margin-left: 10px; }
	.pf-mag-products-track { grid-auto-columns: calc((100% - 48px) / 2.6); }
	.pf-mag-more-layout { grid-template-columns: minmax(0, 1fr); gap: 56px; }
	.pf-mag-side-pin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
	.pf-mag-side-pin > .pf-side-box:first-child { grid-row: span 2; }
}
@media (max-width: 767px) {
	.pf-mag-products { padding: 56px 0; }
	.pf-mag-products .pf-news-row-head { flex-direction: column; align-items: flex-start; }
	.pf-mag-products-nav .pf-mag-nav { display: none; }
	.pf-mag-products-nav .pf-news-more { margin-left: 0; }
	.pf-mag-products-track { grid-auto-columns: 62%; gap: 14px; margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding-right: 16px; }
	.pf-prod-body { padding: 14px 16px 18px; }
	.pf-prod-name { font-size: 17px; }
	.pf-mag-more { padding: 56px 0 72px; }
	.pf-card--list { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
	.pf-card--list .pf-card-media { border-radius: 14px; }
	.pf-card--list .pf-card-media img { aspect-ratio: 4 / 3; }
	.pf-card--list .pf-card-body { gap: 8px; }
	.pf-card--list .pf-card-title { font-size: 17px; -webkit-line-clamp: 3; }
	.pf-card--list .pf-card-excerpt { display: none; }
	.pf-mag-side-pin { display: flex; align-items: stretch; }
	.pf-side-box { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.pf-prod-media img { transition: none; }
}

/* ==== Bo cuc bao lon (2026-11-29): thanh Tin moi, cum dau trang + Moi nhat, khoi chuyen muc, cot nho, theo cay ====
   Nhip nen: dau trang trang > chuyen muc trang/kem xen ke > san pham xanh dam > cot nho kem > theo cay trang. */

/* Thanh "Tin moi" chay ngang manh kieu bien tap (bo khung vien thuoc 999px). */
.pf-ticker { display: flex; align-items: center; gap: 14px; height: 38px; margin-bottom: 14px; padding: 0 0 10px; border-bottom: 1px solid #ECEFE5; background: transparent; overflow: hidden; }
.pf-ticker-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; margin: 0; padding: 0 10px; border-radius: 6px; background: var(--theme-2); font-family: var(--heading-font); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.pf-ticker-label i { font-size: 10px; color: var(--theme); }
.pf-ticker-viewport { flex: 1 1 auto; display: flex; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 36px), transparent); }
.pf-ticker-track { flex: 0 0 auto; display: flex; gap: 0; margin: 0; padding: 0; list-style: none; animation: pf-ticker 60s linear infinite; }
.pf-ticker-viewport:hover .pf-ticker-track, .pf-ticker-viewport:focus-within .pf-ticker-track { animation-play-state: paused; }
.pf-ticker-track li { flex: 0 0 auto; display: flex; align-items: center; white-space: nowrap; }
.pf-ticker-track li::after { content: ""; width: 4px; height: 4px; margin: 0 18px; border-radius: 50%; background: #B8C7A4; }
.pf-ticker-track a { font-family: var(--heading-font); font-size: 14px; font-weight: 500; color: #2B332A; transition: color .2s var(--pf-ease); }
.pf-ticker-track a:hover { color: var(--theme-2); }
@keyframes pf-ticker { to { transform: translateX(-100%); } }

/* Cum dau trang: bai lon + 2 bai vua | cot Moi nhat. */
.pf-mag-hero { padding: 16px 0 64px; }
.pf-mag-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.pf-mag-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 28px; }
.pf-mag-hero-grid > .pf-card--overlay { grid-row: span 2; min-height: 540px; }
.pf-mag-hero-grid > .pf-card--overlay .pf-card-body { padding: 36px; gap: 14px; }
.pf-mag-hero-grid > .pf-card--overlay .pf-card-title { font-size: 32px; line-height: 1.22; }
.pf-mag-hero .pf-card--card .pf-card-body { gap: 10px; padding-top: 16px; }
.pf-mag-hero .pf-card--card .pf-card-cat { padding: 5px 11px; font-size: 12px; }
.pf-mag-hero .pf-card--card .pf-card-title { font-size: 18px; }
.pf-mag-latest { padding: 22px 24px 8px; border-radius: var(--pf-radius); background: var(--bg2); }
.pf-mag-latest-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.2; }
.pf-mag-live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #E0442B; }
.pf-mag-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #E0442B; opacity: 0; animation: pf-live 1.8s ease-out infinite; }
@keyframes pf-live { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.4); opacity: 0; } }
.pf-mag-latest-list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pf-mag-latest-list li { position: relative; padding: 14px 0 14px 18px; }
.pf-mag-latest-list li + li { border-top: 1px solid var(--pf-line); }
.pf-mag-latest-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--theme-3); }
.pf-mag-latest-meta { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; color: var(--pf-label); }
.pf-mag-latest-meta time { color: #C2412A; }
.pf-mag-latest-list a { font-family: var(--heading-font); font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--header); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s var(--pf-ease); }
.pf-mag-latest-list a:hover { color: var(--theme-2); }

/* Dau khoi chuyen muc kieu bao: ten + vach mau, nut loc cay, "Xem tat ca". */
.pf-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--pf-line); position: relative; }
.pf-sec-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; border-radius: 3px; background: var(--theme-3); }
.pf-sec-title { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; }
.pf-sec-title a { color: var(--theme-2); transition: color .25s var(--pf-ease); }
.pf-sec-title a:hover { color: var(--header); }
.pf-sec-chips { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.pf-sec-chips a { font-family: var(--heading-font); font-size: 15px; font-weight: 500; color: var(--text); transition: color .25s var(--pf-ease); }
.pf-sec-chips a:hover { color: var(--theme-2); }
.pf-sec-more { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-family: var(--heading-font); font-size: 15px; font-weight: 500; color: var(--header); white-space: nowrap; transition: color .25s var(--pf-ease); }
.pf-sec-more i { font-size: 13px; color: var(--pf-label); transition: transform .25s var(--pf-ease); }
.pf-sec-more:hover { color: var(--theme-2); }
.pf-sec-more:hover i { transform: translateX(3px); }

/* Danh sach tieu de cham tron (dong ngan trong khoi). */
.pf-mag-lines { margin: 0; padding: 0; list-style: none; }
.pf-mag-lines li { position: relative; padding: 13px 0 13px 18px; }
.pf-mag-lines li + li { border-top: 1px dashed var(--pf-line); }
.pf-mag-lines li::before { content: ""; position: absolute; left: 0; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--theme-3); }
.pf-mag-lines a { font-family: var(--heading-font); font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--header); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s var(--pf-ease); }
.pf-mag-lines a:hover { color: var(--theme-2); }

/* Khoi chuyen muc lon. */
.pf-mag-sec { padding: 72px 0; }
.pf-mag-sec:nth-of-type(even) { background: var(--bg2); }
.pf-mag-body { display: grid; gap: 32px; }
.pf-mag-sec .pf-card--card .pf-card-title { font-size: 18px; }
.pf-mag-sec .pf-card--card .pf-card-body { gap: 10px; padding-top: 16px; }
/* lead: bai lon | 2 bai vua xep doc | 4 dong. */
.pf-mag-sec--lead .pf-mag-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, .95fr) minmax(0, 1fr); align-items: start; }
.pf-mag-sec--lead .pf-card--feature .pf-card-title { font-size: 28px; }
.pf-mag-sec--lead .pf-card--feature .pf-card-media img { aspect-ratio: 16 / 10; }
.pf-mag-pair { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.pf-mag-pair .pf-card-media img { aspect-ratio: 16 / 9; }
.pf-mag-sec--lead .pf-mag-lines li:first-child { padding-top: 0; }
.pf-mag-sec--lead .pf-mag-lines li:first-child::before { top: 9px; }
/* rank: 4 the 2x2 | o Doc nhieu. */
.pf-mag-sec--rank .pf-mag-body { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.pf-mag-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.pf-mag-rank { background: #fff; }
/* Chuyen muc chua du bai cho o Doc nhieu: 4 the trai ca hang. */
.pf-mag-sec--rank .pf-mag-body:not(:has(.pf-mag-rank)) { grid-template-columns: minmax(0, 1fr); }
.pf-mag-sec--rank .pf-mag-body:not(:has(.pf-mag-rank)) .pf-mag-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-mag-sec:nth-of-type(odd) .pf-mag-rank { background: var(--bg2); }
/* quad: 4 the. */
.pf-mag-sec--quad .pf-mag-body { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }

/* Hang chuyen muc nho 3 cot. */
.pf-mag-cols { padding: 72px 0; background: var(--bg2); }
.pf-mag-cols-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 48px 32px; }
.pf-mag-col { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; }
/* Hang cuoi 2 cot (7 = 3 + 2 + 2), 1 cot duy nhat thi trai rong. */
.pf-mag-col--wide { grid-column: span 3; }
.pf-mag-col--wide:only-child { grid-column: 1 / -1; }
.pf-mag-col-title { position: relative; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--pf-line); font-size: 21px; font-weight: 600; line-height: 1.25; text-transform: uppercase; }
.pf-mag-col-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 3px; border-radius: 3px; background: var(--theme-3); }
.pf-mag-col-title a { display: inline-flex; align-items: center; gap: 10px; color: var(--theme-2); transition: color .25s var(--pf-ease); }
.pf-mag-col-title a:hover { color: var(--header); }
.pf-mag-col-title i { font-size: 14px; }
.pf-mag-col .pf-card { margin-bottom: 10px; }
.pf-mag-col .pf-card-media img { aspect-ratio: 16 / 9; }
.pf-mag-col .pf-card-body { gap: 10px; padding-top: 16px; }
.pf-mag-col .pf-card-title { font-size: 19px; }

/* Theo cay trong. */
.pf-mag-cropsec { padding: 72px 0; }
.pf-mag-cropsec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.pf-mag-cropcol { padding: 20px 22px 8px; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); background: #fff; transition: border-color .25s var(--pf-ease), box-shadow .25s var(--pf-ease); }
.pf-mag-cropcol:hover { border-color: var(--theme-3); box-shadow: 0 18px 40px -28px rgba(15, 84, 30, .45); }
.pf-mag-cropcol-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--pf-line); }
.pf-mag-cropcol-img { flex: 0 0 auto; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--bg2); }
.pf-mag-cropcol-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-mag-cropcol-text { display: flex; flex-direction: column; gap: 2px; }
.pf-mag-cropcol-name { font-family: var(--heading-font); font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--theme-2); }
.pf-mag-cropcol-n { font-size: 13px; color: var(--text); }
.pf-mag-cropcol .pf-mag-lines a { font-size: 15px; -webkit-line-clamp: 3; }
/* Het bai cho luong "Bai viet khac" (site it bai): cot phu nam ngang ca hang. */
.pf-mag-stream:not(:has(.pf-card)) { display: none; }
.pf-mag-more-layout:not(:has(.pf-mag-stream .pf-card)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-mag-more-layout:not(:has(.pf-mag-stream .pf-card)) .pf-mag-side { grid-column: 1 / -1; }
.pf-mag-more-layout:not(:has(.pf-mag-stream .pf-card)) .pf-mag-side-pin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1399px) {
	.pf-mag-top { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
	.pf-mag-hero-grid > .pf-card--overlay .pf-card-title { font-size: 28px; }
}
@media (max-width: 1199px) {
	.pf-mag-top { grid-template-columns: minmax(0, 1fr); }
	.pf-mag-latest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
	.pf-mag-latest-list li + li { border-top: 0; }
	.pf-mag-latest-list li { border-bottom: 1px solid var(--pf-line); }
	.pf-mag-sec--lead .pf-mag-body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
	.pf-mag-sec--lead .pf-mag-lines { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
	.pf-mag-sec--lead .pf-mag-lines li + li { border-top: 0; }
	.pf-mag-sec--lead .pf-mag-lines li { padding-top: 13px; border-bottom: 1px dashed var(--pf-line); }
	.pf-mag-sec--lead .pf-mag-lines li:first-child::before { top: 22px; }
	.pf-mag-sec--rank .pf-mag-body { grid-template-columns: minmax(0, 1fr) 300px; }
	.pf-mag-sec--quad .pf-mag-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.pf-mag-hero-grid > .pf-card--overlay { min-height: 460px; }
	.pf-mag-sec--rank .pf-mag-body { grid-template-columns: minmax(0, 1fr); }
	.pf-mag-cols-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pf-mag-col, .pf-mag-col--wide { grid-column: auto; }
}
@media (max-width: 767px) {
	.pf-ticker { height: 46px; margin-bottom: 20px; gap: 12px; padding-left: 4px; }
	.pf-ticker-label { height: 36px; padding: 0 12px; font-size: 12px; }
	.pf-ticker-track a { font-size: 14px; }
	.pf-mag-hero { padding: 24px 0 48px; }
	.pf-mag-top { gap: 28px; }
	.pf-mag-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.pf-mag-hero-grid > .pf-card--overlay { grid-row: auto; min-height: 400px; margin-bottom: 8px; }
	.pf-mag-hero-grid > .pf-card--overlay .pf-card-body { padding: 24px; gap: 12px; }
	.pf-mag-hero-grid > .pf-card--overlay .pf-card-title { font-size: 24px; -webkit-line-clamp: 4; }
	/* Dien thoai: the vua thanh dong anh trai chu phai cho gon. */
	.pf-mag-hero .pf-card--card, .pf-mag-pair .pf-card--card, .pf-mag-cards .pf-card--card, .pf-mag-sec--quad .pf-card--card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; }
	.pf-mag-hero .pf-card--card + .pf-card--card, .pf-mag-pair .pf-card + .pf-card, .pf-mag-cards .pf-card + .pf-card, .pf-mag-sec--quad .pf-card + .pf-card { border-top: 1px solid var(--pf-line); }
	.pf-mag-hero .pf-card--card .pf-card-media, .pf-mag-pair .pf-card-media, .pf-mag-cards .pf-card-media, .pf-mag-sec--quad .pf-card-media { border-radius: 14px; }
	.pf-mag-hero .pf-card--card .pf-card-media img, .pf-mag-pair .pf-card-media img, .pf-mag-cards .pf-card-media img, .pf-mag-sec--quad .pf-card-media img { aspect-ratio: 4 / 3; }
	.pf-mag-hero .pf-card--card .pf-card-body, .pf-mag-pair .pf-card-body, .pf-mag-cards .pf-card-body, .pf-mag-sec--quad .pf-card-body { gap: 8px; padding-top: 0; }
	.pf-mag-hero .pf-card--card .pf-card-cat { padding: 0; background: none; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--pf-label); }
	.pf-mag-hero .pf-card--card .pf-card-title, .pf-mag-pair .pf-card-title, .pf-mag-cards .pf-card-title, .pf-mag-sec--quad .pf-card-title { font-size: 17px; }
	.pf-mag-latest { padding: 18px 18px 4px; }
	.pf-mag-latest-list { display: block; }
	.pf-mag-latest-list li { border-bottom: 0; }
	.pf-mag-latest-list li + li { border-top: 1px solid var(--pf-line); }
	.pf-sec-head { margin-bottom: 20px; gap: 10px 16px; }
	.pf-sec-title { font-size: 22px; }
	.pf-sec-chips { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
	.pf-sec-chips::-webkit-scrollbar { display: none; }
	.pf-sec-chips a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--pf-line); border-radius: 999px; background: #fff; font-size: 14px; white-space: nowrap; }
	.pf-sec-more { font-size: 14px; }
	.pf-mag-sec, .pf-mag-cols, .pf-mag-cropsec { padding: 48px 0; }
	.pf-mag-body { gap: 0; }
	.pf-mag-sec--lead .pf-mag-body, .pf-mag-sec--quad .pf-mag-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.pf-mag-sec--lead .pf-card--feature { padding-bottom: 8px; }
	.pf-mag-sec--lead .pf-card--feature .pf-card-title { font-size: 22px; }
	.pf-mag-pair { gap: 0; border-top: 1px solid var(--pf-line); margin-top: 12px; }
	.pf-mag-sec--lead .pf-mag-lines { display: block; border-top: 1px solid var(--pf-line); }
	.pf-mag-sec--lead .pf-mag-lines li { border-bottom: 0; }
	.pf-mag-sec--lead .pf-mag-lines li + li { border-top: 1px dashed var(--pf-line); }
	.pf-mag-sec--lead .pf-mag-lines li:first-child { padding-top: 13px; }
	.pf-mag-cards { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.pf-mag-rank { margin-top: 20px; }
	.pf-mag-cols-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.pf-mag-cropsec-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
/* May tat hieu ung Windows (bao "giam chuyen dong"): dai Tin moi van chay nhung cham gap doi (chu shop 2026-11-29 muon
   thay chay); re chuot / Tab vao van dung. Cham do nhay thi tat. */
@media (prefers-reduced-motion: reduce) {
	.pf-ticker-track { animation-duration: 120s; }
	.pf-mag-live::after { animation: none; }
}

/* Trang chuyen muc / the / tim kiem kieu tap chi (template-parts/leafix/news-archive.php). */
.pf-arch { padding: 28px 0 96px; }
.pf-arch .pf-news-intro { margin-bottom: 22px; }
/* Nut "Theo cay" dau trang chuyen muc (2026-11-29). */
.pf-arch-crops { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -16px 0 28px; }
.pf-arch-crops-k { font-family: var(--heading-font); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-label); }
.pf-arch-crops ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-arch-crops a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--pf-line); border-radius: 999px; background: #fff; font-family: var(--heading-font); font-size: 15px; font-weight: 500; color: var(--header); transition: border-color .25s var(--pf-ease), color .25s var(--pf-ease); }
.pf-arch-crops a:hover { border-color: var(--theme-2); color: var(--theme-2); }
.pf-arch-crops a:focus-visible { outline: 2px solid var(--theme-3); outline-offset: 2px; }
.pf-arch-lead { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 56px; }
.pf-arch-lead > .pf-card--overlay { min-height: 260px; }
.pf-arch-lead > .pf-card--overlay:first-child { grid-row: span 2; min-height: 544px; }
.pf-arch-lead > .pf-card--overlay:first-child .pf-card-body { padding: 36px; gap: 14px; }
.pf-arch-lead > .pf-card--overlay:first-child .pf-card-title { font-size: 30px; line-height: 1.25; }
.pf-arch-lead > .pf-card--overlay + .pf-card--overlay .pf-card-body { padding: 24px; gap: 10px; }
.pf-arch-lead > .pf-card--overlay + .pf-card--overlay .pf-card-title { font-size: 19px; line-height: 1.35; -webkit-line-clamp: 3; }
/* Luoi 2 cot; the 'list' (khi so bai le) nam ngang ca hang o dau luoi. */
.pf-arch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
.pf-arch-grid > .pf-card--list { grid-column: 1 / -1; padding: 0; }
.pf-arch-grid > .pf-card--card .pf-card-body { gap: 10px; padding-top: 18px; }
.pf-arch-grid > .pf-card--card .pf-card-title { font-size: 20px; -webkit-line-clamp: 3; }
.pf-arch .pf-news-pages { margin-top: 48px; }
/* Nut loc giai doan dang Segmented Control gon gang (bo pill tron roi rac). */
.pf-stage { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
.pf-stage-k { flex: 0 0 auto; font-family: var(--heading-font); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5F6B5B; }
.pf-stage-list { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 2px; margin: 0; padding: 3px; border-radius: 10px; background: #F2F4EC; border: 1px solid #E5E9DC; list-style: none; }
.pf-stage-list a {
	display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 11px;
	border: 0; border-radius: 7px; background: transparent;
	font-family: var(--heading-font); font-size: 13.5px; font-weight: 500; line-height: 1; color: #3A4138; white-space: nowrap;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.pf-stage-list a:hover { color: var(--theme-2); }
.pf-stage-list a:focus-visible { outline: 2px solid var(--theme-2); outline-offset: 2px; }
.pf-stage-list a[aria-current="page"] { background: #fff; color: var(--theme-2); font-weight: 700; box-shadow: 0 1px 3px rgba(15, 45, 20, .1); }
.pf-stage-n { font-size: 11.5px; font-weight: 600; color: #7C8778; font-variant-numeric: tabular-nums; }
.pf-stage-list a[aria-current="page"] .pf-stage-n { color: var(--pf-label); }
@media (max-width: 767px) {
	.pf-arch { padding: 20px 0 64px; }
	.pf-arch .pf-news-intro { margin-bottom: 18px; }
	.pf-arch-crops { margin: -8px 0 20px; }
	.pf-arch-crops ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.pf-arch-crops a { white-space: nowrap; }
	.pf-arch-lead { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 14px; margin-bottom: 20px; }
	.pf-arch-lead > .pf-card--overlay { min-height: 230px; }
	.pf-arch-lead > .pf-card--overlay:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
	.pf-arch-lead > .pf-card--overlay:first-child .pf-card-body { padding: 24px; gap: 12px; }
	.pf-arch-lead > .pf-card--overlay:first-child .pf-card-title { font-size: 23px; }
	.pf-arch-lead > .pf-card--overlay + .pf-card--overlay .pf-card-body { padding: 16px; gap: 8px; }
	.pf-arch-lead > .pf-card--overlay + .pf-card--overlay .pf-card-title { font-size: 16px; -webkit-line-clamp: 4; }
	/* O nho chi ~170px: bo "phut doc", giu ngay tren 1 dong (khong roi dau cham xuong hang). */
	.pf-arch-lead > .pf-card--overlay + .pf-card--overlay .pf-card-meta { font-size: 12px; white-space: nowrap; }
	.pf-arch-lead > .pf-card--overlay + .pf-card--overlay .pf-card-meta span + span { display: none; }
	/* Luoi -> tung dong anh trai chu phai, ke vach thang giua cac dong. */
	.pf-arch-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.pf-arch-grid > .pf-card--list { padding: 18px 0; }
	.pf-arch-grid > .pf-card--card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; }
	.pf-arch-grid > .pf-card + .pf-card { border-top: 1px solid var(--pf-line); }
	.pf-arch-grid > .pf-card--card .pf-card-media { border-radius: 14px; }
	.pf-arch-grid > .pf-card--card .pf-card-media img { aspect-ratio: 4 / 3; }
	.pf-arch-grid > .pf-card--card .pf-card-body { gap: 8px; padding-top: 0; }
	.pf-arch-grid > .pf-card--card .pf-card-title { font-size: 17px; }
	.pf-arch .pf-news-pages { margin-top: 32px; }
}

/* <=991px: hang nut giai doan trong noi dung chi cho may tinh; dien thoai/may tinh bang dung nut "Giai doan"
   canh nut "Chuyen muc" tren thanh (template-parts/news/hub-tabs.php). Dat cuoi file de de quy tac goc .pf-stage. */
@media (max-width: 991px) {
	.pf-stage { display: none; }
}

/* Het vien sang o goc bo tron anh (chu shop 2026-11-29): khung cat anh khong to nen -> mep khu rang cua goc tron hoa vao
   nen trang chu that, khong hoa vao mau khung (kem/trang) thanh vien mo. Mau cho luc anh chua tai chuyen sang chinh anh. */
.pf-card-media, .pf-crop-img, .pf-prod-media, .pf-side-prod-img, .pf-mag-cropcol-img { background: transparent; }
.pf-card-media img, .pf-crop-img img, .pf-prod-media img, .pf-side-prod-img img, .pf-mag-cropcol-img img { border-radius: inherit; background: var(--bg2); }

/* Nhan chuyen muc chu nho tren dien thoai (cao 14px) -> vung bam ~40px, khong doi hinh (soat 2026-11-29). */
@media (max-width: 991px) {
	.pf-card-cat { position: relative; }
	.pf-card-cat::before { content: ""; position: absolute; left: -6px; right: -6px; top: -13px; bottom: -13px; }
}


/* ---------- Nang cap trang Tin tuc 2026-12-03: 1 thanh cong cu duy nhat (Giai doan + Chu de nong), cam nang tru cot, Hub cay trong ---------- */
.pf-utility-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; min-width: 0; }
.pf-utility-bar .pf-stage { margin: 0; flex: 0 0 auto; }
.pf-symptom-bar { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
.pf-symptom-form { display: flex; flex: 0 1 360px; min-width: 220px; background: var(--white); border: 1px solid #D8E0CA; border-radius: 10px; overflow: hidden; }
.pf-symptom-form--mobile { display: none; }
.pf-symptom-form input[type="search"] { flex: 1 1 auto; min-width: 0; padding: 10px 14px; border: 0; background: transparent; color: var(--header); font-size: 14px; line-height: 1.3; }
.pf-symptom-form input[type="search"]::placeholder { color: #747B6F; }
.pf-symptom-form button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 42px; padding: 0 14px; border: 0; background: var(--theme-2); color: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s ease; }
.pf-symptom-form button:hover { background: #146A27; }
.pf-symptom-chips { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.pf-symptom-k { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C2412A; padding-left: 14px; border-left: 1px solid #DFE4D6; }
.pf-symptom-chips ul { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.pf-symptom-chips ul::-webkit-scrollbar { display: none; }
.pf-symptom-chips a { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: transparent; color: #343C32; font-family: var(--heading-font); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color .18s ease; }
.pf-symptom-chips a span { color: #7C9A52; font-weight: 700; }
.pf-symptom-chips a:hover, .pf-symptom-chips a:focus-visible { color: var(--theme-2); }
@media (max-width: 1199px) {
	.pf-utility-bar { flex-wrap: wrap; gap: 10px 16px; }
	.pf-symptom-bar { justify-content: flex-start; }
	.pf-symptom-k { padding-left: 0; border-left: 0; }
}
@media (max-width: 991px) {
	.pf-utility-bar { margin-bottom: 16px; }
	.pf-symptom-bar { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
	.pf-symptom-form--mobile { display: flex; width: 100%; flex: 1 1 auto; }
}

.pf-pillar-strip { padding: 40px 0; background: #F4F7EC; border-top: 1px solid #E5EBDA; border-bottom: 1px solid #E5EBDA; }
.pf-pillar-sub { margin: 4px 0 0; font-size: 14.5px; color: var(--text); }
.pf-pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1199px) { .pf-pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pf-arch-sort { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; }
.pf-arch-sort-k { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin-right: 4px; }
.pf-arch-sort a { display: inline-flex; align-items: center; min-height: 36px; padding: 5px 14px; border-radius: 999px; border: 1px solid #DCE3CE; background: var(--white); color: var(--header); font-size: 13.5px; font-weight: 600; }
.pf-arch-sort a[aria-current="page"] { border-color: var(--theme-2); background: var(--theme-2); color: var(--white); }

.pf-crop-pillars { margin: 0 0 36px; padding: 24px; border-radius: 18px; background: #F4F7EC; border: 1px solid #E5EBDA; }
.pf-crop-pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pf-crop-products { margin: 0 0 36px; padding: 24px; border-radius: 18px; background: var(--white); border: 1px solid #E5EBDA; }
.pf-crop-products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pf-crop-others { padding: 42px 0 64px; background: #F7F8F2; border-top: 1px solid #E5EBDA; }
.pf-crop-others-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pf-crop-other-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid #E3E8D8; color: var(--header); transition: border-color .2s ease, transform .2s ease; }
.pf-crop-other-card:hover { border-color: var(--theme-2); transform: translateY(-2px); color: var(--theme-2); }
.pf-crop-other-img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; }
.pf-crop-other-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--bg2); }
.pf-crop-other-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-crop-other-name { font-family: var(--heading-font); font-size: 16px; font-weight: 700; line-height: 1.25; }
.pf-crop-other-n { font-size: 13px; color: var(--text); }

.pf-search-head { margin: 0 0 24px; padding: 18px 20px; border-radius: 16px; background: #F7F8F2; border: 1px solid #E3E8D8; }
.pf-search-head .pf-symptom-form { max-width: 520px; }
.pf-search-summary { margin: 12px 0 12px; font-size: 15px; color: var(--header); }
.pf-search-head .pf-arch-crops { margin: 0; }
.pf-search-head .pf-arch-crops a[aria-current="page"] { background: var(--theme-2); border-color: var(--theme-2); color: var(--white); }

.pf-news-empty-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.pf-empty-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.pf-empty-cta--call { background: var(--theme); color: var(--header); }
.pf-empty-cta--zalo { background: var(--theme-2); color: var(--white); }
.pf-empty-cta--zalo:hover { color: var(--white); opacity: .92; }
.pf-empty-suggest { margin-top: 36px; }
.pf-empty-suggest-title { margin: 0 0 18px; font-size: 20px; font-weight: 700; color: var(--header); }
.pf-empty-suggest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

@media (max-width: 991px) {
	.pf-crop-pillars-grid, .pf-crop-products-grid, .pf-crop-others-grid, .pf-empty-suggest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.pf-symptom-bar { gap: 8px; }
	.pf-symptom-chips a { min-height: 36px; }
	.pf-pillar-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; scrollbar-width: none; padding-bottom: 4px; }
	.pf-pillar-grid > .pf-card { flex: 0 0 272px; scroll-snap-align: start; }
	.pf-crop-pillars, .pf-crop-products { padding: 18px 16px; }
	.pf-crop-pillars-grid, .pf-empty-suggest-grid { grid-template-columns: minmax(0, 1fr); }
	.pf-crop-products-grid, .pf-crop-others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pf-crop-other-card { padding: 12px; gap: 10px; }
}

/* Hieu nang trang /tin-tuc/: gium cot phu bang CSS sticky goc (thay ScrollTrigger JS) va hoan layout cac khoi duoi man dau. */
body.blog, body.archive { overflow-x: clip; }
@media (min-width: 1200px) {
	.pf-mag-more-layout { align-items: stretch; }
	.pf-mag-side-pin { position: sticky; top: 120px; }
}
/* Giu .pf-mag-cols ngoai content-visibility: auto de khong dinh false-positive color-contrast/target-size voi .pf-mag-products. */
.pf-pillar-strip, .pf-mag-sec, .pf-mag-products, .pf-mag-cropsec, footer.footer-section {
	content-visibility: auto;
	contain-intrinsic-size: auto 620px;
}
@media (max-width: 1199px) {
	.pf-mag-latest {
		content-visibility: auto;
		contain-intrinsic-size: auto 520px;
	}
	.pf-mag-more {
		content-visibility: auto;
		contain-intrinsic-size: auto 900px;
	}
}
