/* Thinfresh – Kem Trắng Da Ngừa Mụn Cam Thảo
   Hướng thiết kế: "đêm xanh thẳm" – hũ kem bóng như sơn mài, gợn nước tươi mát,
   bố cục kiểu bảng thông số in trên hộp mỹ phẩm cao cấp. */

.tfk {
	/* kích thước – chỉnh trong trang quản trị */
	--tfk-fs: 16px;
	--tfk-title: 64px;
	--tfk-brand: 15px;
	--tfk-h: 24px;
	--tfk-chip: 15px;
	--tfk-w: 1120px;
	--tfk-r: 28px;
	--tfk-s: 1;

	/* màu */
	--tfk-accent: #3b7bff;
	--tfk-sky: #9cc0ff;
	--tfk-ice: #eaf1ff;
	--tfk-mist: #93a3c4;
	--tfk-night: #0a1536;
	--tfk-base: #02050f;
	--tfk-hair: rgba(156, 192, 255, .16);
	--tfk-glow: rgba(59, 123, 255, .5);

	/* chữ */
	--tfk-serif: 'Cormorant', 'Times New Roman', Georgia, serif;
	--tfk-sans: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;

	--tfk-pad: clamp(22px, 5.5vw, 76px);
	--tfk-ease: cubic-bezier(.2, .7, .2, 1);

	position: relative;
	max-width: var(--tfk-w);
	margin: 2em auto;
	overflow: hidden;
	isolation: isolate;
	background: var(--tfk-base);
	color: var(--tfk-ice);
	border: 1px solid var(--tfk-hair);
	border-radius: var(--tfk-r);
	box-shadow: 0 60px 120px -70px var(--tfk-glow), 0 0 0 1px rgba(0, 0, 0, .6);
	font-family: var(--tfk-sans);
	font-size: calc(var(--tfk-fs) * var(--tfk-s));
	font-weight: 400;
	line-height: 1.7;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
@supports (color: color-mix(in srgb, red, blue)) {
	.tfk {
		--tfk-sky: color-mix(in srgb, var(--tfk-accent) 45%, #fff);
		--tfk-glow: color-mix(in srgb, var(--tfk-accent) 50%, transparent);
	}
}
.tfk.tfk-arial { --tfk-serif: Arial, Helvetica, sans-serif; --tfk-sans: Arial, Helvetica, sans-serif; }
.tfk *, .tfk *::before, .tfk *::after { box-sizing: border-box; }
.tfk p, .tfk ul, .tfk h2, .tfk h3 { margin: 0; padding: 0; border: 0; font-family: inherit; }
.tfk ul { list-style: none; }

/* Nhãn gốc ("TÊN SP:", "NSX & HSD:"...) – giữ đúng chữ, chỉ làm dịu màu */
.tfk-label {
	font-family: var(--tfk-sans);
	font-size: .78em;
	font-weight: 500;
	letter-spacing: .05em;
	line-height: 1.5;
	color: var(--tfk-mist);
}

/* Tiêu đề mục – nhấn mạnh */
.tfk .tfk-h {
	font-family: var(--tfk-serif);
	font-size: calc(var(--tfk-h) * var(--tfk-s));
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .015em;
	color: #fff;
	text-shadow: 0 0 28px rgba(59, 123, 255, .35);
}
.tfk .tfk-h::after {
	content: "";
	display: block;
	width: 2.4em;
	height: 2px;
	margin-top: .5em;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--tfk-accent), var(--tfk-sky));
	box-shadow: 0 0 14px var(--tfk-glow);
}

/* ================= PHẦN ĐẦU ================= */
.tfk-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
	align-items: center;
	gap: clamp(16px, 3vw, 48px);
	padding: clamp(56px, 7vw, 92px) var(--tfk-pad) clamp(40px, 6vw, 80px);
	background:
		radial-gradient(55% 70% at 80% 48%, rgba(59, 123, 255, .30), transparent 70%),
		radial-gradient(40% 50% at 0% 100%, rgba(18, 54, 150, .35), transparent 70%),
		linear-gradient(160deg, #0b1a46 0%, #050b20 46%, #02050f 100%);
}
.tfk-hero::after {
	content: "";
	position: absolute; left: var(--tfk-pad); right: var(--tfk-pad); bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--tfk-hair) 20%, var(--tfk-hair) 80%, transparent);
}

.tfk-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em 1em; margin-bottom: clamp(26px, 4vw, 44px) !important; }
.tfk-wordmark {
	position: relative;
	font-family: var(--tfk-sans);
	font-size: calc(var(--tfk-brand) * var(--tfk-s));
	font-weight: 600;
	letter-spacing: .42em;
	line-height: 1.4;
	color: var(--tfk-ice);
	padding-bottom: .35em;
}
.tfk-wordmark::after {
	content: ""; position: absolute; left: 0; right: .42em; bottom: 0; height: 1px;
	background: linear-gradient(90deg, var(--tfk-accent), transparent);
}

.tfk-name-label { margin-bottom: .2em !important; color: var(--tfk-sky); }
.tfk .tfk-title {
	font-family: var(--tfk-serif);
	font-size: clamp(30px, 8.4vw, calc(var(--tfk-title) * var(--tfk-s)));
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -.005em;
	padding-top: .14em;
	color: #fff;
	text-wrap: balance;
	background: linear-gradient(115deg, #ffffff 0%, #eaf1ff 38%, var(--tfk-sky) 52%, #ffffff 66%, #dbe7ff 100%);
	background-size: 220% 100%;
	background-position: 0 0;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0 6px 30px rgba(59, 123, 255, .3));
}

.tfk-promise {
	margin-top: clamp(28px, 4vw, 44px);
	padding-left: clamp(16px, 2vw, 24px);
	border-left: 2px solid transparent;
	border-image: linear-gradient(180deg, var(--tfk-accent), rgba(59, 123, 255, 0)) 1;
	max-width: 52ch;
}
.tfk-promise p { margin-top: .9em; font-size: 1.12em; font-weight: 300; line-height: 1.75; color: var(--tfk-ice); }

/* Ảnh sản phẩm – ảnh gốc giữ nguyên, chỉ dựng khung & ánh sáng xung quanh */
.tfk-visual { position: relative; justify-self: center; width: 100%; max-width: 380px; container-type: inline-size; }
.tfk-photo-wrap { position: relative; margin: 0; padding: 0; }
.tfk-photo {
	position: relative; display: block; z-index: 2;
	padding: 5px;
	border-radius: 26px;
	background: linear-gradient(155deg, rgba(200, 220, 255, .75) 0%, rgba(59, 123, 255, .25) 35%, rgba(10, 30, 90, .6) 60%, var(--tfk-accent) 100%);
	box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 70px -18px var(--tfk-glow), inset 0 0 0 1px rgba(255, 255, 255, .08);
	overflow: hidden;
}
.tfk .tfk-photo img {
	display: block; width: 100% !important; height: auto !important; max-width: none !important;
	margin: 0 !important; border-radius: 21px !important;
}
/* khung nghiêng phía sau tạo chiều sâu */
.tfk-photo-back {
	position: absolute; inset: 0; z-index: 1;
	border-radius: 26px;
	border: 1px solid rgba(156, 192, 255, .35);
	background: linear-gradient(160deg, rgba(59, 123, 255, .18), rgba(5, 11, 32, .4));
	transform: rotate(5deg) translate(14px, 10px);
}
/* quầng sáng & vòng gợn phía sau */
.tfk-rings { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.tfk-rings::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(59, 123, 255, .45), transparent 65%); filter: blur(10px); }
.tfk-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(156, 192, 255, .22); transform: scale(.62); }
.tfk-rings i:nth-child(2) { transform: scale(.8); border-color: rgba(156, 192, 255, .14); }
.tfk-rings i:nth-child(3) { transform: scale(.98); border-color: rgba(156, 192, 255, .08); }
/* vệt sáng lướt qua mặt kính (lớp phủ, không chạm vào ảnh) */
.tfk-photo-sheen {
	position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; z-index: 3; pointer-events: none;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
	transform: translateX(-160%) skewX(-16deg);
	opacity: 0;
}

/* Số công bố lưu hành – mục quan trọng: thẻ ánh bạc–xanh, hợp với nắp bạc trong ảnh */
.tfk-cbmp {
	position: relative; z-index: 3;
	display: flex; align-items: center; gap: .85em;
	margin: clamp(26px, 3vw, 34px) auto 0;
	width: fit-content; max-width: 100%;
	padding: .8em 1.25em .8em .85em;
	box-sizing: border-box;
	border-radius: 16px;
	border: 1px solid transparent;
	background:
		linear-gradient(135deg, #0d2a7a 0%, #081a4f 55%, #050f30 100%) padding-box,
		linear-gradient(120deg, #f2f6ff 0%, #9cc0ff 30%, var(--tfk-accent) 55%, #dfe9ff 80%, #7fa6ff 100%) border-box;
	box-shadow: 0 18px 40px -18px var(--tfk-glow), 0 0 0 4px rgba(59, 123, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .14);
	overflow: hidden;
}
.tfk-cbmp::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
	transform: translateX(-180%) skewX(-18deg); opacity: 0;
}
.tfk-cbmp-seal {
	display: grid; place-items: center; flex: 0 0 auto;
	width: 2.5em; height: 2.5em; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ffffff 0%, #dfe9ff 35%, #9cb8ee 100%);
	color: #0a2a86;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 6px 16px -6px rgba(0, 0, 0, .7);
}
.tfk-cbmp-seal svg { width: 1.35em; height: 1.35em; }
.tfk-cbmp-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 0 1 auto; }
.tfk-cbmp-label {
	font-family: var(--tfk-sans);
	display: block; white-space: nowrap;
	font-size: .74em;
	/* tự co theo chiều rộng thẻ (100cqi = bề rộng khung ảnh) */
	font-size: min(.74em, calc((100cqi - 5.6em - 4px) / 15.2));
	font-weight: 600; letter-spacing: .08em;
	color: #b9cfff;
}
.tfk-cbmp-no {
	margin-top: .25em;
	font-family: var(--tfk-sans);
	display: block;
	font-size: 1.22em;
	/* tự co theo chiều rộng thẻ – số luôn hiện đủ, không bị cắt */
	font-size: min(1.22em, calc((100cqi - 5.6em - 4px) / 14.2));
	font-weight: 700; letter-spacing: .04em;
	font-variant-numeric: tabular-nums;
	color: #ffffff;
	text-shadow: 0 0 18px rgba(124, 170, 255, .55);
	white-space: nowrap;
}
/* Thẻ hẹp (điện thoại nhỏ, cột hẹp, chữ phóng to): con dấu nhỏ cạnh nhãn, số dùng trọn chiều rộng */
@container (max-width: 360px) {
	.tfk-cbmp {
		display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
		column-gap: .55em; row-gap: .3em;
		width: 100%;
		padding: .8em 1em .85em;
	}
	.tfk-cbmp-text { display: contents; }
	.tfk-cbmp-seal { width: 1.75em; height: 1.75em; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
	.tfk-cbmp-seal svg { width: 1.05em; height: 1.05em; }
	.tfk-cbmp-label { font-size: min(.74em, calc((100cqi - 4.6em - 4px) / 15.2)); }
	.tfk-cbmp-no { grid-column: 1 / -1; margin-top: .05em; font-size: min(1.4em, calc((100cqi - 2.1em - 4px) / 14.2)); }
}

.tfk-fx .tfk-cbmp::after { animation: tfk-cbmp-shine 6s ease-in-out 2.4s infinite; }
@keyframes tfk-cbmp-shine {
	0% { opacity: 0; transform: translateX(-180%) skewX(-18deg); }
	8% { opacity: 1; }
	30% { opacity: 1; transform: translateX(320%) skewX(-18deg); }
	32%, 100% { opacity: 0; transform: translateX(320%) skewX(-18deg); }
}

/* Nút cỡ chữ */
.tfk-tools {
	position: absolute; top: clamp(14px, 2vw, 22px); right: clamp(14px, 2vw, 22px); z-index: 3;
	display: flex; gap: 2px; padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--tfk-hair);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tfk .tfk-tool {
	min-width: 38px; height: 32px; margin: 0; padding: 0 8px;
	border: 0; border-radius: 999px;
	background: transparent; color: var(--tfk-mist);
	font-family: var(--tfk-sans); font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none;
	box-shadow: none; cursor: pointer;
	transition: background .2s, color .2s;
}
.tfk .tfk-tool:hover { background: var(--tfk-accent); color: #fff; }
.tfk .tfk-tool:focus-visible, .tfk .tfk-link:focus-visible { outline: 2px solid var(--tfk-sky); outline-offset: 2px; }

/* ================= BA THÔNG TIN NGẮN ================= */
.tfk-band {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	background: linear-gradient(180deg, #050b1f, #03060f);
}
.tfk-band-item { padding: clamp(28px, 4vw, 48px) clamp(22px, 3vw, 40px); }
.tfk-band-item:first-child { padding-left: var(--tfk-pad); }
.tfk-band-item:last-child { padding-right: var(--tfk-pad); }
.tfk-band-item + .tfk-band-item { border-left: 1px solid var(--tfk-hair); }
.tfk-band-item p { margin-top: 1em; color: #cdd9f2; font-weight: 300; }

/* ================= HÀNG THÔNG SỐ ================= */
.tfk-row {
	display: grid;
	grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
	gap: clamp(18px, 4vw, 56px);
	padding: clamp(32px, 5vw, 60px) var(--tfk-pad);
	border-top: 1px solid var(--tfk-hair);
}

/* Thành phần – dải xanh cobalt duy nhất */
.tfk-ing {
	border-top: 0;
	background:
		radial-gradient(60% 120% at 100% 0%, rgba(120, 170, 255, .22), transparent 60%),
		linear-gradient(135deg, #0c2f97 0%, #082074 40%, #04103d 100%);
}
.tfk-ing .tfk-h::after { background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .2)); box-shadow: none; }
.tfk-ing-list { font-size: calc(var(--tfk-chip) * var(--tfk-s)); line-height: 2; color: #dfe8ff; max-width: 70ch; }
.tfk-item { white-space: nowrap; }
.tfk-chip { transition: color .2s, background-size .3s var(--tfk-ease); background: linear-gradient(#fff, #fff) no-repeat 0 100% / 0 1px; }
.tfk-chip:hover { color: #fff; background-size: 100% 1px; }
.tfk-sep { color: rgba(207, 222, 255, .55); }

/* Lưu ý an toàn */
.tfk-list li {
	position: relative;
	padding: .95em 0 .95em 1.8em;
	border-bottom: 1px solid var(--tfk-hair);
	color: var(--tfk-ice);
	font-weight: 300;
}
.tfk-list li:first-child { padding-top: 0; }
.tfk-list li:first-child::before { top: .62em; }
.tfk-list li::before {
	content: "";
	position: absolute; left: .15em; top: 1.57em;
	width: 7px; height: 7px;
	background: var(--tfk-accent);
	transform: rotate(45deg);
	box-shadow: 0 0 10px var(--tfk-glow);
}

/* ================= CHÂN ================= */
.tfk-foot {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(32px, 5vw, 60px) var(--tfk-pad) clamp(36px, 5vw, 64px);
	border-top: 1px solid var(--tfk-hair);
	background: radial-gradient(60% 100% at 100% 100%, rgba(59, 123, 255, .14), transparent 70%);
}
.tfk-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 32px); align-content: start; }
.tfk-fact { padding: .9em 0; border-bottom: 1px solid var(--tfk-hair); }
.tfk-fact:nth-child(-n+2) { padding-top: 0; }
.tfk-val { margin-top: .2em !important; color: var(--tfk-ice); font-weight: 500; }
.tfk .tfk-link { color: var(--tfk-ice); text-decoration: none; background: linear-gradient(var(--tfk-accent), var(--tfk-accent)) no-repeat 0 100% / 100% 1px; transition: color .2s, background-size .2s; }
.tfk .tfk-link:hover { color: #fff; background-size: 100% 2px; }

.tfk-maker { align-self: start; }
.tfk .tfk-maker-name {
	margin-top: .45em !important;
	font-family: var(--tfk-serif);
	font-size: calc(var(--tfk-h) * 1.08 * var(--tfk-s));
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	color: #fff;
}
.tfk-maker-addr { margin-top: .8em !important; color: var(--tfk-mist); font-weight: 300; }

/* ================= HIỆU ỨNG ================= */
/* Màn mở đầu: chữ lần lượt hiện, hũ kem nổi lên */
.tfk-fx .tfk-in { animation: tfk-rise 1s var(--tfk-ease) both; animation-delay: calc(var(--tfk-o, 0) * .13s + .1s); }
.tfk-fx .tfk-visual { animation: tfk-appear 1.4s var(--tfk-ease) .25s both; }
@keyframes tfk-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes tfk-appear { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }

/* Tên sản phẩm ánh lên như ngọc trai */
.tfk-fx .tfk-title { animation: tfk-rise 1s var(--tfk-ease) both, tfk-pearl 9s ease-in-out 1.4s infinite; animation-delay: .36s, 1.4s; }
@keyframes tfk-pearl { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }

/* Ảnh bồng bềnh nhẹ, vệt sáng lướt qua, vòng gợn lan */
.tfk-fx .tfk-photo-wrap { animation: tfk-bob 7s ease-in-out 1.6s infinite; }
@keyframes tfk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.tfk-fx .tfk-photo-sheen { animation: tfk-sheen 7s ease-in-out 1.8s infinite; }
@keyframes tfk-sheen {
	0% { opacity: 0; transform: translateX(-160%) skewX(-16deg); }
	6% { opacity: 1; }
	32% { opacity: 1; transform: translateX(330%) skewX(-16deg); }
	34%, 100% { opacity: 0; transform: translateX(330%) skewX(-16deg); }
}
.tfk-fx .tfk-rings i { animation: tfk-ring 8s ease-out infinite; }
.tfk-fx .tfk-rings i:nth-child(2) { animation-delay: -2.7s; }
.tfk-fx .tfk-rings i:nth-child(3) { animation-delay: -5.4s; }
@keyframes tfk-ring { 0% { transform: scale(.55); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1.05); opacity: 0; } }

/* Các phần dưới: hiện nhẹ khi cuộn tới (chỉ khi JS chạy) */
.tfk-fx.tfk-js .tfk-reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform 1s var(--tfk-ease); }
.tfk-fx.tfk-js .tfk-reveal.is-in { opacity: 1; transform: none; }
.tfk-fx.tfk-js .tfk-reveal .tfk-h::after { width: 0; transition: width 1.1s var(--tfk-ease) .3s; }
.tfk-fx.tfk-js .tfk-reveal.is-in .tfk-h::after { width: 2.4em; }
.tfk-fx .tfk-in.tfk-promise .tfk-h::after { animation: tfk-bar 1.1s var(--tfk-ease) .9s both; }
@keyframes tfk-bar { from { width: 0; } to { width: 2.4em; } }

/* ================= MÀN HÌNH NHỎ ================= */
@media (max-width: 900px) {
	.tfk-band { grid-template-columns: 1fr; }
	.tfk-band-item, .tfk-band-item:first-child, .tfk-band-item:last-child { padding: clamp(24px, 5vw, 36px) var(--tfk-pad); }
	.tfk-band-item + .tfk-band-item { border-left: 0; border-top: 1px solid var(--tfk-hair); }
	.tfk-foot { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.tfk { margin: 1.2em auto; border-radius: min(var(--tfk-r), 20px); }
	.tfk-hero { grid-template-columns: 1fr; padding-top: 78px; }
	.tfk-visual { order: -1; max-width: 300px; margin: 0 auto 8px; }
	.tfk-visual .tfk-photo-wrap { max-width: 250px; margin: 0 auto; }
	.tfk-row { grid-template-columns: 1fr; gap: 1.2em; }
	.tfk-facts { grid-template-columns: 1fr; }
	.tfk-fact:nth-child(2) { padding-top: .9em; }
	.tfk-wordmark { letter-spacing: .32em; }
}

@media (prefers-reduced-motion: reduce) {
	.tfk *, .tfk *::before, .tfk *::after { animation: none !important; transition: none !important; }
	.tfk.tfk-js .tfk-reveal { opacity: 1 !important; transform: none !important; }
	.tfk .tfk-h::after { width: 2.4em !important; }
}
