/* =========================================================================
   Thiên Phú – giao diện trên nền Flatsome
   ========================================================================= */

:root {
	--tp-blue: #0b3a8c;
	--tp-blue-d: #072a6a;
	--tp-blue-dd: #051f52;
	--tp-blue-l: #1b5bbf;
	--tp-red: #e3141f;
	--tp-red-d: #bf0d17;
	--tp-bg: #f2f6fc;
	--tp-line: #dbe3ef;
	--tp-text: #1d2a3d;
	--tp-muted: #5b6b82;
	--tp-radius: 8px;
	--tp-shadow: 0 2px 10px rgba(11, 58, 140, .08);
	--tp-shadow-h: 0 10px 26px rgba(11, 58, 140, .16);
}

body { color: var(--tp-text); }
.tp-red { color: var(--tp-red); }
.tp-ic { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.tp-empty { color: var(--tp-muted); font-style: italic; }

/* ---------- Nút ---------- */
.tp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .6em 1.3em; border-radius: 6px; border: 2px solid transparent;
	font-weight: 700; line-height: 1.2; text-decoration: none; transition: .2s;
	white-space: nowrap;
}
.tp-btn .tp-ic { font-size: 1.15em; }
.tp-btn-lg { font-size: 17px; padding: .7em 1.4em; }
.tp-btn-red { background: var(--tp-red); color: #fff; }
.tp-btn-red:hover { background: var(--tp-red-d); color: #fff; }
.tp-btn-red-o { border-color: var(--tp-red); color: var(--tp-red); background: #fff; }
.tp-btn-red-o:hover { background: var(--tp-red); color: #fff; }
.tp-btn-blue-o { border-color: var(--tp-blue); color: var(--tp-blue); background: #fff; }
.tp-btn-blue-o:hover { background: var(--tp-blue); color: #fff; }
.tp-btn-white { background: #fff; color: var(--tp-red); }
.tp-btn-white:hover { background: #fff3f3; color: var(--tp-red-d); }
.tp-btn-white-o { background: #fff; color: var(--tp-blue); }
.tp-btn-white-o:hover { background: #eef4ff; color: var(--tp-blue); }
.tp-btn-sm {
	display: inline-flex; align-items: center; gap: 4px;
	background: var(--tp-red); color: #fff; font-size: 12px; font-weight: 700;
	padding: 5px 12px; border-radius: 4px; line-height: 1.3; transition: .2s;
}
.tp-btn-sm:hover { background: var(--tp-blue); color: #fff; }

/* =========================================================================
   HEADER
   ========================================================================= */
#top-bar { font-size: 13px; }
.tp-topbar-addr { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.tp-topbar-addr .tp-ic { font-size: 15px; }

.tp-socials { display: inline-flex; align-items: center; gap: 6px; }
.tp-soc {
	width: 24px; height: 24px; border-radius: 5px; background: #fff; color: var(--tp-blue);
	display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: .2s;
}
.tp-soc:hover { transform: translateY(-2px); color: var(--tp-red); }
.tp-soc-zalo span { font-size: 9px; font-weight: 800; letter-spacing: -.2px; }
.tp-socials-lg .tp-soc { width: 34px; height: 34px; border-radius: 50%; font-size: 19px; }
.tp-socials-lg .tp-soc-zalo span { font-size: 11px; }

/* Main header */
#masthead .header-inner { gap: 20px; }
#masthead .flex-left.hide-for-medium { flex: 1 1 auto; display: flex; justify-content: center; }
#masthead .flex-left .nav { justify-content: center; }
#masthead .flex-right .header-search-form { min-width: 260px; }
.tp-head-title { text-align: center; line-height: 1.15; }
.tp-head-l1 { color: var(--tp-blue); font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: .2px; }
.tp-head-l2 { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.tp-head-l2 i { width: 2px; height: 30px; background: var(--tp-blue); display: block; }
.tp-brand-red { color: var(--tp-red); font-weight: 900; font-style: italic; font-size: 32px; text-transform: uppercase; }
.tp-brand-blue { color: var(--tp-blue); font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: 1px; }
.tp-brand-blue sup { font-size: 11px; top: -1.4em; }

.header-search-form .searchform input[type=search] {
	border-radius: 4px 0 0 4px; border-color: var(--tp-line); box-shadow: none; height: 38px; font-size: 13px;
}
.header-search-form .searchform .button.icon {
	border-radius: 0 4px 4px 0; height: 38px; min-width: 42px; background: var(--tp-red);
}

/* Bottom nav */
#wide-nav { background: var(--tp-blue) !important; }
#wide-nav > .flex-row { min-height: 44px; }
.header-bottom-nav > li { margin: 0 !important; }
.header-bottom-nav > li > a {
	color: #fff !important; font-size: 14px; font-weight: 700; text-transform: uppercase;
	padding: 0 22px !important; line-height: 44px; height: 44px; transition: background .2s;
}
.header-bottom-nav > li:hover > a,
.header-bottom-nav > li.active > a,
.header-bottom-nav > li.current-menu-item > a,
.header-bottom-nav > li.current-menu-ancestor > a,
.header-bottom-nav > li.current_page_parent > a { background: var(--tp-red); color: #fff !important; }
.header-bottom-nav > li.menu-item-home > a::before {
	content: ""; display: inline-block; width: 16px; height: 16px; margin: -3px 7px 0 0; vertical-align: middle;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 1.5 11.3l1.3 1.5L4 11.8V21h6v-6h4v6h6v-9.2l1.2 1 1.3-1.5Z'/%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'%3E%3Cpath d='M12 2.5 1.5 11.3l1.3 1.5L4 11.8V21h6v-6h4v6h6v-9.2l1.2 1 1.3-1.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.header-bottom-nav .nav-dropdown { border-top: 3px solid var(--tp-red); border-radius: 0 0 6px 6px; }
.header-bottom-nav .nav-dropdown li a { font-size: 14px; color: var(--tp-text); }
.header-bottom-nav .nav-dropdown li a:hover { color: var(--tp-red); }

/* =========================================================================
   TIÊU ĐỀ KHỐI
   ========================================================================= */
.tp-title { margin-bottom: 16px; }
.tp-title h1, .tp-title h2, .tp-title h3 {
	display: inline-flex; align-items: center; gap: 14px; margin: 0;
	color: var(--tp-blue); font-size: 25px; font-weight: 800; text-transform: uppercase; line-height: 1.2;
}
.tp-title h1 span, .tp-title h2 span, .tp-title h3 span { color: var(--tp-red); margin-left: -6px; }
.tp-title-left h1::after, .tp-title-left h2::after, .tp-title-left h3::after {
	content: ""; width: 44px; height: 4px; background: var(--tp-red); border-radius: 2px; flex: none;
}
.tp-title-center { text-align: center; }
.tp-title-center h1::before, .tp-title-center h1::after,
.tp-title-center h2::before, .tp-title-center h2::after,
.tp-title-center h3::before, .tp-title-center h3::after {
	content: ""; width: 70px; height: 3px; background: var(--tp-red); border-radius: 2px; flex: none;
}

/* =========================================================================
   HERO
   ========================================================================= */
.tp-hero { overflow: hidden; }
.tp-hero .section-bg { background: linear-gradient(180deg, #e3eefa 0%, #f5f9fd 100%); }
.tp-hero-row { align-items: center; }
.tp-hero-text { position: relative; z-index: 2; padding: 34px 0 30px; }
.tp-hero-l1 { color: var(--tp-blue); font-weight: 800; font-size: 22px; text-transform: uppercase; margin: 0; line-height: 1.2; }
.tp-hero-l2 { color: var(--tp-blue); font-weight: 900; font-size: 40px; text-transform: uppercase; margin: 2px 0 6px; line-height: 1.05; }
.tp-hero .tp-head-l2 { justify-content: flex-start; margin-bottom: 18px; }
.tp-callout {
	display: flex; align-items: center; gap: 0; margin: 0 0 16px -6px; max-width: 520px;
}
.tp-callout-ic {
	width: 64px; height: 64px; flex: none; border-radius: 50%; background: #fff; color: var(--tp-red);
	display: flex; align-items: center; justify-content: center; font-size: 34px;
	box-shadow: 0 6px 16px rgba(227, 20, 31, .25); position: relative; z-index: 1;
	transform: rotate(-12deg);
}
.tp-callout-text {
	margin-left: -16px; padding: 8px 22px 8px 30px; background: #fff;
	border: 3px solid var(--tp-blue); border-radius: 0 40px 40px 0;
	font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.2; font-size: 19px;
	color: var(--tp-blue); box-shadow: var(--tp-shadow);
}
.tp-callout-text span { color: var(--tp-red); display: block; }
.tp-checklist { list-style: none; margin: 0 0 12px; padding: 0 0 0 54px; }
.tp-checklist li {
	display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
	margin: 0 0 7px calc(var(--i, 0) * 8px); padding: 5px 20px 5px 8px;
	background: linear-gradient(90deg, var(--tp-blue) 0%, var(--tp-blue-l) 100%);
	color: #fff; font-weight: 600; font-style: italic; font-size: 15px; border-radius: 30px 6px 6px 30px;
	box-shadow: 0 3px 8px rgba(11, 58, 140, .2);
}
.tp-checklist .tp-ic { font-size: 20px; background: #fff; color: var(--tp-blue); border-radius: 50%; }
.tp-tagline {
	font-family: "Dancing Script", cursive; color: var(--tp-blue); font-size: 26px; font-weight: 700;
	line-height: 1.1; transform: rotate(-6deg); margin: 6px 0 0 160px;
}
.tp-hero-img { position: relative; }
.tp-hero-img img {
	width: 100%; display: block;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 16%);
}

/* =========================================================================
   DANH MỤC
   ========================================================================= */
.tp-cat-grid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 16px; }
.tp-cat {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius); box-shadow: var(--tp-shadow); overflow: hidden; transition: .25s;
}
.tp-cat:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-h); border-color: #c5d3ea; }
.tp-cat-img { aspect-ratio: 4 / 3; padding: 10px 10px 0; display: flex; align-items: center; justify-content: center; }
.tp-cat-img img { width: 100%; height: 100%; object-fit: contain; }
.tp-cat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px 12px; min-height: 58px; }
.tp-cat-name { color: var(--tp-blue); font-weight: 800; font-size: 14px; text-transform: uppercase; line-height: 1.25; text-align: center; flex: 1; }
.tp-arrow {
	width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--tp-red); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 14px; transition: .2s;
}
.tp-cat:hover .tp-arrow { transform: translateX(3px); }

/* =========================================================================
   SẢN PHẨM
   ========================================================================= */
.tp-products-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tp-products-head .tp-title { margin: 0; }
.tp-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-tab {
	margin: 0; padding: 5px 16px; min-height: 0; line-height: 1.5; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0;
	border: 1px solid var(--tp-line); border-radius: 4px; background: #fff; color: var(--tp-text); cursor: pointer; transition: .2s;
}
.tp-tab:hover { border-color: var(--tp-red); color: var(--tp-red); }
.tp-tab.is-active { background: var(--tp-red); border-color: var(--tp-red); color: #fff; }
.tp-tab-panel { display: none; }
.tp-tab-panel.is-active { display: block; animation: tpFade .35s ease; }
@keyframes tpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tp-prod-grid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 16px; }
.tp-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%;
	background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
	box-shadow: var(--tp-shadow); padding: 12px 12px 14px; transition: .25s;
}
.tp-card:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-h); }
.tp-card-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 10px; overflow: hidden; }
.tp-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.tp-card:hover .tp-card-img img { transform: scale(1.05); }
.tp-card-name { font-size: 14px; font-weight: 700; line-height: 1.35; margin: 0 0 10px; flex: 1; }
.tp-card-name a { color: var(--tp-blue); }
.tp-card-name a:hover { color: var(--tp-red); }
.tp-card-default .tp-card-name { text-align: left; align-self: stretch; }
.tp-card-mini .tp-card-name { margin: 0; font-size: 15px; }

.tp-prod-slider { margin-left: -8px !important; margin-right: -8px !important; }
.tp-prod-slider .col { padding: 0 8px 16px !important; }
.tp-prod-slider .flickity-prev-next-button {
	width: 38px; height: 38px; background: #fff; border-radius: 50%; color: var(--tp-blue);
	box-shadow: var(--tp-shadow); opacity: 1 !important;
}

/* =========================================================================
   VỀ CHÚNG TÔI + SỐ LIỆU
   ========================================================================= */
.tp-about-img img { border-radius: var(--tp-radius); box-shadow: 0 10px 26px rgba(11, 58, 140, .18); border: 4px solid #fff; }
.tp-about p { color: var(--tp-text); font-size: 15px; line-height: 1.6; }
.tp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; }
.tp-stat {
	display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius); padding: 10px 12px; box-shadow: var(--tp-shadow);
}
.tp-stat > .tp-ic { font-size: 32px; color: var(--tp-blue); }
.tp-stat strong { display: block; white-space: nowrap; color: var(--tp-red); font-size: 17px; font-weight: 900; line-height: 1.1; }
.tp-stat span { display: block; font-size: 12px; color: var(--tp-muted); line-height: 1.3; }

/* =========================================================================
   ỨNG DỤNG
   ========================================================================= */
.tp-apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tp-app {
	position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--tp-radius); overflow: hidden;
	background: linear-gradient(140deg, #2a6fd0 0%, var(--tp-blue) 60%, var(--tp-blue-dd) 100%);
	box-shadow: var(--tp-shadow); color: #fff;
}
.tp-app-1 { background: linear-gradient(140deg, #3d8be0 0%, #164c9c 60%, #0a2f6b 100%); }
.tp-app-2 { background: linear-gradient(160deg, #ffb35c 0%, #e2603b 38%, #3a2d6c 100%); }
.tp-app-3 { background: linear-gradient(160deg, #8cc3f5 0%, #3f7fc6 50%, #24456f 100%); }
.tp-app-4 { background: linear-gradient(170deg, #9ad1ff 0%, #3c8de0 50%, #0f5c3d 100%); }
.tp-app > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tp-app:hover > img { transform: scale(1.06); }
.tp-app-art { position: absolute; inset: 0 0 40px; display: flex; align-items: center; justify-content: center; font-size: 66px; color: rgba(255, 255, 255, .55); }
.tp-app-art .tp-ic { stroke-width: 1.2; transition: transform .4s; }
.tp-app:hover .tp-app-art .tp-ic { transform: scale(1.1); }
.tp-app-label {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px;
	padding: 8px 12px; background: rgba(7, 42, 106, .9); font-size: 13px; font-weight: 700; line-height: 1.25;
}
.tp-app-label .tp-ic { font-size: 26px; flex: none; }

/* =========================================================================
   TIN TỨC + ĐẠI LÝ
   ========================================================================= */
.tp-news { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
.tp-news-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius); overflow: hidden; box-shadow: var(--tp-shadow); transition: .25s; height: 100%;
}
.tp-news-card:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-h); }
.tp-news-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tp-bg); }
.tp-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tp-news-card:hover .tp-news-img img { transform: scale(1.05); }
.tp-news-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px; flex: 1; }
.tp-news-title { color: var(--tp-text); font-weight: 700; font-size: 14px; line-height: 1.4; flex: 1; }
.tp-news-card:hover .tp-news-title { color: var(--tp-red); }
.tp-news-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tp-muted); }
.tp-news-date .tp-ic { color: var(--tp-red); }

.tp-dealer {
	position: relative; overflow: hidden; height: 100%; min-height: 220px; border-radius: var(--tp-radius);
	background: linear-gradient(120deg, #eaf2fd 0%, #d5e5fa 55%, #b8d1f3 100%); border: 1px solid var(--tp-line);
	display: flex; align-items: center; padding: 22px 24px; box-shadow: var(--tp-shadow);
}
.tp-dealer.has-img { background: linear-gradient(90deg, rgba(234, 242, 253, .97) 45%, rgba(234, 242, 253, .2)), var(--img) center right / cover; }
.tp-dealer-art { position: absolute; right: -24px; bottom: -18px; font-size: 170px; color: rgba(11, 58, 140, .12); }
.tp-dealer-art .tp-ic { stroke-width: 1; }
.tp-dealer.has-img .tp-dealer-art { display: none; }
.tp-dealer-text { position: relative; }
.tp-dealer h3 { color: var(--tp-blue); font-size: 24px; font-weight: 900; text-transform: uppercase; line-height: 1.15; margin: 0 0 14px; }
.tp-dealer h3 span { color: var(--tp-red); font-size: 31px; }

/* =========================================================================
   ĐỐI TÁC
   ========================================================================= */
.tp-partners { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.tp-partner {
	height: 62px; display: flex; align-items: center; justify-content: center; padding: 8px 12px;
	background: #fff; border: 1px solid var(--tp-line); border-radius: 6px; box-shadow: var(--tp-shadow); transition: .25s;
}
.tp-partner img { max-height: 44px; width: auto; object-fit: contain; filter: grayscale(.2); }
.tp-partner:hover { border-color: var(--tp-blue-l); }
.tp-partner.is-placeholder { border-style: dashed; box-shadow: none; background: #fafcff; }
.tp-partner.is-placeholder span { font-size: 12px; color: #9aa8bd; font-weight: 600; text-align: center; }

/* =========================================================================
   SECTION CHUNG
   ========================================================================= */
.tp-sec-alt .section-bg { background: var(--tp-bg); }

/* =========================================================================
   CTA
   ========================================================================= */
.tp-cta {
	background: linear-gradient(90deg, var(--tp-red-d) 0%, var(--tp-red) 45%, var(--tp-blue) 72%, var(--tp-blue-d) 100%);
	color: #fff; margin: 34px 0 30px;
}
.tp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.tp-cta-text { border-right: 2px solid rgba(255, 255, 255, .5); padding-right: 28px; }
.tp-cta h3 { color: #fff; font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; margin: 0; line-height: 1.2; }
.tp-cta p { margin: 2px 0 0; font-style: italic; font-size: 16px; opacity: .95; }
.tp-cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.tp-cta .tp-btn-lg { font-size: 21px; border-radius: 40px; padding: .55em 1.4em; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.tp-cta .tp-btn-white-o { font-size: 18px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.tp-footer .section-bg {
	background:
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 46px),
		linear-gradient(120deg, var(--tp-blue-d) 0%, var(--tp-blue) 100%);
}
.tp-footer, .tp-footer a { color: #fff; }
.tp-footer h4 { color: #fff; font-size: 15px; font-weight: 800; text-transform: uppercase; margin: 0 0 12px; line-height: 1.3; }
.tp-f-logo img { background: #fff; border-radius: 10px; padding: 8px 10px; max-width: 170px; }
.tp-f-info ul, .tp-f-menu { list-style: none; margin: 0; padding: 0; }
.tp-f-info li { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 7px; font-size: 14px; }
.tp-f-info li .tp-ic { font-size: 17px; margin-top: 1px; }
.tp-f-info a:hover, .tp-f-menu a:hover { color: #ffd2d4; }
.tp-f-links { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 24px; height: 100%; }
.tp-f-menu { columns: var(--cols, 2); column-gap: 20px; }
.tp-f-menu li { margin: 0 0 6px; padding-left: 12px; position: relative; font-size: 14px; break-inside: avoid; }
.tp-f-menu li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.tp-f-menu li a { color: #fff; }
.tp-f-nl { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 24px; height: 100%; }
.tp-nl-form { display: flex; margin: 0 0 14px; }
.tp-nl-form input[type=email] { margin: 0; border: 0; border-radius: 4px 0 0 4px; height: 40px; box-shadow: none; font-size: 13px; }
.tp-nl-form button {
	margin: 0; width: 48px; min-height: 40px; height: 40px; flex: none; padding: 0; border-radius: 0 4px 4px 0;
	background: var(--tp-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.tp-nl-form button:hover { background: var(--tp-red-d); }
.tp-nl-msg { font-size: 13px; margin: -6px 0 10px; color: #b9f3c8; }
.tp-nl-msg.is-err { color: #ffd2d4; }
.absolute-footer { background: var(--tp-blue-dd) !important; color: rgba(255, 255, 255, .85) !important; font-size: 13px; }
.absolute-footer a { color: #fff; }
.absolute-footer .footer-nav, .absolute-footer .links { display: none; }
.tp-footer .tp-soc { color: var(--tp-blue); }
.tp-footer .tp-soc:hover { color: var(--tp-red); }

/* =========================================================================
   CHI TIẾT SẢN PHẨM
   ========================================================================= */
.tp-single { background: linear-gradient(180deg, #f4f8fd 0, #fff 520px); padding-bottom: 20px; }
.tp-bc-wrap { padding-top: 12px; padding-bottom: 12px; }
.tp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--tp-text); }
.tp-breadcrumb a { color: var(--tp-text); display: inline-flex; align-items: center; gap: 5px; }
.tp-breadcrumb a .tp-ic { color: var(--tp-blue); font-size: 16px; }
.tp-breadcrumb a:hover { color: var(--tp-red); }
.tp-breadcrumb > span { color: var(--tp-red); }
.tp-bc-sep { font-size: 13px; color: var(--tp-muted); }

.tp-sp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.tp-gal-main {
	position: relative; aspect-ratio: 4 / 3; background: #fff; border-radius: 10px; overflow: hidden;
	border: 1px solid var(--tp-line); box-shadow: var(--tp-shadow);
}
.tp-gal-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s; cursor: zoom-in; display: block; }
.tp-gal-slide.is-active { opacity: 1; visibility: visible; }
.tp-gal-slide img { width: 100%; height: 100%; object-fit: contain; }
.tp-gal-nav {
	position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; min-height: 0; margin: 0; padding: 0;
	border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--tp-blue); box-shadow: var(--tp-shadow);
	display: flex; align-items: center; justify-content: center; font-size: 20px; z-index: 2;
}
.tp-gal-nav:hover { background: var(--tp-red); color: #fff; }
.tp-gal-prev { left: 12px; }
.tp-gal-next { right: 12px; }
.tp-gal-zoom {
	position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; min-height: 0; margin: 0; padding: 0; z-index: 2;
	border-radius: 6px; background: rgba(255, 255, 255, .85); color: var(--tp-muted); font-size: 18px;
	display: flex; align-items: center; justify-content: center;
}
.tp-gal-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; }
.tp-gal-thumb {
	margin: 0; padding: 0; min-height: 0; aspect-ratio: 4 / 3; background: #fff; border: 2px solid var(--tp-line);
	border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color .2s;
}
.tp-gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-gal-thumb.is-active, .tp-gal-thumb:hover { border-color: var(--tp-red); }

.tp-sp-title { color: var(--tp-blue); font-size: 32px; font-weight: 900; line-height: 1.2; margin: 0 0 6px; }
.tp-sp-meta { display: flex; flex-wrap: wrap; gap: 6px 60px; font-size: 15px; margin-bottom: 10px; }
.tp-sp-meta a strong { color: var(--tp-blue); }
.tp-sp-excerpt { font-size: 15px; line-height: 1.6; }
.tp-sp-excerpt p { margin: 0 0 12px; }
.tp-sp-features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tp-feature {
	display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
	background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 12px 6px;
	box-shadow: var(--tp-shadow); font-weight: 700; font-size: 14px; color: var(--tp-blue); line-height: 1.25;
}
.tp-feature .tp-ic { font-size: 34px; color: var(--tp-red); }
.tp-sp-standards { background: #f7f9fd; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 10px 16px 14px; margin-bottom: 18px; }
.tp-sp-standards h3 { color: var(--tp-blue); font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.tp-std-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-std { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4px 8px; }
.tp-std + .tp-std { border-left: 1px solid var(--tp-line); }
.tp-std strong { color: var(--tp-blue); font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: .5px; }
.tp-std:nth-child(3) strong { font-size: 19px; }
.tp-std span { font-size: 11px; font-weight: 600; color: var(--tp-text); margin-top: 4px; text-transform: uppercase; }
.tp-sp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tp-sp-actions .tp-btn { flex: 1 1 auto; border-radius: 10px; }

.tp-sp-mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; margin-top: 32px; align-items: start; }
.tp-sp-tabs { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); box-shadow: var(--tp-shadow); overflow: hidden; }
.tp-sp-tablist { display: flex; background: #eef2f8; border-bottom: 1px solid var(--tp-line); overflow-x: auto; }
.tp-sp-tablist button {
	flex: 1 0 auto; margin: 0; padding: 12px 18px; min-height: 0; border: 0; border-radius: 0; background: transparent;
	color: var(--tp-text); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.2; cursor: pointer;
}
.tp-sp-tablist button.is-active { background: var(--tp-red); color: #fff; }
.tp-sp-tablist button:not(.is-active):hover { color: var(--tp-red); }
.tp-sp-panel { display: none; padding: 14px 20px 18px; }
.tp-sp-panel.is-active { display: block; animation: tpFade .3s ease; }
.tp-spec-table { margin: 0; border: 0; font-size: 14px; }
.tp-spec-table th, .tp-spec-table td { padding: 7px 10px; border-bottom: 1px solid #e8edf5; line-height: 1.35; text-transform: none; letter-spacing: 0; vertical-align: top; }
.tp-spec-table th { width: 42%; font-weight: 700; color: var(--tp-text); border-right: 1px solid #e8edf5; }
.tp-spec-table tr:nth-child(even) th, .tp-spec-table tr:nth-child(even) td { background: #f8fafd; }
.tp-docs { list-style: none; margin: 0; padding: 0; }
.tp-docs li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e8edf5; }
.tp-docs li > .tp-ic { font-size: 22px; color: var(--tp-red); }
.tp-docs li span { flex: 1; font-weight: 600; }

.tp-ribbon { margin: 0 0 12px; }
.tp-ribbon span {
	display: inline-block; background: var(--tp-blue); color: #fff; font-weight: 800; font-size: 17px; text-transform: uppercase;
	padding: 6px 46px 6px 18px; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}
.tp-sp-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.tp-sp-app { margin: 0; text-align: center; font-size: 13.5px; line-height: 1.35; }
.tp-sp-app-img {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden;
	margin-bottom: 6px; background: linear-gradient(140deg, #2a6fd0, var(--tp-blue-d)); color: rgba(255, 255, 255, .7); font-size: 54px;
}
.tp-sp-app-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-sp-app-img .tp-ic { stroke-width: 1.2; }
.tp-sp-pros { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.tp-sp-pros ul { list-style: none; margin: 0; padding: 0; }
.tp-sp-pros li { display: flex; gap: 8px; margin: 0 0 6px; font-size: 14px; line-height: 1.4; }
.tp-sp-pros li .tp-ic { color: var(--tp-red); font-size: 17px; margin-top: 1px; }
.tp-sp-pros-img { border-radius: 8px; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%); mask-image: linear-gradient(90deg, transparent, #000 25%); }

.tp-related { margin-top: 6px; }
.tp-related .tp-title h2 { font-size: 27px; }

/* Lightbox */
.tp-lightbox {
	position: fixed; inset: 0; z-index: 100000; background: rgba(5, 15, 35, .88);
	display: flex; align-items: center; justify-content: center; padding: 24px; animation: tpFade .2s ease;
}
.tp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; background: #fff; }
.tp-lb-close {
	position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0;
	border-radius: 50%; background: #fff; color: var(--tp-text); font-size: 28px; line-height: 40px;
}

/* =========================================================================
   DANH SÁCH SẢN PHẨM
   ========================================================================= */
.tp-page-head { background: linear-gradient(120deg, var(--tp-blue-d), var(--tp-blue-l)); color: #fff; padding: 26px 0 22px; margin-bottom: 30px; }
.tp-page-head h1 { color: #fff; font-size: 30px; font-weight: 900; text-transform: uppercase; margin: 0 0 6px; }
.tp-page-head .tp-breadcrumb, .tp-page-head .tp-breadcrumb a, .tp-page-head .tp-breadcrumb a .tp-ic,
.tp-page-head .tp-breadcrumb > span, .tp-page-head .tp-bc-sep { color: #fff; }
.tp-page-head .tp-breadcrumb > span { opacity: .8; }
.tp-archive-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 40px; }
.tp-side-box { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); box-shadow: var(--tp-shadow); margin-bottom: 18px; overflow: hidden; }
.tp-side-box h3 { background: var(--tp-blue); color: #fff; font-size: 15px; font-weight: 800; text-transform: uppercase; margin: 0; padding: 11px 16px; }
.tp-side-cats { list-style: none; margin: 0; padding: 6px 0; }
.tp-side-cats li { margin: 0; }
.tp-side-cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; color: var(--tp-text); font-weight: 600; font-size: 14px; border-left: 3px solid transparent; }
.tp-side-cats a span { font-size: 12px; color: var(--tp-muted); background: var(--tp-bg); border-radius: 20px; padding: 1px 8px; }
.tp-side-cats a:hover, .tp-side-cats .is-active a { color: var(--tp-red); border-left-color: var(--tp-red); background: #fff6f6; }
.tp-side-contact { text-align: center; padding: 18px 14px; background: linear-gradient(140deg, #eef4fd, #fff); }
.tp-side-contact > .tp-ic { font-size: 40px; color: var(--tp-red); }
.tp-side-contact p { font-weight: 700; color: var(--tp-blue); margin: 6px 0 10px; }
.tp-hotline {
	display: inline-flex; align-items: center; gap: 8px; background: var(--tp-red); color: #fff; font-weight: 800; font-size: 18px;
	padding: 8px 18px; border-radius: 40px; box-shadow: 0 6px 14px rgba(227, 20, 31, .3);
}
.tp-hotline:hover { color: #fff; background: var(--tp-red-d); }
.tp-term-desc { margin-bottom: 20px; }
.tp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.tp-pagination .page-numbers {
	min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
	border: 1px solid var(--tp-line); border-radius: 6px; color: var(--tp-text); font-weight: 700; background: #fff;
}
.tp-pagination .page-numbers.current, .tp-pagination a.page-numbers:hover { background: var(--tp-red); border-color: var(--tp-red); color: #fff; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1199px) {
	.tp-head-l1 { font-size: 18px; }
	.tp-brand-red, .tp-brand-blue { font-size: 26px; }
	.header-bottom-nav > li > a { padding: 0 14px !important; font-size: 13px; }
}

@media (max-width: 849px) {
	.tp-cat-grid, .tp-prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tp-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tp-partners { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tp-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-hero-text { padding: 26px 0 8px; text-align: left; }
	.tp-hero-l2 { font-size: 32px; }
	.tp-tagline { margin-left: 40px; }
	.tp-sp-top, .tp-sp-mid { grid-template-columns: minmax(0, 1fr); }
	.tp-archive-body { grid-template-columns: minmax(0, 1fr); }
	.tp-archive-side { order: 2; }
	.tp-f-links, .tp-f-nl { border-left: 0; padding-left: 0; }
	.tp-cta-text { border-right: 0; padding-right: 0; }
}

@media (max-width: 549px) {
	.tp-title h1, .tp-title h2, .tp-title h3 { font-size: 20px; gap: 10px; }
	.tp-title-left h2::after { width: 30px; }
	.tp-title-center h2::before, .tp-title-center h2::after { width: 26px; }
	.tp-cat-grid, .tp-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tp-cat-name { font-size: 12.5px; }
	.tp-card { padding: 10px 8px 12px; }
	.tp-card-name { font-size: 13px; }
	.tp-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tp-app:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 32 / 10; }
	.tp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-news { grid-template-columns: minmax(0, 1fr); }
	.tp-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tp-hero-l1 { font-size: 16px; }
	.tp-hero-l2 { font-size: 27px; }
	.tp-hero .tp-brand-red, .tp-hero .tp-brand-blue { font-size: 22px; }
	.tp-callout-ic { width: 50px; height: 50px; font-size: 26px; }
	.tp-callout-text { font-size: 15px; padding: 6px 14px 6px 24px; }
	.tp-checklist { padding-left: 10px; }
	.tp-checklist li { font-size: 14px; }
	.tp-tagline { font-size: 21px; margin-left: 20px; }
	.tp-products-head { align-items: flex-start; flex-direction: column; gap: 10px; }
	.tp-sp-title { font-size: 24px; }
	.tp-sp-meta { gap: 4px 20px; font-size: 14px; }
	.tp-sp-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tp-feature { font-size: 12.5px; }
	.tp-feature .tp-ic { font-size: 28px; }
	.tp-std-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
	.tp-std:nth-child(3) { border-left: 0; }
	.tp-std strong { font-size: 24px; }
	.tp-sp-actions .tp-btn { width: 100%; font-size: 16px; }
	.tp-sp-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.tp-sp-app { font-size: 12px; }
	.tp-sp-pros { grid-template-columns: minmax(0, 1fr); }
	.tp-sp-pros-img { display: none; }
	.tp-cta h3 { font-size: 20px; }
	.tp-cta-actions, .tp-cta-actions .tp-btn { width: 100%; }
	.tp-cta .tp-btn-lg { font-size: 18px; }
	.tp-gal-thumbs { grid-auto-columns: calc((100% - 24px) / 3.4); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.tp-cat, .tp-card, .tp-news-card, .tp-app > img, .tp-card-img img, .tp-tab-panel.is-active, .tp-sp-panel.is-active { transition: none; animation: none; }
}
