/*
Theme Name:   TSUN
Theme URI:    https://tsun.asia
Description:  Giao diện con của Kadence cho web TSUN – phong cách tối giản kiểu Jacquemus, một font Be Vietnam Pro.
Author:       TSUN
Template:     kadence
Version:      1.5.13
Requires PHP: 8.1
Text Domain:  tsun
License:      GPL-2.0-or-later
*/

/* ==========================================================
   1. Biến màu, chữ (CLAUDE.md mục 10)
   ========================================================== */
:root {
	--tsun-trang: #FFFFFF;
	--tsun-den: #000000;
	--tsun-xam-da: #E9E7E4;
	--tsun-chu-phu: #6F6A66;
	--tsun-tim-lan: #7A6688;
	--tsun-loi: #A33A3A;

	--tsun-font: 'Be Vietnam Pro', 'Helvetica Neue', Arial, sans-serif;
	--tsun-co-nho: 11px;
	--tsun-co-thuong: 12px;
	--tsun-co-vua: 14px;
	--tsun-co-lon: 20px;
	--tsun-le: 16px;      /* lề hai bên trên điện thoại */
	--tsun-khe-anh: 2px;  /* khe giữa các ảnh */
}

@media (min-width: 900px) {
	:root { --tsun-le: 24px; }
}

/* Ép font và màu của Kadence theo TSUN (Kadence dùng các biến --global-*) */
html:root {
	--global-body-font-family: var(--tsun-font);
	--global-heading-font-family: var(--tsun-font);
	--global-primary-nav-font-family: var(--tsun-font);
	--global-palette1: #000000;
	--global-palette2: #6F6A66;
	--global-palette3: #000000;
	--global-palette4: #000000;
	--global-palette5: #6F6A66;
	--global-palette6: #6F6A66;
	--global-palette7: #E9E7E4;
	--global-palette8: #FFFFFF;
	--global-palette9: #FFFFFF;
}

/* ==========================================================
   2. Chữ nền
   ========================================================== */
body {
	font-family: var(--tsun-font);
	font-size: var(--tsun-co-thuong);
	font-weight: 400;
	line-height: 1.5;
	color: var(--tsun-den);
	background: var(--tsun-trang);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tsun-font);
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--tsun-den);
}
h1 { font-size: var(--tsun-co-lon); }
h2 { font-size: 16px; }
h3, h4, h5, h6 { font-size: var(--tsun-co-vua); }

a { color: var(--tsun-den); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--tsun-chu-phu); }

/* Không bo góc, không bóng (CLAUDE.md mục 10) */
button, input, select, textarea,
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button {
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: var(--tsun-font);
}

/* Nút chính: nền đen, chữ trắng, cao tối thiểu 44px */
.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button {
	background: var(--tsun-den);
	color: var(--tsun-trang);
	min-height: 44px;
	font-size: 13px;
	font-weight: 500;
}

/* Viền khi dùng bàn phím */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 1px solid var(--tsun-den);
	outline-offset: 3px;
}

/* Tôn trọng chế độ giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================
   3. Khối kiểm tra font (shortcode [tsun_kiem_tra_font])
   ========================================================== */
.tsun-kiem-tra-font { padding: 24px var(--tsun-le); border: 1px solid var(--tsun-xam-da); }
.tsun-kiem-tra-font p { margin: 0 0 12px; }
.tsun-kiem-tra-font .w300 { font-weight: 300; font-size: 20px; }
.tsun-kiem-tra-font .w400 { font-weight: 400; font-size: 14px; }
.tsun-kiem-tra-font .w500 { font-weight: 500; font-size: 12px; }
.tsun-kiem-tra-font small { color: var(--tsun-chu-phu); }
