/* CERPKMA. Từ 05/11: nền sáng, một họ chữ Montserrat, ảnh áo đã xoá nền, ít chuyển động (anh: "giật", "font xấu", "tối quá").
   Mặt B (html[data-side="b"]) là mặt tối, chỉ khi khách bấm lộn. */

/* Montserrat lưu ngay trong theme (05/11): không chờ Google Fonts, bớt nhảy chữ khi tải lại. Giấy phép OFL. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/montserrat-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/montserrat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/montserrat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Hệ đường kẻ (21/11): xám cho vạch chia nhẹ, đen cho mép khối và ô điều khiển, đỏ cho nét đang hoạt động. */
:root {
	--bg: #FFFFFF; /* 20/11 anh: "tất cả page để background trắng" */
	--fg: #141412;
	--dim: #6B675F;
	--line: #D8D4CA;
	--rule-hair: 1px solid var(--line);
	--rule-ink: 1px solid var(--fg);
	--rule-state: 1px solid var(--accent);
	--accent: #C42F18;
	--on-accent: #FFFFFF;
	--mirror: 1;
	--font: 'Montserrat', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans', 'Noto Sans Thai', sans-serif;
	--logo: var(--font);
	--display: var(--font);
	--mono: var(--font);
	--pad: clamp(16px, 3vw, 44px);
	--ease: cubic-bezier(.2, .9, .1, 1);
}
html[data-side="b"] {
	--bg: #121211;
	--fg: #ECE8DD;
	--dim: #9A958A;
	--line: #34322E;
	--accent: #FF5A3C;
	--on-accent: #121211;
	--mirror: -1;
}

* { box-sizing: border-box; }
html { scrollbar-width: none; scroll-behavior: smooth; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
	margin: 0; min-height: 100vh; overflow-x: hidden;
	background: var(--bg); color: var(--fg);
	font-family: var(--mono); font-size: 14px; line-height: 1.55;
	transition: background-color .6s var(--ease), color .6s var(--ease);
	-webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--fg); color: var(--bg); z-index: 200; }
.trap { position: absolute; left: -9999px; }
.accent { color: var(--accent); }
html[data-side="a"] .only-b, html[data-side="b"] .only-a { display: none; }
.warp { overflow-x: clip; }
.wrap { max-width: 1600px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Hạt nhiễu toàn trang; bỏ lớp scanline lặp để không tạo đường trang trí. */
.grain {
	position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06; will-change: transform;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -7%); } 75% { transform: translate(-3%, -4%); } 100% { transform: translate(0, 0); } }

/* Con trỏ: vòng tròn đảo màu, phình ra trên vật thể bấm được */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
	.cursor {
		display: block; position: fixed; top: 0; left: 0; z-index: 150; width: 18px; height: 18px; margin: -9px 0 0 -9px;
		border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none;
		transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease);
	}
	.cursor.is-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

/* Đầu trang: ba ký hiệu, không chữ */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 75;
	display: flex; justify-content: space-between; align-items: center;
	padding: 12px var(--pad); mix-blend-mode: difference; color: #fff;
}
.wordmark { font-family: var(--logo); font-stretch: 62%; font-weight: 900; font-size: 26px; letter-spacing: -.01em; line-height: 1; }
.tools { display: flex; gap: 6px; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px;
	background: transparent; border: 1px solid currentColor; font-size: 16px; cursor: pointer;
	transition: transform .3s var(--ease);
}
.icon-btn:hover { transform: rotate(-8deg) scale(1.08); }
.flip span[aria-hidden] { display: inline-block; transition: transform .6s var(--ease); }
html[data-side="b"] .flip span[aria-hidden] { transform: rotateY(180deg); }

/* Menu phủ màn hình: ký hiệu lớn */
.overlay {
	position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: center; gap: 40px;
	padding: 80px var(--pad) 40px; background: var(--accent); color: #070707;
	clip-path: circle(0 at calc(100% - 40px) 34px); transition: clip-path .7s var(--ease);
}
.overlay[hidden] { display: flex; visibility: hidden; }
.overlay.is-open { clip-path: circle(150% at calc(100% - 40px) 34px); visibility: visible; }
.overlay-list a {
	display: block; font-family: var(--display); line-height: .9;
	font-size: clamp(90px, 20vw, 260px); transform: translateY(40px) skewY(6deg); opacity: 0;
	transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.overlay.is-open .overlay-list li:nth-child(1) a { transition-delay: .12s; }
.overlay.is-open .overlay-list li:nth-child(2) a { transition-delay: .2s; }
.overlay.is-open .overlay-list li:nth-child(3) a { transition-delay: .28s; }
.overlay.is-open .overlay-list li:nth-child(4) a { transition-delay: .36s; }
.overlay.is-open .overlay-list a { transform: none; opacity: 1; }
.overlay-list a:hover { font-style: italic; letter-spacing: .05em; }
.overlay-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid currentColor; font-size: 13px; }
.lang.is-on { background: #070707; color: var(--accent); }

/* Mở đầu: chữ khổng lồ giật hình trên nền video */
.boot { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 0 var(--pad); }
.boot-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
html[data-side="b"] .boot-video { filter: invert(1) contrast(1.1) grayscale(.6); opacity: .35; }
.boot-fabric { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2s ease; image-rendering: pixelated; }
.boot-fabric.is-on { opacity: .9; }
.boot-noise { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, transparent 45%, var(--bg) 100%); }
.mega {
	position: relative; margin: 0; font-family: var(--logo); font-stretch: 62%; font-weight: 900;
	font-size: clamp(110px, 27vw, 460px); line-height: .78; letter-spacing: -.03em; text-align: center;
	transform: scaleX(var(--mirror)); transition: transform .9s var(--ease);
	animation: boot-in 1.4s var(--ease) both;
}
@keyframes boot-in { 0% { opacity: 0; filter: blur(30px); letter-spacing: .4em; } 60% { opacity: 1; filter: blur(0); } 100% { letter-spacing: -.03em; } }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: var(--accent); mix-blend-mode: screen; animation: glitch-a 3.1s infinite steps(1); }
.glitch::after { color: #00E0FF; mix-blend-mode: screen; opacity: .6; animation: glitch-b 2.3s infinite steps(1); }
html[data-side="b"] .glitch::before, html[data-side="b"] .glitch::after { mix-blend-mode: multiply; }
@keyframes glitch-a {
	0%, 86%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
	88% { clip-path: inset(10% 0 62% 0); transform: translate(-8px, 2px); }
	91% { clip-path: inset(55% 0 20% 0); transform: translate(10px, -3px); }
	94% { clip-path: inset(30% 0 48% 0); transform: translate(-4px, 0); }
}
@keyframes glitch-b {
	0%, 80%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
	82% { clip-path: inset(70% 0 5% 0); transform: translate(12px, 0); }
	85% { clip-path: inset(5% 0 80% 0); transform: translate(-12px, 2px); }
}
.boot-code { position: relative; margin: 24px 0 0; text-align: center; font-size: 12px; letter-spacing: .5em; color: var(--accent); }
.scroll-cue {
	position: absolute; left: 50%; bottom: 28px; width: 56px; height: 56px; margin-left: -28px; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--fg); border-radius: 50%; font-size: 20px; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(10px) rotate(180deg); } }

/* Dải chữ chạy, nghiêng, lật thì chạy ngược */
.marquee { overflow: hidden; padding: 18px 0; transform: rotate(-4deg) scale(1.06); border-top: var(--rule-hair); border-bottom: var(--rule-hair); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: run 22s linear infinite; }
html[data-side="b"] .marquee-track { animation-direction: reverse; }
.marquee span { font-family: var(--display); font-size: clamp(56px, 9vw, 140px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--fg); }
.marquee span.accent { color: var(--accent); -webkit-text-stroke: 0; }
@keyframes run { to { transform: translateX(-50%); } }

/* Collection: bốn vật thể trôi lệch, chạm thì lật 3D */
.collection { position: relative; padding-top: clamp(80px, 12vw, 180px); padding-bottom: clamp(80px, 12vw, 180px); }
.tag { position: absolute; top: 20px; right: var(--pad); margin: 0; font-family: var(--display); font-size: clamp(120px, 22vw, 340px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none; transform: scaleX(var(--mirror)); transition: transform .9s var(--ease); }
.tiles { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { --r: 0deg; --d: 0s; position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; perspective: 1200px; cursor: pointer; animation: drift 9s ease-in-out var(--d) infinite; }
.tile:nth-child(1) { grid-column: 1 / span 4; --r: -7deg; --d: -1s; }
.tile:nth-child(2) { grid-column: 6 / span 3; margin-top: 30%; --r: 5deg; --d: -4s; }
.tile:nth-child(3) { grid-column: 10 / span 3; margin-top: -10%; --r: -3deg; --d: -2.5s; }
.tile:nth-child(4) { grid-column: 3 / span 4; margin-top: -8%; --r: 9deg; --d: -6s; }
@keyframes drift { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(calc(var(--r) * -0.6)) translateY(-18px); } }
.tile-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.tile[aria-pressed="true"] .tile-in { transform: rotateY(180deg); }
@media (hover: hover) { .tile:hover .tile-in { transform: rotateY(180deg); } }
.tile-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; backface-visibility: hidden; border: var(--rule-hair); background: var(--bg); text-align: left; transition: background-color .6s var(--ease); }
.tile-face.back { transform: rotateY(180deg); background: var(--accent); color: #070707; border-color: transparent; }
.tile-no { font-size: 12px; letter-spacing: .2em; }
.tile-name { font-family: var(--display); font-size: clamp(30px, 3.4vw, 54px); line-height: .9; text-transform: uppercase; }
.tile-price { font-size: 12px; line-height: 1.7; white-space: pre-line; }
.tile-go { margin-top: auto; padding-top: 10px; border-top: var(--rule-ink); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; animation: go-nudge 1.6s var(--ease) infinite; }
@keyframes go-nudge { 50% { transform: translateX(6px); } }
.tile-state { font-size: 10px; letter-spacing: .3em; border: var(--rule-ink); padding: 4px 8px; align-self: flex-start; }
.draw { width: 78%; align-self: center; margin: auto 0; transform: scaleX(var(--mirror)); transition: transform .9s var(--ease); }
.draw path:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.is-in .draw path:first-child { stroke-dashoffset: 0; }
.draw .stitch { stroke-dasharray: 3 4; opacity: 0; transition: opacity .6s .9s; }
.is-in .draw .stitch { opacity: 1; animation: stitch 4s linear infinite; }
@keyframes stitch { to { stroke-dashoffset: -70; } }

/* Vòng chữ xoay dẫn tới diễn đàn */
.orbit-row { display: flex; justify-content: flex-end; padding-bottom: 120px; }
.orbit { position: relative; width: clamp(160px, 22vw, 260px); aspect-ratio: 1; display: block; }
.orbit svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.orbit text { font-family: var(--mono); font-size: 13px; letter-spacing: 4px; fill: var(--fg); }
.orbit-core { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; color: var(--accent); transition: transform .5s var(--ease); }
.orbit:hover .orbit-core { transform: scale(1.4) rotate(90deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Khung chat: như có người đang nhắn */
.chat {
	visibility: visible;
	position: fixed; right: var(--pad); bottom: var(--pad); z-index: 80; width: min(380px, calc(100vw - 2 * var(--pad)));
	max-height: min(640px, calc(100vh - 100px)); display: flex; flex-direction: column;
	background: rgba(7, 7, 7, .96); color: #ECE8DD; border: 0;
	transition: transform .9s var(--ease), opacity .5s;
}
.js .chat:not(.is-open) { visibility: hidden; transform: translateY(calc(100% + 40px)) rotate(4deg); opacity: 0; transition: transform .9s var(--ease), opacity .5s, visibility 0s .9s; }
html[data-side="b"] .chat { background: rgba(231, 226, 213, .9); color: #0A0A09; }
.chat.is-open { transform: none; opacity: 1; visibility: visible; }
.chat.is-instant { transition: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: var(--rule-hair); font-size: 12px; letter-spacing: .2em; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #3BFF6E; box-shadow: 0 0 12px #3BFF6E; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.chat-who { flex: 1; }
.chat-min { width: 44px; height: 44px; background: none; border: 0; font-size: 18px; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 88%; padding: 9px 12px; border: var(--rule-hair); font-size: 13px; line-height: 1.5; transform-origin: left bottom; }
.js .msg { opacity: 0; transform: translateY(10px) scale(.96); transform-origin: left bottom; transition: opacity .35s, transform .45s var(--ease); }
.msg.big { font-family: var(--display); font-size: 20px; line-height: 1.1; }
.msg.is-shown, .chat.is-instant .msg { opacity: 1; transform: none; }
.js .msg[data-say]:not(.is-shown) { display: none; }
.msg.me { align-self: flex-end; background: var(--accent); color: #070707; border-color: transparent; transform-origin: right bottom; }
.msg.me.bad { background: transparent; color: var(--accent); border-color: var(--accent); }
.msg .caret { display: inline-block; width: .55em; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: pulse .7s steps(1) infinite; }
.form-msg { max-width: 100%; width: 100%; padding: 0; border: 0; }
.chat-input { display: flex; border: var(--rule-ink); }
.chat-input input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; background: transparent; border: 0; font-size: 14px; }
.chat-input button { width: 52px; background: var(--accent); color: #070707; border: 0; cursor: pointer; font-size: 18px; }
.chat-consent { display: flex; gap: 8px; margin-top: 8px; font-size: 11px; opacity: .75; }
.chat-consent a { text-decoration: underline; text-underline-offset: 2px; }
.typing { display: flex; gap: 4px; padding: 10px 12px; width: max-content; border: var(--rule-hair); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
.typing[hidden] { display: none; }
@keyframes dot { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.chips { display: flex; gap: 6px; padding: 10px 12px; border-top: var(--rule-hair); }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: var(--rule-ink); background: none; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: var(--accent); color: #070707; border-color: var(--accent); }
.chat-bubble {
	position: fixed; right: var(--pad); bottom: var(--pad); z-index: 79; width: 56px; height: 56px; border-radius: 50%;
	background: var(--accent); color: #070707; border: 0; font-size: 22px; cursor: pointer;
	transform: scale(0); transition: transform .5s var(--ease); animation: wobble 3s ease-in-out infinite;
}
.chat-bubble.is-shown { transform: scale(1); }
@keyframes wobble { 50% { border-radius: 42% 58% 55% 45%; } }

/* Lật trang: vòng tròn loang ra từ nút ⇄ (View Transitions khi trình duyệt hỗ trợ) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { clip-path: circle(0 at var(--fx, 50%) var(--fy, 0)); animation: wipe .9s var(--ease) forwards; }
@keyframes wipe { to { clip-path: circle(150% at var(--fx, 50%) var(--fy, 0)); } }

/* Trang thường, cửa hàng, chân trang */
.section { padding-top: 120px; padding-bottom: 80px; }
.display { margin: 0; font-family: var(--display); font-size: clamp(52px, 8vw, 128px); line-height: .86; text-transform: uppercase; }
.lead { font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); }
.note { color: var(--dim); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: var(--rule-ink); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.entry-title { font-family: var(--display); font-size: 32px; margin: 0 0 12px; }
.entry-content { max-width: 720px; font-size: 15px; line-height: 1.8; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.shop { padding-top: 110px; }
.shop .button, .shop button.button { background: var(--fg); color: var(--bg); border-radius: 0; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding: 28px var(--pad) 110px; border-top: var(--rule-hair); font-size: 11px; color: var(--dim); }
.site-footer a { display: inline-block; min-width: 44px; min-height: 44px; padding: 14px 0; box-sizing: border-box; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .legal { flex-basis: 100%; }
.wordmark.small { font-size: 22px; color: var(--fg); }

/* Kho (WooCommerce) theo bản vẽ "F · KHO": lưới vật thể như hồ sơ, trang món chia đôi, giỏ đóng. */
.kho { padding-top: 84px; }
.kho .draw path:first-child { animation: kho-draw 2.6s var(--ease) .2s both; }
.kho .draw .stitch { opacity: 1; animation: stitch 4s linear infinite; }
@keyframes kho-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.kho-head { position: relative; padding: 40px var(--pad) 36px; border-bottom: var(--rule-hair); overflow: hidden; }
.kho-kicker, .kho-code { margin: 0 0 14px; font-size: 12px; letter-spacing: .3em; color: var(--accent); }
.kho-mega { margin: 0; display: flex; flex-direction: column; font-family: var(--display); font-weight: 400; font-size: clamp(96px, 17vw, 260px); line-height: .82; text-transform: uppercase; }
.kho-locked { color: transparent; -webkit-text-stroke: 1px var(--fg); transform: scaleX(var(--mirror)); transform-origin: left; transition: transform .9s var(--ease); animation: kho-shake 6s steps(1) infinite; }
@keyframes kho-shake { 0%, 92%, 100% { translate: 0 0; } 93% { translate: 6px -2px; } 95% { translate: -4px 1px; } 97% { translate: 2px 0; } }
.kho-hint { position: absolute; right: var(--pad); bottom: 36px; max-width: 220px; margin: 0; text-align: right; font-size: 12px; color: var(--dim); }
.kho-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: var(--rule-hair); }
.kho-card { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 560px; height: 100%; padding: 22px; background: var(--bg); transition: background-color .5s var(--ease); }
.kho-card::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--accent); clip-path: inset(0 100% 100% 0); transition: clip-path .6s var(--ease); pointer-events: none; }
.kho-card:hover::after, .kho-card:focus-visible::after { clip-path: inset(0 0 0 0); }
.kho-card-top { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .3em; color: var(--dim); }
.kho-card-art { flex: 1; display: flex; align-items: center; justify-content: center; }
.kho-card-art .draw { width: 64%; }
.kho-card:hover .kho-card-art .draw { transform: scaleX(calc(var(--mirror) * -1)); }
.kho-card-name { font-family: var(--display); font-size: clamp(30px, 3.2vw, 46px); line-height: .9; text-transform: uppercase; }
.kho-card-price { white-space: pre-line; font-size: 12px; line-height: 1.7; color: var(--dim); }
.kho-photo { width: 100%; height: 100%; object-fit: cover; }
.kho-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: calc(100vh - 84px); border-top: var(--rule-hair); }
.kho-stage { position: relative; display: flex; align-items: center; justify-content: center; border-right: var(--rule-hair); background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--fg) 6%, transparent), transparent 70%); overflow: hidden; }
.kho-stage-art { width: auto; max-width: 80%; height: min(64vh, 560px); margin: 0; }
.kho-stage-note { position: absolute; left: var(--pad); bottom: 22px; margin: 0; font-size: 11px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.kho-info { display: flex; flex-direction: column; gap: 26px; padding: 44px var(--pad) 120px; }
.kho-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 7vw, 112px); line-height: .86; text-transform: uppercase; }
.kho-prices { list-style: none; margin: 0; padding: 18px 0 0; border-top: var(--rule-hair); display: grid; gap: 10px; font-size: 15px; }
.kho-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.kho-sizes button { width: 56px; height: 48px; background: transparent; border: var(--rule-hair); color: var(--dim); cursor: not-allowed; }
.kho-cta { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 0 22px; border: var(--rule-ink); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; transition: background-color .4s var(--ease), color .4s var(--ease); }
.kho-cta:hover, .kho-cta:focus-visible { background: var(--fg); color: var(--bg); }
.kho-fine { margin: 0; font-size: 12px; line-height: 1.8; color: var(--dim); }
.kho-desc { font-size: 14px; line-height: 1.8; }
.kho-back { align-self: flex-start; padding: 12px 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }

/* Trang món, giỏ, thanh toán, đã nhận đơn, trang chữ — bản vẽ I · J · K trên Claude Design.
   Ý: phiếu cắt và nhãn treo. Viền mảnh, không bo góc, đường may đỏ chạy; chữ trồi qua khe may. */

/* Chuyển trang: mặt mới loang ra như lộn áo (trình duyệt hỗ trợ View Transitions giữa các trang) */
@view-transition { navigation: auto; }

.split-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .04em; }
.split-word { display: inline-block; animation: split-rise .9s var(--ease) both; }
@keyframes split-rise { from { transform: translateY(105%) skewY(6deg); } to { transform: none; } }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.rv-in { opacity: 1; transform: none; }
.is-tick { animation: tick .55s var(--ease); }
@keyframes tick { 0% { transform: translateY(-40%); opacity: 0; filter: blur(4px); } 100% { transform: none; opacity: 1; filter: none; } }

/* ---- Trang món (I) ---- */
.kho-item { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.kho-stage { cursor: grab; touch-action: pan-y; user-select: none; }
.kho-stage:active { cursor: grabbing; }
.kho-stage-inner { display: flex; align-items: center; justify-content: center; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.kho-side { position: absolute; top: 24px; left: var(--pad); margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.kho-sidebtns { position: absolute; top: 18px; right: var(--pad); z-index: 2; }
.kho-sidebtn { min-height: 44px; padding: 0 14px; background: none; border: var(--rule-ink); color: var(--fg); font-size: 11px; letter-spacing: .3em; cursor: pointer; transition: background .3s, color .3s; }
.kho-sidebtn:hover { background: var(--fg); color: var(--bg); }
.kho-stamp { position: absolute; right: 7%; bottom: 9%; width: clamp(110px, 12vw, 160px); height: auto; animation: spin 16s linear infinite; pointer-events: none; }
.kho-stamp text { fill: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 4px; }
.kho-code { display: flex; justify-content: space-between; gap: 12px; }
.kho-code-brand { color: var(--dim); }
.kho-bigprice { margin: 0; font-family: var(--display); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.js .kho-buy .variations_form ~ * , .js .kho-item:has(.kho-chips) .kho-prices { display: none; }
.kho-buy table.variations.is-chipped { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kho-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: var(--rule-ink); }
.kho-chip { position: relative; min-height: 80px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; text-align: left; background: none; border: 0; border-left: var(--rule-hair); color: var(--fg); cursor: pointer; overflow: hidden; isolation: isolate; }
.kho-chip:first-child { border-left: 0; }
.kho-chip::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateX(-101%); transition: transform .5s var(--ease); }
.kho-chip[aria-checked="true"] { color: var(--bg); }
.kho-chip[aria-checked="true"]::before { transform: none; }
.kho-chip-name { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.kho-chip-price { font-size: 12px; opacity: .75; }
.kho-buy .single_variation_wrap .woocommerce-variation-price, .kho-buy .reset_variations { display: none !important; }
.kho-buy .woocommerce-variation-add-to-cart, .kho-buy form.cart:not(.variations_form) { display: grid; grid-template-columns: 150px 1fr; gap: 10px; margin-top: 14px; }
.kho-buy .quantity.is-stepper { display: grid; grid-template-columns: 44px 1fr 44px; border: var(--rule-ink); }
.kho-buy .quantity.is-stepper input.qty { width: 100%; min-height: 60px; border: 0; text-align: center; background: none; color: var(--fg); -moz-appearance: textfield; }
.kho-buy .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.kho-step { background: none; border: 0; color: var(--fg); font-size: 18px; cursor: pointer; }
.kho-step:hover { color: var(--accent); }
.kho-buy .single_add_to_cart_button, .wc-shop #place_order, .wc-shop .checkout-button {
	position: relative; overflow: hidden; isolation: isolate; min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 24px;
	background: var(--accent) !important; color: #070707 !important; border: 0; border-radius: 0; font: inherit; font-size: 15px; letter-spacing: .26em; text-transform: uppercase; cursor: pointer;
}
.kho-buy .single_add_to_cart_button::after, .wc-shop #place_order::after, .wc-shop .checkout-button::after { content: '→'; transition: transform .4s var(--ease); }
.kho-buy .single_add_to_cart_button::before, .wc-shop #place_order::before, .wc-shop .checkout-button::before {
	content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fg);
	clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path .6s var(--ease);
}
.kho-buy .single_add_to_cart_button:hover::before, .wc-shop #place_order:hover::before, .wc-shop .checkout-button:hover::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.kho-buy .single_add_to_cart_button:hover::after, .wc-shop #place_order:hover::after { transform: translateX(6px); }
.kho-buy .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.kho-preorder { margin: 0; padding: 14px 18px; border: var(--rule-hair); font-size: 12px; line-height: 1.8; color: var(--fg); }
.kho-preorder span { color: var(--accent); letter-spacing: .2em; }
.kho-spec { margin: 0; border-top: var(--rule-hair); font-size: 12px; }
.kho-spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: var(--rule-hair); }
.kho-spec dt { color: var(--dim); letter-spacing: .2em; text-transform: uppercase; }
.kho-spec dd { margin: 0; text-align: right; }
.woocommerce-notices-wrapper:not(:empty) { margin: 0 0 18px; }
.kho .woocommerce-message, .kho .woocommerce-error, .kho .woocommerce-info { list-style: none; margin: 0 0 16px; padding: 14px 0; border: 0; border-top: var(--rule-ink); border-bottom: var(--rule-hair); font-size: 13px; }
.kho .woocommerce-message .button { margin-left: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Trang thường: giỏ, thanh toán, tài khoản, đã nhận đơn (J · K) ---- */
.wc-shop .entry-content, .wc-shop .prose { max-width: none; }
.wc-shop .entry .display { font-size: clamp(72px, 12vw, 180px); line-height: .8; margin-bottom: 40px; }
.wc-shop .entry-content { font-size: 14px; line-height: 1.6; }
.wc-shop .woocommerce-message, .wc-shop .woocommerce-info, .wc-shop .woocommerce-error { list-style: none; margin: 0 0 22px; padding: 14px 0; border: 0; border-top: var(--rule-ink); border-bottom: var(--rule-hair); font-size: 13px; }
.wc-shop .woocommerce-info a, .wc-shop .woocommerce-message a { color: var(--accent); }
.wc-shop .kho-preorder { margin: 0 0 28px; }
.wc-shop input[type=text], .wc-shop input[type=email], .wc-shop input[type=tel], .wc-shop input[type=number], .wc-shop input[type=password], .wc-shop select, .wc-shop textarea {
	width: 100%; min-height: 52px; padding: 0 2px; background: transparent; color: var(--fg); border: 0; border-bottom: var(--rule-hair); border-radius: 0; font: inherit; font-size: 16px;
	transition: border-color .2s var(--ease);
}
.wc-shop select { background-color: var(--bg); }
.wc-shop textarea { min-height: 96px; padding: 12px 2px; }
.wc-shop input:focus, .wc-shop select:focus, .wc-shop textarea:focus { outline: none; border-bottom-color: var(--fg); }
.wc-shop .form-row { display: grid; gap: 4px; margin: 0 0 18px; float: none; width: 100%; padding: 0; }
.wc-shop .form-row label { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.wc-shop .form-row .required { color: var(--accent); text-decoration: none; }
.wc-shop .woocommerce-input-wrapper strong { font-weight: 400; font-size: 16px; }
.wc-shop .col2-set .col-1, .wc-shop .col2-set .col-2 { width: 100%; float: none; }
.wc-shop .woocommerce-billing-fields > h3, .wc-shop #order_review_heading, .wc-shop .woocommerce-additional-fields > h3 { display: none; }

/* Thanh toán: một nét liền theo dõi tiến độ; phần tóm tắt chỉ nhấn mép đầu và cuối. */
.wc-shop form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 56px; align-items: start; }
.wc-shop form.checkout > .col2-set { grid-column: 1; position: relative; padding-left: 48px; }
.wc-shop form.checkout > .col2-set::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 0; width: 1px; background: var(--line); }
.wc-shop form.checkout > .col2-set::after { content: ''; position: absolute; left: 13px; top: 8px; width: 1px; height: var(--sew, 0%); background: var(--accent); transition: height .8s var(--ease); }
.wc-shop form.checkout > #order_review { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 90px; border: 0; border-top: var(--rule-ink); border-bottom: var(--rule-ink); background: color-mix(in srgb, var(--fg) 3%, var(--bg)); padding: 0 22px 22px; transform-origin: 50% 0; animation: hang 6s ease-in-out infinite; }
.wc-shop form.checkout > #order_review::before { content: ''; display: block; height: 34px; margin: 0 -22px 18px; border-bottom: var(--rule-hair); }
@keyframes hang { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-.6deg); } }
.kho-step-h { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 14px; }
.kho-step-h:first-child { margin-top: 0; }
.kho-step-n { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--dim); transition: color .5s var(--ease); }
.kho-step-t { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.kho-step-h.is-done .kho-step-n { color: var(--accent); }
.wc-shop .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.wc-shop .woocommerce-billing-fields__field-wrapper > .kho-step-h, .wc-shop #billing_address_1_field { grid-column: 1 / -1; }
.wc-shop #billing_country_field { display: none !important; } /* chỉ giao trong Việt Nam */
.wc-shop .woocommerce-billing-fields__field-wrapper > #billing_ghn_province_field, .wc-shop .woocommerce-billing-fields__field-wrapper > #billing_ghn_district_field, .wc-shop .woocommerce-billing-fields__field-wrapper > #billing_ghn_ward_field { grid-column: auto; }
.wc-shop table.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wc-shop table.shop_table th, .wc-shop table.shop_table td { padding: 12px 0; border-bottom: var(--rule-hair); text-align: left; font-weight: 400; vertical-align: top; }
.wc-shop table.shop_table td:last-child, .wc-shop table.shop_table th:last-child { text-align: right; }
.wc-shop .woocommerce-checkout-review-order-table thead { display: none; }
.wc-shop .order-total th { color: var(--dim); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.wc-shop .order-total .amount { display: inline-block; font-family: var(--display); font-size: clamp(32px, 3.2vw, 48px); line-height: 1; }
.wc-shop .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
.wc-shop #payment ul.payment_methods { list-style: none; margin: 0 0 18px; padding: 0; display: grid; border-top: var(--rule-ink); border-bottom: var(--rule-ink); }
.wc-shop #payment li.wc_payment_method { position: relative; border-top: var(--rule-hair); }
.wc-shop #payment li.wc_payment_method:first-child { border-top: 0; }
.wc-shop #payment li.wc_payment_method > input { position: absolute; opacity: 0; }
.wc-shop #payment li.wc_payment_method > label { display: block; padding: 16px 14px; font-size: 13px; letter-spacing: .08em; cursor: pointer; transition: background .3s, color .3s; }
.wc-shop #payment li.wc_payment_method > input:checked + label { background: var(--fg); color: var(--bg); }
.wc-shop #payment li.wc_payment_method > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; }
.wc-shop #payment .payment_box { margin: 0; padding: 10px 14px 14px; font-size: 12px; color: var(--dim); }
.wc-shop #payment .payment_box p { margin: 0; }
.wc-shop .woocommerce-privacy-policy-text, .wc-shop .woocommerce-terms-and-conditions-wrapper { font-size: 11px; line-height: 1.6; color: var(--dim); margin-bottom: 14px; }
.wc-shop #place_order { width: 100%; }
.wc-shop .woocommerce-form-coupon-toggle, .wc-shop .checkout_coupon { display: none; }

/* Giỏ (K) */
.wc-shop .woocommerce-cart-form .product-thumbnail { width: 80px; }
.wc-shop .product-thumbnail img, .wc-shop .kho-thumb { width: 60px; height: 68px; object-fit: cover; }
.wc-shop .woocommerce-cart-form thead { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.wc-shop .woocommerce-cart-form .quantity input { max-width: 80px; }
.wc-shop .woocommerce-cart-form .product-remove a { font-size: 20px; color: var(--dim); }
.wc-shop .woocommerce-cart-form .product-remove a:hover { color: var(--accent); }
.wc-shop .cart-collaterals { max-width: 480px; margin: 34px 0 0 auto; }
.wc-shop .cart-collaterals h2 { font-family: var(--display); font-weight: 400; font-size: 40px; margin: 0 0 12px; }
.wc-shop .actions .button, .wc-shop .coupon { display: none; }
.wc-shop .return-to-shop .button { display: inline-flex; min-height: 56px; align-items: center; padding: 0 24px; border: var(--rule-ink); letter-spacing: .2em; text-transform: uppercase; }

/* Đã nhận đơn (K) */
.kho-received { margin: 0 0 30px; display: grid; gap: 12px; }
.kho-received-no { margin: 0; font-family: var(--display); font-size: clamp(80px, 12vw, 180px); line-height: .8; }
.wc-shop .woocommerce-order-overview { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: var(--rule-ink); border-bottom: var(--rule-ink); }
.wc-shop .woocommerce-order-overview li { padding: 14px; border-left: var(--rule-hair); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.wc-shop .woocommerce-order-overview li:first-child { border-left: 0; }
.wc-shop .woocommerce-order-overview li strong { display: block; margin-top: 6px; color: var(--fg); font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; }
.wc-shop .woocommerce-thankyou-order-received { display: none; }
.wc-shop .woocommerce-order-details__title, .wc-shop .woocommerce-column__title { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 30px 0 12px; }
.wc-shop .woocommerce-bacs-bank-details { display: none; }

/* Trang chữ: chính sách, đổi trả (K) */
.prose .entry-content { position: relative; max-width: 760px; padding-left: 64px; counter-reset: sec; font-size: 15px; line-height: 1.85; }
.prose .entry-content h2 { position: relative; margin: 48px 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1; text-transform: uppercase; }
.prose .entry-content h2::before { counter-increment: sec; content: '§' counter(sec); position: absolute; left: -64px; top: .1em; font-family: var(--mono); font-size: 14px; color: var(--accent); }
.prose .entry-content ul { padding-left: 18px; }
.prose .entry-content li { margin: 0 0 10px; }
.wc-shop .prose .entry-content, .wc-shop .entry-content { padding-left: 0; max-width: none; counter-reset: none; }
.wc-shop .entry-content::before { display: none; }

@media (max-width: 900px) {
	.wc-shop form.checkout { grid-template-columns: 1fr; gap: 34px; }
	.wc-shop .woocommerce-cart-form thead, .wc-shop .woocommerce-cart-form td.actions, .wc-shop .woocommerce-cart-form .product-price { display: none; }
	.wc-shop .woocommerce-cart-form table, .wc-shop .woocommerce-cart-form tbody { display: block; }
	.wc-shop .woocommerce-cart-form tr.cart_item { display: grid; grid-template-columns: 24px 64px 1fr; gap: 6px 12px; padding: 16px 0; border-bottom: var(--rule-hair); }
	.wc-shop .woocommerce-cart-form tr.cart_item td { display: block; padding: 0; border: 0; text-align: left !important; }
	.wc-shop .woocommerce-cart-form tr.cart_item td::before { display: none; }
	.wc-shop .woocommerce-cart-form .product-remove, .wc-shop .woocommerce-cart-form .product-thumbnail { grid-row: 1 / span 3; width: auto; }
	.wc-shop .woocommerce-cart-form .product-name, .wc-shop .woocommerce-cart-form .product-quantity, .wc-shop .woocommerce-cart-form .product-subtotal { grid-column: 3; }
	.wc-shop .cart-collaterals { max-width: none; }
	.wc-shop form.checkout > #order_review { grid-column: 1; grid-row: auto; position: static; animation: none; }
	.wc-shop form.checkout > .col2-set { padding-left: 36px; }
	.wc-shop .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
	.kho-buy .woocommerce-variation-add-to-cart, .kho-buy form.cart:not(.variations_form) { grid-template-columns: 120px 1fr; }
	.prose .entry-content { padding-left: 34px; }
	.prose .entry-content h2::before { left: -34px; }
	.prose .entry-content::before { left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.rv { opacity: 1; transform: none; }
	@view-transition { navigation: none; }
}

/* THE COMMONS (bản vẽ H): phòng nhiều người, ◇ nhân vật, ● khách thật */
.chat:has(.room-form) { width: min(440px, calc(100vw - 2 * var(--pad))); }
.chat-legend { font-size: 11px; letter-spacing: .1em; opacity: .6; }
.room-msg { max-width: 100%; display: grid; grid-template-columns: 1fr; gap: 2px; padding: 4px 0; border: 0; font-size: 13px; }
.room-nick { font-size: 11px; letter-spacing: .06em; opacity: .9; }
.room-msg.is-guest { padding: 8px 0; border-bottom: var(--rule-hair); }
.room-msg.is-me .room-nick { color: var(--accent); }
.room-to { opacity: .55; }
.room-typing { font-size: 11px; opacity: .7; }
.room-form { border-top: var(--rule-hair); }
.room-form[hidden] { display: none; }
.room-row { display: grid; grid-template-columns: 92px 1fr 52px; }
.room-nickbox { display: flex; flex-direction: column; justify-content: center; padding: 4px 10px; border-right: var(--rule-hair); font-size: 9px; letter-spacing: .14em; opacity: .85; }
.room-nickbox input { width: 100%; padding: 2px 0; background: none; border: 0; font-size: 12px; letter-spacing: 0; }
.room-textbox input { width: 100%; height: 50px; padding: 0 12px; background: none; border: 0; font-size: 14px; }
.room-row button { background: var(--fg); color: var(--bg); border: 0; font-size: 18px; cursor: pointer; }
.room-note { margin: 0; padding: 8px 12px; font-size: 10px; line-height: 1.5; opacity: .6; }

/* Mượt: phần đã cuộn khuất thì dừng mọi chuyển động; cuộn quán tính bằng Lenis (assets/vendor, MIT). */
.is-off, .is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.tiles { will-change: transform; }

@media (max-width: 1100px) { .kho-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
	.tile:nth-child(n) { grid-column: auto; margin-top: 0; }
	.tile:nth-child(even) { margin-top: 40%; }
	.tile-face { padding: 10px; }
	.tile-price { font-size: 10px; }
	.marquee { transform: rotate(-6deg) scale(1.1); }
	.chat { left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 55vh; }
	.kho-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kho-card { min-height: 360px; padding: 14px; gap: 10px; }
	.kho-hint { position: static; margin-top: 18px; text-align: left; }
	.kho-item { grid-template-columns: 1fr; }
	.kho-stage { min-height: 62vh; border-right: 0; border-bottom: var(--rule-hair); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.msg, .chat.is-open { opacity: 1; transform: none; }
	.draw path:first-child { stroke-dashoffset: 0; }
}

/* Tài khoản khách: menu đủ cao để bấm bằng ngón tay */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: var(--rule-ink); text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { border-color: var(--accent); }

/* Clear feedback and keyboard access, within the existing visual language. */
.kho-notices:empty{display:none}.kho-notices{margin-bottom:28px}
.kho-notices .woocommerce-message,.kho-notices .woocommerce-error,.kho-notices .woocommerce-info{padding:18px 20px;border:0;border-left:var(--rule-ink);font:13px/1.8 var(--mono);list-style:none}
.kho-notices a{display:inline-block;padding:6px 0;color:var(--accent)}
.chat-guide{position:relative;font-size:11px;letter-spacing:0}
.chat-guide>summary{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none}
.chat-guide>summary::-webkit-details-marker{display:none}
.chat-guide>p{position:absolute;right:-40px;top:100%;width:min(290px,calc(100vw - 60px));padding:16px;margin:4px 0 0;border:var(--rule-hair);background:#11120f;color:#ece8dd;font-size:12px;line-height:1.8;z-index:2}
.room-connection{margin:0;padding:12px 14px;border-bottom:var(--rule-hair);font-size:12px;line-height:1.8;color:inherit}
.room-connection[hidden]{display:none}
.chat[data-connection="offline"] .chat-dot{background:#ff9a73;box-shadow:none;animation:none}
.chat[data-connection="loading"] .chat-dot{background:#d6bc7a;box-shadow:none}
:where(.menu-btn,.overlay a,.chat-guide>summary,.chat-min,.chat-bubble):focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* Dấu sao bảy cánh (D-061): dấu nhận biết đi cùng chữ CERPKMA; tô bằng màu chữ nên đổi theo mặt A/B. */
.star-mark { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: url(../media/mark.svg) center / contain no-repeat; mask: url(../media/mark.svg) center / contain no-repeat; vertical-align: -.12em; }
.menu-btn .star-mark { width: 18px; height: 18px; vertical-align: middle; }
.footer-sign { display: inline-flex; align-items: center; gap: 10px; }
.footer-sign .star-mark { width: 14px; height: 14px; color: var(--accent); }

/* Trang món: một câu gợi dưới bảng thông số. */
.kho-line { margin: 0; font-family: var(--display); font-size: clamp(20px, 2vw, 28px); line-height: 1.2; }

/* Kho: hỏi đáp đặt trước dưới lưới, mỗi câu là một mũi may gập lại. */
.kho-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 56px; padding: 56px var(--pad) 72px; border-bottom: 0; }
.kho-faq-h { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.kho-faq-list { border-top: var(--rule-hair); }
.kho-faq details { border-bottom: var(--rule-hair); }
.kho-faq summary { display: flex; align-items: baseline; gap: 18px; min-height: 56px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 15px; line-height: 1.5; }
.kho-faq summary::-webkit-details-marker { display: none; }
.kho-faq summary::after { content: '+'; margin-left: auto; color: var(--accent); transition: transform .4s var(--ease); }
.kho-faq details[open] > summary::after { transform: rotate(45deg); }
.kho-faq summary:hover .kho-faq-q { color: var(--accent); }
.kho-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.kho-faq-no { font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.kho-faq details p { max-width: 62ch; margin: 0 0 22px; padding-left: 38px; font-size: 14px; line-height: 1.8; color: var(--dim); }
@media (max-width: 760px) {
	.kho-faq { grid-template-columns: 1fr; padding-top: 40px; }
	.kho-faq details p { padding-left: 0; }
}

/* Tài khoản, đăng nhập: nút viền rõ trên nền tối (trước đây là nút mặc định của trình duyệt, chữ gần như chìm). */
.woocommerce-account.wc-shop :is(.button, .woocommerce-button, button[type=submit]),
.wc-shop .woocommerce-form :is(.button, button[type=submit]),
.wc-shop .order-again .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px;
	background: transparent; color: var(--fg); border: var(--rule-ink); border-radius: 0;
	font: inherit; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
	transition: background-color .4s var(--ease), color .4s var(--ease);
}
.woocommerce-account.wc-shop :is(.button, .woocommerce-button, button[type=submit]):hover,
.wc-shop .woocommerce-form :is(.button, button[type=submit]):hover,
.wc-shop .order-again .button:hover { background: var(--fg); color: var(--bg); }
.woocommerce-account.wc-shop :is(.button, .woocommerce-button, button[type=submit]):focus-visible,
.wc-shop .woocommerce-form :is(.button, button[type=submit]):focus-visible,
.wc-shop .order-again .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wc-shop .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 10px; margin: 0 18px 12px 0; font-size: 12px; color: var(--dim); }

/* Ô mật khẩu: nút hiện/ẩn vẽ thành con mắt mảnh nằm trong ô (trước đây là một vạch trắng lạc). */
.wc-shop .password-input { position: relative; display: block; }
.wc-shop .password-input input { padding-right: 48px; }
.wc-shop .show-password-input { position: absolute; top: 50%; right: 0; width: 44px; height: 44px; margin: 0; padding: 0; transform: translateY(-50%); background: transparent; border: 0; border-radius: 0; color: var(--dim); cursor: pointer; }
.wc-shop .show-password-input::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 10px; border: 1px solid currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.wc-shop .show-password-input::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); }
.wc-shop .show-password-input.display-password::after { width: 24px; height: 1px; border-radius: 0; transform: translate(-50%, -50%) rotate(-30deg); }
.wc-shop .show-password-input:hover { color: var(--fg); }
.wc-shop .show-password-input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; color: var(--fg); }

/* 29/10: vòng THE COMMONS lên khoảng trống cạnh thẻ 04, bớt khoảng đen dài dưới bộ sưu tập */
@media (min-width: 761px) {
	.collection { padding-bottom: clamp(40px, 5vw, 80px); }
	.orbit-row { margin-top: calc(-1 * clamp(220px, 24vw, 380px)); padding-right: clamp(0px, 6vw, 120px); padding-bottom: 80px; position: relative; z-index: 1; }
}

/* 29/10: chỗ bấm trên điện thoại tối thiểu 44px; ghi chú trang chỉ có tiếng Việt */
.variations select { min-height: 44px; font-size: 16px; }
input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.chat-consent { align-items: center; }
.chat-consent a, .woocommerce-privacy-policy-text a { display: inline-block; padding: 12px 0; }
.vi-only { margin: 0 0 24px; font-size: 13px; color: var(--dim); }

/* B-044: báo khi có mẫu, ở trang món. */
.kho-notify { display: grid; gap: 10px; margin: 4px 0 8px; padding-top: 18px; border-top: var(--rule-hair); }
.kho-notify .kho-fine { color: var(--fg); opacity: .8; }
.kho-notify-msg { margin: 0; font-size: 12px; color: var(--accent); }
.kho-notify-msg.is-bad { color: var(--accent); text-decoration: underline; }

/* ===== Trang chủ 2: lưới món, tuyên ngôn lệch bậc và phòng chung. */
.home { position: relative; }
.home > section { position: relative; z-index: 1; }

.home .boot { align-items: center; gap: 26px; }
.home .boot-video { opacity: .38; filter: grayscale(.4) contrast(1.1); }
.boot-star { position: relative; width: clamp(72px, 9vw, 120px); height: auto; fill: none; stroke: var(--fg); stroke-width: 1.1; animation: star-spin 60s linear infinite; }
.boot-star path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: star-draw 2.4s var(--ease) .3s forwards; }
.boot-star .accent-stroke { stroke: var(--accent); animation-delay: .9s; }
@keyframes star-draw { to { stroke-dashoffset: 0; } }
@keyframes star-spin { to { transform: rotate(360deg); } }
.home .mega { font-size: clamp(88px, 21vw, 340px); }
.home .boot-code { margin: 0; color: var(--dim); letter-spacing: .45em; }

.home .collection { padding-top: clamp(90px, 12vw, 180px); padding-bottom: clamp(60px, 8vw, 120px); }
.col-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 28px; }
.col-no { font-family: var(--logo); font-stretch: 62%; font-weight: 900; font-size: clamp(72px, 10vw, 150px); line-height: .85; letter-spacing: -.02em; }
.col-meta { font-size: 12px; letter-spacing: .3em; color: var(--dim); }
.pieces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: var(--rule-hair); }
.piece { background: var(--bg); }
.piece-in { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; aspect-ratio: 3 / 4.4; padding: clamp(14px, 1.6vw, 24px); overflow: hidden; transition: background-color .5s var(--ease), color .5s var(--ease); }
.piece-in:hover, .piece-in:focus-visible { background: var(--fg); color: var(--bg); }
.piece-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: var(--dim); transition: color .5s var(--ease); }
.piece-in:hover .piece-top, .piece-in:focus-visible .piece-top { color: inherit; }
.piece .draw { width: 72%; transition: transform .8s var(--ease); }
.piece-in:hover .draw { transform: scaleX(calc(var(--mirror) * -1)) scale(1.04); }
.piece-foot { display: flex; flex-direction: column; gap: 6px; }
.piece-name { font-family: var(--display); font-size: clamp(22px, 2.1vw, 32px); line-height: 1; text-transform: uppercase; }
.piece-price { font-size: 12px; line-height: 1.6; color: var(--dim); transition: color .5s var(--ease); }
.piece-in:hover .piece-price { color: inherit; opacity: .75; }
.piece-go { position: absolute; right: clamp(14px, 1.6vw, 24px); bottom: clamp(14px, 1.6vw, 24px); font-size: 20px; color: var(--accent); transform: translateX(-12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.piece-in:hover .piece-go, .piece-in:focus-visible .piece-go { transform: none; opacity: 1; }
.col-fine { margin: 16px 0 0; font-size: 11px; letter-spacing: .2em; color: var(--dim); }

.creed { padding-top: clamp(60px, 10vw, 160px); padding-bottom: clamp(60px, 10vw, 160px); display: flex; flex-direction: column; gap: .1em; }
.creed-line { margin: 0 0 0 calc(var(--k) * clamp(0px, 9vw, 180px)); font-family: var(--logo); font-stretch: 62%; font-weight: 900; font-size: clamp(40px, 6.4vw, 104px); line-height: 1; letter-spacing: -.015em; }
.creed-to { color: var(--dim); }
.creed-line > span { white-space: nowrap; }
@media (max-width: 520px) { .creed-line > span { white-space: normal; } }

.commons { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: clamp(80px, 10vw, 160px); }
.commons-tag { margin: 0; font-size: 12px; letter-spacing: .3em; color: var(--dim); }
.commons-go { display: inline-flex; align-items: center; gap: 18px; min-height: 60px; padding: 0 28px; background: var(--accent); color: #070707; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; transition: gap .4s var(--ease); }
.commons-go:hover, .commons-go:focus-visible { gap: 28px; }

/* Hiện dần khi cuộn tới: chỉ khi có JS và không giảm chuyển động. */
.js-rv .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, var(--k, 0)) * 90ms); }
.js-rv .rv.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
	.pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.creed-line { margin-left: calc(var(--k) * 6vw); }
}
@media (max-width: 520px) {
	.piece-in { aspect-ratio: 3 / 4.6; }
	.piece-name { font-size: 20px; }
	.commons-go { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
	.boot-star { animation: none; }
	.boot-star path { animation: none; stroke-dashoffset: 0; }
}

/* ===== Trang chủ 3 (05/11, hướng C "Lộn trái sao", Claude + Codex): lưới kim phản ứng con trỏ ở mở đầu,
   giá treo áo cố định khi cuộn, kéo vệt cắt để lộn áo ra mặt trong. Không JS thì là lưới 4 món bình thường. */
.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.home .boot-video { opacity: .22; }

.rack { position: relative; }
.rack-stage { position: relative; padding: clamp(80px, 10vw, 140px) 0 60px; }
.rack-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 28px; }
.rack-rail { display: none; }
/* Chỉ kẻ giữa các món; mỗi ranh giới do một cạnh vẽ để không tạo viền đôi. */
.rack-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 1600px; margin: 0 auto; padding: 0 var(--pad); }
.hang { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 0; border-top: var(--rule-hair); border-left: var(--rule-hair); }
.hang:nth-child(-n + 4) { border-top: 0; }
.hang:nth-child(4n + 1) { border-left: 0; }
.hang-swing { color: var(--fg); }
.hang-hook { display: block; width: 40%; margin: 0 auto -2px; color: var(--dim); }
.hang-body { position: relative; touch-action: pan-y; }
.hang-out, .hang-in { display: block; width: 100%; height: auto; }
.hang-in { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--cut, 100%)); }
.hang-out path:first-child { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hang-out .stitch { stroke: var(--accent); stroke-dasharray: 3 4; }
.hang-cut { position: absolute; top: -4%; bottom: -4%; left: var(--cut, 100%); width: 0; border-left: var(--rule-state); opacity: 0; pointer-events: none; }
.hang-cut::after { content: '⇄'; position: absolute; top: 50%; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--accent); color: #070707; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.hang-info { display: flex; flex-direction: column; gap: 6px; }
.hang-code { font-size: 11px; letter-spacing: .25em; color: var(--dim); }
.hang-name { font-family: var(--logo); font-stretch: 62%; font-weight: 900; font-size: clamp(26px, 2.4vw, 40px); line-height: .95; text-transform: uppercase; }
.hang-name:hover, .hang-name:focus-visible { color: var(--accent); }
.hang-price { font-size: 12px; line-height: 1.6; color: var(--dim); }
.rack-ui { display: none; }
.rack .col-fine { margin-top: 16px; }

/* Có JS: sân khấu cố định, giá treo chạy ngang theo cuộn. */
.rack-on.rack { height: calc(var(--n) * 55vh + 100vh); }
.rack-on .rack-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.rack-on .rack-head { position: absolute; top: clamp(70px, 9vh, 110px); left: 0; right: 0; margin: 0; z-index: 3; pointer-events: none; }
.rack-on .rack-rail { display: block; position: absolute; top: 30vh; left: 0; right: 0; border-top: var(--rule-hair); opacity: .8; }
.rack-on .rack-track { display: block; position: absolute; inset: 0; padding: 0; max-width: none; background: none; }
.rack-on .hang { position: absolute; inset: 0; padding: 0; border: 0; pointer-events: none; }
.rack-on .hang-swing { position: absolute; top: 30vh; left: 50%; width: min(30vw, 44vh); margin-left: calc(min(30vw, 44vh) / -2); transform-origin: 50% 0; transform: translateX(var(--x, 0px)) scale(var(--s, 1)) rotate(var(--sw, 0deg)); opacity: var(--o, 1); will-change: transform, opacity; margin-top: -3px; }
.rack-on .hang-hook { width: 34%; }
.rack-on .hang.is-active .hang-swing { pointer-events: auto; cursor: pointer; }
.rack-on .hang.is-active[data-flip="1"] .hang-swing { cursor: ew-resize; }
.rack-flip[hidden] { display: none; }
.rack-on .hang.is-near .hang-swing { pointer-events: auto; cursor: pointer; }
.rack-on .hang.is-active .hang-cut { opacity: 1; }
.rack-on .hang-info { position: absolute; left: var(--pad); bottom: clamp(96px, 13vh, 130px); max-width: min(560px, 80vw); opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.rack-on .hang.is-active .hang-info { opacity: 1; transform: none; pointer-events: auto; }
.rack-on .hang-name { font-size: clamp(40px, 6vw, 96px); }
.rack-on .rack-ui { display: flex; position: absolute; left: 0; right: 0; bottom: 28px; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; z-index: 3; }
.rack-on .col-fine { position: absolute; right: var(--pad); top: clamp(80px, 10vh, 120px); margin: 0; }
.rack-on .rack-ui { padding-right: calc(var(--pad) + 72px); }
.rack-count { margin: 0; font-size: 12px; letter-spacing: .3em; color: var(--dim); }
.rack-now { color: var(--fg); }
.rack-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.rack-btns button, .rack-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 52px; height: 52px; padding: 0 16px; border: var(--rule-ink); background: var(--bg); color: var(--fg); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.rack-btns button:hover, .rack-btns button:focus-visible { border-color: var(--fg); }
.rack-flip[aria-pressed="true"] { background: var(--accent); color: #070707; border-color: var(--accent); }
.rack-go { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rack-go:hover, .rack-go:focus-visible { background: var(--accent); border-color: var(--accent); color: #070707; }
.rack-on .hang.is-glitch .hang-body { animation: hang-glitch .32s steps(2) 1; }
@keyframes hang-glitch { 0% { clip-path: inset(10% 0 60% 0); transform: translateX(-6px); } 50% { clip-path: inset(55% 0 15% 0); transform: translateX(8px); } 100% { clip-path: none; transform: none; } }

@media (max-width: 900px) {
	.rack-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hang:nth-child(n + 3) { border-top: var(--rule-hair); }
	.hang:nth-child(2n + 1) { border-left: 0; }
	.rack-on .hang-swing { width: 58vw; margin-left: -29vw; top: 27vh; }
	.rack-on .rack-rail { top: 27vh; }
	.rack-on .col-fine { display: none; }
}
@media (max-width: 520px) {
	.rack-on .hang-swing { width: 64vw; margin-left: -32vw; }
	.rack-on .hang-info { bottom: 96px; padding-right: var(--pad); }
	.rack-on .hang-price { font-size: 11px; }
	.rack-on .rack-ui { bottom: 20px; padding-right: calc(var(--pad) + 64px); justify-content: flex-start; }
	.rack-on .hang-name { font-size: 40px; }
	.rack-btns button, .rack-go { height: 48px; min-width: 48px; padding: 0 12px; }
	.rack-flip span { display: none; }
	.rack-count { display: none; }
	.rack-on .rack-ui { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
	.rack-on .hang-info { transition: none; }
	.rack-on .hang.is-glitch .hang-body { animation: none; }
}

/* Phản biện 05/11 (Codex, ChatGPT, Claude): giá đọc rõ, nút không đè giá, chấm chat không đè nút. */
.rack-on .hang-price { font-size: 15px; color: var(--fg); opacity: .85; }
.commons { padding-right: calc(var(--pad) + 72px); }
@media (max-width: 520px) {
	.rack-on .hang-price { font-size: 14px; }
	.rack-on .hang-info { bottom: 88px; }
	.commons { padding-right: var(--pad); padding-bottom: 120px; }
}

/* Ảnh tạm tạo bằng AI (05/11) trên giá treo, Kho, trang món. Ảnh nền đen sẵn có thanh treo riêng. */
.hang-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.hang:has(.hang-photo) .hang-hook { display: none; }
.rack-on .hang:has(.hang-photo) .hang-swing { margin-top: -6vh; }
.rack-on .hang-swing:has(.hang-photo) { width: min(34vw, 52vh); margin-left: calc(min(34vw, 52vh) / -2); }
.hang-photo + .hang-in, .hang-body:has(.hang-photo) .hang-in { inset: 0; width: 100%; height: 100%; }
/* SIDE B: không đảo màu ảnh (đảo thành áo trắng là nói sai màu); ảnh giữ nguyên, khung tối như một tấm ảnh in trên giấy sáng. */
html[data-side="b"] .hang-photo, html[data-side="b"] .kho-ai { filter: none; -webkit-mask-image: none; mask-image: none; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.kho-ai { display: block; height: min(70vh, 640px); width: auto; max-width: 100%; object-fit: contain; }
.kho-grid .kho-ai, .kho-card .kho-ai { height: auto; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rack .col-fine { color: var(--fg); opacity: .7; }
@media (max-width: 900px) { .rack-on .hang-swing:has(.hang-photo) { width: 62vw; margin-left: -31vw; } }

/* Mép ảnh tan vào nền; mặt trong tracksuit là ảnh đổi tông, phủ sọc đỏ. */
.hang-photo, .kho-ai { -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 58% 54% at 50% 46%, #000 62%, transparent 100%); }
.hang-in-photo { display: block; position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.hang-in-photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(1.35) contrast(1.15); -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 46%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 58% 54% at 50% 46%, #000 62%, transparent 100%); }

/* Trang món ở máy tính: ảnh dính phía trên khi cột thông tin dài. */
@media (min-width: 901px) {
	.kho-stage:has(.kho-ai) { align-items: flex-start; }
	.kho-stage:has(.kho-ai) .kho-stage-inner { position: sticky; top: 100px; }
	.kho-stage .kho-ai { height: min(76vh, 700px); }
}

/* Cỡ thường mặc khi giữ chỗ. */
.kho-size { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.kho-size legend { padding: 0; margin-bottom: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.kho-size legend span { color: var(--dim); text-transform: none; letter-spacing: .04em; }
.kho-size-row { display: flex; flex-wrap: wrap; gap: 6px; }
.kho-size label { position: relative; cursor: pointer; }
.kho-size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kho-size label span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 48px; padding: 0 12px; border: var(--rule-ink); font-size: 13px; letter-spacing: .1em; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.kho-size label:hover span { border-color: var(--fg); }
.kho-size input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.kho-size input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.kho-buy form.cart .kho-size { grid-column: 1 / -1; }

/* Đồng bộ Kho và trang món với trang chủ "Lộn trái sao" (05/11): áo treo trên sợi chỉ đỏ, rê thì đung đưa,
   tên món cùng chữ Archivo hẹp như giá treo. */
.kho-card-art:has(.kho-ai) { position: relative; border: 0; align-items: flex-start; overflow: visible; }
.kho-card-art:has(.kho-ai)::before { content: ''; position: absolute; left: -22px; right: -22px; top: 9%; border-top: var(--rule-hair); opacity: .75; pointer-events: none; z-index: 1; }
.kho-card .kho-ai { transform-origin: 50% 8%; transition: transform .9s var(--ease); }
.kho-card:hover .kho-ai, .kho-card:focus-visible .kho-ai { transform: rotate(-2.2deg) scale(1.03); animation: kho-swing 2.6s var(--ease) .9s infinite alternate; }
@keyframes kho-swing { from { transform: rotate(-2.2deg) scale(1.03); } to { transform: rotate(1.6deg) scale(1.03); } }
.kho-card-name, .kho-title { font-family: var(--logo); font-stretch: 62%; font-weight: 900; letter-spacing: -.01em; }
.kho-stage-inner:has(.kho-ai) { position: relative; }
.kho-stage-inner:has(.kho-ai)::before { content: ''; position: absolute; left: -12vw; right: -12vw; top: 9%; border-top: var(--rule-hair); opacity: .7; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .kho-card:hover .kho-ai { animation: none; transform: none; } }

/* Kính soi mặt trong tracksuit (chuột). Điện thoại vẫn kéo vệt cắt hoặc bấm Lộn trái. */
.hang-body.is-lens .hang-in { clip-path: circle(clamp(56px, 7vw, 96px) at var(--lx, 50%) var(--ly, 50%)) !important; }
.hang-body.is-lens .hang-cut { opacity: 0 !important; }
.hang-body.is-lens::after { content: ''; position: absolute; left: var(--lx, 50%); top: var(--ly, 50%); width: calc(2 * clamp(56px, 7vw, 96px)); aspect-ratio: 1; transform: translate(-50%, -50%); border: var(--rule-state); border-radius: 50%; pointer-events: none; }

/* Nói thật cạnh nút giữ chỗ và trên mặt trong (góp ý phiên Thư viện 05/11). */
.kho-reserve-line { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--fg); opacity: .8; }
.hang-reserve { font-size: 11px; letter-spacing: .08em; color: var(--dim); }
.hang-sketch { position: absolute; right: 6%; bottom: 8%; padding: 4px 8px; border: var(--rule-ink); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); background: var(--bg); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.hang-body.is-inside .hang-sketch, .hang-body.is-lens .hang-sketch { opacity: 1; }
.hang:not([data-flip="1"]) .hang-sketch { display: none; }

/* ===== Giao diện sáng (05/11, anh: "cái hiện tại thì ổn nhưng giật với font chữ xấu điên với tối quá. dùng font kiểu
   monsterrat"). Giữ bố cục giá treo; một họ chữ; bỏ lớp nhiễu, con trỏ riêng, video, chuyển động lặp vô hạn. */
body { font-family: var(--font); font-size: 15px; line-height: 1.6; font-weight: 400; }
.site-header { mix-blend-mode: normal; color: var(--fg); background: linear-gradient(var(--bg) 40%, transparent); }
.wordmark { font-family: var(--font); font-stretch: normal; font-weight: 800; font-size: 18px; letter-spacing: .14em; }
.wordmark.small { font-size: 14px; }
.icon-btn { border-color: var(--line); }
.icon-btn:hover { transform: none; border-color: var(--fg); }
.lang.is-on { background: var(--fg); color: var(--bg); }
.overlay { color: var(--on-accent); }
.overlay-list a { font-weight: 800; font-size: clamp(64px, 14vw, 180px); }
.overlay-list a:hover { font-style: normal; letter-spacing: 0; opacity: .7; }

/* Mở đầu: nền sáng, sao vẽ một lần, chữ hiện nhẹ. */
.home .boot { min-height: 92vh; min-height: 92svh; }
.mega, .home .mega { font-family: var(--font); font-stretch: normal; font-weight: 800; font-size: clamp(56px, 14vw, 240px); line-height: .9; letter-spacing: -.02em; animation: fade-in 1s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.glitch::before, .glitch::after { display: none; }
.boot-star { animation: none; stroke: var(--fg); }
.boot-code, .home .boot-code { font-size: 12px; font-weight: 600; letter-spacing: .24em; color: var(--dim); }
.scroll-cue { animation: none; border-color: var(--line); }
.scroll-cue:hover { border-color: var(--fg); }

/* Chữ: đậm vừa, không hẹp, không chữ hoa giãn quá .2em. */
.col-no { font-family: var(--font); font-stretch: normal; font-weight: 800; font-size: clamp(56px, 7vw, 110px); letter-spacing: -.03em; }
.col-meta, .rack-count, .commons-tag, .col-fine, .rack .col-fine, .hang-code { font-weight: 600; letter-spacing: .14em; }
.hang-name, .rack-on .hang-name { font-family: var(--font); font-stretch: normal; font-weight: 800; letter-spacing: -.02em; line-height: 1; text-transform: none; }
.rack-on .hang-name { font-size: clamp(34px, 4.4vw, 68px); }
.hang-reserve { font-size: 12px; letter-spacing: .02em; }
.creed-line { font-family: var(--font); font-stretch: normal; font-weight: 700; font-size: clamp(28px, 4.4vw, 68px); line-height: 1.1; letter-spacing: -.025em; }
.commons-go { color: var(--on-accent); font-weight: 600; letter-spacing: .12em; }
.rack-btns button, .rack-go { font-weight: 600; letter-spacing: .1em; }
.rack-flip[aria-pressed="true"], .rack-go:hover, .rack-go:focus-visible { color: var(--on-accent); }
.hang-cut::after { color: var(--on-accent); }
.kho-card-name, .kho-title, .kho-mega, .tile-name, .piece-name, .display, .kho-bigprice, .kho-received-no, .kho-step-n, .entry-title, .prose .entry-content h2, .kho-line { font-family: var(--font); font-stretch: normal; font-weight: 800; letter-spacing: -.02em; }
.kho-mega { font-size: clamp(64px, 11vw, 180px); line-height: .88; }
.kho-title { font-size: clamp(40px, 5vw, 80px); line-height: .95; }
.kho-card-name { font-size: clamp(24px, 2.4vw, 36px); }
.kho-line { font-weight: 600; letter-spacing: -.01em; }
.shop .button, .shop button.button { font-family: var(--font); font-weight: 600; letter-spacing: .1em; }
.kho-size label span { font-weight: 600; }

/* Ảnh đã xoá nền: không mặt nạ, áo treo thẳng lên sợi chỉ đỏ của giá. */
.hang-photo, .kho-ai, .hang-in-photo img { -webkit-mask-image: none; mask-image: none; }
html[data-side="b"] .hang-photo, html[data-side="b"] .kho-ai { box-shadow: none; }
.hang-in-photo img { filter: grayscale(1) brightness(1.6) contrast(.9); }
.rack-on .hang.is-glitch .hang-body { animation: none; }

@media (prefers-reduced-motion: reduce) { .mega, .home .mega { animation: none; } }
/* Ảnh đã cắt sát móc: móc treo đúng lên sợi chỉ đỏ ở giá, Kho, trang món. */
.rack-on .hang:has(.hang-photo) .hang-swing { margin-top: -1px; }
.kho-card-art:has(.kho-ai)::before, .kho-stage-inner:has(.kho-ai)::before { top: 1px; }
.kho-card .kho-ai { transform-origin: 50% 0; }
.site-footer { font-size: 12px; }
.site-footer a { text-decoration: none; color: var(--fg); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }
.mega, .home .mega { animation: none; }
/* Điện thoại: một hàng nút; cuộn hay vuốt đã chuyển món nên bỏ ← →. */
@media (max-width: 520px) {
	.rack-on .rack-prev, .rack-on .rack-next { display: none; }
	.rack-btns { flex-wrap: nowrap; }
	.rack-on .rack-ui { justify-content: flex-start; padding-right: calc(var(--pad) + 64px); }
	.rack-btns button, .rack-go { height: 48px; }
}
/* Montserrat: nhãn chữ hoa giãn tối đa .14em (bản cũ tới .5em, đọc rời từng chữ). */
.tile-no, .tile-go, .tile-state, .chat-head, .kho-kicker, .kho-code, .kho-card-top, .kho-stage-note, .kho-cta, .kho-back, .kho-side, .kho-sidebtn, .kho-preorder span, .kho-spec dt, .wc-shop .form-row label, .kho-step-t, .wc-shop .order-total th, .wc-shop .woocommerce-cart-form thead, .wc-shop .return-to-shop .button, .wc-shop .woocommerce-order-overview li, .kho-faq-h, .kho-faq-no, .piece-top, .kho-size legend { letter-spacing: .12em; font-weight: 600; }
/* Dấu sao bảy cánh chuẩn (D-061, mark.svg) ở mở đầu: viền vẽ một lần rồi tô đỏ; thay hình ngũ giác chồng thất giác vẽ sai. */
.boot-star { width: clamp(64px, 7vw, 104px); fill: var(--accent); fill-opacity: 0; stroke: var(--accent); stroke-width: 18; stroke-linejoin: miter; animation: star-fill .6s ease 1.6s forwards; }
.boot-star path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: star-draw 1.6s var(--ease) .2s forwards; }
@keyframes star-fill { to { fill-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .boot-star { animation: none; fill-opacity: 1; } .boot-star path { animation: none; stroke-dashoffset: 0; } }
.boot-star { animation: none; fill-opacity: 1; stroke: none; }
.boot-star path { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
/* Đầu trang chữ thay ký hiệu (05/11): Kho, Menu. Menu mở ra danh sách chữ, nền sáng, không ký hiệu ▣ ● ◎. */
.text-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--fg); font: 600 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.text-btn:hover, .text-btn:focus-visible { color: var(--accent); }
.menu-btn[aria-expanded="true"] { color: var(--accent); }
.overlay { background: var(--bg); color: var(--fg); justify-content: center; gap: 48px; }
.overlay-list { display: flex; flex-direction: column; gap: 6px; }
.overlay-list a { font-size: clamp(36px, 6vw, 84px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; transform: translateY(16px); }
.overlay-list a:hover, .overlay-list a:focus-visible { color: var(--accent); opacity: 1; }
.lang { border-color: var(--line); font-weight: 600; }
.lang.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Áo hai mặt (05/11, làm lại): bấm Lộn trái hay vuốt ngang thì áo xoay quanh móc, mặt sau là ảnh mặt trong thật
   (ảnh AI riêng), không phủ xám, không vạch cắt. Thả tay giữa chừng thì xoay hẳn về một mặt. */
.hang-swing:has(.hang-in-photo img) { perspective: 1800px; }
.hang-body:has(.hang-in-photo img) { transform-style: preserve-3d; transform: rotateY(var(--turn, 0deg)); transition: transform .9s var(--ease); }
.hang-body.is-dragging { transition: none; }
.hang-body:has(.hang-in-photo img) .hang-photo { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hang-body .hang-in.hang-in-photo { clip-path: none !important; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: visible; }
.hang-in-photo img { filter: none; }
.hang-in-photo .hang-sketch { opacity: 1; right: 4%; bottom: 14%; }
.hang-body:has(.hang-in-photo img)::after { display: none; }
.rack-on .hang.is-active[data-flip="1"] .hang-swing { cursor: grab; }
.rack-on .hang.is-active[data-flip="1"] .hang-body.is-dragging { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .hang-body:has(.hang-in-photo img) { transition: none; } }
/* Trang món tracksuit: lật ảnh, không đổi màu cả trang. */
[data-flip-stage] { perspective: 1800px; }
[data-flip-stage] .kho-stage-inner { transform-style: preserve-3d; transition: transform .9s var(--ease); touch-action: pan-y; cursor: grab; }
[data-flip-stage].is-b .kho-stage-inner { transform: rotateY(180deg); }
[data-flip-stage] .kho-stage-inner > .kho-stage-art { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kho-back { position: absolute; inset: 0; margin: auto; height: 100%; width: auto; max-width: 100%; object-fit: contain; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kho-side-b, [data-flip-stage].is-b .kho-side-a { display: none; }
[data-flip-stage].is-b .kho-side-b { display: inline; color: var(--accent); }
.kho-flip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { [data-flip-stage] .kho-stage-inner { transition: none; } }
/* Chỉ ảnh áo xoay; sợi chỉ đỏ (::before của khung) đứng yên. */
[data-flip-stage] .kho-stage-inner { transform: none !important; transform-style: flat; transition: none; }
.kho-flipper { position: relative; transform-style: preserve-3d; transition: transform .9s var(--ease); }
[data-flip-stage].is-b .kho-flipper { transform: rotateY(180deg); }
.kho-flipper > .kho-stage-art { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .kho-flipper { transition: none; } }
/* Điện thoại: nút lật có chữ, không chỉ ký hiệu. */
@media (max-width: 520px) {
	.rack-flip span { display: inline; }
	.rack-btns button, .rack-go { padding: 0 12px; font-size: 11px; letter-spacing: .08em; }
}
/* Sợi chỉ đỏ thò ra hai bên thẻ làm Kho tràn ngang 8px ở điện thoại (05/11): cắt ở khung Kho. */
.kho { overflow-x: clip; }

/* ===== Soát thiết kế 05/11 (anh: "quét kĩ lại thiết kế"). ===== */
/* Đầu trang nền đặc: chữ trang không chạy dưới logo khi cuộn. */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }

/* Giá treo máy tính: ảnh lệch phải, cột chữ hẹp lại để không đè áo. */
@media (min-width: 901px) {
	.rack-on .hang-swing:has(.hang-photo) { left: 58%; }
	.rack-on .hang-info { max-width: calc(58vw - min(17vw, 26vh) - var(--pad) - 40px); }
	.rack-on .hang-name { font-size: clamp(32px, 3.6vw, 56px); }
	.rack-on .hang-price { font-size: 14px; line-height: 1.6; }
}
@media (max-width: 900px) { .rack-on .hang-swing:has(.hang-photo) { width: 70vw; margin-left: -35vw; } }

/* Tuyên ngôn và phòng chung. */
@media (max-width: 520px) { .creed-line { margin-left: 0; } }
.commons { padding-top: 0; }

/* Khung trò chuyện theo nền sáng. */
/* Khung chat dùng bóng để tách khỏi trang; đường kẻ chỉ chia đầu đề, tin và ô nhập. */
.chat { background: var(--bg); color: var(--fg); border: 0; box-shadow: 0 24px 60px -24px rgba(20, 20, 18, .35); }
.chat-head { border-bottom-color: var(--line); letter-spacing: .12em; font-weight: 600; }
.chat-dot { background: var(--accent); box-shadow: none; animation: none; }
.msg { border-color: var(--line); background: #fff; }
.msg.big { font-size: 17px; font-weight: 700; line-height: 1.25; }

/* Chân trang gọn. */
.site-footer { gap: 4px 22px; padding-bottom: 48px; }
.site-footer a { min-width: 0; padding: 12px 0; }

/* Trang chữ (điều khoản, đổi trả, bảo mật): tiêu đề chữ thường, bỏ đường đứt và ký hiệu §. */
.display, .wc-shop .entry .display { font-size: clamp(40px, 6vw, 88px); line-height: .95; letter-spacing: -.03em; text-transform: none; margin-bottom: 32px; }
.prose .entry-content { padding-left: 0; max-width: 680px; }
.prose .entry-content::before, .prose .entry-content h2::before { display: none; content: none; }
.prose .entry-content h2 { margin: 44px 0 12px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.25; text-transform: none; letter-spacing: -.01em; }
.wc-shop .return-to-shop .button { text-decoration: none; }

/* Trang món: ảnh đứng yên bên trái khi cuộn phần thông tin; nút đặt trước chữ trắng. */
@media (min-width: 901px) {
	.kho-item { align-items: start; }
	.kho-stage { position: sticky; top: 65px; height: calc(100vh - 65px); align-items: center !important; }
	.kho-stage:has(.kho-ai) .kho-stage-inner { position: relative; top: auto; }
}
.kho-buy .single_add_to_cart_button, .wc-shop #place_order, .wc-shop .checkout-button { color: #fff !important; letter-spacing: .14em; font-weight: 600; }
.kho-preorder { border: 0; border-top: var(--rule-ink); border-bottom: var(--rule-hair); padding-left: 0; padding-right: 0; background: none; }
.kho-preorder span { letter-spacing: .12em; font-weight: 600; }
/* Soát đợt 2 (Codex): chữ phụ to và đậm hơn, tiêu đề bớt to, nhãn ảnh AI dễ thấy. */
.home .boot { min-height: 80vh; min-height: 80svh; }
.mega, .home .mega { font-size: clamp(52px, 12vw, 200px); }
.site-footer { color: color-mix(in srgb, var(--fg) 70%, transparent); }
.col-fine, .rack .col-fine, .kho-stage-note { font-size: 12px; color: var(--fg); opacity: .75; letter-spacing: .08em; }
.kho-mega { font-size: clamp(52px, 8vw, 128px); }
.kho-spec { font-size: 13px; }
.kho-spec dt { color: var(--fg); opacity: .7; letter-spacing: .1em; }
.kho-fine { font-size: 13px; color: color-mix(in srgb, var(--fg) 72%, transparent); }
.kho-faq { margin-top: 24px; border-top: var(--rule-hair); }
.kho-card-name { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.05; }
.text-btn { font-size: 13px; min-height: 44px; }
.rack-btns button, .rack-go { min-height: 48px; }
.kho-size label span { min-width: 56px; height: 52px; }
/* Điện thoại: hai nút giá treo một dòng, không gãy chữ (đã bỏ chấm chat nên lấy lại lề phải). */
@media (max-width: 520px) {
	.rack-on .rack-ui { padding-right: var(--pad); }
	.rack-btns button, .rack-go { white-space: nowrap; padding: 0 12px; font-size: 11px; letter-spacing: .06em; }
}
/* Tên món cùng kiểu chữ thường như giá treo. */
.kho-title, .kho-card-name { text-transform: none; letter-spacing: -.02em; }
/* Kho: ảnh cao bằng nhau, tên món thẳng một hàng ngay dưới ảnh. */
.kho-card-art:has(.kho-ai) { flex: none; }
.kho-card { min-height: 0; }
/* Lướt collection (05/11): dải ảnh nhỏ bốn món bấm để tới; gợi ý vuốt ở áo hai mặt, áo khẽ xoay một nhịp khi tới. */
.rack-dots { display: flex; gap: 6px; }
.rack-dot { position: relative; width: 48px; height: 60px; padding: 4px 4px 14px; border: var(--rule-ink); background: var(--bg); cursor: pointer; transition: border-color .25s var(--ease); }
.rack-dot img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: .45; transition: opacity .25s var(--ease); }
.rack-dot span { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 9px; font-weight: 600; letter-spacing: .08em; color: var(--dim); text-align: center; }
.rack-dot:hover img, .rack-dot[aria-current="true"] img { opacity: 1; }
.rack-dot[aria-current="true"] { border-color: var(--accent); }
.rack-dot[aria-current="true"] span { color: var(--fg); }
.rack-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hang-hint { display: none; }
.rack-on .hang-hint { display: flex; position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); align-items: center; gap: 10px; padding: 9px 14px; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); z-index: 2; }
.rack-on .hang.is-active .hang-hint { opacity: 1; }
.rack-on.was-flipped .hang-hint { opacity: 0 !important; }
.hang-hint-arrow { display: inline-block; font-size: 16px; line-height: 1; animation: hint-l 1.4s ease-in-out infinite; }
.hang-hint-arrow:last-child { animation-name: hint-r; }
@keyframes hint-l { 50% { transform: translateX(-4px); } }
@keyframes hint-r { 50% { transform: translateX(4px); } }
.hang-body.is-nudge { animation: nudge 1.6s var(--ease) .5s 1; }
@keyframes nudge { 0% { transform: rotateY(0); } 35% { transform: rotateY(32deg); } 70% { transform: rotateY(-14deg); } 100% { transform: rotateY(0); } }

@media (max-width: 520px) {
	.rack-on .rack-ui { flex-direction: column; align-items: flex-start; gap: 10px; bottom: 16px; }
	.rack-dot { width: 40px; height: 50px; }
	.rack-on .hang-info { bottom: 150px; }
	.rack-on .hang-swing:has(.hang-photo) { top: 24vh; }
	.rack-on .rack-rail { top: 24vh; }
	.rack-on .hang-hint { bottom: 4%; font-size: 11px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) { .hang-hint-arrow, .hang-body.is-nudge { animation: none; } }
/* Gợi ý vuốt nằm ở khoảng trống trên sợi chỉ, không đè áo hay tên món. */
.rack-on .hang-hint { top: -62px; bottom: auto; }
@media (max-width: 520px) { .rack-on .hang-hint { top: -50px; bottom: auto; } }
[data-flip-stage] .kho-stage-note { display: inline-flex; padding: 8px 12px; background: var(--fg); color: var(--bg); opacity: 1; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: none; }
@media (max-width: 520px) { .rack-on .hang-swing:has(.hang-photo) { width: 62vw; margin-left: -31vw; } }
/* Ảnh cả bộ (áo cạnh quần) nằm ngang: rộng hơn, thấp hơn. */
[data-view="set"] .kho-stage-art, [data-view="set"] .kho-back { height: auto; width: min(100%, 640px); max-width: 100%; }
[data-view="set"] .kho-stage-art, [data-view="set"] .kho-back { width: min(86%, 560px); }

/* Tải lại không nhảy (06/11): giá treo đặt sẵn vị trí từng món bằng CSS trước khi mã chạy; mã chỉ nối tiếp từ đó. */
.rack-on { --gap: min(34vw, 560px); }
@media (max-width: 599px) { .rack-on { --gap: 72vw; } }
.rack-on .hang[data-i="1"] .hang-swing { --x: var(--gap); --s: .58; --o: .5; }
.rack-on .hang[data-i="2"] .hang-swing { --x: calc(2 * var(--gap)); --s: .33; --o: .5; }
.rack-on .hang[data-i="3"] .hang-swing { --x: calc(3 * var(--gap)); --s: .33; --o: 0; }
/* Tracksuit cả bộ (áo cạnh quần): khung ngang, giá treo rộng hơn để áo và quần cùng cỡ với các món khác. */
.hang-photo.is-set { aspect-ratio: 9 / 7; object-fit: contain; }
.rack-on .hang-swing:has(.hang-photo.is-set) { width: min(48vw, 66vh); margin-left: calc(min(48vw, 66vh) / -2); }
@media (max-width: 900px) { .rack-on .hang-swing:has(.hang-photo.is-set) { width: 92vw; margin-left: -46vw; } }
.kho-card .kho-ai.is-set { aspect-ratio: 3 / 4; object-fit: contain; object-position: 50% 0; }
.rack-on:not(.rack-ready) .hang, .rack-on:not(.rack-ready) .rack-ui { opacity: 0; }
.rack-on .hang, .rack-on .rack-ui { transition: opacity .35s ease; }
/* Đổi món: tên, giá món cũ tắt ngay, món mới hiện dần; không còn hai dòng chữ chồng nhau lúc cuộn (06/11). */
.rack-on .hang:not(.is-active) .hang-info { transition: none; opacity: 0; }
.rack-on .hang.is-active .hang-info { transition: opacity .35s ease .05s, transform .35s ease .05s; }
@media (min-width: 901px) { .rack-on .hang:has(.hang-photo.is-set) .hang-info { max-width: calc(58vw - min(24vw, 33vh) - var(--pad) - 40px); } }
@media (max-width: 900px) { .rack-on .hang-swing:has(.hang-photo.is-set) { width: 84vw; margin-left: -42vw; } }

/* ===== Cỡ 1 · 2 · 3 và thử cỡ (06/11) ===== */
.kho-size-123 .kho-size-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kho-size-123 label span { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-width: 0; width: 100%; height: auto; min-height: 64px; padding: 10px 12px; letter-spacing: 0; }
.kho-size-123 label span b { font-size: 22px; font-weight: 800; line-height: 1; }
.kho-size-123 label span small { font-size: 11px; font-weight: 500; color: var(--dim); line-height: 1.35; }
.kho-size-123 input:checked + span small { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.kho-fit-open { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 12px 14px; border: var(--rule-ink); background: #fff; color: var(--fg); font: 600 13px/1.3 var(--font); text-align: left; cursor: pointer; transition: border-color .2s ease; }
.kho-fit-open:hover, .kho-fit-open:focus-visible { border-color: var(--fg); }
.kho-fit-open > span:nth-child(2) { flex: 1; }
.kho-fit-ico { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--fg); -webkit-mask: radial-gradient(circle at 50% 30%, #000 22%, transparent 23%), linear-gradient(#000, #000) 50% 100% / 56% 42% no-repeat; mask: radial-gradient(circle at 50% 30%, #000 22%, transparent 23%), linear-gradient(#000, #000) 50% 100% / 56% 42% no-repeat; }

.kho-fit { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.kho-fit.is-open { visibility: visible; pointer-events: auto; }
.kho-fit-scrim { position: absolute; inset: 0; background: rgba(20, 20, 18, .35); opacity: 0; transition: opacity .3s ease; }
.kho-fit.is-open .kho-fit-scrim { opacity: 1; }
.kho-fit-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); display: flex; flex-direction: column; background: var(--bg); color: var(--fg); box-shadow: -20px 0 60px -30px rgba(20, 20, 18, .45); transform: translateX(100%); transition: transform .4s var(--ease); }
.kho-fit.is-open .kho-fit-sheet { transform: none; }
.kho-fit-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: var(--rule-hair); }
.kho-fit-brand { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.kho-fit-x { width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--fg); cursor: pointer; }
.kho-fit-body0 { flex: 1; overflow-y: auto; padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.kho-fit-h { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.kho-fit-field { display: flex; flex-direction: column; gap: 8px; }
.kho-fit-lab { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.kho-fit-lab output { color: var(--fg); letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 700; margin-left: 6px; }
.kho-fit-field input[type=range] { width: 100%; height: 44px; accent-color: var(--fg); }
.kho-fit-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.kho-fit-seg button { min-height: 48px; border: var(--rule-ink); background: #fff; color: var(--fg); font: 600 14px/1 var(--font); cursor: pointer; }
.kho-fit-seg button[aria-checked="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.kho-fit-go { min-height: 54px; border: 0; background: var(--fg); color: var(--bg); font: 700 14px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.kho-fit-go:hover, .kho-fit-go:focus-visible { background: var(--accent); }
.kho-fit-note { margin: 0; font-size: 12px; line-height: 1.55; color: var(--dim); }
.kho-fit-kick { margin: 0; font-size: 12px; font-weight: 600; color: var(--dim); }
.kho-fit-big { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kho-fit-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kho-fit-tabs button { position: relative; min-height: 52px; border: var(--rule-ink); background: #fff; color: var(--fg); font: 800 20px/1 var(--font); cursor: pointer; }
.kho-fit-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.kho-fit-tabs button.is-rec::after { content: ''; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kho-fit-view { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.kho-fit-fig { width: 100%; height: auto; display: block; }
.kho-fit-body { fill: #E3DFD6; stroke: none; }
.kho-fit-garment { fill: rgba(20, 20, 18, .14); stroke: var(--fg); stroke-width: 1.4; stroke-linejoin: round; }
.kho-fit-dot { stroke: #fff; stroke-width: 1.5; }
.kho-fit-dot.is-ok { fill: var(--fg); }
.kho-fit-dot.is-snug, .kho-fit-dot.is-roomy { fill: #8C6A1F; }
.kho-fit-dot.is-tight, .kho-fit-dot.is-loose, .kho-fit-dot.is-short, .kho-fit-dot.is-long { fill: var(--accent); }
.kho-fit-rows { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.kho-fit-rows li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: var(--rule-hair); font-size: 13px; }
.kho-fit-rows b { font-weight: 700; }
.kho-fit-rows b.is-snug, .kho-fit-rows b.is-roomy { color: #8C6A1F; }
.kho-fit-rows b.is-tight, .kho-fit-rows b.is-loose, .kho-fit-rows b.is-short, .kho-fit-rows b.is-long { color: var(--accent); }
.kho-fit-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: -8px; }
.kho-fit-table th { text-align: left; font-weight: 500; color: var(--dim); padding: 7px 0; border-bottom: var(--rule-hair); }
.kho-fit-table td { text-align: right; font-weight: 700; padding: 7px 0; border-bottom: var(--rule-hair); font-variant-numeric: tabular-nums; }
.kho-fit-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.kho-fit-edit { min-height: 54px; padding: 0 16px; border: var(--rule-ink); background: #fff; color: var(--fg); font: 600 13px/1 var(--font); cursor: pointer; }
html.kho-fit-lock { overflow: hidden; }
@media (max-width: 600px) {
	.kho-fit-sheet { top: auto; left: 0; width: 100%; max-height: 92vh; max-height: 92svh; transform: translateY(100%); box-shadow: 0 -20px 60px -30px rgba(20, 20, 18, .45); }
	.kho-fit-view { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.kho-fit-big { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .kho-fit-sheet, .kho-fit-scrim { transition: none; } }

/* Thanh quản trị WordPress (chỉ quản trị viên thấy) không che đầu khung thử cỡ. */
.kho-fit-sheet { top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .kho-fit-sheet { top: auto; } }

.kho-fit-view { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; }
.kho-fit-fig { max-height: 360px; }

/* ===== Thử cỡ bản 2 (06/11, theo Claude Design): một màn, đổi ngay khi kéo ===== */
.kho-fit-open { gap: 14px; padding: 12px 14px; }
.kho-fit-ico { width: 36px; height: 36px; -webkit-mask: none; mask: none; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; letter-spacing: -.02em; }
.kho-fit-ico::before { content: '1·2·3'; }
.kho-fit-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kho-fit-txt b { font-size: 14px; font-weight: 700; }
.kho-fit-sub { font-size: 12px; font-weight: 500; color: var(--dim); }
.kho-size-123 label { position: relative; }
.kho-size-123 label.is-rec::after { content: attr(data-rec); }
.kho-size-123 label.is-rec span { box-shadow: none; }
.kho-size-123 label.is-rec span::after { content: '•'; position: absolute; top: 6px; right: 10px; color: var(--accent); font-size: 18px; line-height: 1; }

.kho-fit-grab { display: none; }
.kho-fit-body0 { gap: 14px; padding: 18px 22px 24px; }
.kho-fit-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kho-fit-num { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; border: var(--rule-ink); background: #fff; }
.kho-fit-step { height: 48px; border: 0; background: none; color: var(--fg); font: 600 20px/1 var(--font); cursor: pointer; }
.kho-fit-step:hover, .kho-fit-step:focus-visible { background: var(--bg); }
.kho-fit-val { text-align: center; font-size: 13px; color: var(--dim); }
.kho-fit-val b { font-size: 24px; font-weight: 800; color: var(--fg); letter-spacing: -.02em; }
.kho-fit-field input[type=range] { height: 28px; margin: 0; }
.kho-fit-seg button { min-height: 42px; font-size: 13px; }
.kho-fit-res { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: var(--rule-hair); }
.kho-fit-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.kho-fit-head-l { display: flex; flex-direction: column; gap: 4px; }
.kho-fit-kick { font-size: 12px; font-weight: 600; color: var(--dim); }
.kho-fit-word { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.kho-fit-big { font-size: 112px; font-weight: 800; line-height: .78; letter-spacing: -.06em; }
.kho-fit-tabs button[aria-checked="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.kho-fit-vtabs { display: flex; gap: 20px; border-bottom: var(--rule-hair); }
.kho-fit-vtabs button { padding: 10px 0; margin-bottom: -1px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--dim); font: 600 13px/1 var(--font); cursor: pointer; }
.kho-fit-vtabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 700; }
.kho-fit-view { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.kho-fit-bars { display: flex; flex-direction: column; gap: 12px; }
.kho-fit-bar { display: flex; flex-direction: column; gap: 5px; }
.kho-fit-bar-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.kho-fit-bar-top span { font-weight: 600; }
.kho-fit-bar-top b.is-snug, .kho-fit-bar-top b.is-roomy { color: #8C6A1F; }
.kho-fit-bar-top b.is-tight, .kho-fit-bar-top b.is-loose, .kho-fit-bar-top b.is-short, .kho-fit-bar-top b.is-long { color: var(--accent); }
.kho-fit-track { position: relative; height: 6px; background: linear-gradient(90deg, #EBC3B9 0 22%, #E3DFD6 22% 34%, var(--fg) 34% 66%, #E3DFD6 66% 78%, #EBC3B9 78%); }
.kho-fit-bar.is-len .kho-fit-track { background: linear-gradient(90deg, #EBC3B9 0 34%, var(--fg) 34% 66%, #EBC3B9 66%); }
.kho-fit-track i { position: absolute; top: -6px; width: 3px; height: 18px; margin-left: -1.5px; background: var(--accent); transition: left .25s var(--ease); }
.kho-fit-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); }
.kho-fit-spec { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: center; }
.kho-fit-flat { width: 100%; max-height: 280px; object-fit: contain; }
.kho-fit-table { margin-top: 0; }
.kho-fit-go { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
@media (max-width: 600px) {
	.kho-fit-grab { display: block; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: var(--line); }
	.kho-fit-body0 { padding: 14px 18px 22px; }
	.kho-fit-big { font-size: 92px; }
	.kho-fit-view { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 12px; }
	.kho-fit-spec { grid-template-columns: minmax(0, 1fr) 132px; }
}
@media (prefers-reduced-motion: reduce) { .kho-fit-track i { transition: none; } }

/* 1.5.4 soát như khách thật */
.kho-flipper > .kho-stage-art { margin-inline: auto; }
[data-flip-stage] img { -webkit-user-drag: none; user-select: none; }
.wc-shop .kho-thumb-ai { width: 60px; height: 80px; object-fit: contain; background: transparent; }
.wc-shop dl.variation { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 6px 0 0; font-size: 13px; color: var(--muted, #6B675F); }
.wc-shop dl.variation dt, .wc-shop dl.variation dd { margin: 0; padding: 0; float: none; font-weight: 400; }
.wc-shop dl.variation dd p { margin: 0; display: inline; }
.kho-title, .hang-name { text-wrap: balance; }
.kho-chips .kho-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wc-shop .cart_totals th, .wc-shop .shop_table tfoot th { white-space: nowrap; }
.kho-size-123 small em, .kho-size-123 small i { font-style: normal; white-space: nowrap; }
@media (max-width: 600px) { .kho-size-123 small i { display: none; } .kho-size-123 small em { display: block; } }

/* 1.6.0 bỏ móc, đường ray; ảnh bên trong và lên người (06/11) */
.hang-hook, .rack-rail { display: none !important; }
.kho-card-art:has(.kho-ai)::before, .kho-stage-inner:has(.kho-ai)::before { display: none; }
.kho-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 420px)); justify-content: center; gap: 2px; padding: clamp(24px, 4vw, 56px) 0; border-top: var(--rule-hair); }
@media (max-width: 600px) {
	.kho-more { display: flex; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); scrollbar-width: none; gap: 8px; padding: 20px var(--pad) 28px; }
	.kho-more::-webkit-scrollbar { display: none; }
	.kho-more-f { flex: 0 0 78vw; scroll-snap-align: start; }
}
/* Giá đồ: ảnh món lẻ thu nhỏ một chút để không sát hàng nút (ảnh không còn móc nên cao hơn) */
.rack-on .hang-body:has(.hang-photo:not(.is-set)) { scale: .9; transform-origin: 50% 35%; }
.kho-more-f { position: relative; margin: 0; background: var(--bg); }
.kho-more-f img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.kho-more-f.is-inside img { object-fit: contain; padding: 6%; box-sizing: border-box; }
.kho-more-f figcaption { position: absolute; left: 14px; top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); opacity: .7; }
.looks { padding: clamp(48px, 8vw, 110px) 0 0; }
.looks-h { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.looks-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.look { position: relative; display: block; color: var(--fg); text-decoration: none; overflow: hidden; }
.look img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .9s var(--ease); }
.look:hover img { transform: none; } /* 06/11 anh: đoạn Lên người "cứ bị nhảy thế bỏ motion đi" */
.look span { position: absolute; left: 14px; bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
@media (max-width: 900px) {
	.looks-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); scrollbar-width: none; padding: 0 var(--pad); gap: 8px; }
	.looks-row::-webkit-scrollbar { display: none; }
	.look { flex: 0 0 72vw; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .look img { transition: none; } }

/* 1.7.2 Tài khoản: nút ở đầu trang ẩn trên điện thoại (đã có trong Menu); giao diện trang ở account.css */
@media (max-width: 640px) { .tools-acc { display: none; } }

/* 1.9.0 ảnh người mẫu đã xoá nền: đứng nguyên dáng trên nền trang */
.look img { object-fit: contain; object-position: 50% 100%; background: color-mix(in srgb, var(--fg) 3%, var(--bg)); }
.look { display: flex; flex-direction: column; }
.look span { position: static; padding: 10px 14px 0; }

/* 1.9.7 Kho 5 món (áo, quần tracksuit tách riêng): máy tính 5 cột; điện thoại món lẻ cuối trải hết hàng */
@media (min-width: 1100px) { .kho-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
@media (max-width: 1099px) { .kho-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }


/* ===== Đầu trang theo mẫu OVRA (20/11). Đơn vị u theo bảng vẽ 1440 x 956, điện thoại 390. Không cố định: cuộn đi như mẫu. ===== */
:root { --u: min(calc(100vw / 1440), calc(100svh / 956)); --uw: calc(100vw / 1440); --hu: min(var(--u), 1px); --huw: min(var(--uw), 1px); }
@media (max-width: 820px) { :root { --u: calc(100vw / 390); --uw: var(--u); --hu: min(var(--u), 1px); --huw: min(var(--uw), 1px); } }
html { scroll-behavior: auto; }
/* Đầu trang (21/11 làm lại theo bản A, Claude Design): chữ đặt thẳng trên trang, logo giữa có sao đỏ, nền trắng một đường kẻ mảnh.
   Cố định trên cùng. Trang chủ lúc ở đỉnh không nền (chữ nằm trên khung người mẫu), cuộn quá 40px thì có nền (main.js: is-stuck). */
html .site-header.hb {
	position: fixed; top: 0; left: 0; right: 0; z-index: 75; height: 64px; margin: 0; padding: 0 40px; box-sizing: border-box;
	display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
	background: var(--bg); border: 0; border-bottom: 1px solid var(--line); mix-blend-mode: normal; color: var(--fg);
	transition: background-color .3s ease, border-color .3s ease;
}
html .site-header.hb.hb-home { background: transparent; border-bottom-color: transparent; }
html .site-header.hb.hb-home.is-stuck { background: var(--bg); border-bottom-color: var(--line); }
.hb a { color: var(--fg); text-decoration: none; }
.hb-l, .hb-r { display: flex; align-items: center; gap: 32px; min-width: 0; }
.hb-r { justify-content: flex-end; }
.hb-l a, .hb-r a, .hb-lang summary { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1; white-space: nowrap; transition: color .2s ease; }
.hb-l a:hover, .hb-r a:hover, .hb-lang summary:hover { color: var(--accent); }
.hb a.is-on::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; background: var(--accent); vertical-align: 2px; }
.hb-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; letter-spacing: .34em; padding-left: .34em; line-height: 1; white-space: nowrap; }
.hb-logo svg { width: 15px; height: 15px; flex: none; fill: var(--accent); }
.hb-lang { position: relative; }
.hb-lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.hb-lang summary::-webkit-details-marker { display: none; }
.hb-caret { width: 9px; height: 6px; transition: transform .2s ease; }
.hb-lang[open] .hb-caret { transform: rotate(180deg); }
.hb-lang-list { position: absolute; right: 0; top: calc(100% + 20px); min-width: 160px; margin: 0; padding: 0; list-style: none; background: var(--bg); border: 1px solid var(--fg); z-index: 80; }
.hb-lang-list a { display: block; padding: 12px 16px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.hb-lang-list li + li a { border-top: 1px solid var(--line); }
.hb-lang-list a:hover { background: color-mix(in srgb, var(--fg) 5%, var(--bg)); color: var(--fg); }
.hb-m-show { display: none; }
@media (max-width: 820px) {
	html .site-header.hb { height: 52px; padding: 0 16px; }
	.hb-l, .hb-r { gap: 16px; }
	.hb-m-hide { display: none !important; }
	.hb-m-show { display: revert; }
	.hb-logo { gap: 6px; font-size: 15px; letter-spacing: .24em; padding-left: .24em; }
	.hb-logo svg { width: 10px; height: 10px; }
	.hb-lang-list { top: calc(100% + 16px); }
}
@media (max-width: 350px) { .hb-logo { font-size: 13px; letter-spacing: .2em; padding-left: .2em; } .hb-l, .hb-r { gap: 12px; } }

/* Kho: dưới lưới ô món chỉ một đường kẻ (20/11, anh: "phần kho xem xử lý đoạn này cho đẹp": đường đáy lưới và đường trên Hỏi đáp
   cách 24px trông như kẻ đúp). Giữ đường đáy lưới, Hỏi đáp không kẻ thêm. */
.kho-grid + .kho-faq, .kho .kho-faq { margin-top: 0; border-top: 0; }
