/* ==========================================================
   TKA Nông Nghiệp – main.css
   Màu chủ đạo: xanh lá (đất & lá) · vàng sầu riêng · nâu cà phê
   ========================================================== */

:root {
	--green-950: #0f2a1a;
	--green-900: #163a24;
	--green-800: #1c4a2e;
	--green-700: #1f5a35;
	--green-600: #2b7140;
	--green-500: #3f8f4f;
	--green-100: #e5efe1;
	--green-50:  #f1f6ee;
	--gold-600:  #c08f12;
	--gold-500:  #d9a521;
	--gold-300:  #ecc75e;
	--gold-100:  #fbf1d6;
	--brown-700: #4e3122;
	--brown-500: #6b4430;
	--brown-100: #f2e7df;
	--pepper:    #2f6b3a;
	--cream:     #faf7ef;
	--paper:     #ffffff;
	--ink:       #1b261e;
	--muted:     #5d6a60;
	--line:      #e4e0d3;

	--font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Lora", Georgia, "Times New Roman", serif;

	--radius-sm: 10px;
	--radius:    16px;
	--radius-lg: 24px;
	--shadow-sm: 0 2px 6px rgba(22, 58, 36, .06);
	--shadow:    0 10px 30px -12px rgba(22, 58, 36, .22);
	--shadow-lg: 0 24px 50px -20px rgba(22, 58, 36, .35);
	--container: 1200px;
	--header-h:  78px;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--gold-500); color: var(--green-950); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Nút ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: 600 .97rem/1.2 var(--font-body); cursor: pointer; white-space: nowrap;
	transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn--gold { background: var(--gold-500); color: var(--green-950); box-shadow: 0 8px 20px -8px rgba(217, 165, 33, .7); }
.btn--gold:hover { background: var(--gold-300); color: var(--green-950); }
.btn--green { background: var(--green-700); color: #fff; }
.btn--green:hover { background: var(--green-600); color: #fff; }
.btn--outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--outline:hover { background: var(--green-700); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--green-900); }

.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--green-600); }
.link-more .icon { transition: transform .2s; }
a:hover .link-more .icon, .link-more:hover .icon { transform: translateX(4px); }

.eyebrow {
	display: inline-flex; align-items: center; gap: .5em;
	font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--gold-600); margin-bottom: .8rem;
}
.eyebrow--light { color: var(--gold-300); }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--green-950); color: #cfe0d2; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar a, .topbar span { color: inherit; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: var(--gold-300); }
.topbar .icon { color: var(--gold-500); }

/* ---------- Đầu trang ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(250, 247, 239, .94); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: max(var(--header-h), calc(var(--logo-h, 64px) + 20px)); }

.brand, .brand__link, .brand__text { min-width: 0; }
.brand { flex: 0 1 auto; }
.brand .custom-logo { flex: none; }
.brand__text strong, .brand__text small { overflow: hidden; text-overflow: ellipsis; }
.brand .custom-logo { height: var(--logo-h, 64px); width: auto; max-width: none; object-fit: contain; }
.brand__link { display: inline-flex; align-items: center; gap: 14px; color: var(--green-900); }
.brand__link:hover { color: var(--green-900); }
.brand__mark {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
	background: linear-gradient(140deg, var(--green-600), var(--green-900)); color: var(--gold-300);
	box-shadow: var(--shadow-sm);
}
.brand__mark .icon { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-head); font-size: var(--brand-size, 26px); color: var(--green-800); white-space: nowrap; }
.brand__text small { font-size: max(12px, calc(var(--brand-size, 26px) * .46)); color: var(--muted); letter-spacing: .03em; margin-top: 4px; white-space: nowrap; }
.footer-logo { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #fff; padding: 5px; flex: none; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__link--light, .brand__link--light:hover { color: #fff; }
.brand__link--light small { color: #b9cdbd; }

.primary-nav { display: flex; align-items: center; gap: 18px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block; padding: 10px 14px; border-radius: 999px;
	color: var(--ink); font-weight: 500; font-size: .96rem;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a { color: var(--green-700); background: var(--green-100); }
.primary-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
}
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
	background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { border-radius: 10px; }
.primary-nav .sub-menu a:hover { background: var(--green-50); color: var(--green-700); }
.nav-cta { padding: .7em 1.2em; }

.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
	background: var(--paper); color: var(--green-900); cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Banner trang chủ ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 500px at 85% 20%, rgba(217, 165, 33, .22), transparent 60%),
		radial-gradient(700px 500px at 10% 100%, rgba(63, 143, 79, .45), transparent 60%),
		linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 55%, var(--green-700) 100%);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero--image::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(15, 42, 26, .92) 0%, rgba(15, 42, 26, .7) 45%, rgba(15, 42, 26, .25) 100%);
}
.hero__pattern {
	position: absolute; inset: 0; z-index: -1; opacity: .09; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='.8'%3E%3Cpath d='M5 20c0-9 6-15 15-16-.5 9.5-6.5 15.5-15 16Z'/%3E%3Cpath d='M5 20 13.5 11.5'/%3E%3C/svg%3E");
	background-size: 120px 120px;
}
.hero--image .hero__pattern { display: none; }
.hero__inner { position: relative; padding: clamp(80px, 12vw, 150px) 20px clamp(120px, 14vw, 180px); }
.hero__content { max-width: 680px; }
.hero__content { max-width: 760px; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: .45em; margin: 0 0 .7rem;
	font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	font-size: clamp(16px, 4.6vw, var(--hero-eyebrow, 24px)); line-height: 1.2; color: var(--gold-300);
}
.hero__eyebrow .icon { width: 1em; height: 1em; }
.hero__title { color: #fff; margin-bottom: .45em; text-wrap: balance; font-size: clamp(30px, 8vw, var(--hero-title, 58px)); line-height: 1.15; }
.hero__text { font-size: clamp(15px, 3.8vw, var(--hero-text, 19px)); color: #dbe8dd; max-width: 620px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4rem; }
.hero__crops { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__crops a {
	display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: 999px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: .92rem; font-weight: 500;
}
.hero__crops a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }
.hero__crops .icon { color: var(--gold-300); }
.hero__crops a:hover .icon { color: var(--green-950); }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; color: var(--cream); line-height: 0; }
.hero__wave svg { width: 100%; height: clamp(40px, 6vw, 80px); }

/* ---------- Khối chung ---------- */
.section { padding: clamp(64px, 8vw, 100px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.section--alt { background: var(--green-50); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 5vw, 52px); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; max-width: none; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }
.section-head--light h2 { color: #fff; }

/* Ảnh minh họa khi chưa có ảnh */
.ph {
	display: grid; place-items: center; width: 100%; height: 100%;
	background: linear-gradient(140deg, var(--green-500), var(--green-800));
	color: rgba(255, 255, 255, .9);
}
.ph .icon { width: 38%; height: 38%; max-width: 120px; max-height: 120px; stroke-width: 1.2; }
.ph--sau-rieng { background: radial-gradient(circle at 30% 25%, #f3d77a, var(--gold-500) 45%, #8f7a1b); color: rgba(40, 52, 20, .85); }
.ph--ca-phe    { background: radial-gradient(circle at 30% 25%, #a8735a, var(--brown-500) 50%, var(--brown-700)); color: rgba(255, 238, 220, .9); }
.ph--ho-tieu   { background: radial-gradient(circle at 30% 25%, #6aa86f, var(--pepper) 50%, #173e22); color: rgba(230, 245, 225, .92); }
.ph--about     { background: linear-gradient(160deg, var(--green-500), var(--green-900)); color: var(--gold-300); }

/* ---------- Cây trồng chủ lực ---------- */
.crop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.crop-card {
	--accent: var(--green-600);
	display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg);
	overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); color: var(--ink);
	transition: transform .3s, box-shadow .3s;
}
.crop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.crop-card--sau-rieng { --accent: var(--gold-600); }
.crop-card--ca-phe    { --accent: var(--brown-500); }
.crop-card--ho-tieu   { --accent: var(--pepper); }
.crop-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.crop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.crop-card:hover .crop-card__media img { transform: scale(1.06); }
.crop-card__badge {
	position: absolute; left: 22px; bottom: -26px; width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center; background: var(--paper); color: var(--accent);
	box-shadow: var(--shadow); border: 3px solid var(--paper);
}
.crop-card__badge .icon { width: 28px; height: 28px; }
.crop-card__media { overflow: visible; }
.crop-card__media > img, .crop-card__media > .ph { border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.crop-card__body { padding: 40px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.crop-card__body h3 { font-size: 1.5rem; margin-bottom: .35em; }
.crop-card__body p { color: var(--muted); flex: 1; }
.crop-card .link-more { color: var(--accent); }

/* ---------- Giới thiệu ---------- */
.section--about { background: var(--paper); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__media { position: relative; aspect-ratio: 5 / 4.4; }
.about__media > img, .about__media > .ph {
	width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg) 120px var(--radius-lg) var(--radius-lg);
	box-shadow: var(--shadow-lg);
}
.about__media::before {
	content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
	border: 2px dashed var(--gold-500); border-radius: var(--radius-lg) 120px var(--radius-lg) var(--radius-lg);
}
.about__media { isolation: isolate; }
.about__stamp {
	position: absolute; left: -18px; bottom: 28px; display: flex; align-items: center; gap: 12px;
	background: var(--gold-500); color: var(--green-950); padding: 14px 20px; border-radius: var(--radius);
	font-family: var(--font-head); font-weight: 700; line-height: 1.25; box-shadow: var(--shadow);
}
.about__stamp .icon { width: 34px; height: 34px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checklist .icon {
	width: 28px; height: 28px; padding: 5px; border-radius: 50%;
	background: var(--green-100); color: var(--green-700); stroke-width: 2.4;
}

/* ---------- Vì sao chọn ---------- */
.section--features {
	position: relative; color: #dbe8dd;
	background:
		radial-gradient(600px 300px at 100% 0, rgba(217, 165, 33, .18), transparent 60%),
		linear-gradient(160deg, var(--green-900), var(--green-950));
}
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
	padding: 30px 26px; border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
	transition: background .3s, transform .3s;
}
.feature:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.feature__icon {
	display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; margin-bottom: 18px;
	background: var(--gold-500); color: var(--green-950);
}
.feature__icon .icon { width: 30px; height: 30px; }
.feature h3 { color: #fff; }
.feature p { margin: 0; font-size: .96rem; }

/* ---------- Thẻ sản phẩm / bài viết ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
	display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
	overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--green-100); }
.card--product .card__media { aspect-ratio: 1 / 1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.card__meta time { display: inline-flex; align-items: center; gap: .4em; }
.tag { display: inline-block; padding: .2em .75em; border-radius: 999px; background: var(--gold-100); color: var(--gold-600); font-weight: 600; font-size: .78rem; }
.card__title { font-size: 1.15rem; margin-bottom: .45em; }
.card__title a { color: var(--green-900); }
.card__title a:hover { color: var(--green-600); }
.card__excerpt { color: var(--muted); font-size: .94rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font-weight: 700; color: var(--brown-500); }
.card__crop {
	position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: .4em;
	padding: .35em .8em; border-radius: 999px; font-size: .78rem; font-weight: 600;
	background: rgba(255, 255, 255, .92); color: var(--green-700); box-shadow: var(--shadow-sm);
}
.card__crop--sau-rieng { color: var(--gold-600); }
.card__crop--ca-phe    { color: var(--brown-500); }
.card__crop--ho-tieu   { color: var(--pepper); }
.card__crop--static { position: static; background: var(--green-50); margin-bottom: 12px; box-shadow: none; }

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card__use { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--green-800); flex: 1; }
.card__use .icon { color: var(--green-500); margin-top: .2em; stroke-width: 2.4; }
.ph--product { background: radial-gradient(circle at 30% 25%, #f7f1df, var(--green-100) 55%, #cfe0c9); color: var(--green-700); }
.card--add {
	align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 30px 22px; min-height: 260px;
	border: 2px dashed var(--gold-500); background: var(--gold-100); color: var(--brown-700); box-shadow: none;
}
.card--add:hover { color: var(--brown-700); background: #fff6dc; }
.card--add small { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.card--add__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--gold-500); color: var(--green-950); }
.card--add__icon .icon { width: 28px; height: 28px; stroke-width: 2.4; }
.chips--center { justify-content: center; }
.section-foot { text-align: center; margin-top: 40px; }
.section-head__text { color: var(--muted); margin: .4em 0 0; max-width: 640px; }

.section--products { background: var(--cream); }
.section--news { background: var(--paper); }

/* ---------- Quy trình canh tác sầu riêng ---------- */
.section--process { background: var(--paper); }
.process { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.process--single { grid-template-columns: 1fr; max-width: 820px; }
.step {
	display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 9px;
	background: var(--green-700); color: var(--gold-300); font: 700 .88rem/1 var(--font-body); letter-spacing: .03em; flex: none;
}
.process-feature { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.process-feature__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-100); }
.process-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.process-feature:hover .process-feature__media img { transform: scale(1.05); }
.process-feature__body { padding: 24px 26px 28px; }
.process-feature__body h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: .2em 0 .45em; }
.process-feature__body h3 a { color: var(--green-900); }
.process-feature__body h3 a:hover { color: var(--green-600); }
.process-feature__body p { color: var(--muted); }
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.process-item a {
	display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius);
	background: var(--cream); border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.process-item a:hover { border-color: var(--green-500); transform: translateX(4px); box-shadow: var(--shadow-sm); color: var(--ink); }
.process-item__thumb { width: 74px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: var(--green-100); }
.process-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.process-item__thumb .ph .icon { width: 50%; height: 50%; }
.process-item__text { display: flex; flex-direction: column; min-width: 0; }
.process-item__text strong {
	font-weight: 600; line-height: 1.4; color: var(--green-900);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.process-item__text small { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.admin-hint { padding: 18px 22px; border-radius: var(--radius); border: 2px dashed var(--gold-500); background: var(--gold-100); }

/* ---------- Dải kêu gọi ---------- */
.cta-band { padding: 0 0 clamp(64px, 8vw, 100px); background: var(--paper); }
.cta-band__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
	padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden;
	background:
		radial-gradient(500px 260px at 100% 100%, rgba(217, 165, 33, .35), transparent 60%),
		linear-gradient(120deg, var(--green-700), var(--green-900));
	box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: #d6e6d9; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Đầu trang con ---------- */
.page-hero {
	position: relative; overflow: hidden; color: #fff; padding: clamp(46px, 7vw, 80px) 0;
	background:
		radial-gradient(600px 300px at 90% 0, rgba(217, 165, 33, .22), transparent 60%),
		linear-gradient(135deg, var(--green-950), var(--green-700));
}
.page-hero--slim { padding: 22px 0; }
.page-hero__title { color: #fff; margin: .3em 0 .2em; font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 900px; }
.page-hero__sub { color: #d0e2d4; max-width: 720px; font-size: 1.05rem; }
.page-hero__sub p:last-child { margin: 0; }
.page-hero__deco { position: absolute; right: -30px; bottom: -50px; color: rgba(255, 255, 255, .07); }
.page-hero__deco .icon { width: 260px; height: 260px; stroke-width: .9; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: #b9cdbd; }
.breadcrumb a { color: #e6efe7; }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb .sep { opacity: .6; }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; color: #d0e2d4; font-size: .92rem; }
.post-meta span, .post-meta a { display: inline-flex; align-items: center; gap: .45em; color: inherit; }
.post-meta .icon { color: var(--gold-300); }

/* Lọc */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
	display: inline-flex; align-items: center; gap: .45em; padding: .55em 1.15em; border-radius: 999px;
	background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .93rem;
}
.chip:hover { border-color: var(--green-600); color: var(--green-700); }
.chip.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* Phân trang */
.pagination { margin-top: 44px; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px;
	background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 600;
}
.page-numbers.current, .page-numbers:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.page-numbers.dots { background: none; border: 0; }

/* ---------- Nội dung bài viết ---------- */
.post-cover { margin: 0 0 34px; }
.post-cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.entry-content { font-size: 1.06rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.7rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.5em; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--gold-500);
	background: var(--gold-100); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--green-50); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content figcaption { font-size: .88rem; color: var(--muted); text-align: center; }
.post-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags a { padding: .3em .85em; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: .86rem; }

/* ---------- Chi tiết sản phẩm ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.product__media { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--green-100); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.product__price { font-size: 1.6rem; font-weight: 700; color: var(--brown-500); margin-bottom: 1rem; }
.product__excerpt { color: var(--muted); font-size: 1.05rem; }
.product__specs { margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.product__specs div { display: grid; grid-template-columns: 130px 1fr; }
.product__specs div + div { border-top: 1px solid var(--line); }
.product__specs dt { padding: 12px 16px; background: var(--green-50); font-weight: 600; color: var(--green-800); }
.product__specs dd { margin: 0; padding: 12px 16px; }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.product__content { margin-top: clamp(40px, 6vw, 70px); padding-top: 34px; border-top: 1px solid var(--line); }

/* ---------- Liên hệ ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 50px); align-items: start; }
.contact__cards { display: grid; gap: 16px; }
.contact-card {
	display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .2em; font-family: var(--font-body); }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card__icon {
	display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
	background: var(--green-100); color: var(--green-700);
}
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact__form { padding: clamp(24px, 4vw, 40px); background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed { margin-top: 44px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-embed iframe { width: 100%; height: 420px; border: 0; }

/* Biểu mẫu (bình luận, Contact Form 7…) */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], textarea, select {
	width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px;
	font: inherit; background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(63, 143, 79, .15); }
input[type="submit"], .comment-form .submit, .wpcf7-submit {
	display: inline-flex; padding: .9em 1.6em; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--green-700); color: #fff; font: 600 1rem var(--font-body);
}
input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--green-600); }
.wpcf7 p { margin-bottom: 1rem; }

.search-form { display: flex; max-width: 460px; margin: 0 auto 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.search-form input { border: 0; background: transparent; padding: 10px 16px; }
.search-form input:focus { box-shadow: none; }
.search-form button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--green-700); color: #fff; cursor: pointer; display: grid; place-items: center; }

.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.empty > .icon { width: 64px; height: 64px; color: var(--green-500); margin: 0 auto 16px; display: block; }
.empty--404 h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* Bình luận */
.comments { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form p { margin-bottom: 14px; }

/* ---------- Chân trang ---------- */
.site-footer { position: relative; background: var(--green-950); color: #b9cdbd; padding-top: 70px; margin-top: 0; }
.footer-wave { position: absolute; left: 0; right: 0; top: -59px; color: var(--green-950); line-height: 0; pointer-events: none; }
.footer-wave svg { width: 100%; height: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer-col h3 { color: #fff; font-size: 1.12rem; margin-bottom: 1.1rem; position: relative; padding-bottom: 12px; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--gold-500); }
.footer-col--about p { margin: 18px 0; font-size: .95rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #b9cdbd; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-300); }
.footer-links a::before { content: "›"; margin-right: 8px; color: var(--gold-500); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.footer-contact .icon { color: var(--gold-500); margin-top: .25em; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--gold-500); color: var(--green-950); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .86rem; text-align: center; color: #8fa794; }

/* Nút liên hệ nổi */
.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-contact__btn {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff;
	box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35); transition: transform .2s;
}
.float-contact__btn:hover { transform: scale(1.08); color: #fff; }
.float-contact__btn .icon { width: 26px; height: 26px; }
.float-contact__btn--zalo { background: #0068ff; font-weight: 700; font-size: .85rem; }
.float-contact__btn--phone { background: var(--green-600); animation: tka-ring 2.2s infinite; }
@keyframes tka-ring {
	0%   { box-shadow: 0 0 0 0 rgba(43, 113, 64, .55); }
	70%  { box-shadow: 0 0 0 16px rgba(43, 113, 64, 0); }
	100% { box-shadow: 0 0 0 0 rgba(43, 113, 64, 0); }
}

/* Khối Gutenberg */
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-block-button__link { border-radius: 999px; background: var(--green-700); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.card-grid--4 { grid-template-columns: repeat(3, 1fr); }
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 980px) {
	.nav-toggle { display: grid; }
	.site-header { backdrop-filter: none; background: var(--cream); }
	body.nav-open .site-header { z-index: 200; }
	.primary-nav {
		position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 120;
		flex-direction: column; align-items: stretch; gap: 20px; padding: 90px 22px 30px;
		background: var(--paper); box-shadow: var(--shadow-lg); overflow-y: auto;
		transform: translateX(100%); transition: transform .3s ease;
	}
	.primary-nav.is-open { transform: none; }
	.nav-toggle { position: relative; z-index: 130; }
	.nav-toggle[aria-expanded="true"] { position: fixed; top: 18px; right: 18px; }
	.admin-bar .nav-toggle[aria-expanded="true"] { top: 64px; }
	.admin-bar .primary-nav { padding-top: 136px; }
	body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 42, 26, .45); z-index: 110; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.primary-nav .menu a { padding: 12px 14px; border-radius: 12px; }
	.primary-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		padding: 0 0 0 14px; min-width: 0; display: none; background: transparent;
	}
	.primary-nav .is-sub-open > .sub-menu { display: block; }
	.primary-nav .menu-item-has-children > a { display: flex; justify-content: space-between; align-items: center; }
	.nav-cta { justify-content: center; }
	.crop-grid, .card-grid, .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.about, .product, .contact, .process { grid-template-columns: 1fr; }
	.brand .custom-logo { height: min(var(--logo-h, 64px), 56px); }
	.brand__text strong { font-size: min(var(--brand-size, 26px), 22px); }
	.about__media { max-width: 560px; }
	.topbar__hours { display: none !important; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	:root { --header-h: 68px; }
	.topbar__info a:nth-child(2) { display: none; }
	.brand__link { gap: 10px; }
	.brand .custom-logo { height: min(var(--logo-h, 64px), 46px); }
	.brand__text strong { font-size: min(var(--brand-size, 26px), 19px); }
	.brand__text small { font-size: 11px; white-space: normal; line-height: 1.3; }
	.nav-toggle { flex: none; }
	.brand__mark { width: 40px; height: 40px; }
	.crop-grid, .card-grid, .card-grid--4, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
	.card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.card--add { min-height: 0; padding: 20px 12px; }
	.card--add small { display: none; }
	.card__use { font-size: .85rem; }
	.process-feature__body { padding: 18px; }
	.process-item__thumb { width: 60px; height: 54px; }
	.card--product .card__body { padding: 14px; }
	.card--product .card__title { font-size: 1rem; }
	.card--product .card__excerpt { display: none; }
	.card__foot { flex-direction: column; align-items: flex-start; }
	.hero__actions .btn { flex: 1 1 100%; }
	.about__stamp { left: 10px; }
	.about__media::before { inset: 14px -10px -14px 14px; }
	.product__specs div { grid-template-columns: 110px 1fr; }
	.map-embed iframe { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
