/*
Theme Name: Tận Tay — logistics-mau-03
Theme URI: https://logistics-mau-03.mauwebsitedep.net/
Description: Mẫu website công ty chuyển phát nhanh nội địa, mạnh ở chặng cuối — giao tận tay, thu hộ COD, giao trong ngày nội thành. Theme con của vinasite, chạy WooCommerce ở chế độ danh mục (không bán qua giỏ). Đỏ tươi trên nền trắng với chữ màu than.
Author: VinaSite
Author URI: https://vinasite.com.vn/
Template: vinasite
Version: 1.0.0
Text Domain: logistics-mau-03
*/

/* =====================================================================
 * TẬN TAY — toàn bộ CSS của mẫu.
 *
 * Thứ tự: biến → nền → nút và trạng thái → đầu trang → trang chủ theo đúng thứ
 * tự khối → trang danh mục và chi tiết → trang tĩnh → khối của WooCommerce →
 * chân trang → CHUYỂN ĐỘNG → màn hình hẹp.
 *
 * Hai chỗ phải đọc trước khi sửa:
 *   • Mục CHUYỂN ĐỘNG THEO CUỘN — bộ chọn ở đó phải khớp từng chữ với bốn hằng
 *     đầu `assets/site.js`.
 *   • Mục NÚT CỦA KHỐI WOOCOMMERCE — ba trang giỏ/thanh toán/tài khoản lấy màu
 *     từ `theme.json` chứ không từ tệp này, nên phải khai lại.
 * ===================================================================== */

/* =====================================================================
 * BIẾN
 *
 * THANG CHỮ: đúng 6 bậc, không hơn. Thêm một cỡ thứ bảy là bắt đầu trượt về
 * chỗ "25 cỡ chữ lệch nhau nửa pixel" mà chuẩn chung cấm.
 * THANG KHOẢNG CÁCH: bước 4px, không có số lẻ nào ngoài thang.
 * ===================================================================== */
:root {
	--tt-do:      #E11D2A;
	--tt-do-dam:  #A90F1A;
	--tt-do-mo:   #FFEEEF;
	--tt-than:    #15171A;
	--tt-than-2:  #22262B;
	--tt-xam:     #5F666E;
	--tt-xam-mo:  #8E959C;
	--tt-nen:     #F6F7F8;
	--tt-line:    #E3E6E9;
	--tt-trang:   #FFFFFF;

	--tt-fs-1: 0.8125rem;                        /* 13 — nhãn, chữ nhỏ   */
	--tt-fs-2: 0.9375rem;                        /* 15 — chữ phụ, meta   */
	--tt-fs-3: 1.0625rem;                        /* 17 — chữ nội dung    */
	--tt-fs-4: 1.375rem;                         /* 22 — tiêu đề thẻ     */
	--tt-fs-5: 1.875rem;                         /* 30 — tiêu đề khối    */
	--tt-fs-6: clamp(2rem, 1.2rem + 2.6vw, 2.75rem); /* 32–44 — hero     */

	--tt-r:   10px;
	--tt-r-s: 6px;

	--tt-bong:   0 1px 2px rgba(21, 23, 26, .05), 0 6px 16px rgba(21, 23, 26, .06);
	--tt-bong-2: 0 2px 4px rgba(21, 23, 26, .06), 0 14px 30px rgba(21, 23, 26, .10);

	--tt-ease: cubic-bezier(.2, .7, .3, 1);
	--tt-wrap: 1200px;
}

/* =====================================================================
 * NỀN
 * ===================================================================== */
body.tt-co {
	margin: 0;
	background: var(--tt-trang);
	color: var(--tt-than);
	font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: var(--tt-fs-3);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	/* Chữ số về đúng bề rộng bằng nhau: bảng phí có cột số xếp chồng nhau, phông
	   tỉ lệ làm dấu chấm phân nhóm nghìn so le giữa các dòng và đọc rất mệt mắt.
	   Khai ở đây thì khỏi phải tải thêm một họ phông đơn cách. */
	font-variant-numeric: tabular-nums;
}

body.tt-co * { box-sizing: border-box; }

/* Theme mẹ nhuộm h1–h3 theo bảng màu của nó. Mẫu này tông đỏ nên chữ nhuộm sai
   KHÔNG nhận ra bằng mắt — phải khai lại chủ động, và kiểm bằng mã màu. */
body.tt-co h1,
body.tt-co h2,
body.tt-co h3,
body.tt-co h4,
body.tt-co .tt-kh h2,
body.tt-co .tt-kh h3 {
	color: inherit;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.012em;
	margin: 0;
}

body.tt-co p { margin: 0; }
body.tt-co img { max-width: 100%; height: auto; display: block; }

/*
 * Màu liên kết mặc định, cố ý khai với ĐỘ RIÊNG THẤP NHẤT có thể.
 *
 * Viết thẳng `body.tt-co a` thì luật này có độ riêng (0,1,2) và thắng mọi lớp
 * nút một-lớp như `.tt-btn--do` (0,1,0). Hậu quả đo được ở bản đầu: chữ trên
 * nút đỏ ra ĐÚNG MÀU ĐỎ CỦA NỀN NÚT — nút "Xem bảng phí" ở hero và nút "Gửi
 * hàng ngay" trên đầu trang thành hai khối đỏ trơn, không đọc được chữ nào.
 * Mẫu tông đỏ nên mắt rất dễ bỏ qua, phải đo bằng mã màu mới thấy.
 *
 * `:where()` đóng góp 0 vào độ riêng, nên luật còn (0,0,1) và mọi lớp của mẫu
 * đều thắng nó. Đây là chỗ duy nhất trong tệp dùng `:where()`, và nó thay cho
 * hàng chục lần phải viết `body.tt-co` trước mỗi lớp nút.
 */
:where(body.tt-co) a { color: var(--tt-do); text-decoration: none; }
:where(body.tt-co) a:hover { text-decoration: underline; }

/* Viền tiêu điểm phải thấy được ở mọi nền — không `outline: none` ở đâu cả. */
body.tt-co :focus-visible {
	outline: 2px solid var(--tt-do);
	outline-offset: 2px;
	border-radius: var(--tt-r-s);
}

.tt-wrap {
	width: min(100% - 32px, var(--tt-wrap));
	margin-inline: auto;
}

.tt-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	background: var(--tt-than);
	color: #fff;
	padding: 12px 20px;
	border-radius: var(--tt-r-s);
}
.tt-skip:focus { left: 16px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Bảng rộng cuộn ngang trong KHUNG RIÊNG, không để cả trang tràn ngang. */
.tt-cuon { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =====================================================================
 * NÚT VÀ TRẠNG THÁI
 * ===================================================================== */
.tt-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--tt-r-s);
	font-size: var(--tt-fs-2);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s var(--tt-ease), color .2s var(--tt-ease),
		border-color .2s var(--tt-ease), transform .2s var(--tt-ease);
}
.tt-btn--to { padding: 15px 26px; font-size: var(--tt-fs-3); }

.tt-btn--do { background: var(--tt-do); color: #fff; }
.tt-btn--do:hover { background: var(--tt-do-dam); color: #fff; }

.tt-btn--than { background: var(--tt-than); color: #fff; }
.tt-btn--than:hover { background: var(--tt-than-2); color: #fff; }

.tt-btn--vien { background: transparent; color: var(--tt-than); border-color: var(--tt-line); }
.tt-btn--vien:hover { background: var(--tt-nen); border-color: var(--tt-than); color: var(--tt-than); }

/* Phản hồi khi bấm: nút lún nhẹ. Chỉ `transform`, không chạm bố cục. */
.tt-btn:active { transform: translateY(1px) scale(.99); }

.tt-arrow { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .2s var(--tt-ease); }
.tt-btn:hover .tt-arrow { transform: translateX(3px); }

.tt-lien {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--tt-fs-2);
	font-weight: 700;
	color: var(--tt-do);
}
.tt-lien:hover .tt-arrow { transform: translateX(3px); }

/* Ô nhập và ô chọn dùng chung một kiểu trên toàn site. */
.tt-o { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tt-o label {
	font-size: var(--tt-fs-1);
	font-weight: 700;
	color: var(--tt-xam);
	text-transform: uppercase;
	letter-spacing: .05em;
}
.tt-o input,
.tt-o select,
.tt-o textarea {
	font: inherit;
	font-size: var(--tt-fs-2);
	color: var(--tt-than);
	background: var(--tt-trang);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r-s);
	padding: 11px 13px;
	width: 100%;
	transition: border-color .2s var(--tt-ease), box-shadow .2s var(--tt-ease);
}
.tt-o textarea { resize: vertical; }
.tt-o input:hover,
.tt-o select:hover,
.tt-o textarea:hover { border-color: var(--tt-xam-mo); }
.tt-o input:focus,
.tt-o select:focus,
.tt-o textarea:focus {
	border-color: var(--tt-do);
	box-shadow: 0 0 0 3px var(--tt-do-mo);
	outline: none;
}

/* =====================================================================
 * DẢI TRÊN CÙNG VÀ ĐẦU TRANG
 * ===================================================================== */
.tt-bar {
	background: var(--tt-than);
	color: #fff;
	font-size: var(--tt-fs-1);
}
.tt-bar__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
	padding-block: 8px;
}
.tt-bar__in span { color: #CDD2D7; }
.tt-bar__in strong { color: #fff; }
.tt-bar__in a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}
.tt-bar__in a:hover { color: var(--tt-do); text-decoration: none; }
.tt-bar__in a:hover .tt-arrow { transform: translateX(3px); }

/*
 * ĐẦU TRANG DÍNH, CHIỀU CAO KHÔNG ĐỔI.
 *
 * Phần tử `position: sticky` vẫn chiếm chỗ trong dòng chảy, nên thu chiều cao
 * lúc đang cuộn sẽ kéo cả trang bên dưới nhích lên một nhịp thấy rõ và đẩy CLS
 * lên. Cảm giác "gọn lại" tạo bằng ba thứ không dồn bố cục: bóng đổ hiện ra,
 * vạch đỏ vẽ ra ở chân thanh khi đã qua hero, và trượt cả thanh đi bằng
 * `transform` khi cuộn xuống.
 */
.tt-head {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--tt-trang);
	border-bottom: 1px solid var(--tt-line);
	transition: transform .28s var(--tt-ease), box-shadow .28s var(--tt-ease);
}
.tt-head.is-stuck { box-shadow: var(--tt-bong); }
.tt-head.is-hidden { transform: translateY(-100%); }

/* Vạch đỏ vẽ ra ở chân thanh khi đã cuộn qua hero. Dùng `transform: scaleX`
   trên một lớp phủ, không animate `width`. */
.tt-head::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 2px;
	background: var(--tt-do);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .5s var(--tt-ease);
}
.tt-head.is-past::after { transform: scaleX(1); }

/*
 * Khoảng cách 16px chứ không 24px, và `.tt-tools` cũng 10px.
 *
 * Menu bảy mục cộng nút "Gửi hàng ngay" vừa khít khung 1200px ở bề rộng 1440;
 * mỗi 8px thừa ở đây là 8px tràn ngang. Đo lại sau khi sửa: tràn ngang 0.
 */
.tt-head__row {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 72px;
	padding-block: 12px;
}

.tt-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.tt-brand:hover { text-decoration: none; }
.tt-brand svg { border-radius: var(--tt-r-s); }
.tt-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.tt-brand__name { font-size: var(--tt-fs-4); font-weight: 800; color: var(--tt-than); letter-spacing: -.02em; }
.tt-brand__tag { font-size: 10px; font-weight: 700; color: var(--tt-xam); letter-spacing: .14em; }

.tt-nav { margin-inline-start: auto; }
.tt-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tt-nav a {
	display: block;
	padding: 8px 10px;
	border-radius: var(--tt-r-s);
	font-size: var(--tt-fs-2);
	font-weight: 600;
	color: var(--tt-than);
	white-space: nowrap;
	transition: background-color .2s var(--tt-ease), color .2s var(--tt-ease);
}
.tt-nav a:hover { background: var(--tt-nen); color: var(--tt-do); text-decoration: none; }
.tt-nav a[aria-current="page"] { color: var(--tt-do); background: var(--tt-do-mo); }

.tt-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.tt-search { position: relative; display: flex; align-items: center; }
.tt-search svg {
	position: absolute;
	left: 10px;
	width: 18px; height: 18px;
	color: var(--tt-xam-mo);
	pointer-events: none;
}
.tt-search input {
	font: inherit;
	font-size: var(--tt-fs-2);
	width: 170px;
	padding: 9px 12px 9px 34px;
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r-s);
	background: var(--tt-nen);
	transition: border-color .2s var(--tt-ease), background-color .2s var(--tt-ease);
}
.tt-search input:focus { background: var(--tt-trang); border-color: var(--tt-do); outline: none; }
.tt-search button { position: absolute; left: -9999px; }
.tt-search button:focus { position: static; left: auto; }

.tt-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	padding: 0;
	background: var(--tt-trang);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r-s);
	cursor: pointer;
}
.tt-burger span[aria-hidden] { display: flex; flex-direction: column; gap: 4px; }
.tt-burger i { display: block; width: 18px; height: 2px; background: var(--tt-than); border-radius: 2px; }

/* =====================================================================
 * HERO
 *
 * KHÔNG áp hiệu ứng ẩn/hiện cho hero — ẩn hero là đẩy lùi LCP, hại trực tiếp
 * điểm tốc độ. Chữ chỉ trượt lên một nhịp SAU KHI đã hiện (xem mục CHUYỂN
 * ĐỘNG), và ảnh phóng rất chậm trong khung `overflow: hidden`.
 * ===================================================================== */
.tt-hero { padding-block: 56px 48px; border-bottom: 1px solid var(--tt-line); }
.tt-hero__in {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 48px;
	align-items: center;
}

.tt-hero__nhan {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tt-do-mo);
	color: var(--tt-do-dam);
	font-size: var(--tt-fs-1);
	font-weight: 700;
}
.tt-hero__nhan i {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--tt-do);
	flex: 0 0 auto;
}

.tt-hero__tieu { font-size: var(--tt-fs-6); margin-top: 16px; }
.tt-hero__tieu span { color: var(--tt-do); }

.tt-hero__mo {
	margin-top: 16px;
	max-width: 48ch;
	color: var(--tt-xam);
}

.tt-hero__nut { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.tt-hero__so {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 36px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--tt-line);
}
.tt-hero__so div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.tt-hero__so dt { font-size: var(--tt-fs-1); color: var(--tt-xam); line-height: 1.35; }
.tt-hero__so dd { margin: 0; font-size: var(--tt-fs-5); font-weight: 800; color: var(--tt-than); line-height: 1.1; }

.tt-hero__ghi { margin-top: 12px; font-size: var(--tt-fs-1); color: var(--tt-xam-mo); }

/* Khung ảnh tỉ lệ cố định: ảnh về đúng cỡ thì không có lần xê dịch nào. */
.tt-hero__anh {
	position: relative;
	border-radius: var(--tt-r);
	overflow: hidden;
	background: var(--tt-nen);
	aspect-ratio: 4 / 3;
}
.tt-hero__anh img { width: 100%; height: 100%; object-fit: cover; }

.tt-hero__the {
	position: absolute;
	left: 16px; bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 16px;
	border-radius: var(--tt-r-s);
	background: rgba(21, 23, 26, .9);
	color: #fff;
	max-width: calc(100% - 32px);
}
.tt-hero__the b { font-size: var(--tt-fs-4); font-weight: 800; color: var(--tt-do); line-height: 1.1; }
.tt-hero__the i { font-size: var(--tt-fs-1); font-style: normal; color: #CDD2D7; }

/* =====================================================================
 * DẢI MŨI TÊN CHẠY NGANG
 *
 * Chuyển động riêng của mẫu. Dải nằm ngoài vùng đọc nội dung nên được phép
 * chạy liên tục. Chỉ `transform` — không chạm `left` hay `background-position`.
 * ===================================================================== */
.tt-chay {
	overflow: hidden;
	background: var(--tt-than);
	color: #fff;
	padding-block: 12px;
}
.tt-chay__ray { display: flex; width: max-content; }
.tt-chay__bo {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-inline-end: 20px;
	font-size: var(--tt-fs-2);
	font-weight: 700;
	white-space: nowrap;
}
.tt-chay__bo b { font-weight: 700; }
.tt-chay__bo svg { width: 16px; height: 16px; color: var(--tt-do); flex: 0 0 auto; }

/* =====================================================================
 * KHUNG CHUNG CỦA MỘT KHỐI TRANG CHỦ
 * ===================================================================== */
.tt-kh { padding-block: 64px; }

/*
 * Nền xen kẽ khai theo TÊN KHỐI, không theo `:nth-of-type(even)`.
 *
 * Khối "gói dịch vụ tiêu biểu" chỉ in ra khi có sản phẩm, nên đếm theo thứ tự
 * thì một site chưa chạy kịch bản cài đặt sẽ đảo nền của mọi khối sau nó.
 */
.tt-loai,
.tt-qt,
.tt-mang,
.tt-cs { background: var(--tt-nen); }

.tt-kh__dau { max-width: 62ch; margin-bottom: 36px; }
.tt-kh__dau h2 { font-size: var(--tt-fs-5); }
.tt-kh__dau p { margin-top: 12px; color: var(--tt-xam); }
.tt-kh__dau strong { color: var(--tt-than); }

.tt-kh__dau--hang {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.tt-kh__dau--hang > div { max-width: 62ch; }

/* =====================================================================
 * BỐN LOẠI DỊCH VỤ
 * ===================================================================== */
.tt-loai__luoi {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.tt-loai__the {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	background: var(--tt-trang);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r);
	transition: transform .22s var(--tt-ease), box-shadow .22s var(--tt-ease), border-color .22s var(--tt-ease);
}
.tt-loai__the:hover {
	transform: translateY(-5px);
	box-shadow: var(--tt-bong-2);
	border-color: transparent;
}
.tt-loai__so {
	font-size: var(--tt-fs-1);
	font-weight: 800;
	color: var(--tt-do);
	letter-spacing: .08em;
}
.tt-loai__the h3 { font-size: var(--tt-fs-4); }
.tt-loai__tg { display: flex; flex-direction: column; gap: 1px; }
.tt-loai__tg b { font-size: var(--tt-fs-4); font-weight: 800; color: var(--tt-than); line-height: 1.15; }
.tt-loai__tg i { font-size: var(--tt-fs-1); font-style: normal; color: var(--tt-do); font-weight: 700; }
.tt-loai__mo { font-size: var(--tt-fs-2); color: var(--tt-xam); }
.tt-loai__hop {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--tt-line);
	font-size: var(--tt-fs-1);
	color: var(--tt-xam);
}
.tt-loai__hop span { display: block; font-weight: 700; color: var(--tt-than); }
.tt-loai__the .tt-lien { margin-top: 12px; }

/* =====================================================================
 * CÔNG CỤ TÍNH PHÍ
 *
 * Nhãn "Phí ước lượng minh hoạ, không phải giá bán" đặt NGAY TRÊN con số và ở
 * cỡ chữ đọc được, không phải một dòng chú thích nhỏ ở cuối khối: người xem đọc
 * con số trước rồi mới đọc xung quanh.
 * ===================================================================== */
.tt-phi__khung {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 24px;
	align-items: start;
	margin-bottom: 32px;
}

.tt-phi__form {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 16px 12px;
	align-items: end;
	padding: 24px;
	background: var(--tt-trang);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r);
}
.tt-phi__form .tt-o:nth-of-type(3) { grid-column: 1 / -1; }
.tt-phi__form button { grid-column: 1 / -1; justify-content: center; }
.tt-phi__mui {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	color: var(--tt-do);
}
.tt-phi__mui .tt-arrow { width: 20px; height: 20px; }

.tt-phi__kq {
	padding: 24px;
	border-radius: var(--tt-r);
	background: var(--tt-than);
	color: #fff;
}
.tt-phi__canh {
	display: inline-block;
	padding: 5px 10px;
	border-radius: var(--tt-r-s);
	background: var(--tt-do);
	color: #fff;
	font-size: var(--tt-fs-1);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.tt-phi__so {
	margin-top: 12px;
	font-size: var(--tt-fs-6);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.02em;
}
.tt-phi__tuyen { margin-top: 4px; font-size: var(--tt-fs-2); color: #CDD2D7; }
.tt-phi__chi {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 20px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .14);
}
.tt-phi__chi dt { font-size: var(--tt-fs-1); color: #9BA3AA; }
.tt-phi__chi dd { margin: 2px 0 0; font-size: var(--tt-fs-2); font-weight: 700; }
.tt-phi__kq .tt-phi__ghi { margin-top: 16px; color: #9BA3AA; }

.tt-phi__ghi { font-size: var(--tt-fs-1); color: var(--tt-xam); }

.tt-phi__bang table {
	width: 100%;
	border-collapse: collapse;
	background: var(--tt-trang);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r);
	overflow: hidden;
	font-size: var(--tt-fs-2);
}
.tt-phi__bang caption {
	text-align: left;
	padding-bottom: 12px;
	font-size: var(--tt-fs-1);
	font-weight: 700;
	color: var(--tt-do-dam);
}
.tt-phi__bang th,
.tt-phi__bang td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--tt-line);
}
.tt-phi__bang thead th {
	background: var(--tt-than);
	color: #fff;
	font-size: var(--tt-fs-1);
	font-weight: 700;
	white-space: nowrap;
}
.tt-phi__bang tbody th { font-weight: 700; }
.tt-phi__bang tbody tr:last-child th,
.tt-phi__bang tbody tr:last-child td { border-bottom: 0; }
.tt-phi__bang .tt-phi__ghi { margin-top: 12px; }

/* =====================================================================
 * TRA CỨU VẬN ĐƠN
 *
 * Khối cố ý KHÔNG trả về trạng thái nào và KHÔNG có hành trình mẫu nào — xem
 * chú thích dài trong `inc/shop.php` và `front-page.php`.
 * ===================================================================== */
.tt-tra { background: var(--tt-than); color: #fff; }
.tt-tra__in {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 40px;
	align-items: start;
}
.tt-tra h2 { font-size: var(--tt-fs-5); }
.tt-tra__mo { margin-top: 12px; color: #CDD2D7; max-width: 56ch; }
.tt-tra__mo strong { color: #fff; }

.tt-tra__form { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.tt-tra__form input {
	flex: 1 1 240px;
	font: inherit;
	font-size: var(--tt-fs-2);
	padding: 13px 16px;
	color: #fff;
	background: var(--tt-than-2);
	border: 1px solid #333A41;
	border-radius: var(--tt-r-s);
}
.tt-tra__form input::placeholder { color: #8E959C; }
.tt-tra__form input:focus { border-color: var(--tt-do); outline: none; }

.tt-tra__bao {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	padding: 20px;
	border-radius: var(--tt-r);
	background: var(--tt-than-2);
	border-left: 3px solid var(--tt-do);
}
.tt-tra__bao svg { width: 24px; height: 24px; color: var(--tt-do); flex: 0 0 auto; }
.tt-tra__bao div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tt-tra__bao b { font-size: var(--tt-fs-3); }
.tt-tra__bao span { font-size: var(--tt-fs-2); color: #CDD2D7; }
.tt-tra__bao .tt-btn { margin-top: 6px; background: var(--tt-do); color: #fff; }
.tt-tra__bao .tt-btn:hover { background: var(--tt-do-dam); }

.tt-tra__phai {
	padding: 24px;
	border-radius: var(--tt-r);
	border: 1px dashed #3A424A;
	background: rgba(255, 255, 255, .03);
}
.tt-tra__phai h3 { font-size: var(--tt-fs-4); }
.tt-tra__phai p { margin-top: 10px; font-size: var(--tt-fs-2); color: #CDD2D7; }
.tt-tra__phai ol { margin: 16px 0 0; padding-inline-start: 20px; font-size: var(--tt-fs-2); color: #CDD2D7; }
.tt-tra__phai li + li { margin-top: 10px; }
.tt-tra__phai code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: .92em;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	padding: 1px 5px;
	border-radius: 4px;
}
.tt-tra__canh { color: var(--tt-do) !important; font-weight: 600; }

/* =====================================================================
 * QUY TRÌNH BỐN BƯỚC
 * ===================================================================== */
.tt-qt__so { color: var(--tt-do); margin-bottom: 8px; }
.tt-qt__so svg { width: 100%; height: 56px; display: block; }

.tt-qt__luoi {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tt-qt__luoi li { display: flex; flex-direction: column; gap: 8px; }
.tt-qt__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--tt-do);
	color: #fff;
	font-size: var(--tt-fs-2);
	font-weight: 800;
}
.tt-qt__luoi h3 { font-size: var(--tt-fs-4); }
.tt-qt__luoi p { font-size: var(--tt-fs-2); color: var(--tt-xam); }

/* =====================================================================
 * MẠNG LƯỚI THEO VÙNG
 * ===================================================================== */
.tt-mang__luoi {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.tt-mang__the {
	padding: 20px;
	background: var(--tt-trang);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r);
	border-left: 3px solid var(--tt-do);
	transition: transform .22s var(--tt-ease), box-shadow .22s var(--tt-ease);
}
.tt-mang__the:hover { transform: translateY(-4px); box-shadow: var(--tt-bong); }
.tt-mang__the h3 { font-size: var(--tt-fs-3); }
.tt-mang__the p { margin-top: 6px; font-size: var(--tt-fs-2); color: var(--tt-xam); }

/* =====================================================================
 * CÂU HỎI THƯỜNG GẶP
 * ===================================================================== */
.tt-hoi__luoi { display: grid; gap: 12px; }
.tt-hoi__muc {
	background: var(--tt-trang);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r);
	overflow: hidden;
}
.tt-hoi__muc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 24px;
	cursor: pointer;
	font-size: var(--tt-fs-3);
	font-weight: 700;
	list-style: none;
	transition: background-color .2s var(--tt-ease);
}
.tt-hoi__muc summary::-webkit-details-marker { display: none; }
.tt-hoi__muc summary:hover { background: var(--tt-nen); }
.tt-hoi__muc summary svg {
	width: 18px; height: 18px;
	color: var(--tt-do);
	flex: 0 0 auto;
	transition: transform .2s var(--tt-ease);
}
.tt-hoi__muc[open] summary svg { transform: rotate(180deg); }
.tt-hoi__muc p {
	padding: 0 24px 20px;
	font-size: var(--tt-fs-2);
	color: var(--tt-xam);
	max-width: 80ch;
}

/* =====================================================================
 * KHỐI CHÍNH SÁCH CẦN THAY
 * ===================================================================== */
.tt-cs__luoi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.tt-cs__the {
	padding: 20px;
	border: 1px dashed var(--tt-line);
	border-radius: var(--tt-r);
	background: var(--tt-trang);
}
.tt-cs__nhan {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--tt-do-mo);
	color: var(--tt-do-dam);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.tt-cs__the h3 { margin-top: 10px; font-size: var(--tt-fs-3); }
.tt-cs__the p { margin-top: 6px; font-size: var(--tt-fs-2); color: var(--tt-xam); }

/* =====================================================================
 * LỜI MỜI CUỐI TRANG
 * ===================================================================== */
.tt-cta { padding-block: 56px; background: var(--tt-do); color: #fff; }
.tt-cta__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.tt-cta h2 { font-size: var(--tt-fs-5); }
.tt-cta p { margin-top: 10px; max-width: 56ch; color: rgba(255, 255, 255, .88); }
.tt-cta__nut { display: flex; gap: 12px; flex-wrap: wrap; }
.tt-cta .tt-btn--do { background: var(--tt-than); color: #fff; }
.tt-cta .tt-btn--do:hover { background: var(--tt-than-2); }
.tt-cta .tt-btn--vien { border-color: rgba(255, 255, 255, .5); color: #fff; }
.tt-cta .tt-btn--vien:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* =====================================================================
 * TRANG TĨNH, DANH MỤC VÀ CHI TIẾT
 * ===================================================================== */
.tt-page__head { padding-block: 40px 28px; border-bottom: 1px solid var(--tt-line); }
.tt-page__head--sp { padding-block: 24px 16px; border-bottom: 0; }
.tt-page__title { font-size: var(--tt-fs-5); margin-top: 8px; }
.tt-page__mo { margin-top: 12px; max-width: 70ch; color: var(--tt-xam); }
.tt-page__body { padding-block: 40px 64px; }
.tt-page__body > * + * { margin-top: 16px; }

.tt-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--tt-fs-1); color: var(--tt-xam); }
.tt-crumb a { color: var(--tt-xam); }
.tt-crumb a:hover { color: var(--tt-do); }

.tt-shop { padding-block: 32px 64px; }

.tt-loc {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 12px;
	padding: 20px;
	margin-bottom: 32px;
	background: var(--tt-nen);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r);
}
.tt-loc .tt-o { flex: 1 1 200px; }
.tt-loc__bo { align-self: center; font-size: var(--tt-fs-2); font-weight: 600; color: var(--tt-xam); }
.tt-loc__bo:hover { color: var(--tt-do); }

/* Trang rỗng cũng phải đẹp: khối này dùng chung cho 404 và cho kết quả lọc rỗng. */
.tt-trong {
	max-width: 56ch;
	margin-inline: auto;
	padding: 56px 24px;
	text-align: center;
}
.tt-trong__hinh { display: block; color: var(--tt-xam-mo); margin-bottom: 20px; }
.tt-trong__hinh svg { width: 88px; height: auto; margin-inline: auto; }
.tt-trong h2 { font-size: var(--tt-fs-4); }
.tt-trong p { margin-top: 12px; color: var(--tt-xam); }
.tt-trong__tim { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.tt-trong__tim input {
	font: inherit;
	font-size: var(--tt-fs-2);
	flex: 1 1 220px;
	max-width: 320px;
	padding: 12px 14px;
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r-s);
}
.tt-trong__tim input:focus { border-color: var(--tt-do); outline: none; }
.tt-trong__cta { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

.tt-sp { padding-block: 8px 64px; }

.tt-bangts { margin-top: 24px; }
.tt-bangts__tieu { font-size: var(--tt-fs-4); margin-bottom: 12px; }
.tt-bangts table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--tt-fs-2);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r);
	overflow: hidden;
}
.tt-bangts th,
.tt-bangts td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--tt-line); }
/* Cột nhãn hẹp lại để cột giá trị khỏi xuống ba dòng. KHÔNG đặt `min-width`
   cho bảng: `.tt-cuon` là ô lưới nên `min-width: auto` của nó không cho co, và
   bảng rộng hơn ô sẽ đẩy tràn ngang cả trang — đo được 11px ở 360px. */
.tt-bangts th { width: 34%; background: var(--tt-nen); font-weight: 700; }
.tt-bangts tr:last-child th,
.tt-bangts tr:last-child td { border-bottom: 0; }
.tt-bangts__nhac { margin-top: 10px; font-size: var(--tt-fs-1); color: var(--tt-do-dam); font-weight: 600; }

.tt-cta-don { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.tt-cta-don__ghi { margin-top: 12px; font-size: var(--tt-fs-2); color: var(--tt-xam); max-width: 56ch; }

/* =====================================================================
 * TRANG GIỚI THIỆU
 * ===================================================================== */
.tt-gt { padding-block: 48px 64px; display: grid; gap: 56px; }

.tt-gt__doi { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.tt-gt__doi--dao .tt-gt__anh { order: 2; }
.tt-gt__anh { border-radius: var(--tt-r); overflow: hidden; background: var(--tt-nen); aspect-ratio: 4 / 3; }
.tt-gt__anh img { width: 100%; height: 100%; object-fit: cover; }
.tt-gt__chu h2 { font-size: var(--tt-fs-5); }
.tt-gt__chu p { margin-top: 14px; color: var(--tt-xam); }

.tt-gt__buoc h2 { font-size: var(--tt-fs-5); margin-bottom: 24px; }
.tt-gt__buoc ol { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tt-gt__buoc li {
	display: flex;
	gap: 16px;
	padding: 20px;
	background: var(--tt-nen);
	border-radius: var(--tt-r);
}
.tt-gt__buoc li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px; height: 34px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--tt-do);
	color: #fff;
	font-weight: 800;
	font-size: var(--tt-fs-2);
}
.tt-gt__buoc h3 { font-size: var(--tt-fs-3); }
.tt-gt__buoc p { margin-top: 4px; font-size: var(--tt-fs-2); color: var(--tt-xam); }

.tt-gt__cs h2 { font-size: var(--tt-fs-5); }
.tt-gt__cs-mo { margin-top: 12px; color: var(--tt-xam); max-width: 70ch; }
.tt-gt__cs ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}
.tt-gt__cs li {
	padding: 16px 20px;
	border: 1px dashed var(--tt-line);
	border-radius: var(--tt-r);
}
.tt-gt__cs b { display: block; font-size: var(--tt-fs-3); }
.tt-gt__cs span { display: block; margin-top: 4px; font-size: var(--tt-fs-2); color: var(--tt-xam); }

.tt-gt__cta {
	padding: 32px;
	background: var(--tt-nen);
	border-radius: var(--tt-r);
	text-align: center;
}
.tt-gt__cta h2 { font-size: var(--tt-fs-4); }
.tt-gt__cta > div { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* =====================================================================
 * TRANG LIÊN HỆ
 * ===================================================================== */
.tt-lh { padding-block: 48px 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.tt-lh__form {
	padding: 28px;
	background: var(--tt-trang);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r);
	box-shadow: var(--tt-bong);
}
.tt-lh__form h2 { font-size: var(--tt-fs-4); margin-bottom: 20px; }
.tt-lh__form form { display: grid; gap: 16px; }
.tt-lh__hang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tt-lh__nhac { font-size: var(--tt-fs-1); color: var(--tt-xam); }
.tt-lh__nhac strong { color: var(--tt-do-dam); }

.tt-lh__ben { display: grid; gap: 24px; }
.tt-lh__anh { border-radius: var(--tt-r); overflow: hidden; background: var(--tt-nen); aspect-ratio: 4 / 3; }
.tt-lh__anh img { width: 100%; height: 100%; object-fit: cover; }
.tt-lh__thongtin h2 { font-size: var(--tt-fs-4); margin-bottom: 12px; }
.tt-lh__thongtin dl { display: grid; gap: 12px; margin: 0; }
.tt-lh__thongtin dt { font-size: var(--tt-fs-1); color: var(--tt-xam); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.tt-lh__thongtin dd { margin: 2px 0 0; font-size: var(--tt-fs-2); font-weight: 600; }
.tt-lh__can { padding: 20px; background: var(--tt-nen); border-radius: var(--tt-r); }
.tt-lh__can h3 { font-size: var(--tt-fs-3); }
.tt-lh__can ul { margin: 12px 0 0; padding-inline-start: 20px; font-size: var(--tt-fs-2); color: var(--tt-xam); }
.tt-lh__can li + li { margin-top: 8px; }

/* =====================================================================
 * LƯỚI VÀ THẺ GÓI DỊCH VỤ
 *
 * Markup giống hệt nhau ở hai chỗ — lưới tự dựng ở trang chủ và lưới của
 * WooCommerce ở trang danh mục — nên một đường CSS lo cả hai.
 *
 * BẪY ĐÃ GẶP Ở MẪU TRƯỚC: luật `.woocommerce ul.products.columns-4 li.product`
 * của WooCommerce riêng hơn `body.tt-co ul.products li.product`, nên nó thắng
 * và thẻ teo còn một phần tư ô lưới. Cách sửa không phải dán `!important` mà là
 * khai lại đủ các lớp `columns-N` với độ riêng đủ cao.
 * ===================================================================== */
body.tt-co ul.products,
body.tt-co ul.tt-luoi {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body.tt-co ul.products::before,
body.tt-co ul.products::after { content: none; }

body.tt-co ul.products.columns-1 { grid-template-columns: minmax(0, 1fr); }
body.tt-co ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tt-co ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tt-co ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.tt-co ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.tt-co ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

body.tt-co ul.products li.product,
body.tt-co ul.products.columns-1 li.product,
body.tt-co ul.products.columns-2 li.product,
body.tt-co ul.products.columns-3 li.product,
body.tt-co ul.products.columns-4 li.product,
body.tt-co ul.products.columns-5 li.product,
body.tt-co ul.products.columns-6 li.product,
body.tt-co ul.tt-luoi li.product {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--tt-trang);
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r);
	overflow: hidden;
	transition: transform .22s var(--tt-ease), box-shadow .22s var(--tt-ease), border-color .22s var(--tt-ease);
}
body.tt-co ul.products li.product:hover,
body.tt-co ul.tt-luoi li.product:hover {
	transform: translateY(-5px);
	box-shadow: var(--tt-bong-2);
	border-color: transparent;
}

/*
 * Liên kết bọc ảnh và tên gói — CHỈ nó, không phải mọi thẻ `a` con của
 * `li.product`.
 *
 * Viết `li.product > a` thì luật này (0,2,2) cũng tóm luôn nút "Gửi yêu cầu lấy
 * hàng", vốn cũng là con trực tiếp của `li.product`, và `color: inherit` biến
 * chữ trên nút thành màu than trên nền đỏ. Đo được tương phản rớt hẳn ở bản
 * đầu. Nhắm đúng một lớp thì nút giữ màu trắng của `.tt-btn--do`.
 */
body.tt-co li.product > a.woocommerce-LoopProduct-link { display: block; color: inherit; }
body.tt-co li.product > a.woocommerce-LoopProduct-link:hover { text-decoration: none; }

/* Khung ảnh tỉ lệ cố định + chỗ bám cho `overflow: hidden` và cho nhãn. */
.tt-the__anh {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tt-nen);
}
.tt-the__anh img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s var(--tt-ease);
}
body.tt-co li.product:hover .tt-the__anh img { transform: scale(1.05); }

.tt-nhan {
	position: absolute;
	top: 10px; left: 10px;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 6px 10px;
	border-radius: var(--tt-r-s);
	background: rgba(21, 23, 26, .9);
	color: #fff;
	line-height: 1.2;
}
.tt-nhan b { font-size: var(--tt-fs-1); font-weight: 800; }
.tt-nhan i { font-size: 10px; font-style: normal; color: var(--tt-do); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

body.tt-co li.product .woocommerce-loop-product__title {
	padding: 0 16px;
	margin: 8px 0 0;
	font-size: var(--tt-fs-3);
	font-weight: 700;
	color: var(--tt-than);
	line-height: 1.3;
}

.tt-gia { display: block; padding: 0 16px; font-size: var(--tt-fs-2); font-weight: 800; color: var(--tt-do); }
.tt-gia__ghi { display: block; padding: 0 16px; margin-top: 2px; font-size: var(--tt-fs-1); color: var(--tt-xam); }

.tt-ts { display: grid; gap: 4px; padding: 0 16px; margin: 8px 0 0; }
.tt-ts > div { display: flex; gap: 6px; font-size: var(--tt-fs-1); line-height: 1.4; }
.tt-ts dt { color: var(--tt-xam); flex: 0 0 82px; }
.tt-ts dd { margin: 0; font-weight: 600; min-width: 0; }

/* Nút trên thẻ: thường nằm yên, trượt lên một nhịp khi rê chuột vào thẻ. */
.tt-the__nut {
	margin: auto 16px 16px;
	justify-content: center;
	transform: translateY(2px);
	transition: transform .22s var(--tt-ease), background-color .2s var(--tt-ease);
}
body.tt-co li.product:hover .tt-the__nut { transform: translateY(0); }

/* =====================================================================
 * KHỐI CỦA WOOCOMMERCE
 *
 * Trang chi tiết, phân trang, thông báo, và BA TRANG giỏ/thanh toán/tài khoản.
 * Nút ở ba trang ấy là block của WooCommerce và lấy màu từ `theme.json` của
 * theme mẹ chứ không từ tệp này — phải khai lại đủ họ lớp, nếu không nút ra
 * màu lạ và rớt tương phản.
 * ===================================================================== */
body.tt-co .woocommerce-notices-wrapper { margin-bottom: 20px; }
body.tt-co .woocommerce-message,
body.tt-co .woocommerce-info,
body.tt-co .woocommerce-error {
	padding: 14px 18px;
	border: 1px solid var(--tt-line);
	border-left: 3px solid var(--tt-do);
	border-radius: var(--tt-r-s);
	background: var(--tt-nen);
	list-style: none;
	font-size: var(--tt-fs-2);
}

/* Cột tóm tắt rộng hơn cột ảnh một nhịp: nó chứa bảng bốn thông số, và ở tỉ lệ
   1:1 thì mỗi ô bảng xuống ba dòng, đọc rất mệt. */
body.tt-co div.product { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
body.tt-co div.product .woocommerce-product-gallery { border-radius: var(--tt-r); overflow: hidden; }
body.tt-co div.product .product_title { font-size: var(--tt-fs-5); }
body.tt-co div.product .woocommerce-product-details__short-description { margin-top: 14px; color: var(--tt-xam); }
body.tt-co div.product .summary .tt-gia,
body.tt-co div.product .summary .tt-gia__ghi { padding: 0; }
body.tt-co div.product .summary .tt-gia { margin-top: 12px; font-size: var(--tt-fs-4); }

body.tt-co .woocommerce-tabs { grid-column: 1 / -1; margin-top: 16px; }
body.tt-co .woocommerce-tabs ul.tabs {
	display: flex; gap: 8px; flex-wrap: wrap;
	margin: 0 0 20px; padding: 0 0 12px;
	list-style: none;
	border-bottom: 1px solid var(--tt-line);
}
body.tt-co .woocommerce-tabs ul.tabs li { margin: 0; }
body.tt-co .woocommerce-tabs ul.tabs a {
	display: block; padding: 8px 14px;
	border-radius: var(--tt-r-s);
	font-size: var(--tt-fs-2); font-weight: 700;
	color: var(--tt-xam);
}
body.tt-co .woocommerce-tabs ul.tabs li.active a { background: var(--tt-do-mo); color: var(--tt-do-dam); }
body.tt-co .woocommerce-tabs .panel > h2 { font-size: var(--tt-fs-4); margin-bottom: 12px; }
body.tt-co .woocommerce-tabs .panel p { color: var(--tt-xam); max-width: 80ch; }

body.tt-co .related.products { grid-column: 1 / -1; margin-top: 32px; }
body.tt-co .related.products > h2 { font-size: var(--tt-fs-4); margin-bottom: 20px; }

body.tt-co .woocommerce-pagination ul {
	display: flex; gap: 6px; flex-wrap: wrap;
	margin: 32px 0 0; padding: 0;
	list-style: none; border: 0;
}
body.tt-co .woocommerce-pagination li { border: 0; margin: 0; }
body.tt-co .woocommerce-pagination a,
body.tt-co .woocommerce-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--tt-line);
	border-radius: var(--tt-r-s);
	font-size: var(--tt-fs-2); font-weight: 700;
	color: var(--tt-than); background: var(--tt-trang);
}
body.tt-co .woocommerce-pagination a:hover { border-color: var(--tt-than); text-decoration: none; }
body.tt-co .woocommerce-pagination span.current { background: var(--tt-do); border-color: var(--tt-do); color: #fff; }

/* Chín họ lớp của nút WooCommerce, cộng nút khối Gutenberg. */
body.tt-co .woocommerce a.button,
body.tt-co .woocommerce button.button,
body.tt-co .woocommerce input.button,
body.tt-co .woocommerce a.button.alt,
body.tt-co .woocommerce button.button.alt,
body.tt-co .woocommerce input.button.alt,
body.tt-co .wc-block-components-button,
body.tt-co .wp-block-button__link,
body.tt-co .wc-block-cart__submit-button {
	background: var(--tt-do);
	color: #fff;
	border: 0;
	border-radius: var(--tt-r-s);
	padding: 12px 20px;
	font-size: var(--tt-fs-2);
	font-weight: 700;
	line-height: 1.2;
}
body.tt-co .woocommerce a.button:hover,
body.tt-co .woocommerce button.button:hover,
body.tt-co .woocommerce input.button:hover,
body.tt-co .woocommerce a.button.alt:hover,
body.tt-co .woocommerce button.button.alt:hover,
body.tt-co .woocommerce input.button.alt:hover,
body.tt-co .wc-block-components-button:hover,
body.tt-co .wp-block-button__link:hover,
body.tt-co .wc-block-cart__submit-button:hover {
	background: var(--tt-do-dam);
	color: #fff;
}

/* =====================================================================
 * CHÂN TRANG
 * ===================================================================== */
.tt-demo { background: var(--tt-do-mo); border-top: 1px solid #F6D4D7; }
.tt-demo__in { display: flex; gap: 12px; padding-block: 20px; align-items: flex-start; }
.tt-demo__in svg { width: 24px; height: 24px; color: var(--tt-do); flex: 0 0 auto; }
.tt-demo__in p { font-size: var(--tt-fs-2); color: #6B2A2E; max-width: 100ch; }
.tt-demo__in strong { color: var(--tt-do-dam); }

.tt-foot { background: var(--tt-than); color: #CDD2D7; padding-block: 48px 0; }
.tt-foot__in {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: 32px;
	padding-bottom: 40px;
}
.tt-foot h2 { font-size: var(--tt-fs-3); color: #fff; margin-bottom: 12px; }
.tt-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tt-foot a { color: #CDD2D7; font-size: var(--tt-fs-2); }
.tt-foot a:hover { color: var(--tt-do); }

.tt-foot__brand { display: inline-flex; align-items: center; gap: 12px; }
.tt-foot__brand svg { border-radius: var(--tt-r-s); }
.tt-foot__brand span { font-size: var(--tt-fs-4); font-weight: 800; color: #fff; }
.tt-foot__gt { margin-top: 14px; font-size: var(--tt-fs-2); max-width: 44ch; }

.tt-foot__lh { display: grid; gap: 12px; }
.tt-foot__lh b { display: block; font-size: var(--tt-fs-1); color: #8E959C; text-transform: uppercase; letter-spacing: .05em; }
.tt-foot__lh span,
.tt-foot__lh a { font-size: var(--tt-fs-2); }

.tt-foot__day {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-block: 20px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: var(--tt-fs-1);
	color: #8E959C;
}

.tt-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 60;
	width: min(100% - 32px, 560px);
	padding: 16px 20px;
	border-radius: var(--tt-r);
	background: var(--tt-than);
	color: #fff;
	font-size: var(--tt-fs-2);
	box-shadow: var(--tt-bong-2);
}

/* =====================================================================
 * CHUYỂN ĐỘNG
 *
 * BỘ CHỌN KHAI Ở HAI NƠI. Mục này và bốn hằng đầu `assets/site.js` phải khớp
 * từng chữ — lệch một chữ là có phần tử CSS giấu mà kịch bản không gọi hiện ra,
 * và nó ẩn vĩnh viễn với người dùng thật.
 *
 * CHỈ `transform` và `opacity`. Không animate `width`, `height`, `top`, `left`,
 * `margin` — những thứ đó buộc trình duyệt tính lại bố cục, gây giật và đẩy CLS.
 *
 * Hiệu ứng theo cuộn dùng thuộc tính `translate` RIÊNG, còn rê chuột dùng
 * `transform`. Cùng ghi vào một thuộc tính thì chúng tranh nhau: thẻ vừa hiện
 * ra sẽ nâng theo nhịp 700ms của hiệu ứng cuộn thay vì nhịp 220ms của rê chuột.
 * ===================================================================== */

/*
 * Hero vào trang: chữ trượt lên theo dòng, lệch nhịp 70ms.
 *
 * CHỈ `transform`, TUYỆT ĐỐI KHÔNG `opacity`. Bản đầu của mẫu này có
 * `opacity: 0` ở khung hình đầu, và nó hỏng đúng theo cách chuẩn chung cảnh
 * báo: chỗ nào trình duyệt không chạy hoạt ảnh — thẻ nền, khung xem của công
 * cụ trình duyệt, và cả những máy yếu khi trang còn đang tải — thì tiêu đề,
 * đoạn mô tả và hai cái nút nằm ở khung hình đầu, tức là TÀNG HÌNH. Hero tàng
 * hình cũng là đẩy lùi LCP, hại thẳng vào điểm tốc độ.
 *
 * Chỉ dịch chuyển thì ở trạng thái xấu nhất chữ vẫn hiện đủ, chỉ là không nhúc
 * nhích. Đó là cái giá đúng để trả.
 */
.tt-js .tt-ht { animation: tt-len .6s var(--tt-ease) both; animation-delay: var(--d, 0ms); }
@keyframes tt-len {
	from { transform: translateY(14px); }
	to   { transform: none; }
}

/* Ảnh hero phóng rất chậm, một lần, sau khi ảnh đã hiện. */
.tt-js .tt-hero__anh img { animation: tt-zoom 12s var(--tt-ease) both; }
@keyframes tt-zoom {
	from { transform: scale(1.06); }
	to   { transform: scale(1); }
}

/* CHUYỂN ĐỘNG THEO CUỘN — bốn bộ chọn, khớp với SEL / SEL_SO / SEL_VE /
   SEL_CHAY trong assets/site.js. */
/*
 * `is-in` nằm trên TỪNG PHẦN TỬ CON, không nằm trên khối bọc.
 *
 * `assets/site.js` theo dõi đúng bộ chọn `[data-tt-rise] > *`, nên
 * `e.target.classList.add('is-in')` gắn lớp lên từng đứa con. Bản đầu của tệp
 * này viết `[data-tt-rise].is-in > *`, tức là chờ lớp ấy ở khối bọc — một lớp
 * không bao giờ xuất hiện. Hậu quả: TOÀN BỘ nội dung có hiệu ứng cuộn ẩn vĩnh
 * viễn với người dùng thật, và chỉ hiện nhờ hai đường dự phòng. Đo trên trang
 * danh mục trước khi sửa: 16/16 thẻ gói dịch vụ `opacity: 0` sau khi đã cuộn
 * tới và `data-tt-io` đã bật.
 *
 * Đây đúng là cái bẫy mà chuẩn chung gọi tên: bộ chọn khai ở hai nơi, lệch một
 * chữ là nội dung biến mất mà không có lỗi nào trên console.
 */
.tt-js [data-tt-rise] > * {
	opacity: 0;
	translate: 0 20px;
	transition: opacity .7s var(--tt-ease), translate .7s var(--tt-ease);
}
.tt-js [data-tt-rise] > *.is-in { opacity: 1; translate: none; }

/* Lệch nhịp 80ms giữa các phần tử cùng hàng. */
.tt-js [data-tt-rise] > *.is-in:nth-child(1) { transition-delay: 0ms; }
.tt-js [data-tt-rise] > *.is-in:nth-child(2) { transition-delay: 80ms; }
.tt-js [data-tt-rise] > *.is-in:nth-child(3) { transition-delay: 160ms; }
.tt-js [data-tt-rise] > *.is-in:nth-child(4) { transition-delay: 240ms; }
.tt-js [data-tt-rise] > *.is-in:nth-child(5) { transition-delay: 320ms; }
.tt-js [data-tt-rise] > *.is-in:nth-child(6) { transition-delay: 400ms; }
.tt-js [data-tt-rise] > *.is-in:nth-child(n+7) { transition-delay: 480ms; }

/* Số liệu đếm lên: con số đã có sẵn trong HTML, đây chỉ là nhịp hiện. */
.tt-js [data-tt-so] { opacity: 0; transition: opacity .4s var(--tt-ease); }
.tt-js [data-tt-so].is-in { opacity: 1; }

/* Nét vẽ dần: đường ngang của sơ đồ quy trình vẽ từ trái sang phải. */
.tt-js [data-tt-ve] .tt-qt__duong { transition: stroke-dashoffset 1.1s var(--tt-ease); }
.tt-js [data-tt-ve] .tt-qt__moc,
.tt-js [data-tt-ve] .tt-qt__dau { opacity: 0; transition: opacity .4s var(--tt-ease); }
.tt-js [data-tt-ve].is-in .tt-qt__duong { stroke-dashoffset: 0; }
.tt-js [data-tt-ve].is-in .tt-qt__moc { opacity: 1; }
.tt-js [data-tt-ve].is-in .tt-qt__moc:nth-of-type(1) { transition-delay: 120ms; }
.tt-js [data-tt-ve].is-in .tt-qt__moc:nth-of-type(2) { transition-delay: 420ms; }
.tt-js [data-tt-ve].is-in .tt-qt__moc:nth-of-type(3) { transition-delay: 720ms; }
.tt-js [data-tt-ve].is-in .tt-qt__moc:nth-of-type(4) { transition-delay: 1020ms; }
.tt-js [data-tt-ve].is-in .tt-qt__dau { opacity: 1; transition-delay: 1100ms; }

/* Dải mũi tên chạy ngang: ray trôi đúng một nửa bề rộng, mà một nửa ấy là trọn
   một bản nội dung (nội dung lặp hai lần), nên vòng lặp không thấy mối nối. */
.tt-js [data-tt-chay].is-in .tt-chay__ray { animation: tt-chay 26s linear infinite; }
@keyframes tt-chay {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* Khối tra cứu: lời nhắn trượt vào khi hiện ra. */
.tt-js .tt-tra__bao { opacity: 0; translate: 0 8px; transition: opacity .3s var(--tt-ease), translate .3s var(--tt-ease); }
.tt-js .tt-tra__bao.is-in { opacity: 1; translate: none; }

/*
 * ĐƯỜNG DỰ PHÒNG 2 — `prefers-reduced-motion`.
 * Người dùng đã xin bớt chuyển động thì hiện hết ngay và bỏ mọi hiệu ứng.
 */
@media (prefers-reduced-motion: reduce) {
	.tt-js [data-tt-rise] > *,
	.tt-js [data-tt-rise] > *.is-in,
	.tt-js [data-tt-so],
	.tt-js .tt-tra__bao { opacity: 1; translate: none; transition: none; }

	.tt-js [data-tt-ve] .tt-qt__duong { stroke-dashoffset: 0; transition: none; }
	.tt-js [data-tt-ve] .tt-qt__moc,
	.tt-js [data-tt-ve] .tt-qt__dau { opacity: 1; transition: none; }

	.tt-js .tt-ht,
	.tt-js .tt-hero__anh img,
	.tt-js [data-tt-chay].is-in .tt-chay__ray { animation: none; }

	body.tt-co *,
	body.tt-co *::before,
	body.tt-co *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/*
 * ĐƯỜNG DỰ PHÒNG 3 — hẹn giờ 2,5 giây.
 * Script nội tuyến trong <head> gắn `tt-show-all` nếu tới lúc đó
 * IntersectionObserver chưa kích hoạt lần nào. Trong khung xem của công cụ
 * trình duyệt, IO KHÔNG kích hoạt lần nào — rủi ro thật, không phải giả định.
 */
.tt-show-all [data-tt-rise] > *,
.tt-show-all [data-tt-so],
.tt-show-all .tt-tra__bao:not([hidden]) { opacity: 1 !important; translate: none !important; }
.tt-show-all [data-tt-ve] .tt-qt__duong { stroke-dashoffset: 0 !important; }
.tt-show-all [data-tt-ve] .tt-qt__moc,
.tt-show-all [data-tt-ve] .tt-qt__dau { opacity: 1 !important; }

/* =====================================================================
 * MÀN HÌNH HẸP
 * ===================================================================== */
/*
 * Ô tìm kiếm trên đầu trang biến mất sớm, từ 1320px.
 *
 * Menu của mẫu này có bảy mục, và bảy mục cộng ô tìm kiếm cộng nút "Gửi hàng
 * ngay" vượt quá bề rộng khung ở 1440px — đo được tràn ngang 33px trước khi
 * sửa. Bỏ ô tìm kiếm là cách gọn nhất: trang danh mục và trang 404 đều có ô
 * tìm riêng, còn đầu trang thì việc cần làm là bấm "Gửi hàng ngay".
 */
@media (max-width: 1320px) {
	.tt-search { display: none; }
}

@media (max-width: 1100px) {
	.tt-hero__in { grid-template-columns: 1fr; gap: 32px; }
	.tt-hero__anh { order: -1; }
	.tt-loai__luoi,
	.tt-mang__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-cs__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-qt__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-qt__so { display: none; }
	.tt-phi__khung,
	.tt-tra__in,
	.tt-lh { grid-template-columns: 1fr; }
	.tt-gt__doi { grid-template-columns: 1fr; gap: 24px; }
	.tt-gt__doi--dao .tt-gt__anh { order: 0; }
	body.tt-co ul.products,
	body.tt-co ul.tt-luoi,
	body.tt-co ul.products.columns-4,
	body.tt-co ul.products.columns-5,
	body.tt-co ul.products.columns-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.tt-co div.product { grid-template-columns: 1fr; gap: 24px; }
	.tt-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/*
 * Menu ngang gập lại từ 1100px, không phải 900px.
 *
 * Bảy mục menu cộng dấu nhận diện cộng nút "Gửi hàng ngay" cần khoảng 1150px.
 * Đo ở 1024px trước khi sửa: tràn ngang 126px trên CẢ CHÍN trang — lỗi nằm ở
 * đầu trang nên nó có mặt ở mọi trang, đúng kiểu lỗi dễ bỏ sót nhất vì trang
 * chủ ở 1440px trông vẫn hoàn hảo.
 */
@media (max-width: 1100px) {
	/* Menu ngang không còn chỗ: chuyển sang bảng xổ dưới đầu trang. */
	.tt-burger { display: inline-flex; }
	.tt-nav {
		position: absolute;
		left: 0; right: 0;
		top: 100%;
		display: none;
		margin: 0;
		padding: 12px 16px 16px;
		background: var(--tt-trang);
		border-bottom: 1px solid var(--tt-line);
		box-shadow: var(--tt-bong);
	}
	.tt-nav.is-open { display: block; }
	.tt-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.tt-nav a { padding: 12px; }
	.tt-head__row { justify-content: space-between; }
}

@media (max-width: 900px) {
	/* Câu giới thiệu ở dải trên cùng dài, dưới mức này nó đẩy số tổng đài xuống
	   dòng — giấu câu ấy đi, giữ lại số bấm gọi được. */
	.tt-bar__in { font-size: 12px; justify-content: center; }
	.tt-bar__in span { display: none; }
	.tt-hero__so { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-gt__cs ul { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.tt-kh { padding-block: 48px; }
	.tt-hero { padding-block: 32px; }
	.tt-loai__luoi,
	.tt-mang__luoi,
	.tt-cs__luoi,
	.tt-qt__luoi { grid-template-columns: 1fr; }
	.tt-phi__form { grid-template-columns: 1fr; }
	.tt-phi__form .tt-o:nth-of-type(3) { grid-column: auto; }
	.tt-phi__mui { height: auto; transform: rotate(90deg); }
	.tt-lh__hang { grid-template-columns: 1fr; }
	body.tt-co ul.products,
	body.tt-co ul.tt-luoi,
	body.tt-co ul.products.columns-3,
	body.tt-co ul.products.columns-4,
	body.tt-co ul.products.columns-5,
	body.tt-co ul.products.columns-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tt-foot__in { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
	/* Nút "Gửi hàng ngay" trên đầu trang không vừa cạnh nút menu ở bề rộng này.
	   Giấu đi: dải trên cùng đã có số tổng đài bấm gọi được, còn hero có đúng
	   hai nút ấy ngay màn hình đầu. */
	.tt-tools__cta { display: none; }
	.tt-brand__tag { display: none; }
	body.tt-co ul.products,
	body.tt-co ul.tt-luoi,
	body.tt-co ul.products.columns-2,
	body.tt-co ul.products.columns-3,
	body.tt-co ul.products.columns-4,
	body.tt-co ul.products.columns-5,
	body.tt-co ul.products.columns-6 { grid-template-columns: 1fr; }
	.tt-hero__so { grid-template-columns: 1fr; gap: 12px; }
	.tt-hero__so div { flex-direction: row; align-items: baseline; gap: 8px; }
	.tt-hero__so dd { font-size: var(--tt-fs-4); }
}
