/* ==========================================================================
   TRANG MINH STORE — Hệ thống giao diện
   Ngôn ngữ thiết kế kế thừa chuẩn LXWINE DESIGN STANDARD, đổi sang bảng màu
   thương hiệu Trang Minh (xanh logo + vàng ấm) và nhịp điệu hợp hàng trẻ em.
   ========================================================================== */

:root {
	/* Xanh lấy từ logo TRANG MINH STORE */
	--brand: #1b39c4;
	--brand-dark: #142ba0;
	--brand-deep: #0d1c6b;
	--brand-night: #0a1445;
	--brand-soft: #eef1ff;
	--brand-line: #ccd6ff;

	/* Vàng ấm — vai trò như gold của lxwine: đường kẻ, sao, nhấn nhá */
	--gold: #f5a524;
	--gold-soft: #ffd68a;
	--gold-dim: #b9761a;

	/* Giá bán và nút mua */
	--sale: #e11d2e;
	--sale-dark: #c1121f;
	--sale-soft: #fff1f2;

	--bg: #f6f8fd;
	--surface: #ffffff;
	--ivory: #f0f4ff;
	--text: #14161c;
	--text-2: #5b6270;
	--text-3: #8a90a0;
	--line: #e3e8f2;
	--line-soft: #eef1f8;
	--ok: #12855c;
	--warn: #c2410c;

	--ff-display: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
	--ff-body: 'Be Vietnam Pro', 'Segoe UI', Roboto, system-ui, sans-serif;

	--wrap: 1650px;
	--r-sm: 6px;
	--r: 10px;
	--r-lg: 16px;
	--sh-1: 0 1px 2px rgba(15, 23, 60, .06), 0 2px 8px rgba(15, 23, 60, .05);
	--sh-2: 0 4px 16px rgba(15, 23, 60, .08);
	--sh-3: 0 12px 40px rgba(15, 23, 60, .14);
	--ease: cubic-bezier(.4, 0, .2, 1);
	--hdr-h: 118px;

	/* Giữ tên cũ để phần kế thừa và JS không vỡ */
	--tm-primary: var(--sale);
	--tm-primary-dark: var(--sale-dark);
	--tm-primary-soft: var(--sale-soft);
	--tm-brand: var(--brand);
	--tm-brand-soft: var(--brand-soft);
	--tm-brand-line: var(--brand-line);
	--tm-accent: var(--gold);
	--tm-ink: var(--text);
	--tm-ink-2: var(--text-2);
	--tm-muted: var(--text-3);
	--tm-line: var(--line);
	--tm-line-2: var(--line-soft);
	--tm-bg: var(--bg);
	--tm-card: var(--surface);
	--tm-ok: var(--ok);
	--tm-warn: var(--warn);
	--tm-r: var(--r);
	--tm-r-sm: var(--r-sm);
	--tm-r-lg: var(--r-lg);
	--tm-wrap: var(--wrap);
	--tm-shadow: var(--sh-1);
	--tm-shadow-lg: var(--sh-3);
	--tm-head-h: var(--hdr-h);
}

/* ------------------------------------------------------------------ Reset */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--ff-body); font-size: 15px; line-height: 1.65;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
	margin: 0 0 .5em; font-family: var(--ff-display); font-weight: 700;
	line-height: 1.22; color: var(--text); letter-spacing: -.005em;
}
h1 { font-size: clamp(26px, 3.2vw, 40px); }
h2 { font-size: clamp(22px, 2.4vw, 31px); }
h3 { font-size: clamp(18px, 1.7vw, 21px); }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.screen-reader-text, .tm-skip:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.tm-skip:focus {
	position: fixed; z-index: 999; top: 8px; left: 8px; padding: 10px 16px;
	background: #fff; border-radius: var(--r-sm); box-shadow: var(--sh-3);
}
[hidden] { display: none !important; }

/* ----------------------------------------------------------------- Layout */

.tm-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.tm-main { min-height: 40vh; padding-bottom: 8px; }
.tm-section { padding: clamp(34px, 4.4vw, 60px) 0; }

/* ------------------------------------------------------ Tiêu đề mục lớn */

.tm-sechead { text-align: center; margin-bottom: clamp(22px, 3vw, 36px); }
.tm-sechead__eyebrow {
	display: inline-flex; align-items: center; gap: 10px; color: var(--gold-dim);
	font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	margin-bottom: 8px; font-family: var(--ff-body);
}
.tm-sechead__eyebrow::before, .tm-sechead__eyebrow::after {
	content: ""; width: 34px; height: 1px; background: var(--gold);
}
.tm-sechead__title { font-size: clamp(24px, 2.9vw, 36px); margin: 0 0 8px; }
.tm-sechead__sub { max-width: 660px; margin: 0 auto; color: var(--text-2); font-size: 15px; }
.tm-sechead--left { text-align: left; }
.tm-sechead--left .tm-sechead__sub { margin-inline: 0; }

.tm-headrow {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 20px; margin-bottom: 20px; flex-wrap: wrap;
}
.tm-headrow h2 { margin: 0; }
.tm-linkall {
	display: inline-flex; align-items: center; gap: 7px; color: var(--brand);
	font-weight: 700; font-size: 14px; white-space: nowrap;
}
.tm-linkall:hover { color: var(--gold-dim); gap: 11px; }

/* -------------------------------------------------------------------- Nút */

.tm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 13px 26px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase; border: 1.5px solid transparent;
	transition: all .25s var(--ease); white-space: nowrap; line-height: 1.2; text-align: center;
	font-family: var(--ff-body);
}
.tm-btn[disabled] { opacity: .5; cursor: not-allowed; }
.tm-btn--primary { background: var(--sale); color: #fff; box-shadow: 0 4px 14px rgba(225, 29, 46, .24); }
.tm-btn--primary:hover:not([disabled]) { background: var(--sale-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(193, 18, 31, .3); }
.tm-btn--soft { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(27, 57, 196, .22); }
.tm-btn--soft:hover:not([disabled]) { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.tm-btn--gold { background: var(--gold); color: #3a1f00; }
.tm-btn--gold:hover { background: var(--gold-soft); color: #3a1f00; }
.tm-btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.tm-btn--ghost:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.tm-btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.tm-btn--outline:hover { background: var(--brand); color: #fff; }
.tm-btn--block { width: 100%; }
.tm-btn--sm { padding: 9px 16px; font-size: 12px; }
.tm-btn--lg { padding: 16px 32px; font-size: 14.5px; }
.tm-btn--wide { min-width: 260px; }

.tm-linkbtn {
	background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--text-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.tm-linkbtn:hover { color: var(--brand); }
.tm-linkbtn--danger:hover { color: var(--sale); }
.tm-linkbtn[disabled] { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------- Top bar */

.tm-topbar { background: var(--brand-night); color: rgba(255, 255, 255, .84); font-size: 12.5px; }
.tm-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 36px; flex-wrap: wrap; }
.tm-topbar__list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.tm-topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tm-topbar__item svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.tm-topbar a:hover { color: var(--gold-soft); }
@media (max-width: 1024px) { .tm-topbar { display: none; } }

.tm-ann {
	background: linear-gradient(90deg, var(--brand), #3a5ee0);
	color: #fff; font-size: 12.5px; text-align: center; padding: 8px 0; font-weight: 500;
}

/* ---------------------------------------------------------------- Header */

.tm-head {
	position: sticky; top: 0; z-index: 60;
	background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
	box-shadow: 0 1px 0 var(--line);
}
.tm-head__top { padding: 14px 0; }
.tm-head__row { display: flex; align-items: center; gap: 26px; }

.tm-burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; }
.tm-burger span { display: block; width: 21px; height: 2px; background: var(--brand); border-radius: 2px; }

.tm-brand { display: flex; align-items: center; flex: none; }
.tm-brand__img { max-height: 64px; width: auto; }
.tm-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.tm-brand__text strong { font-family: var(--ff-display); font-size: 25px; color: var(--brand); font-weight: 800; letter-spacing: .01em; }
.tm-brand__text em { font-style: normal; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

.tm-search { position: relative; flex: 1 1 auto; max-width: 660px; }
.tm-search input {
	width: 100%; height: 46px; padding: 0 54px 0 20px;
	border: 1.5px solid var(--line); border-radius: 999px;
	font-size: 14.5px; outline: none; background: #fff;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tm-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(27, 57, 196, .1); }
.tm-search input::placeholder { color: var(--text-3); }
.tm-search button {
	position: absolute; right: 5px; top: 5px; width: 42px; height: 36px;
	border: 0; border-radius: 999px; background: var(--brand); color: #fff;
	display: grid; place-items: center; transition: background .2s var(--ease);
}
.tm-search button:hover { background: var(--brand-dark); }
.tm-search button svg { width: 18px; height: 18px; }

.tm-head__acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.tm-hotline { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: var(--r-sm); }
.tm-hotline:hover { background: var(--brand-soft); }
.tm-hotline svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.tm-hotline span { display: flex; flex-direction: column; line-height: 1.25; }
.tm-hotline em { font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.tm-hotline strong { font-size: 16px; color: var(--brand); font-family: var(--ff-display); }

.tm-icobtn {
	position: relative; display: grid; place-items: center;
	width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%;
	background: #fff; color: var(--text-2); transition: all .25s var(--ease);
}
.tm-icobtn:hover { border-color: var(--brand); color: var(--brand); }
.tm-icobtn svg { width: 21px; height: 21px; }

.tm-cart-count {
	position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px;
	padding: 0 6px; border-radius: 999px; background: var(--sale); color: #fff;
	font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1;
	border: 2px solid #fff;
}
.tm-cart-count.is-empty { display: none; }

.tm-nav { background: var(--brand); }
.tm-nav__list { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.tm-nav__list > li { position: relative; }
.tm-nav__list > li > a {
	display: block; padding: 13px 18px; font-size: 13.5px; font-weight: 600;
	color: rgba(255, 255, 255, .92); letter-spacing: .02em;
}
.tm-nav__list > li:hover > a { background: rgba(255, 255, 255, .12); color: #fff; }
.tm-nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 250px; z-index: 30;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: var(--sh-3); list-style: none; margin: 0; padding: 7px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.tm-nav__list > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tm-nav__list .sub-menu a { display: block; padding: 9px 13px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--text); }
.tm-nav__list .sub-menu a:hover { background: var(--brand-soft); color: var(--brand); }

/* ------------------------------------------------------------ Đường dẫn */

.tm-crumb { background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; }
.tm-crumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 11px 0; color: var(--text-3); }
.tm-crumb li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.tm-crumb a:hover { color: var(--brand); }
.tm-crumb [aria-current] { color: var(--text); font-weight: 600; }

/* --------------------------------------------------- Dải cam kết dịch vụ */

.tm-usp { background: var(--surface); border-block: 1px solid var(--line-soft); }
.tm-usp__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.tm-usp__item { display: flex; align-items: center; gap: 12px; padding: 20px 18px; position: relative; min-width: 0; }
.tm-usp__item + .tm-usp__item::before {
	content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line);
}
.tm-usp__ico {
	width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%;
	background: var(--brand-soft); color: var(--brand); font-size: 21px;
}
.tm-usp__t { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; line-height: 1.25; }
.tm-usp__d { font-size: 11.5px; color: var(--text-2); line-height: 1.45; }
@media (max-width: 1024px) {
	.tm-usp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-usp__item:nth-child(3)::before { display: none; }
}
@media (max-width: 520px) {
	.tm-usp__item { padding: 14px 10px; gap: 9px; }
	.tm-usp__ico { width: 38px; height: 38px; font-size: 17px; }
}

/* --------------------------------------------------------------- Khối nền */

.tm-panel { background: var(--surface); border-radius: var(--r-lg); padding: 24px; margin-top: 18px; box-shadow: var(--sh-1); }
.tm-panel__h { font-family: var(--ff-display); font-size: 21px; margin: 0 0 16px; position: relative; padding-left: 15px; }
.tm-panel__h::before {
	content: ""; position: absolute; left: 0; top: .22em; bottom: .22em;
	width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--gold));
}
.tm-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tm-row__head .tm-panel__h { margin-bottom: 0; }
.tm-row__more { font-size: 13.5px; color: var(--brand); font-weight: 700; white-space: nowrap; }
.tm-row__more:hover { color: var(--gold-dim); }

.tm-rte { font-size: 15.5px; line-height: 1.8; color: var(--text-2); }
.tm-rte h2 { font-size: 21px; margin-top: 1.5em; }
.tm-rte h3 { font-size: 17.5px; margin-top: 1.3em; }
.tm-rte img { border-radius: var(--r); margin: 14px 0; }
.tm-rte ul, .tm-rte ol { padding-left: 22px; }
.tm-rte li { margin-bottom: 7px; }
.tm-rte table { margin: 16px 0; }
.tm-rte th, .tm-rte td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.tm-rte a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.tm-hint { font-size: 12.5px; color: var(--text-3); }

/* ================================================================ TRANG CHỦ */

.tm-hero {
	background: linear-gradient(135deg, #eaf0ff 0%, #ffffff 46%, #fff6e8 100%);
	border-bottom: 1px solid var(--line-soft);
	padding: clamp(34px, 4.6vw, 64px) 0;
}
.tm-hero__inner { display: flex; align-items: center; gap: 40px; }
.tm-hero__text { flex: 1; min-width: 0; }
.tm-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 9px; color: var(--gold-dim);
	font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px;
}
.tm-hero__eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); }
.tm-hero h1 { font-size: clamp(30px, 4.2vw, 52px); margin-bottom: 10px; line-height: 1.1; }
.tm-hero h1 em { font-style: normal; color: var(--brand); }
.tm-hero__sub { font-size: 16.5px; color: var(--text-2); margin: 0 0 20px; max-width: 620px; }
.tm-hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0 0 26px; }
.tm-hero__points li { font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tm-hero__points li::before {
	content: "✓"; width: 20px; height: 20px; flex: none; border-radius: 50%;
	background: var(--ok); color: #fff; font-size: 11px; font-weight: 800;
	display: grid; place-items: center;
}
.tm-hero__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-hero__art { flex: 0 0 clamp(220px, 26vw, 380px); }
.tm-hero__art img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(15, 23, 60, .16)); }
@media (max-width: 900px) { .tm-hero__art { display: none; } }

.tm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 14px; }
.tm-cats__item { display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center; }
.tm-cats__img {
	width: clamp(78px, 8vw, 106px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
	border: 2px solid var(--line); background: var(--ivory);
	display: grid; place-items: center; transition: all .3s var(--ease);
}
.tm-cats__item:hover .tm-cats__img { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 10px 24px rgba(27, 57, 196, .16); }
.tm-cats__img img { width: 100%; height: 100%; object-fit: cover; }
.tm-cats__img em { font-size: 30px; font-style: normal; }
.tm-cats__name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.35; }
.tm-cats__item:hover .tm-cats__name { color: var(--brand); }
.tm-cats__n { font-size: 11.5px; color: var(--text-3); }

.tm-why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tm-why__grid > div {
	padding: 24px 20px; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r-lg); text-align: center; transition: all .3s var(--ease);
}
.tm-why__grid > div:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--sh-2); }
.tm-why__grid span { font-size: 32px; }
.tm-why__grid h3 { font-size: 16px; margin: 10px 0 6px; }
.tm-why__grid p { margin: 0; font-size: 13.5px; color: var(--text-2); }

.tm-tt { text-align: center; }
.tm-tt p { color: var(--text-2); margin: 0 auto 18px; max-width: 640px; }

/* ============================================================= LƯỚI + THẺ */

.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 18px; }
.tm-grid--scroll {
	grid-auto-flow: column; grid-auto-columns: 228px; grid-template-columns: none;
	overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
	scrollbar-width: thin; justify-content: start;
}
.tm-grid--scroll > * { scroll-snap-align: start; }

.tm-card {
	position: relative; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
	transition: all .3s var(--ease);
}
.tm-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--gold); }
.tm-card__link { display: flex; flex-direction: column; flex: 1; }
.tm-card__media {
	position: relative; aspect-ratio: 4/5;
	background: linear-gradient(165deg, #f4f7ff, #e9eefb);
	display: grid; place-items: center; overflow: hidden; padding: 14px;
}
.tm-card__media img {
	width: 100%; height: 100%; object-fit: contain;
	transition: transform .45s var(--ease);
	filter: drop-shadow(0 8px 18px rgba(15, 23, 60, .16));
}
.tm-card:hover .tm-card__media img { transform: scale(1.06) translateY(-3px); }
.tm-card.outofstock .tm-card__media img { filter: grayscale(.7) opacity(.75); }

.tm-card__badges { position: absolute; top: 10px; left: 10px; z-index: 4; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.tm-badge {
	display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 4px;
	font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}
.tm-badge--sale { background: var(--sale); color: #fff; }
.tm-badge--new { background: var(--ok); color: #fff; }
.tm-badge--out { background: #6b7280; color: #fff; }
.tm-badge--video { background: #14161c; color: #fff; }

.tm-card__body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.tm-card__title {
	font-family: var(--ff-body); font-size: 14px; font-weight: 600; line-height: 1.45; margin: 0; color: var(--text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em;
}
.tm-card:hover .tm-card__title { color: var(--brand); }
.tm-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 2px; font-size: 11.5px; color: var(--text-3); min-height: 17px; }
.tm-card__cta { padding: 0 15px 15px; display: flex; gap: 8px; }
.tm-card__cta .tm-btn { flex: 1; padding: 11px 12px; font-size: 12px; }

.tm-noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #c3cbdd; }
.tm-noimg svg { width: 36%; height: 36%; }

.tm-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.tm-price__now { font-size: 18px; font-weight: 800; color: var(--sale); letter-spacing: -.01em; }
.tm-price__was { font-size: 13px; color: var(--text-3); text-decoration: line-through; }
.tm-price__off { font-size: 11px; font-weight: 800; color: var(--sale); background: var(--sale-soft); padding: 2px 7px; border-radius: 4px; }
.tm-price--big .tm-price__now { font-size: 34px; font-family: var(--ff-display); }
.tm-price--big .tm-price__was { font-size: 16px; }
.tm-price--big .tm-price__off { font-size: 13px; padding: 3px 9px; }
.tm-price .woocommerce-Price-amount { color: inherit; }

.tm-stars { display: inline-flex; gap: 1px; }
.tm-star { width: 13px; height: 13px; display: inline-block; background: var(--line); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tm-star.is-full { background: var(--gold); }
.tm-star.is-half { background: linear-gradient(90deg, var(--gold) 50%, var(--line) 50%); }
.tm-rating-num { font-size: 12px; font-weight: 800; color: var(--text-2); margin-left: 3px; }
.tm-rating-count { font-size: 11.5px; color: var(--text-3); }
.tm-sold { font-size: 11.5px; color: var(--text-3); }
.tm-dot { color: var(--line); }

/* ============================================================ TRANG DANH MỤC */

.tm-shop { padding-top: 20px; }
.tm-shop__head {
	background: linear-gradient(120deg, var(--brand-soft), #fff 58%, #fff8ee 100%);
	border: 1px solid var(--brand-line); border-radius: var(--r-lg);
	padding: 26px 30px; margin-bottom: 18px; text-align: center;
}
.tm-shop__title { font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.tm-shop__count {
	display: inline-block; margin: 0; padding: 3px 13px; background: #fff;
	border: 1px solid var(--brand-line); border-radius: 999px;
	font-size: 12.5px; color: var(--brand); font-weight: 700;
}
.tm-shop__desc { font-size: 14.5px; line-height: 1.75; max-width: 820px; margin-inline: auto; color: var(--text-2); }

.tm-subcats ul { display: flex; gap: 9px; list-style: none; margin: 0 0 16px; padding: 0 0 5px; overflow-x: auto; }
.tm-subcats a {
	display: flex; align-items: center; gap: 9px; white-space: nowrap;
	padding: 8px 16px; background: #fff; border: 1px solid var(--line);
	border-radius: 999px; font-size: 13.5px; font-weight: 600; transition: all .25s var(--ease);
}
.tm-subcats a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.tm-subcats img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.tm-sortbar {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 11px 16px; margin-bottom: 18px;
	position: sticky; top: var(--hdr-h); z-index: 20;
}
.tm-sortbar__label { font-size: 12px; color: var(--text-3); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tm-sortbar__opts { display: flex; gap: 7px; flex-wrap: wrap; }
.tm-sortbar__opt {
	padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
	background: var(--line-soft); color: var(--text-2); transition: all .25s var(--ease);
}
.tm-sortbar__opt:hover { background: var(--brand-soft); color: var(--brand); }
.tm-sortbar__opt.is-on { background: var(--brand); color: #fff; }
@media (max-width: 1024px) { .tm-sortbar { position: static; } }

.tm-more { text-align: center; margin-top: 28px; }

.tm-empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tm-empty__art { font-size: 56px; line-height: 1; margin-bottom: 12px; }
.tm-empty h1, .tm-empty h2 { font-size: 23px; margin-bottom: 8px; }
.tm-empty p { color: var(--text-2); margin: 0 0 20px; }
.tm-404search { display: flex; gap: 9px; max-width: 480px; margin: 0 auto 18px; }
.tm-404search input { flex: 1; height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); }

/* ========================================================== CHI TIẾT SẢN PHẨM */

.tm-pd { padding-top: 20px; }
.tm-pd__top {
	display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 40px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 28px; box-shadow: var(--sh-1); align-items: start;
}

.tm-gal { position: sticky; top: calc(var(--hdr-h) + 14px); }
.tm-gal__stage {
	position: relative; aspect-ratio: 1; border-radius: var(--r);
	background: linear-gradient(165deg, #f4f7ff, #e9eefb); overflow: hidden; border: 1px solid var(--line);
}
.tm-gal__slide { position: absolute; inset: 0; padding: 18px; }
.tm-gal__slide img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(15, 23, 60, .16)); }
.tm-gal__slide video { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: var(--r-sm); }
.tm-gal__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; z-index: 3; }
.tm-gal__nav {
	position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
	width: 38px; height: 38px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .96); box-shadow: var(--sh-2);
	font-size: 20px; line-height: 1; color: var(--text-2); opacity: 0; transition: opacity .2s var(--ease);
}
.tm-gal:hover .tm-gal__nav { opacity: 1; }
.tm-gal__nav:hover { color: var(--brand); }
.tm-gal__nav--prev { left: 10px; }
.tm-gal__nav--next { right: 10px; }

.tm-gal__thumbs { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.tm-gal__thumb {
	position: relative; flex: 0 0 68px; width: 68px; height: 68px; padding: 4px;
	border: 2px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
	background: var(--ivory); transition: border-color .2s var(--ease);
}
.tm-gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.tm-gal__thumb:hover { border-color: var(--brand-line); }
.tm-gal__thumb.is-on { border-color: var(--brand); }
.tm-gal__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .38); color: #fff; font-size: 16px; }

.tm-buy__title { font-family: var(--ff-display); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.28; margin: 0 0 12px; }
.tm-buy__stats {
	display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13px;
	color: var(--text-3); padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.tm-buy__rating { display: inline-flex; align-items: center; gap: 5px; }
.tm-buy__reviewlink { text-decoration: underline; text-underline-offset: 3px; }
.tm-buy__rating:hover { color: var(--brand); }

.tm-buy__pricebox {
	background: linear-gradient(120deg, var(--sale-soft), #fff 76%);
	border: 1px solid #ffdbdf; border-radius: var(--r); padding: 18px 20px; margin: 16px 0;
}

.tm-var { margin-bottom: 16px; }
.tm-var__label { font-size: 12px; color: var(--text-3); margin-bottom: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tm-var__opts { display: flex; flex-wrap: wrap; gap: 9px; }
.tm-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 16px;
	border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
	font-size: 13.5px; font-weight: 600; transition: all .2s var(--ease);
}
.tm-chip.has-img { padding-left: 5px; }
.tm-chip img { width: 32px; height: 32px; border-radius: 5px; object-fit: cover; }
.tm-chip:hover { border-color: var(--brand); color: var(--brand); }
.tm-chip.is-on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.tm-chip.is-off { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.tm-buy__qty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.tm-buy__qtylabel { font-size: 12px; color: var(--text-3); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tm-buy__stock { font-size: 13px; color: var(--ok); font-weight: 600; }

.tm-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.tm-qty__btn { width: 38px; height: 40px; border: 0; background: #fff; font-size: 18px; color: var(--text-2); transition: background .2s var(--ease); }
.tm-qty__btn:hover { background: var(--brand-soft); color: var(--brand); }
.tm-qty__btn[disabled] { opacity: .35; cursor: not-allowed; }
.tm-qty__input {
	width: 52px; height: 40px; border: 0; border-inline: 1.5px solid var(--line);
	text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield;
}
.tm-qty__input::-webkit-outer-spin-button, .tm-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tm-buy__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.tm-buy__oos { color: var(--sale); font-size: 13.5px; }

.tm-shopcard {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 14px 16px; margin-bottom: 16px;
	border: 1px solid var(--line); border-radius: var(--r);
	background: linear-gradient(120deg, var(--brand-soft), #fff 62%);
}
.tm-shopcard__logo {
	width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #fff;
	display: grid; place-items: center; border: 1px solid var(--brand-line); flex: 0 0 56px; padding: 4px;
}
.tm-shopcard__logo img { width: 100%; height: 100%; object-fit: contain; }
.tm-shopcard__info { flex: 1; min-width: 150px; }
.tm-shopcard__name { font-family: var(--ff-display); font-size: 17px; font-weight: 700; display: block; }
.tm-shopcard__meta { font-size: 12.5px; color: var(--text-3); }
.tm-shopcard__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-shopcard__acts .tm-btn { padding: 9px 15px; font-size: 11.5px; }

.tm-assure {
	list-style: none; margin: 0 0 16px; padding: 18px; background: #fff;
	border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 15px;
}
.tm-assure li { display: flex; gap: 12px; align-items: flex-start; }
.tm-assure__ico {
	width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center;
	background: var(--brand-soft); border-radius: 50%; font-size: 16px;
}
.tm-assure strong { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 1px; }
.tm-assure em { font-style: normal; font-size: 12.5px; color: var(--text-2); }

.tm-buy__help { font-size: 13px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tm-buy__help a { color: var(--brand); font-weight: 700; }

.tm-pd__body { margin-top: 18px; }
.tm-specs { width: 100%; font-size: 14.5px; }
.tm-specs th, .tm-specs td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.tm-specs th { width: 210px; color: var(--text-3); font-weight: 600; }
.tm-specs tr:nth-child(odd) th, .tm-specs tr:nth-child(odd) td { background: #fafbff; }

.tm-desc[data-clamp="1"] { max-height: 480px; overflow: hidden; position: relative; }
.tm-desc[data-clamp="1"]::after { content: ""; position: absolute; inset: auto 0 0; height: 100px; background: linear-gradient(transparent, #fff); }
.tm-desc__more {
	display: block; margin: 14px auto 0; background: #fff; border: 1.5px solid var(--line);
	border-radius: var(--r-sm); padding: 10px 26px; font-size: 12.5px; font-weight: 700;
	color: var(--brand); text-transform: uppercase; letter-spacing: .04em; transition: all .25s var(--ease);
}
.tm-desc__more:hover { border-color: var(--brand); background: var(--brand-soft); }

.tm-video { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 26px; align-items: center; }
.tm-video__player { position: relative; aspect-ratio: 9/16; max-height: 520px; background: #000; border-radius: var(--r); overflow: hidden; }
.tm-video__player video { width: 100%; height: 100%; object-fit: contain; }
.tm-video__side p { color: var(--text-2); font-size: 15px; margin-top: 0; }
.tm-video__side ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.tm-video__side li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.tm-video__side li span { color: var(--ok); font-weight: 800; }
@media (max-width: 900px) {
	.tm-video { grid-template-columns: 1fr; }
	.tm-video__player { max-height: 460px; margin-inline: auto; width: 100%; max-width: 300px; }
}

/* ================================================================= ĐÁNH GIÁ */

.tm-reviews__summary {
	display: flex; gap: 32px; flex-wrap: wrap; padding: 22px;
	background: linear-gradient(120deg, #fffaf0, #fff 68%);
	border: 1px solid #ffe6bd; border-radius: var(--r);
}
.tm-reviews__score { text-align: center; min-width: 140px; }
.tm-reviews__avg { font-family: var(--ff-display); font-size: 46px; font-weight: 800; color: var(--gold-dim); line-height: 1.05; }
.tm-reviews__total { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.tm-reviews__bars { flex: 1; min-width: 250px; display: grid; gap: 6px; align-content: center; }
.tm-reviews__bar { display: grid; grid-template-columns: 44px 1fr 48px; align-items: center; gap: 11px; font-size: 12.5px; color: var(--text-3); padding: 3px 7px; border-radius: 6px; }
.tm-reviews__bar:hover { background: #fff; }
.tm-reviews__bar.is-on { background: #fff; color: var(--gold-dim); font-weight: 700; }
.tm-reviews__bartrack { height: 8px; background: #f0e4cf; border-radius: 999px; overflow: hidden; }
.tm-reviews__bartrack i { display: block; height: 100%; background: var(--gold); }
.tm-reviews__barn { text-align: right; }

.tm-reviews__filters { display: flex; gap: 9px; flex-wrap: wrap; margin: 16px 0; }
.tm-fchip { padding: 7px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.tm-fchip:hover { border-color: var(--brand); color: var(--brand); }
.tm-fchip.is-on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.tm-reviews__none, .tm-reviews__empty { color: var(--text-3); font-size: 14.5px; }
.tm-rv { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.tm-rv__ava { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-family: var(--ff-display); }
.tm-rv__body { flex: 1; min-width: 0; }
.tm-rv__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tm-rv__name { font-size: 14px; }
.tm-rv__ok { font-size: 10.5px; color: var(--ok); background: #e6f6ef; padding: 2px 8px; border-radius: 999px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tm-rv__stars { margin: 4px 0; }
.tm-rv__variant { font-size: 12px; color: var(--text-3); }
.tm-rv__text { font-size: 14.5px; color: var(--text-2); }
.tm-rv__text p { margin: 6px 0; }
.tm-rv__imgs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.tm-rv__imgs img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.tm-rv__foot { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-3); margin-top: 9px; }

.tm-reviews__form { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.tm-cf { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.tm-cf label, .tm-review-photos label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.tm-cf select, .tm-cf textarea, .comment-form input[type=text], .comment-form input[type=email] {
	border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; width: 100%; max-width: 540px; background: #fff;
}
.tm-cf select:focus, .tm-cf textarea:focus, .comment-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 57, 196, .1); }
.tm-review-photos { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.comment-form .required { color: var(--sale); }
.comment-form-cookies-consent { font-size: 12.5px; color: var(--text-3); }
.comment-form .submit {
	background: var(--sale); color: #fff; border: 0; border-radius: var(--r-sm);
	padding: 14px 30px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13px;
}
.comment-form .submit:hover { background: var(--sale-dark); }

/* ====================================================== THANH MUA DÍNH (mobile) */

.tm-stickybuy {
	position: fixed; inset: auto 0 0; z-index: 55; display: none;
	align-items: center; gap: 10px; padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
	background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(15, 23, 60, .1);
}
.tm-stickybuy__info { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.tm-stickybuy__info img { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: contain; background: var(--ivory); }
.tm-stickybuy__price .tm-price__now { font-size: 18px; }
.tm-stickybuy__price .tm-price__was, .tm-stickybuy__price .tm-price__off { display: none; }
.tm-stickybuy__acts { display: flex; gap: 8px; }
.tm-stickybuy__acts .tm-btn { padding: 12px 15px; font-size: 11.5px; }

/* ================================================================ NGĂN KÉO */

.tm-drawer { position: fixed; inset: 0; z-index: 90; }
.tm-drawer__mask { position: absolute; inset: 0; background: rgba(10, 20, 69, .5); animation: tmFade .18s ease; }
.tm-drawer__panel {
	position: absolute; inset: 0 0 0 auto; width: min(440px, 92vw);
	background: #fff; display: flex; flex-direction: column;
	box-shadow: var(--sh-3); animation: tmSlide .24s var(--ease);
}
.tm-drawer--left .tm-drawer__panel { inset: 0 auto 0 0; animation: tmSlideL .24s var(--ease); }
@keyframes tmFade { from { opacity: 0; } }
@keyframes tmSlide { from { transform: translateX(100%); } }
@keyframes tmSlideL { from { transform: translateX(-100%); } }

.tm-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 18px; border-bottom: 1px solid var(--line);
	font-family: var(--ff-display); font-size: 18px; font-weight: 700;
}
.tm-drawer__x { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--text-3); padding: 0 4px; }
.tm-drawer__x:hover { color: var(--sale); }
.tm-drawer__body { flex: 1; overflow-y: auto; }

.tm-mmenu { list-style: none; margin: 0; padding: 10px; }
.tm-mmenu a { display: block; padding: 12px 13px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; }
.tm-mmenu a:hover { background: var(--brand-soft); color: var(--brand); }
.tm-mmenu .sub-menu { list-style: none; padding-left: 14px; margin: 0; }
.tm-mmenu .sub-menu a { font-size: 13.5px; color: var(--text-2); padding: 9px 13px; }

.tm-mini__empty { text-align: center; padding: 56px 24px; }
.tm-mini__emptyart { font-size: 48px; margin-bottom: 10px; }
.tm-mini__empty p { color: var(--text-3); margin-bottom: 20px; }
.tm-mini__list { list-style: none; margin: 0; padding: 10px 14px; }
.tm-mini__item { position: relative; display: flex; gap: 12px; padding: 14px 28px 14px 0; border-bottom: 1px solid var(--line-soft); }
.tm-mini__thumb { flex: 0 0 68px; }
.tm-mini__thumb img { width: 68px; height: 68px; object-fit: contain; border-radius: var(--r-sm); background: var(--ivory); padding: 4px; }
.tm-mini__info { flex: 1; min-width: 0; }
.tm-mini__name { font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-mini__name:hover { color: var(--brand); }
.tm-mini__meta { font-size: 11.5px; color: var(--text-3); }
.tm-mini__meta p { margin: 2px 0; }
.tm-mini__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tm-mini__price { font-size: 15px; font-weight: 800; color: var(--sale); }
.tm-mini__x { position: absolute; top: 10px; right: 0; background: none; border: 0; font-size: 20px; color: var(--text-3); line-height: 1; }
.tm-mini__x:hover { color: var(--sale); }
.tm-mini__foot { border-top: 1px solid var(--line); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 9px; }
.tm-mini__sum { display: flex; justify-content: space-between; align-items: baseline; }
.tm-mini__sum strong { font-family: var(--ff-display); font-size: 22px; color: var(--sale); }
.tm-mini__note { font-size: 12px; color: var(--text-3); margin: 0 0 4px; }

.tm-freeship { padding: 13px 18px; background: #fff8ec; border-bottom: 1px solid #f6e4c6; }
.tm-freeship.is-done { background: #e9f7f1; border-color: #c6ebdb; }
.tm-freeship p { margin: 0 0 8px; font-size: 13px; color: var(--text); }
.tm-freeship__bar { height: 7px; background: #f6e4c6; border-radius: 999px; overflow: hidden; }
.tm-freeship.is-done .tm-freeship__bar { background: #c6ebdb; }
.tm-freeship__bar span { display: block; height: 100%; background: var(--gold); transition: width .3s var(--ease); }
.tm-freeship.is-done .tm-freeship__bar span { background: var(--ok); }

/* ============================================================== GIỎ HÀNG */

.tm-cartpage { max-width: var(--wrap); margin-inline: auto; padding: 20px; }
.tm-cartlist { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tm-cartlist__head {
	display: grid; grid-template-columns: 38px 84px 1fr 140px 150px 140px 96px;
	align-items: center; gap: 12px; padding: 14px 18px; background: #fafbff;
	border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--text-3);
	font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.tm-cartlist__head .tm-check { grid-column: 1 / span 3; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text); }
.tm-cartlist__col { text-align: center; }

.tm-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; color: var(--text); font-weight: 600; }
.tm-check input { width: 19px; height: 19px; accent-color: var(--brand); cursor: pointer; }

.tm-ci {
	display: grid; grid-template-columns: 38px 84px 1fr 140px 150px 140px 96px;
	align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
}
.tm-ci.is-oos { background: #fffafa; }
.tm-ci__thumb img { width: 78px; height: 78px; object-fit: contain; border-radius: var(--r-sm); background: var(--ivory); padding: 5px; }
.tm-ci__name { font-size: 14.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tm-ci__name:hover { color: var(--brand); }
.tm-ci__meta { font-size: 12px; color: var(--text-3); }
.tm-ci__meta p { margin: 2px 0; }
.tm-ci__low { font-size: 12px; color: var(--warn); margin-top: 4px; font-weight: 600; }
.tm-ci__warn { font-size: 12px; color: var(--sale); margin-top: 4px; font-weight: 600; }
.tm-ci__unit, .tm-ci__total { text-align: center; font-size: 14.5px; }
.tm-ci__total strong { color: var(--sale); font-weight: 800; }
.tm-ci__qty { display: flex; justify-content: center; }
.tm-ci__acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.tm-cartfoot { display: grid; grid-template-columns: 1fr 400px; gap: 20px; align-items: start; margin-top: 20px; }
.tm-cartfoot__coupon, .tm-cartfoot__sum { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.tm-coupon { display: flex; gap: 9px; margin-top: 12px; }
.tm-coupon input { flex: 1; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.tm-cartfoot__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14.5px; }
.tm-cartfoot__row strong { font-family: var(--ff-display); font-size: 24px; color: var(--sale); }
.tm-cartfoot__row--disc strong { font-size: 15px; color: var(--ok); font-family: var(--ff-body); }
.tm-cartfoot__note { font-size: 12px; color: var(--text-3); margin: 0 0 14px; }
.tm-cartfoot__back { display: block; text-align: center; margin-top: 12px; }

.tm-saved { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.tm-saved__h { font-family: var(--ff-display); font-size: 18px; }
.tm-saved__item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.tm-saved__thumb img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--r-sm); background: var(--ivory); padding: 4px; }
.tm-saved__info { flex: 1; min-width: 0; font-size: 13.5px; }
.tm-saved__price { display: block; font-size: 12.5px; color: var(--text-3); }
.tm-saved__oos { font-size: 12px; color: var(--sale); }
.tm-saved__acts { display: flex; gap: 14px; }

/* ============================================================= THANH TOÁN */

.tm-checkout { max-width: var(--wrap); margin-inline: auto; padding: 20px; }
.tm-checkout__head { margin-bottom: 18px; }
.tm-checkout__head h1 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 4px; }
.tm-checkout__login { font-size: 13.5px; color: var(--text-3); margin: 0; }
.tm-checkout__login a { color: var(--brand); font-weight: 700; }
.tm-checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 22px; align-items: start; }

.tm-cbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; }
.tm-cbox--sticky { position: sticky; top: calc(var(--hdr-h) + 12px); }
.tm-cbox__h {
	display: flex; align-items: center; gap: 12px; font-family: var(--ff-display); font-size: 18px;
	margin: 0; padding: 17px 22px; border-bottom: 1px solid var(--line); background: #fafbff;
}
.tm-cbox__step { width: 27px; height: 27px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-family: var(--ff-body); font-weight: 700; }
.tm-cbox__body { padding: 22px; }

.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.tm-f--full, .form-row-wide, .notes { grid-column: 1 / -1; }
.form-row label { font-size: 12.5px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.form-row .required { color: var(--sale); text-decoration: none; }
.form-row .input-text, .form-row select, .form-row textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row textarea { min-height: 92px; resize: vertical; }
.form-row .input-text:focus, .form-row select:focus, .form-row textarea:focus {
	outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 57, 196, .1);
}
.form-row.woocommerce-invalid .input-text, .form-row.woocommerce-invalid select { border-color: var(--sale); }
.form-row .description { font-size: 12px; color: var(--text-3); text-transform: none; letter-spacing: 0; }
.woocommerce-shipping-fields h3 { font-size: 16px; grid-column: 1 / -1; margin: 6px 0 0; }
#ship-to-different-address { grid-column: 1 / -1; }
#ship-to-different-address label { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; }
#ship-to-different-address input { width: 19px; height: 19px; accent-color: var(--brand); }

.woocommerce-checkout-review-order-table { width: 100%; font-size: 14.5px; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table .cart_item td { padding: 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.woocommerce-checkout-review-order-table .product-name { padding-right: 14px; }
.woocommerce-checkout-review-order-table .product-total { text-align: right; white-space: nowrap; font-weight: 700; }
.woocommerce-checkout-review-order-table tfoot th { text-align: left; font-weight: 500; padding: 10px 0; color: var(--text-2); }
.woocommerce-checkout-review-order-table tfoot td { text-align: right; padding: 10px 0; font-weight: 700; }
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td { border-top: 1px solid var(--line); padding-top: 15px; }
.woocommerce-checkout-review-order-table tfoot .order-total td { color: var(--sale); font-weight: 800; font-family: var(--ff-display); font-size: 24px; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--text-3); }

#shipping_method { list-style: none; margin: 0; padding: 0; }
#shipping_method li { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; text-align: right; }
#shipping_method li input { display: none; }
.woocommerce-shipping-destination { display: none; }

#payment { margin-top: 18px; }
#payment .wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 11px; }
#payment .wc_payment_method {
	display: grid; grid-template-columns: 23px 1fr; align-items: center; column-gap: 11px;
	padding: 15px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
	transition: all .25s var(--ease);
}
#payment .wc_payment_method:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
#payment .wc_payment_method > label { grid-column: 2; cursor: pointer; font-weight: 700; font-size: 14.5px; margin: 0; }
#payment .wc_payment_method input[type=radio] { grid-column: 1; width: 19px; height: 19px; accent-color: var(--brand); margin: 0; }
#payment .payment_box { grid-column: 2; font-size: 13px; color: var(--text-2); padding: 0; margin: 5px 0 0; background: none; }
#payment .place-order { margin: 0; }
#payment #place_order {
	width: 100%; min-height: 56px; border: 0; border-radius: var(--r-sm);
	background: var(--sale); color: #fff; font-size: 15px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .06em;
	box-shadow: 0 6px 18px rgba(225, 29, 46, .26); transition: all .25s var(--ease);
}
#payment #place_order:hover { background: var(--sale-dark); transform: translateY(-1px); }
.woocommerce-terms-and-conditions-wrapper { font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }

.woocommerce-message, .woocommerce-error, .woocommerce-info {
	list-style: none; margin: 0 0 16px; padding: 14px 18px; border-radius: var(--r-sm); font-size: 14.5px;
	border-left: 4px solid transparent;
}
.woocommerce-message { background: #e9f7f1; color: #0a6b4d; border-left-color: var(--ok); }
.woocommerce-info { background: var(--brand-soft); color: var(--brand-dark); border-left-color: var(--brand); }
.woocommerce-error { background: var(--sale-soft); color: #a3132a; border-left-color: var(--sale); }
.woocommerce-error li + li { margin-top: 6px; }

/* ================================================================= CẢM ƠN */

.tm-thanks { max-width: 880px; margin-inline: auto; padding: 20px; }
.tm-thanks__hero { text-align: center; padding: 34px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tm-thanks__tick { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: grid; place-items: center; }
.tm-thanks__hero h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.tm-thanks__hero p { color: var(--text-2); margin: 0; }
.tm-thanks--fail { text-align: center; }

.tm-thanks__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-top: 16px; }
.tm-thanks__meta span { display: block; font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.tm-thanks__meta strong { font-size: 16px; }
.tm-thanks__total { color: var(--sale); font-family: var(--ff-display); font-size: 20px; }

.tm-thanks__box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-top: 16px; }
.tm-thanks__box h2 { font-size: 18px; }
.tm-thanks__items { list-style: none; margin: 0; padding: 0; }
.tm-thanks__items li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.tm-thanks__thumb img { width: 58px; height: 58px; border-radius: var(--r-sm); object-fit: contain; background: var(--ivory); padding: 4px; }
.tm-thanks__iteminfo { flex: 1; min-width: 0; font-size: 14.5px; }
.tm-thanks__itemmeta { font-size: 12px; color: var(--text-3); }
.tm-thanks__itemmeta p { margin: 2px 0; }
.tm-thanks__qty { font-size: 12.5px; color: var(--text-3); }
.tm-thanks__lineprice { font-weight: 700; white-space: nowrap; }
.tm-thanks__totals { margin: 14px 0 0; }
.tm-thanks__totals > div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; }
.tm-thanks__totals dt, .tm-thanks__totals dd { margin: 0; }
.tm-thanks__totals .is-grand { border-top: 1px solid var(--line); margin-top: 7px; padding-top: 13px; font-size: 18px; font-weight: 800; }
.tm-thanks__totals .is-grand dd { color: var(--sale); font-family: var(--ff-display); font-size: 24px; }
.tm-thanks__addr { font-style: normal; line-height: 1.8; font-size: 14.5px; }
.tm-thanks__acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.tm-thanks__help { font-size: 13.5px; color: var(--text-3); margin-top: 16px; text-align: center; }
.tm-thanks__help a { color: var(--brand); font-weight: 700; }

.tm-qr { background: #fff; border-radius: var(--r-lg); padding: 22px; margin-top: 16px; border: 2px dashed var(--brand-line); }
.tm-qr__h { font-family: var(--ff-display); font-size: 19px; }
.tm-qr__grid { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.tm-qr__img img { width: 268px; height: auto; border-radius: var(--r); }
.tm-qr__info { flex: 1; min-width: 230px; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; }
.tm-qr__info dt { color: var(--text-3); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.tm-qr__info dd { margin: 0; }
.tm-qr__amount { color: var(--sale); font-size: 19px; font-family: var(--ff-display); }
.tm-copy { border: 1.5px solid var(--line); background: #fff; border-radius: 5px; font-size: 11px; padding: 3px 9px; margin-left: 5px; font-weight: 700; }
.tm-copy:hover { border-color: var(--brand); color: var(--brand); }
.tm-qr__hint { font-size: 13px; color: var(--text-3); margin: 16px 0 0; }

/* ============================================================ TRA CỨU ĐƠN */

.tm-lookup__form { background: #fafbff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 20px; }
.tm-lookup__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.tm-lookup__fields label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.tm-lookup__fields input { height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 400; text-transform: none; letter-spacing: 0; }
.tm-lookup__fields em { color: var(--sale); font-style: normal; }
.tm-lookup__err { color: var(--sale); font-size: 14.5px; }
.tm-lo { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.tm-lo__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tm-lo__code { font-family: var(--ff-display); font-size: 17px; }
.tm-lo__head time { display: block; font-size: 12px; color: var(--text-3); }
.tm-lo__status { padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--line-soft); text-transform: uppercase; letter-spacing: .04em; }
.tm-lo__status--processing { background: var(--brand-soft); color: var(--brand); }
.tm-lo__status--completed { background: #e9f7f1; color: #0a6b4d; }
.tm-lo__status--cancelled { background: var(--sale-soft); color: #a3132a; }
.tm-lo__items { list-style: none; margin: 0; padding: 0; }
.tm-lo__items li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.tm-lo__items img { width: 48px; height: 48px; border-radius: 6px; object-fit: contain; background: var(--ivory); padding: 3px; }
.tm-lo__name { flex: 1; }
.tm-lo__foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line-soft); margin-top: 10px; padding-top: 12px; font-size: 14.5px; }
.tm-lo__foot strong { color: var(--sale); font-family: var(--ff-display); font-size: 18px; }
.tm-lo__hint { font-size: 12.5px; color: var(--warn); margin: 10px 0 0; }
.tm-lookup__help { font-size: 13.5px; color: var(--text-3); }

/* ====================================================== TRANG TĨNH & BÀI VIẾT */

.tm-page { padding-top: 22px; }
.tm-page__article { max-width: 940px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 46px 46px; }
.tm-page__title { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 8px; text-align: center; }
.tm-page__lead { color: var(--text-2); font-size: 15.5px; margin: 0 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); text-align: center; }
.tm-page .tm-rte { font-size: 15.5px; line-height: 1.85; }
.tm-page .tm-rte > h2 { font-family: var(--ff-display); font-size: 22px; margin: 38px 0 14px; padding-left: 15px; position: relative; color: var(--text); }
.tm-page .tm-rte > h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--brand), var(--gold)); }
.tm-page .tm-rte > h2:first-child { margin-top: 0; }
.tm-page .tm-rte > h3 { font-size: 17.5px; margin: 26px 0 9px; }
.tm-page .tm-rte ul, .tm-page .tm-rte ol { padding-left: 4px; list-style: none; }
.tm-page .tm-rte ul > li, .tm-page .tm-rte ol > li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.tm-page .tm-rte ul > li::before { content: ""; position: absolute; left: 7px; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tm-page .tm-rte ol { counter-reset: tmol; }
.tm-page .tm-rte ol > li { counter-increment: tmol; }
.tm-page .tm-rte ol > li::before {
	content: counter(tmol); position: absolute; left: 0; top: .16em; width: 21px; height: 21px; border-radius: 50%;
	background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center;
}
.tm-page .tm-rte blockquote, .tm-page .tm-rte .tm-note {
	margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--gold);
	background: #fffaf0; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.tm-page .tm-rte blockquote p:last-child, .tm-page .tm-rte .tm-note p:last-child { margin-bottom: 0; }
.tm-page .tm-rte th { background: var(--line-soft); font-weight: 700; }

.tm-toc { margin: 0 0 28px; padding: 18px 22px; background: #fafbff; border: 1px solid var(--line); border-radius: var(--r); }
.tm-toc strong { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; }
.tm-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tm-toc li { padding: 0; }
.tm-toc li::before { display: none !important; }
.tm-toc a { font-size: 14.5px; color: var(--brand); font-weight: 500; }
.tm-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.tm-pagehelp {
	max-width: 940px; margin: 18px auto 0; padding: 24px 28px;
	background: linear-gradient(120deg, var(--brand-soft), #fff 68%);
	border: 1px solid var(--brand-line); border-radius: var(--r-lg);
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.tm-pagehelp__t { flex: 1; min-width: 220px; }
.tm-pagehelp__t strong { display: block; font-family: var(--ff-display); font-size: 19px; }
.tm-pagehelp__t span { font-size: 13.5px; color: var(--text-2); }
.tm-pagehelp__acts { display: flex; gap: 10px; flex-wrap: wrap; }

.tm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tm-post { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: all .3s var(--ease); }
.tm-post:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--gold); }
.tm-post__thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tm-post__body { padding: 16px 18px 20px; }
.tm-post__title { font-family: var(--ff-display); font-size: 18px; margin-bottom: 5px; }
.tm-post__date { font-size: 12px; color: var(--text-3); }
.tm-post__ex { font-size: 14px; color: var(--text-2); margin: 8px 0 0; }
.tm-pager { margin-top: 24px; text-align: center; }
.tm-pager .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); margin: 0 3px; font-size: 14px; font-weight: 600;
}
.tm-pager .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.tm-pager .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

.tm-wcflow { padding-top: 6px; }
.tm-checkout .woocommerce-billing-fields > h3, .tm-checkout .woocommerce-additional-fields > h3 { display: none; }
#order_review_heading { display: none; }
.tm-wcflow .woocommerce-notices-wrapper { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 9px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.woocommerce-MyAccount-content th, .woocommerce-MyAccount-content td { padding: 11px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.woocommerce form.login, .woocommerce form.register {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 26px; max-width: 480px; margin-inline: auto;
}
.woocommerce form.login .button, .woocommerce form.register .button {
	background: var(--brand); color: #fff; border: 0; border-radius: var(--r-sm);
	padding: 13px 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.woocommerce .woocommerce-form-login__rememberme { display: inline-flex; gap: 7px; align-items: center; }

/* ============================================================== CHÂN TRANG */

.tm-foot { background: var(--brand-night); color: rgba(255, 255, 255, .74); padding: 46px 0 96px; margin-top: 40px; }
.tm-foot__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 34px; }
.tm-foot__brand { font-family: var(--ff-display); font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.tm-foot__line { font-size: 13.5px; margin: 0 0 8px; }
.tm-foot__line strong { color: rgba(255, 255, 255, .95); font-weight: 600; }
.tm-foot__line a:hover { color: var(--gold-soft); }
.tm-foot__legal { font-size: 12px; color: rgba(255, 255, 255, .5); }
.tm-foot__social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tm-foot__social a {
	font-size: 12px; padding: 7px 15px; border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 999px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.tm-foot__social a:hover { border-color: var(--gold); color: var(--gold-soft); }
.tm-foot__h { font-family: var(--ff-display); font-size: 16px; color: #fff; margin-bottom: 14px; }
.tm-foot__list { list-style: none; margin: 0; padding: 0; }
.tm-foot__list li { margin-bottom: 9px; }
.tm-foot__list a { font-size: 13.5px; }
.tm-foot__list a:hover { color: var(--gold-soft); }
.tm-foot__trust { list-style: none; margin: 0; padding: 0; }
.tm-foot__trust li { font-size: 13px; margin-bottom: 11px; display: flex; gap: 10px; align-items: flex-start; }
.tm-foot__bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 20px; text-align: center; }
.tm-foot__bottom p { font-size: 12.5px; color: rgba(255, 255, 255, .55); margin: 0; }

/* ========================================================== THANH TAB (mobile) */

.tm-tabbar {
	position: fixed; inset: auto 0 0; z-index: 50; display: none;
	background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
	box-shadow: 0 -2px 14px rgba(15, 23, 60, .08);
}
.tm-tabbar > a, .tm-tabbar > button {
	position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
	padding: 8px 0 7px; background: none; border: 0; color: var(--text-3); font-size: 10.5px; font-weight: 600;
}
.tm-tabbar svg { width: 22px; height: 22px; }
.tm-tabbar .is-on { color: var(--brand); }
.tm-tabbar .tm-cart-count { top: 2px; right: 24%; }

/* =============================================================== THÔNG BÁO */

.tm-toast {
	position: fixed; left: 50%; bottom: 96px; translate: -50% 0; z-index: 120;
	background: rgba(10, 20, 69, .96); color: #fff; padding: 14px 22px;
	border-radius: var(--r); font-size: 14px; box-shadow: var(--sh-3);
	max-width: min(440px, 90vw); text-align: center; animation: tmToast .22s var(--ease);
}
.tm-toast.is-err { background: var(--sale); }
@keyframes tmToast { from { opacity: 0; translate: -50% 12px; } }
.tm-loading { position: relative; pointer-events: none; opacity: .6; }

.tm-search__pop {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: var(--sh-3); max-height: 64vh; overflow-y: auto;
}
.tm-sg { list-style: none; margin: 0; padding: 7px; }
.tm-sg a { display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: var(--r-sm); }
.tm-sg a:hover { background: var(--brand-soft); }
.tm-sg__img img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: var(--ivory); padding: 3px; }
.tm-sg__body { display: flex; flex-direction: column; min-width: 0; }
.tm-sg__name { font-size: 13.5px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tm-sg__price { font-size: 13px; font-weight: 800; color: var(--sale); }
.tm-sg__price del { color: var(--text-3); font-weight: 400; font-size: 11.5px; }
.tm-sg__all a { justify-content: center; font-size: 13px; color: var(--brand); font-weight: 700; }
.tm-sg__none { padding: 20px; text-align: center; font-size: 13.5px; color: var(--text-3); }

/* =========================================================================
   Màn hình nhỏ
   ========================================================================= */

@media (max-width: 1200px) {
	.tm-pd__top { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 28px; }
	.tm-checkout__grid { grid-template-columns: minmax(0, 1fr) 400px; }
	.tm-foot__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 1024px) {
	.tm-pd__top { grid-template-columns: 1fr; }
	.tm-gal { position: static; }
	.tm-checkout__grid { grid-template-columns: 1fr; }
	.tm-cbox--sticky { position: static; }
	.tm-cartfoot { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	:root { --hdr-h: 108px; }
	.tm-nav { display: none; }
	.tm-burger { display: flex; }
	.tm-hotline { display: none; }
	.tm-head__top { padding: 11px 0; }
	.tm-head__row { flex-wrap: wrap; gap: 12px; }
	.tm-search { order: 3; flex-basis: 100%; max-width: none; }
	.tm-brand__img { max-height: 46px; }
	.tm-brand__text strong { font-size: 19px; }
	.tm-wrap { padding-inline: 14px; }

	.tm-tabbar { display: flex; }
	.tm-stickybuy { display: flex; }
	.tm-foot { padding: 34px 0 92px; }

	.tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
	.tm-grid--scroll { grid-auto-columns: 168px; }
	.tm-card__title { font-size: 13px; }
	.tm-card__body { padding: 11px 12px 12px; }
	.tm-card__cta { padding: 0 12px 12px; }
	.tm-price__now { font-size: 16px; }

	.tm-panel { padding: 17px; border-radius: var(--r); }
	.tm-panel__h { font-size: 18px; }
	.tm-pd__top { padding: 16px; }
	.tm-buy__acts { grid-template-columns: 1fr; }
	.tm-page__article { padding: 24px 20px 30px; }
	.tm-shop__head { padding: 18px; }
	.tm-pagehelp { padding: 18px; }

	.tm-cartlist__head { display: none; }
	.tm-ci {
		grid-template-columns: 32px 76px 1fr;
		grid-template-areas: "pick thumb info" "pick unit qty" "pick total acts";
		row-gap: 9px; padding: 14px;
	}
	.tm-ci__pick { grid-area: pick; align-self: start; margin-top: 5px; }
	.tm-ci__thumb { grid-area: thumb; }
	.tm-ci__info { grid-area: info; }
	.tm-ci__unit { grid-area: unit; text-align: left; font-size: 13px; color: var(--text-3); }
	.tm-ci__qty { grid-area: qty; justify-content: flex-start; }
	.tm-ci__total { grid-area: total; text-align: left; }
	.tm-ci__acts { grid-area: acts; flex-direction: row; justify-content: flex-end; gap: 16px; }
	.tm-ci__unit::before, .tm-ci__total::before { content: attr(data-label) ": "; font-size: 12px; color: var(--text-3); }

	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.tm-lookup__fields { grid-template-columns: 1fr; }
	.tm-qr__img img { width: 230px; margin-inline: auto; }
	.tm-reviews__summary { gap: 16px; padding: 16px; }
	.tm-hero__inner { gap: 0; }
}

@media (max-width: 520px) {
	.tm-foot__grid { grid-template-columns: 1fr; gap: 24px; }
	.tm-thanks__meta { grid-template-columns: 1fr 1fr; }
	.tm-cats { grid-template-columns: repeat(3, 1fr); gap: 14px 8px; }
	.tm-buy__title { font-size: 19px; }
	.tm-price--big .tm-price__now { font-size: 27px; }
	.tm-page__article { padding: 20px 16px 26px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
}

/* ------------------------------------------------- Tinh chỉnh sau khi soi thật */

/* Logo ở khối mở đầu: đặt trong thẻ trắng bo góc cho ra hình khối, không trôi nổi */
.tm-hero__art img {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 22px; box-shadow: var(--sh-2);
}

/*
 * Dải sản phẩm: trên màn rộng dùng lưới tự xuống dòng để KHÔNG bao giờ hở
 * một mảng trống bên phải khi danh mục còn ít hàng. Điện thoại vẫn cuộn ngang.
 */
@media (min-width: 1025px) {
	.tm-grid--scroll {
		grid-auto-flow: row;
		grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
		grid-auto-columns: auto;
		overflow: visible;
	}
}

/* Ảnh sản phẩm nền sáng hơn để hàng đồ chơi nhiều màu không bị chìm */
.tm-card__media { background: linear-gradient(165deg, #f8faff, #eef2fc); }
.tm-gal__stage { background: linear-gradient(165deg, #f8faff, #eef2fc); }
