/*
Theme Name: VinaSite Thời trang 06 — Tầm Xuân
Theme URI: https://vinasite.com.vn/
Description: Mẫu website bán hàng thời trang nữ trên nền kem cát, nhấn ngọc bích, ảnh bo vòm. Giao diện con của vinasite, dựng sẵn WooCommerce: trang chủ nhiều khối, cửa hàng, chi tiết sản phẩm, giới thiệu và liên hệ. Mẫu demo của VinaSite.
Author: VinaSite
Author URI: https://vinasite.com.vn/
Template: vinasite
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thoitrang-mau-06
Tags: mau-website-ban-hang, thuong-mai-dien-tu, thoi-trang, responsive
*/

/* =====================================================================
 * TẦM XUÂN — mẫu website bán hàng thời trang (thoitrang-mau-06)
 * Mọi lớp mang tiền tố `tx-`, mọi luật neo vào `body.tx-shop`.
 *
 * CỐ Ý KHÁC HẲN BA MẪU THỜI TRANG ĐÃ CHẠY:
 *
 *                 01 Nếp           02 Phố Thị        03 Giao Mùa       06 Tầm Xuân (tệp này)
 *   nền trang     trắng            trắng             trắng tinh        KEM CÁT #F4EFE7
 *   màu nhấn      cam đất          hồng sen          đất nung          NGỌC BÍCH #1D5C56
 *   phông         một họ sans      Oswald + Inter    Archivo           LORA + MULISH
 *   hình khối     bo 14px          vuông 0px         vuông 0px         VÒM (mái vòm)
 *   đầu trang     logo trái        trong suốt        một tầng          LOGO GIỮA, MENU HAI BÊN
 *   hero          ảnh nền phủ tối  ảnh tràn khung    chia đôi Nam|Nữ   HAI CỘT TRÊN NỀN CÁT
 *   khối riêng    —                lookbook          chọn Nam/Nữ       PHỐI TRỌN BỘ (3 món + tổng)
 *
 * ĐỘ TƯƠNG PHẢN tính trước khi chọn màu, không chọn theo cảm tính
 * (nền tham chiếu là kem cát #F4EFE7, không phải trắng):
  *   #1B2420 trên cát  14,05:1      #1D5C56 trên cát   6,75:1
 *   #4C554F trên cát   6,67:1      trắng trên #1D5C56 7,72:1
 *   #5A635D trên KEM   4,83:1      #8F5F22 trên cát   5,03:1
 *   #9B3324 trên cát   6,34:1      #CFC8BA trên mực   9,84:1
 *
 * Chữ phụ đo trên #EAE2D4 (dải đầu trang nội dung) chứ KHÔNG phải nền trang:
 * đó là nền đậm nhất nó nằm lên. Màu cũ #636D67 đạt 4,72:1 trên cát nhưng chỉ
 * 4,17:1 trên kem — trượt AA đúng ở chỗ đường dẫn phân cấp và giá gạch nằm.
 * Cặp thấp nhất 4,83:1 — vẫn trên mức 4,5:1 của AA.
 *
 * HAI CHỖ PHẢI CÓ ĐỘ ƯU TIÊN THẬT, KHÔNG ĐƯỢC HẠ XUỐNG MỘT LỚP:
 *   1. `body.tx-shop h1, h2, h3 { color: inherit }` — theme mẹ áp màu xanh cho
 *      tiêu đề trong nội dung bằng luật hai lớp; khai một lớp là thua.
 *   2. `font-family` và `box-sizing` — theme mẹ cũng khai, không đủ nặng thì cả
 *      trang lệch phông.
 * ===================================================================== */

:root {
	--tx-nen:      #F4EFE7;   /* nền trang — kem cát */
	--tx-mat:      #FFFFFF;   /* mặt thẻ */
	--tx-kem:      #EAE2D4;   /* dải nền đậm hơn một nấc */
	--tx-muc:      #1B2420;   /* tiêu đề, nền chân trang */
	--tx-than:     #4C554F;   /* chữ nội dung */
	/* Chữ phụ — đo trên nền ĐẬM NHẤT mà nó nằm lên, tức dải `--tx-kem` của đầu
	   trang nội dung, KHÔNG phải nền trang. Giá trị cũ `#636D67` đạt 4,72:1
	   trên nền cát nhưng chỉ 4,17:1 trên dải kem, tức trượt AA đúng ở chỗ
	   đường dẫn phân cấp và giá gạch nằm. */
	--tx-mo:       #5A635D;   /* 4,83:1 trên kem · 5,43:1 trên cát · 6,22:1 trên trắng */
	--tx-vien:     #DFD5C4;
	--tx-vien-2:   #EDE6DA;
	/* Dấu gạch đường dẫn phân cấp. Chỉ trang trí (`aria-hidden`) nên không bắt
	   buộc 4,5:1, nhưng vẫn là chữ thấy được — kéo lên trên mức 3:1. */
	--tx-mo-2:     #837C70;   /* 3,23:1 trên kem */

	/* Chữ trên nền mực (chân trang, dải cam kết, khối đăng ký, lời nhắn).
	   Bốn sắc xám xanh, đậm dần nhạt dần theo vai trò. */
	--tx-sang:     #CFC8BA;   /* chữ phụ chính */
	--tx-sang-2:   #C3C9C3;   /* liên kết chân trang */
	--tx-sang-3:   #A7AEA8;   /* đoạn văn trên nền mực */
	--tx-sang-4:   #99A09A;   /* chữ phụ dải cam kết */
	--tx-sang-mo:  #8E9690;   /* chữ mờ nhất: ghi chú trên nền mực — 5,30:1 */
	/* Chữ gợi ý trong ô nhập trên nền mực. Phải SÁNG HƠN `--tx-sang-mo`: ô nhập
	   có nền riêng `rgba(255,255,255,.06)` chồng lên nền mực, ghép lại ra một
	   màu nhạt hơn mực nên kéo tương phản xuống 4,40:1 — trượt AA. */
	--tx-goi-y:    #9BA39D;   /* 5,13:1 trên nền ô nhập đã ghép */
	--tx-sang-ico: #7C847E;   /* biểu tượng chân trang */
	--tx-toast:    #EDEAE3;   /* chữ trong lời nhắn nổi */
	/* MỘT màu chữ đục, và chỉ một.
	 *
	 * Chữ đục phải ghép với nền bên dưới rồi mới đo được tương phản; không ghép
	 * thì mọi phép đo đều báo CAO HƠN thực tế. Bản cũ `.7` cho số đếm trên thẻ
	 * lọc chỉ đạt 4,72:1 trong khi phép quét (chưa ghép màu chữ) báo 7,73:1 —
	 * "báo ĐẠT sai", nguy hơn báo lỗi sai vì không có dòng nào để mà nghi.
	 *
	 * Vì vậy chỉ giữ độ đục ở chỗ nó THẬT SỰ cần: chữ đè lên ẢNH, nơi màu nền
	 * thay đổi theo từng tấm ảnh nên phải hoà vào ảnh chứ không thể là màu cố
	 * định. Còn số đếm trên thẻ lọc nằm trên nền NGỌC BÍCH PHẲNG — ở đó màu đục
	 * chỉ là một cách viết vòng của đúng một màu đặc, nên khai thẳng màu đặc:
	 * `#D6E2E1` là kết quả ghép của `rgba(255,255,255,.82)` lên `#1D5C56`, đo ra
	 * cùng một điểm ảnh. Đổi vậy thì phép quét nào cũng đo đúng, không cần hàm
	 * ghép — mẫu này nhiều người sửa, nên cái gì bớt phụ thuộc vào sự tinh ý
	 * của người kiểm thì bớt. (Phiên `mypham-mau-01` chọn hướng này cho cả bộ;
	 * `thoitrang-mau-05` chọn ngược lại và cũng có lý — đổi màu nhấn thì `rgba`
	 * tự theo, còn màu đặc phải tính lại.)
	 */
	--tx-tren-anh:  rgba(255, 255, 255, .82);  /* chữ phụ đè lên ẢNH — 6,55:1 kể cả trên ảnh trắng */
	--tx-tren-nhan: #D6E2E1;                   /* số đếm trên thẻ lọc đang chọn — 5,81:1 trên ngọc bích */

	--tx-nhan:     #1D5C56;   /* ngọc bích: nút, liên kết, điểm nhấn */
	--tx-nhan-dam: #144440;
	--tx-nhan-mo:  #E6EFEC;
	--tx-dong:     #8F5F22;   /* đồng: nhãn nhỏ, dòng mào đầu */
	--tx-vang:     #C6A35F;   /* đồng sáng hơn, dùng cho mào đầu trên nền mực */
	--tx-sale:     #9B3324;   /* giá giảm */

	--tx-serif: "Lora", Georgia, "Times New Roman", serif;
	--tx-sans:  "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--tx-max: 1240px;
	--tx-gut: clamp(16px, 3.2vw, 40px);
	--tx-pad: clamp(56px, 6vw, 104px);

	--tx-r:    6px;
	--tx-r-sm: 4px;
	/* VÒM — nét nhận dạng của mẫu. Bán kính theo phần trăm nên ô to ô nhỏ đều
	   ra cùng một dáng mái vòm, không phải chỉnh tay từng chỗ. */
	--tx-vom: 48% 48% 6px 6px / 34% 34% 6px 6px;

	--tx-bong:   0 1px 2px rgba(27, 36, 32, .04), 0 14px 30px -18px rgba(27, 36, 32, .22);
	--tx-bong-2: 0 2px 6px rgba(27, 36, 32, .06), 0 26px 52px -24px rgba(27, 36, 32, .32);
}

/* =====================================================================
 * ÁNH XẠ BIẾN CỦA THEME MẸ SANG BẢNG MÀU CỦA MẪU
 *
 * Theme mẹ dựng toàn bộ hệ thiết kế của nó trên biến CSS khai ở `:root`
 * (`--vs-primary`, `--vs-text`, `--vs-font`…). Mọi trang do THEME MẸ dựng —
 * trang 404 và trang tìm kiếm chung, hai trang mẫu này không có mẫu riêng —
 * đều lấy màu và phông từ đó, nên chúng ra nút xanh dương `#1E5AA8`, chữ
 * `#201d1a`, phông Be Vietnam Pro.
 *
 * Khai lại chính những biến ấy ở `body.tx-shop` (0,1,1) là đè được `:root`
 * (0,1,0) và **mọi luật của theme mẹ tự đổi theo một lượt** — kể cả luật ở
 * những trang chưa từng mở ra xem. Cách này gọn và chắc hơn hẳn việc đi dò
 * từng lớp `.vs-*` một; đi dò từng lớp thì chỉ sửa được chỗ mình đã nhìn thấy.
 *
 * Không ảnh hưởng đầu trang, chân trang hay các trang có mẫu riêng: chúng dùng
 * biến `--tx-*` của mẫu này, không đụng tới `--vs-*`.
 * ===================================================================== */
body.tx-shop {
	--vs-font:          var(--tx-sans);
	--vs-text:          var(--tx-muc);
	--vs-muted:         var(--tx-mo);
	--vs-primary:       var(--tx-nhan);
	--vs-primary-dark:  var(--tx-nhan-dam);
	--vs-secondary:     var(--tx-nhan-dam);
	--vs-accent:        var(--tx-dong);
	--vs-accent-hover:  var(--tx-dong);
	--vs-gold-text:     var(--tx-dong);
	--vs-lotus:         var(--tx-sale);
	--vs-lotus-soft:    var(--tx-nhan-mo);
	--vs-danger:        var(--tx-sale);
	--vs-success:       var(--tx-nhan);
	--vs-bg-light:      var(--tx-nen);
	--vs-bg-soft:       var(--tx-kem);
	--vs-border:        var(--tx-vien);
	--vs-white:         var(--tx-mat);
	--vs-radius-sm:     var(--tx-r);
	--vs-radius-md:     var(--tx-r);
	--vs-radius-lg:     var(--tx-r);
	--vs-container:     var(--tx-max);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.tx-shop {
	margin: 0;
	background: var(--tx-nen);
	color: var(--tx-muc);
	font: 400 16px/1.7 var(--tx-sans);
	-webkit-font-smoothing: antialiased;
}

body.tx-shop a { color: inherit; text-decoration: none; }
body.tx-shop img { display: block; max-width: 100%; height: auto; }
body.tx-shop button, body.tx-shop input, body.tx-shop select, body.tx-shop textarea { font: inherit; }

/* Firefox áp sẵn `opacity: .54` cho chữ gợi ý trong ô nhập. Không khai lại thì
   mọi con số tương phản đo trên Chromium đều CAO HƠN thực tế trên Firefox —
   chữ gợi ý 5,13:1 của mẫu này sẽ tụt xuống khoảng 2,9:1. Một dòng, chặn hẳn
   một chênh lệch giữa hai trình duyệt mà phép quét không thể thấy vì nó chỉ
   chạy trên một trình duyệt. Phiên `mypham-mau-01` nêu. */
body.tx-shop ::placeholder { opacity: 1; }

/* Theme mẹ có luật riêng cho h1–h3 trong nội dung (màu xanh dương) và luật ấy
   là hai lớp. Khai `inherit` ở cùng độ nặng thì tiêu đề tự đúng màu trong cả
   khối nền sáng lẫn khối nền mực — không phải liệt kê từng ngoại lệ. */
body.tx-shop h1, body.tx-shop h2, body.tx-shop h3 {
	margin: 0;
	color: inherit;
	font-family: var(--tx-serif);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.012em;
}

/* Theme mẹ bọc nội dung trong `.vs-scope` và đặt THẲNG trên phần tử ấy:
   `font-family: var(--vs-font); color: var(--vs-text); font-size: 16px;
   line-height: 1.65`. Luật đặt thẳng lên phần tử luôn THẮNG giá trị thừa kế từ
   `body`, nên mọi trang có `.vs-scope` — cửa hàng, danh mục, sản phẩm, giới
   thiệu, liên hệ, giỏ hàng, tài khoản, tức là tất cả trừ trang chủ — chạy chữ
   bằng Be Vietnam Pro của theme mẹ chứ không phải Mulish, và màu chữ ra
   `#201d1a` chứ không phải mực của mẫu này.

   ĐÂY KHÔNG PHẢI CUỘC SO ĐỘ ƯU TIÊN. Thừa kế chỉ có tác dụng khi phần tử
   không có khai báo nào của riêng nó; đã có khai báo thẳng thì nó thắng, bất kể
   luật trên `body` nặng bao nhiêu — viết `body.tx-shop.tx-shop.tx-shop` cũng
   thua. Cách phòng duy nhất là khai lại THẲNG lên `.vs-scope` như dưới đây
   (lúc ấy mới là so độ ưu tiên giữa hai luật trên cùng một phần tử: (0,2,1)
   của ta hơn (0,1,0) của theme mẹ).

   Lỗi này KHÔNG nhìn ra bằng mắt: hai phông đều là sans nhân văn, hai màu đều
   là nâu đen. Phải đọc `getComputedStyle` mới thấy.

   Phải sửa chỗ này TRƯỚC khi gỡ `vs-font` của theme mẹ — gỡ phông mà không
   khai lại thì các trang ấy rơi về phông hệ thống, còn tệ hơn. */
body.tx-shop .vs-scope {
	font-family: var(--tx-sans);
	font-size: 16px;
	line-height: 1.7;
	color: var(--tx-muc);
}

.tx-wrap { width: min(var(--tx-max), calc(100% - var(--tx-gut) * 2)); margin-inline: auto; }

/* Liên kết bỏ qua, dành cho người dùng bàn phím.
   PHẢI viết `body.tx-shop .tx-skip` chứ không phải `.tx-skip`: luật
   `body.tx-shop a { color: inherit }` là (0,1,2), nuốt mất `color: #fff` của
   một luật một lớp (0,1,0). Khi ấy chữ ra đúng màu mực trên nền mực — liên kết
   TÀNG HÌNH, mà đây lại là thứ đầu tiên người dùng bàn phím chạm tới. Tương
   phản đo được trước khi sửa: 1,00:1. */
body.tx-shop .tx-skip { position: absolute; z-index: 100; top: 10px; left: 10px;
	transform: translateY(-200%); border-radius: var(--tx-r); padding: 11px 18px;
	background: var(--tx-muc); color: #fff;
	font-size: 14px; font-weight: 600; transition: transform .2s ease; }
body.tx-shop .tx-skip:focus { transform: translateY(0); }

/* Đầu trang dính nên mọi neo `#id` phải chừa sẵn chỗ, nếu không mục được nhảy
   tới sẽ nằm khuất dưới thanh đầu trang. */
.tx-main, .tx-main [id] { scroll-margin-top: 128px; }

/* Vòng tiêu điểm chung cho bàn phím — đủ dày để thấy trên nền cát. */
body.tx-shop a:focus-visible, body.tx-shop button:focus-visible,
body.tx-shop input:focus-visible, body.tx-shop select:focus-visible,
body.tx-shop textarea:focus-visible {
	outline: 2px solid var(--tx-nhan); outline-offset: 3px;
}

/* =====================================================================
 * NÚT VÀ LIÊN KẾT
 * ===================================================================== */
.tx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 50px; border: 1px solid var(--tx-nhan); border-radius: var(--tx-r);
	padding: 0 26px; background: var(--tx-nhan); color: #fff !important;
	font-family: var(--tx-sans); font-size: 15px; font-weight: 700; letter-spacing: .01em;
	white-space: nowrap; cursor: pointer;
	transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s cubic-bezier(.22,.8,.3,1);
}
.tx-btn:hover { background: var(--tx-nhan-dam); border-color: var(--tx-nhan-dam); transform: translateY(-2px); }
.tx-btn svg { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.22,.8,.3,1); }
.tx-btn:hover svg { transform: translateX(3px); }

.tx-btn--vien { background: transparent; border-color: var(--tx-muc); color: var(--tx-muc) !important; }
.tx-btn--vien:hover { background: var(--tx-muc); border-color: var(--tx-muc); color: #fff !important; }

/* Liên kết dạng chữ, gạch chân mọc từ trái khi rê chuột. */
.tx-link { position: relative; display: inline-flex; align-items: center; gap: 7px;
	color: var(--tx-nhan) !important; font-size: 14.5px; font-weight: 700; }
.tx-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
	background: currentColor; transform: scaleX(0); transform-origin: left;
	transition: transform .3s cubic-bezier(.22,.8,.3,1); }
.tx-link:hover::after, .tx-link:focus-visible::after { transform: scaleX(1); }
.tx-link svg { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.22,.8,.3,1); }
.tx-link:hover svg { transform: translateX(3px); }

/* Dòng mào đầu: chữ hoa nhỏ màu đồng, có một gạch ngắn dẫn vào. */
.tx-mao { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
	color: var(--tx-dong); font-size: 12.5px; font-weight: 800;
	letter-spacing: .2em; text-transform: uppercase; }
.tx-mao::before { content: ''; width: 24px; height: 1.5px; background: currentColor; }

/* =====================================================================
 * ĐẦU TRANG — LOGO NẰM GIỮA, MENU CHIA HAI BÊN
 *
 * Dính, nhưng CHIỀU CAO KHÔNG ĐỔI khi cuộn: phần tử `position: sticky` vẫn
 * chiếm chỗ trong dòng chảy, 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 nền đặc hơn và
 * bóng đổ — hai thứ không dồn bố cục.
 * ===================================================================== */
.tx-bar { background: var(--tx-muc); color: var(--tx-sang); font-size: 13px; }
.tx-bar__in { min-height: 40px; display: flex; justify-content: center; align-items: center; gap: 20px;
	text-align: center; }
.tx-bar strong { color: #fff; font-weight: 700; }
.tx-bar a { display: inline-flex; align-items: center; gap: 6px; color: #fff !important;
	font-weight: 700; white-space: nowrap; }
.tx-bar a svg { width: 14px; height: 14px; transition: transform .25s cubic-bezier(.22,.8,.3,1); }
.tx-bar a:hover svg { transform: translateX(4px); }

.tx-head { position: sticky; z-index: 60; top: 0;
	border-bottom: 1px solid var(--tx-vien); background: rgba(244, 239, 231, .92);
	-webkit-backdrop-filter: saturate(165%) blur(10px); backdrop-filter: saturate(165%) blur(10px);
	transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tx-head.is-stuck { background: rgba(244, 239, 231, .985); border-bottom-color: transparent;
	box-shadow: 0 14px 30px -24px rgba(27, 36, 32, .65); }

/* Ba cột `1fr auto 1fr`: cột giữa co theo logo, hai cột ngoài chia đều phần
   còn lại — logo luôn ở đúng tâm dù hai nửa menu dài ngắn khác nhau. */
.tx-head__row { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr;
	align-items: center; gap: 20px; }
.tx-head__end { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* Khối menu đổ xuống chỉ dùng trên điện thoại. */
.tx-menu { display: none; }

/* Nửa menu bên trái đẩy về phải, nửa bên phải đẩy về trái: hai nửa ôm lấy logo. */
.tx-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.tx-nav--trai ul { justify-content: flex-end; }
.tx-nav--phai ul { justify-content: flex-start; }
.tx-nav a { position: relative; display: inline-block; padding: 10px 0;
	font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	white-space: nowrap; transition: color .2s ease; }
.tx-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
	background: var(--tx-nhan); transform: scaleX(0); transform-origin: left;
	transition: transform .3s cubic-bezier(.22,.8,.3,1); }
.tx-nav a:hover, .tx-nav a:focus-visible { color: var(--tx-nhan); }
.tx-nav a:hover::after, .tx-nav a:focus-visible::after,
.tx-nav a[aria-current="page"]::after { transform: scaleX(1); }
.tx-nav a[aria-current="page"] { color: var(--tx-nhan); }

.tx-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
	padding: 0 10px; text-align: center; }
.tx-brand__mark { width: 40px; height: 40px; }
.tx-brand__mark svg { width: 100%; height: 100%;
	transition: transform .35s cubic-bezier(.22,.8,.3,1); }
.tx-brand:hover .tx-brand__mark svg { transform: translateY(-2px); }
.tx-brand__name { display: block; font-family: var(--tx-serif); font-size: 27px; font-weight: 600;
	line-height: 1; letter-spacing: .06em; white-space: nowrap; }
.tx-brand__tag { display: block; color: var(--tx-mo); font-size: 10.5px; font-weight: 800;
	letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }

/* Công cụ (tìm kiếm + giỏ) nằm cuối nửa bên phải, không tách thành cột riêng —
   cột riêng sẽ đẩy logo lệch khỏi tâm. */
.tx-tools { display: inline-flex; align-items: center; gap: 12px; margin-left: 26px; }

.tx-stool { width: 42px; height: 42px; display: inline-grid; place-items: center;
	border: 1px solid var(--tx-vien); border-radius: 999px; background: transparent;
	color: var(--tx-muc); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.tx-stool:hover { border-color: var(--tx-nhan); color: var(--tx-nhan); }
.tx-stool svg { width: 19px; height: 19px; }

.tx-cart { position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center;
	border: 1px solid var(--tx-vien); border-radius: 999px; transition: border-color .2s ease, color .2s ease; }
.tx-cart:hover { border-color: var(--tx-nhan); color: var(--tx-nhan); }
.tx-cart svg { width: 20px; height: 20px; }
.tx-cart__n { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px;
	display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px;
	background: var(--tx-nhan); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; }
/* Giỏ rỗng thì không hiện số 0 — nó không cho biết điều gì. */
.tx-cart__n[data-tx-n="0"] { display: none; }
.tx-cart__n.is-bump { animation: tx-bump .45s cubic-bezier(.22,.8,.3,1); }
@keyframes tx-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.tx-burger { width: 42px; height: 42px; display: none; align-items: center; justify-content: center;
	border: 1px solid var(--tx-vien); border-radius: 999px; background: transparent;
	color: var(--tx-muc); cursor: pointer; transition: border-color .2s ease; }
.tx-burger:hover { border-color: var(--tx-nhan); }
.tx-burger span { position: relative; display: block; width: 18px; height: 12px; }
.tx-burger i { position: absolute; left: 0; right: 0; height: 1.8px; background: currentColor;
	transition: transform .28s cubic-bezier(.22,.8,.3,1), opacity .2s ease; }
.tx-burger i:nth-child(1) { top: 0; }
.tx-burger i:nth-child(2) { top: 5px; }
.tx-burger i:nth-child(3) { top: 10px; }
.tx-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.tx-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.tx-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Ô tìm kiếm mở ra thành một dải dưới đầu trang, không chen vào hàng logo —
   hàng logo chỉ còn ba thứ nên giữ được thế cân. */
.tx-search { display: none; border-top: 1px solid var(--tx-vien-2); padding: 14px 0; }
.tx-search.is-open { display: block; animation: tx-drop .26s cubic-bezier(.22,.8,.3,1) both; }
.tx-search form { display: flex; align-items: center; gap: 10px; }
.tx-search input { flex: 1 1 auto; min-width: 0; height: 48px; border: 1px solid var(--tx-vien);
	border-radius: var(--tx-r); padding: 0 16px; background: var(--tx-mat); color: var(--tx-muc);
	font-size: 15.5px; transition: border-color .2s ease; }
.tx-search input::placeholder { color: var(--tx-mo); }
.tx-search input:focus { outline: 0; border-color: var(--tx-nhan); }
.tx-search button { flex: none; }
@keyframes tx-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
 * CHÂN TRANG
 * ===================================================================== */
.tx-foot { margin-top: auto; background: var(--tx-muc); color: var(--tx-sang); }
.tx-foot__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 48px; padding: 70px 0 54px; }
.tx-foot p { margin: 0; }
.tx-foot .tx-brand { align-items: flex-start; padding: 0; text-align: left; }
.tx-foot .tx-brand__name { color: #fff; }
.tx-foot .tx-brand__tag { color: var(--tx-sang-mo); }
.tx-foot__desc { max-width: 340px; margin-top: 18px; color: var(--tx-sang-3); font-size: 14.5px; line-height: 1.8; }
.tx-foot h2 { margin: 0 0 18px; color: #fff; font-family: var(--tx-sans); font-size: 12.5px;
	font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.tx-foot ul { list-style: none; margin: 0; padding: 0; }
.tx-foot li + li { margin-top: 11px; }
.tx-foot li, .tx-foot a { color: var(--tx-sang-2); font-size: 14.5px; }
.tx-foot a:hover { color: #fff; }
/* Trượt bằng transform nên các dòng bên cạnh không bị xô. */
.tx-foot__col a span { display: inline-block; transition: transform .25s cubic-bezier(.22,.8,.3,1); }
.tx-foot__col a:hover span, .tx-foot__col a:focus-visible span { transform: translateX(5px); }

.tx-foot__lh { margin-top: 24px; }
.tx-foot__lh li { display: flex; align-items: center; gap: 10px; }
.tx-foot__lh svg { width: 17px; height: 17px; flex: none; color: var(--tx-sang-ico); }

.tx-foot__bot { border-top: 1px solid rgba(255, 255, 255, .11); padding: 18px 0;
	color: var(--tx-sang-mo); font-size: 13px; }
.tx-foot__bot .tx-wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.tx-foot__bot a { color: var(--tx-sang-2); text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================================
 * HIỆN DẦN KHI CUỘN TỚI
 * Lớp `tx-rise` do kịch bản gắn vào, KHÔNG viết sẵn trong HTML — tắt
 * JavaScript thì trang vẫn hiện đầy đủ, và trình thu thập luôn thấy nội dung.
 * ===================================================================== */
.tx-rise { opacity: 0; transform: translateY(18px);
	transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); }
.tx-rise.is-in { opacity: 1; transform: none; }

/* =====================================================================
 * DẢI ĐẦU TRANG NỘI DUNG (cửa hàng, sản phẩm, trang tĩnh)
 * ===================================================================== */
.tx-page__head { padding: 52px 0 42px; background: var(--tx-kem); border-bottom: 1px solid var(--tx-vien); }
.tx-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--tx-mo); font-size: 13.5px; }
.tx-crumb a:hover { color: var(--tx-nhan); text-decoration: underline; text-underline-offset: 3px; }
.tx-crumb span[aria-hidden] { color: var(--tx-mo-2); }
.tx-page__title { margin-top: 12px; font-size: clamp(32px, 4vw, 52px); }
.tx-page__sub { max-width: 640px; margin: 14px 0 0; color: var(--tx-than); font-size: 16.5px; }

/* =====================================================================
 * CỬA HÀNG, DANH MỤC, LƯỚI SẢN PHẨM
 * ===================================================================== */
.tx-shop__body { padding: 36px 0 var(--tx-pad); }
.tx-shop__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
	gap: 16px; margin-bottom: 32px; }
.tx-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.tx-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 17px;
	border: 1px solid var(--tx-vien); border-radius: 999px; background: var(--tx-mat);
	font-size: 14px; font-weight: 700; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.tx-chip span { color: var(--tx-mo); font-size: 12px; font-weight: 800; }
.tx-chip:hover { border-color: var(--tx-nhan); color: var(--tx-nhan); }
.tx-chip.is-on { background: var(--tx-nhan); border-color: var(--tx-nhan); color: #fff; }
.tx-chip.is-on span { color: var(--tx-tren-nhan); }

.tx-shop__sort form.woocommerce-ordering { margin: 0; }
body.tx-shop .woocommerce-ordering select {
	min-height: 40px; border: 1px solid var(--tx-vien); border-radius: 999px; padding: 0 16px;
	background: var(--tx-mat); color: var(--tx-muc); font-size: 14px; font-weight: 700; }

.tx-trong { padding: 44px 0; color: var(--tx-than); }

/* --- Lưới và thẻ sản phẩm: dùng chung cho cửa hàng, danh mục, liên quan --- */
body.tx-shop ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px 24px; margin: 0; padding: 0; list-style: none; }
body.tx-shop ul.products::before, body.tx-shop ul.products::after { display: none; }
body.tx-shop ul.products li.product { position: relative; float: none; width: auto; margin: 0; min-width: 0; text-align: left; }

/* WooCommerce nạp `woocommerce-smallscreen.css` dưới 769px và ép
   `width: 48%; float: left; clear: both` cho thẻ sản phẩm bằng dạng chọn
   `ul.products[class*="columns-"] li.product`. Dạng chọn ấy NẶNG HƠN luật ba
   lớp thông thường (bộ chọn thuộc tính tính như một lớp), nên `width: 48%` của
   nó thắng và thẻ sản phẩm co lại còn nửa ô lưới — trong khi
   `grid-template-columns` vẫn báo đúng ba cột, nên rất dễ tưởng lưới còn tốt.

   CHỈ `width` mới thật sự gây hại. `float` và `clear` KHÔNG có tác dụng lên
   phần tử con của lưới — đã thử ép `float: right !important` trở lại và vị trí
   các thẻ không nhúc nhích (trái 16px / 187px ở bề ngang 375px). Vì vậy luật
   `:nth-child(2n) { float: right }` của WooCommerce không cần khai lại; để
   `float`/`clear` ở đây chỉ là phòng khi ai đó bỏ `display: grid`.

   Lưu ý khi kiểm: `getComputedStyle(li).float` vẫn trả về `right` dù lưới đã
   xếp đúng — đo `getBoundingClientRect().left` mới biết thật hay giả. */
body.tx-shop ul.products[class*="columns-"] li.product {
	float: none; clear: none; width: auto; margin: 0;
}

/* Ảnh sản phẩm bo VÒM. `overflow: hidden` đặt ở thẻ <a> bọc ngoài để góc bo
   cắt được cả phần ảnh phóng ra khi rê chuột. */
body.tx-shop ul.products li.product > a { display: block; overflow: hidden;
	border-radius: var(--tx-vom); background: var(--tx-kem); }
body.tx-shop ul.products li.product a img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
	margin: 0; transition: transform .55s cubic-bezier(.22,.8,.3,1); }
body.tx-shop ul.products li.product:hover a img { transform: scale(1.05); }

/* Nhãn "Sale!" mặc định của WooCommerce bị tắt: theme đã có nhãn riêng ở
   `tx_nhan_the()` trong inc/shop.php, hai nhãn chồng nhau thì rối. */
body.tx-shop span.onsale { display: none; }

.tx-tags { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; gap: 6px; }
.tx-tag { display: inline-flex; align-items: center; height: 25px; padding: 0 11px; border-radius: 999px;
	background: var(--tx-muc); color: #fff; font-size: 11px; font-weight: 800;
	letter-spacing: .1em; text-transform: uppercase; }
.tx-tag--sale { background: var(--tx-sale); }

body.tx-shop ul.products li.product .woocommerce-loop-product__title {
	margin: 16px 0 0; padding: 0; color: var(--tx-muc);
	font-family: var(--tx-serif); font-size: 18px; font-weight: 600; line-height: 1.35; }
body.tx-shop ul.products li.product .price { display: block; margin: 6px 0 0; color: var(--tx-muc);
	font-size: 16px; font-weight: 800; }
body.tx-shop ul.products li.product .price del { margin-right: 8px; color: var(--tx-mo);
	font-weight: 500; opacity: 1; }
body.tx-shop ul.products li.product .price ins { text-decoration: none; color: var(--tx-sale); }
body.tx-shop ul.products li.product .button { margin-top: 14px; }

/* Nút trong lưới và mọi nút của WooCommerce dùng chung một kiểu. */
body.tx-shop ul.products li.product .button,
body.tx-shop a.button, body.tx-shop button.button, body.tx-shop input.button,
body.tx-shop .button.alt, body.tx-shop #place_order {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; border: 1px solid var(--tx-nhan); border-radius: var(--tx-r);
	padding: 0 22px; background: var(--tx-nhan); color: #fff;
	font-family: var(--tx-sans); font-size: 14.5px; font-weight: 700; line-height: 1;
	/* Ở lưới ba cột trên tablet, chữ "Thêm vào giỏ" gãy hai dòng và thẻ so le. */
	white-space: nowrap; text-transform: none;
	transition: background .2s ease, border-color .2s ease, transform .2s ease; }
body.tx-shop ul.products li.product .button:hover,
body.tx-shop a.button:hover, body.tx-shop button.button:hover, body.tx-shop input.button:hover,
body.tx-shop .button.alt:hover, body.tx-shop #place_order:hover {
	background: var(--tx-nhan-dam); border-color: var(--tx-nhan-dam); color: #fff; transform: translateY(-2px); }

/* PHÂN TRANG — cùng bẫy với hàng thẻ Mô tả: mọi luật phải kèm `nav`.
   WooCommerce khai `.woocommerce nav.woocommerce-pagination ul li span.current
   { background: #e9e6ed; color: #816f98 }` — (0,3,4), hơn luật thiếu `nav` của
   ta (0,3,2). Hậu quả: số trang đang xem ra TÍM `#816f98` trên nền xám nhạt,
   và cả dải phân trang giữ nguyên khung viền vuông của WooCommerce thay vì
   hàng nút tròn của mẫu. Tương phản chữ tím trên nền ngọc bích chỉ 1,71:1 nếu
   chỉ sửa được nền mà không sửa được chữ.
   Thêm `nav` + `ul li` là (0,3,5), hơn một bậc. */
body.tx-shop .woocommerce-pagination { grid-column: 1 / -1; margin-top: 46px; }
body.tx-shop nav.woocommerce-pagination ul {
	display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; }
body.tx-shop nav.woocommerce-pagination ul li { float: none; border: 0; overflow: visible; }
body.tx-shop nav.woocommerce-pagination ul li a,
body.tx-shop nav.woocommerce-pagination ul li span {
	min-width: 42px; height: 42px; display: inline-grid; place-items: center;
	padding: 0; border: 1px solid var(--tx-vien); border-radius: 999px;
	background: var(--tx-mat); color: var(--tx-muc); font-size: 14.5px; font-weight: 700; }
body.tx-shop nav.woocommerce-pagination ul li a:hover,
body.tx-shop nav.woocommerce-pagination ul li a:focus {
	background: var(--tx-nhan-mo); border-color: var(--tx-nhan); color: var(--tx-nhan); }
body.tx-shop nav.woocommerce-pagination ul li span.current {
	background: var(--tx-nhan); border-color: var(--tx-nhan); color: #fff; }

/* =====================================================================
 * TRANG CHI TIẾT SẢN PHẨM
 * ===================================================================== */
.tx-single__wrap { padding: 44px 0 var(--tx-pad); }
body.tx-shop div.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 68px); }
body.tx-shop div.product div.images, body.tx-shop div.product div.summary { float: none; width: 100%; margin: 0; }
body.tx-shop div.product div.images img { width: 100%; border-radius: var(--tx-vom); }
body.tx-shop div.product .woocommerce-product-gallery__wrapper { margin: 0; }
body.tx-shop div.product .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
body.tx-shop div.product .flex-control-thumbs li { width: 76px; margin: 0; }
body.tx-shop div.product .flex-control-thumbs img { border-radius: var(--tx-r); }

body.tx-shop div.product p.price, body.tx-shop div.product span.price {
	margin: 0 0 18px; color: var(--tx-muc); font-size: 30px; font-weight: 800; }
body.tx-shop div.product p.price del { margin-right: 10px; color: var(--tx-mo); font-size: 21px;
	font-weight: 500; opacity: 1; }
body.tx-shop div.product p.price ins { text-decoration: none; color: var(--tx-sale); }
body.tx-shop div.product .woocommerce-product-details__short-description {
	margin: 0 0 24px; color: var(--tx-than); font-size: 16.5px; }
body.tx-shop div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 24px; }
body.tx-shop .quantity input.qty { width: 84px; min-height: 46px; border: 1px solid var(--tx-vien);
	border-radius: var(--tx-r); padding: 0 10px; background: var(--tx-mat); text-align: center; font-weight: 700; }
body.tx-shop div.product .product_meta { padding-top: 20px; border-top: 1px solid var(--tx-vien);
	color: var(--tx-mo); font-size: 14px; }
body.tx-shop div.product .product_meta > span { display: block; margin-bottom: 7px; }
body.tx-shop div.product .product_meta a { color: var(--tx-nhan); }

/* Ba dòng cam kết dưới nút mua — thông tin thật, không bịa chứng nhận. */
.tx-camket { list-style: none; margin: 0 0 24px; padding: 20px 22px;
	border: 1px solid var(--tx-vien); border-radius: var(--tx-r); background: var(--tx-mat); }
.tx-camket li { display: flex; align-items: flex-start; gap: 11px; color: var(--tx-than); font-size: 14.5px; }
.tx-camket li + li { margin-top: 12px; }
.tx-camket svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--tx-nhan); }
.tx-camket strong { color: var(--tx-muc); }

/* Thẻ Mô tả, sản phẩm liên quan: cho tràn hết bề ngang lưới hai cột. */
body.tx-shop div.product .woocommerce-tabs,
body.tx-shop div.product .related,
body.tx-shop div.product .upsells { grid-column: 1 / -1; }

/* HÀNG THẺ (Mô tả / Thông tin thêm) — MỌI luật ở đây phải kèm `div.product`.
   WooCommerce khai cả bộ thẻ dưới tiền tố `.woocommerce div.product`, tức
   (0,4,3) tới (0,5,4), và `woocommerce.css` nạp SAU `style.css` của theme. Luật
   thiếu `div.product` của ta chỉ (0,3,3)–(0,4,4) nên thua sạch: hàng thẻ giữ
   nguyên kiểu mặc định của WooCommerce — nền xám `#e9e6ed`, bo góc trên 4px,
   hai cái nhú nhỏ ở chân thẻ, chữ xám `#515151`, thẻ đang mở nền trắng.

   Lỗi này nhìn qua ảnh chụp rất dễ bỏ sót vì thẻ xám nhạt trông cũng "có kiểu".
   Chỗ lòi ra là khi khai riêng màu chữ mà quên màu nền: chữ trắng của ta nằm
   trên nền trắng của WooCommerce, thẻ thành ô rỗng. Bắt được nhờ quét màu mọi
   thẻ `<a>` trên trang rồi đối chiếu với bảng màu của mẫu.

   Hai cái nhú `::before` / `::after` cũng phải gỡ bằng dạng chọn đủ nặng, nếu
   không chúng vẫn vẽ đè lên viền bo tròn. */
body.tx-shop .woocommerce-tabs { margin-top: 56px; }
body.tx-shop div.product .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0;
	border: 0; overflow: visible; }
body.tx-shop div.product .woocommerce-tabs ul.tabs::before,
body.tx-shop div.product .woocommerce-tabs ul.tabs li::before,
body.tx-shop div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.tx-shop div.product .woocommerce-tabs ul.tabs li {
	margin: 0; padding: 0; border: 1px solid var(--tx-vien); border-radius: 999px;
	background: var(--tx-mat); }
body.tx-shop div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 20px;
	color: var(--tx-than); font-size: 14.5px; font-weight: 700; }
body.tx-shop div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--tx-nhan); }
body.tx-shop div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--tx-nhan); border-color: var(--tx-nhan); }
body.tx-shop div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
/* WooCommerce gắn thêm lớp `entry-content` cho khung thẻ Mô tả, mà theme mẹ
   khai `.entry-content { color: #2c2824 }`. Đoạn văn thì có luật riêng của ta
   đè được, nhưng `h2` dùng `color: inherit` nên thừa kế đúng màu lạ ấy. Đặt màu
   ở khung (0,2,1) để mọi thứ bên trong thừa kế đúng mực của mẫu. */
body.tx-shop .woocommerce-Tabs-panel { color: var(--tx-muc); }
body.tx-shop .woocommerce-Tabs-panel h2 { margin: 0 0 12px; font-size: 25px; }
body.tx-shop .woocommerce-Tabs-panel p { max-width: 760px; margin: 0; color: var(--tx-than); font-size: 16.5px; }

body.tx-shop div.product .related { margin-top: 64px; }
body.tx-shop div.product .related > h2 { margin: 0 0 26px; font-size: clamp(24px, 2.6vw, 34px); }
body.tx-shop div.product .related ul.products { width: 100%; }

/* =====================================================================
 * TRANG TĨNH, GIỎ HÀNG, THANH TOÁN, TÀI KHOẢN
 *
 * Ba trang này WooCommerce dựng bằng BLOCK, lấy màu từ `theme.json` chứ không
 * từ CSS của theme con — nút "Tiến hành thanh toán" mặc định ra xanh dương.
 * Phải khai lại từng lớp của khối.
 * ===================================================================== */
.tx-page__body { padding: 44px 0 var(--tx-pad); }
.tx-page__body > * { max-width: 100%; }

body.tx-shop .wc-block-components-button:not(.is-link),
body.tx-shop .wc-block-cart__submit-button,
body.tx-shop .wc-block-components-checkout-place-order-button {
	border-radius: var(--tx-r); background: var(--tx-nhan); color: #fff;
	font-family: var(--tx-sans); font-weight: 700; }
body.tx-shop .wc-block-components-button:not(.is-link):hover,
body.tx-shop .wc-block-cart__submit-button:hover,
body.tx-shop .wc-block-components-checkout-place-order-button:hover {
	background: var(--tx-nhan-dam); color: #fff; }
body.tx-shop .wc-block-components-totals-item__value,
body.tx-shop .wc-block-components-product-price { color: var(--tx-muc); font-weight: 800; }
body.tx-shop .wc-block-cart-items__row { border-color: var(--tx-vien); }
body.tx-shop .wc-block-components-product-name { color: var(--tx-muc); font-weight: 700; }
body.tx-shop .wc-block-components-product-name:hover { color: var(--tx-nhan); }
body.tx-shop .wc-block-components-text-input input,
body.tx-shop .wc-block-components-address-form input,
body.tx-shop .wc-block-components-quantity-selector { border-radius: var(--tx-r-sm); }
body.tx-shop .wc-block-components-panel__button { color: var(--tx-muc); }
body.tx-shop .wc-block-components-sidebar .wc-block-components-panel,
body.tx-shop .wp-block-woocommerce-cart-order-summary-block { background: var(--tx-mat); border-radius: var(--tx-r); }

/* =====================================================================
 * GIỎ HÀNG TRÊN MÀN HÌNH HẸP — chỗ tràn ngang khó thấy nhất của cả mẫu
 *
 * Bảng hàng trong giỏ chỉ tồn tại KHI GIỎ CÓ HÀNG. Giỏ rỗng thì trang không
 * có bảng nào, nên mọi phép đo tràn ngang chạy với giỏ rỗng đều báo "sạch" —
 * kể cả khi trang thật sự tràn 23px ở 360px. Mẫu này đã báo sạch nhiều lần
 * trước khi phiên `thoitrang-mau-05` chỉ ra rằng phải đo với giỏ CÓ HÀNG.
 *
 * Nguyên nhân: WooCommerce khai
 *   `.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row
 *    { grid-template-columns: 80px 132px }`
 * — chỉ HAI rãnh cho BA ô, nên ô thành tiền rơi vào một rãnh ngầm cỡ tự do.
 * Cộng hai khe 16px thì hàng rộng 367px trong khung 328px. Bộ chọn ấy là
 * (0,3,1); luật `body.tx-shop .wc-block-cart-items__row` chỉ (0,2,1) nên thua —
 * lại đúng bài học "bằng điểm là thua, thiếu điểm càng thua".
 *
 * Khai đủ BA rãnh, ô giữa `minmax(0, 1fr)` để co được. Chỉ áp dưới 600px; từ
 * đó trở lên bố cục gốc của WooCommerce vẫn vừa khung.
 * ===================================================================== */
@media (max-width: 600px) {
	body.tx-shop table.wc-block-cart-items { table-layout: fixed; width: 100%; }
	body.tx-shop .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 68px minmax(0, 1fr) auto; column-gap: 12px; }
	body.tx-shop .wc-block-cart-item__image { width: 68px; }
	body.tx-shop .wc-block-cart-item__image img { width: 100%; height: auto; }
	body.tx-shop .wc-block-cart-item__product,
	body.tx-shop .wc-block-cart-item__total { min-width: 0; }
}

/* Dải thông báo: WooCommerce cho liên kết "Xem giỏ hàng" `float: right`, ở màn
   hình hẹp nó đè lên dòng chữ. Dựng lại thành hàng flex biết xuống dòng. */
body.tx-shop .woocommerce-message, body.tx-shop .woocommerce-info {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
body.tx-shop .woocommerce-message a.button, body.tx-shop .woocommerce-info a.button {
	float: none; margin-left: auto; }

/* Nút của WooCommerce là thẻ `<a>`, nên luật gạch chân cho liên kết trong nội
   dung với tay được tới chúng. */
body.tx-shop a.button, body.tx-shop .wc-block-components-button { text-decoration: none; }

/* Dấu sao "bắt buộc" trên biểu mẫu tài khoản: WooCommerce dùng `var(--wc-red)`
   ra `#AA0000`, lệch khỏi bảng màu. Đổi về đỏ gạch của mẫu cho đồng bộ —
   `.woocommerce form .form-row .required` là (0,3,2) nên luật dưới đây (0,3,3)
   vừa đủ hơn một bậc. */
body.tx-shop form .form-row .required,
body.tx-shop .required { color: var(--tx-sale); }

/* Bảng giỏ hàng bản cổ điển (nếu quản trị viên đổi về shortcode). */
body.tx-shop table.shop_table { border-color: var(--tx-vien); }
body.tx-shop table.shop_table th { color: var(--tx-muc); }

/* Thông báo của WooCommerce ("… đã được thêm vào giỏ hàng", "Chưa có sản phẩm
   nào…"). WooCommerce khai `color: #515151` cho cả ba loại; không khai lại thì
   chữ thông báo lệch khỏi bảng màu — chỗ này chỉ lòi ra khi quét trang thanh
   toán lúc GIỎ CÓ HÀNG, vì giỏ rỗng thì trang chuyển hướng và không có thông
   báo nào để đo. */
body.tx-shop .woocommerce-message, body.tx-shop .woocommerce-info,
body.tx-shop .woocommerce-error {
	border-top-color: var(--tx-nhan); border-radius: var(--tx-r);
	background: var(--tx-mat); color: var(--tx-muc); }
body.tx-shop .woocommerce-error { border-top-color: var(--tx-sale); }
/* `:not(.button)` là bắt buộc. Luật này (0,2,2) BẰNG ĐIỂM với luật nút
   `body.tx-shop a.button` (0,2,2) và nằm sau, nên nếu không loại trừ thì nó
   sơn màu ngọc bích lên chữ của nút "Xem giỏ hàng" — mà nút ấy nền cũng ngọc
   bích. Tương phản đo được lúc chưa loại trừ: 1,00:1, chữ tàng hình. */
body.tx-shop .woocommerce-message a:not(.button),
body.tx-shop .woocommerce-info a:not(.button) { color: var(--tx-nhan); }

/* WooCommerce có HAI loại dải thông báo khác hẳn nhau, dễ sửa một mà tưởng xong:
   bản CỔ ĐIỂN `.woocommerce-message` ở trên (hiện khi khách vừa thêm vào giỏ
   rồi chuyển trang), và bản KHỐI `.wc-block-components-notice-banner` do giỏ
   hàng / thanh toán dựng bằng block sinh ra khi có lỗi — mã giảm giá sai, hết
   hàng, thiếu trường. Bản khối chỉ hiện lúc có lỗi thật nên không bắt được
   bằng cách mở trang bình thường; khai sẵn ở đây để lúc nó hiện thì đã đúng
   màu. Phiên mẫu mỹ phẩm 01 đo được chữ mặc định của nó là `#2F2F2F`. */
body.tx-shop .wc-block-components-notice-banner,
body.tx-shop .wc-block-components-notice-banner__content {
	color: var(--tx-muc); }
body.tx-shop .wc-block-components-notice-banner.is-error { border-color: var(--tx-sale); }
body.tx-shop .wc-block-components-notice-banner.is-success,
body.tx-shop .wc-block-components-notice-banner.is-info { border-color: var(--tx-nhan); }
body.tx-shop .wc-block-components-notice-banner a { color: var(--tx-nhan); }

/* =====================================================================
 * Ô NHẬN BẢN TIN + LỜI NHẮN
 * ===================================================================== */
.tx-sub { display: flex; gap: 9px; margin-top: 18px; }
.tx-sub__in { flex: 1 1 auto; min-width: 0; height: 48px; border: 1px solid rgba(255, 255, 255, .2);
	border-radius: var(--tx-r); padding: 0 16px; background: rgba(255, 255, 255, .06); color: #fff;
	font-size: 14.5px; transition: border-color .25s ease, background .25s ease; }
.tx-sub__in::placeholder { color: var(--tx-goi-y); }
.tx-sub__in:focus { outline: 0; border-color: #fff; background: rgba(255, 255, 255, .11); }
.tx-sub__go { height: 48px; flex: none; border: 0; border-radius: var(--tx-r); padding: 0 22px;
	background: var(--tx-nhan); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
	transition: background .2s ease, transform .2s ease; }
.tx-sub__go:hover { background: #fff; color: var(--tx-muc); transform: translateY(-1px); }
.tx-sub__note { margin: 12px 0 0; color: var(--tx-sang-mo); font-size: 12.5px; line-height: 1.7; }

/* Tự ẩn sau 8 giây: lời nhắn chỉ xác nhận một thao tác, để mãi thì che góc màn
   hình. Trình đọc màn hình đã đọc nó ngay lúc xuất hiện nhờ `role="status"`. */
.tx-toast { position: fixed; z-index: 80; right: 18px; bottom: 18px; max-width: 340px;
	border-radius: var(--tx-r); padding: 15px 17px; background: var(--tx-muc); color: var(--tx-toast);
	font-size: 14px; line-height: 1.65; box-shadow: 0 22px 46px -20px rgba(27, 36, 32, .8);
	animation: tx-toast-in .35s cubic-bezier(.22,.8,.3,1) both, tx-toast-out .45s ease 8s both; }
@keyframes tx-toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tx-toast-out { to { opacity: 0; visibility: hidden; } }

/* =====================================================================
 * TRANG CHỦ
 * ===================================================================== */
.tx-sec { padding: var(--tx-pad) 0; }
.tx-sec--kem { background: var(--tx-kem); }
.tx-sec--muc { background: var(--tx-muc); color: var(--tx-sang); }
.tx-sec--muc .tx-mao { color: var(--tx-vang); }
.tx-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.tx-sec__head h2 { font-size: clamp(28px, 3.3vw, 44px); }
.tx-sec__head p { margin: 12px 0 0; max-width: 540px; color: var(--tx-than); font-size: 16px; }

/* --- Hero: hai cột trên nền cát, ảnh bo vòm --- */
.tx-hero { padding: clamp(40px, 5vw, 76px) 0 clamp(44px, 5vw, 80px); }
.tx-hero__in { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.tx-hero h1 { font-size: clamp(36px, 4.6vw, 62px); }
.tx-hero__sub { max-width: 520px; margin: 22px 0 0; color: var(--tx-than); font-size: clamp(16px, 1.1vw, 18px); }
.tx-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tx-hero__note { margin: 24px 0 0; color: var(--tx-mo); font-size: 13.5px; }

.tx-hero__media { position: relative; }
.tx-hero__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--tx-vom); }
/* Thẻ nhỏ nổi trên góc ảnh. Dùng `position: absolute` trong khung ảnh nên nó
   không chen vào dòng chảy và không gây tràn ngang ở màn hình hẹp. */
.tx-hero__the { position: absolute; right: -14px; bottom: 28px; max-width: 232px;
	border: 1px solid var(--tx-vien); border-radius: var(--tx-r); padding: 16px 18px;
	background: var(--tx-mat); box-shadow: var(--tx-bong-2); }
.tx-hero__the strong { display: block; font-family: var(--tx-serif); font-size: 17px; font-weight: 600; }
.tx-hero__the span { display: block; margin-top: 4px; color: var(--tx-mo); font-size: 13.5px; line-height: 1.6; }

/* --- Dải cam kết --- */
.tx-camket-dai { background: var(--tx-muc); color: var(--tx-sang); }
.tx-camket-dai .tx-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
	background: rgba(255, 255, 255, .1); }
.tx-camket-dai__o { padding: 26px 22px; background: var(--tx-muc); text-align: center; }
.tx-camket-dai strong { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.tx-camket-dai span { display: block; margin-top: 5px; color: var(--tx-sang-4); font-size: 13.5px; }

/* --- Ba ô danh mục bo vòm --- */
.tx-dm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tx-dm__item { position: relative; display: block; overflow: hidden;
	border-radius: var(--tx-vom); background: var(--tx-kem); }
.tx-dm__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
	transition: transform .6s cubic-bezier(.22,.8,.3,1); }
.tx-dm__item:hover img { transform: scale(1.05); }
/* Lớp phủ dưới chữ trên ô danh mục.
   Phép quét tương phản BỎ QUA mọi phần tử có tổ tiên mang ảnh nền — mà
   `linear-gradient` cũng tính là ảnh nền — nên sáu dòng chữ trong ba ô này
   chưa từng được đo lần nào. Tính tay với giả định xấu nhất (shop thay bằng
   một tấm ảnh TRẮNG HOÀN TOÀN) thì bản phủ cũ chỉ cho tiêu đề 3,78:1 ở mép
   trên vùng chữ. Kéo độ đục lên và dời điểm giữa xuống 45% thì tiêu đề đạt
   6,27:1 và dòng mô tả 7,33:1, kể cả trên nền trắng tinh. Ảnh thật là ảnh
   chụp tông trung nên con số thực còn cao hơn; để vậy để shop thay ảnh nào
   cũng an toàn. Phiên `mypham-mau-01` chỉ ra chỗ mù này. */
.tx-dm__item::after { content: ''; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(14, 20, 17, .85) 0%, rgba(14, 20, 17, .45) 45%, transparent 100%); }
.tx-dm__label { position: absolute; z-index: 2; inset: auto 0 0; padding: 26px 24px; color: #fff; }
.tx-dm__label strong { display: block; font-family: var(--tx-serif); font-size: 24px; font-weight: 600; }
.tx-dm__label span { display: block; margin-top: 5px; color: var(--tx-tren-anh); font-size: 14px; }

/* --- Phối trọn bộ: nét riêng của mẫu này --- */
.tx-look { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tx-look__item { display: grid; grid-template-columns: .82fr 1.18fr; gap: 22px; align-items: center;
	border: 1px solid var(--tx-vien); border-radius: var(--tx-r); padding: 20px;
	background: var(--tx-mat); transition: border-color .25s ease, transform .25s cubic-bezier(.22,.8,.3,1); }
.tx-look__item:hover { border-color: var(--tx-nhan); transform: translateY(-3px); }
.tx-look__anh { overflow: hidden; border-radius: var(--tx-vom); background: var(--tx-kem); }
.tx-look__anh img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tx-look__ten { margin: 0 0 4px; font-size: 21px; }
.tx-look__mo { margin: 0 0 14px; color: var(--tx-mo); font-size: 14px; line-height: 1.6; }
.tx-look__ds { list-style: none; margin: 0 0 14px; padding: 0; }
.tx-look__ds li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	padding: 9px 0; border-top: 1px solid var(--tx-vien-2); font-size: 14.5px; }
.tx-look__ds li a { color: var(--tx-muc); }
.tx-look__ds li a:hover { color: var(--tx-nhan); }
.tx-look__ds b { flex: none; color: var(--tx-muc); font-weight: 800; }
.tx-look__tong { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	padding-top: 12px; border-top: 1.5px solid var(--tx-muc); }
.tx-look__tong span { color: var(--tx-mo); font-size: 13px; font-weight: 800;
	letter-spacing: .14em; text-transform: uppercase; }
.tx-look__tong b { color: var(--tx-nhan); font-size: 20px; font-weight: 800; }

/* --- Câu chuyện --- */
.tx-story { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.tx-story__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--tx-vom); }
.tx-story__copy h2 { font-size: clamp(27px, 3vw, 40px); }
.tx-story__copy p { margin: 18px 0 0; color: var(--tx-than); font-size: 16.5px; }
.tx-sec--muc .tx-story__copy p { color: var(--tx-sang); }
.tx-story__copy .tx-btn { margin-top: 28px; }

/* --- Khối biểu mẫu: CHỈ TRÊN MÁY TÍNH --- */
.tx-dangky { padding: var(--tx-pad) 0; background: var(--tx-muc); color: var(--tx-sang); }
.tx-dangky__in { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(28px, 5vw, 64px); }
.tx-dangky__art svg { width: 100%; height: auto; }
.tx-dangky__copy h2 { font-size: clamp(27px, 3vw, 40px); }
.tx-dangky__copy > p { max-width: 520px; margin: 16px 0 0; color: var(--tx-sang-3); font-size: 16.5px; }
.tx-dangky__form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tx-dangky__field { flex: 1 1 260px; min-width: 0; height: 52px; border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--tx-r); padding: 0 18px; background: rgba(255, 255, 255, .06); color: #fff;
	font-size: 15.5px; transition: border-color .25s ease, background .25s ease; }
.tx-dangky__field::placeholder { color: var(--tx-goi-y); }
.tx-dangky__field:focus { outline: 0; border-color: #fff; background: rgba(255, 255, 255, .11); }
.tx-dangky__form .tx-btn { flex: none; min-height: 52px; }
.tx-dangky__form .tx-btn:hover { background: #fff; border-color: #fff; color: var(--tx-muc) !important; }
.tx-dangky__note { margin: 14px 0 0; color: var(--tx-sang-mo); font-size: 13px; }

/* Khối gọi nhanh thay cho biểu mẫu trên điện thoại. */
.tx-goi { display: none; }
.tx-goi .tx-wrap { display: grid; gap: 16px; justify-items: start; }
.tx-goi p { margin: 0; color: var(--tx-sang-3); font-size: 16px; }
.tx-goi strong { color: #fff; }

/* =====================================================================
 * TRANG GIỚI THIỆU
 * ===================================================================== */
.tx-gt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tx-gt__item { padding: 28px 26px; border: 1px solid var(--tx-vien); border-radius: var(--tx-r);
	background: var(--tx-mat); transition: border-color .25s ease, transform .25s cubic-bezier(.22,.8,.3,1); }
.tx-gt__item:hover { border-color: var(--tx-nhan); transform: translateY(-3px); }
.tx-gt__item h3 { margin: 0 0 10px; font-size: 19px; }
.tx-gt__item p { margin: 0; color: var(--tx-than); font-size: 15.5px; }

.tx-gt__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
	padding: 40px; border: 1px solid var(--tx-vien); border-radius: var(--tx-r); background: var(--tx-mat); }
.tx-gt__cta h2 { font-size: clamp(24px, 2.4vw, 33px); }
.tx-gt__cta p { max-width: 540px; margin: 12px 0 0; color: var(--tx-than); font-size: 16px; }
.tx-gt__cta-btn { display: flex; flex-wrap: wrap; gap: 11px; }

/* =====================================================================
 * TRANG LIÊN HỆ
 * ===================================================================== */
.tx-lh { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 68px); align-items: start; }
.tx-lh h2 { font-size: clamp(25px, 2.6vw, 35px); }
.tx-lh__list { list-style: none; margin: 26px 0 0; padding: 0; }
.tx-lh__list li { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; border-top: 1px solid var(--tx-vien); }
.tx-lh__list li:last-child { border-bottom: 1px solid var(--tx-vien); }
.tx-lh__list svg { width: 21px; height: 21px; flex: none; margin-top: 4px; color: var(--tx-nhan); }
.tx-lh__list strong { display: block; margin-bottom: 2px; color: var(--tx-mo); font-size: 12px;
	font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tx-lh__list span { font-size: 16.5px; }
.tx-lh__anh { width: 100%; margin-top: 30px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tx-vom); }

.tx-form { margin-top: 24px; }
.tx-form__row { display: grid; gap: 7px; margin: 0 0 16px; }
.tx-form__row label { font-size: 14.5px; font-weight: 700; }
.tx-form input, .tx-form textarea { width: 100%; border: 1px solid var(--tx-vien); border-radius: var(--tx-r-sm);
	padding: 12px 15px; background: var(--tx-mat); color: var(--tx-muc); font-size: 16px;
	transition: border-color .22s ease; }
.tx-form input { min-height: 48px; }
.tx-form textarea { resize: vertical; min-height: 128px; }
.tx-form input:focus, .tx-form textarea:focus { outline: 0; border-color: var(--tx-nhan); }
.tx-form__note { margin: 14px 0 0; color: var(--tx-mo); font-size: 13.5px; line-height: 1.7; }

.tx-goi--lh { padding: 0 0 var(--tx-pad); background: transparent; color: var(--tx-muc); }
.tx-goi--lh p { color: var(--tx-than); }
.tx-goi--lh strong { color: var(--tx-muc); }

/* =====================================================================
 * MÀN HÌNH HẸP
 * ===================================================================== */
@media (max-width: 1180px) {
	.tx-nav ul { gap: 20px; }
	.tx-nav a { font-size: 13px; letter-spacing: .08em; }
	.tx-tools { margin-left: 18px; }
	body.tx-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
	.tx-hero__in { grid-template-columns: 1fr; }
	.tx-hero__media { order: -1; max-width: 480px; }
	.tx-hero__the { right: auto; left: calc(100% - 180px); }
	.tx-camket-dai .tx-wrap { grid-template-columns: repeat(2, 1fr); }
	.tx-dm { grid-template-columns: 1fr 1fr; }
	.tx-dm__item:first-child { grid-column: 1 / -1; }
	.tx-dm__item:first-child img { aspect-ratio: 16 / 9; }
	.tx-look { grid-template-columns: 1fr; }
	.tx-story { grid-template-columns: 1fr; }
	.tx-story__media img { aspect-ratio: 16 / 10; }
	.tx-gt { grid-template-columns: 1fr 1fr; }
	.tx-lh { grid-template-columns: 1fr; }
	.tx-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
	.tx-foot__news { grid-column: 1 / -1; }
}

/* Dưới 980px hai nửa menu ẩn đi, khối đổ xuống thế chỗ.

   Logo KHÔNG còn nằm giữa ở đây, và đó là chủ ý: ba nút công cụ chiếm khoảng
   150px, ở bề ngang 360–375px thì logo đặt giữa sẽ đè lên chúng. Thu nhỏ logo
   cũng không cứu được — phép tính không còn chỗ. Nên trên điện thoại logo về
   sát lề trái, công cụ về lề phải, đúng kiểu quen thuộc của đầu trang điện
   thoại; nét "logo giữa" là của bản máy tính. */
@media (max-width: 980px) {
	.tx-head__row { min-height: 72px; }
	.tx-burger { display: inline-flex; }
	.tx-nav--trai, .tx-nav--phai { display: none; }
	.tx-head__end { justify-content: flex-end; }
	.tx-tools { margin-left: 0; }

	.tx-menu { position: absolute; inset: 100% 0 auto; display: none;
		border-bottom: 1px solid var(--tx-vien); background: var(--tx-nen);
		box-shadow: 0 18px 32px -22px rgba(27, 36, 32, .6); }
	/* Chỉ chạy lúc mở. Đóng thì ẩn ngay, vì `display: none` cắt mọi chuyển cảnh. */
	.tx-menu.is-open { display: block; animation: tx-drop .28s cubic-bezier(.22,.8,.3,1) both; }
	.tx-menu ul { display: grid; gap: 0; list-style: none; margin: 0; padding: 6px 0 14px; }
	.tx-menu a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--tx-vien-2);
		font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
	.tx-menu a[aria-current="page"] { color: var(--tx-nhan); }

	body.tx-shop div.product { grid-template-columns: 1fr; gap: 26px; }
	.tx-page__head { padding: 40px 0 34px; }
}

@media (max-width: 960px) {
	/*
	 * Gõ email trên điện thoại là việc thừa khi bấm gọi nhanh hơn hẳn, nên dưới
	 * 960px biểu mẫu ẩn hẳn và khối gọi nhanh thế chỗ. `display: none` cũng gỡ
	 * luôn khỏi thứ tự tiêu điểm bàn phím, không cần thêm `inert`.
	 */
	.tx-dangky__art, .tx-dangky__form, .tx-dangky__note { display: none; }
	.tx-dangky__in { grid-template-columns: 1fr; }
	.tx-goi { display: block; margin-top: 26px; }
	.tx-lh__form { display: none; }
	.tx-goi--lh { display: block; }
}

@media (max-width: 760px) {
	.tx-brand__mark { width: 34px; height: 34px; }
	.tx-brand__name { font-size: 22px; }
	.tx-bar a { display: none; }
	.tx-bar__in { min-height: 34px; font-size: 12.5px; }
	.tx-sec__head { flex-direction: column; align-items: flex-start; gap: 14px; }
	.tx-hero__media { max-width: none; }
	.tx-hero__the { position: static; max-width: none; margin-top: 16px; box-shadow: var(--tx-bong); }
	.tx-camket-dai__o { padding: 20px 14px; }
	.tx-camket-dai strong { font-size: 14px; }
	.tx-camket-dai span { font-size: 12.5px; }
	.tx-dm { grid-template-columns: 1fr; }
	.tx-dm__item:first-child img { aspect-ratio: 3 / 4; }
	.tx-look__item { grid-template-columns: 1fr; }
	.tx-look__anh { max-width: 260px; }
	.tx-gt { grid-template-columns: 1fr; }
	.tx-gt__cta { padding: 28px 22px; }
	.tx-foot__grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; padding: 50px 0 38px; }
	.tx-foot__brand { grid-column: 1 / -1; }
	/* Cùng quy tắc với biểu mẫu ở trang chủ và trang liên hệ: trên điện thoại
	   không bắt khách gõ email. Giấu cả cột — để lại mỗi tiêu đề "Nhận bản tin"
	   mà không có ô nhập thì chẳng để làm gì. */
	.tx-foot__news { display: none; }
	.tx-foot__bot .tx-wrap { flex-direction: column; align-items: flex-start; gap: 7px; }
}

/* ĐIỆN THOẠI HẸP NHẤT (320px — iPhone SE đời đầu, Galaxy Fold lúc gập).
   Ở bề ngang này khung nội dung chỉ còn 288px, mà riêng ba nút công cụ đã
   chiếm 150px (3 × 42px + hai khe 12px) nên đầu trang lòi ra 22px — TRÊN MỌI
   TRANG, vì đầu trang có ở mọi trang. Thu nút còn 36px, khe còn 6px và thu tên
   thương hiệu là vừa khung với chỗ dư.
   Danh sách bề ngang lúc đầu của tệp này dừng ở 360px nên không hề thấy; phiên
   `mypham-mau-01` nhắc đưa 320px vào mới lộ. */
@media (max-width: 400px) {
	.tx-head__row { gap: 10px; }
	.tx-tools { gap: 6px; }
	.tx-stool, .tx-cart, .tx-burger { width: 36px; height: 36px; }
	.tx-stool svg, .tx-burger svg { width: 17px; height: 17px; }
	.tx-cart svg { width: 18px; height: 18px; }
	.tx-brand__name { font-size: 19px; letter-spacing: .04em; }
	.tx-brand__tag { font-size: 9.5px; letter-spacing: .18em; }
	.tx-brand__mark { width: 28px; height: 28px; }
}

@media (max-width: 640px) {
	body.tx-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
	body.tx-shop ul.products li.product .woocommerce-loop-product__title { font-size: 16px; }
	body.tx-shop ul.products li.product .price { font-size: 15px; }
	.tx-shop__bar { gap: 12px; }
	.tx-chip { min-height: 36px; padding: 0 13px; font-size: 13px; }
	.tx-look__anh { max-width: none; }
}

/* =====================================================================
 * TRANG 404 VÀ TRANG TÌM KIẾM CHUNG — dùng mẫu của THEME MẸ
 *
 * Theme này không có `404.php` và `search.php` riêng, nên hai trang ấy rơi về
 * mẫu của theme mẹ. Nhờ `body.tx-shop` và luật `.vs-scope` ở đầu tệp, chúng đã
 * có đúng đầu trang, chân trang, phông và cỡ chữ của mẫu — chỉ còn mấy thành
 * phần dùng lớp dựng sẵn của theme mẹ là lạc màu: nút ra XANH DƯƠNG `#1E5AA8`,
 * dòng mào đầu ra ĐỎ `#C4171B`.
 *
 * Khai lại mấy lớp ấy rẻ hơn hẳn việc viết hai mẫu trang mới, và cùng lúc sửa
 * được cả hai trang vì chúng dùng chung bộ lớp.
 * ===================================================================== */
body.tx-shop .vs-eyebrow { color: var(--tx-dong); }
body.tx-shop .vs-btn {
	border-radius: var(--tx-r); font-family: var(--tx-sans); font-weight: 700; }
body.tx-shop .vs-btn--primary {
	background: var(--tx-nhan); border-color: var(--tx-nhan); color: #fff; }
body.tx-shop .vs-btn--primary:hover {
	background: var(--tx-nhan-dam); border-color: var(--tx-nhan-dam); color: #fff; }
body.tx-shop .vs-btn--outline {
	border-color: var(--tx-muc); color: var(--tx-muc); background: transparent; }
body.tx-shop .vs-btn--outline:hover {
	background: var(--tx-muc); border-color: var(--tx-muc); color: #fff; }
/* Biểu mẫu tìm kiếm của theme mẹ xếp ô nhập và nút trên MỘT HÀNG KHÔNG XUỐNG
   DÒNG. Ở 360px, nút bị đẩy lòi ra 16px khỏi khung — đây là chỗ tràn ngang duy
   nhất còn lại của cả site, và chỉ lộ ra khi đo trang 404.
   `min-width: 0` là mấu chốt: phần tử con của flex mặc định `min-width: auto`
   nên ô nhập không chịu co lại dưới bề rộng nội dung của nó. */
body.tx-shop .search-form { display: flex; flex-wrap: wrap; gap: 10px; }
body.tx-shop .search-field {
	flex: 1 1 180px; min-width: 0;
	border: 1px solid var(--tx-vien); border-radius: var(--tx-r);
	background: var(--tx-mat); color: var(--tx-muc); }
body.tx-shop .search-field:focus { outline: 0; border-color: var(--tx-nhan); }
body.tx-shop .search-submit {
	flex: none;
	border: 1px solid var(--tx-nhan); border-radius: var(--tx-r);
	background: var(--tx-nhan); color: #fff; font-weight: 700; }
body.tx-shop .search-submit:hover {
	background: var(--tx-nhan-dam); border-color: var(--tx-nhan-dam); }

/* Ai xin bớt chuyển động thì không thấy gì chạy. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Khung bọc lời nhắn trên các trang không phải trang WooCommerce.
   Chỉ in ra khi hàng đợi thật sự có lời nhắn (`wc_notice_count()` trong mẫu
   trang) — không dùng `:empty`, vì `woocommerce_output_all_notices()` vẫn để
   lại khoảng trắng và `:empty` thì khoảng trắng cũng tính là có nội dung. */
.tx-notices { padding-top: 20px; }
