/**
 * NNF Commerce — Subpages Section (Breadcrumbs, Page Hero, Careers & Contact)
 * @package NNF_Commerce
 */

/* ==========================================================================
   BREADCRUMBS & COMPACT HEADER PADDING (Loại bỏ khoảng trống thừa trên/dưới)
   ========================================================================== */

/* Breadcrumbs chung, shop archive và single product */
.ct-breadcrumbs,
.woocommerce-breadcrumb,
.nnf-shop-breadcrumbs,
.entry-summary .ct-breadcrumbs,
.entry-header .ct-breadcrumbs,
.product-entry-wrapper .ct-breadcrumbs {
	margin-top: 4px;
	margin-bottom: 8px;
	padding-top: 0;
	padding-bottom: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #64748b;
}

.ct-breadcrumbs a,
.woocommerce-breadcrumb a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ct-breadcrumbs a:hover,
.woocommerce-breadcrumb a:hover {
	color: var(--wd-primary, #8CBC67);
}

/* Khử khoảng trống thừa cực lớn trên/dưới hero section và entry-header */
.single-product .hero-section,
.single-product .entry-header,
.archive .hero-section,
.archive .entry-header {
	margin-top: 0;
	margin-bottom: 6px;
	padding-top: 6px;
	padding-bottom: 4px;
	min-height: auto;
}

.single-product .site-main {
	padding-top: 6px;
}

.single-product .product-entry-wrapper {
	padding-top: 4px;
	gap: 36px;
}

.nnf-shop-head-wrap {
	margin-bottom: 12px;
}

.nnf-shop-main-page {
	padding: 10px 0 40px 0;
}


/* ==========================================================================
   PAGE HERO & BREADCRUMBS (Shared across standard subpages)
   ========================================================================== */
.nnf-page-hero {
	background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
	border-bottom: 1px solid #e2e8f0;
	padding: 30px 0 26px;
	margin-bottom: 30px;
}

.nnf-page-hero .nnf-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 12px;
}

.nnf-page-hero .nnf-breadcrumbs a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nnf-page-hero .nnf-breadcrumbs a:hover {
	color: #15803d;
}

.nnf-page-hero .nnf-bc-current {
	color: #0f172a;
	font-weight: 600;
}

.nnf-page-title {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px 0;
	line-height: 1.3;
	letter-spacing: -0.3px;
}

.nnf-page-subtitle {
	font-size: 14px;
	color: #475569;
	margin: 0;
	line-height: 1.6;
	max-width: 760px;
}


/* ==========================================================================
   CAREERS PAGE (page-tuyen-dung.php)
   ========================================================================== */
.nnf-careers-benefits-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-bottom: 40px;
}

.nnf-benefit-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nnf-benefit-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
	border-color: #cbd5e1;
}

.nnf-benefit-icon {
	font-size: 28px;
	margin-bottom: 12px;
}

.nnf-benefit-card h3 {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.nnf-benefit-card p {
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
}

.nnf-careers-jobs-section {
	margin-bottom: 40px;
}

.nnf-section-header {
	margin-bottom: 22px;
}

.nnf-section-title {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.nnf-section-desc {
	font-size: 13.5px;
	color: #64748b;
	margin: 0;
}

.nnf-jobs-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.nnf-job-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	transition: all 0.2s ease;
}

.nnf-job-card:hover {
	border-color: var(--wd-primary, #8CBC67);
	box-shadow: 0 4px 14px rgba(140, 188, 103, 0.15);
}

.nnf-job-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.nnf-job-tag {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #dcfce7;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 6px;
}

.nnf-job-date {
	font-size: 12px;
	color: #94a3b8;
}

.nnf-job-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px 0;
}

.nnf-job-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nnf-job-title a:hover {
	color: #15803d;
}

.nnf-job-excerpt {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

a.nnf-btn-job-detail,
.nnf-btn-job-detail {
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background-color 0.2s ease;
}

a.nnf-btn-job-detail:hover,
.nnf-btn-job-detail:hover {
	background: var(--wd-primary-hover, #80AB5E);
	color: #ffffff;
	text-decoration: none;
}

.nnf-careers-apply-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 28px 24px;
	margin-bottom: 40px;
}

.nnf-apply-inner h2 {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.nnf-apply-inner p {
	font-size: 13.5px;
	color: #475569;
	margin: 0 0 16px 0;
}

.nnf-apply-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.nnf-contact-item {
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.nnf-ci-label {
	color: #64748b;
	font-weight: 600;
}

.nnf-ci-val {
	color: #0f172a;
	font-weight: 700;
}


/* ==========================================================================
   CONTACT PAGE (page-lien-he.php)
   ========================================================================== */
.nnf-branches-section {
	margin-bottom: 40px;
}

.nnf-branches-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.nnf-contact-branch-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	transition: all 0.25s ease;
}

.nnf-contact-branch-card:hover {
	border-color: var(--wd-primary, #8CBC67);
	box-shadow: 0 6px 18px rgba(140, 188, 103, 0.16);
	transform: translateY(-2px);
}

.nnf-branch-card-header {
	background: #f8fafc;
	padding: 18px 20px;
	border-bottom: 1px solid #f1f5f9;
}

.nnf-branch-city-pill {
	display: inline-block;
	background: var(--wd-primary, #8CBC67);
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.nnf-branch-card-title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.nnf-branch-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nnf-branch-info-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

.nnf-branch-info-row p {
	margin: 0;
}

.nnf-branch-info-row a {
	color: #15803d;
	font-weight: 700;
	text-decoration: none;
}

.nnf-branch-info-row a:hover {
	text-decoration: underline;
}

.nnf-bir-icon {
	font-size: 16px;
	line-height: 1.3;
	flex-shrink: 0;
}

/* Recruitment Contact Card on Contact Page */
.nnf-contact-recruitment-box {
	background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
	border: 2px dashed #8BCB5A;
	border-radius: 16px;
	padding: 24px 28px;
	margin-bottom: 40px;
	box-shadow: 0 4px 14px rgba(139, 203, 90, 0.12);
}

.nnf-recruitment-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.nnf-recruitment-left {
	flex: 1 1 320px;
}

.nnf-recruitment-badge {
	display: inline-block;
	background: #FF6B4A;
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 20px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.nnf-recruitment-title {
	font-size: 18px;
	font-weight: 700;
	color: #1E2B1F;
	margin: 0 0 6px 0;
}

.nnf-recruitment-desc {
	font-size: 13.5px;
	color: #4b5563;
	margin: 0;
	line-height: 1.5;
}

.nnf-recruitment-contacts {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	flex: 0 0 auto;
}

.nnf-recruitment-contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	padding: 12px 18px;
	border-radius: 12px;
	border: 1px solid #dcfce7;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.nnf-rci-icon {
	font-size: 22px;
	line-height: 1;
}

.nnf-rci-label {
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 2px;
}

.nnf-rci-val {
	font-size: 14.5px;
	font-weight: 700;
	color: #166534;
	text-decoration: none;
}

.nnf-rci-val:hover {
	color: #FF6B4A;
}

.nnf-rci-val span {
	font-size: 12px;
	font-weight: normal;
	color: #64748b;
}

@media (max-width: 768px) {
	.nnf-recruitment-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.nnf-recruitment-contacts {
		width: 100%;
		flex-direction: column;
		gap: 10px;
	}
	.nnf-recruitment-contact-item {
		width: 100%;
	}
}

/* Contact Form */
.nnf-contact-form-section {
	margin-bottom: 50px;
}

.nnf-contact-form-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 32px 36px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
	max-width: 860px;
	margin: 0 auto;
}

.nnf-cform-header {
	margin-bottom: 24px;
	text-align: center;
}

.nnf-cform-header h2 {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px 0;
}

.nnf-cform-header p {
	font-size: 13.5px;
	color: #64748b;
	margin: 0;
}

.nnf-contact-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nnf-form-row.nnf-form-2col {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.nnf-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nnf-form-group label {
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
}

.nnf-form-group input,
.nnf-form-group select,
.nnf-form-group textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: 13.5px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
	color: #0f172a;
	outline: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.nnf-form-group input:focus,
.nnf-form-group select:focus,
.nnf-form-group textarea:focus {
	border-color: var(--wd-primary, #8CBC67);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(140, 188, 103, 0.2);
}

.nnf-form-submit {
	margin-top: 8px;
	display: flex;
	justify-content: center;
}

.nnf-btn-submit {
	background: linear-gradient(135deg, #8cbc67 0%, #6da246 100%);
	color: #ffffff;
	border: none;
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(109, 162, 70, 0.3);
}

.nnf-btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(109, 162, 70, 0.4);
}

/* Responsive Subpages (Tablet & Mobile) */
@media (max-width: 992px) {
	.nnf-careers-benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.nnf-branches-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.nnf-page-title {
		font-size: 21px;
	}
	.nnf-job-card {
		flex-direction: column;
		align-items: flex-start;
		padding: 16px;
	}
	.nnf-job-action {
		width: 100%;
	}
	.nnf-btn-job-detail {
		width: 100%;
		justify-content: center;
	}
	.nnf-form-row.nnf-form-2col {
		grid-template-columns: 1fr;
	}
	.nnf-contact-form-wrapper {
		padding: 20px 16px;
	}
}

@media (max-width: 480px) {
	.nnf-careers-benefits-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   NNF COMMERCE - CUSTOM 404 ERROR PAGE (WOODMART VEGETABLES IDENTITY)
   ========================================================================== */

.nnf-404-page-wrapper {
	width: 100%;
	background: #ffffff;
	padding-bottom: 60px;
}

/* 1. Breadcrumbs Bar */
.nnf-404-breadcrumbs-bar {
	background: #fbfdf9;
	border-bottom: 1px solid #eef4eb;
	padding: 12px 0;
	margin-bottom: 0;
}

.nnf-404-breadcrumbs-bar .nnf-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #64748b;
	margin: 0;
	padding: 0;
}

.nnf-404-breadcrumbs-bar .nnf-breadcrumbs a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.nnf-404-breadcrumbs-bar .nnf-breadcrumbs a:hover {
	color: #39841F;
}

.nnf-404-breadcrumbs-bar .wd-delimiter {
	color: #cbd5e1;
}

.nnf-404-breadcrumbs-bar .wd-last {
	color: #1e293b;
	font-weight: 600;
}

/* ==========================================================================
   PAGE 404 — WOODMART FRESH FRUITS AESTHETICS (NNF COMMERCE V2)
   Tokens: Primary #39841F, CTA #4F9E28, Fresh #67B53A, Mint #F4FBEF, Body #F8FBF5, Text #1E2B1F
   ========================================================================== */

.nnf-404-page-wrapper {
	background-color: #F8FBF5;
	color: #1E2B1F;
	width: 100%;
	overflow-x: hidden;
}

/* 02. Hero 404 Section (Tỉ lệ chuẩn 1024/434 hiển thị trọn vẹn 100% banner không bị cắt trên dưới) */
.nnf-404-hero-section {
	width: 100%;
	aspect-ratio: 1024 / 434;
	min-height: 480px;
	box-sizing: border-box;
	position: relative;
	background-color: #d8edd0;
	background-image: var(--nnf-404-banner-bg);
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	border-bottom: 1px solid #dcebd4;
	padding: 30px 0;
	display: flex;
	align-items: center;
	overflow: hidden;
}

.nnf-404-hero-container {
	display: grid;
	grid-template-columns: 52fr 48fr;
	gap: 36px;
	align-items: center;
	width: 100%;
	position: relative;
	z-index: 2;
}

/* Left Column: Pure HTML/CSS Message & Real Functional CTAs */
.nnf-404-content-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	max-width: 560px;
}

.nnf-404-card-backdrop {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

/* Prominent 3D 404 Display Typography */
.nnf-404-number-3d {
	font-family: var(--wd-title-font, 'Plus Jakarta Sans', sans-serif);
	font-size: clamp(64px, 8.5vw, 106px);
	font-weight: 900;
	line-height: 0.95;
	letter-spacing: -2px;
	margin: 0 0 14px 0;
	background: linear-gradient(135deg, #39841F 0%, #67B53A 55%, #4F9E28 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 2px 0 #286016)
	        drop-shadow(0 4px 0 #1e4b10)
	        drop-shadow(0 10px 20px rgba(57, 132, 31, 0.28));
}

.nnf-404-headline {
	font-size: clamp(22px, 2.5vw, 32px);
	font-weight: 800;
	line-height: 1.25;
	color: #1E2B1F;
	margin: 0 0 12px 0;
	letter-spacing: -0.3px;
}

.nnf-404-desc {
	font-size: 15px;
	line-height: 1.6;
	color: #3f5240;
	margin: 0 0 24px 0;
}

/* Real Interactive Action Buttons */
.nnf-404-cta-group {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	width: 100%;
}

.nnf-404-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 16px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	line-height: 1;
}

.nnf-404-btn svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.nnf-404-btn:hover svg {
	transform: scale(1.1);
}

.nnf-404-btn-primary {
	background: #4F9E28;
	color: #ffffff;
	border: 1.5px solid #4F9E28;
	box-shadow: 0 4px 16px rgba(79, 158, 40, 0.3);
}

.nnf-404-btn-primary:hover {
	background: #39841F;
	border-color: #39841F;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(57, 132, 31, 0.4);
}

.nnf-404-btn-secondary {
	background: #ffffff;
	color: #39841F;
	border: 1.5px solid #67B53A;
	box-shadow: 0 2px 10px rgba(103, 181, 58, 0.12);
}

.nnf-404-btn-secondary:hover {
	background: #F4FBEF;
	color: #276113;
	border-color: #39841F;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(103, 181, 58, 0.22);
}

/* Nút Liên hệ hỗ trợ: Không có nền (Transparent) & xuống dòng mới */
.nnf-404-btn-outline {
	flex-basis: 100%;
	justify-content: flex-start;
	background: transparent;
	color: #1E2B1F;
	border: none;
	padding: 8px 4px;
	margin-top: 6px;
	font-weight: 700;
}

.nnf-404-btn-outline:hover {
	background: transparent;
	color: #39841F;
	transform: translateX(4px);
}

/* Right Spacer: Empty so right artwork shines through unobstructed */
.nnf-404-spacer-col {
	min-height: 420px;
	pointer-events: none;
}

/* Mobile Banner Element - Chỉ hiển thị 1 nửa bên phải banner trên mobile */
.nnf-404-mobile-banner-wrap {
	display: none;
	width: 100%;
	box-sizing: border-box;
}

.nnf-404-mobile-banner-img {
	width: 100%;
	aspect-ratio: 520 / 434;
	object-fit: cover;
	object-position: right center;
	border-radius: 16px;
	display: block;
	box-shadow: 0 8px 24px rgba(57, 132, 31, 0.15);
}

/* 03. Thanh Tìm Kiếm Sản Phẩm Bên Dưới Hero */
.nnf-404-search-section {
	padding: 44px 0;
	background: #F8FBF5;
}

.nnf-404-search-card {
	background: #F4FBEF;
	border: 1.5px solid #d4ebd0;
	border-radius: 18px;
	padding: 36px 44px;
	box-shadow: 0 8px 30px rgba(57, 132, 31, 0.05);
	max-width: 880px;
	margin: 0 auto;
}

.nnf-404-search-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 20px;
	text-align: center;
}

.nnf-404-search-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	color: #39841F;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(57, 132, 31, 0.08);
}

.nnf-404-search-title {
	font-size: 20px;
	font-weight: 800;
	color: #1E2B1F;
	margin: 0;
	line-height: 1.25;
}

.nnf-404-search-sub {
	display: none;
}

.nnf-404-search-form {
	margin-bottom: 20px;
}

.nnf-404-search-input-group {
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 2px solid #d0e7cb;
	border-radius: 16px;
	padding: 4px 6px 4px 20px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nnf-404-search-input-group:focus-within {
	border-color: #4F9E28;
	box-shadow: 0 0 0 4px rgba(79, 158, 40, 0.15);
	background: #ffffff;
}

.nnf-404-search-card .nnf-404-search-input-group input.nnf-404-search-input,
.nnf-404-search-card .nnf-404-search-input-group input[type="search"] {
	flex: 1;
	border: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	padding: 12px 10px 12px 0;
	font-size: 15px;
	color: #1E2B1F;
	-webkit-appearance: none;
	appearance: none;
}

.nnf-404-search-card .nnf-404-search-input-group input.nnf-404-search-input:focus,
.nnf-404-search-card .nnf-404-search-input-group input[type="search"]:focus {
	border: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
}

.nnf-404-search-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #4F9E28;
	color: #ffffff;
	border: none;
	border-radius: 14px;
	padding: 12px 26px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.nnf-404-search-submit-btn:hover {
	background: #39841F;
	transform: scale(1.02);
}

.nnf-404-quick-keywords {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding-top: 14px;
	border-top: 1px dashed #cfe3ca;
}

.nnf-404-kw-label {
	font-size: 13px;
	font-weight: 700;
	color: #4b5e4c;
}

.nnf-404-kw-tags {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.nnf-404-kw-tag {
	display: inline-block;
	background: #ffffff;
	color: #1E2B1F;
	font-size: 12.5px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 14px;
	border: 1px solid #d4ebd0;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nnf-404-kw-tag:hover {
	background: #e4f5dc;
	color: #39841F;
	border-color: #67B53A;
	transform: translateY(-1px);
}

/* 04. Khám Phá Danh Mục Phổ Biến (Reusing Quick Categories component) */
.nnf-404-categories-section {
	padding: 24px 0 60px 0;
	background: #F8FBF5;
}

.nnf-404-categories-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e3efe0;
}

.nnf-404-categories-title {
	font-size: 20px;
	font-weight: 800;
	color: #1E2B1F;
	margin: 0;
}

.nnf-404-categories-more {
	font-size: 13.5px;
	font-weight: 700;
	color: #39841F;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.nnf-404-categories-more:hover {
	color: #4F9E28;
	transform: translateX(3px);
}

.nnf-404-categories-section .nnf-quick-cats-section {
	padding: 0;
	width: 100%;
	margin-top: 10px;
	margin-bottom: 16px;
	position: relative;
}

.nnf-404-categories-section .nnf-quick-cats-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 2px 10px 2px;
}

.nnf-404-categories-section .nnf-quick-cats-scroll::-webkit-scrollbar {
	display: none;
}

.nnf-404-categories-section .nnf-quick-cats-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 16px;
	align-items: flex-start;
	width: 100%;
	justify-items: center;
}

.nnf-404-categories-section .nnf-quick-cat-col {
	display: flex;
	justify-content: center;
	min-width: 0;
	width: 100%;
}

.nnf-404-categories-section a.nnf-quick-cat-item,
.nnf-404-categories-section .nnf-quick-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: #1E2B1F;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	width: 100%;
	max-width: 130px;
	text-align: center;
	outline: none;
}

.nnf-404-categories-section .nnf-quick-cat-item:hover,
.nnf-404-categories-section .nnf-quick-cat-item:focus-visible {
	transform: translateY(-3px);
}

.nnf-404-categories-section .nnf-quick-cat-circle {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: #F8FBF5;
	border: 4px solid #8BCB5A;
	box-shadow: 0 4px 14px rgba(139, 203, 90, 0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	transition: all 0.25s ease;
	margin-bottom: 10px;
	box-sizing: border-box;
}

.nnf-404-categories-section .nnf-quick-cat-item:hover .nnf-quick-cat-circle {
	border-color: #6da246;
	box-shadow: 0 8px 22px rgba(109, 162, 70, 0.28);
	background: #F4F9F0;
}

.nnf-404-categories-section .nnf-quick-cat-item.is-promotional .nnf-quick-cat-circle {
	border-color: #FF6B4A;
	background: #FFF5F2;
	box-shadow: 0 4px 14px rgba(255, 107, 74, 0.2);
}

.nnf-404-categories-section .nnf-quick-cat-item.is-promotional:hover .nnf-quick-cat-circle {
	border-color: #FF5232;
	box-shadow: 0 8px 22px rgba(255, 107, 74, 0.32);
	background: #FFEEE8;
}

.nnf-404-categories-section .nnf-quick-cat-promo-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.nnf-404-categories-section .nnf-promo-flame-svg {
	filter: drop-shadow(0 2px 6px rgba(255, 107, 74, 0.25));
	transition: transform 0.25s ease;
}

.nnf-404-categories-section .nnf-quick-cat-item:hover .nnf-promo-flame-svg {
	transform: scale(1.08);
}

.nnf-404-categories-section .nnf-quick-cat-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nnf-404-categories-section .nnf-quick-cat-item.is-promotional .nnf-quick-cat-img {
	width: 90%;
	height: 90%;
	object-fit: contain;
	border-radius: 0;
	filter: drop-shadow(0 2px 8px rgba(255, 107, 74, 0.2));
}

.nnf-404-categories-section .nnf-quick-cat-item:hover .nnf-quick-cat-img {
	transform: scale(1.08);
}

.nnf-404-categories-section .nnf-quick-cat-fallback-icon {
	font-size: 42px;
	line-height: 1;
}

.nnf-404-categories-section .nnf-quick-cat-title {
	font-size: 14.5px;
	font-weight: 700;
	color: #1E2B1F;
	line-height: 1.35;
	transition: color 0.2s ease;
	word-break: break-word;
	text-align: center;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nnf-404-categories-section .nnf-quick-cat-item:hover .nnf-quick-cat-title {
	color: #2D7A32;
}

.nnf-404-categories-section .nnf-quick-cat-item.is-promotional .nnf-quick-cat-title {
	color: #1E2B1F;
	font-weight: 700;
}

.nnf-404-categories-section .nnf-quick-cat-item.is-promotional:hover .nnf-quick-cat-title {
	color: #FF6B4A;
}

@media (max-width: 1024px) {
	.nnf-404-categories-section .nnf-quick-cats-grid {
		gap: 12px;
	}
	.nnf-404-categories-section .nnf-quick-cat-item {
		max-width: 110px;
	}
	.nnf-404-categories-section .nnf-quick-cat-circle {
		width: 100px;
		height: 100px;
		border-width: 3.5px;
		margin-bottom: 8px;
	}
	.nnf-404-categories-section .nnf-quick-cat-title {
		font-size: 13px;
	}
}

@media (max-width: 768px) {
	.nnf-404-categories-section .nnf-quick-cats-section {
		margin-top: 8px;
		margin-bottom: 14px;
	}
	.nnf-404-categories-section .nnf-quick-cats-scroll {
		padding-left: 10px;
		padding-right: 18px;
		margin-left: -10px;
		margin-right: -10px;
		width: calc(100% + 20px);
	}
	.nnf-404-categories-section .nnf-quick-cats-grid {
		display: flex;
		flex-wrap: nowrap;
		gap: 14px;
		width: max-content;
	}
	.nnf-404-categories-section .nnf-quick-cat-col {
		flex: 0 0 94px;
		width: 94px;
	}
	.nnf-404-categories-section .nnf-quick-cat-circle {
		width: 92px;
		height: 92px;
		border-width: 3px;
		margin-bottom: 6px;
	}
	.nnf-404-categories-section .nnf-quick-cat-title {
		font-size: 12px;
		line-height: 1.25;
	}
}

/* Responsive Adaptations */
@media (max-width: 1200px) {
	.nnf-404-hero-section {
		aspect-ratio: 1024 / 434;
		min-height: 450px;
		height: auto;
		max-height: none;
		padding: 24px 0;
	}
}

@media (max-width: 991px) {
	.nnf-404-hero-section {
		aspect-ratio: 1024 / 434;
		min-height: 400px;
		height: auto;
		max-height: none;
		padding: 20px 0;
	}
	.nnf-404-hero-container {
		grid-template-columns: 55fr 45fr;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.nnf-404-hero-section {
		background-image: none;
		background: linear-gradient(135deg, #F8FBF5 0%, #F4FBEF 50%, #FFFFFF 100%);
		height: auto;
		min-height: auto;
		max-height: none;
		aspect-ratio: auto;
		padding: 28px 0 16px 0;
		flex-direction: column;
	}
	.nnf-404-hero-container {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.nnf-404-card-backdrop {
		text-align: center;
	}
	.nnf-404-content-col {
		max-width: 100%;
		align-items: center;
	}
	.nnf-404-desc {
		margin-left: auto;
		margin-right: auto;
	}
	.nnf-404-spacer-col {
		display: none;
	}
	.nnf-404-mobile-banner-wrap {
		display: flex;
		justify-content: center;
		margin-top: 24px;
		padding: 0 16px;
		width: 100%;
		box-sizing: border-box;
	}
	.nnf-404-mobile-banner-img {
		width: 100%;
		max-width: 420px;
		height: auto;
		aspect-ratio: 520 / 434; /* Tỉ lệ 1 nửa bên phải banner */
		object-fit: cover;
		object-position: right center; /* Chỉ hiển thị 1 nửa bên phải của banner 404 */
		border-radius: 18px;
		display: block;
		box-shadow: 0 8px 24px rgba(57, 132, 31, 0.15);
	}
	.nnf-404-cta-group {
		justify-content: center;
	}
	.nnf-404-btn-primary,
	.nnf-404-btn-secondary {
		width: 100%;
	}
	.nnf-404-btn-outline {
		width: 100%;
		justify-content: center;
		margin-top: 6px;
	}
	.nnf-404-search-card {
		padding: 24px 18px;
	}
	.nnf-404-search-header {
		margin-bottom: 16px;
	}
	.nnf-404-search-title {
		font-size: 16.5px;
	}
	.nnf-404-search-input-group {
		flex-direction: column;
		border-radius: 16px;
		padding: 10px 14px;
		gap: 10px;
	}
	.nnf-404-search-card .nnf-404-search-input-group input.nnf-404-search-input {
		width: 100%;
		border: 0;
		outline: 0;
		box-shadow: none;
	}
	.nnf-404-search-submit-btn {
		width: 100%;
		justify-content: center;
	}
	.nnf-404-categories-header {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.nnf-404-mobile-banner-img {
		max-width: 100%;
		aspect-ratio: 520 / 434;
		object-position: right center;
	}
}




/** Account pages: use NNF colors instead of inherited Blocksy blue. */
.woocommerce-account .nnf-site-wrapper article {
	--theme-palette-color-1: var(--nnf-primary-dark, #39841f);
	--theme-palette-color-2: var(--nnf-primary-dark, #39841f);
	--theme-palette-color-3: var(--nnf-text-main, #1e2b1f);
	--theme-palette-color-4: var(--nnf-text-main, #1e2b1f);
	--theme-palette-color-5: var(--nnf-border, #dde8d8);
	--theme-palette-color-6: var(--nnf-mint-white, #f4fbef);
	--theme-text-color: var(--nnf-text-main, #1e2b1f);
	--theme-headings-color: var(--nnf-text-main, #1e2b1f);
	--theme-link-initial-color: var(--nnf-primary-dark, #39841f);
	--theme-link-hover-color: var(--nnf-primary-dark, #39841f);
	--theme-button-background-initial-color: var(--nnf-primary-dark, #39841f);
	--theme-button-background-hover-color: var(--nnf-primary-dark, #39841f);
	--theme-button-text-initial-color: #fff;
	--theme-button-text-hover-color: #fff;
	--theme-form-field-border-initial-color: var(--nnf-border, #dde8d8);
	--theme-form-field-border-focus-color: var(--nnf-primary-dark, #39841f);
	--theme-form-selection-field-initial-color: var(--nnf-border, #dde8d8);
	--theme-form-selection-field-active-color: var(--nnf-primary-dark, #39841f);
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce {
	color: var(--nnf-text-main, #1e2b1f);
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce a:not(.button) {
	color: var(--nnf-primary-dark, #39841f);
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce a:not(.button):hover {
	text-decoration: underline;
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce .button {
	background-color: var(--nnf-primary-dark, #39841f);
	border-color: var(--nnf-primary-dark, #39841f);
	color: #fff;
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce .button:hover {
	background-color: color-mix(in srgb, var(--nnf-primary-dark, #39841f) 85%, #000);
	border-color: var(--nnf-primary-dark, #39841f);
	color: #fff;
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce :is(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--nnf-primary-dark, #39841f);
	outline-offset: 3px;
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce input[type="checkbox"] {
	accent-color: var(--nnf-primary-dark, #39841f);
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce-MyAccount-navigation .is-active a {
	background-color: var(--nnf-mint-white, #f4fbef);
	color: var(--nnf-primary-dark, #39841f);
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce :is(table.shop_table th, .woocommerce-Address-title) {
	background-color: var(--nnf-mint-white, #f4fbef);
	color: var(--nnf-text-main, #1e2b1f);
}

/** Account navigation: readable states without moving the surrounding layout. */
.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce-MyAccount-navigation {
	flex-shrink: 0;
	align-self: flex-start;
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce-MyAccount-content {
	min-width: 0;
	overflow-wrap: anywhere;
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce-MyAccount-navigation li > a {
	transform: none;
	transition-property: color, background-color;
	text-decoration: none;
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce-MyAccount-navigation li:hover > a,
.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce-MyAccount-navigation li > a:focus-visible {
	background-color: var(--nnf-primary-dark, #39841f);
	color: #fff;
	text-decoration: none;
}

.woocommerce-account .nnf-site-wrapper .entry-content .woocommerce-MyAccount-navigation li > a::before {
	color: currentColor;
}

html:has(body.woocommerce-account) {
	scrollbar-gutter: stable;
}

/** Stable account shell: endpoint content cannot resize the navigation or page frame. */
.woocommerce-account .nnf-site-wrapper > .ct-container-full:has(.ct-woo-account) {
	width: 100%;
	max-width: none;
}

.woocommerce-account .nnf-site-wrapper article:has(.ct-woo-account) {
	width: min(1200px, calc(100% - 48px));
	max-width: none;
	margin-inline: auto;
}

.woocommerce-account .nnf-site-wrapper .entry-content > .woocommerce.ct-woo-account {
	display: grid;
	grid-template-columns: 258px minmax(0, 1fr);
	gap: 30px;
	align-items: start;
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.woocommerce-account .nnf-site-wrapper .ct-woo-account > .woocommerce-MyAccount-navigation {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.woocommerce-account .nnf-site-wrapper .ct-woo-account > .woocommerce-MyAccount-navigation ul {
	margin: 0;
}

.woocommerce-account .nnf-site-wrapper .ct-woo-account > .woocommerce-MyAccount-navigation li > a {
	box-sizing: border-box;
	height: 55px;
	padding-block: 0;
}

.woocommerce-account .nnf-site-wrapper .ct-woo-account > .woocommerce-MyAccount-content {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: clamp(540px, 65vh, 760px);
	margin: 0;
	padding: 0 8px 16px 0;
	overflow: auto;
	scrollbar-gutter: stable;
	overscroll-behavior: contain;
}

.woocommerce-account .nnf-site-wrapper .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

@media (max-width: 767px) {
	.woocommerce-account .nnf-site-wrapper article:has(.ct-woo-account) {
		width: calc(100% - 32px);
	}

	.woocommerce-account .nnf-site-wrapper .entry-content > .woocommerce.ct-woo-account {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.woocommerce-account .nnf-site-wrapper .ct-woo-account > .woocommerce-MyAccount-content {
		height: auto;
		min-height: 360px;
		overflow: visible;
		padding: 0;
	}
}
