@charset "UTF-8";
/*
Theme Name: Bạch Ngân — trang sức 02
Theme URI: https://mauwebsitedep.net/
Description: Giao diện con của vinasite cho cửa hàng trang sức bạc và thép. Dựng theo ngôn ngữ thiết kế của mẫu Corano: nền trắng, nhấn vàng đồng #C29958, chữ sans 14px, thẻ sản phẩm vuông góc có nút thao tác hiện khi rê chuột.
Author: VinaSite
Template: vinasite
Version: 3.0.0
Text Domain: trangsuc-mau-02
*/

/*
 * ==================================================================
 * BẠCH NGÂN — BẢN 3.0, DỰNG LẠI THEO NGÔN NGỮ THIẾT KẾ CỦA CORANO
 * ==================================================================
 *
 * ĐÃ HỌC GÌ TỪ MẪU GỐC (đo trên trang thật, không chép mã nguồn)
 *
 *   khung        1140px, lề trong 24px
 *   chữ          sans 14px, dòng 1.7, màu #555; tiêu đề #222
 *   nhấn         vàng đồng #C29958
 *   nút          nền vàng, chữ trắng, bo TRÒN HẲN (50px), 14px 30px
 *   tiêu đề khối 30px/700, giữa trang, có một dòng dẫn 15px bên dưới
 *   thẻ sản phẩm ảnh vuông nền trắng, nhãn bo tròn góc trên trái,
 *                cột nút thao tác hiện ra khi rê chuột, tên 16px/400,
 *                giá vàng + giá cũ gạch ngang
 *   chân trang   nền #F7F7F7, đệm 80px, bốn cột
 *
 * HAI CHỖ CỐ Ý LÀM KHÁC MẪU GỐC, VÀ VÌ SAO
 *
 *   1. PHÔNG. Mẫu gốc dùng Lato. Lato KHÔNG có bộ ký tự `vietnamese` trên
 *      Google Fonts (kiểm bằng cách đếm khối `vietnamese` trong CSS trả về:
 *      0 khối), nên mọi chữ có dấu sẽ rơi về phông hệ thống — nhìn ra ngay vì
 *      nét dày hẳn so với chữ không dấu bên cạnh. Dùng MULISH: cùng họ sans
 *      nhân văn, tỉ lệ và chiều cao chữ thường gần Lato nhất trong số phông
 *      có đủ tiếng Việt.
 *
 *   2. VÀNG CHO CHỮ NHỎ. Vàng #C29958 trên nền trắng chỉ đạt 2,63:1 — dưới
 *      ngưỡng 4,5:1 của WCAG cho chữ nhỏ. Mẫu gốc dùng đúng màu ấy cho giá
 *      tiền 15px, nghĩa là giá bán — thứ khách cần đọc nhất — lại là dòng khó
 *      đọc nhất trang. Ở đây tách làm hai:
 *
 *        --vang      #C29958  nền nút, nhãn, viền, biểu tượng, chữ to
 *        --vang-chu  #8A6529  chữ nhỏ: giá, nhãn danh mục, liên kết (5,28:1)
 *
 *      Nhìn vẫn ra vàng đồng, chỉ sâu hơn một bậc.
 *
 * BẪY ĐẶC HIỆU CỦA MẪU NÀY — ghi một lần, đúng chỗ dễ quên nhất
 *
 *   `body.ts02-shop h1, h2, h3, h4` và `body.ts02-shop img` đều ở mức (0,1,2).
 *   Mọi luật một lớp (0,1,1) THUA chúng. Nên bất cứ luật nào đổi phông, nét,
 *   màu của tiêu đề, hoặc đổi `height` của ảnh, đều phải mở đầu bằng
 *   `body.ts02-shop`. Quên là ra đúng hai triệu chứng: tiêu đề sai nét, hoặc
 *   ảnh cao đúng tỉ lệ gốc thay vì vừa khung.
 *
 *   Thẻ `a` trần cố ý bọc trong `:where()` để hạ về (0,0,1) — viết thẳng
 *   `body.ts02-shop a` là (0,1,2), nó sẽ nuốt màu của mọi liên kết có lớp.
 *
 * MỤC LỤC
 *   1  Biến
 *   2  Nền chung và chữ
 *   3  Nút, nhãn, tiêu điểm bàn phím
 *   4  Thanh trên cùng + đầu trang
 *   5  Chân trang
 *   6  Khối dùng chung cho trang tĩnh
 *   7  Cửa hàng và thẻ sản phẩm
 *   8  Trang sản phẩm
 *   9  Trang tĩnh, giới thiệu, liên hệ, trạng thái rỗng
 *   10 Giỏ hàng / thanh toán / tài khoản
 *   11 Chuyển động theo cuộn
 *   12 Màn hình hẹp
 */

/* ── 1. BIẾN ──────────────────────────────────────────────────────── */
:root {
	--vang:      #C29958;   /* nhấn chính — viền, biểu tượng, nét kẻ, chữ to */

	/*
	 * NỀN của những thứ mang CHỮ TRẮNG: nút, nhãn sản phẩm, huy hiệu giỏ hàng.
	 *
	 * Để đúng #C29958 như mẫu gốc thì chữ trắng trên nền ấy chỉ đạt 2,63:1 —
	 * dưới ngưỡng 4,5:1 của WCAG cho chữ nhỏ. Đây là khuyết điểm có sẵn trong
	 * mẫu gốc, không phải lỗi dựng lại; giữ nguyên vì yêu cầu là làm y màu.
	 *
	 * Muốn đạt chuẩn thì đổi ĐÚNG MỘT DÒNG này sang #8F6A2E (4,92:1). Nhìn vẫn
	 * ra vàng đồng, chỉ sâu hơn một bậc; không phải sửa chỗ nào khác.
	 */
	--vang-nen:  #C29958;
	--vang-chu:  #8A6529;   /* nhấn cho CHỮ NHỎ — 5,28:1 trên nền trắng */
	--vang-nhat: #F6EFE3;   /* nền rất nhạt, cùng sắc */

	--muc:   #222222;       /* tiêu đề */
	--chu:   #555555;       /* thân bài — 7,45:1 */
	--mo:    #6E6E6E;       /* chữ phụ — 4,93:1 */
	--nhat:  #999999;       /* chỉ dùng cho chữ ≥ 24px hoặc nét trang trí */

	--trang: #FFFFFF;
	--nen-2: #F7F7F7;       /* dải xen kẽ, chân trang */
	--nen-3: #F3F3F3;       /* nền ảnh sản phẩm, nền bìa */
	--vien:  #EFEFEF;
	--vien-2:#EAEAEA;

	--do:    #C0392B;       /* chỉ dùng cho báo lỗi */
	--xanh:  #2E7D52;       /* chỉ dùng cho báo thành công */

	--rong:  1140px;        /* khung nội dung, đúng bằng mẫu gốc */
	--le:    24px;

	--fs-1: 12px;
	--fs-2: 13px;
	--fs-3: 14px;           /* cỡ thân bài của mẫu gốc */
	--fs-4: 15px;
	--fs-5: 16px;
	--fs-6: 18px;
	--fs-7: 24px;
	--fs-8: 30px;           /* tiêu đề khối */
	--fs-9: 44px;
	--fs-10: 60px;          /* tiêu đề bìa */

	--s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
	--s-6: 28px; --s-7: 40px; --s-8: 56px; --s-9: 80px; --s-10: 100px;

	/*
	 * Bốn biểu tượng vẽ bằng `mask` trên nền `currentColor`, nên chúng tự đổi
	 * màu theo chữ chứa chúng mà không cần hai tệp ảnh cho hai trạng thái.
	 *
	 * ĐỂ Ở ĐÂY, trong `:root` của mục Biến, chứ không nằm cạnh nơi dùng: lần
	 * trước bốn biến này nằm trong mục ĐẦU TRANG, thay cả mục là mất hết định
	 * nghĩa mà phần dùng vẫn còn. `mask` không có ảnh thì trình duyệt vẽ
	 * nguyên khối `currentColor` — nút tìm kiếm thành một ô đen đặc.
	 */
	--ico-tim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.6' d='M9 14.4A5.4 5.4 0 1 0 9 3.6a5.4 5.4 0 0 0 0 10.8Zm4-1 4 4'/%3E%3C/svg%3E");
	--ico-mat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M2.6 12S6.4 5.6 12 5.6 21.4 12 21.4 12 17.6 18.4 12 18.4 2.6 12 2.6 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
	--ico-gio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M6.4 7.8h11.2l-1 11.3a1.6 1.6 0 0 1-1.6 1.5H9a1.6 1.6 0 0 1-1.6-1.5L6.4 7.8Z'/%3E%3Cpath d='M9.4 9.6V7a2.6 2.6 0 0 1 5.2 0v2.6'/%3E%3C/g%3E%3C/svg%3E");
	--ico-ok:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");

	--bong: 0 4px 20px rgba(0, 0, 0, .08);
	--bong-2: 0 0 20px rgba(0, 0, 0, .1);
	--t-nho: 200ms ease;
	--t-vua: 300ms ease;
	--e: cubic-bezier(.25, .46, .45, .94);
}

/* ── 2. NỀN CHUNG VÀ CHỮ ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.ts02-shop {
	margin: 0;
	background: var(--trang);
	color: var(--chu);
	font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: var(--fs-3);
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/*
 * Tiêu đề: hai lớp (`body.ts02-shop h1`) chứ không một. Luật này phải thắng
 * được luật trần của theme mẹ, mà vẫn để tiêu đề tự nhận màu của khối chứa nó
 * khi khối ấy là nền tối.
 */
body.ts02-shop h1,
body.ts02-shop h2,
body.ts02-shop h3,
body.ts02-shop h4,
body.ts02-shop h5,
body.ts02-shop h6 {
	margin: 0;
	color: var(--muc);
	font-family: inherit;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
}

body.ts02-shop p { margin: 0 0 var(--s-4); }
body.ts02-shop p:last-child { margin-bottom: 0; }
body.ts02-shop img { max-width: 100%; height: auto; }
body.ts02-shop ul, body.ts02-shop ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); }

/*
 * Màu liên kết bọc trong `:where()` để hạ độ nặng về (0,0,1).
 * Viết thẳng `body.ts02-shop a` là (0,1,2) — nó sẽ thắng mọi luật màu của
 * liên kết CÓ LỚP viết sau, và đó đúng là lỗi đã mắc ở năm mẫu khác trong bộ.
 */
:where(body.ts02-shop) a { color: inherit; text-decoration: none; }
body.ts02-shop a { transition: color var(--t-nho); }

.ts02-wrap {
	width: 100%;
	max-width: calc(var(--rong) + var(--le) * 2);
	margin-inline: auto;
	padding-inline: var(--le);
}

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

/* Liên kết bỏ qua: nền mực chứ không nền vàng. Đây là phương tiện trợ giúp
   người dùng bàn phím, không phải một phần của phần nhìn — nó phải chắc chắn
   đọc được chứ không chạy theo bảng màu. */
.ts02-skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--muc); color: #fff; padding: 12px 20px;
}
.ts02-skip:focus { left: 0; }

.ts02-main { display: block; }

/*
 * TIÊU ĐỀ KHỐI — nét nhận dạng rõ nhất của mẫu gốc.
 * 30px/700, canh giữa, một dòng dẫn 15px màu nhạt ngay dưới, cách khối sau
 * 37px. Không có gạch chân, không có đường kẻ trang trí.
 */
.ts02-dau-khoi { text-align: center; margin-bottom: 37px; }
/*
 * Mẫu gốc viết hoa chữ đầu MỌI TỪ (`text-transform: capitalize`) vì tiêu đề
 * của nó là tiếng Anh. Tiếng Việt thì không: "Sản Phẩm Của Chúng Tôi" đọc ra
 * ngay là máy làm. Bỏ luật ấy, giữ nguyên cỡ và nét.
 */
body.ts02-shop .ts02-dau-khoi h2 {
	font-size: var(--fs-8);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 var(--s-2);
}
/*
 * Từ CUỐI của tiêu đề khối tô vàng — mẫu gốc làm vậy ("Featured Products"
 * với chữ "Products" màu vàng). Dùng `--vang-chu` chứ không `--vang`: vàng
 * nhạt trên nền trắng chỉ đạt 2,63:1, dưới cả ngưỡng 3:1 dành cho chữ to.
 */
body.ts02-shop .ts02-dau-khoi h2 span { color: var(--vang-chu); }
.ts02-dau-khoi p { margin: 0; font-size: var(--fs-4); color: var(--chu); }

/* ── 3. NÚT, NHÃN, TIÊU ĐIỂM BÀN PHÍM ─────────────────────────────── */
/*
 * Nút của mẫu gốc bo TRÒN HẲN (`border-radius: 50px`) — đây là chi tiết dễ
 * làm sai nhất khi chép lại bằng mắt, vì phần còn lại của trang gần như
 * vuông góc hoàn toàn. Giữ đúng 50px.
 */
.ts02-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
	padding: 14px 30px;
	border: 1px solid var(--vang-nen);
	border-radius: 50px;
	background: var(--vang-nen);
	color: #ffffff;
	font-family: inherit;
	font-size: var(--fs-4);
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: background var(--t-vua), border-color var(--t-vua), color var(--t-vua);
}
.ts02-btn:hover { background: var(--muc); border-color: var(--muc); color: #ffffff; }
.ts02-btn svg { width: 15px; height: 15px; flex: none; }

/* Nút viền: nền trong suốt, viền và chữ màu mực; rê chuột thì đổ vàng. */
.ts02-btn--vien { background: transparent; border-color: var(--vien-2); color: var(--muc); }
.ts02-btn--vien:hover { background: var(--vang-nen); border-color: var(--vang-nen); color: #ffffff; }

/* Nút trên nền tối. */
.ts02-btn--sang { background: #ffffff; border-color: #ffffff; color: var(--muc); }
.ts02-btn--sang:hover { background: var(--vang-nen); border-color: var(--vang-nen); color: #ffffff; }

.ts02-btn--nho { padding: 10px 22px; font-size: var(--fs-3); }

/* Nhãn sản phẩm: viên tròn, nền vàng, chữ trắng 12px. */
.ts02-nhan {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	background: var(--vang-nen);
	color: #ffffff;
	font-size: var(--fs-1);
	font-weight: 400;
	line-height: 1.1;
	text-transform: lowercase;
}
.ts02-nhan--toi { background: var(--muc); }

body.ts02-shop a:focus-visible,
body.ts02-shop button:focus-visible,
body.ts02-shop input:focus-visible,
body.ts02-shop select:focus-visible,
body.ts02-shop textarea:focus-visible,
body.ts02-shop summary:focus-visible,
body.ts02-shop [tabindex]:focus-visible {
	outline: 2px solid var(--vang-chu);
	outline-offset: 2px;
}
.ts02-foot a:focus-visible,
.ts02-foot button:focus-visible,
.ts02-foot input:focus-visible { outline-color: var(--vang); }

/* Ô nhập dùng chung. */
body.ts02-shop input[type="text"],
body.ts02-shop input[type="email"],
body.ts02-shop input[type="tel"],
body.ts02-shop input[type="search"],
body.ts02-shop input[type="password"],
body.ts02-shop input[type="number"],
body.ts02-shop textarea,
body.ts02-shop select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--vien-2);
	border-radius: 0;
	background: #ffffff;
	color: var(--chu);
	font: inherit;
	font-size: var(--fs-3);
	transition: border-color var(--t-nho);
}
body.ts02-shop input:focus,
body.ts02-shop textarea:focus,
body.ts02-shop select:focus { border-color: var(--vang); }
body.ts02-shop ::placeholder { color: var(--nhat); opacity: 1; }

/* ── 4. THANH TRÊN CÙNG + ĐẦU TRANG ───────────────────────────────── */
/*
 * ĐO TRÊN MẪU GỐC ở khung nhìn 1400 (chiều rộng dùng được 1385):
 *
 *   thanh trên   tràn hết chiều ngang, cao 45, kẻ mảnh phía dưới
 *   tầng giữa    tràn hết chiều ngang, cao 100, lề trong 24
 *   logo         mép trái 24
 *   menu         bắt đầu ở 252 — NGAY SAU LOGO, không nằm giữa
 *   tìm kiếm     222 × 44, bo tròn hẳn, biểu tượng BÊN TRÁI
 *   biểu tượng   dồn phải, kết thúc ở 1361 (= 1385 − 24)
 *
 * Nên đầu trang KHÔNG dùng `.ts02-wrap` (khung 1140) mà dùng `.ts02-wrapf`
 * tràn hết chiều ngang. Nhốt đầu trang vào khung 1140 là lỗi của bản trước:
 * logo và biểu tượng tụt vào trong hơn 120px mỗi bên so với mẫu gốc, nhìn ra
 * ngay là hai thiết kế khác nhau dù màu và phông đã đúng.
 */
.ts02-wrapf { width: 100%; padding-inline: var(--le); }

.ts02-bar {
	background: #ffffff;
	border-bottom: 1px solid var(--vien);
	font-size: var(--fs-3);
	color: var(--chu);
}
.ts02-bar__in {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--s-4);
	min-height: 45px;
}
.ts02-bar__in > span { display: block; }
.ts02-bar strong { color: var(--muc); font-weight: 700; }
.ts02-bar__nav { display: flex; align-items: center; gap: var(--s-6); flex: none; }
.ts02-bar__nav a { color: var(--chu); }
.ts02-bar__nav a:hover { color: var(--vang-chu); }

/*
 * Đầu trang DÍNH, chiều cao KHÔNG đổi ở mọi trạng thá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 là kéo cả trang bên dưới nhích lên một nhịp thấy rõ. Cảm giác
 * "gọn lại" tạo bằng thứ không dồn bố cục: bóng hiện ra khi đã rời bìa.
 */
.ts02-head {
	position: sticky; top: 0; z-index: 90;
	background: #ffffff;
	transition: box-shadow var(--t-vua), transform var(--t-vua);
}
.ts02-head.is-past { box-shadow: var(--bong); }
.ts02-head.is-hidden { transform: translateY(-100%); }

.ts02-head__row {
	display: flex; align-items: center;
	gap: var(--s-6);
	min-height: 100px;
}

/* Chữ ký thương hiệu: dấu nét mảnh + MỘT dòng tên, không có dòng phụ. */
.ts02-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--muc); }
.ts02-brand__mark { display: block; flex: none; color: var(--vang); }
.ts02-brand__name {
	font-size: 30px; font-weight: 700; line-height: 1;
	letter-spacing: -.02em;
	color: var(--muc);
}

/* Menu chính — SÁT NGAY SAU LOGO, không canh giữa. */
.ts02-nav { flex: 0 1 auto; }
.ts02-nav > ul {
	display: flex; align-items: center;
	list-style: none; margin: 0; padding: 0;
}
.ts02-nav > ul > li { position: relative; }
.ts02-nav > ul > li > a {
	display: flex; align-items: center; gap: 6px;
	padding: 35px 15px;
	font-size: var(--fs-4);
	font-weight: 400;
	line-height: 1;
	/* KHÔNG `text-transform: capitalize` như mẫu gốc: mục tiếng Anh thì viết
	   hoa chữ đầu mỗi từ là đúng, còn "Trang Chủ" / "Cửa Hàng" thì đọc ra
	   ngay là máy làm. */
	color: var(--muc);
}
.ts02-nav > ul > li > a:hover,
.ts02-nav > ul > li > a[aria-current="page"] { color: var(--vang-chu); }
.ts02-nav__mui { width: 9px; height: 6px; flex: none; transition: transform var(--t-nho); }
.ts02-nav__co:hover .ts02-nav__mui { transform: rotate(180deg); }

/*
 * Menu con. Mở bằng `:hover` VÀ `:focus-within` — chỉ có `:hover` thì người
 * dùng bàn phím không bao giờ tới được bốn danh mục hàng nằm trong đó.
 *
 * Dùng `visibility` kèm `opacity` chứ không `display`: `display` không chuyển
 * động được, mà quan trọng hơn là `visibility: hidden` vẫn giữ phần tử ngoài
 * thứ tự tiêu điểm bàn phím — `opacity: 0` một mình thì không.
 */
.ts02-nav__sub {
	position: absolute; top: 100%; left: 0; z-index: 20;
	min-width: 210px;
	margin: 0; padding: 10px 0;
	list-style: none;
	background: #ffffff;
	border: 1px solid var(--vien);
	box-shadow: var(--bong);
	opacity: 0; visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--t-nho), transform var(--t-nho), visibility var(--t-nho);
}
.ts02-nav__co:hover .ts02-nav__sub,
.ts02-nav__co:focus-within .ts02-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.ts02-nav__sub a {
	display: block;
	padding: 9px 20px;
	font-size: var(--fs-3);
	color: var(--chu);
}
.ts02-nav__sub a:hover { color: var(--vang-chu); }

/* Cụm công cụ bên phải. */
.ts02-tools { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; flex: none; }

.ts02-search { position: relative; display: flex; align-items: center; }
/*
 * `body.ts02-shop` ở đầu bộ chọn là BẮT BUỘC, không phải cho đẹp.
 *
 * Luật ô nhập dùng chung viết `body.ts02-shop input[type="search"]` và đặt
 * `width: 100%` — nó ở mức (0,2,2), nặng hơn `.ts02-search input[type=...]`
 * (0,2,1). Thiếu tiền tố thì ô tìm kiếm co về vừa nội dung (200px) chứ
 * không giữ 222px như mẫu gốc, và chữ gợi ý bị cắt cụt.
 */
body.ts02-shop .ts02-search input[type="search"] {
	width: 222px;
	height: 44px;
	padding: 0 16px 0 42px;
	border: 1px solid var(--vien-2);
	border-radius: 50px;
	background: #ffffff;
	font-size: var(--fs-3);
}
/* Nút tìm nằm BÊN TRÁI trong ô — đúng mẫu gốc. */
.ts02-search button {
	position: absolute; left: 0; top: 0; bottom: 0;
	width: 44px;
	display: grid; place-items: center;
	border: 0; background: transparent; color: var(--mo);
	cursor: pointer; padding: 0;
	transition: color var(--t-nho);
}
.ts02-search button::before {
	content: ''; width: 17px; height: 17px;
	background: currentColor;
	-webkit-mask: var(--ico-tim) center / contain no-repeat;
	mask: var(--ico-tim) center / contain no-repeat;
}
.ts02-search button:hover { color: var(--vang-chu); }

.ts02-ico {
	position: relative;
	display: grid; place-items: center;
	width: 34px; height: 34px;
	color: var(--muc);
}
.ts02-ico:hover { color: var(--vang-chu); }
.ts02-ico svg { width: 23px; height: 23px; }
/*
 * Huy hiệu số lượng PHẢI mang đúng lớp `.ts02-cart__n`: `inc/shop.php` khai
 * nó làm `woocommerce_add_to_cart_fragments`, và WooCommerce thay thế phần tử
 * theo đúng bộ chọn ấy. Đổi tên lớp ở đây là số trong giỏ không còn tự cập
 * nhật sau khi thêm hàng.
 */
.ts02-cart__n {
	position: absolute; top: -3px; right: -5px;
	min-width: 17px; height: 17px; padding: 0 4px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--vang-nen); color: #ffffff;
	font-size: 10px; font-weight: 700; line-height: 1;
}

.ts02-burger {
	display: none;
	width: 40px; height: 40px;
	align-items: center; justify-content: center;
	border: 1px solid var(--vien-2); border-radius: 0;
	background: #ffffff; color: var(--muc);
	cursor: pointer;
}
.ts02-burger span[aria-hidden] { display: grid; gap: 4px; width: 18px; }
.ts02-burger i { display: block; height: 2px; background: currentColor; }

/* ── 5. CHÂN TRANG ────────────────────────────────────────────────── */
/*
 * Nền #F7F7F7, đệm trên dưới 80px, BỐN CỘT BẰNG NHAU (đo trên mẫu gốc: mỗi
 * cột 281px ở khung nhìn 1400). Bản trước chia 1.6/1/1/1.15 nên cột đầu phình
 * ra và ba cột còn lại dồn về phải — một chỗ lệch nhỏ nhưng thấy ngay khi đặt
 * hai chân trang cạnh nhau.
 *
 * Ô nhận bản tin nằm TRONG cột một nhưng có lớp riêng `.ts02-foot__news`, để
 * luật ẩn biểu mẫu trên điện thoại chỉ ăn vào đúng cái ô ấy chứ không nuốt
 * luôn cả chữ ký thương hiệu nằm cùng cột.
 */
.ts02-foot { background: var(--nen-2); color: var(--chu); }

.ts02-foot__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--s-7) var(--s-6);
	padding-top: var(--s-9);
}

/* Tầng hai: ô nhận bản tin chiếm nửa trái, ghi chú mẫu nằm nửa phải. */
.ts02-foot__hang2 {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: var(--s-6);
	align-items: end;
	padding-block: var(--s-7) var(--s-9);
}
.ts02-foot__ghi { font-size: var(--fs-2); color: var(--mo); line-height: 1.8; margin: 0; }

/* Cột "Thông tin" tách làm hai cột con, đúng mẫu gốc. */
.ts02-foot__doi { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.ts02-foot__doi ul { margin: 0; }

/* Hàng nút tròn "Kết nối". */
.ts02-foot__xh { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ts02-foot__xh a {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	border: 1px solid var(--vien-2); border-radius: 50%;
	background: #ffffff; color: var(--muc);
	transition: background var(--t-nho), border-color var(--t-nho), color var(--t-nho);
}
.ts02-foot__xh a:hover { background: var(--vang-nen); border-color: var(--vang-nen); color: #ffffff; }
.ts02-foot__xh svg { width: 17px; height: 17px; }

.ts02-foot__brand .ts02-brand { margin-bottom: var(--s-4); }
.ts02-foot__desc { font-size: var(--fs-3); line-height: 1.8; color: var(--chu); }

body.ts02-shop .ts02-foot__col h2,
body.ts02-shop .ts02-foot__news h2 {
	font-size: var(--fs-5);
	font-weight: 700;
	margin: 0 0 var(--s-5);
	color: var(--muc);
}
.ts02-foot__col ul { list-style: none; margin: 0; padding: 0; }
.ts02-foot__col li + li { margin-top: 10px; }
.ts02-foot__col a { display: inline-block; font-size: var(--fs-3); color: var(--chu); }
.ts02-foot__col a:hover { color: var(--vang-chu); }

.ts02-foot__lh { list-style: none; margin: 0; padding: 0; }
.ts02-foot__lh li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: var(--fs-3); }
.ts02-foot__lh svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--vang); }
.ts02-foot__lh a:hover { color: var(--vang-chu); }

/* Ô nhận bản tin kiểu gạch chân — nằm trong cột một. */
.ts02-foot__news { margin-top: var(--s-6); }
.ts02-sub {
	display: flex; align-items: center; gap: var(--s-3);
	margin-top: var(--s-4);
	border-bottom: 1px solid var(--vien-2);
}
.ts02-sub__in {
	flex: 1 1 auto; min-width: 0;
	padding: 10px 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: var(--fs-3);
}
.ts02-sub__in:focus { outline: 0; }
.ts02-sub__go {
	flex: none;
	padding: 10px 0;
	border: 0; background: transparent;
	color: var(--vang-chu);
	font: inherit; font-size: var(--fs-3); font-weight: 700;
	cursor: pointer;
	transition: color var(--t-nho);
}
.ts02-sub__go:hover { color: var(--muc); }
.ts02-sub__note { margin-top: 10px; font-size: var(--fs-2); color: var(--mo); line-height: 1.7; }

.ts02-foot__bot {
	border-top: 1px solid var(--vien-2);
	padding-block: var(--s-5);
	font-size: var(--fs-2);
	color: var(--mo);
	text-align: center;
}
.ts02-foot__bot p { margin: 0; }
.ts02-foot__bot a { color: var(--vang-chu); }
.ts02-foot__bot a:hover { color: var(--muc); }

/*
 * Nút "lên đầu trang" — nét nhận ra ngay của mẫu gốc: nút tròn vàng ở góc
 * dưới bên phải, chỉ hiện sau khi đã cuộn qua một quãng.
 *
 * `visibility` đi kèm `opacity`: `opacity: 0` một mình vẫn để nút nhận được
 * cú bấm và vẫn nằm trong thứ tự tiêu điểm bàn phím — một nút vô hình mà bấm
 * được là cái bẫy khó tìm nhất trong loại hiệu ứng này.
 */
.ts02-len {
	position: fixed; right: 24px; bottom: 24px; z-index: 80;
	display: grid; place-items: center;
	width: 46px; height: 46px;
	border-radius: 50%;
	background: var(--vang-nen); color: #ffffff;
	box-shadow: var(--bong);
	opacity: 0; visibility: hidden;
	transform: translateY(10px);
	transition: opacity var(--t-vua), transform var(--t-vua), visibility var(--t-vua), background var(--t-nho);
}
.ts02-len.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.ts02-len:hover { background: var(--muc); }
.ts02-len svg { width: 20px; height: 20px; }

/* ── 6. KHỐI DÙNG CHUNG CHO TRANG TĨNH ────────────────────────────── */
/*
 * Trang chủ KHÔNG có luật nào trong tệp này — nó nằm trọn trong
 * `assets/home.css`, chỉ nạp khi `is_front_page()`. Những lớp dưới đây là
 * phần trang Giới thiệu và trang Liên hệ dùng chung.
 */
.ts02-khoi { padding-block: var(--s-9); }
.ts02-khoi--mo { background: var(--nen-2); }

.ts02-khoi__dau { max-width: 640px; margin: 0 0 var(--s-7); }
body.ts02-shop .ts02-khoi__dau h2 { font-size: var(--fs-8); margin: 0 0 var(--s-3); }
.ts02-khoi__dau p { color: var(--chu); margin: 0; }
.ts02-khoi__dau--giua { margin-inline: auto; text-align: center; }

.ts02-vach {
	width: 60px; height: 2px; margin: 0 0 var(--s-4);
	border: 0; background: var(--vang);
}
.ts02-khoi__dau--giua .ts02-vach { margin-inline: auto; }

.ts02-conhan { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-8); align-items: start; }

/* ── 7. CỬA HÀNG VÀ THẺ SẢN PHẨM ──────────────────────────────────── */
/*
 * THẺ SẢN PHẨM — khối phải giống mẫu gốc nhất, vì nó lặp lại nhiều nhất.
 *
 *   ảnh      nền #F3F3F3, vuông góc, tỉ lệ 1:1; ảnh thứ hai chồng lên và
 *            hiện ra khi rê chuột
 *   nhãn     góc trên TRÁI, cách mép 20px, viên tròn nền vàng
 *   nút      cột dọc bên PHẢI ảnh, trượt vào từ ngoài mép khi rê chuột
 *   chữ      danh mục 14px nhạt — tên 16px/400 — giá 15px
 *   canh     TOÀN BỘ canh giữa
 *
 * `ul.products` phải viết đủ chữ `ul`: WooCommerce bọc khối "sản phẩm tương
 * tự" bằng `<section class="related products">`, nên viết `.products` trần là
 * biến cả thẻ bao thành lưới và mỗi thẻ con chỉ còn vài chục pixel.
 */
body.ts02-shop ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--s-7) var(--s-6);
	list-style: none;
	margin: 0;
	padding: 0;
}
body.ts02-shop ul.products::before,
body.ts02-shop ul.products::after { content: none; }

/*
 * `position: relative` nằm ở ĐÂY chứ không ở `.ts02-thumb`: cột nút thao tác
 * được in ra NGOÀI thẻ `<a>` bọc ảnh (WooCommerce đóng thẻ ấy ở
 * `woocommerce_after_shop_loop_item` ưu tiên 5), nên mốc định vị của nó phải
 * là cả `<li>`. Đặt ở `.ts02-thumb` thì cột nút rơi ra ngoài khung ảnh.
 */
body.ts02-shop ul.products > li.product {
	position: relative;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0;
	text-align: center;
}

.ts02-thumb {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	/* Nền TRẮNG như mẫu gốc. Nền xám làm cả lưới nặng hơn một bậc so với
	   nguyên bản, nhất là khi ảnh sản phẩm vốn đã chụp trên nền sáng. */
	background: var(--trang);
	margin-bottom: var(--s-4);
}
/*
 * Hai lớp chọn, cả hai đều cần `body.ts02-shop`: `body.ts02-shop img` đặt
 * `height: auto` ở mức (0,1,2) và sẽ thắng mọi luật một lớp. Quên là ảnh cao
 * đúng tỉ lệ gốc, tràn ra ngoài khung vuông.
 */
body.ts02-shop .ts02-thumb img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity var(--t-vua) var(--e), transform 600ms var(--e);
}
/* Ảnh thứ hai nằm đè, mờ sẵn; rê chuột thì đổi chỗ cho ảnh đầu. */
.ts02-thumb__img2 { opacity: 0; }
li.product:hover .ts02-thumb__img2 { opacity: 1; }
li.product:hover .ts02-thumb__img { opacity: 0; }
/* Không có ảnh thứ hai thì phóng nhẹ ảnh đầu, để thẻ nào cũng có phản hồi. */
li.product:hover .ts02-thumb__img:only-of-type { opacity: 1; transform: scale(1.05); }

/* Vệt sáng bạc quét chéo qua mặt kim loại khi thẻ vào khung nhìn. */
.ts02-thumb__loe {
	position: absolute; top: -40%; left: -60%;
	width: 34%; height: 180%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: rotate(18deg);
	opacity: 0; pointer-events: none;
}
li.product:hover .ts02-thumb__loe { animation: ts02-loe 900ms var(--e) both; }

/* Nhãn: góc trên TRÁI, cách mép 20px, viên tròn — đúng mẫu gốc. */
.ts02-tags {
	position: absolute; top: 20px; left: 20px; z-index: 2;
	display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	pointer-events: none;
}
.ts02-tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	background: var(--vang-nen);
	color: #ffffff;
	font-size: var(--fs-1);
	font-weight: 400;
	line-height: 1.3;
}
.ts02-tag--moi { background: var(--muc); }

/*
 * Cột nút thao tác bên phải ảnh. Trượt vào bằng `transform` chứ không `right`
 * — `transform` chạy trên luồng riêng, không bắt trình duyệt tính lại bố cục
 * mỗi khung hình.
 *
 * `focus-within` đi kèm `hover`: người dùng bàn phím phải mở được cột nút này,
 * nếu không thì nút "Thêm vào giỏ" nằm trong đó là nút họ không bao giờ tới.
 */
.ts02-act {
	position: absolute; top: 20px; right: 0; z-index: 3;
	display: flex; flex-direction: column; gap: 6px;
	/*
	 * Trạng thái nghỉ KHÔNG được đẩy cột nút ra ngoài mép phải: cột ở cột
	 * sản phẩm cuối cùng sẽ nằm ngoài chiều rộng trang và làm `scrollWidth`
	 * lớn hơn khung nhìn — ở 1024px là dư 22px. `body { overflow-x: hidden }`
	 * giấu được thanh cuộn nhưng KHÔNG xoá được phần dư, và trên iOS thì
	 * trang vẫn kéo ngang được.
	 *
	 * Nên nghỉ ở `translateX(0)` (đúng mép phải khung ảnh, đang trong suốt),
	 * rê chuột thì trượt VÀO TRONG 20px. Quãng chạy ngắn hơn mà vẫn đủ thấy.
	 */
	transform: translateX(0);
	opacity: 0;
	transition: transform var(--t-vua) var(--e), opacity var(--t-vua) var(--e);
}
li.product:hover .ts02-act,
li.product:focus-within .ts02-act { transform: translateX(-20px); opacity: 1; }

.ts02-act > a,
.ts02-act > button {
	display: grid; place-items: center;
	width: 38px; height: 38px;
	padding: 0;
	border: 1px solid var(--vien-2); border-radius: 0;
	background: #ffffff; color: var(--muc);
	font-size: 0; line-height: 0;
	cursor: pointer;
	transition: background var(--t-nho), color var(--t-nho), border-color var(--t-nho);
}
.ts02-act > a:hover,
.ts02-act > button:hover { background: var(--vang-nen); border-color: var(--vang-nen); color: #ffffff; }

/*
 * Nút của WooCommerce in ra chữ chứ không in biểu tượng, nên chữ hạ về cỡ 0
 * và hình vẽ bằng `mask` trên nền `currentColor` — làm vậy thì hình tự đổi
 * màu theo trạng thái rê chuột mà không cần hai tệp ảnh.
 *
 * Cỡ chữ 0 KHÔNG giấu chữ khỏi trình đọc màn hình: nội dung vẫn nằm trong
 * cây tài liệu và vẫn được đọc.
 */
.ts02-act > a::before,
.ts02-act > button::before {
	content: ''; width: 19px; height: 19px;
	background: currentColor;
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
}
.ts02-act .ts02-quick { --ico: var(--ico-mat); }
.ts02-act .add_to_cart_button,
.ts02-act .product_type_simple,
.ts02-act .product_type_variable,
.ts02-act .product_type_grouped,
.ts02-act .product_type_external { --ico: var(--ico-gio); }
.ts02-act .added_to_cart { --ico: var(--ico-ok); }
.ts02-act .loading { opacity: .6; }

/* Phần chữ của thẻ: chất liệu — tên — giá, canh giữa. */
.ts02-cl {
	display: block;
	font-size: var(--fs-3);
	color: var(--mo);
	text-transform: capitalize;
	margin-bottom: 4px;
}
body.ts02-shop ul.products h2.woocommerce-loop-product__title,
body.ts02-shop ul.products .woocommerce-loop-product__title {
	font-size: var(--fs-5) !important;
	font-weight: 400 !important;
	line-height: 1.5;
	color: var(--muc);
	margin: 0 0 6px !important;
	padding: 0 !important;
}
body.ts02-shop ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--vang-chu); }

body.ts02-shop ul.products .price {
	display: block;
	font-size: var(--fs-4) !important;
	font-weight: 400;
	color: var(--vang-chu) !important;
	margin: 0 !important;
}
body.ts02-shop ul.products .price del {
	color: var(--nhat) !important;
	opacity: 1;
	margin-right: 8px;
	font-size: var(--fs-3);
}
body.ts02-shop ul.products .price ins { text-decoration: none; background: transparent; }

/* Sao đánh giá. */
body.ts02-shop ul.products .star-rating { margin: 0 auto 6px; font-size: 12px; color: var(--vang); }

/* Thanh công cụ trên trang Cửa hàng. */
.ts02-shop__bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--s-4);
	padding-bottom: var(--s-5);
	margin-bottom: var(--s-7);
	border-bottom: 1px solid var(--vien);
}
.ts02-shop__dem { font-size: var(--fs-3); color: var(--mo); }
body.ts02-shop .woocommerce-ordering select { width: auto; min-width: 210px; }
body.ts02-shop .woocommerce-result-count { display: none; }

/* Thẻ lọc danh mục. */
.ts02-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-7); padding: 0; list-style: none; justify-content: center; }
.ts02-chips a {
	display: inline-block;
	padding: 8px 20px;
	border: 1px solid var(--vien-2);
	border-radius: 50px;
	font-size: var(--fs-3);
	color: var(--chu);
}
.ts02-chips a:hover, .ts02-chips a.is-on {
	background: var(--vang-nen); border-color: var(--vang-nen); color: #ffffff;
}

/* Phân trang. */
body.ts02-shop nav.woocommerce-pagination { margin-top: var(--s-8); }
body.ts02-shop nav.woocommerce-pagination ul {
	display: flex; justify-content: center; gap: var(--s-2);
	border: 0; margin: 0; padding: 0; list-style: none;
}
body.ts02-shop nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }
body.ts02-shop nav.woocommerce-pagination ul li a,
body.ts02-shop nav.woocommerce-pagination ul li span {
	display: grid; place-items: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	border: 1px solid var(--vien-2);
	background: #ffffff; color: var(--muc);
	font-size: var(--fs-3);
}
body.ts02-shop nav.woocommerce-pagination ul li a:hover,
body.ts02-shop nav.woocommerce-pagination ul li span.current {
	background: var(--vang-nen); border-color: var(--vang-nen); color: #ffffff;
}

/* Đầu trang Cửa hàng / danh mục: tiêu đề giữa trên nền nhạt + đường dẫn. */
.ts02-page__head {
	background: var(--nen-2);
	padding-block: var(--s-8);
	text-align: center;
	margin-bottom: var(--s-9);
}
body.ts02-shop .ts02-page__head h1 { font-size: var(--fs-9); margin: 0 0 var(--s-2); }
.ts02-page__sub { margin: 0 auto; max-width: 62ch; color: var(--chu); font-size: var(--fs-4); }
.ts02-crumb { font-size: var(--fs-3); color: var(--mo); margin-bottom: var(--s-3); }
.ts02-crumb a { color: var(--mo); }
.ts02-crumb a:hover { color: var(--vang-chu); }
.ts02-crumb span + span::before { content: '/'; margin: 0 8px; color: var(--vien-2); }

/* ── 8. TRANG SẢN PHẨM ────────────────────────────────────────────── */
body.ts02-shop div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--s-8);
	align-items: start;
}
body.ts02-shop div.product .woocommerce-product-gallery { float: none !important; width: auto !important; margin: 0 !important; }
body.ts02-shop div.product .woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; }
body.ts02-shop div.product .summary { float: none !important; width: auto !important; margin: 0 !important; }

body.ts02-shop div.product .product_title {
	font-size: var(--fs-9);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 var(--s-3) !important;
}
body.ts02-shop div.product p.price,
body.ts02-shop div.product span.price {
	font-size: var(--fs-7) !important;
	font-weight: 400;
	color: var(--vang-chu) !important;
	margin: 0 0 var(--s-4) !important;
}
body.ts02-shop div.product p.price del { color: var(--nhat) !important; font-size: var(--fs-5); margin-right: 10px; }
body.ts02-shop div.product p.price ins { text-decoration: none; background: transparent; }

body.ts02-shop div.product .woocommerce-product-details__short-description {
	padding-block: var(--s-4);
	border-block: 1px solid var(--vien);
	margin-bottom: var(--s-5);
	color: var(--chu);
}

body.ts02-shop div.product form.cart { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-5); }
body.ts02-shop div.product form.cart .quantity input[type="number"] { width: 90px; height: 48px; text-align: center; }
body.ts02-shop div.product form.cart button[type="submit"] {
	padding: 14px 36px;
	border: 1px solid var(--vang-nen); border-radius: 50px;
	background: var(--vang-nen); color: #ffffff;
	font: inherit; font-size: var(--fs-4);
	cursor: pointer;
	transition: background var(--t-vua), border-color var(--t-vua);
}
body.ts02-shop div.product form.cart button[type="submit"]:hover { background: var(--muc); border-color: var(--muc); }

body.ts02-shop div.product .product_meta { font-size: var(--fs-3); color: var(--mo); border-top: 1px solid var(--vien); padding-top: var(--s-4); }
body.ts02-shop div.product .product_meta a { color: var(--vang-chu); }

/* Bảng thông số. */
.ts02-ts { margin: var(--s-5) 0; border-top: 1px solid var(--vien); padding-top: var(--s-5); }
.ts02-ts__h {
	font-size: var(--fs-1) !important;
	font-weight: 700 !important;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--mo);
	margin: 0 0 var(--s-3) !important;
}
.ts02-ts__list { display: grid; grid-template-columns: auto 1fr; gap: 8px var(--s-5); margin: 0; font-size: var(--fs-3); }
.ts02-ts__list dt { color: var(--mo); }
.ts02-ts__list dd { margin: 0; color: var(--muc); }

/* Thẻ tab mô tả. */
body.ts02-shop .woocommerce-tabs { grid-column: 1 / -1; margin-top: var(--s-8); }
body.ts02-shop .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: var(--s-2);
	margin: 0 0 var(--s-6); padding: 0;
	border-bottom: 1px solid var(--vien);
	list-style: none;
}
body.ts02-shop .woocommerce-tabs ul.tabs::before { content: none; }
body.ts02-shop .woocommerce-tabs ul.tabs li {
	border: 0; background: transparent; border-radius: 0; margin: 0; padding: 0;
}
body.ts02-shop .woocommerce-tabs ul.tabs li::before,
body.ts02-shop .woocommerce-tabs ul.tabs li::after { content: none; }
body.ts02-shop .woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 24px;
	font-size: var(--fs-4); font-weight: 400;
	color: var(--mo);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
body.ts02-shop .woocommerce-tabs ul.tabs li.active a { color: var(--muc); border-bottom-color: var(--vang); }

/* Sản phẩm tương tự. */
body.ts02-shop section.related,
body.ts02-shop section.upsells { grid-column: 1 / -1; margin-top: var(--s-9); }
body.ts02-shop section.related > h2,
body.ts02-shop section.upsells > h2 {
	font-size: var(--fs-8); text-align: center; margin: 0 0 37px;
}

/* Bảng cỡ nhẫn — dùng chung cho trang sản phẩm, trang chủ và trang Giới thiệu. */
.ts02-size { margin: var(--s-5) 0 0; }
.ts02-size__scroll { overflow-x: auto; }
.ts02-size__t { width: 100%; border-collapse: collapse; font-size: var(--fs-3); }
.ts02-size__t th, .ts02-size__t td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--vien);
	text-align: left;
}
.ts02-size__t thead th {
	font-size: var(--fs-2); font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--mo);
	border-bottom: 2px solid var(--vang);
}
.ts02-size__t tbody th { font-weight: 700; width: 80px; color: var(--vang-chu); }
.ts02-size__t tbody tr:nth-child(odd) { background: var(--nen-2); }
.ts02-size__note { font-size: var(--fs-2); color: var(--mo); line-height: 1.8; margin: var(--s-4) 0 0; }

/* ── 9. TRANG TĨNH, GIỚI THIỆU, LIÊN HỆ, TRẠNG THÁI RỖNG ──────────── */
.ts02-page { padding-bottom: var(--s-9); }
.ts02-page__body { max-width: 760px; margin-inline: auto; }
.ts02-page__body h2 { font-size: var(--fs-7); margin: var(--s-7) 0 var(--s-3); }
.ts02-page__body h3 { font-size: var(--fs-6); margin: var(--s-6) 0 var(--s-3); }
.ts02-page__body a { color: var(--vang-chu); text-decoration: underline; text-underline-offset: 3px; }

.ts02-single { padding-bottom: var(--s-9); }
.ts02-single__wrap { max-width: 760px; margin-inline: auto; }

.ts02-gt__hero { margin-bottom: var(--s-9); }
.ts02-gt__hero img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 7; object-fit: cover; }

.ts02-doi { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.ts02-doi__anh img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }

.ts02-lh { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
.ts02-lh__anh img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.ts02-lh__ds { list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.ts02-lh__ds li { display: flex; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--vien); }
.ts02-lh__ds svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--vang); }
.ts02-lh__ds a:hover { color: var(--vang-chu); }

.ts02-form { display: grid; gap: var(--s-4); }
.ts02-form label { display: block; font-size: var(--fs-2); font-weight: 700; color: var(--muc); margin-bottom: 6px; }
.ts02-form__note { font-size: var(--fs-2); color: var(--mo); line-height: 1.8; }

.ts02-goi { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.ts02-trong { text-align: center; padding-block: var(--s-9); }
.ts02-trong__hinh { width: 110px; margin: 0 auto var(--s-5); color: var(--vang); }
.ts02-trong__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }

/* Thông báo của WooCommerce. */
body.ts02-shop .woocommerce-message,
body.ts02-shop .woocommerce-info,
body.ts02-shop .woocommerce-error {
	border: 1px solid var(--vien-2);
	border-top: 2px solid var(--vang);
	background: var(--nen-2);
	color: var(--chu);
	padding: var(--s-4) var(--s-5);
	margin: 0 0 var(--s-6);
	border-radius: 0;
	list-style: none;
}
body.ts02-shop .woocommerce-message::before,
body.ts02-shop .woocommerce-info::before,
body.ts02-shop .woocommerce-error::before { content: none; }
body.ts02-shop .woocommerce-error { border-top-color: var(--do); }
body.ts02-shop .woocommerce-message a.button,
body.ts02-shop .woocommerce-info a.button { float: right; }

/* ── 10. GIỎ HÀNG / THANH TOÁN / TÀI KHOẢN ────────────────────────── */
body.ts02-shop .woocommerce table.shop_table {
	width: 100%;
	border: 1px solid var(--vien);
	border-radius: 0;
	border-collapse: collapse;
	font-size: var(--fs-3);
}
body.ts02-shop .woocommerce table.shop_table th,
body.ts02-shop .woocommerce table.shop_table td {
	padding: var(--s-4);
	border-bottom: 1px solid var(--vien);
	text-align: left;
}
body.ts02-shop .woocommerce table.shop_table thead th {
	background: var(--nen-2);
	font-size: var(--fs-2);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muc);
}
body.ts02-shop .woocommerce table.shop_table img { width: 70px; height: auto; }

/* Mọi nút của WooCommerce đi theo nút của mẫu: viên tròn, nền vàng. */
body.ts02-shop .woocommerce a.button,
body.ts02-shop .woocommerce button.button,
body.ts02-shop .woocommerce input.button,
body.ts02-shop .woocommerce a.button.alt,
body.ts02-shop .woocommerce button.button.alt,
body.ts02-shop .woocommerce input.button.alt,
body.ts02-shop .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 13px 30px;
	border: 1px solid var(--vang-nen);
	border-radius: 50px;
	background: var(--vang-nen);
	color: #ffffff;
	font-family: inherit;
	font-size: var(--fs-4);
	font-weight: 400;
	line-height: 1;
	text-shadow: none;
	transition: background var(--t-vua), border-color var(--t-vua);
}
body.ts02-shop .woocommerce a.button:hover,
body.ts02-shop .woocommerce button.button:hover,
body.ts02-shop .woocommerce input.button:hover,
body.ts02-shop .woocommerce a.button.alt:hover,
body.ts02-shop .woocommerce button.button.alt:hover,
body.ts02-shop .woocommerce input.button.alt:hover,
body.ts02-shop .woocommerce #respond input#submit:hover {
	background: var(--muc); border-color: var(--muc); color: #ffffff;
}
body.ts02-shop .woocommerce .button:disabled,
body.ts02-shop .woocommerce .button.disabled { opacity: .5; }

body.ts02-shop .cart_totals, body.ts02-shop .cross-sells { margin-top: var(--s-7); }
body.ts02-shop .woocommerce-checkout #order_review,
body.ts02-shop .woocommerce-checkout .woocommerce-checkout-review-order {
	background: var(--nen-2);
	border: 1px solid var(--vien);
	padding: var(--s-6);
}
body.ts02-shop .woocommerce form .form-row { padding: 0; margin: 0 0 var(--s-4); }
body.ts02-shop .woocommerce form .form-row label { font-size: var(--fs-2); font-weight: 700; color: var(--muc); }
body.ts02-shop #payment { background: transparent; border-radius: 0; }
body.ts02-shop #payment ul.payment_methods { border-bottom: 1px solid var(--vien); padding: 0 0 var(--s-4); }
body.ts02-shop #payment div.form-row { padding: var(--s-4) 0 0; }

body.ts02-shop .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
body.ts02-shop .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--vien); }
body.ts02-shop .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0; font-size: var(--fs-3); }
body.ts02-shop .woocommerce-MyAccount-navigation li.is-active a { color: var(--vang-chu); font-weight: 700; }

/*
 * WOOCOMMERCE BLOCKS — giỏ hàng và thanh toán bản khối.
 *
 * Trang Giỏ hàng và Thanh toán của site này dựng bằng khối (block) chứ không
 * bằng mã ngắn, nên chúng KHÔNG nhận bộ luật `.woocommerce .button` ở trên.
 * Bỏ qua phần này là nút "Tiến hành thanh toán" giữ nguyên màu xanh mặc định
 * của WooCommerce — đúng chỗ chướng mắt nhất trên cả trang.
 *
 * Bộ chọn mở đầu bằng `body.ts02-shop` để lên mức (0,3,0): luật gốc của khối
 * thường ở (0,2,0), nên không cần `!important` ở hầu hết các dòng.
 */
body.ts02-shop .wc-block-components-button:not(.is-link) {
	border-radius: 50px;
	background-color: var(--vang-nen);
	border: 1px solid var(--vang-nen);
	color: #ffffff;
	font-family: inherit;
	font-size: var(--fs-4);
	font-weight: 400;
	padding: 14px 32px;
	transition: background-color var(--t-vua), border-color var(--t-vua);
}
body.ts02-shop .wc-block-components-button:not(.is-link):hover {
	background-color: var(--muc);
	border-color: var(--muc);
	color: #ffffff;
}
body.ts02-shop .wc-block-components-button.is-link { color: var(--vang-chu); }

body.ts02-shop .wc-block-components-product-name { color: var(--muc); font-size: var(--fs-5); }
body.ts02-shop a.wc-block-components-product-name:hover { color: var(--vang-chu) !important; text-decoration: underline; }
body.ts02-shop .wc-block-components-product-price__value,
body.ts02-shop .wc-block-components-totals-item__value,
body.ts02-shop .wc-block-formatted-money-amount { color: var(--vang-chu); }
body.ts02-shop .wc-block-components-product-price del { color: var(--nhat); }

body.ts02-shop .wc-block-components-quantity-selector { border-radius: 0; border-color: var(--vien-2); }
body.ts02-shop .wc-block-components-quantity-selector__button { border-radius: 0; color: var(--muc); }
body.ts02-shop .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.ts02-shop .wc-block-cart__sidebar .wc-block-components-panel { background: var(--nen-2); }
body.ts02-shop .wc-block-components-text-input input,
body.ts02-shop .wc-block-components-address-form input,
body.ts02-shop .wc-block-components-select__container { border-radius: 0; }
body.ts02-shop .wc-block-components-title,
body.ts02-shop .wp-block-woocommerce-cart h2,
body.ts02-shop .wp-block-woocommerce-checkout h2 { color: var(--muc); }
body.ts02-shop table.wc-block-cart-items { border: 1px solid var(--vien); }
body.ts02-shop table.wc-block-cart-items th { background: var(--nen-2); color: var(--muc); }

/* ── 11. CHUYỂN ĐỘNG THEO CUỘN ────────────────────────────────────── */
/*
 * Bốn đường dự phòng, giữ nguyên từ bản trước vì đã kiểm kỹ:
 *   1. Lớp `ts02-js` gắn nội tuyến trong <head> — không JS thì không giấu gì.
 *   2. `prefers-reduced-motion` — tắt hẳn mọi luật giấu.
 *   3. Lớp `ts02-show-all` do hẹn giờ 2,5s trong <head> cũng tắt luật giấu.
 *   4. Kịch bản tự kiểm bằng `getBoundingClientRect` nếu IntersectionObserver
 *      không chạy.
 * Bốn bộ chọn dưới đây khai ở HAI nơi, đây và assets/site.js. Lệch một chữ là
 * có phần tử bị CSS giấu mà kịch bản không gọi hiện ra.
 */
.ts02-js [data-ts02-rise] > *,
.ts02-js [data-ts02-loe],
.ts02-js [data-ts02-ve] circle {
	transition: opacity 700ms var(--e), translate 700ms var(--e);
}
.ts02-js:not(.ts02-show-all) [data-ts02-rise] > * { opacity: 0; translate: 0 18px; }
.ts02-js [data-ts02-rise] > *.is-in { opacity: 1; translate: 0 0; }

.ts02-js [data-ts02-rise] > *:nth-child(1) { transition-delay: 0ms; }
.ts02-js [data-ts02-rise] > *:nth-child(2) { transition-delay: 80ms; }
.ts02-js [data-ts02-rise] > *:nth-child(3) { transition-delay: 160ms; }
.ts02-js [data-ts02-rise] > *:nth-child(4) { transition-delay: 240ms; }
.ts02-js [data-ts02-rise] > *:nth-child(n+5) { transition-delay: 0ms; }

.ts02-loe { position: relative; overflow: hidden; }
.ts02-loe::after {
	content: ''; position: absolute; top: -40%; left: -60%;
	width: 34%; height: 180%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
	transform: translateX(0) rotate(18deg);
	opacity: 0; pointer-events: none;
}
.ts02-js [data-ts02-loe].is-in::after { animation: ts02-loe 1200ms var(--e) 200ms both; }
@keyframes ts02-loe {
	0% { transform: translateX(0) rotate(18deg); opacity: 0; }
	22% { opacity: 1; }
	100% { transform: translateX(460%) rotate(18deg); opacity: 0; }
}

.ts02-js:not(.ts02-show-all) [data-ts02-ve] circle { stroke-dashoffset: var(--ve-len, 0); }
.ts02-js [data-ts02-ve].is-in circle { stroke-dashoffset: 0; }
.ts02-ve { display: block; width: 100%; height: auto; }
.ts02-ve circle { transition: stroke-dashoffset 1400ms var(--e); }
.ts02-ve circle:nth-child(2) { transition-delay: 240ms; }

.ts02-cart__n.is-bump { animation: ts02-bump 420ms var(--e); }
@keyframes ts02-bump {
	0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); }
}

/* ĐƯỜNG DỰ PHÒNG 2 — tắt hẳn mọi chuyển động và mọi luật giấu. */
@media (prefers-reduced-motion: reduce) {
	.ts02-js [data-ts02-rise] > *,
	.ts02-js:not(.ts02-show-all) [data-ts02-rise] > * { opacity: 1 !important; translate: none !important; }
	.ts02-js [data-ts02-ve] circle,
	.ts02-js:not(.ts02-show-all) [data-ts02-ve] circle { stroke-dashoffset: 0 !important; }
	.ts02-js [data-ts02-loe].is-in::after { animation: none !important; opacity: 0 !important; }
	body.ts02-shop *,
	body.ts02-shop *::before,
	body.ts02-shop *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ── 12. MÀN HÌNH HẸP ─────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
	.ts02-search input[type="search"] { width: 180px; }
	.ts02-nav a { padding-inline: 12px; }
}

/*
 * Menu về ngăn kéo ở 1080px chứ không 992px: menu nằm GIỮA cộng ô tìm kiếm
 * 230px và hai biểu tượng là khoảng 1050px nội dung thật — hạ mốc xuống 992
 * thì ở quãng 1000–1080px menu bị bóp và chữ vỡ dòng.
 */
@media (max-width: 1079.98px) {
	.ts02-head__row { min-height: 72px; }
	.ts02-burger { display: inline-flex; }
	.ts02-search { display: none; }

	.ts02-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #ffffff;
		border-bottom: 1px solid var(--vien);
		box-shadow: var(--bong);
		opacity: 0; visibility: hidden;
		transform: translateY(-8px);
		transition: opacity var(--t-vua), transform var(--t-vua), visibility var(--t-vua);
	}
	.ts02-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
	.ts02-nav > ul { flex-direction: column; align-items: stretch; padding: var(--s-3) var(--le) var(--s-5); }
	.ts02-nav > ul > li { border-bottom: 1px solid var(--vien); }
	.ts02-nav > ul > li:last-child { border-bottom: 0; }
	.ts02-nav > ul > li > a { padding: 14px 0; }
	/* Menu con mở sẵn trong ngăn kéo: trên màn hình cảm ứng không có
	   thao tác "rê chuột", mà bắt chạm hai lần để mở là bốn danh mục
	   hàng thành bốn mục khách không tìm ra. */
	.ts02-nav__sub {
		position: static; opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; background: transparent;
		min-width: 0; padding: 0 0 10px 16px;
	}
	.ts02-nav__sub a { padding: 7px 0; }
	.ts02-nav__mui { display: none; }

	body.ts02-shop ul.products { grid-template-columns: repeat(3, 1fr); }
	body.ts02-shop div.product { grid-template-columns: 1fr; gap: var(--s-6); }
	.ts02-conhan, .ts02-lh, .ts02-doi { grid-template-columns: 1fr; gap: var(--s-6); }
	.ts02-foot__grid { grid-template-columns: repeat(2, 1fr); }
	.ts02-foot__hang2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	:root { --s-9: 60px; --s-10: 72px; --le: 16px; }
	body.ts02-shop ul.products { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
	.ts02-bar__in { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 10px; }
	body.ts02-shop .ts02-page__head h1 { font-size: 32px; }

	/*
	 * Biểu mẫu đăng ký tắt dưới 860px, thay bằng khối gọi nhanh: gõ địa chỉ
	 * thư trên điện thoại là việc thừa khi nút gọi nằm ngay cạnh.
	 * `display: none` nên biểu mẫu rời cả thứ tự tiêu điểm bàn phím.
	 * CHỈ hai chỗ này — ô tìm kiếm trên trang 404 cũng dùng `.ts02-form`
	 * nhưng phải ở lại: một trang 404 không có chỗ tìm là ngõ cụt.
	 */
	.ts02-lh .ts02-form, .ts02-foot__news { display: none; }
	.ts02-goi { display: flex; }
}

@media (max-width: 560px) {
	.ts02-shop__bar { flex-direction: column; align-items: stretch; gap: var(--s-3); }
	body.ts02-shop .woocommerce-ordering select { min-width: 0; }
	.ts02-act { transform: translateX(-20px); opacity: 1; }
	.ts02-brand__name { font-size: 23px; }
}

@media (max-width: 420px) {
	body.ts02-shop ul.products { grid-template-columns: 1fr; }
	.ts02-foot__grid { grid-template-columns: 1fr; }
	.ts02-btn { width: 100%; }
}
