/*
Theme Name: flatsome-heher
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* =========================================================
   CUSTOM NANO HEADER (replaces Flatsome header)
   Logo remains centered @ 244×90
   ========================================================= */

:root {
	/* Tone theo logo: đỏ HPRO + xanh NanoZ */
	--nh-ink: #0a2f5c;
	--nh-muted: #5a7390;
	--nh-blue: #0096d6;
	--nh-cyan: #2bb8f0;
	--nh-red: #e31c23;
	--nh-red-2: #ff3b3b;
	--nh-orange: var(--nh-red);
	--nh-orange-2: var(--nh-red-2);
	--nh-line: rgba(0, 150, 214, 0.18);
	--nh-soft: #eef7fd;
	--nh-soft-red: #fff1f1;
	--nh-soft-orange: var(--nh-soft-red);
	--nh-top: #071f3a;
	--nh-header-h: 90px;
	--nh-top-h: 40px;
	--nh-font: "Be Vietnam Pro", "Baloo Bhai 2", sans-serif;
	/* Body / small text site-wide */
	--nh-font-body: "Times New Roman", Times, Georgia, serif;
	--nh-text-size: 20px;
	--nh-text-size-lg: 26px;
	--nh-text-lh: 1.7;
}

/* =========================================================
   BODY / SMALL TEXT → Times New Roman (toàn site)
   Header UI giữ Be Vietnam Pro
   ========================================================= */
body,
body p,
body li,
body td,
body th,
body label,
body input,
body textarea,
body select,
body button,
.entry-content,
.entry-content p,
.entry-content span,
.entry-content li,
.entry-content div,
#main,
#wrapper,
.page-wrapper,
.col,
.section,
.row,
.widget,
.widget p,
.widget li,
.footer-wrapper,
.absolute-footer,
.product-section,
.product-page,
.shop-page,
.blog-single,
.ux-text,
.text-inner,
.hotspot-html {
	font-family: var(--nh-font-body) !important;
}

/* Ép Times New Roman + màu chữ đồng nhất trong nội dung sản phẩm */
.nano-lang,
.nano-lang p,
.nano-lang li,
.nano-lang span,
.nano-lang strong,
.nano-lang b,
.nano-lang div,
#main .col,
#main .col * {
	font-family: "Times New Roman", Times, Georgia, serif !important;
}

/* Chỉ gắn size/line-height lên chữ — không gắn lên .col/.col-inner (tránh layout chồng) */
#main .col p,
#main .col li,
#main .col td,
.nano-lang p,
.nano-lang li {
	color: var(--nh-text) !important;
	font-style: normal !important;
	font-size: var(--nh-text-size) !important;
	line-height: var(--nh-text-lh) !important;
}

#main .col span,
.nano-lang span {
	color: inherit !important;
	font-style: normal !important;
	font-size: inherit !important;
}

#main .col [style*="#ed1c24"],
#main .col [style*="#ED1C24"],
#main .col [style*="#e31c23"],
#main .col [style*="#E31C23"],
.nano-lang [style*="#ed1c24"],
.nano-lang [style*="#e31c23"] {
	color: #ed1c24 !important;
}

#main .col strong,
#main .col b,
.nano-lang strong,
.nano-lang b {
	color: var(--nh-text-strong) !important;
	font-style: normal !important;
	font-weight: 700 !important;
	font-size: inherit !important;
}

/* Tiêu đề mục trong bài */
#main .col p[style*="text-align:center"],
#main .col p[style*="text-align: center"],
.nano-lang p[style*="text-align:center"],
.nano-lang p[style*="text-align: center"] {
	font-size: var(--nh-text-size-lg) !important;
	line-height: 1.45 !important;
}

#main .col [style*="#ed1c24"],
#main .col [style*="#ED1C24"],
#main .col [style*="#e31c23"],
#main .col [style*="#E31C23"],
.nano-lang [style*="#ed1c24"],
.nano-lang [style*="#e31c23"] {
	color: #ed1c24 !important;
}

/* Giữ font UI cho header / menu */
.nano-site-header,
.nano-site-header button,
.nano-site-header input,
.nano-site-header a,
.nano-site-header span,
.nano-site-header li,
.nano-lang-switcher,
.nano-lang-switcher a {
	font-family: var(--nh-font) !important;
}

/* =========================================================
   MÀU CHỮ NỘI DUNG ĐỒNG NHẤT (toàn site)
   - Chữ thường: mực đậm 1 màu
   - Tiêu đề strong trong bài: mực đậm hơn
   - Giữ đỏ thương hiệu (#ed1c24 / #e31c23)
   - Bỏ italic / đậm lẫn lộn từ Word
   ========================================================= */
:root {
	--nh-text: #1f2933;
	--nh-text-strong: #111827;
}

#main .col p,
#main .col li,
#main .col span,
#main .col td,
#main .entry-content p,
#main .entry-content li,
#main .entry-content span,
.page-wrapper .col p,
.page-wrapper .col li,
.page-wrapper .col span,
.footer-wrapper p,
.footer-wrapper li,
.footer-wrapper span,
.widget p,
.widget li,
.widget span,
.ux-text,
.text-inner {
	color: var(--nh-text) !important;
	font-style: normal !important;
}

#main .col strong,
#main .col b,
#main .entry-content strong,
#main .entry-content b,
.page-wrapper .col strong,
.page-wrapper .col b {
	color: var(--nh-text-strong) !important;
	font-style: normal !important;
	font-weight: 700 !important;
}

/* Giữ màu đỏ brand (chứng chỉ / tên sản phẩm) */
#main .col [style*="#ed1c24"],
#main .col [style*="#ED1C24"],
#main .col [style*="color: #ed1c24"],
#main .col [style*="color:#ed1c24"],
#main .col [style*="#e31c23"],
#main .col [style*="#E31C23"],
#main .col [style*="color: #e31c23"],
#main .col [style*="color:#e31c23"],
#main .entry-content [style*="#ed1c24"],
#main .entry-content [style*="#e31c23"],
.page-wrapper .col [style*="#ed1c24"],
.page-wrapper .col [style*="#e31c23"] {
	color: #ed1c24 !important;
}

/* Tiêu đề shortcode Flatsome trên trang */
#main .col h1,
#main .col h2,
#main .col h3,
#main .col h4,
#main .col .section-title span {
	font-style: normal !important;
}

.nano-site-header,
.nano-site-header button,
.nano-site-header input,
.nano-site-header a {
	font-family: var(--nh-font);
}

body.nano-custom-header {
	padding-top: 0 !important;
}

/* Kill leftover Flatsome header chrome */
body.nano-custom-header #header.header {
	position: static !important;
	height: auto !important;
	min-height: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}

body.nano-custom-header .header-wrapper {
	position: static !important;
	height: auto !important;
	min-height: 0 !important;
	background: transparent !important;
}

body.nano-custom-header .stuck,
body.nano-custom-header .header.show-on-scroll {
	position: static !important;
}

/* ===== Custom header shell ===== */
.nano-site-header {
	position: sticky;
	top: 0;
	z-index: 9990;
	width: 100%;
	background: #fff;
	box-shadow: 0 10px 30px rgba(16, 42, 61, 0.06);
}

.nano-site-header.is-stuck {
	box-shadow: 0 14px 34px rgba(16, 42, 61, 0.1);
}

.nano-header-container {
	width: min(1200px, calc(100% - 32px));
	margin: 0 auto;
}

/* Top bar */
.nano-header-top {
	background: linear-gradient(90deg, #071f3a 0%, #0a4a8a 50%, #0096d6 100%);
	color: rgba(255, 255, 255, 0.95);
	min-height: var(--nh-top-h);
}

.nano-header-top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--nh-top-h);
}

.nano-header-tagline {
	font-family: var(--nh-font);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	opacity: 0.95;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nano-header-socials {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nano-social {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.14);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nano-social:hover {
	background: var(--nh-red);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(227, 28, 35, 0.35);
	color: #fff !important;
}

/* Main row */
.nano-header-main {
	position: relative;
	background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
	border-bottom: 3px solid transparent;
	border-image: linear-gradient(90deg, var(--nh-red), #ff5a5a 30%, var(--nh-blue), var(--nh-cyan)) 1;
}

.nano-header-main-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: var(--nh-header-h);
	gap: 12px;
}

.nano-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: nowrap;
}

.nano-nav-left {
	justify-content: flex-start;
}

.nano-nav-right {
	justify-content: flex-end;
}

.nano-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 13px;
	border-radius: 999px;
	color: var(--nh-ink) !important;
	font-family: var(--nh-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1.15;
	transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.nano-nav-link:hover {
	color: #fff !important;
	background: linear-gradient(135deg, var(--nh-red) 0%, var(--nh-blue) 100%);
	box-shadow: 0 8px 18px rgba(0, 150, 214, 0.28);
	transform: translateY(-1px);
}

.nano-caret {
	opacity: 0.55;
}

.nano-nav-item {
	position: relative;
}

.nano-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 320px;
	max-width: 420px;
	padding: 10px 0;
	background: #fff;
	border: 1px solid var(--nh-line);
	border-radius: 14px;
	box-shadow: 0 22px 50px rgba(16, 42, 61, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.18s ease;
	z-index: 50;
}

.nano-nav-item.has-dropdown:hover .nano-dropdown,
.nano-nav-item.has-dropdown:focus-within .nano-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nano-dropdown a {
	display: block;
	padding: 10px 16px;
	color: var(--nh-ink) !important;
	font-family: var(--nh-font);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none !important;
	text-transform: none;
	letter-spacing: 0;
}

.nano-dropdown a:hover {
	background: linear-gradient(90deg, var(--nh-soft-red), var(--nh-soft));
	color: var(--nh-blue) !important;
}

/* Logo — KEEP size & center */
.nano-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 244px;
	max-width: 244px;
	justify-self: center;
}

.nano-logo img {
	display: block;
	width: auto;
	max-width: 244px;
	height: auto;
	max-height: 90px;
	object-fit: contain;
}

/* Icon buttons */
.nano-icon-btn {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #ffffff 0%, var(--nh-soft) 100%);
	color: var(--nh-blue) !important;
	border: 1px solid rgba(0, 136, 214, 0.18);
	cursor: pointer;
	position: relative;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nano-icon-btn:hover {
	background: linear-gradient(135deg, var(--nh-red) 0%, var(--nh-blue) 100%);
	color: #fff !important;
	border-color: transparent;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(0, 150, 214, 0.3);
}

.nano-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--nh-red);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
	border: 2px solid #fff;
}

/* Language switcher in custom header */
.nano-site-header .nano-lang-switcher {
	margin: 0 4px 0 8px;
	background: linear-gradient(180deg, #fff 0%, var(--nh-soft) 100%);
	border: 1px solid rgba(0, 150, 214, 0.22);
	box-shadow: none;
	padding: 3px;
}

.nano-site-header .nano-lang-btn {
	min-width: 36px;
	padding: 7px 11px;
	font-family: var(--nh-font);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--nh-muted);
}

.nano-site-header .nano-lang-btn.is-active {
	background: linear-gradient(135deg, var(--nh-red) 0%, var(--nh-blue) 100%) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(0, 150, 214, 0.28);
}

/* Search panel */
.nano-search-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-bottom: 1px solid var(--nh-line);
	box-shadow: 0 16px 30px rgba(16, 42, 61, 0.08);
	padding: 14px 16px;
	z-index: 40;
}

.nano-search-panel[hidden] {
	display: none !important;
}

.nano-search-form {
	width: min(720px, 100%);
	margin: 0 auto;
	display: flex;
	gap: 8px;
}

.nano-search-form input {
	flex: 1;
	height: 44px;
	border: 1px solid var(--nh-line);
	border-radius: 10px;
	padding: 0 14px;
	font-size: 14px;
	outline: none;
}

.nano-search-form input:focus {
	border-color: var(--nh-blue);
	box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.12);
}

.nano-search-form button {
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--nh-blue);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* Mobile toggle */
.nano-nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	background: var(--nh-soft);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
}

.nano-nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--nh-ink);
	border-radius: 2px;
}

.nano-mobile-panel {
	display: none;
	background: #fff;
	border-top: 1px solid var(--nh-line);
}

.nano-mobile-panel-inner {
	display: flex;
	flex-direction: column;
	padding: 8px 16px 16px;
	max-height: min(70vh, 520px);
	overflow: auto;
}

.nano-mobile-panel-inner > a {
	padding: 12px 4px;
	border-bottom: 1px solid var(--nh-line);
	color: var(--nh-ink) !important;
	text-decoration: none !important;
	font-weight: 700;
}

.nano-mobile-panel-inner > a.nano-mobile-sub {
	padding-left: 14px;
	font-weight: 600;
	font-size: 13px;
	color: var(--nh-muted) !important;
}

.nano-header-spacer {
	display: none;
}

@media (max-width: 991px) {
	.nano-header-tagline {
		display: none;
	}

	.nano-nav-toggle {
		display: inline-flex;
	}

	.nano-nav-left,
	.nano-nav-right .nano-nav-link {
		display: none;
	}

	.nano-header-main-inner {
		grid-template-columns: 40px 1fr auto;
	}

	.nano-logo {
		justify-self: center;
		width: auto;
		max-width: 180px;
	}

	.nano-logo img {
		max-width: 180px;
		max-height: 64px;
	}

	.nano-header-main-inner {
		min-height: 72px;
	}

	.nano-nav-right {
		gap: 4px;
	}

	.nano-mobile-panel.is-open,
	.nano-mobile-panel:not([hidden]) {
		display: block;
	}
}

@media (min-width: 992px) {
	.nano-mobile-panel {
		display: none !important;
	}
}
