/* ==========================================================
   Nốt Trầm - giao diện
   Giấy dó · gỗ trầm · son đỏ · đồng
   ========================================================== */
:root {
	--paper: #F2E8D8;
	--paper-2: #E8DAC2;
	--card: #F8F1E6;
	--ink: #3B2417;
	--ink-2: #725543;
	--line: #D8C5A6;
	--bronze: #A9834F;
	--red: #A3231B;
	--red-d: #84190F;
	--dark: #2E1C12;
	--zalo: #0068FF;
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
	--gut: 20px;
	--r: 4px;
	--head-h: 72px;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 400 16px/1.7 var(--sans);
	color: var(--ink);
	background-color: var(--paper);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .14 0 0 0 0 .09 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.nt-lock { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-d); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.25; color: var(--ink); margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--red); color: var(--paper); }

.screen-reader-text, .nt-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nt-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); }
.nt-skip:focus { top: 12px; color: var(--paper); }

.nt-container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.nt-narrow { max-width: 780px; }
.nt-main { display: block; min-height: 50vh; }
.nt-ico { width: 22px; height: 22px; flex: none; }

/* ---------- Nút ---------- */
.nt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 11px 22px;
	font: 500 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
	border: 1px solid transparent; border-radius: var(--r);
	transition: background-color .2s, color .2s, border-color .2s;
}
.nt-btn .nt-ico { width: 19px; height: 19px; }
.nt-btn--solid { background: var(--red); color: #FFF8F0; }
.nt-btn--solid:hover { background: var(--red-d); color: #FFF8F0; }
.nt-btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.nt-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.nt-btn--light { background: var(--paper); color: var(--ink); }
.nt-btn--light:hover { background: #FFF; color: var(--ink); }
.nt-btn--outline-light { border-color: rgba(242,232,216,.6); color: var(--paper); }
.nt-btn--outline-light:hover { background: var(--paper); color: var(--ink); }

.nt-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink);
	border-radius: 50%; cursor: pointer; text-decoration: none;
}
.nt-iconbtn:hover { color: var(--red); background: rgba(169,131,79,.12); }

/* ---------- Con dấu & hoa văn ---------- */
.nt-stamp { width: 52px; height: 52px; color: var(--red); display: block; }
.nt-stamp text { font-family: var(--serif); letter-spacing: .02em; }
.nt-stamp--lg { width: 76px; height: 76px; }
.nt-stamp--xl { width: 132px; height: 132px; }
.nt-stamp--ghost { width: 64px; height: 64px; color: var(--bronze); opacity: .55; }
.nt-ornament { display: block; width: 100%; height: 100%; color: var(--bronze); }

/* ---------- Thanh trên cùng ---------- */
.nt-topbar { background: var(--ink); color: #E9DAC1; font-size: 13.5px; }
.nt-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.nt-topbar__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-topbar__tel { display: inline-flex; align-items: center; gap: 6px; color: #F7EBD6; text-decoration: none; font-weight: 500; white-space: nowrap; }
.nt-topbar__tel:hover { color: #FFF; }
.nt-topbar__tel .nt-ico { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.nt-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(242,232,216,.94);
	-webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.nt-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 18px -14px rgba(59,36,23,.5); }
.admin-bar .nt-header { top: 32px; }
.nt-header__in { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.nt-header__brand { flex: none; }
.nt-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nt-logo .nt-stamp { width: 46px; height: 46px; }
.nt-logo__name { font: 600 1.35rem/1 var(--serif); letter-spacing: .01em; }
.custom-logo-link img { max-height: 52px; width: auto; }
.nt-menu-toggle { display: none; }

.nt-nav { flex: 1; display: flex; justify-content: center; }
.nt-menu, .nt-menu ul { list-style: none; margin: 0; padding: 0; }
.nt-menu { display: flex; gap: 4px; }
.nt-menu > li { position: relative; }
.nt-menu a {
	display: block; padding: 10px 14px; color: var(--ink); text-decoration: none;
	font-size: 15px; font-weight: 500; border-radius: var(--r);
}
.nt-menu > li > a { position: relative; }
.nt-menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
	background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nt-menu > li > a:hover::after,
.nt-menu > .current-menu-item > a::after,
.nt-menu > .current_page_item > a::after,
.nt-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.nt-menu a:hover { color: var(--red); }
.nt-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; padding: 8px;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: 0 14px 30px -18px rgba(59,36,23,.45);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nt-menu li:hover > .sub-menu, .nt-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nt-menu .sub-menu a { padding: 9px 12px; }

.nt-header__tools { display: flex; align-items: center; gap: 2px; flex: none; }
.nt-cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--red); color: #FFF8F0;
	font: 600 11px/18px var(--sans); text-align: center;
}
.nt-cart-count.is-empty { display: none; }

/* Ô tìm kiếm */
.nt-search { border-top: 1px solid var(--line); background: var(--card); padding: 16px 0; }
.nt-search[hidden] { display: none; }
.woocommerce-product-search, .nt-searchform { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.woocommerce-product-search input[type="search"], .nt-searchform input[type="search"] { flex: 1; min-width: 0; }
.woocommerce-product-search button, .nt-searchform button {
	flex: none; min-height: 46px; padding: 0 20px; border: 0; border-radius: var(--r);
	background: var(--ink); color: var(--paper); font: 500 15px var(--sans); cursor: pointer;
}
.woocommerce-product-search button:hover, .nt-searchform button:hover { background: var(--red); }

/* Menu điện thoại */
.nt-drawer { position: fixed; inset: 0; z-index: 100; }
.nt-drawer[hidden] { display: none; }
.nt-drawer__backdrop { position: absolute; inset: 0; background: rgba(46,28,18,.45); opacity: 0; transition: opacity .25s; }
.nt-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px);
	display: flex; flex-direction: column; background: var(--paper);
	transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
	overflow-y: auto;
}
.nt-drawer.is-open .nt-drawer__backdrop { opacity: 1; }
.nt-drawer.is-open .nt-drawer__panel { transform: none; }
.nt-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.nt-dmenu, .nt-dmenu ul { list-style: none; margin: 0; padding: 0; }
.nt-dmenu { padding: 8px 0; }
.nt-dmenu a { display: block; padding: 14px 20px; color: var(--ink); text-decoration: none; font: 500 1.15rem/1.3 var(--serif); border-bottom: 1px solid rgba(216,197,166,.55); }
.nt-dmenu .sub-menu a { padding-left: 36px; font: 400 15px/1.4 var(--sans); }
.nt-dmenu .current-menu-item > a { color: var(--red); }
.nt-drawer__foot { margin-top: auto; padding: 16px 20px 24px; display: grid; gap: 4px; background: var(--paper-2); }
.nt-drawer__foot a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 500; }

/* ---------- Trang chủ: phần đầu ---------- */
.nt-hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.nt-hero__ring { position: absolute; width: 760px; height: 760px; right: -220px; top: -170px; opacity: .2; pointer-events: none; }
.nt-hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.nt-hero__stamp { width: 58px; height: 58px; margin-bottom: 28px; }
.nt-hero__title { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.12; font-weight: 500; max-width: 13ch; margin-bottom: 24px; text-wrap: balance; }
.nt-hero__lead { font-size: 1.075rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 32px; }
.nt-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nt-hero__visual { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.nt-hero__frame { position: relative; margin: 0; }
.nt-hero__frame::before {
	content: ""; position: absolute; inset: 0; transform: translate(16px, 16px);
	border: 1px solid var(--bronze); border-radius: var(--r); pointer-events: none;
}
.nt-hero__frame img { position: relative; width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 30px 50px -34px rgba(46,28,18,.65); }

/* Làn khói - chuyển động duy nhất của trang */
.nt-smoke { position: absolute; z-index: 2; left: 50%; bottom: calc(100% - 24px); width: 70px; height: 190px; margin-left: -35px; pointer-events: none; overflow: visible; }
.nt-smoke path { fill: none; stroke: var(--ink-2); stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; opacity: 0; }
.nt-smoke__a { stroke-width: 1.4; animation: nt-rise 10s ease-out infinite; }
.nt-smoke__b { stroke-width: .9; animation: nt-rise 10s ease-out 3.6s infinite; }
@keyframes nt-rise {
	0% { stroke-dashoffset: 420; opacity: 0; transform: translateX(0); }
	18% { opacity: .6; }
	70% { opacity: .22; }
	100% { stroke-dashoffset: 0; opacity: 0; transform: translateX(8px); }
}

/* ---------- Điểm khác biệt ---------- */
.nt-values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(232,218,194,.55); }
.nt-values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.nt-values__list li { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; }
.nt-values__list li + li { border-left: 1px solid var(--line); }
.nt-values__list .nt-ico { width: 30px; height: 30px; color: var(--red); margin-top: 2px; }
.nt-values__list strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.4; }
.nt-values__list span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }

/* ---------- Khối nội dung ---------- */
.nt-section { padding: 80px 0; }
.nt-section + .nt-section { padding-top: 0; }
.nt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.nt-head h2 { margin: 0; }
.nt-head h2::before {
	content: ""; display: inline-block; width: .38em; height: .38em; margin-right: .55em;
	vertical-align: .16em; background: var(--red); border-radius: 1px;
}
.nt-more { flex: none; font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--bronze); }
.nt-more:hover { color: var(--red); }
.nt-empty { padding: 28px; border: 1px dashed var(--bronze); border-radius: var(--r); color: var(--ink-2); background: rgba(248,241,230,.6); }

/* Danh mục */
.nt-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nt-cat { display: block; text-decoration: none; color: var(--ink); }
.nt-cat__img { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--paper-2); margin-bottom: 12px; }
.nt-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.nt-cat__name { display: block; font: 500 1.15rem/1.3 var(--serif); }
.nt-cat__count { display: block; font-size: 13.5px; color: var(--ink-2); }
.nt-cat:hover .nt-cat__name { color: var(--red); }

/* Câu chuyện */
.nt-story { background: var(--paper-2); padding: 88px 0; }
.nt-section + .nt-story { padding-top: 88px; }
.nt-story__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.nt-story__media img { width: 100%; border-radius: var(--r); }
.nt-story__seal { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.nt-story__seal .nt-ornament { position: absolute; inset: 0; opacity: .45; }
.nt-story__seal .nt-stamp { position: relative; background: var(--paper-2); }
.nt-story__text { max-width: 58ch; }
.nt-story__text p { color: var(--ink-2); font-size: 1.05rem; }
.nt-story__sign { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--bronze); font: italic 500 1.1rem var(--serif); color: var(--ink) !important; display: inline-block; }

/* Cách dùng - đúng thứ tự nên đánh số */
.nt-howto { padding-top: 88px !important; }
.nt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.nt-steps li { counter-increment: s; position: relative; padding: 28px 24px 8px 0; }
.nt-steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.nt-steps li::before { content: counter(s); display: block; font: 500 2.4rem/1 var(--serif); color: var(--red); margin-bottom: 14px; }
.nt-steps .nt-ico { position: absolute; top: 30px; right: 24px; width: 34px; height: 34px; color: var(--bronze); }
.nt-steps strong { display: block; font-weight: 600; margin-bottom: 4px; }
.nt-steps span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* Bài viết */
.nt-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nt-post__img { display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--paper-2); margin-bottom: 14px; }
.nt-post__img img { width: 100%; height: 100%; object-fit: cover; }
.nt-post__date { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.nt-post__title { font-size: 1.22rem; margin-bottom: 6px; }
.nt-post__title a { color: var(--ink); text-decoration: none; }
.nt-post__title a:hover { color: var(--red); }
.nt-post__excerpt { font-size: 15px; color: var(--ink-2); margin: 0; }

/* Lời mời liên hệ */
.nt-cta { background: var(--ink); color: #E9DAC1; padding: 56px 0; }
.nt-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nt-cta h2 { color: var(--paper); margin-bottom: 6px; }
.nt-cta p { margin: 0; max-width: 52ch; }
.nt-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Trang trong ---------- */
.nt-main:not(.nt-home) { padding: 40px 0 88px; }
.nt-pagehead { margin-bottom: 28px; }
.nt-pagehead h1 { margin-bottom: .3em; }
.nt-pagehead__desc { color: var(--ink-2); max-width: 65ch; }
.nt-content { font-size: 1.04rem; }
.nt-content > * { max-width: 100%; }
.nt-content h2, .nt-content h3 { margin-top: 1.6em; }
.nt-content img { border-radius: var(--r); }
.nt-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--red); font: italic 1.15rem/1.6 var(--serif); color: var(--ink); }
.nt-content ul, .nt-content ol { padding-left: 1.3em; }
.nt-content table { width: 100%; border-collapse: collapse; }
.nt-content th, .nt-content td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.nt-article__img { margin: 0 0 28px; }
.nt-article__img img { width: 100%; border-radius: var(--r); }
.post-navigation { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; }
.post-navigation a { color: var(--ink); text-decoration: none; font-family: var(--serif); }
.post-navigation span { display: block; font: 400 13px var(--sans); color: var(--ink-2); }
.nt-pagination, .woocommerce nav.woocommerce-pagination { margin-top: 40px; }
.nt-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nt-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.nt-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nt-404 { text-align: center; }
.nt-404 .nt-stamp { margin: 0 auto 24px; }
.nt-404 .woocommerce-product-search, .nt-404 .nt-searchform { margin: 24px auto; }
.nt-comments { margin-top: 48px; }
.nt-comments__list { padding-left: 0; list-style: none; }
.nt-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }

/* ---------- Biểu mẫu ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], input[type="url"], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 14px;
	font: 400 16px/1.4 var(--sans); color: var(--ink);
	background: #FBF7F0; border: 1px solid var(--line); border-radius: var(--r);
	-webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233B2417' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(163,35,27,.14); }
label { font-weight: 500; font-size: 15px; }

/* ---------- Chân trang ---------- */
.nt-footer { background: var(--dark); color: #D9C7AB; font-size: 15px; }
.nt-footer__grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.nt-footer .nt-stamp { color: #C9443A; }
.nt-footer__tag { margin-top: 16px; font: italic 1.1rem/1.5 var(--serif); color: #EADBC2; max-width: 22ch; }
.nt-footer__title { font: 600 13.5px/1.4 var(--sans); color: #EADBC2; margin: 0 0 16px; letter-spacing: .02em; }
.nt-footer__list, .nt-footer__menu { list-style: none; margin: 0; padding: 0; }
.nt-footer__list li { display: flex; gap: 10px; margin-bottom: 12px; line-height: 1.55; }
.nt-footer__list .nt-ico { width: 18px; height: 18px; margin-top: 3px; color: var(--bronze); }
.nt-footer__menu li { margin-bottom: 10px; }
.nt-footer a { color: #E9DAC1; text-decoration: none; }
.nt-footer a:hover { color: #FFF; text-decoration: underline; }
.nt-footer__bottom { border-top: 1px solid rgba(217,199,171,.16); padding: 18px 0 22px; font-size: 13.5px; color: #B8A487; }

/* ---------- Nút liên hệ nổi ---------- */
.nt-float { position: fixed; right: 16px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 10px; transition: bottom .25s; }
.nt-float__btn {
	display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
	background: var(--ink); color: #FFF; text-decoration: none;
	box-shadow: 0 10px 22px -10px rgba(46,28,18,.6);
}
.nt-float__btn:hover { color: #FFF; transform: translateY(-1px); }
.nt-float__btn--zalo { background: var(--zalo); font: 600 13px/1 var(--sans); }
.nt-float__btn--call { background: var(--red); }
body.nt-has-buybar .nt-float { bottom: 92px; }

/* ---------- Thanh mua nhanh (điện thoại) ---------- */
.nt-buybar { display: none; }

/* ==========================================================
   WooCommerce
   ========================================================== */
.woocommerce .nt-breadcrumb, .woocommerce-breadcrumb { font-size: 14px; color: var(--ink-2); margin: 0 0 24px; }
.nt-breadcrumb a { color: var(--ink-2); text-decoration: none; }
.nt-breadcrumb a:hover { color: var(--red); }
.nt-bc-sep { margin: 0 8px; color: var(--bronze); }
.woocommerce-products-header__title, .woocommerce .page-title { margin-bottom: 8px; }
.term-description { color: var(--ink-2); max-width: 65ch; }
.woocommerce .woocommerce-result-count { color: var(--ink-2); font-size: 14px; margin: 8px 0 24px; }
.woocommerce .woocommerce-ordering { margin: 0 0 24px; }
.woocommerce .woocommerce-ordering select { min-width: 220px; }

/* Lưới sản phẩm */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px;
	margin: 0 0 24px; padding: 0; clear: both;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	float: none !important; width: auto !important; margin: 0 !important; padding: 0;
	display: flex; flex-direction: column; position: relative;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; }
.woocommerce ul.products li.product a img {
	width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 0 14px !important;
	border-radius: var(--r); background: var(--paper-2);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font: 500 1.08rem/1.35 var(--serif) !important; color: var(--ink); padding: 0 !important; margin: 0 0 6px !important;
}
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--red); }
.woocommerce ul.products li.product .price { color: var(--red) !important; font-weight: 600; font-size: 15.5px !important; margin: 0 0 14px !important; }
.woocommerce ul.products li.product .price del { color: var(--ink-2); opacity: .7; font-weight: 400; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .star-rating { font-size: 12px; margin: 0 0 8px; color: var(--bronze); }
.woocommerce ul.products li.product .button { margin-top: auto !important; width: 100%; }
.woocommerce ul.products li.product .onsale { position: absolute; z-index: 2; }
.woocommerce a.button, .wp-element-button, .nt-btn { text-decoration: none !important; }
.woocommerce ul.products li.product .added_to_cart { display: block; margin-top: 8px; font-size: 14px; text-align: center; color: var(--red); }

/* Nhãn giảm giá */
.woocommerce span.onsale {
	min-width: 0; min-height: 0; padding: 4px 10px; line-height: 1.4; top: 10px; left: 10px; right: auto; margin: 0;
	border-radius: 2px; background: var(--red); color: #FFF8F0; font: 600 12.5px/1.4 var(--sans);
}

/* Nút WooCommerce dùng chung kiểu */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.wp-element-button, .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 11px 20px !important;
	font: 500 15px/1.2 var(--sans) !important;
	border-radius: var(--r) !important; border: 1px solid var(--ink);
	background: transparent; color: var(--ink);
	transition: background-color .2s, color .2s, border-color .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover {
	background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button, .woocommerce a.checkout-button,
.wp-element-button, .wc-block-components-button:not(.is-link) {
	background: var(--red) !important; border-color: var(--red) !important; color: #FFF8F0 !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover, .wp-element-button:hover, .wc-block-components-button:not(.is-link):hover {
	background: var(--red-d) !important; border-color: var(--red-d) !important; color: #FFF8F0 !important;
}
.woocommerce a.button.loading::after, .woocommerce button.button.loading::after { top: auto; right: 10px; }
.woocommerce a.button.added::after { margin-left: 6px; }

/* Thông báo */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	background: var(--card) !important; color: var(--ink) !important; border-radius: var(--r);
	border: 1px solid var(--line) !important; border-left: 3px solid var(--bronze) !important;
}
.woocommerce-message { border-left-color: #4E7A46 !important; }
.woocommerce-error { border-left-color: var(--red) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--bronze) !important; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 38px; padding: 6px 14px !important; }

/* Trang chi tiết sản phẩm */
.woocommerce div.product { margin-bottom: 40px; }
.woocommerce div.product div.images { margin-bottom: 32px; }
.woocommerce div.product div.images img { border-radius: var(--r); background: var(--paper-2); }
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 3px; opacity: .6; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; outline: 1px solid var(--red); }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin-bottom: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--red) !important; font-size: 1.55rem !important; font-weight: 600; margin-bottom: 18px; }
.woocommerce div.product p.price del { color: var(--ink-2); font-size: 1.05rem; font-weight: 400; opacity: .7; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ink-2); margin-bottom: 24px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-bottom: 14px !important; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0 !important; }
.woocommerce .quantity .qty { width: 84px; min-height: 48px; text-align: center; }
.woocommerce div.product form.cart .button { float: none; flex: 1; min-width: 180px; min-height: 48px; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .variations { margin-bottom: 16px; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { padding: 6px 0; vertical-align: middle; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 12px; flex-wrap: wrap; }
.nt-quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.nt-quick .nt-btn { flex: 1; min-width: 180px; }
.woocommerce div.product .product_meta { font-size: 14px; color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--line); }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
.woocommerce div.product .stock { color: #4E7A46; font-weight: 500; }
.woocommerce div.product .out-of-stock { color: var(--red); }

/* Tab mô tả */
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 24px !important; border-bottom: 1px solid var(--line); display: flex; gap: 28px; overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; flex: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0 !important; color: var(--ink-2) !important; font-weight: 500 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; box-shadow: inset 0 -2px 0 var(--red); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 780px; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce table.shop_attributes { border-color: var(--line); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: var(--line); padding: 10px; font-style: normal; }
.woocommerce table.shop_attributes tr:nth-child(even) td, .woocommerce table.shop_attributes tr:nth-child(even) th { background: rgba(232,218,194,.4); }
.woocommerce .related > h2, .woocommerce .upsells > h2, .woocommerce .cross-sells > h2 { font-size: 1.6rem; margin: 56px 0 24px; }
.woocommerce #reviews #comments ol.commentlist li .comment-text { border-color: var(--line); border-radius: var(--r); }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--bronze); }

/* Giỏ hàng, thanh toán, tài khoản (bản cổ điển) */
.woocommerce table.shop_table { border-color: var(--line); border-radius: var(--r); background: var(--card); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line) !important; }
.woocommerce-cart table.cart img { width: 72px; border-radius: 3px; }
.woocommerce a.remove { color: var(--red) !important; }
.woocommerce a.remove:hover { background: var(--red); color: #FFF !important; }
.woocommerce-checkout #payment { background: var(--card) !important; border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce-checkout #payment div.payment_box { background: var(--paper-2) !important; color: var(--ink); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--paper-2) !important; }
.woocommerce form .form-row label { font-weight: 500; }
.woocommerce form .form-row .required { color: var(--red); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--red); font-weight: 600; }

/* Giỏ hàng / thanh toán dạng khối (mặc định của WooCommerce mới) */
.wc-block-cart, .wc-block-checkout { color: var(--ink); }
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--serif) !important; }
.wc-block-components-product-name { color: var(--ink) !important; font-weight: 500; }
.wc-block-components-product-price, .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--red); }
.wc-block-components-sidebar-layout .wc-block-components-sidebar { background: var(--card); border-radius: var(--r); padding: 20px !important; }
.wc-block-components-text-input input, .wc-block-components-text-input textarea, .wc-blocks-components-select__select { background: #FBF7F0 !important; border-color: var(--line) !important; border-radius: var(--r) !important; }
.wc-block-components-text-input.is-active input:focus { border-color: var(--red) !important; box-shadow: 0 0 0 1px var(--red) !important; }
.wc-block-components-radio-control__input:checked { border-color: var(--red) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--red) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--red) !important; border-color: var(--red) !important; }

/* ==========================================================
   Máy tính bảng & điện thoại
   ========================================================== */
@media (max-width: 1080px) {
	.nt-footer__grid { grid-template-columns: 1fr 1fr; }
	.nt-values__list { grid-template-columns: repeat(2, 1fr); }
	.nt-values__list li:nth-child(3) { border-left: 0; }
	.nt-values__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nt-steps { grid-template-columns: repeat(2, 1fr); }
	.nt-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
	.nt-steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
	:root { --head-h: 62px; }
	.nt-menu-toggle { display: inline-flex; margin-left: -10px; }
	.nt-nav { display: none; }
	.nt-header__in { gap: 8px; }
	.nt-header__brand { flex: 1; display: flex; justify-content: center; }
	.nt-header__tools { margin-right: -8px; }
	.nt-logo .nt-stamp { width: 40px; height: 40px; }
	.nt-logo__name { font-size: 1.2rem; }
	.nt-hide-sm { display: none; }

	.nt-hero { padding: 36px 0 56px; }
	.nt-smoke { height: 130px; }
	.nt-hero__grid { grid-template-columns: 1fr; gap: 44px; }
	.nt-hero__ring { width: 520px; height: 520px; right: -240px; top: -120px; }
	.nt-hero__stamp { width: 48px; height: 48px; margin-bottom: 20px; }
	.nt-hero__visual { max-width: 300px; margin-top: 40px; }
	.nt-story__grid { grid-template-columns: 1fr; gap: 32px; }
	.nt-story__media { max-width: 380px; width: 100%; margin: 0 auto; }
	.nt-story__seal { max-width: 220px; margin: 0 auto; }
	.nt-story__seal .nt-stamp--xl { width: 96px; height: 96px; }
	.nt-posts { grid-template-columns: 1fr 1fr; }
	.nt-cats { grid-template-columns: repeat(2, 1fr); }
	.nt-cta__in { flex-direction: column; align-items: flex-start; }

	.woocommerce div.product div.images, .woocommerce div.product div.summary,
	.woocommerce-page div.product div.images, .woocommerce-page div.product div.summary { float: none !important; width: 100% !important; }
}

@media (max-width: 782px) {
	.admin-bar .nt-header { top: 46px; }
}

@media (max-width: 640px) {
	:root { --gut: 16px; }
	body { font-size: 15.5px; }
	.nt-topbar { font-size: 12.5px; }
	.nt-topbar__in { min-height: 32px; }
	.nt-section { padding: 56px 0; }
	.nt-story { padding: 60px 0; }
	.nt-section + .nt-story, .nt-howto { padding-top: 60px !important; }
	.nt-head { margin-bottom: 22px; }
	.nt-hero__actions .nt-btn { flex: 1 1 100%; }
	.nt-values__list li { padding: 18px 12px 18px 0; flex-direction: column; gap: 8px; }
	.nt-values__list li:nth-child(even) { padding-left: 14px; }
	.nt-values__list .nt-ico { width: 26px; height: 26px; }
	.nt-values__list strong { font-size: 14px; }
	.nt-values__list span { font-size: 13px; }
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .98rem !important; }
	.woocommerce ul.products li.product .button { min-height: 40px; padding: 8px 10px !important; font-size: 14px !important; }
	.nt-steps { grid-template-columns: 1fr; }
	.nt-steps li, .nt-steps li + li { padding: 20px 56px 16px 0; border-left: 0; border-top: 1px solid var(--line); }
	.nt-steps li:first-child { border-top: 0; }
	.nt-steps li::before { font-size: 2rem; margin-bottom: 8px; }
	.nt-steps .nt-ico { top: 22px; right: 0; }
	.nt-posts { grid-template-columns: 1fr; }
	.nt-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
	.nt-cta__actions, .nt-cta__actions .nt-btn { width: 100%; }
	.woocommerce .woocommerce-ordering, .woocommerce .woocommerce-result-count { float: none; width: 100%; }
	.woocommerce .woocommerce-ordering select { width: 100%; }
	.nt-quick .nt-btn { min-width: 0; }

	/* Thanh mua nhanh */
	.nt-buybar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
		display: flex; align-items: center; gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--card); border-top: 1px solid var(--line);
		box-shadow: 0 -10px 24px -18px rgba(46,28,18,.55);
		transform: translateY(110%); transition: transform .25s;
	}
	.nt-buybar[hidden] { display: none; }
	.nt-buybar.is-visible { transform: none; }
	.nt-buybar__info { flex: 1; min-width: 0; }
	.nt-buybar__name { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.nt-buybar__price { display: block; color: var(--red); font-weight: 600; font-size: 15px; }
	.nt-buybar__price del { color: var(--ink-2); font-weight: 400; font-size: 13px; }
	.nt-buybar__price ins { text-decoration: none; }
	.nt-buybar__btn { flex: none; }
	.nt-float__btn { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.nt-smoke path { stroke-dashoffset: 0; opacity: .4; }
}

@media print {
	.nt-topbar, .nt-header, .nt-float, .nt-buybar, .nt-footer, .nt-cta { display: none !important; }
}
