/* ─────────────────────────────────────────────────────────────
   FireHub theme glue — WordPress integration on top of
   firehub-shared.css (nav menus, blog, editor content, search).
   ───────────────────────────────────────────────────────────── */

/* ── Primary nav: render wp_nav_menu <ul> like the flat design ── */
.nav .nav-list {
	display: flex;
	gap: 2px;
	flex: 1;
	flex-wrap: nowrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav .nav-list > li { position: relative; }
.nav .nav-list > li.current-menu-item > a,
.nav .nav-list > li.current_page_item > a,
.nav .nav-list > li.current-menu-parent > a,
.nav .nav-list > li.current-menu-ancestor > a { color: var(--fs-red); }
.nav .nav-list > li.current-menu-item > a::after,
.nav .nav-list > li.current_page_item > a::after,
.nav .nav-list > li.current-menu-ancestor > a::after {
	content: '';
	position: absolute;
	left: 12px; right: 12px; bottom: -2px;
	height: 2px;
	background: var(--gradient-brand);
	border-radius: 2px;
}

/* Sub-menu dropdowns */
.nav .nav-list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: var(--shadow-md);
	padding: 6px;
	margin: 0;
	list-style: none;
	display: none;
	flex-direction: column;
	z-index: 60;
}
.nav .nav-list li:hover > .sub-menu { display: flex; }
.nav .nav-list .sub-menu li { position: relative; }
.nav .nav-list .sub-menu a { white-space: nowrap; display: block; border-radius: 8px; }

/* Drawer menu list */
.mobile-drawer .drawer-list { list-style: none; margin: 0; padding: 0; display: block; }
.mobile-drawer .drawer-list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 12px; }
.mobile-drawer .drawer-list li.current-menu-item > a,
.mobile-drawer .drawer-list li.current_page_item > a { color: var(--fs-red); }

/* ── Editor / entry content ── */
.fh-entry { font-size: 15.5px; line-height: 1.8; color: var(--text); max-width: 820px; }
.fh-entry h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 12px; }
.fh-entry h3 { font-size: 20px; font-weight: 600; margin: 26px 0 10px; }
.fh-entry p { margin: 0 0 16px; color: var(--text-muted); }
.fh-entry a { color: var(--fs-red); font-weight: 500; }
.fh-entry a:hover { text-decoration: underline; }
.fh-entry ul, .fh-entry ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-muted); }
.fh-entry li { margin-bottom: 8px; }
.fh-entry img { border-radius: 12px; }
.fh-entry blockquote {
	margin: 22px 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--fs-red);
	color: var(--text);
	font-style: italic;
}
.fh-single { max-width: 900px; }
.fh-single-thumb { margin: 0 0 28px; }
.fh-single-thumb img { width: 100%; border-radius: 16px; border: 1px solid var(--border); }

/* ── Blog / archive post cards ── */
.fh-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.fh-post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	transition: all 0.2s;
	display: flex;
	flex-direction: column;
}
.fh-post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fh-post-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--surface-2);
	position: relative;
	overflow: hidden;
}
.fh-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fh-post-thumb-ph {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: var(--text-faint); font-weight: 700; letter-spacing: 0.1em;
}
.fh-post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.fh-post-meta {
	display: flex; gap: 12px; align-items: center;
	font-size: 12px; color: var(--text-faint); margin-bottom: 10px; font-weight: 500;
}
.fh-post-meta .cat { color: var(--fs-red); text-transform: uppercase; letter-spacing: 0.08em; }
.fh-post-meta .dot { width: 3px; height: 3px; background: var(--text-faint); border-radius: 50%; }
.fh-post-title { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; }
.fh-post-title a { color: var(--text); }
.fh-post-card:hover .fh-post-title a { color: var(--fs-red); }
.fh-post-excerpt { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 14px; flex: 1; }

/* ── Pagination ── */
.fh-pagination { margin-top: 40px; }
.fh-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fh-pagination a, .fh-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--border); border-radius: 10px;
	font-size: 14px; font-weight: 500; color: var(--text); background: var(--surface);
}
.fh-pagination a:hover { border-color: var(--fs-red); color: var(--fs-red); }
.fh-pagination .current { background: var(--gradient-brand); color: #fff; border-color: transparent; }

/* ── Search form ── */
.fh-search-form { display: flex; gap: 10px; }
.fh-search-form .input { flex: 1; }

/* ── PDP trust badges (hooked into single product summary) ── */
.fh-trust-badges {
	list-style: none; margin: 22px 0 0; padding: 18px 0 0;
	border-top: 1px solid var(--border);
	display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px;
}
.fh-trust-badges li {
	display: flex; flex-direction: column;
	padding-left: 26px; position: relative; font-size: 13px; line-height: 1.4;
}
.fh-trust-badges li::before {
	content: ''; position: absolute; left: 0; top: 2px;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--fs-red-light);
	box-shadow: inset 0 0 0 2px var(--fs-red);
}
.fh-trust-badges strong { font-weight: 600; color: var(--text); }
.fh-trust-badges span { color: var(--text-muted); }

@media (max-width: 980px) {
	.fh-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.fh-post-grid { grid-template-columns: 1fr; }
	.fh-trust-badges { grid-template-columns: 1fr; }
}

/* ── WooCommerce-driven product cards (homepage + catalogue) ── */
a.product-img { display: block; }
.product-card .product-name a { color: inherit; }
.product-card:hover .product-name a { color: var(--fs-red); }
/* WooCommerce add-to-cart ajax artefacts inside the compact card */
.product-foot .added_to_cart { display: none; }
.product-foot .product-add.loading { opacity: 0.6; }
.product-foot .product-price ins { text-decoration: none; }
.product-foot .product-price del { font-size: 0.8em; color: var(--text-faint); font-weight: 400; margin-right: 6px; }
.fh-empty-slot {
	grid-column: 1 / -1;
	margin: 0;
	padding: 22px;
	background: var(--surface-2);
	border: 1px dashed var(--border-strong);
	border-radius: 12px;
	color: var(--text-muted);
	font-size: 14px;
	text-align: center;
}

/* ── Footer legal notice (Bộ Công Thương) ── */
.footer-legal {
	border-top: 1px solid #283039;
	padding: 14px 0 22px;
	font-size: 12px;
	color: #6B7480;
	line-height: 1.6;
}

/* ── Contact Form 7 styled to match the FireHub form ── */
.fh-cf7-card .wpcf7-form-control-wrap { display: block; width: 100%; }
.fh-cf7-card .wpcf7 .input,
.fh-cf7-card .wpcf7 .select,
.fh-cf7-card .wpcf7 .textarea { width: 100%; }
.fh-cf7-card .wpcf7-not-valid { border-color: #A8201A !important; box-shadow: 0 0 0 3px rgba(168,32,26,0.12); }
.fh-cf7-card .wpcf7-not-valid-tip { color: #A8201A; font-size: 12.5px; margin-top: 5px; display: block; }
.fh-cf7-card .wpcf7-spinner { margin: 0 0 0 10px; }
.fh-cf7-card .wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 13.5px;
}
.fh-cf7-card .wpcf7-form.sent .wpcf7-response-output { border-color: #1F8A53; background: #E3F3E3; color: #1F8A53; }
.fh-cf7-card .wpcf7-form.invalid .wpcf7-response-output,
.fh-cf7-card .wpcf7-form.failed .wpcf7-response-output { border-color: #A8201A; background: var(--fs-red-light); color: #A8201A; }
.fh-cf7-card .form-submit { width: 100%; justify-content: center; margin-top: 8px; }
