/*!
Theme Name: Fencore Child
Theme URI: https://luoiviet.com/
Author: Fencore
Description: Child theme for the Hostinger AI theme used by Fencore.
Template: hostinger-ai-theme
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: fencore-child
*/

/* Barlow (SIL OFL 1.1, self-hosted; see assets/fonts/OFL.txt).
   Display family for heavy weights (700/800/900). Replaces Be Vietnam Pro:
   its bold/heavy weights render stacked Vietnamese tone marks (e.g. "ố" in
   "huống") with the acute floating detached from the circumflex; confirmed
   against Google's own hosted copy, so it's the typeface, not our subsetting.
   Barlow renders those combinations as one merged mark. Latin + Vietnamese
   subsets only. */
@font-face {
	font-family: "FencoreDisplay";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/barlow-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "FencoreDisplay";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/barlow-700-vietnamese.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "FencoreDisplay";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/barlow-800-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "FencoreDisplay";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/barlow-800-vietnamese.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: "FencoreDisplay";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("../fonts/barlow-900-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "FencoreDisplay";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("../fonts/barlow-900-vietnamese.woff2") format("woff2");
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

body {
	--fencore-red: #8e201d;
	--fencore-red-dark: #681712;
	--fencore-gold: #c69939;
	--fencore-charcoal: #1f1e1b;
	--fencore-ink: #252422;
	--fencore-muted: #5f625f;
	--fencore-line: rgba(37, 36, 34, 0.14);
	--fencore-paper: #f6f2eb;
	--fencore-soft: #fbf8f2;
	--fencore-surface: #fff;
	--fencore-surface-warm: #fff9ef;
	--fencore-radius: 24px;
	--fencore-pill: 999px;
	--fencore-shadow: 0 18px 44px rgba(37, 36, 34, 0.12);
	--fencore-shadow-soft: 0 10px 24px rgba(37, 36, 34, 0.08);
	--fencore-transition-short: 240ms ease;
	--fencore-transition: 280ms cubic-bezier(0.22, 1, 0.36, 1);
	--fencore-transition-lift: 320ms cubic-bezier(0.22, 1, 0.36, 1);
	--fencore-transition-media: 550ms cubic-bezier(0.22, 1, 0.36, 1);
	--fencore-transition-fade: 400ms ease;

	font-family: Arial, sans-serif !important;
	padding-top: 0 !important;
}

	body :is(
		h1, h2, h3, h4, h5, h6,
		strong, summary, button,
		.fencore-button, .fencore-brand, .fencore-main-nav, .fencore-eyebrow,
		.fencore-filter, .fencore-breadcrumb-inline, .fencore-meta,
		.fencore-page-card a, .fencore-catalog-sidebar a,
		.fencore-card-media span, .fencore-news-feature__visual span,
		.fencore-news-topics span, .fencore-category-rail span, .fencore-tags span,
		.fencore-catalog-card--fallback .fencore-catalog-card__media span,
		.fencore-site-topbar span:first-child
	) {
	font-family: "FencoreDisplay", Arial, sans-serif;
}

body .site-header.wp-block-template-part {
	display: none;
}

body *,
body *::before,
body *::after {
	box-sizing: border-box;
}

.fencore-container {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1240px;
	padding: 0 24px;
	width: 100%;
}

.fencore-site-header {
	background: rgba(246, 242, 235, 0.96);
	border-bottom: 1px solid var(--fencore-line);
	backdrop-filter: blur(14px);
	position: sticky;
	top: 0;
	z-index: 70;
}

.fencore-site-topbar {
	background: var(--fencore-charcoal);
	color: rgba(255, 255, 255, 0.74);
	font-size: 13px;
}

.fencore-site-topbar__inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 38px;
}

.fencore-site-topbar span:first-child {
	color: var(--fencore-gold);
	font-weight: 900;
}

.fencore-site-header__inner {
	align-items: center;
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
	min-height: 78px;
}

.fencore-brand,
.fencore-main-nav a {
	color: var(--fencore-ink);
	font-weight: 900;
	text-decoration: none;
}

.fencore-brand {
	align-items: center;
	display: inline-flex;
}

.fencore-brand img {
	height: auto;
	max-height: 48px;
	object-fit: contain;
	width: 154px;
}

.fencore-main-nav {
	display: flex;
	gap: 20px;
	justify-content: center;
}

.fencore-header-actions {
	display: flex;
	gap: 10px;
	justify-self: end;
	white-space: nowrap;
}

.fencore-main-nav a {
	font-size: 14px;
	padding: 8px 0;
	position: relative;
	transition: color var(--fencore-transition);
}

.fencore-main-nav a::after {
	background: var(--fencore-red);
	bottom: -8px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--fencore-transition);
	width: 100%;
}

.fencore-main-nav a[aria-current="page"] {
	color: var(--fencore-red);
}

.fencore-main-nav a[aria-current="page"]::after {
	transform: scaleX(1);
}

.fencore-mobile-menu {
	display: none;
}

.fencore-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: var(--fencore-pill);
	display: inline-flex;
	font-family: "FencoreDisplay", Arial, sans-serif;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	min-height: 46px;
	padding: 13px 20px;
	text-decoration: none;
	transition: background var(--fencore-transition), border-color var(--fencore-transition), color var(--fencore-transition), transform var(--fencore-transition);
}

.fencore-button--primary {
	background: var(--fencore-red);
	color: #fff;
}

.fencore-button--secondary {
	background: var(--fencore-surface);
	border-color: rgba(142, 32, 29, 0.22);
	color: var(--fencore-red);
}

body :focus-visible {
	outline: 3px solid var(--fencore-gold) !important;
