/* =====================================================================
   2K NANO — hệ thiết kế "Garden" (port từ 2knano-website.html) trên Flatsome.
   Thứ tự: token → nền → tích hợp Flatsome → menu → nút → các khối → trang
   chi tiết / bài viết → footer → thanh liên hệ → chuyển động.
   Breakpoint của bố cục nội dung theo demo: 75rem / 60rem / 40rem / 23rem.
   Khoảng đệm trên–dưới của section theo Flatsome (sửa được trong UX Builder).
   ===================================================================== */

/* Font giống hệt bản demo (Google Fonts css2: Hanken Grotesk 400/500, Newsreader opsz 6–72, Vollkorn 600) — tự host */
@font-face { font-family: "Hanken Grotesk K2"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-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: "Hanken Grotesk K2"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-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: "Hanken Grotesk K2"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-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; }
@font-face { font-family: "Hanken Grotesk K2"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-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: "Hanken Grotesk K2"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-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: "Hanken Grotesk K2"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-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; }
@font-face { font-family: "Newsreader K2"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-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: "Newsreader K2"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-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: "Newsreader K2"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-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; }
@font-face { font-family: "Vollkorn K2"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/vollkorn-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: "Vollkorn K2"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/vollkorn-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: "Vollkorn K2"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/vollkorn-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; }

:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(95.8% 0.024 90); --color-paper-2: oklch(92.6% 0.030 90); --color-paper-3: oklch(89% 0.034 90);
  --color-ink: oklch(23% 0.050 152); --color-ink-2: oklch(33% 0.048 150); --color-muted: oklch(46% 0.034 142);
  --color-rule: oklch(83% 0.024 112); --color-rule-2: oklch(68% 0.042 138);
  --color-accent: oklch(47% 0.125 158); --color-accent-2: oklch(86% 0.075 150); --color-accent-ink: oklch(97% 0.015 95);
  --color-accent-hover: oklch(41% 0.115 158);
  --color-focus: oklch(48% 0.14 158); --tint-moss: oklch(47% 0.125 158 / 0.11); --tint-clay: oklch(54% 0.140 46 / 0.10);
  --font-display: "Vollkorn K2", "Vollkorn", ui-serif, Georgia, serif; --font-body: "Hanken Grotesk K2", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Newsreader K2", "Newsreader", ui-serif, Georgia, serif;
  --color-on-photo: oklch(97% 0.015 95); --scrim: oklch(18% 0.04 152);
  --shadow-pill: 0 1px 2px oklch(20% 0.03 152 / 0.08); --shadow-text-photo: 0 1px 2px oklch(18% 0.04 152 / 0.5);
  --nav-h: 64px; --nav-top: 16px; --bar-h: 60px;
  --radius-card: 4px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.012em; --display-weight: 600;
  --fs-pad: 15px; /* Flatsome: đệm hai bên mỗi cột */
}
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; --nav-h: 56px; --nav-top: 8px; } }

/* ---------- nền ---------- */
html { overflow-x: clip; scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body.k2 { overflow-x: clip; margin: 0; background: var(--color-paper); color: var(--color-ink-2); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); font-variant-numeric: oldstyle-nums; }
body.k2 #wrapper, body.k2 #main { background: var(--color-paper); }
.k2 ::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); }
.k2 :focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* phần tử gốc trong nội dung: độ ưu tiên thấp như demo, để class của từng khối thắng */
:where(#main, #footer) a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
:where(#main, #footer) a:hover { color: inherit; text-decoration-color: var(--color-accent); }
:where(#main, #footer) :is(h1, h2, h3, h4) { margin: 0; width: auto; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.15; overflow-wrap: break-word; min-width: 0; text-wrap: balance; color: var(--color-ink); text-rendering: auto; text-transform: none; font-variant-numeric: lining-nums; }
:where(#main, #footer) h1 { max-width: 20ch; font-size: var(--text-display); line-height: 1.2; hyphens: manual; }
:where(#main, #footer) h2 { max-width: 30ch; font-size: var(--text-section); hyphens: manual; }
:where(#main, #footer) h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.15; }
:where(#main, #footer) :is(p, ul, ol, dl, figure, form, blockquote, table) { margin: 0; }
:where(#main, #footer) p { text-wrap: pretty; }
:where(#main, #footer) p:not([class]) { max-width: 65ch; }
:where(#main, #footer) li { margin: 0; }
:where(#main, #footer) :is(ul, ol) :is(ul, ol) { margin: 0; }
:where(#main, #footer) dl { display: block; margin: 0; font-size: inherit; opacity: 1; text-transform: none; }
:where(#main, #footer) dl :is(dt, dd) { display: block; margin: 0; }
:where(#main, #footer) :is(th, td) { padding: 0; border: 0; font-size: inherit; line-height: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
:where(#main, #footer) table { border-collapse: collapse; margin: 0; }
:where(#main, #footer) :is(img, video) { max-width: 100%; height: auto; display: block; vertical-align: baseline; transition: none; }
:where(#main, #footer) svg { display: block; }
.k2 [hidden] { display: none !important; }
.k2 .lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; color: var(--color-ink-2); }
.k2 .num, .k2 td.num { font-variant-numeric: lining-nums tabular-nums; }
.k2 table, .k2 .num { font-variant-numeric: lining-nums tabular-nums; }
.k2 .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.k2 .caption { position: static; transform: none; background: none; padding: 0; overflow: visible; max-height: none; font: 400 var(--text-sm)/1.45 var(--font-outlier); color: var(--color-muted); }
.k2-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }

/* ---------- tích hợp lưới Flatsome ---------- */
/* nội dung rộng 1312px như .container của demo (row 1342px − 2 × 15px đệm cột); lề hai bên = --gutter */
.k2 :is(#content, #main) > .section, .k2 #footer .section { padding-left: calc(var(--gutter) - var(--fs-pad)); padding-right: calc(var(--gutter) - var(--fs-pad)); }
.k2 #main .section .col, .k2 #footer .section .col { padding-bottom: 0; }
.k2 .section { align-items: flex-start; }
/* hàng 2 cột: bề rộng cột tính lại để nội dung rộng đúng như lưới "fr" của demo (khe --g, mặc định 32px),
   thay cho khe 30px của Flatsome. Cột vẫn đặt span 3–9 trong UX Builder như thường. */
@media (min-width: 60.01rem) {
  .k2 .k2-st60 > .col:first-child { padding-right: calc(var(--g, var(--gap-columns)) / 2); }
  .k2 .k2-st60 > .col:last-child { padding-left: calc(var(--g, var(--gap-columns)) / 2); }
  .k2 .k2-st60 > .col.large-3 { flex-basis: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 3 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); max-width: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 3 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); }
  .k2 .k2-st60 > .col.large-4 { flex-basis: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 4 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); max-width: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 4 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); }
  .k2 .k2-st60 > .col.large-5 { flex-basis: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 5 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); max-width: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 5 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); }
  .k2 .k2-st60 > .col.large-6 { flex-basis: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 6 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); max-width: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 6 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); }
  .k2 .k2-st60 > .col.large-7 { flex-basis: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 7 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); max-width: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 7 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); }
  .k2 .k2-st60 > .col.large-8 { flex-basis: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 8 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); max-width: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 8 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); }
  .k2 .k2-st60 > .col.large-9 { flex-basis: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 9 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); max-width: calc((100% - 2 * var(--fs-pad) - var(--g, var(--gap-columns))) * 9 / 12 + var(--fs-pad) + var(--g, var(--gap-columns)) / 2); }
}
@media (min-width: 60.01rem) { .k2 .k2-st60 > .col:last-child { flex: 1 1 0%; max-width: none; } }
/* cột xếp chồng ở 60rem như demo (Flatsome tự xếp ở 850px; lớp này kéo lên đến 960px) */
@media (max-width: 60rem) {
  .k2 .k2-st60 > .col { flex-basis: 100%; max-width: 100%; }
  .k2 .k2-st60 > .col + .col { padding-top: var(--stack-gap, var(--gap-columns)); }
}
/* cột dạng "chồng khối": khoảng cách đều giữa các khối, nút đứng cùng hàng */
.k2 .k2-stack > .col-inner { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: var(--space-sm); }
.k2 .k2-stack > .col-inner > :not(.button) { flex: 0 0 100%; min-width: 0; }
/* 24px giữa các khối, 12px giữa hai hàng nút khi nút xuống dòng (như .actions của demo) */
.k2 .k2-stack:not(.dl__side) > .col-inner > :not(.button):not(:last-child) { margin-bottom: calc(var(--stack-inner, var(--space-lg)) - var(--space-sm)); }
.k2 .col-inner ul li, .k2 .col-inner ol li { margin-left: 0; margin-bottom: 0; }
:where(.k2 .col-inner) > :is(ul, ol) { list-style: none; padding: 0; }

/* khoảng trên của trang không có ảnh hero: menu nổi cao (--nav-top + --nav-h) */
body.k2:not(.k2-hero-page) #main { padding-top: calc(var(--nav-top) + var(--nav-h)); }
.k2 :is(#content, #main) > .section.k2-ph { padding-top: calc(var(--space-3xl) - var(--nav-top)) !important; }
.k2 :is(#content, #main) > .section.k2-ph--join { padding-top: calc(var(--space-2xl) - var(--nav-top)) !important; }
@media (max-width: 40rem) { .k2 :is(#content, #main) > .section.k2-ph--cat { padding-top: calc(var(--space-2xl) - var(--nav-top)) !important; } }

/* nền các dải */
.k2 .band--moss { background-color: var(--tint-moss); }
.k2 .band--ink { background-color: var(--color-ink); color: var(--color-paper); }
.k2 .band--ink :is(h2, h3), .k2 .band--ink .lead { color: var(--color-paper); }

/* đầu mục hai cột: tiêu đề trái, dòng dẫn phải */
.k2 .k2-head { align-items: flex-end; margin-bottom: var(--space-2xl); --stack-gap: var(--gap-columns); }
.k2 .k2-head > .col:last-child:not(.k2-stack) > .col-inner { display: flex; flex-direction: column; align-items: flex-end; }
.k2 .k2-head > .col:last-child .lead, .k2 .k2-head > .col:last-child .more { max-width: 52ch; }
.k2 .k2-head .lead { max-width: 52ch; }
.k2 .more { margin: 0; }
@media (max-width: 60rem) {
  .k2 .k2-head > .col:last-child:not(.k2-stack) > .col-inner { align-items: flex-start; }
}

/* ---------- menu: viên thuốc nổi ---------- */
.k2 #header { position: fixed; top: var(--nav-top); left: 0; right: 0; z-index: var(--z-sticky-nav); pointer-events: none; background: none; box-shadow: none; }
.k2 #header .header-wrapper { background: none; box-shadow: none; }
.k2 #header .header-bg-container { display: none; }
.k2 #masthead { height: auto !important; background: none; overflow: visible; border: 0; }
.k2 #masthead .header-inner { pointer-events: auto; box-sizing: border-box; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); height: var(--nav-h); margin: 0 auto; padding: 0 var(--space-xs) 0 var(--space-lg); gap: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: var(--shadow-pill); }
.k2 #logo { width: auto !important; margin: 0; padding: 0; flex-shrink: 0; }
.k2 #logo a { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-card); }
.k2 #logo img { width: auto; height: 36px; max-height: none !important; }
.k2 #logo a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.k2 #masthead .flex-col.flex-left.flex-grow { flex: 1 1 auto; }
.k2 #masthead .header-nav-main { gap: 0; margin: 0; }
.k2 #masthead .header-nav-main > li { margin: 0; padding: 0; }
.k2 #masthead .header-nav-main > li > a { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none; transition: background-color var(--dur-short) var(--ease-out); }
.k2 #masthead .header-nav-main > li > a:hover, .k2 #masthead .header-nav-main > li.has-dropdown:hover > a, .k2 #masthead .header-nav-main > li.current-dropdown > a { background: var(--color-paper-2); color: var(--color-ink); }
.k2 #masthead .header-nav-main > li.k2-current > a { background: var(--tint-moss); }
/* mũi tên menu con: đúng SVG của demo (nét 2px, 16px); "Sản phẩm" có link nên mũi tên đứng tách như nút riêng của demo */
.k2 #masthead .header-nav-main > li > a .icon-angle-down { display: inline-block; flex-shrink: 0; width: 16px; height: 16px; margin: 0 0 0 var(--space-2xs); font-size: 0; line-height: 0; opacity: 1; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px 16px no-repeat; transition: transform var(--dur-short) var(--ease-out); }
.k2 #masthead .header-nav-main > li > a .icon-angle-down::before { content: none; }
.k2 #masthead .header-nav-main > li.has-dropdown > a:not([href="#"]) { gap: 0; padding-right: var(--space-xs); }
.k2 #masthead .header-nav-main > li.has-dropdown > a:not([href="#"]) .icon-angle-down { margin-left: calc(var(--space-sm) + var(--space-xs)); }
.k2 #masthead .header-nav-main > li.has-dropdown > a[href="#"] { gap: 0; }
.k2 #masthead .header-nav-main > li.current-dropdown > a .icon-angle-down { transform: rotate(180deg); }
.k2 #masthead .nav-dropdown { top: calc(100% + var(--space-xs)); min-width: 15rem; padding: var(--space-xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-pill); display: grid; }
.k2 #masthead .nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--space-sm)); height: var(--space-sm); }
.k2 #masthead li.has-dropdown:hover > .nav-dropdown, .k2 #masthead li.current-dropdown > .nav-dropdown { left: 0; }
.k2 #masthead .nav-dropdown > li { margin: 0; border: 0; }
.k2 #masthead .nav-dropdown > li > a { display: flex; align-items: center; min-height: 44px; margin: 0; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-card); color: var(--color-ink); font-size: var(--text-md); font-weight: 400; line-height: 1.2; text-transform: none; }
.k2 #masthead .nav-dropdown > li > a:hover { background: var(--color-paper-2); color: var(--color-ink); }
.k2 #masthead .nav-dropdown-default > li > a { border-bottom: 0; }
.k2 #masthead .header-nav-main > li.header-button-1 { margin-left: calc(var(--space-lg) + var(--space-sm)); }
.k2 #masthead .header-button-1 .header-button { margin: 0; }
@media (max-width: 75rem) { .k2 #masthead .header-nav-main > li.header-button-1 { display: none; } }

/* nút "Menu" và tấm menu thả xuống trên điện thoại / máy tính bảng (demo: dưới 60rem) */
.k2 #masthead .mobile-nav > li { margin: 0; }
.k2 #masthead .nav-icon > a.k2-menu-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); letter-spacing: 0; text-transform: none; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.k2 #masthead .nav-icon > a.k2-menu-btn:hover { background: var(--color-paper-2); border-color: var(--color-ink-2); }
.k2 #masthead .nav-icon > a.k2-menu-btn i { display: none; }
@media (min-width: 850px) and (max-width: 60rem) {
  .k2 #masthead .hide-for-medium { display: none !important; }
  .k2 #masthead .show-for-medium { display: flex !important; }
}
@media (max-width: 60rem) {
  .k2 #masthead .header-inner { justify-content: space-between; }
  .k2 #masthead #logo { order: 0; flex: 0 0 auto; text-align: left; }
  .k2 #masthead .flex-col.show-for-medium.flex-left { display: none !important; }
  .k2 #masthead .flex-col.show-for-medium.flex-right { margin-left: auto; flex: 0 0 auto; }
}
@media (max-width: 40rem) {
  .k2 #masthead .header-inner { padding-left: var(--space-md); }
  .k2 #logo img { height: 30px; }
}
.k2-sheet { pointer-events: auto; box-sizing: border-box; display: grid; gap: var(--space-md); width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); margin: var(--space-xs) auto 0; padding: var(--space-xs) var(--space-lg) var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-pill); max-height: calc(100dvh - var(--nav-h) - var(--space-2xl)); overflow-y: auto; overscroll-behavior: contain; font-family: var(--font-body); }
.k2-sheet[hidden] { display: none; }
.k2-sheet ul { margin: 0; padding: 0; list-style: none; }
.k2-sheet li { margin: 0; }
.k2-sheet > ul > li + li { border-top: var(--rule-hair) solid var(--color-rule); }
.k2-sheet details li + li { border-top: var(--rule-hair) solid var(--color-rule); }
.k2-sheet ul a { display: flex; align-items: center; min-height: 52px; color: var(--color-ink); font-size: var(--text-lg); font-weight: 500; text-decoration: none; }
.k2-sheet ul a:hover { color: var(--color-ink); }
.k2-sheet details summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--color-ink); font-size: var(--text-lg); font-weight: 500; cursor: pointer; list-style: none; }
.k2-sheet details summary::-webkit-details-marker { display: none; }
.k2-sheet details summary::after { content: "+"; font-size: var(--text-xl); color: var(--color-muted); }
.k2-sheet details[open] summary::after { content: "–"; }
.k2-sheet details ul { padding-left: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.k2-sheet details ul a { min-height: 44px; font-size: var(--text-md); font-weight: 400; }
.k2-sheet .btn { justify-self: start; }
@media (min-width: 60.01rem) { .k2-sheet { display: none !important; } }
@media (max-width: 40rem) { .k2 .k2-sheet .btn--primary { display: none; } }

/* ---------- nút ---------- */
.k2 .btn, .k2 .button.k2-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; margin: 0; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); font-variant-numeric: lining-nums; letter-spacing: 0; text-transform: none; white-space: nowrap; text-decoration: none; text-shadow: none; box-shadow: none; cursor: pointer; vertical-align: middle; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.k2 .button.k2-btn > span { line-height: 1; }
.k2 .btn:hover, body.k2 .button.k2-btn:hover { background: var(--color-paper-2); border-color: var(--color-ink-2); color: var(--color-ink); box-shadow: none; }
.k2 .btn:active, .k2 .button.k2-btn:active { transform: translateY(1px); }
.k2 .btn:focus-visible, .k2 .button.k2-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
body.k2 .btn--primary, body.k2 .button.k2-btn--primary, body.k2 .button.primary.k2-btn--primary:not(.is-outline), body.k2 #masthead .header-button .button { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
body.k2 .btn--primary:hover, body.k2 .button.k2-btn--primary:hover, body.k2 #masthead .header-button .button:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-accent-ink); }
body.k2 #masthead .header-button .button { display: inline-flex; align-items: center; min-height: 48px; margin: 0; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill) !important; font: 500 var(--text-md)/1 var(--font-body); font-variant-numeric: lining-nums; letter-spacing: 0; text-transform: none; white-space: nowrap; box-shadow: none; }
body.k2 .button.k2-btn--leaf, body.k2 .btn--leaf { background: transparent; border-color: var(--color-accent-2); color: var(--color-accent-2); }
body.k2 .button.k2-btn--leaf:hover, body.k2 .btn--leaf:hover { background: color-mix(in oklab, var(--color-accent-2) 14%, transparent); border-color: var(--color-accent-2); color: var(--color-accent-2); }
.k2 .band--ink .button.k2-btn--leaf:focus-visible, .k2 .band--ink a:focus-visible { outline-color: var(--color-accent-2); }
.k2 .link { color: var(--color-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.22em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.k2 .link:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.k2 .link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }
.k2 .actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.k2 .col-inner > .button.k2-btn { margin: 0; }
@media (prefers-reduced-motion: reduce) { .k2 .btn, .k2 .button.k2-btn, .k2 .link { transition: none; } }

/* ---------- hero: ảnh poster tràn màn hình (trang chủ) ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: 100dvh; padding-block: calc(var(--nav-h) + var(--space-2xl)) var(--space-3xl); isolation: isolate; }
.hero__photo { position: absolute; inset: 0; margin: 0; z-index: 0; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2), var(--color-paper-3)); }
.hero__photo picture { position: absolute; inset: 0; display: block; }
.hero__photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 60%); filter: contrast(1.06) saturate(0.94); }
.hero h1 .w { display: inline-block; }
.hero__body { position: relative; z-index: 3; display: grid; gap: var(--space-lg); max-width: 46rem; }
.k2 .hero h1 { max-width: 16ch; font-size: clamp(2.75rem, 5.2vw + 0.75rem, 5.75rem); }
.k2 .hero .lead { max-width: 36ch; color: var(--color-ink); }
.hero .actions { margin-top: var(--space-xs); }
.k2 .hero .btn:not(.btn--primary) { border-color: var(--color-ink-2); background: color-mix(in oklab, var(--color-paper) 55%, transparent); }
.k2 .hero .btn:not(.btn--primary):hover { background: var(--color-paper); }
@media (max-width: 40rem) {
  .hero { align-items: start; min-height: calc(100svh - var(--bar-h)); padding-block: calc(var(--nav-h) + var(--space-xl)) var(--space-xl); }
  .hero__photo img { object-position: var(--pos-sm, 50% 100%); }
  .k2 .hero h1 { font-size: 2.375rem; }
  .k2 .hero .lead { font-size: var(--text-md); max-width: 30ch; }
  .hero .actions, .offer .actions { display: none; }
}

/* ---------- lưới sản phẩm ---------- */
.k2 .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.k2 .grid > li { margin: 0; }
.card { position: relative; display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; }
.card__img { aspect-ratio: 1; padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-2); }
.card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.k2 .card__name { margin-top: var(--space-xs); font-size: var(--text-title); }
.k2 .card__name a { display: block; min-height: 44px; text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.k2 .card__name a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.card__meta { font-size: var(--text-sm); color: var(--color-muted); }
.card--photo .card__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-xs); height: 100%; margin: 0; }
.card--photo .card__photo { position: relative; min-height: 300px; border-radius: var(--radius-card); flex: 1; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2), var(--color-paper-3)); }
.card--photo .card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; filter: contrast(1.06) saturate(0.94); }
.card--photo .caption { max-width: 60ch; }
/* trang chủ: mỗi dòng sơn một kệ */
.k2 .grid--home { margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.grid--n5 > .card:first-child { grid-column: span 1; }
.card--photo { grid-column: span 2; }
.grid--n2 .card--photo { grid-column: span 1; }
.grid--n3 .card--photo { order: -1; }
/* danh mục */
.cat-list .card--photo-4 { grid-column: span 4; }
.cat-list .card--photo-3 { grid-column: span 3; }
.cat-list .card--photo-2 { grid-column: span 2; }
.cat-list .card--photo-1 { grid-column: span 1; }
.cat-list .card--photo .card__photo { min-height: 0; }
/* demo lỗi: ảnh "span 3/4" trong lưới 3 hoặc 2 cột đẻ thêm cột ngầm (chữ dựng đứng từng ký tự).
   Ý định của demo: ảnh lấp hàng, xuống hàng riêng thì tràn hết bề ngang và có tỉ lệ riêng. */
@media (max-width: 75rem) {
  .cat-list :is(.card--photo-4, .card--photo-3) { grid-column: 1 / -1; }
  .cat-list :is(.card--photo-4, .card--photo-3) .card__photo { aspect-ratio: 21 / 9; }
}
@media (max-width: 60rem) {
  .cat-list .card--photo-2 { grid-column: 1 / -1; }
  .cat-list .card--photo-2 .card__photo { aspect-ratio: 21 / 9; }
}
@media (max-width: 40rem) {
  .cat-list :is(.card--photo-2, .card--photo-3, .card--photo-4) .card__photo { aspect-ratio: 3 / 2; }
}
@media (max-width: 23rem) { .cat-list .card--photo { grid-column: 1 / -1; } }
@media (max-width: 75rem) {
  .k2 .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .k2 .grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  .k2 .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-md); }
  .k2 .grid--home { gap: var(--space-xl) var(--gap-columns); }
}
@media (max-width: 40rem) {
  .k2 .grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-md); }
  .card--photo { grid-column: 1 / -1; }
  .k2 .grid--n2 .card--photo { grid-column: 1 / -1; }
  .card--photo .card__photo { min-height: 0; aspect-ratio: 3 / 2; }
  .k2 .card__name { font-size: var(--text-md); }
}
@media (max-width: 23rem) { .k2 .grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- trang chủ: bốn dòng sơn (hàng Flatsome .k2-line) ---------- */
.k2 .k2-line { padding-block: calc(var(--space-2xl) + var(--rule-hair)) var(--space-2xl); background: linear-gradient(var(--color-rule-2), var(--color-rule-2)) 50% 0 / calc(100% - 2 * var(--fs-pad)) 1px no-repeat; --stack-gap: var(--space-xl); }
.k2 .k2-line:last-child { padding-bottom: calc(var(--space-2xl) + var(--rule-hair)); background: linear-gradient(var(--color-rule-2), var(--color-rule-2)) 50% 0 / calc(100% - 2 * var(--fs-pad)) 1px no-repeat, linear-gradient(var(--color-rule-2), var(--color-rule-2)) 50% 100% / calc(100% - 2 * var(--fs-pad)) 1px no-repeat; }
.k2 .k2-line > .col:first-child > .col-inner { display: grid; gap: var(--space-md); align-content: start; position: sticky; top: calc(var(--nav-top) + var(--nav-h) + var(--space-xl)); }
.k2 .k2-line > .col:first-child h3 { font-size: var(--text-2xl); }
.k2 .k2-line > .col:first-child h3 a { text-decoration: none; }
.k2 .k2-line > .col:first-child h3 a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.k2 .k2-line > .col:first-child p { color: var(--color-ink-2); }
@media (max-width: 60rem) { .k2 .k2-line > .col:first-child > .col-inner { position: static; } }

/* ---------- hệ sơn: tab dạng công tắc (Flatsome tabgroup .k2-switch) ---------- */
.k2 .k2-switch > ul.nav { display: inline-flex; flex-wrap: wrap; gap: var(--space-2xs); width: auto; max-width: 100%; margin: 0; padding: var(--space-2xs); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper); }
.k2 .k2-switch > ul.nav > li { margin: 0; padding: 0; }
.k2 .k2-switch > ul.nav > li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); letter-spacing: 0; text-transform: none; white-space: nowrap; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.k2 .k2-switch > ul.nav > li > a:hover { background: var(--color-paper-2); color: var(--color-ink); }
.k2 .k2-switch > ul.nav > li.active > a { background: var(--color-ink); color: var(--color-paper); }
.k2 .k2-switch > ul.nav > li > a:active { transform: translateY(1px); }
.k2 .k2-switch > .tab-panels { margin-top: var(--space-xl); padding: 0; }
.k2 .k2-switch .panel { padding: 0; }
.k2 .k2-panel { margin: 0 !important; width: auto !important; align-items: flex-start; --stack-gap: var(--space-xl); }
.k2 .k2-panel > .col { padding: 0; }
.k2 .k2-panel { --fs-pad: 0px; }
@media (max-width: 40rem) {
  .k2 .k2-switch > ul.nav { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--radius-card); width: 100%; }
  .k2 .k2-switch > ul.nav > li > a { display: flex; width: 100%; border-radius: var(--radius-card); }
}
.k2 .steps { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .steps > li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-2xs) var(--space-md); padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); counter-increment: step; }
.k2 .steps > li::before { content: counter(step); grid-row: span 2; font: 600 var(--text-2xl)/1 var(--font-display); color: var(--color-accent); font-variant-numeric: lining-nums; }
.k2 .steps h3 { font-size: var(--text-title); }
.k2 .steps h3 a { text-decoration-color: var(--color-rule-2); }
.k2 .steps h3 a:hover { text-decoration-color: var(--color-accent); }
.k2 .steps p { color: var(--color-ink-2); }
.k2 .k2-pair > .col-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin: 0; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper); }
.k2 .pair__fig { display: grid; gap: var(--space-xs); margin: 0; }
.k2 .pair__fig img { mix-blend-mode: multiply; }
.k2 .pair__fig .caption { text-align: center; font-size: var(--text-sm); }
@media (max-width: 40rem) {
  .k2 .caption, .k2 .art__body figcaption { font-size: var(--text-md); }
  .k2 .k2-pair > .col-inner { padding: var(--space-md); }
  .k2 .link, .k2 .steps h3 a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- ảnh trong thân trang ---------- */
.k2 .fig { display: grid; gap: var(--space-xs); margin: 0; }
.photo { position: relative; border-radius: var(--radius-card); overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2), var(--color-paper-3)); }
.photo--32 { aspect-ratio: 3 / 2; }
.photo--43 { aspect-ratio: 4 / 3; }
.photo--169 { aspect-ratio: 16 / 9; }
.photo--11 { aspect-ratio: 1; }
.photo:not(.photo--auto) img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; filter: contrast(1.06) saturate(0.94); }
.photo--auto { overflow: visible; background: none; border-radius: 0; }
.k2 .fig .caption { max-width: 60ch; }

/* ---------- trang chủ: giới thiệu + bốn phương châm ---------- */
.k2 .k2-about { --stack-gap: var(--space-2xl); align-items: flex-start; }
.k2 .k2-about .lead + p, .k2 .k2-about p:not(.lead) { color: var(--color-ink-2); }
.k2 .k2-values { margin-top: var(--space-2xl); }
.k2 .values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-columns); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .values > li { display: grid; gap: var(--space-2xs); padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.k2 .values strong { font: 600 var(--text-xl)/1.25 var(--font-display); color: var(--color-ink); font-variant-numeric: lining-nums; }
.k2 .values span { color: var(--color-ink-2); }
.k2 .values--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.k2 .values--four > li { padding-right: var(--space-lg); }
@media (max-width: 75rem) { .k2 .values--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .k2 .values, .k2 .values--four { grid-template-columns: minmax(0, 1fr); } }

/* ---------- câu hỏi thường gặp (Flatsome accordion .k2-faq-list) ---------- */
.k2 .k2-faq { --stack-gap: var(--space-2xl); align-items: flex-start; }
.k2 .k2-faq > .col:first-child > .col-inner { position: sticky; top: calc(var(--nav-top) + var(--nav-h) + var(--space-xl)); }
.k2 .faq__photo { margin-top: var(--space-md); }
@media (max-width: 60rem) { .k2 .k2-faq > .col:first-child > .col-inner { position: static; } }
.k2 .k2-faq-list { display: grid; margin: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .k2-faq-list .accordion-item { border-bottom: var(--rule-hair) solid var(--color-rule); }
.k2 .k2-faq-list .accordion-title { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 44px; margin: 0; padding: var(--space-lg) 0; border: 0; color: var(--color-ink); font: 600 var(--text-xl)/1.15 var(--font-display); letter-spacing: var(--tracking-display); font-variant-numeric: lining-nums; text-decoration: none; cursor: pointer; user-select: none; }
.k2 .k2-faq-list .accordion-title > span { text-wrap: balance; transition: color var(--dur-short) var(--ease-out); }
.k2 .k2-faq-list .accordion-title .toggle { display: none; }
.k2 .k2-faq-list .accordion-title::after { content: "+"; flex-shrink: 0; width: 1.5rem; text-align: center; font: 400 var(--text-2xl)/1 var(--font-body); color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.k2 .k2-faq-list .accordion-title:hover > span { color: var(--color-accent); }
.k2 .k2-faq-list .accordion-title:hover::after { color: var(--color-ink); }
.k2 .k2-faq-list .accordion-title:active::after { transform: scale(0.88); }
.k2 .k2-faq-list .accordion-title.active { color: var(--color-ink); border: 0; }
.k2 .k2-faq-list .accordion-title.active::after { transform: rotate(45deg); color: var(--color-ink); }
.k2 .k2-faq-list .accordion-inner { max-width: 62ch; padding: 0 var(--space-3xl) var(--space-xl) 0; color: var(--color-ink-2); }
.k2 .k2-faq-list .accordion-inner > p { max-width: none; }
.k2 .k2-faq-list .accordion-inner > * + * { margin-top: var(--space-sm); }
@media (max-width: 40rem) {
  .k2 .k2-faq-list .accordion-title { font-size: var(--text-lg); }
  .k2 .k2-faq-list .accordion-inner { padding-right: 0; }
}

/* ---------- đại lý trên nền xanh đậm ---------- */
.k2 .dl__side > .col-inner { display: grid; justify-items: start; gap: var(--space-lg); width: fit-content; max-width: 36rem; margin-left: auto; margin-right: 0; }
.k2 .dl__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-paper) 30%, transparent); }
.k2 .dl__list > li { padding: var(--space-lg) var(--space-lg) var(--space-xs); border-left: var(--rule-hair) solid color-mix(in oklab, var(--color-paper) 30%, transparent); font: 600 var(--text-xl)/1.25 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-paper); text-wrap: balance; }
.k2 .dl__list > li:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 60rem) {
  .k2 .dl__side > .col-inner { margin-left: 0; }
  .k2 .dl__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k2 .dl__list > li { min-height: 0; padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-left: 0; border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-paper) 30%, transparent); }
}
@media (max-width: 40rem) {
  .k2 .dl__list { grid-template-columns: minmax(0, 1fr); }
  .k2 .dl__list > li { font-size: var(--text-title); }
}

/* ---------- tin tức ---------- */
.k2 .news-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.k2 .news-grid > li { margin: 0; }
.news-card { position: relative; display: grid; gap: var(--space-xs); grid-column: span 4; }
.news-card--lead { grid-column: span 12; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-md) var(--gap-columns); align-items: end; }
.news-card--lead .news-card__img { grid-row: 1 / span 4; }
.news-card__img { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); }
.news-card--lead .news-card__img { aspect-ratio: 16 / 9; }
.news-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; filter: contrast(1.06) saturate(0.94); }
.news-card__date { font-size: var(--text-sm); color: var(--color-muted); }
.k2 .news-card__title { font-size: var(--text-title); }
.k2 .news-card--lead .news-card__title { font-size: var(--text-2xl); }
.k2 .news-card__title a { display: inline-block; min-height: 44px; text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.k2 .news-card__title a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.news-card__excerpt { color: var(--color-ink-2); max-width: 52ch; }
.news-grid--all .news-card { grid-column: span 6; grid-template-columns: minmax(0, 1fr); align-items: start; }
.news-grid--all .news-card .news-card__img { grid-row: auto; aspect-ratio: 16 / 10; }
.k2 .news-grid--all .news-card .news-card__title { font-size: var(--text-xl); }
.news-grid--three .news-card { grid-column: span 4; }
@media (max-width: 60rem) {
  .news-card, .news-grid--all .news-card, .news-grid--three .news-card { grid-column: span 6; }
  .news-card--lead { grid-column: span 12; grid-template-columns: minmax(0, 1fr); }
  .news-card--lead .news-card__img { grid-row: auto; }
}
@media (max-width: 40rem) { .news-card, .news-grid--all .news-card, .news-grid--three .news-card { grid-column: span 12; } }

/* ---------- con số + bảng sự thật ---------- */
.k2 .k2-facts { align-items: flex-start; }
.k2 .numeral { display: grid; gap: var(--space-sm); margin: 0; }
.numeral__fig { font: 600 clamp(7rem, 12vw, 11rem)/0.86 var(--font-display); font-variant-numeric: oldstyle-nums proportional-nums; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.numeral__label { max-width: 18ch; font-size: var(--text-lead); line-height: 1.4; color: var(--color-ink-2); }
.k2 .facts-table { width: 100%; border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .facts-table :is(th, td) { padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.k2 .facts-table th { width: 33.4%; padding-right: var(--gap-columns); font: 600 var(--text-title)/1.25 var(--font-display); color: var(--color-ink); font-variant-numeric: lining-nums; }
.k2 .facts-table td { color: var(--color-ink-2); }
.k2 .facts-table a.link { font-weight: 500; }
@media (max-width: 40rem) {
  .k2 .facts-table :is(th, td) { display: block; width: auto; padding: 0; border: 0; }
  .k2 .facts-table th { padding-top: var(--space-md); }
  .k2 .facts-table td { padding-bottom: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
}

/* ---------- danh mục /san-pham/ ---------- */
.k2 .k2-cathead { align-items: flex-end; --stack-gap: var(--gap-columns); }
.k2 .k2-cathead h1 { font-size: var(--text-display-s); max-width: 18ch; }
.k2 .k2-cathead > .col:last-child > .col-inner { display: flex; justify-content: flex-end; }
.k2 .k2-cathead .lead { max-width: 34ch; }
@media (max-width: 60rem) { .k2 .k2-cathead > .col:last-child > .col-inner { justify-content: flex-start; } }
.cat__tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
html:not(.k2js) .cat__tools, html:not(.k2js) .cat__count { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.k2 .chip { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; margin: 0; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.k2 .chip:hover { background: var(--color-paper-2); }
.k2 .chip:active { transform: translateY(1px); }
.k2 .chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.k2 .chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.search { display: grid; gap: var(--space-2xs); }
.k2 .search label { display: block; margin: 0; font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
.k2 .search input { width: min(22rem, 100%); height: 48px; min-height: 48px; margin: 0; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); box-shadow: none; outline: 2px solid transparent; outline-offset: -3px; }
.k2 .search input::placeholder { color: var(--color-muted); opacity: 1; }
.k2 .search input:focus { background: var(--color-paper); box-shadow: none; color: var(--color-ink); }
.k2 .search input:focus-visible { outline-color: var(--color-focus); }
.cat__count { margin-top: var(--space-lg) !important; font-size: var(--text-sm); color: var(--color-muted); }
.cat__empty { margin-top: var(--space-xl) !important; color: var(--color-ink-2); }
.k2 :is(#content, #main) > .section.k2-catlist { padding-top: var(--space-xl) !important; }
.cat__linehead { display: grid; gap: var(--space-xs); margin: var(--space-2xl) 0 var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); scroll-margin-top: calc(var(--nav-h) + var(--space-xl)); }
.cat__linehead:first-of-type { margin-top: 0; }
/* điểm neo: JS đặt scroll-margin = khoảng từ mép section + (nav-h + 40px), như section có id của demo */
.k2-anchor { display: block; height: 0; scroll-margin-top: calc(var(--nav-h) + var(--space-xl) + var(--section-gap-s)); }
.k2 .cat__line { font-size: var(--text-section); }
.cat__note { color: var(--color-muted); }
.cat__linehead[hidden] { display: none; }
.cat__linehead + .grid { margin-top: 0; }
@media (max-width: 40rem) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .search, .k2 .search input { width: 100%; }
  .k2 .cat__line { font-size: var(--text-xl); }
}
@media (prefers-reduced-motion: reduce) { .k2 .chip { transition: none; } }

/* bảng chọn lót + phủ */
.table-wrap { overflow-x: auto; }
.k2 .choose { width: 100%; min-width: 40rem; border-collapse: collapse; }
.k2 .choose :is(th, td) { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: baseline; }
.k2 .choose thead th { padding-block: var(--space-sm); border-bottom-color: var(--color-rule-2); font: 500 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); white-space: nowrap; }
.k2 .choose tbody th { width: 30%; font: 600 var(--text-title)/1.25 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-ink); }
.k2 .choose td { color: var(--color-ink-2); }
.k2 .choose a { font-weight: 500; }
@media (max-width: 60rem) {
  .table-wrap { overflow: visible; }
  .k2 .choose { min-width: 0; }
  .k2 .choose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .k2 .choose tr { display: grid; gap: var(--space-xs); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .k2 .choose :is(th, td) { display: block; width: auto; padding: 0; border: 0; }
  .k2 .choose td::before { content: attr(data-label); display: block; font-size: var(--text-sm); color: var(--color-muted); }
  .k2 .choose a { display: inline-block; padding-block: var(--space-sm); margin-block: calc(-1 * var(--space-sm)); }
  .k2 .choose tbody th { width: auto; }
}

/* ---------- trang chi tiết sản phẩm (single-san_pham.php) ---------- */
.k2-sec { padding-block: var(--section-gap); }
.k2-sec.section--s { padding-block: var(--section-gap-s); }
.offer { padding-block: calc(var(--space-xl) - var(--nav-top)) var(--space-xl); }
.offer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--space-3xl); align-items: center; min-height: calc(100dvh - var(--nav-h) - var(--space-3xl)); }
.offer__img { position: relative; aspect-ratio: 1; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.offer__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.offer__body { display: grid; gap: var(--space-md); align-content: center; }
.crumbs { font-size: var(--text-sm); color: var(--color-muted); }
.k2 .crumbs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--color-ink-2); }
.k2 .crumbs a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.k2 .offer h1 { max-width: 18ch; font-size: var(--text-display-s); }
.offer__code { font-size: var(--text-sm); color: var(--color-muted); }
.k2 .keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gap-columns); margin: var(--space-sm) 0 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .keyfacts > div { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.k2 .keyfacts dt { font-size: var(--text-sm); color: var(--color-muted); }
.k2 .keyfacts dd { margin: 0; font: 600 var(--text-md)/1.35 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-ink); }
.offer__price { font-size: var(--text-sm); color: var(--color-muted); }
.k2 .head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); max-width: 52rem; }
.k2 .head--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; max-width: none; }
.k2 .head--split .lead, .k2 .head--split > .link { justify-self: end; }
.k2 .switch .seg { display: inline-flex; flex-wrap: wrap; gap: var(--space-2xs); padding: var(--space-2xs); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: var(--color-paper); }
.k2 .seg [role="tab"] { min-height: 44px; margin: 0; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.k2 .seg [role="tab"]:hover { background: var(--color-paper-2); }
.k2 .seg [role="tab"][aria-selected="true"] { background: var(--color-ink); color: var(--color-paper); }
.k2 .seg [role="tab"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.k2 .seg [role="tab"]:active { transform: translateY(1px); }
html:not(.k2js) .seg { display: none; }
.switch__panels { margin-top: var(--space-xl); }
.k2-panel--spec { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
html:not(.k2js) .k2-panel--spec + .k2-panel--spec { margin-top: var(--space-2xl); padding-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule-2); }
html:not(.k2js) .k2-panel--spec[hidden] { display: grid !important; }
.k2 .panel__title { grid-column: 1 / -1; font-size: var(--text-title); }
html.k2js .panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.k2-panel--spec > p { max-width: 65ch; color: var(--color-ink-2); }
.switch--spec .seg { max-width: 100%; }
.k2 .spec__table { width: 100%; border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .spec__table :is(th, td) { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; font-weight: 400; color: var(--color-ink-2); }
.k2 .spec__table td { text-align: right; color: var(--color-ink); font-weight: 500; white-space: nowrap; }
.k2 .spec__table--kv td { text-align: left; white-space: normal; }
.k2 .spec__table--kv th { width: 36%; }
.k2 .spec__list { display: grid; gap: var(--space-xs); max-width: 65ch; margin: 0; padding-left: 1.1em; color: var(--color-ink-2); list-style: disc; }
.k2 .spec__list li { margin: 0; }
.k2 .spec__steps { display: grid; max-width: 60rem; margin: 0; padding: 0; list-style: none; counter-reset: sys; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .spec__steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: var(--space-md); margin: 0; padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); counter-increment: sys; color: var(--color-ink-2); }
.k2 .spec__steps li::before { content: counter(sys); font: 600 var(--text-lg)/1.3 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-accent); }
.k2 .spec__steps .num { color: var(--color-ink); font-weight: 500; white-space: nowrap; }
.k2 .grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k2 .grid--related:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 75rem) { .k2 .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 60rem) {
  .k2 .grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer__grid, .k2 .head--split { grid-template-columns: minmax(0, 1fr); }
  .k2 .head--split .lead, .k2 .head--split > .link { justify-self: start; }
  .offer__grid { min-height: 0; gap: var(--space-lg); }
}
@media (max-width: 40rem) {
  .k2 .keyfacts { grid-template-columns: minmax(0, 1fr); }
  .k2 .switch .seg--scroll { display: flex; flex-wrap: nowrap; overflow-x: auto; width: auto; max-width: 100%; border-radius: var(--radius-pill); scrollbar-width: none; }
  .k2 .switch .seg--scroll [role="tab"] { border-radius: var(--radius-pill); flex-shrink: 0; }
  .k2 .grid--related, .k2 .grid--related:has(> :nth-child(4)) { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-md); }
  .k2 .grid--related > * { scroll-snap-align: start; }
  .offer__img { padding: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) { .k2 .seg [role="tab"] { transition: none; } }

/* ---------- đăng ký nhà phân phối ---------- */
.k2 .k2-join { align-items: flex-start; --stack-gap: var(--space-2xl); }
.k2 .k2-join h1 { max-width: 14ch; font-size: var(--text-display-s); }
.k2 .perks { display: grid; grid-template-columns: calc(9rem + var(--space-md)) minmax(0, 1fr); margin: var(--space-md) 0 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .perks dt, .k2 .perks dd { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.k2 .perks dt { padding-right: var(--space-md); font: 600 var(--text-lg)/1.3 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-ink); }
.k2 .perks dd { margin: 0; color: var(--color-ink-2); }
.k2 .k2-form > .col-inner { display: grid; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); }
.k2 .form__title { font-size: var(--text-xl); }
.k2 .wpcf7 { margin: 0; }
.k2 .wpcf7-form { display: grid; gap: var(--space-md); margin: 0; }
.k2 .wpcf7-form .field { display: grid; gap: var(--space-xs); margin: 0; padding: 0; border: 0; min-width: 0; }
.k2 .wpcf7-form .field > label, .k2 .wpcf7-form .field legend { display: block; margin: 0; padding: 0; border: 0; width: auto; font-size: var(--text-md); font-weight: 500; color: var(--color-ink); text-transform: none; letter-spacing: 0; }
.k2 .wpcf7-form-control-wrap { display: block; }
.k2 .wpcf7-form :is(input[type="text"], input[type="tel"], textarea) { display: block; width: 100%; height: auto; min-height: 48px; margin: 0; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); line-height: 1.55; box-shadow: none; outline: 2px solid transparent; outline-offset: -3px; }
.k2 .wpcf7-form textarea { resize: vertical; min-height: 0; height: auto; padding-top: var(--space-sm); }
.k2 .wpcf7-form :is(input, textarea):focus { background: var(--color-paper); box-shadow: none; color: var(--color-ink); }
.k2 .wpcf7-form :is(input, textarea):focus-visible { outline-color: var(--color-focus); }
.k2 .wpcf7-form .wpcf7-not-valid { border-color: var(--color-error); }
.k2 .wpcf7-not-valid-tip { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-error); }
.k2 .wpcf7-form .field--choice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); }
.k2 .wpcf7-form .field--choice legend { float: left; margin: 0 var(--space-xs) 0 0; padding: 0; }
.k2 .wpcf7-form .field--choice .wpcf7-form-control-wrap { display: contents; }
.k2 .wpcf7-radio { display: contents; }
.k2 .wpcf7 .wpcf7-list-item { margin: 0; }
.k2 .wpcf7-list-item label { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; margin: 0; font-size: var(--text-md); font-weight: 500; color: var(--color-ink); cursor: pointer; }
.k2 .wpcf7-list-item input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent); }
.k2 .wpcf7-list-item input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.k2 .wpcf7-form .form__submit { display: flex; align-items: center; gap: var(--space-sm); margin: 0; }
body.k2 .wpcf7-form input.wpcf7-submit { display: inline-flex; align-items: center; justify-content: center; height: auto; min-height: 48px; margin: 0; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
body.k2 .wpcf7-form input.wpcf7-submit:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
body.k2 .wpcf7-form input.wpcf7-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.k2 .wpcf7-spinner { margin: 0; }
/* như demo: luôn giữ một dòng cho thông báo (không nhảy bố cục khi gửi) */
.k2 .wpcf7 form .wpcf7-response-output { display: block !important; min-height: 1lh; margin: 0; padding: 0; border: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--color-ink-2); }
.k2 .wpcf7 form.invalid .wpcf7-response-output, .k2 .wpcf7 form.unaccepted .wpcf7-response-output, .k2 .wpcf7 form.failed .wpcf7-response-output, .k2 .wpcf7 form.spam .wpcf7-response-output { color: var(--color-error); }
.k2 .wpcf7 form.sent .wpcf7-response-output { color: var(--color-success); }
.k2 .wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 40rem) {
  .k2 .perks { grid-template-columns: minmax(0, 1fr); }
  .k2 .perks dt { padding: var(--space-md) 0 0; border-bottom: 0; }
  .k2 .perks dd { padding-top: var(--space-2xs); }
  .k2 .k2-form > .col-inner { padding: var(--space-lg); }
}

/* dải kệ cuộn ngang, tràn hai mép */
.k2 .k2-bleed { max-width: none !important; width: auto; margin-inline: calc(var(--fs-pad) - var(--gutter)) !important; }
.k2 .k2-bleed > .col { padding: 0; }
.k2 .rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 21%); gap: var(--gap-columns); margin: 0; padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) var(--space-md); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); overscroll-behavior-x: contain; }
.k2 .rail > * { scroll-snap-align: start; margin: 0; }
.k2 .rail .card__name { font: 500 var(--text-md)/1.45 var(--font-body); color: var(--color-ink); }
.k2 .rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
@media (max-width: 60rem) { .k2 .rail { grid-auto-columns: minmax(12rem, 42%); } }
@media (max-width: 40rem) { .k2 .rail { grid-auto-columns: 62%; } }

/* ---------- trang giới thiệu ---------- */
.k2 .k2-abouthero { align-items: center; --stack-gap: var(--space-2xl); --g: var(--space-3xl); }
.k2 .k2-abouthero h1 { font-size: var(--text-display-s); max-width: 16ch; }
.k2 .k2-rows { align-items: flex-start; --stack-gap: var(--space-xl); }
.k2 .rows__list { display: grid; grid-template-columns: calc((100% - var(--space-md)) * 0.25 + var(--space-md)) minmax(0, 1fr); margin: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .rows__list dt, .k2 .rows__list dd { padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.k2 .rows__list dt { padding-right: var(--space-md); font: 600 var(--text-title)/1.25 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-ink); }
.k2 .rows__list dd { margin: 0; color: var(--color-ink-2); }
.k2 .mottos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .mottos > li { padding: var(--space-lg) var(--space-lg) var(--space-xs) var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule-2); font: 600 var(--text-2xl)/1.2 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-ink); text-wrap: balance; }
.k2 .mottos > li:first-child { padding-left: 0; border-left: 0; }
.k2 .wraps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.k2 .wraps > li { margin: 0; }
.k2 .wraps a { display: grid; gap: var(--space-xs); color: var(--color-ink); text-decoration: none; }
.k2 .wraps img { width: 100%; height: auto; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.k2 .wraps span { display: flex; align-items: center; min-height: 44px; font-weight: 500; }
.k2 .wraps a:hover span { text-decoration: underline; text-decoration-color: var(--color-accent); }
.k2 .wraps a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-card); }
.k2 .wraps__note { display: grid; align-content: end; gap: var(--space-xs); padding-bottom: var(--space-xl); font: 400 var(--text-lead)/1.4 var(--font-outlier); color: var(--color-ink-2); }
.k2 .wraps__note strong { font: 600 var(--text-2xl)/1.15 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-ink); }
@media (max-width: 75rem) { .k2 .wraps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 60rem) {
  .k2 .mottos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k2 .mottos > li { padding-left: 0; border-left: 0; border-bottom: var(--rule-hair) solid var(--color-rule); padding-bottom: var(--space-lg); }
}
@media (max-width: 40rem) {
  .k2 .wraps, .k2 .mottos { grid-template-columns: minmax(0, 1fr); }
  .k2 .rows__list { grid-template-columns: minmax(0, 1fr); }
  .k2 .rows__list dt { padding: var(--space-lg) 0 0; border-bottom: 0; }
  .k2 .rows__list dd { padding-top: var(--space-2xs); }
}

/* ---------- trang liên hệ ---------- */
.k2 .k2-contact { align-items: flex-start; --stack-gap: var(--space-2xl); --g: var(--space-3xl); }
.k2 .k2-contact h1 { font-size: var(--text-display-s); }
.k2 .contact__list { display: grid; grid-template-columns: calc(7rem + var(--space-md)) minmax(0, 1fr); align-items: baseline; margin: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .contact__list dt, .k2 .contact__list dd { align-self: stretch; padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.k2 .contact__list dt { padding-right: var(--space-md); padding-top: calc(var(--space-sm) + 0.15em); font-size: var(--text-sm); color: var(--color-muted); }
.k2 .contact__list dd { margin: 0; color: var(--color-ink); font-weight: 500; overflow-wrap: anywhere; }
.k2 .contact__map { display: grid; gap: var(--space-sm); }
.k2 .contact__map iframe { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }
.k2 .contact__map:focus-within iframe { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.k2 .ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.k2 .ways > li { display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; }
.k2 .ways strong { font: 600 var(--text-xl)/1.25 var(--font-display); font-variant-numeric: lining-nums; color: var(--color-ink); }
.k2 .ways span { color: var(--color-ink-2); }
.k2 .ways .link { justify-self: start; margin-top: var(--space-xs); }
@media (max-width: 60rem) {
  .k2 .ways { grid-template-columns: minmax(0, 1fr); }
  .k2 .ways > li { padding-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
}
@media (max-width: 40rem) {
  .k2 .contact__list { grid-template-columns: minmax(0, 1fr); }
  .k2 .contact__list dt { padding: var(--space-sm) 0 0; border-bottom: 0; }
  .k2 .contact__list dd { padding-top: var(--space-2xs); }
  .k2 .contact__map { display: none; }
  .k2 .k2-contact > .col:last-child { display: none; }
}

/* ---------- bài viết (single.php) ---------- */
.art__col { width: min(100%, 48rem); margin-inline: auto; }
.art__head { padding-block: calc(var(--space-2xl) - var(--nav-top)) 0; }
.art__intro { display: grid; gap: var(--space-md); }
.k2 .art__intro h1 { font-size: var(--text-display-s); max-width: none; text-wrap: pretty; }
.art__meta { color: var(--color-muted); }
.art__cover { display: grid; gap: var(--space-xs); width: min(100%, 48rem); margin: var(--space-2xl) auto 0 !important; }
.art__cover-img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); }
.art__cover-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; filter: contrast(1.06) saturate(0.94); }
.art__main { padding-block: var(--space-2xl); }
.art__body { display: grid; gap: var(--space-lg); font-size: 1.125rem; line-height: 1.7; color: var(--color-ink-2); }
.k2 .art__body :is(h2, h3, h4) { max-width: none; margin: var(--space-xl) 0 0; color: var(--color-ink); text-wrap: balance; font-variant-numeric: lining-nums; scroll-margin-top: calc(var(--nav-top) + var(--nav-h) + var(--space-2xl)); }
.k2 .art__body h2 { font-size: var(--text-2xl); }
.k2 .art__body h3 { font-size: var(--text-xl); line-height: 1.15; }
.k2 .art__body h4 { font: 600 var(--text-lg)/1.3 var(--font-display); font-variant-numeric: lining-nums; letter-spacing: var(--tracking-display); }
.k2 .art__body p { max-width: none; margin: 0; }
.k2 .art__body > :is(ul, ol) { display: grid; gap: var(--space-xs); margin: 0; padding-left: 1.25em; }
.k2 .art__body > :is(ul, ol) li { margin: 0; }
.k2 .art__body :is(b, strong, th) { font-weight: 500; color: var(--color-ink); }
.k2 .art__body :is(em, i) { font-style: italic; }
.k2 .art__body figure, .k2 .art__fig { display: grid; gap: var(--space-xs); margin: var(--space-md) 0; width: auto !important; max-width: 100%; }
.k2 .art__body figure img { width: 100%; height: auto; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.k2 .art__body .art__fig--tall { justify-items: center; }
.k2 .art__body .art__fig--tall img { width: auto; max-width: 100%; max-height: min(36rem, 80svh); }
.k2 .art__body .art__fig--tall figcaption { text-align: center; }
.k2 .art__body figcaption { font: 400 var(--text-sm)/1.45 var(--font-outlier); color: var(--color-muted); }
.k2 .art__body table { width: 100%; border-collapse: collapse; }
.k2 .art__body :is(th, td) { padding: var(--space-sm) var(--space-sm) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: top; }
.k2 .art__toc { display: grid; gap: var(--space-sm); padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); font-size: var(--text-md); line-height: 1.5; }
.k2 .art__toc-h { font-weight: 500; color: var(--color-ink); }
.k2 .art__toc ul { display: grid; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; }
.k2 .art__toc ul ul { margin: var(--space-2xs) 0 0; padding-left: var(--space-lg); }
.k2 .art__toc li { margin: 0; }
.k2 .art__toc a { display: inline-block; padding-block: var(--space-2xs); color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.k2 .art__toc a:hover { color: var(--color-accent); }
.k2 .art__toc a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 40rem) {
  .k2 .art__intro h1 { font-size: 1.75rem; }
  .k2 .art__body figcaption { font-size: var(--text-md); }
  .art__cover { margin-top: var(--space-xl) !important; }
  .k2 .art__toc { padding: var(--space-md); }
  .k2 .art__toc a { display: flex; align-items: center; min-height: 44px; padding-block: var(--space-2xs); }
}
@media (prefers-reduced-motion: reduce) { .k2 .art__toc a { transition: none; } }

/* ---------- footer ---------- */
.k2 #footer .k2-footer { border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.k2 .k2-fgrid { --stack-gap: var(--gap-columns); }
/* lưới footer như demo: 4fr + 3 × 2.6fr, khe 32px; dưới 60rem 2 cột, cột thương hiệu tràn hàng */
.k2 .k2-fgrid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: var(--gap-columns); padding-inline: var(--fs-pad); }
.k2 .k2-fgrid::before, .k2 .k2-fgrid::after { display: none !important; }
.k2 .k2-fgrid > .col { max-width: none; padding: 0; }
@media (max-width: 60rem) {
  .k2 .k2-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k2 .k2-fgrid > .col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 23rem) { .k2 .k2-fgrid { grid-template-columns: minmax(0, 1fr); } }
.k2 .footer__brand > .col-inner { display: grid; gap: var(--space-sm); align-content: start; }
.k2 .footer__logo img { width: 180px; height: auto; margin-bottom: var(--space-xs); }
.k2 #footer .footer__h { margin: 0 0 var(--space-sm); font: 500 var(--text-sm)/1.4 var(--font-body); letter-spacing: 0; color: var(--color-muted); }
.k2 #footer ul, .k2 #footer dl { margin: 0; padding: 0; list-style: none; }
.k2 #footer li a, .k2 #footer dd a { display: inline-flex; align-items: center; min-height: 36px; max-width: 100%; color: var(--color-ink); text-decoration: none; overflow-wrap: anywhere; }
/* demo: email dài (247px) tràn khỏi cột 176px và bị cắt ở mép màn hình khi rộng 961–1344px → cho xuống dòng trong cột */
.k2 #footer li a:hover, .k2 #footer dd a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.k2 #footer a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.k2 #footer dd + dt { margin-top: var(--space-sm); }
.k2 #footer dt { font-size: var(--text-sm); color: var(--color-muted); }
.k2 #footer dd { margin: 0; color: var(--color-ink); }
.k2 #footer .absolute-footer { padding: 0 0 var(--space-xl); background: var(--color-paper-2); color: var(--color-muted); font-size: var(--text-sm); }
.k2 #footer .absolute-footer > .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); padding: var(--space-lg) 0 0; border-top: var(--rule-hair) solid var(--color-rule); text-align: left; }
.k2 #footer .absolute-footer > .container::before, .k2 #footer .absolute-footer > .container::after { display: none; }
.k2 #footer .absolute-footer .footer-primary { order: 1; float: none; }
.k2 #footer .absolute-footer .footer-secondary { order: 2; float: none; padding: 0; }
.k2 #footer .absolute-footer .copyright-footer { padding: 0; }
.k2 .meoketing-badge { position: relative; }
@media (max-width: 40rem) {
  .k2 #footer li a, .k2 #footer dd a { min-height: 44px; }
}

/* ---------- thanh "Gọi / Nhắn Zalo" trên điện thoại ---------- */
.k2-bar { display: none; }
@media (max-width: 40rem) {
  .k2-bar { position: fixed; inset: auto 0 0; z-index: var(--z-sticky); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xs); height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding: var(--space-xs) var(--space-md) calc(var(--space-xs) + env(safe-area-inset-bottom)); background: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule); }
  .k2-bar .button.k2-btn { min-height: 44px; padding: 0 var(--space-sm); width: 100%; }
  body.k2 { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  body.k2:has(:is(input, textarea, select):focus) .k2-bar { display: none; }
}

/* ---------- chuyển động: ảnh hero "lăn" từ trái như một lớp sơn, chữ nổi lên từng từ, rồi ảnh thở chậm ---------- */
html.k2js:not(.hero-in) .hero__photo { clip-path: inset(0 100% 0 0); }
html.k2js .hero__photo { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-in-out); }
html.k2js:not(.hero-in) .hero__photo img { transform: scale(1.08) translateX(-2%); }
html.k2js .hero__photo img { transition: transform 2s var(--ease-out); }
html.k2js.hero-in .hero__photo picture { animation: hero-breathe 28s var(--ease-in-out) 2s infinite alternate both; }
@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.05) translate3d(-1%, -0.8%, 0); } }
html.k2js:not(.hero-in) .hero h1 .w { opacity: 0; transform: translateY(0.45em); }
html.k2js .hero h1 .w { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(240ms + var(--w, 0) * 70ms); }
html.k2js:not(.hero-in) .hero__body > :not(h1) { opacity: 0; transform: translateY(12px); }
html.k2js .hero__body > :not(h1) { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
html.k2js .hero__body > :nth-child(2) { transition-delay: 760ms; }
html.k2js .hero__body > :nth-child(3) { transition-delay: 880ms; }
.k2js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.k2js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.k2js .hero__body > *, html.k2js .hero h1 .w, html.k2js .hero__photo img, .k2js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.k2js .hero__photo { clip-path: none; transition: none; }
  html.k2js.hero-in .hero__photo picture { animation: none; }
  .k2 *:not(.keep-motion), .k2 *:not(.keep-motion)::before, .k2 *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .k2 .k2-faq-list .accordion-title::after, .k2 .k2-faq-list .accordion-title > span, .k2 .chip, .k2 #masthead .header-nav-main > li > a { transition: none; }
}
/* chữ số: nhãn chữ hiển thị dùng số thẳng hàng; chỉ con số lớn giữ kiểu old-style */
.k2 :is(.values strong, .ways strong, .wraps__note strong, .dl__list li, .perks dt, .rows__list dt, .mottos li, .facts-table th) { font-variant-numeric: lining-nums; }
