/* =========================================================================
   TikgoHub – Astra Child
   ========================================================================= */
:root {
	--th-accent: #ff5722;
	--th-ink: #141414;
	--th-muted: #6a6a6a;
	--th-line: #ece8e4;
	--th-cream: #fff7f1;
	--th-paper: #ffffff;
	--th-green: #0a7a3d;
	--th-shopee: #ee4d2d;
	--th-tt-pink: #fe2c55;
	--th-tt-cyan: #25f4ee;
	--th-radius: 18px;
	--th-font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Toàn trang ---------- */
body.th-site,
.th-site button,
.th-site input,
.th-site select,
.th-site textarea,
.th-site .site-title,
.th-site .main-header-menu,
.th-site h1, .th-site h2, .th-site h3, .th-site h4, .th-site h5, .th-site h6 {
	font-family: var(--th-font);
}
body.th-site { color: var(--th-ink); background: #fff; -webkit-font-smoothing: antialiased; }
.th-site .affs { font-family: var(--th-font); --affs-accent: var(--th-accent); }

/* ---------- Header Astra ---------- */
.th-site .site-header .main-header-bar,
.th-site .ast-primary-header-bar {
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--th-line);
}
.th-site .site-header { position: sticky; top: 0; z-index: 99; }
.admin-bar.th-site .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.th-site .site-header { top: 0; } }

.th-site .site-title,
.th-site .site-title a {
	font-weight: 800 !important;
	letter-spacing: -.03em;
	color: var(--th-ink) !important;
}
.th-site .site-title a::before {
	content: "";
	display: inline-block;
	width: 12px; height: 12px;
	margin-right: 8px;
	border-radius: 4px;
	background: var(--th-accent);
	box-shadow: 4px 4px 0 var(--th-ink);
	vertical-align: 1px;
}
.th-site .main-header-menu .menu-link { font-weight: 600; }
.th-site .main-header-menu .current-menu-item > .menu-link { color: var(--th-accent); }

.th-site .th-menu-search > .menu-link {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 0 0 8px;
	padding: 9px 18px !important;
	line-height: 1 !important;
	color: #fff !important;
	background: var(--th-ink);
	border-radius: 999px;
	transition: background .15s;
}
.th-site .th-menu-search > .menu-link:hover { background: var(--th-accent); }
.th-site .main-header-menu .th-menu-search,
.th-site .th-menu-search { display: flex; align-items: center; }
.th-site .main-header-menu .th-menu-search > .menu-link,
.th-site .ast-builder-menu .th-menu-search > .menu-link {
	height: auto !important;
	min-height: 0 !important;
	line-height: 1 !important;
	padding: 11px 18px !important;
}
.th-menu-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ast-mobile-header-content .th-menu-search > .menu-link,
.ast-header-break-point .th-menu-search > .menu-link { margin: 12px 16px; justify-content: center; }

/* ---------- Trang chủ: phá khung Astra để full width ---------- */
.th-home .site-content > .ast-container,
.th-home #content > .ast-container {
	max-width: none !important;
	width: 100%;
	padding: 0 !important;
	margin: 0 !important;
	display: block !important;
}
.th-home #primary { margin: 0 !important; padding: 0 !important; width: 100% !important; }
.th-home .site-content { padding: 0 !important; background: #fff; }

.th-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.th-home-wrap { overflow: hidden; }
.th-home-wrap a { text-decoration: none; }
.th-home-wrap h2 { margin: 0; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; color: var(--th-ink); }

.th-section { padding: 56px 0; }
.th-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.th-head--center { justify-content: center; text-align: center; }
.th-link { flex: none; font-weight: 700; font-size: 15px; color: var(--th-ink) !important; border-bottom: 2px solid var(--th-accent); padding-bottom: 2px; }
.th-link:hover { color: var(--th-accent) !important; }

.th-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 22px; border-radius: 999px;
	font-weight: 700; font-size: 15px; white-space: nowrap;
	transition: transform .15s, background .15s;
}
.th-btn:hover { transform: translateY(-1px); }
.th-btn--light { background: #fff; color: var(--th-ink) !important; }
.th-btn--light:hover { background: var(--th-accent); color: #fff !important; }

/* ---------- HERO ---------- */
.th-hero {
	position: relative;
	padding: 64px 0 28px;
	background:
		radial-gradient(900px 420px at 85% 0%, #ffe3d3 0%, rgba(255, 227, 211, 0) 70%),
		radial-gradient(700px 380px at 0% 100%, #e9f6ff 0%, rgba(233, 246, 255, 0) 70%),
		var(--th-cream);
	border-bottom: 1px solid var(--th-line);
}
.th-hero::after { /* hoạ tiết chấm */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(20, 20, 20, .07) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.th-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.th-hero__copy { min-width: 0; }

.th-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 18px; padding: 7px 14px;
	font-size: 13px; font-weight: 700; color: var(--th-ink);
	background: #fff; border: 1.5px solid var(--th-ink); border-radius: 999px;
	box-shadow: 3px 3px 0 var(--th-ink);
}
.th-pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: th-pulse 1.8s infinite; }
@keyframes th-pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.th-hero__title {
	margin: 0 0 16px !important;
	font-size: clamp(34px, 6vw, 64px) !important;
	line-height: 1.04 !important;
	font-weight: 800 !important;
	letter-spacing: -.04em;
	color: var(--th-ink);
}
.th-hero__sub { margin: 0 0 28px; max-width: 540px; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--th-muted); }

.th-search {
	display: flex; align-items: center;
	width: 100%; max-width: 620px; box-sizing: border-box;
	background: #fff;
	border: 2px solid var(--th-ink);
	border-radius: 999px;
	box-shadow: 0 5px 0 var(--th-ink);
	transition: box-shadow .15s, transform .15s, border-color .15s;
}
.th-search:focus-within { transform: translateY(-2px); border-color: var(--th-accent); box-shadow: 0 7px 0 var(--th-accent); }
.th-search__icon { flex: none; width: 22px; height: 22px; margin-left: 20px; fill: none; stroke: #8a8a8a; stroke-width: 2.2; stroke-linecap: round; }
.th-site .th-search__input {
	flex: 1; min-width: 0; height: 62px; margin: 0; padding: 0 12px;
	border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important;
	font-size: 17px; color: var(--th-ink);
}
.th-search__input::placeholder { color: #a3a3a3; }
.th-search__input::-webkit-search-cancel-button { display: none; }
.th-site .th-search__btn {
	flex: none; height: 50px; margin: 0 6px 0 0; padding: 0 26px;
	border: 0; border-radius: 999px; cursor: pointer;
	background: var(--th-accent); color: #fff;
	font-size: 16px; font-weight: 700; line-height: 1;
}
.th-site .th-search__btn:hover { filter: brightness(1.08); background: var(--th-accent); color: #fff; }

.th-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; }
.th-hot span { font-weight: 700; color: var(--th-accent); }
.th-hot a { padding: 6px 12px; color: var(--th-ink); background: rgba(255, 255, 255, .8); border: 1px solid var(--th-line); border-radius: 999px; transition: border-color .15s; }
.th-hot a:hover { border-color: var(--th-ink); color: var(--th-ink); }

/* Minh hoạ bên phải */
.th-hero__art { position: relative; height: 380px; max-width: 420px; width: 100%; justify-self: end; }
.th-sticker, .th-ticket { position: absolute; border: 2px solid var(--th-ink); box-shadow: 5px 5px 0 var(--th-ink); background: #fff; }
.th-sticker { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 16px; animation: th-float 6s ease-in-out infinite; }
.th-sticker b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.th-sticker small { font-size: 12.5px; color: var(--th-muted); font-weight: 600; }
.th-sticker--shopee { top: 2%; left: 0; z-index: 2; background: var(--th-shopee); color: #fff; transform: rotate(-6deg); }
.th-sticker--shopee small { color: rgba(255, 255, 255, .85); }
.th-sticker--tiktok { bottom: 20%; right: 6px; z-index: 3; background: #111; color: #fff; transform: rotate(5deg); animation-delay: -2s; box-shadow: 5px 5px 0 var(--th-tt-pink), -3px -3px 0 var(--th-tt-cyan); }
.th-sticker--tiktok small { color: rgba(255, 255, 255, .7); }
.th-sticker--check { bottom: 2%; left: 4%; z-index: 3; flex-direction: row; align-items: center; gap: 8px; padding: 10px 16px; font-weight: 800; color: var(--th-green); background: #eafaf0; border-radius: 999px; animation-delay: -4s; }
.th-sticker--check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.th-ticket {
	top: 20%; left: 24%; z-index: 1; width: 200px; padding: 18px 20px 20px;
	border-radius: 20px; background: #ffe600; transform: rotate(-2deg);
	display: flex; flex-direction: column; gap: 6px;
}
.th-ticket__off { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.th-ticket__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.th-ticket__bar { height: 8px; width: 100%; border-radius: 4px; background: rgba(0, 0, 0, .14); }
.th-ticket__bar--s { width: 60%; }
@keyframes th-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.th-trust {
	position: relative; z-index: 1;
	list-style: none; margin: 44px auto 0 !important;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.th-trust li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .85); border: 1px solid var(--th-line); border-radius: 14px; }
.th-trust svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--th-ink); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.th-trust span { display: flex; flex-direction: column; font-size: 13px; color: var(--th-muted); line-height: 1.35; }
.th-trust b { font-size: 14.5px; color: var(--th-ink); }

/* ---------- DANH MỤC ---------- */
.th-cats__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.th-cat {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 20px 8px 16px; text-align: center;
	border: 1.5px solid transparent; border-radius: var(--th-radius);
	transition: transform .18s, border-color .18s, box-shadow .18s;
}
.th-cat:hover { transform: translateY(-4px); border-color: var(--th-ink); box-shadow: 4px 4px 0 var(--th-ink); }
.th-cat__icon { font-size: 36px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .1)); }
.th-cat__name { font-size: 14px; font-weight: 700; color: var(--th-ink); line-height: 1.25; }
.th-cat--0 { background: #ffe8dc; } .th-cat--1 { background: #e1efff; } .th-cat--2 { background: #fde6f2; } .th-cat--3 { background: #e7f6dd; }
.th-cat--4 { background: #efe6ff; } .th-cat--5 { background: #fff3c7; } .th-cat--6 { background: #dff6f3; } .th-cat--7 { background: #ffe3e3; }

/* ---------- GIÀY CHÍNH HÃNG ---------- */
.th-mall { background: #121212; color: #fff; position: relative; }
.th-mall::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(600px 300px at 90% 0%, rgba(34, 197, 94, .18), transparent 70%),
		radial-gradient(500px 260px at 0% 100%, rgba(255, 87, 34, .16), transparent 70%);
}
.th-mall .th-container { position: relative; }
.th-mall__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.th-mall h2 { color: #fff !important; }
.th-mall__sub { margin: 10px 0 0; max-width: 560px; color: rgba(255, 255, 255, .7); font-size: 15.5px; line-height: 1.55; }
.th-badge-ok {
	display: inline-flex; align-items: center; gap: 6px;
	margin: 0 0 12px; padding: 6px 12px;
	font-size: 13px; font-weight: 700; color: #4ade80;
	background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .35); border-radius: 999px;
}
.th-badge-ok svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.th-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.th-brands a {
	padding: 9px 16px; font-size: 14px; font-weight: 700;
	color: #fff; background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
	transition: background .15s, color .15s;
}
.th-brands a:hover { background: #fff; color: var(--th-ink); }
.th-mall .affs-card { border-color: transparent; }
.th-mall .affs-empty { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .2); }
.th-mall .affs-empty b { color: #fff; }

/* ---------- ƯU ĐÃI ĐỐI TÁC ---------- */
.th-partners { padding-top: 48px; }
.th-partners__cps { margin-top: 18px; }
.th-partners .affp { padding: 0; max-width: none; }

/* ---------- DEAL HOT ---------- */
.th-deals { background: var(--th-cream); }
.th-fire { display: inline-block; margin-right: 8px; animation: th-wiggle 2.4s ease-in-out infinite; }
@keyframes th-wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-10deg); } 20% { transform: rotate(8deg); } 30% { transform: rotate(0); } }

/* ---------- 3 BƯỚC ---------- */
.th-steps__list { list-style: none; margin: 8px 0 0 !important; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.th-steps__list li { position: relative; padding: 28px 24px 24px; border: 1.5px solid var(--th-ink); border-radius: var(--th-radius); background: #fff; box-shadow: 5px 5px 0 var(--th-ink); }
.th-steps__list li:nth-child(2) { box-shadow: 5px 5px 0 var(--th-accent); }
.th-steps__list li:nth-child(3) { box-shadow: 5px 5px 0 var(--th-green); }
.th-steps__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--th-ink); color: #fff; font-weight: 800; font-size: 18px; }
.th-steps__list b { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.th-steps__list p { margin: 0; color: var(--th-muted); font-size: 15px; line-height: 1.55; }

/* ---------- BÀI VIẾT ---------- */
.th-posts { padding-top: 8px; }
.th-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.th-post { display: flex; flex-direction: column; border: 1px solid var(--th-line); border-radius: var(--th-radius); overflow: hidden; background: #fff; transition: transform .18s, box-shadow .18s; }
.th-post:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .07); }
.th-post__img { display: block; aspect-ratio: 16 / 9; background: #f4efe9; overflow: hidden; }
.th-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-post__ph { display: grid; place-items: center; height: 100%; font-size: 56px; font-weight: 800; color: rgba(0, 0, 0, .12); }
.th-post__body { padding: 16px 18px 20px; }
.th-post__cat { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--th-accent); }
.th-post h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; font-weight: 700; }
.th-post h3 a { color: var(--th-ink); }
.th-post p { margin: 0; font-size: 14.5px; color: var(--th-muted); line-height: 1.55; }

.th-notice { padding: 18px 20px; border: 1px dashed #e0a100; border-radius: 12px; background: #fffbea; }

/* ---------- Chân trang ---------- */
.th-footband { background: var(--th-ink); color: rgba(255, 255, 255, .72); padding: 48px 0 36px; font-size: 14.5px; }
.th-footband__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.th-footband b { display: block; margin-bottom: 12px; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.th-footband a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.th-footband a:hover { color: var(--th-accent); }
.th-footband__logo { display: inline-block; margin-bottom: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #fff !important; }
.th-footband__brand p, .th-footband__note p { margin: 0 0 10px; line-height: 1.6; }
.th-footband__links { display: flex; flex-direction: column; gap: 8px; }
.th-site .site-footer .site-below-footer-wrap,
.th-site .site-footer .ast-small-footer { background: #0c0c0c; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .55); }
.th-site .site-footer .site-below-footer-wrap a { color: rgba(255, 255, 255, .75); }

/* ---------- Trang tìm kiếm / Giày chính hãng (có shortcode plugin) ---------- */
.th-affs-page .site-content,
.th-affs-page .ast-separate-container .ast-article-single,
.th-affs-page.ast-separate-container .site-main > .ast-row,
.th-affs-page .ast-article-single { background: #fff !important; }
.th-affs-page .entry-header { display: none; }
.th-affs-page .site-content { padding-top: 0 !important; }
.th-affs-page .affs-hero { padding-top: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.th-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.th-hero__inner { grid-template-columns: 1fr; }
	.th-hero__art { display: none; }
	.th-trust { grid-template-columns: 1fr; }
	.th-mall__top { flex-direction: column; align-items: flex-start; }
	.th-steps__list, .th-posts__grid { grid-template-columns: 1fr; }
	.th-footband__inner { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 600px) {
	.th-container { padding: 0 16px; }
	.th-hero { padding: 36px 0 20px; }
	.th-site .th-search__input { height: 54px; font-size: 16px; }
	.th-site .th-search__btn { height: 44px; padding: 0 16px; font-size: 15px; }
	.th-search__icon { margin-left: 14px; width: 20px; height: 20px; }
	.th-section { padding: 40px 0; }
	.th-head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.th-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.th-cat { padding: 14px 4px 12px; border-radius: 14px; gap: 6px; }
	.th-cat__icon { font-size: 28px; }
	.th-cat__name { font-size: 12px; }
	.th-trust { margin-top: 28px !important; }
	.th-brands { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
	.th-brands::-webkit-scrollbar { display: none; }
	.th-brands a { flex: none; }
	/* Điện thoại: bớt sản phẩm cho trang gọn, khách bấm "Xem thêm" để vào trang tìm kiếm */
	.th-mall .affs-card:nth-child(n+7),
	.th-deals .affs-card:nth-child(n+9) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.th-sticker, .th-fire, .th-pulse { animation: none !important; }
}
