/**
 * Truy Xuất Nguồn Gốc - CSS chính.
 * Phong cách: xanh nông nghiệp, thẻ bo góc, timeline truy xuất.
 */

/* ===== Biến màu ===== */
:root {
	--tx-primary: #1e8a4c;
	--tx-primary-dark: #14663a;
	--tx-accent: #e8f5ee;
	--tx-text: #2b2f33;
	--tx-text-light: #6b7280;
	--tx-border: #e3e8e4;
	--tx-bg: #f5f7f5;
	--tx-white: #ffffff;
	--tx-radius: 12px;
	--tx-shadow: 0 2px 12px rgba(20, 102, 58, 0.08);
	--tx-shadow-hover: 0 8px 24px rgba(20, 102, 58, 0.14);
}

/* ===== Reset cơ bản ===== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--tx-text);
	background: var(--tx-bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--tx-primary);
	text-decoration: none;
}

a:hover {
	color: var(--tx-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.3;
	margin: 0 0 0.6em;
	color: var(--tx-text);
}

p {
	margin: 0 0 1em;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 8px;
	top: 8px;
	z-index: 100000;
	background: var(--tx-white);
	padding: 10px 16px;
	border-radius: 6px;
}

/* ===== Container ===== */
.tx-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ===== Header ===== */
.site-header {
	background: var(--tx-white);
	border-bottom: 1px solid var(--tx-border);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.tx-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
	flex-wrap: wrap;
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-branding {
	display: flex;
	flex-direction: column;
}

.site-logo-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 20px;
	color: var(--tx-primary-dark);
}

.logo-icon {
	color: var(--tx-primary);
	display: inline-flex;
}

.site-slogan {
	margin: 0;
	font-size: 12px;
	color: var(--tx-text-light);
}

.custom-logo {
	max-height: 60px;
	width: auto;
}

/* Menu */
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.main-navigation a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--tx-text);
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	background: var(--tx-accent);
	color: var(--tx-primary-dark);
}

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: 8px;
	box-shadow: var(--tx-shadow);
	min-width: 200px;
	flex-direction: column;
	padding: 6px;
}

.main-navigation li {
	position: relative;
}

.main-navigation li:hover > .sub-menu {
	display: block;
}

/* Nút menu mobile */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--tx-border);
	border-radius: 8px;
	padding: 10px 12px;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--tx-text);
	margin: 4px 0;
	border-radius: 2px;
}

/* ===== Hero trang chủ ===== */
.tx-hero {
	background: linear-gradient(135deg, var(--tx-primary-dark) 0%, var(--tx-primary) 60%, #2fae66 100%);
	color: #fff;
	padding: 64px 0 56px;
	text-align: center;
}

.tx-hero-title {
	color: #fff;
	font-size: clamp(28px, 4vw, 42px);
	margin-bottom: 12px;
}

.tx-hero-desc {
	max-width: 640px;
	margin: 0 auto 28px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 17px;
}

.tx-search-form {
	display: flex;
	gap: 10px;
	max-width: 620px;
	margin: 0 auto;
}

.tx-search-input {
	flex: 1;
	padding: 14px 18px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	outline: none;
	min-width: 0;
}

.tx-search-input:focus {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* ===== Nút ===== */
.tx-btn {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 16px;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.tx-btn-primary {
	background: #ffb703;
	color: #3d2c00;
}

.tx-btn-primary:hover {
	background: #ffc933;
	color: #3d2c00;
	transform: translateY(-1px);
}

/* ===== Tính năng ===== */
.tx-features {
	padding: 48px 0 8px;
}

.tx-feature-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.tx-feature-card {
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
	padding: 24px 20px;
	text-align: center;
	box-shadow: var(--tx-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}

.tx-feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tx-shadow-hover);
}

.tx-feature-icon {
	font-size: 34px;
	margin-bottom: 10px;
}

.tx-feature-card h3 {
	font-size: 17px;
	margin-bottom: 6px;
}

.tx-feature-card p {
	font-size: 14px;
	color: var(--tx-text-light);
	margin: 0;
}

/* ===== Section head ===== */
.tx-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 40px 0 20px;
}

.tx-section-title {
	font-size: 26px;
	margin: 0;
	position: relative;
	padding-left: 16px;
}

.tx-section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 5px;
	border-radius: 3px;
	background: var(--tx-primary);
}

.tx-link-more {
	font-weight: 600;
	white-space: nowrap;
}

/* ===== Lưới sản phẩm ===== */
.tx-products-home {
	padding-bottom: 56px;
}

.tx-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.tx-product-card {
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
	overflow: hidden;
	box-shadow: var(--tx-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}

.tx-product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tx-shadow-hover);
}

.tx-product-card-link {
	display: block;
	color: inherit;
}

.tx-product-card-media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tx-accent);
}

.tx-product-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.tx-product-card:hover .tx-product-card-media img {
	transform: scale(1.05);
}

.tx-product-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	background: var(--tx-accent);
}

.tx-product-card-body {
	padding: 16px;
}

.tx-product-card-title {
	font-size: 16px;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tx-product-card-farm,
.tx-product-card-season {
	font-size: 13px;
	color: var(--tx-text-light);
	margin: 0 0 4px;
}

.tx-product-card-cta {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tx-primary);
}

/* ===== Trang chi tiết sản phẩm ===== */
.tx-product-detail {
	padding: 24px 16px 64px;
}

.tx-breadcrumb {
	font-size: 14px;
	color: var(--tx-text-light);
	margin-bottom: 20px;
}

.tx-breadcrumb .sep {
	margin: 0 6px;
}

.tx-breadcrumb .current {
	color: var(--tx-text);
}

/* Hero sản phẩm */
.tx-product-hero {
	display: flex;
	gap: 24px;
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
	padding: 24px;
	box-shadow: var(--tx-shadow);
	margin-bottom: 28px;
	align-items: center;
}

.tx-product-hero-media {
	flex: 0 0 280px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tx-accent);
}

.tx-product-hero-media img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.tx-product-hero-title {
	font-size: 28px;
	margin-bottom: 10px;
	color: var(--tx-primary-dark);
}

.tx-product-hero-farm,
.tx-product-hero-season {
	margin: 0 0 6px;
	font-size: 16px;
}

.tx-label {
	font-weight: 600;
	color: var(--tx-text-light);
}

/* ===== Timeline các giai đoạn ===== */
.tx-timeline {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 24px;
	scrollbar-width: thin;
}

.tx-timeline-step {
	flex: 1 0 180px;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
	text-align: left;
	font: inherit;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	position: relative;
}

.tx-timeline-step::after {
	content: "→";
	position: absolute;
	right: -13px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--tx-primary);
	font-weight: 700;
	z-index: 1;
}

.tx-timeline-step:last-child::after {
	display: none;
}

.tx-timeline-step:hover {
	border-color: var(--tx-primary);
}

.tx-timeline-step.is-active {
	background: var(--tx-accent);
	border-color: var(--tx-primary);
	box-shadow: var(--tx-shadow);
}

.tx-step-index {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--tx-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}

.tx-step-label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--tx-text);
}

/* ===== Tab panel ===== */
.tx-tab-panel {
	display: none;
}

.tx-tab-panel.is-active {
	display: block;
	animation: txFadeIn 0.3s ease;
}

@keyframes txFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tx-panel-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.tx-panel {
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
	padding: 24px;
	box-shadow: var(--tx-shadow);
}

.tx-panel-full {
	margin-bottom: 20px;
}

.tx-panel-title {
	font-size: 20px;
	color: var(--tx-primary-dark);
	padding-bottom: 12px;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--tx-accent);
}

.tx-org-name {
	font-size: 16px;
	margin-bottom: 12px;
}

/* Dòng thông tin */
.tx-info-row {
	display: flex;
	gap: 8px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--tx-border);
	font-size: 15px;
}

.tx-info-row:last-child {
	border-bottom: none;
}

.tx-info-label {
	flex: 0 0 45%;
	color: var(--tx-text-light);
	font-weight: 500;
}

.tx-info-value {
	flex: 1;
	font-weight: 600;
}

/* ===== Bảng ===== */
.tx-table-wrap {
	overflow-x: auto;
}

.tx-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tx-table th,
.tx-table td {
	padding: 12px 14px;
	border: 1px solid var(--tx-border);
	text-align: left;
	vertical-align: top;
}

.tx-table thead th {
	background: var(--tx-accent);
	color: var(--tx-primary-dark);
	font-weight: 700;
	white-space: nowrap;
}

.tx-table tbody tr:nth-child(even) {
	background: #fafcfb;
}

/* ===== Chứng nhận ===== */
.tx-cert-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.tx-cert-card {
	border: 1px solid var(--tx-border);
	border-radius: 10px;
	padding: 18px;
	background: #fafcfb;
	position: relative;
}

.tx-cert-badge {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tx-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	margin-bottom: 10px;
}

.tx-cert-name {
	font-size: 16px;
	margin-bottom: 8px;
}

.tx-cert-card p {
	font-size: 14px;
	margin: 0 0 4px;
	color: var(--tx-text-light);
}

.tx-cert-note {
	font-style: italic;
}

.tx-cert-image {
	margin-bottom: 10px;
	border-radius: 8px;
	overflow: hidden;
}

.tx-cert-image img {
	width: 100%;
	height: 160px;
	object-fit: cover;
}

/* ===== Nhật ký canh tác ===== */
.tx-log-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 18px;
	align-items: flex-end;
	margin-bottom: 20px;
	padding: 14px 16px;
	background: #f5faf7;
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
}

.tx-log-filter {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 13px;
	color: var(--tx-primary-dark);
	font-weight: 600;
}

.tx-log-filter input,
.tx-log-filter select {
	padding: 8px 10px;
	border: 1px solid var(--tx-border);
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	color: var(--tx-text);
	background: var(--tx-white);
	min-width: 150px;
}

.tx-log-reset {
	padding: 8px 14px;
	border: 1px solid var(--tx-border);
	border-radius: 8px;
	background: var(--tx-white);
	color: var(--tx-primary-dark);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.tx-log-reset:hover {
	background: var(--tx-accent);
	border-color: var(--tx-primary);
}

.tx-log-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.tx-log-timeline::before {
	content: "";
	position: absolute;
	left: 110px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--tx-accent);
}

.tx-log-item {
	display: flex;
	gap: 24px;
	padding: 14px 0;
	position: relative;
}

.tx-log-date {
	flex: 0 0 96px;
	text-align: right;
	font-size: 13px;
	font-weight: 700;
	color: var(--tx-primary-dark);
	padding-top: 2px;
}

.tx-log-date-main {
	display: inline-block;
	padding: 4px 10px;
	background: var(--tx-accent);
	border-radius: 20px;
}

.tx-log-body {
	flex: 1;
	background: #fafcfb;
	border: 1px solid var(--tx-border);
	border-radius: 10px;
	padding: 14px 16px;
	position: relative;
}

.tx-log-body::before {
	content: "";
	position: absolute;
	left: -21px;
	top: 18px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--tx-primary);
	border: 3px solid var(--tx-white);
	box-shadow: 0 0 0 2px var(--tx-primary);
}

.tx-log-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 6px;
}

.tx-log-activity {
	font-size: 16px;
	margin: 0;
	color: var(--tx-primary-dark);
}

.tx-log-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}

.tx-log-status--completed {
	background: #e3f6ea;
	color: #1e7e34;
}

.tx-log-status--in_progress {
	background: #fff3d6;
	color: #b57900;
}

.tx-log-status--pending {
	background: #fdeaea;
	color: #c0392b;
}

.tx-log-body p {
	font-size: 14px;
	margin: 0 0 4px;
}

.tx-log-detail {
	color: var(--tx-text);
}

.tx-log-note {
	color: var(--tx-text-light);
	font-style: italic;
}

.tx-log-recorded {
	color: var(--tx-primary-dark);
	font-weight: 600;
}

.tx-log-materials {
	background: var(--tx-accent);
	padding: 6px 10px;
	border-radius: 6px;
	display: inline-block;
}

.tx-log-materials span {
	font-weight: 700;
	color: var(--tx-primary-dark);
}

.tx-log-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.tx-log-image {
	display: block;
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 8px;
	cursor: zoom-in;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tx-log-image:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.tx-log-empty {
	background: var(--tx-white);
	border: 1px dashed var(--tx-border);
	border-radius: var(--tx-radius);
	padding: 24px;
	text-align: center;
	color: var(--tx-text-light);
}

.tx-harvest-image img {
	border-radius: 6px;
	max-width: 80px;
	height: auto;
}

/* ===== Trạng thái rỗng ===== */
.tx-empty {
	background: var(--tx-white);
	border: 1px dashed var(--tx-border);
	border-radius: var(--tx-radius);
	padding: 32px;
	text-align: center;
	color: var(--tx-text-light);
}

/* ===== Accordion frontend ===== */
.tx-front-accordion {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tx-accordion-item {
	border: 1px solid var(--tx-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--tx-white);
}

.tx-accordion-header {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 14px 16px;
	background: #fafcfb;
	border: none;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	color: var(--tx-text);
	text-align: left;
}

.tx-accordion-header:hover {
	background: var(--tx-accent);
}

.tx-accordion-caret {
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid var(--tx-primary);
	transition: transform 0.2s;
}

.tx-accordion-item.is-open .tx-accordion-caret {
	transform: rotate(180deg);
}

.tx-accordion-body {
	display: none;
	padding: 16px;
}

.tx-accordion-item.is-open .tx-accordion-body {
	display: block;
	animation: txFadeIn 0.25s ease;
}

.tx-empty-state {
	text-align: center;
	padding: 24px 16px;
	color: var(--tx-text-light);
}

.tx-empty-state img {
	max-width: 180px;
	margin: 0 auto 12px;
}

.tx-empty-state p {
	margin: 0;
	font-size: 14px;
}

/* ===== Archive ===== */
.tx-archive {
	padding: 24px 16px 64px;
}

.tx-archive-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.tx-archive-title {
	font-size: 26px;
	margin: 0;
}

.tx-archive-title span {
	color: var(--tx-primary);
}

.tx-search-inline {
	max-width: 420px;
	width: 100%;
}

.tx-search-inline .tx-search-input {
	border: 1px solid var(--tx-border);
	padding: 11px 14px;
	font-size: 15px;
}

.tx-search-inline .tx-btn {
	padding: 11px 20px;
	font-size: 15px;
}

/* Bộ lọc danh mục */
.tx-cat-filter {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.tx-cat-chip {
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--tx-border);
	background: var(--tx-white);
	font-size: 14px;
	font-weight: 500;
	color: var(--tx-text);
	transition: all 0.2s;
}

.tx-cat-chip:hover,
.tx-cat-chip.is-active {
	background: var(--tx-primary);
	border-color: var(--tx-primary);
	color: #fff;
}

/* ===== Phân trang ===== */
.tx-pagination {
	margin-top: 32px;
	text-align: center;
}

.tx-pagination .nav-links {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.tx-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--tx-border);
	background: var(--tx-white);
	font-weight: 600;
	color: var(--tx-text);
}

.tx-pagination .page-numbers.current {
	background: var(--tx-primary);
	border-color: var(--tx-primary);
	color: #fff;
}

.tx-pagination a.page-numbers:hover {
	border-color: var(--tx-primary);
	color: var(--tx-primary);
}

/* ===== Bài viết ===== */
.tx-post-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.tx-post-card {
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
	overflow: hidden;
	box-shadow: var(--tx-shadow);
	display: flex;
	flex-direction: column;
}

.tx-post-card-media img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.tx-post-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.tx-post-card-title {
	font-size: 17px;
	margin: 0;
}

.tx-post-card-title a {
	color: var(--tx-text);
}

.tx-post-card-title a:hover {
	color: var(--tx-primary);
}

.tx-post-card-meta {
	font-size: 13px;
	color: var(--tx-text-light);
	margin: 0;
}

.tx-post-card-excerpt {
	font-size: 14px;
	color: var(--tx-text-light);
	flex: 1;
}

/* Layout sidebar */
.tx-layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}

.tx-single-post {
	padding: 24px 16px 64px;
}

.tx-post-single,
.tx-page-article {
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
	padding: 28px;
	box-shadow: var(--tx-shadow);
}

.tx-post-title,
.tx-page-title {
	font-size: 30px;
	margin-bottom: 10px;
}

.tx-post-meta {
	color: var(--tx-text-light);
	font-size: 14px;
}

.tx-post-meta .sep {
	margin: 0 8px;
}

.tx-post-thumbnail,
.tx-page-thumbnail {
	margin: 20px 0;
	border-radius: 10px;
	overflow: hidden;
}

.tx-page {
	padding: 24px 16px 64px;
}

.tx-page-head {
	margin-bottom: 16px;
}

/* Nội dung entry */
.tx-entry-content {
	font-size: 16px;
}

.tx-entry-content img {
	border-radius: 8px;
}

.tx-entry-content blockquote {
	border-left: 4px solid var(--tx-primary);
	background: var(--tx-accent);
	margin: 16px 0;
	padding: 14px 18px;
	border-radius: 0 8px 8px 0;
}

.tx-entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.tx-entry-content table th,
.tx-entry-content table td {
	border: 1px solid var(--tx-border);
	padding: 8px 12px;
}

/* Sidebar + widget */
.tx-sidebar .widget,
.widget {
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: var(--tx-shadow);
}

.widget-title {
	font-size: 16px;
	margin-bottom: 12px;
	color: var(--tx-primary-dark);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding: 6px 0;
	border-bottom: 1px dashed var(--tx-border);
}

.widget ul li:last-child {
	border-bottom: none;
}

/* ===== Footer ===== */
.site-footer {
	background: #10381f;
	color: #cfe3d6;
	margin-top: 40px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 28px;
	padding: 48px 0 32px;
}

.site-footer .widget-title {
	color: #fff;
	font-size: 16px;
}

.site-footer a {
	color: #9fd4b4;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer .widget {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

.site-footer .widget ul li {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-contact li {
	padding: 4px 0;
	font-size: 14px;
}

.footer-cta {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 16px 0;
	text-align: center;
	font-size: 14px;
}

.footer-bottom p {
	margin: 0;
}

/* ===== 404 ===== */
.tx-404 {
	padding: 80px 16px;
	text-align: center;
}

.tx-404-box {
	max-width: 480px;
	margin: 0 auto;
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
	padding: 48px 32px;
	box-shadow: var(--tx-shadow);
}

.tx-404-code {
	font-size: 72px;
	font-weight: 800;
	color: var(--tx-primary);
	margin: 0;
	line-height: 1;
}

/* ===== Comments ===== */
.comments-area {
	margin-top: 28px;
	background: var(--tx-white);
	border: 1px solid var(--tx-border);
	border-radius: var(--tx-radius);
	padding: 24px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin-left: 24px;
	padding: 0;
}

.comment-body {
	padding: 14px 0;
	border-bottom: 1px dashed var(--tx-border);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tx-border);
	border-radius: 8px;
	font: inherit;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.tx-feature-grid,
	.tx-product-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.tx-post-list {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-widgets {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	/* Header mobile */
	.menu-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
		width: 100%;
	}

	.tx-header-inner.nav-open .main-navigation {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	.main-navigation .sub-menu {
		position: static;
		display: block;
		border: none;
		box-shadow: none;
		padding-left: 16px;
	}

	.tx-feature-grid,
	.tx-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tx-panel-grid {
		grid-template-columns: 1fr;
	}

	.tx-product-hero {
		flex-direction: column;
		align-items: stretch;
	}

	.tx-product-hero-media {
		flex: none;
		width: 100%;
	}

	.tx-layout-with-sidebar {
		grid-template-columns: 1fr;
	}

	.tx-post-list {
		grid-template-columns: 1fr;
	}

	/* Timeline dọc trên mobile */
	.tx-timeline {
		flex-direction: column;
	}

	.tx-timeline-step {
		flex: none;
	}

	.tx-timeline-step::after {
		display: none;
	}

	.tx-log-timeline::before {
		left: 8px;
	}

	.tx-log-item {
		flex-direction: column;
		gap: 8px;
		padding-left: 28px;
	}

	.tx-log-date {
		text-align: left;
		flex: none;
	}

	.tx-log-body::before {
		left: -25px;
	}

	.tx-search-form {
		flex-direction: column;
	}

	.tx-archive-head {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (max-width: 480px) {
	.tx-feature-grid,
	.tx-product-grid {
		grid-template-columns: 1fr;
	}

	.footer-widgets {
		grid-template-columns: 1fr;
	}

	.tx-info-row {
		flex-direction: column;
		gap: 2px;
	}

	.tx-info-label {
		flex: none;
	}

	.tx-post-single,
	.tx-page-article,
	.tx-panel {
		padding: 18px;
	}
}

/* ===== Ảnh zoom & lightbox ===== */
.tx-zoom {
	cursor: zoom-in;
}

.tx-table-image img {
	border-radius: 8px;
	max-width: 90px;
	height: auto;
	display: block;
}

.tx-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 24px;
	cursor: zoom-out;
	animation: txFadeIn 0.15s ease;
}

.tx-lightbox img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.tx-lightbox .tx-lightbox-close {
	position: absolute;
	top: 20px;
	right: 28px;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	background: none;
	border: none;
	font-weight: 300;
}

.tx-lightbox-close:hover {
	color: #ddd;
}
