/* ==========================================================================
   Tahico Miền Bắc – main.css
   Design tokens lấy từ Figma (collection "Tahico Tokens").
   ========================================================================== */
:root {
	--c-blue: #034ea2;
	--c-blue-dark: #012f66;
	--c-blue-50: #eaf2fc;
	--c-orange: #f4821f;
	--c-orange-50: #fff3e8;
	--c-red: #e0221e;
	--c-text: #111827;
	--c-text-2: #4b5563;
	--c-muted: #9ca3af;
	--c-page: #f4f6fa;
	--c-white: #fff;
	--c-border: #e5e7eb;
	--c-green: #22a06b;
	--grad-blue: linear-gradient(135deg, #012f66 0%, #034ea2 100%);
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 2px 8px rgba(15, 26, 51, .06);
	--shadow-lg: 0 8px 24px rgba(5, 26, 64, .1);
	--container: 1280px;
	--gutter: 16px;
	--font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--c-text); background: var(--c-page); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-orange); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--c-text); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.ti { flex-shrink: 0; vertical-align: middle; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; background: #fff; padding: 8px 12px; left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { min-height: 50vh; padding-bottom: 56px; }

/* --- Buttons / chips / badges ------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-sm); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; transition: filter .15s, background .15s; text-align: center; }
.btn:hover { filter: brightness(1.06); }
.btn--primary { background: var(--c-blue); color: #fff; }
.btn--accent { background: var(--c-orange); color: #fff; }
.btn--soft { background: var(--c-blue-50); color: var(--c-blue); }
.btn--outline { background: #fff; color: var(--c-orange); border-color: var(--c-orange); }
.btn--ghost { background: var(--c-page); color: var(--c-text); }
.btn:hover, .btn--primary:hover, .btn--accent:hover { color: inherit; }
.btn--primary:hover, .btn--accent:hover { color: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius-sm); background: var(--c-blue-50); color: var(--c-blue); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--c-border); color: var(--c-text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.is-active { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; line-height: 1.3; }
.badge--sale { background: var(--c-red); }
.badge--hot { background: var(--c-orange); }
.badge--top { background: var(--c-blue); }
.badge--blue { background: var(--c-blue); border-radius: 4px; font-size: 10px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--c-orange); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tag--soft { background: var(--c-orange-50); color: var(--c-orange); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--c-orange); margin: 0 0 8px; }

.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.card-soft { background: var(--c-page); border-radius: 14px; padding: 20px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.link-more--orange { color: var(--c-orange); }
.thumb-placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--c-page); }

.section-title { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; color: var(--c-blue); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.section-title__bar { width: 5px; height: 26px; border-radius: 3px; background: var(--c-orange); flex-shrink: 0; }
.page-title { font-size: 32px; font-weight: 800; margin: 0 0 8px; }

/* --- Topbar / masthead / nav ------------------------------------------- */
.topbar { background: var(--c-blue-dark); color: #fff; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.topbar__info { display: flex; gap: 24px; flex: 1; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: #fff; white-space: nowrap; }
.topbar__item .ti { color: var(--c-orange); }
.topbar__item--hotline { display: none; }
.topbar__menu { display: flex; gap: 20px; list-style: none; }
.topbar__menu a { color: rgba(255, 255, 255, .9); font-weight: 500; }
.topbar__menu a:hover { color: var(--c-orange); }

.masthead { background: #fff; }
.masthead__inner { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.masthead__logo img { width: 182px; height: auto; }
.masthead__burger { display: none; }
.search-bar { flex: 1; display: flex; align-items: stretch; border: 2px solid var(--c-blue); border-radius: 12px; overflow: hidden; background: #fff; min-width: 0; }
.search-bar__cat { display: flex; align-items: center; background: var(--c-page); }
.search-bar__cat select { border: 0; background: transparent; padding: 0 12px 0 16px; font-weight: 500; font-size: 14px; max-width: 190px; height: 100%; }
.search-bar__input { flex: 1; min-width: 0; border: 0; padding: 12px 16px; font-size: 14px; outline: none; }
.search-bar__btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--c-blue); color: #fff; padding: 0 22px; font-weight: 600; }
.masthead__actions { display: flex; gap: 28px; align-items: center; }
.hd-action { display: flex; align-items: center; gap: 10px; color: var(--c-text); }
.hd-action__icon { position: relative; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; background: var(--c-blue-50); color: var(--c-blue); }
.hd-action--hotline .hd-action__icon { background: var(--c-orange); color: #fff; }
.hd-action__text { display: flex; flex-direction: column; line-height: 1.25; }
.hd-action__text small { font-size: 12px; color: var(--c-text-2); }
.hd-action__text strong { font-size: 15px; font-weight: 700; white-space: nowrap; }
.hd-action--hotline strong { color: var(--c-orange); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--c-orange); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }

.mainnav { background: var(--c-blue); position: relative; z-index: 40; }
.mainnav__inner { display: flex; align-items: center; }
.catnav { position: relative; flex: 0 0 280px; }
.catnav__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px 18px; border: 0; background: var(--c-orange); color: #fff; font-weight: 700; font-size: 14px; }
.catnav__dropdown { display: none; position: absolute; left: 0; top: 100%; width: 280px; background: #fff; border: 1px solid var(--c-border); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg); }
.catnav:hover .catnav__dropdown, .catnav.is-open .catnav__dropdown { display: block; }
.primary-menu { display: flex; list-style: none; padding-left: 12px; flex: 1; }
.primary-menu > li { position: relative; }
.primary-menu > li > a { display: flex; align-items: center; gap: 4px; padding: 15px 14px; color: #fff; font-weight: 600; font-size: 14px; }
.primary-menu > li.current-menu-item > a, .primary-menu > li > a:hover { background: var(--c-blue-dark); color: #fff; }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; background: #fff; border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg); padding: 8px 0; }
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 8px 16px; color: var(--c-text); font-size: 14px; }
.primary-menu .sub-menu a:hover { background: var(--c-blue-50); color: var(--c-blue); }
.mainnav__pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; }
.mainnav__pill:hover { color: #fff; background: rgba(255, 255, 255, .24); }

/* Mega menu (cột danh mục) */
.mega { list-style: none; padding: 6px 0; position: relative; }
.mega__item { position: static; }
.mega__link { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 16px; color: var(--c-text); font-size: 14px; font-weight: 500; }
.mega__link:hover, .mega__item:hover > .mega__link { background: var(--c-blue-50); color: var(--c-blue); }
.mega__icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; color: var(--c-blue); }
.mega__label { flex: 1; }
.mega__caret { color: var(--c-muted); }
.mega__panel { display: none; position: absolute; left: 100%; top: 0; min-height: 100%; width: min(960px, calc(100vw - 340px)); background: #fff; border: 1px solid var(--c-border); border-radius: 0 12px 12px 0; box-shadow: var(--shadow-lg); padding: 20px 24px; z-index: 50; }
.mega--dropdown .mega__item:hover > .mega__panel, .mega--sidebar .mega__item:hover > .mega__panel { display: block; }
/* Khung mega bám theo cả cột danh mục (đỉnh/đáy thẳng hàng), cách cột 12px, bo góc đều; cầu nối vô hình để rê chuột sang không bị tắt. */
.hero__cats .mega, .catnav__dropdown .mega { position: static; }
.hero__cats .mega__panel, .catnav__dropdown .mega__panel { top: 0; bottom: 0; left: calc(100% + 12px); min-height: 0; border-radius: 16px; overflow-y: auto; }
.catnav__dropdown .mega__panel { top: -1px; bottom: auto; min-height: calc(100% + 1px); }
.hero__cats .mega__item:hover > .mega__link::after, .catnav__dropdown .mega__item:hover > .mega__link::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 14px; }
.mega__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 24px; }
.mega__heading { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--c-orange); text-transform: uppercase; letter-spacing: .04em; }
.mega__col ul { list-style: none; }
.mega__col li a { display: block; padding: 4px 0; font-size: 14px; color: var(--c-text-2); }
.mega__col li a:hover { color: var(--c-blue); }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: 1000; }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: #fff; display: flex; flex-direction: column; animation: drawer-in .2s ease-out; }
@keyframes drawer-in { from { transform: translateX(-100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 16px; }
.drawer__head img { width: 120px; }
.drawer__head .icon-btn { background: var(--c-page); color: var(--c-text); border-radius: 999px; }
.drawer__search { display: flex; align-items: center; gap: 8px; margin: 0 16px 12px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--c-page); color: var(--c-muted); }
.drawer__search input { flex: 1; border: 0; background: transparent; padding: 10px 0; outline: none; }
.drawer__tabs { display: flex; border-bottom: 1px solid var(--c-border); }
.drawer__tabs button { flex: 1; border: 0; background: none; padding: 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--c-text-2); border-bottom: 3px solid transparent; }
.drawer__tabs button.is-active { color: var(--c-blue); border-bottom-color: var(--c-orange); }
.drawer__body { flex: 1; overflow-y: auto; padding-bottom: 80px; }
.drawer__pane { display: none; }
.drawer__pane.is-active { display: block; }
.mega--mobile .mega__item { border-bottom: 1px solid var(--c-border); }
.mega--mobile .mega__link { padding: 12px 16px; }
.mega--mobile .mega__panel { position: static; width: auto; box-shadow: none; border: 0; border-radius: 0; background: var(--c-page); padding: 12px 16px 14px; min-height: 0; }
.mega--mobile .mega__item.is-open > .mega__panel { display: block; }
.mega--mobile .mega__item.is-open .mega__caret { transform: rotate(180deg); }
.mega--mobile .mega__cols { grid-template-columns: 1fr; gap: 12px; }
.mega--mobile .mega__col ul { display: flex; flex-wrap: wrap; gap: 6px; }
.mega--mobile .mega__col li a { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--c-border); background: #fff; font-size: 12px; font-weight: 500; }
.drawer__menu { list-style: none; }
.drawer__menu a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--c-border); color: var(--c-text); font-weight: 500; }
.drawer__menu .sub-menu { list-style: none; padding-left: 16px; display: none; background: var(--c-page); }
.drawer__menu .menu-item-has-children { position: relative; }
.drawer__menu .menu-item-has-children > a .menu-caret { display: none; }
.drawer__menu .menu-item-has-children.is-open > .sub-menu { display: block; }
.drawer__sub-toggle { position: absolute; top: 0; right: 0; width: 48px; height: 47px; border: 0; border-left: 1px solid var(--c-border); background: none; color: var(--c-text-2); display: inline-flex; align-items: center; justify-content: center; }
.drawer__sub-toggle .ti { transition: transform .2s; }
.is-open > .drawer__sub-toggle .ti { transform: rotate(180deg); }
.drawer__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 12px 16px 16px; background: #fff; box-shadow: 0 -2px 8px rgba(0, 0, 0, .08); }
.drawer__foot .btn { flex: 1; padding: 11px; }
.drawer__foot .btn--soft { flex: 0 0 auto; }
body.drawer-open { overflow: hidden; }

/* Breadcrumb */
.breadcrumb { padding-top: 16px; padding-bottom: 4px; font-size: 13px; color: var(--c-text-2); }
.breadcrumb__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--c-text-2); }
.breadcrumb a:hover { color: var(--c-blue); }
.breadcrumb .sep { color: var(--c-muted); }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--c-blue-dark); color: rgba(255, 255, 255, .85); font-size: 14px; }
.site-footer__cols { display: grid; grid-template-columns: 400px repeat(4, 1fr); gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__logo img { width: 170px; }
.site-footer__desc { margin: 16px 0; line-height: 1.6; }
.site-footer__contact { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.site-footer__contact li { display: flex; gap: 10px; color: #fff; }
.site-footer__contact .ti { color: var(--c-orange); margin-top: 2px; }
.site-footer__contact a { color: #fff; }
.social { display: flex; gap: 10px; align-items: center; }
.social__btn { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.social__btn:hover { background: var(--c-orange); color: #fff; }
.site-footer__col summary { list-style: none; display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; padding-bottom: 12px; margin-bottom: 14px; position: relative; cursor: default; }
.site-footer__col summary::-webkit-details-marker { display: none; }
.site-footer__col summary::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--c-orange); }
.site-footer__toggle { display: none; }
.site-footer__links { list-style: none; display: grid; gap: 10px; }
.site-footer__links a { color: rgba(255, 255, 255, .8); }
.site-footer__links a:hover { color: var(--c-orange); }
.site-footer__badges { display: grid; gap: 12px; margin-top: 16px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .7); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }

/* Nút liên hệ nổi */
.float-contact { position: fixed; right: 24px; bottom: 120px; z-index: 90; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.float-contact a { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); color: #fff; }
.float-contact__zalo { box-shadow: none !important; }
.float-contact__zalo img { width: 52px; height: 52px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2)); }
.float-contact__phone { background: var(--c-orange); animation: ring 2.2s infinite; }
.float-contact__top { background: var(--c-text-2); }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 130, 31, .45); } 50% { box-shadow: 0 0 0 12px rgba(244, 130, 31, 0); } }

.bottom-bar { display: none; }

/* --- Trang thường, chính sách ------------------------------------------ */
.page-plain { margin-top: 16px; }
.page-plain__card { padding: 40px 48px; }
.entry-content { font-size: 16px; line-height: 1.7; color: var(--c-text); }
.entry-content h2 { font-size: 24px; font-weight: 800; color: var(--c-blue); margin: 1.4em 0 .6em; }
.entry-content h3 { font-size: 19px; font-weight: 700; margin: 1.2em 0 .5em; }
.entry-content img { border-radius: 12px; margin: 1em auto; }
.entry-content figure, .entry-content .wp-caption { max-width: 100% !important; height: auto; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content iframe, .entry-content table { max-width: 100%; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; border-radius: 12px; overflow: hidden; }
.entry-content th { background: var(--c-blue); color: #fff; text-align: left; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid var(--c-border); }
.entry-content tr:nth-child(even) td { background: var(--c-page); }
.entry-content blockquote { margin: 1em 0; padding: 16px 20px; border-left: 4px solid var(--c-orange); background: var(--c-orange-50); border-radius: 12px; }

.policy { display: grid; grid-template-columns: 300px 1fr; gap: 24px; margin-top: 16px; align-items: start; }
.policy__menu { padding: 16px 12px; position: sticky; top: 16px; }
.policy__menu-title { margin: 0 8px 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--c-blue); }
.policy__links { list-style: none; display: grid; gap: 4px; }
.policy__links a { display: block; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--c-text); font-weight: 500; font-size: 14px; }
.policy__links a:hover { background: var(--c-blue-50); color: var(--c-blue); }
.policy__links .current-menu-item a { background: var(--c-blue); color: #fff; font-weight: 700; }
.policy__content { padding: 36px 40px; min-width: 0; }

/* --- Blog ---------------------------------------------------------------- */
.blog-head { margin-top: 12px; }
.blog-head__desc { color: var(--c-text-2); max-width: 760px; }
.blog-featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 20px; }
.blog-featured__side { display: grid; gap: 20px; }
.post-hero { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--c-blue-dark); color: #fff; }
.post-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(1, 31, 77, .92) 100%); }
.post-hero__body { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.post-hero__title { font-size: 26px; font-weight: 800; line-height: 1.3; color: #fff; }
.post-hero__excerpt { color: rgba(255, 255, 255, .85); }
.with-sidebar { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-top: 28px; align-items: start; }
.with-sidebar__main { min-width: 0; }
.with-sidebar__side { display: grid; gap: 20px; }
.post-list { padding: 8px 24px; }
.post-row { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.post-row:last-child { border-bottom: 0; }
.post-row__thumb { flex: 0 0 240px; }
.post-row__thumb img { width: 240px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.post-row__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-row__title { font-size: 19px; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row__title a { color: var(--c-text); }
.post-row__title a:hover { color: var(--c-blue); }
.post-row__excerpt { margin: 0; color: var(--c-text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row--compact { padding: 14px 16px; border: 1px solid var(--c-border); align-items: center; }
.post-row--compact .post-row__thumb { flex-basis: 200px; }
.post-row--compact .post-row__thumb img { width: 200px; }
.post-row--compact .post-row__title { font-size: 17px; -webkit-line-clamp: 3; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--c-muted); font-size: 12px; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta--sm { font-size: 12px; }
.side-box { padding: 20px; }
.side-box__title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--c-blue); margin: 0 0 14px; }
.side-box__title .ti { color: var(--c-orange); }
.mini-post { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; color: var(--c-text); font-weight: 600; font-size: 14px; }
.mini-post img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.rank-list { list-style: none; counter-reset: rank; display: grid; gap: 12px; padding: 0; margin: 0; }
.rank-list li { counter-increment: rank; display: flex; gap: 12px; font-size: 14px; font-weight: 600; }
.rank-list li::before { content: counter(rank); flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--c-blue-50); color: var(--c-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.rank-list li:first-child::before { background: var(--c-orange); color: #fff; }
.rank-list a { color: var(--c-text); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
.mini-grid__item { display: flex; flex-direction: column; gap: 6px; color: var(--c-text); font-size: 12px; font-weight: 600; }
.mini-grid__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.mini-grid__item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pager { margin-top: 28px; }
.pager .nav-links, .pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 8px; border: 1px solid var(--c-border); background: #fff; color: var(--c-text); font-weight: 600; font-size: 14px; }
.pager .page-numbers.current { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; }

/* Bài viết */
.single-post { margin-top: 16px; }
.article { padding: 40px 48px; min-width: 0; }
.article__title { font-size: 34px; font-weight: 800; line-height: 1.3; margin: 12px 0; }
.article .post-meta { font-size: 13px; color: var(--c-text-2); margin-bottom: 20px; }
.article__cover img { width: 100%; border-radius: 14px; }
.article__cover { margin: 0 0 20px; }
.toc { margin: 1.2em 0; padding: 16px 20px; border-radius: 12px; background: var(--c-blue-50); border-left: 4px solid var(--c-blue); }
.toc__head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--c-blue); cursor: pointer; list-style: none; }
.toc__head::-webkit-details-marker { display: none; }
.toc__toggle { margin-left: auto; display: inline-flex; transition: transform .2s; }
.toc:not([open]) .toc__toggle { transform: rotate(180deg); }
.toc__list { list-style: none; padding: 8px 0 0 !important; margin: 0 !important; counter-reset: h2; }
.toc__list li { margin: 0 0 4px; font-size: 15px; }
.toc__list a { color: var(--c-text); }
.toc__l2 { counter-increment: h2; counter-reset: h3; font-weight: 600; }
.toc__l2::before { content: counter(h2) ". "; color: var(--c-blue); font-weight: 700; }
.toc__l3 { counter-increment: h3; padding-left: 20px; }
.toc__l3 a { color: var(--c-text-2); }
.toc__l3::before { content: counter(h2) "." counter(h3) " "; color: var(--c-blue); font-weight: 600; }
.related-posts { margin-top: 32px; display: grid; gap: 16px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.news-card__cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.news-card__title { font-size: 16px; font-weight: 700; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__title a { color: var(--c-text); }
.news-card__excerpt { font-size: 14px; color: var(--c-text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Bình luận */
.comments { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.comments__title { font-size: 22px; font-weight: 800; color: var(--c-blue); }
.comment-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; margin-bottom: 20px; }
.comment-form .comment-form-comment { grid-column: 1 / -1; margin: 0; }
.comment-form p { margin: 0; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; border: 1px solid var(--c-border); background: #fff; border-radius: var(--radius-sm); padding: 12px 14px; outline: none; }
.comment-form textarea { min-height: 90px; resize: vertical; }
.comment-form .form-submit { align-self: stretch; }
.comment-form .submit { height: 100%; }
.comment-form-cookies-consent { grid-column: 1 / -1; font-size: 13px; color: var(--c-text-2); }
.cmt-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.cmt { display: flex; gap: 12px; }
.cmt .children { list-style: none; padding: 12px 0 0 52px; display: grid; gap: 16px; }
.cmt__avatar { flex: 0 0 40px; height: 40px; border-radius: 999px; background: var(--c-orange-50); color: var(--c-orange); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.cmt__avatar.is-admin { background: var(--c-blue); color: #fff; }
.cmt__body { flex: 1; min-width: 0; }
.cmt__head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cmt__time { color: var(--c-muted); font-size: 12px; }
.cmt__text { font-size: 14px; }
.cmt__text p { margin: 4px 0; }
.cmt__actions a { font-size: 12px; font-weight: 600; }

/* Dự án */
.projects-hero { background: var(--grad-blue); color: #fff; padding: 0 0 40px; }
.projects-hero .breadcrumb, .projects-hero .breadcrumb a { color: rgba(255, 255, 255, .85); padding-left: 0; padding-right: 0; }
.projects-hero__title { color: #fff; font-size: 36px; font-weight: 800; margin: 12px 0 8px; }
.projects-hero__desc { max-width: 720px; color: rgba(255, 255, 255, .9); margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.project-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.project-card__img { position: relative; display: block; }
.project-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-card__region { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; background: #fff; color: var(--c-blue); font-size: 11px; font-weight: 700; }
.project-card__region .ti { color: var(--c-orange); }
.project-card__body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.project-card__title { font-size: 16px; font-weight: 700; margin: 0; }
.project-card__title a { color: var(--c-text); }
.project-card__excerpt { margin: 0; font-size: 13px; color: var(--c-text-2); }

.empty-state { padding: 48px; text-align: center; margin-top: 24px; }
.empty-state__code { font-size: 64px; font-weight: 800; color: var(--c-blue); margin: 0; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1200px) {
	.hd-action--showroom { display: none; }
	.site-footer__cols { grid-template-columns: 1fr 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
	.news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
	.topbar__info .topbar__item--addr, .topbar__info .topbar__item--mail, .topbar__menu { display: none; }
	.topbar__item--hotline { display: inline-flex; margin: 0 auto; }
	.mainnav { display: none; }
	.masthead__inner { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 12px; }
	.masthead__burger { display: inline-flex; order: 1; }
	.masthead__logo { order: 2; flex: 1; display: flex; justify-content: center; }
	.masthead__logo img { width: 130px; }
	.masthead__actions { order: 3; gap: 0; }
	.hd-action--hotline, .hd-action__text { display: none; }
	.hd-action__icon { border-radius: var(--radius-sm); }
	.search-bar { order: 4; flex-basis: 100%; border-width: 1.5px; border-radius: 10px; background: var(--c-page); }
	.search-bar__cat { display: none; }
	.search-bar__input { background: transparent; padding: 10px 14px; }
	.search-bar__btn span { display: none; }
	.search-bar__btn { margin: 4px; border-radius: 8px; padding: 0 12px; }
	.site-header { position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow); }
	.with-sidebar, .policy, .blog-featured { grid-template-columns: 1fr; }
	.policy__menu { position: static; }
	.project-grid { grid-template-columns: repeat(2, 1fr); }
	.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; padding: 8px 8px 12px; background: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, .1); }
	.bottom-bar__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; color: var(--c-text-2); font-size: 11px; font-weight: 500; }
	.bottom-bar__item.is-active { color: var(--c-blue); font-weight: 600; }
	.bottom-bar__callbtn { width: 46px; height: 46px; margin-top: -26px; border-radius: 999px; background: var(--c-orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(244, 130, 31, .4); }
	.bottom-bar__call { color: var(--c-orange); font-weight: 700; }
	body { padding-bottom: 72px; }
	.float-contact { display: none; }
}
@media (max-width: 768px) {
	body { font-size: 14px; }
	.page-title { font-size: 24px; }
	.site-footer__cols { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
	.site-footer__col { border-top: 1px solid rgba(255, 255, 255, .14); padding: 14px 0; }
	.site-footer__col summary { cursor: pointer; margin-bottom: 0; padding-bottom: 0; }
	.site-footer__col summary::after { display: none; }
	.site-footer__col[open] summary { margin-bottom: 12px; }
	.site-footer__col[open] .site-footer__toggle .ti { transform: rotate(45deg); }
	.site-footer__col summary { margin: 0; padding: 0; cursor: pointer; }
	.site-footer__col summary::after { display: none; }
	.site-footer__col[open] summary { margin-bottom: 12px; }
	.site-footer__toggle { display: inline-flex; }
	.site-footer__bottom-inner { flex-direction: column; gap: 4px; }
	.post-row__thumb { flex-basis: 116px; }
	.post-row__thumb img { width: 116px; }
	.post-row__title { font-size: 15px; -webkit-line-clamp: 3; }
	.post-row__excerpt, .post-row .link-more { display: none; }
	.post-hero { min-height: 240px; }
	.post-hero__title { font-size: 18px; }
	.post-hero__body { left: 16px; right: 16px; bottom: 16px; }
	.post-hero__excerpt { display: none; }
	.article, .page-plain__card, .policy__content { padding: 20px 16px; }
	.article__title { font-size: 24px; }
	.comment-form { grid-template-columns: 1fr; }
	.project-grid, .news-grid { grid-template-columns: 1fr; }
	.projects-hero__title { font-size: 24px; }
}

/* Thẻ "Tahico tư vấn miễn phí" ở cột phải blog (Figma) */
.side-consult { padding: 20px; border-radius: var(--radius); background: var(--grad-blue); color: #fff; }
.side-consult__title { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.side-consult p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .88); }

/* ==========================================================================
   Trang chính sách (Figma "10 Trang chính sách")
   ========================================================================== */
.policy__links li a { display: flex; align-items: center; gap: 12px; }
.policy__links li a > span { flex: 1; }
.policy__ic { color: var(--c-blue); flex-shrink: 0; }
.policy__chev { color: var(--c-muted); flex-shrink: 0; }
.policy__links .current-menu-item > a .policy__ic, .policy__links .current-menu-item > a .policy__chev { color: #fff; }
.policy__content .eyebrow { margin: 0 0 10px; }
.policy__title { color: var(--c-blue); font-size: 30px; }
/* Nội dung nhập từ tahico.com (Flatsome): bỏ khung cột, accordion hiện dạng các mục tiêu đề */
.policy__content .entry-content .row, .policy__content .entry-content .col, .policy__content .entry-content .col-inner { display: block; width: auto; max-width: none; padding: 0; margin: 0; }
.policy__content .entry-content .col:has(.sidebar-wrapper), .policy__content .entry-content .sidebar-wrapper { display: none; }
.policy__content .accordion-item { margin: 0 0 8px; }
.policy__content .accordion-title { display: block; margin: 1.3em 0 .6em; padding: 0; border: 0; outline: none; color: var(--c-text); font-size: 20px; font-weight: 700; line-height: 1.35; text-decoration: none; pointer-events: none; }
.policy__content .accordion-title br, .policy__content .accordion-title .toggle { display: none; }
.policy__content .accordion-inner { display: block !important; padding: 0; }
.policy__content .accordion-inner > p:empty, .policy__content .entry-content > p:empty { display: none; }
.policy__content .entry-content ul { list-style: none; padding-left: 0; }
.policy__content .entry-content ul li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.policy__content .entry-content ul li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 999px; background: var(--c-orange-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4821F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
/* Breadcrumb: "Trang chủ" hiển thị bằng icon ngôi nhà (Figma) */
.breadcrumb__inner > a:first-child { display: inline-flex; width: 16px; height: 16px; font-size: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E") center / contain no-repeat; }
.breadcrumb__inner > :last-child { color: var(--c-text); font-weight: 600; }

/* Khối "bài viết" Flatsome trong nội dung nhập từ tahico.com (div.post-item): hiển thị dạng lưới thẻ có link */
.entry-content .row:has(> .post-item) { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 1.5em 0; }
.entry-content .post-item .col-inner > a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: #fff; color: var(--c-text); text-decoration: none; transition: box-shadow .2s; }
.entry-content .post-item .col-inner > a:hover { box-shadow: var(--shadow-lg); color: var(--c-blue); }
.entry-content .post-item .box { display: flex; flex-direction: column; }
.entry-content .post-item .box-image { width: 100% !important; }
.entry-content .post-item .image-cover { padding-top: 0 !important; }
.entry-content .post-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; border-radius: 0; }
.entry-content .post-item .box-text { padding: 12px 14px; }
.entry-content .post-item .post-title { margin: 0; font-size: 14px; line-height: 1.45; }
.entry-content .post-item .is-divider, .entry-content .post-item .from_the_blog_excerpt { display: none; }
.policy__content .entry-content .row:has(> .post-item) { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 1em 0 0; }
.policy__content .entry-content .row:has(> .post-item) > .post-item { width: auto; }
.entry-content .post-item .box-image { height: auto !important; }
.entry-content .section-title-container, .entry-content .section-title { margin: 1.5em 0 .5em; font-size: 18px; }
.entry-content .section-title b { display: none; }
.entry-content .flickity-viewport, .entry-content .slider { height: auto !important; }
/* Trang chính sách: bỏ khối "Bài viết mới" của Flatsome (Figma không có) */
.policy__content .entry-content .col:has(.post-item), .policy__content .entry-content .container.section-title-container, .policy__content .entry-content .section-title-container { display: none !important; }

.site-footer__sep { margin: 0 12px; opacity: .5; }
.site-footer__dev a { color: var(--c-orange); font-weight: 700; text-decoration: none; transition: color .15s; }
.site-footer__dev a:hover { color: #fff; text-decoration: underline; }
