/* =====================================================================
   Skin Mila — dùng cho layout Views/Shared/_LayoutMila.cshtml
   Theo wireframe "Prototype website Mila" (desktop 1440, nội dung 1200,
   lưới 12 cột gutter 24). Mobile: 1 cột, lề 20, H2 30px.
   ===================================================================== */

:root {
  --m-ink: #3D566A;          /* chữ chính, nút chính */
  --m-ink-hover: #708AA6;
  --m-muted: #5B6B7B;        /* chữ phụ */
  --m-brown: #7B5F51;        /* eyebrow */
  --m-beige: #F1EBE2;        /* nền be */
  --m-sky: #E6EFF4;          /* nền xanh nhạt */
  --m-mist: #DCE5EC;         /* khung ảnh chờ */
  --m-cream: #F9F9F7;
  --m-line: #D5DDE4;
  --m-line-soft: #E6EBEF;
  --m-input: #B9C6D2;
  --m-navy: #2F4658;         /* khung video */
  --m-gold: #F7E3B1;
  --m-on-dark: #D3DDE6;
  --m-dark-line: #56708A;
  --m-dark-card: #4A6378;
  --m-shopee: #C8431C;
  --m-tiktok: #141414;
  --m-white: #FFFFFF;
  --m-font: Krub, "Segoe UI", system-ui, -apple-system, sans-serif;
  --m-header-h: 84px;
  --m-sticky-top: 0px;       /* tăng thêm chiều cao thanh công cụ edit nếu có */
}

/* ---------- Nền tảng ---------- */
.mila-body {
  margin: 0;
  background: var(--m-white);
  color: var(--m-ink);
  font-family: var(--m-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(.mila-body) *, :where(.mila-body) *::before, :where(.mila-body) *::after { box-sizing: border-box; }
:where(.mila-body) img { max-width: 100%; display: block; }
:where(.mila-body) a { color: var(--m-ink); text-decoration: none; }
:where(.mila-body) a:hover { color: var(--m-ink-hover); }
:where(.mila-body) h1, :where(.mila-body) h2, :where(.mila-body) h3, :where(.mila-body) p, :where(.mila-body) ul, :where(.mila-body) ol, :where(.mila-body) figure { margin: 0; }
:where(.mila-body) h1, :where(.mila-body) h2, :where(.mila-body) h3 { font-family: var(--m-font); color: inherit; font-weight: 600; }
:where(.mila-body) b, :where(.mila-body) strong { font-weight: 600; }
:where(.mila-body) button { font-family: inherit; cursor: pointer; }
.mila-body :focus-visible { outline: 2px solid #D9B880; outline-offset: 2px; }
.mila-body .row { display: flex; flex-wrap: wrap; margin: 0; }
.mila-body .row > [class*="col-"] { width: 100%; padding: 0; min-width: 0; }
@media (min-width: 992px) {
  .mila-body .row > .col-lg-1 { width: 8.3333%; } .mila-body .row > .col-lg-2 { width: 16.6667%; }
  .mila-body .row > .col-lg-3 { width: 25%; }     .mila-body .row > .col-lg-4 { width: 33.3333%; }
  .mila-body .row > .col-lg-5 { width: 41.6667%; } .mila-body .row > .col-lg-6 { width: 50%; }
  .mila-body .row > .col-lg-7 { width: 58.3333%; } .mila-body .row > .col-lg-8 { width: 66.6667%; }
  .mila-body .row > .col-lg-9 { width: 75%; }     .mila-body .row > .col-lg-10 { width: 83.3333%; }
  .mila-body .row > .col-lg-11 { width: 91.6667%; } .mila-body .row > .col-lg-12 { width: 100%; }
}
/* RenderModulesAsync bọc mỗi section trong div.row > div.col: bỏ khung bọc quanh header để position: sticky bám theo cả trang */
.mila-body .row:has(> [class*="col-"] > .m-header),
.mila-body .row:has(> [class*="col-"] > .m-header) > [class*="col-"] { display: contents; }
.m-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.m-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* ô bẫy spam */

.m-container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.m-container--narrow { width: min(960px, 100% - 40px); }

/* ---------- Section ---------- */
.m-sec { padding: 96px 0; background: var(--m-white); }
.m-sec--md { padding: 88px 0; }
.m-sec--sm { padding: 72px 0; }
.m-sec--xs { padding: 48px 0; }
.m-sec--beige { background: var(--m-beige); }
.m-sec--sky { background: var(--m-sky); }
.m-sec--dark { background: var(--m-ink); color: var(--m-white); }
.m-sec--line { border-bottom: 1px solid var(--m-line-soft); }
.m-sec--flush-top { padding-top: 0; }
.m-stack { display: flex; flex-direction: column; gap: 48px; }
.m-stack--40 { gap: 40px; }
.m-stack--32 { gap: 32px; }
.m-stack--24 { gap: 24px; }
.m-stack--16 { gap: 16px; }
.m-stack--center { align-items: center; text-align: center; }
[id] { scroll-margin-top: calc(var(--m-header-h) + var(--m-sticky-top) + 16px); }

/* ---------- Chữ ---------- */
.m-eyebrow { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .14em; color: var(--m-brown); text-transform: uppercase; }
.m-sec--dark .m-eyebrow, .m-on-dark .m-eyebrow { color: var(--m-gold); }
.m-h1 { font-size: 52px; line-height: 62px; }
.m-h1--xl { font-size: 60px; line-height: 70px; }
.m-h1--md { font-size: 48px; line-height: 58px; }
.m-h1--pdp { font-size: 44px; line-height: 52px; }
.m-h2 { font-size: 40px; line-height: 48px; }
.m-h2--lg { font-size: 44px; line-height: 52px; }
.m-h2--md { font-size: 36px; line-height: 44px; }
.m-h2--sm { font-size: 32px; line-height: 40px; }
.m-h3 { font-size: 22px; line-height: 30px; font-weight: 600; }
.m-h4 { font-size: 20px; line-height: 28px; font-weight: 600; }
.m-lead { font-size: 18px; line-height: 29px; color: var(--m-muted); }
.m-text { font-size: 17px; line-height: 27px; color: var(--m-muted); }
.m-small { font-size: 15px; line-height: 23px; color: var(--m-muted); }
.m-xs { font-size: 13px; line-height: 19px; color: var(--m-muted); }
.m-sec--dark .m-lead, .m-sec--dark .m-text, .m-sec--dark .m-small, .m-on-dark .m-text, .m-on-dark .m-small { color: var(--m-on-dark); }
.m-head { display: flex; flex-direction: column; gap: 12px; max-width: 840px; }
.m-head--wide { max-width: none; }
.m-head--center { align-items: center; text-align: center; max-width: 760px; margin-inline: auto; }
.m-head--hero { gap: 16px; max-width: 880px; }
.m-headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.m-big { font-size: 40px; line-height: 44px; font-weight: 600; color: var(--m-ink); }
.m-big--sm { font-size: 32px; line-height: 38px; }
.m-sec--dark .m-big, .m-card--dark .m-big { color: var(--m-white); }

/* ---------- Nút & link ---------- */
.m-btn {
  height: 52px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; border: 1.5px solid var(--m-ink); background: transparent; color: var(--m-ink);
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.m-btn:hover { background: var(--m-sky); color: var(--m-ink); text-decoration: none; }
.m-btn--primary { background: var(--m-ink); color: var(--m-white); }
.m-btn--primary:hover { background: #2F4658; border-color: #2F4658; color: var(--m-white); }
.m-btn--white { background: var(--m-white); border-color: var(--m-white); color: var(--m-ink); }
.m-btn--white:hover { background: var(--m-sky); border-color: var(--m-sky); color: var(--m-ink); }
.m-btn--ghost { border-color: var(--m-white); color: var(--m-white); }
.m-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: var(--m-white); }
.m-btn--shopee { background: var(--m-shopee); border-color: var(--m-shopee); color: var(--m-white); }
.m-btn--shopee:hover { background: #A93715; border-color: #A93715; color: var(--m-white); }
.m-btn--tiktok { background: var(--m-tiktok); border-color: var(--m-tiktok); color: var(--m-white); }
.m-btn--tiktok:hover { background: #333; border-color: #333; color: var(--m-white); }
.m-btn--lg { height: 56px; padding: 0 32px; font-size: 16px; }
.m-btn--sm { height: 48px; padding: 0 26px; }
.m-btn--xs { height: 40px; padding: 0 16px; font-size: 13px; }
.m-btn--block { width: 100%; }
.m-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.m-btns--10 { gap: 10px; }
.m-link { font-size: 15px; font-weight: 600; color: var(--m-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.m-sec--dark .m-link, .m-on-dark .m-link { color: var(--m-white); }
.m-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- Chip ---------- */
.m-chip { align-self: flex-start; display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--m-sky); color: var(--m-ink); font-size: 12px; font-weight: 600; line-height: 18px; }
.m-chip--beige { background: var(--m-beige); }
.m-chip--gold { background: var(--m-gold); color: var(--m-brown); }
.m-chip--sky2 { color: #4E6784; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Ảnh / khung chờ ---------- */
.m-ph {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  border-radius: 14px; background: var(--m-mist); color: var(--m-muted); font-size: 14px; line-height: 21px; overflow: hidden;
}
.m-ph--r24 { border-radius: 24px; }
.m-ph--r16 { border-radius: 16px; }
.m-ph--r12 { border-radius: 12px; }
.m-media { display: flex; align-items: center; justify-content: center; border-radius: 14px; overflow: hidden; background: var(--m-sky); }
.m-media--r24 { border-radius: 24px; }
.m-media--r16 { border-radius: 16px; }
.m-fill { width: 100%; height: 100%; }
.m-media--cream { background: var(--m-cream); }
.m-media--pad { padding: 32px; }
.m-media img { width: 100%; height: 100%; object-fit: cover; }
.m-media--contain img { object-fit: contain; }
.m-h-100 { height: 100px; } .m-h-220 { height: 220px; } .m-h-240 { height: 240px; } .m-h-260 { height: 260px; } .m-h-280 { height: 280px; }
.m-h-320 { height: 320px; } .m-h-360 { height: 360px; } .m-h-380 { height: 380px; } .m-h-440 { height: 440px; }
.m-h-480 { height: 480px; } .m-h-520 { height: 520px; } .m-h-600 { height: 600px; }

/* Video chờ */
.m-video {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; min-height: 200px; padding: 24px; border-radius: 14px; background: var(--m-navy); color: var(--m-on-dark); font-size: 14px; text-align: center;
}
.m-video__play {
  width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--m-white); color: var(--m-ink);
  display: flex; align-items: center; justify-content: center;
}
.m-video__play--sm { width: 52px; height: 52px; }
.m-video { overflow: hidden; text-decoration: none; }
.m-video:hover { color: var(--m-on-dark); }
.m-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.m-video__play, .m-video > span { position: relative; z-index: 1; }
.m-video iframe, .m-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.m-video.is-playing > :not(iframe):not(video) { display: none; }
.m-video--r24 { border-radius: 24px; }
.m-video--r18 { border-radius: 18px; }

/* ---------- Lưới ---------- */
.m-grid { display: grid; gap: 24px; }
.m-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.m-grid--center { align-items: center; }
.m-grid--stretch { align-items: stretch; }
.m-grid--12 { gap: 12px; }
.m-grid--16 { gap: 16px; }
.m-grid--64 { column-gap: 64px; }
.m-span-2 { grid-column: span 2; }
.m-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; }
.m-split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.m-split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.m-split--top { align-items: start; }
.m-pad-r { padding-right: 40px; }
.m-pad-r-lg { padding-right: 72px; }
.m-pad-l { padding-left: 56px; }

/* ---------- Thẻ ---------- */
.m-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--m-white); color: var(--m-ink); }
.m-card--p20 { padding: 20px; }
.m-card--p28 { padding: 28px; }
.m-card--line { border: 1px solid var(--m-line); }
.m-card--beige { background: var(--m-beige); }
.m-card--sky { background: var(--m-sky); }
.m-card--dark { background: var(--m-dark-card); color: var(--m-white); }
.m-card--ink { background: var(--m-ink); color: var(--m-white); }
.m-card--flat { padding: 0; background: transparent; border-radius: 0; }
.m-card__title { font-size: 20px; line-height: 28px; font-weight: 600; }
.m-card__title--lg { font-size: 22px; line-height: 30px; }
.m-card__text { font-size: 15px; line-height: 23px; color: var(--m-muted); }
.m-card--dark .m-card__text, .m-card--ink .m-card__text { color: var(--m-on-dark); }
.m-card__foot { margin-top: auto; }
.m-card a.m-link, .m-card .m-card__foot { padding-top: 4px; }
a.m-card { text-decoration: none; }
a.m-card:hover { color: var(--m-ink); }
a.m-card:hover .m-card__title { text-decoration: underline; text-underline-offset: 3px; }

/* Danh sách chấm */
.m-dots { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.m-dots li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 24px; }
.m-dots li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--m-ink); flex-shrink: 0; }
.m-dots--gold li::before { background: var(--m-gold); }
.m-dots--sm li { font-size: 15px; line-height: 23px; }

/* Bước đánh số tròn */
.m-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.m-steps li { display: flex; gap: 16px; }
.m-steps__no {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--m-ink);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}
.m-steps__body { display: flex; flex-direction: column; gap: 2px; }
.m-steps__body b { font-size: 16px; }
.m-steps__body span { font-size: 15px; line-height: 22px; color: var(--m-muted); }

/* ---------- Bảng ---------- */
.m-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-table { width: 100%; border-collapse: collapse; background: var(--m-white); }
.m-table th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 14px; border-bottom: 2px solid var(--m-ink); white-space: nowrap; }
.m-table td { padding: 14px 16px; border-bottom: 1px solid var(--m-line-soft); font-size: 15px; line-height: 22px; color: var(--m-ink); vertical-align: top; }
.m-table td:first-child { font-weight: 600; }

/* ---------- Header ---------- */
.m-header {
  position: sticky; top: var(--m-sticky-top); z-index: 900; height: var(--m-header-h);
  background: var(--m-white); border-bottom: 1px solid var(--m-line-soft);
}
.m-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.m-header__logo img { height: 52px; width: auto; }
.m-nav { display: flex; gap: 44px; font-size: 15px; font-weight: 500; }
.m-nav a { position: relative; padding: 8px 0; }
.m-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--m-ink); }
.m-header__tools { display: flex; align-items: center; gap: 12px; }
.m-icon-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--m-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.m-icon-btn:hover { background: var(--m-sky); }
.m-header__contact { height: 44px; padding: 0 24px; }
.m-burger { display: none; }
.m-search {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--m-white); border-bottom: 1px solid var(--m-line-soft);
  padding: 16px 0; box-shadow: 0 12px 24px rgba(61, 86, 106, .08);
}
.m-search form { display: flex; gap: 12px; }
.m-search .m-input { flex: 1; }

/* ---------- Breadcrumb ---------- */
.m-crumb { border-bottom: 1px solid var(--m-line-soft); font-size: 13px; }
.m-crumb ol { list-style: none; padding: 0; min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.m-crumb li { display: flex; align-items: center; gap: 10px; }
.m-crumb li + li::before { content: "/"; color: var(--m-line); }
.m-crumb a { color: var(--m-muted); }
.m-crumb [aria-current] { color: var(--m-ink); font-weight: 600; }

/* ---------- Footer ---------- */
.m-footer { padding: 72px 0 40px; background: var(--m-ink); color: var(--m-on-dark); }
.m-footer__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; font-size: 14px; line-height: 22px; }
.m-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.m-footer__brand img { height: 60px; width: auto; align-self: flex-start; }
.m-footer__col { display: flex; flex-direction: column; gap: 10px; }
.m-footer__col > b, .m-footer__col summary, .m-footer__brand > b { color: var(--m-white); font-weight: 600; }
.m-footer__col summary { list-style: none; cursor: default; }
.m-footer__col summary::-webkit-details-marker { display: none; }
.m-footer__links { display: flex; flex-direction: column; gap: 10px; }
.m-footer a { color: var(--m-on-dark); }
.m-footer a:hover { color: var(--m-white); }
.m-footer .m-btn--tiktok { border-color: var(--m-dark-line); }
.m-social { display: flex; gap: 10px; }
.m-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--m-dark-line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--m-white);
}
.m-social a:hover { background: rgba(255, 255, 255, .1); color: var(--m-white); }
.m-footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--m-dark-line);
  display: flex; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 20px;
}

/* ---------- Nút nổi ---------- */
.m-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 800; height: 52px; padding: 0 22px;
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; background: var(--m-white);
  border: 1.5px solid var(--m-ink); box-shadow: 0 8px 24px rgba(61, 86, 106, .18);
  font-size: 15px; font-weight: 600; color: var(--m-ink);
}
.m-float:hover { background: var(--m-sky); }
.m-float svg { flex-shrink: 0; }
body.has-sticky-buy .m-float { bottom: 112px; }

/* ---------- Form ---------- */
.m-form { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 24px; background: var(--m-white); color: var(--m-ink); }
.m-form--line { border: 1px solid var(--m-line); }
.m-form__title { font-size: 22px; line-height: 30px; font-weight: 600; }
.m-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.m-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.m-input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--m-input); background: var(--m-white);
  color: var(--m-ink); font-family: inherit; font-size: 15px; font-weight: 400;
}
select.m-input { padding: 0 12px; }
textarea.m-input { height: auto; min-height: 120px; padding: 14px 16px; line-height: 23px; resize: vertical; }
.m-input:focus { outline: none; border-color: var(--m-ink); box-shadow: 0 0 0 3px rgba(61, 86, 106, .12); }
.m-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.m-fieldset legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.m-choice {
  min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--m-input); background: var(--m-white);
  display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer;
}
.m-choice:has(input:checked) { border: 2px solid var(--m-ink); background: var(--m-sky); }
.m-choice input { accent-color: var(--m-ink); margin: 0; }
.m-choice--card { min-height: 88px; padding: 16px 20px; align-items: flex-start; border-color: var(--m-line); }
.m-choice--card > span { display: flex; flex-direction: column; gap: 2px; }
.m-choice--card b { font-size: 16px; }
.m-choice--card span span { font-size: 14px; line-height: 20px; color: var(--m-muted); }
.m-choice--card input { margin-top: 4px; }
.m-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 19px; color: var(--m-muted); font-weight: 400; cursor: pointer; }
.m-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--m-ink); }
.m-consent a { color: var(--m-ink); text-decoration: underline; }
.m-form .m-btn { height: 56px; font-size: 16px; }
.m-alert { padding: 12px 16px; border-radius: 12px; background: #FBEAE5; color: #8A2E14; font-size: 14px; line-height: 21px; }

/* ---------- Accordion ---------- */
.m-acc { border-bottom: 1px solid var(--m-line); }
.m-acc__item { border-top: 1px solid var(--m-line); }
.m-acc__btn {
  width: 100%; min-height: 64px; padding: 12px 0; border: 0; background: transparent; color: var(--m-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 600; text-align: left;
}
.m-acc__sign { font-size: 22px; font-weight: 400; width: 22px; text-align: center; flex-shrink: 0; }
.m-acc__body { padding: 0 0 20px; font-size: 15px; line-height: 24px; color: var(--m-muted); max-width: 760px; }
.m-acc__body[hidden] { display: none; }

/* ---------- Tab / chip điều hướng ---------- */
.m-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.m-tab {
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--m-line); background: var(--m-white);
  color: var(--m-ink); font-size: 14px; display: inline-flex; align-items: center; white-space: nowrap;
}
.m-tab:hover { border-color: var(--m-ink); color: var(--m-ink); }
.m-tab.is-active, .m-tab[aria-selected="true"] { border: 1.5px solid var(--m-ink); background: var(--m-ink); color: var(--m-white); font-weight: 600; }
.m-subnav { position: sticky; top: calc(var(--m-header-h) + var(--m-sticky-top)); z-index: 50; background: var(--m-white); border-bottom: 1px solid var(--m-line-soft); padding: 16px 0; }

/* ---------- Trang chủ ---------- */
.m-trust { padding: 32px 0; background: var(--m-beige); }
.m-trust__item { display: flex; gap: 14px; align-items: center; }
.m-trust__icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--m-white); border: 1px solid var(--m-line);
  display: flex; align-items: center; justify-content: center; color: var(--m-ink);
}
.m-trust__item b { display: block; font-size: 15px; line-height: 20px; }
.m-trust__item span span { display: block; font-size: 13px; line-height: 18px; color: var(--m-muted); }
.m-press { display: flex; align-items: center; gap: 40px; }
.m-press__label { width: 180px; flex-shrink: 0; line-height: 18px; }
.m-press__list { flex-grow: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.m-press__item {
  height: 56px; border-radius: 12px; background: var(--m-beige); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--m-muted); text-align: center; padding: 0 8px;
}
.m-press__item:hover { background: var(--m-sky); color: var(--m-ink); }
.m-mila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: center; width: 100%; }
.m-mila--lab { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
.m-mila__side { display: flex; flex-direction: column; gap: 40px; text-align: left; }
.m-mila__side--right-align { text-align: right; }
.m-mila__item { display: flex; flex-direction: column; gap: 6px; }
.m-mila__letter { font-size: 48px; line-height: 52px; font-weight: 600; }
.m-mila__item > b { font-size: 18px; }
.m-mila__item .m-small b { color: var(--m-ink); }
.m-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; font-size: 14px; }
.m-sizes__title { text-transform: uppercase; font-size: 12px; line-height: 18px; letter-spacing: .1em; color: var(--m-gold); margin-bottom: 6px; display: block; }
.m-sizes__row { height: 34px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--m-dark-line); }
.m-sizes__row:last-child { border-bottom: 1px solid var(--m-dark-line); }
.m-sizes__row span:last-child { color: var(--m-on-dark); }
.m-shops { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: var(--m-muted); }
.m-shops a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.m-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.m-carousel::-webkit-scrollbar { display: none; }
.m-carousel > * { scroll-snap-align: start; }
.m-carousel--3 { grid-auto-columns: calc((100% - 48px) / 3); }
.m-arrows { display: flex; gap: 8px; }
.m-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--m-line); background: var(--m-white); color: var(--m-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.m-arrow--fill { border-color: var(--m-ink); background: var(--m-ink); color: var(--m-white); }
.m-arrow:disabled { opacity: .35; cursor: default; }
.m-carousel.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.m-quote { font-size: 15px; line-height: 23px; }

/* ---------- PDP ---------- */
.m-pdp { padding: 48px 0 72px; }
.m-gallery { display: flex; flex-direction: column; gap: 12px; }
.m-gallery__main { height: 600px; border-radius: 24px; background: var(--m-sky); padding: 32px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.m-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.m-gallery__main.is-cover { padding: 0; }
.m-gallery__main.is-cover img { object-fit: cover; }
.m-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.m-thumb {
  height: 100px; border-radius: 12px; border: 2px solid transparent; background: var(--m-sky); padding: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.m-thumb img { width: 100%; height: 100%; object-fit: contain; }
.m-thumb--cream { background: var(--m-cream); }
.m-thumb--cover { padding: 0; }
.m-thumb--cover img { object-fit: cover; }
.m-thumb--zoom img { object-position: 50% 45%; transform: scale(1.9); }
.m-thumb.is-active { border-color: var(--m-ink); }
.m-thumb--video { position: relative; background: var(--m-mist); font-size: 13px; line-height: 19px; color: var(--m-muted); }
.m-thumb__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92); color: var(--m-ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
/* Video sản phẩm phát trong khung ảnh lớn */
.m-gallery__main.is-video { padding: 0; background: #000; }
.m-gallery__main.is-video img { display: none; }
.m-gallery__main iframe, .m-gallery__main video { width: 100%; height: 100%; border: 0; }
.m-buy { display: flex; flex-direction: column; gap: 16px; }
.m-buybox { padding: 20px; border-radius: 16px; background: var(--m-beige); display: flex; flex-direction: column; gap: 12px; }
.m-buybox .m-btn { height: 56px; }
.m-usp { display: flex; flex-direction: column; border-top: 1px solid var(--m-line-soft); margin-top: 4px; }
.m-usp div { min-height: 48px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--m-line-soft); font-size: 14px; }
.m-usp i { width: 24px; height: 24px; border-radius: 50%; background: var(--m-sky); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--m-ink); }
.m-stickybuy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; background: var(--m-white); border-top: 1px solid var(--m-line);
  box-shadow: 0 -10px 30px rgba(61, 86, 106, .12); transform: translateY(110%); transition: transform .25s ease;
}
.m-stickybuy.is-shown { transform: none; }
.m-stickybuy__in { min-height: 88px; padding: 12px 0; display: flex; align-items: center; gap: 20px; }
.m-stickybuy__img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 10px; background: var(--m-sky); padding: 4px; }
.m-stickybuy__img img { width: 100%; height: 100%; object-fit: contain; }
.m-stickybuy__info { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.m-stickybuy__info b { font-size: 16px; }
.m-stickybuy__info span { font-size: 13px; color: var(--m-muted); }
.m-stickybuy .m-btns { flex-wrap: nowrap; }

/* ---------- MILA LAB ---------- */
.m-test { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.m-test--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.m-test--rev .m-test__media { order: 2; }
.m-test__media { height: 400px; }
.m-test__body { display: flex; flex-direction: column; gap: 16px; }
.m-test__meta { display: flex; align-items: center; gap: 12px; }
.m-test__cond { padding: 16px 20px; border-radius: 14px; background: var(--m-sky); font-size: 14px; line-height: 22px; display: flex; flex-direction: column; gap: 4px; }
.m-test__cond b { font-size: 12px; letter-spacing: .1em; }
.m-test p { font-size: 16px; line-height: 25px; color: var(--m-muted); }
.m-test p b { color: var(--m-ink); }

/* ---------- Bài viết ---------- */
.m-search-box { display: flex; gap: 12px; max-width: 640px; }
.m-search-box .m-input { flex: 1; }
.m-article { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 64px; align-items: start; }
.m-prose { display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 29px; color: #46586A; }
.m-prose h2 { font-size: 28px; line-height: 36px; color: var(--m-ink); margin-top: 16px; }
.m-prose .m-lead { color: var(--m-ink); }
.m-note { padding: 24px 28px; border-radius: 16px; background: var(--m-sky); display: flex; flex-direction: column; gap: 8px; }
.m-note b { font-size: 17px; line-height: 24px; color: var(--m-ink); }
.m-note span { font-size: 15px; line-height: 23px; color: var(--m-muted); }
.m-note--beige { background: var(--m-beige); }
.m-aside { position: sticky; top: calc(var(--m-header-h) + var(--m-sticky-top) + 24px); display: flex; flex-direction: column; gap: 24px; }
.m-toc { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; }
.m-toc a { color: var(--m-muted); }
.m-toc a:hover { color: var(--m-ink); }
.m-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--m-muted); }
.m-pager { display: flex; gap: 8px; justify-content: center; }
.m-pager a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--m-line); display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.m-pager a[aria-current] { background: var(--m-ink); border-color: var(--m-ink); color: var(--m-white); }

/* Báo chí */
.m-press-row {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 180px; gap: 32px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--m-line-soft); color: var(--m-ink);
}
.m-press-row:first-child { border-top: 1px solid var(--m-line-soft); }
.m-press-row__logo { height: 96px; }
.m-press-row__body { display: flex; flex-direction: column; gap: 8px; }
.m-press-row__body b { font-size: 20px; line-height: 28px; }
.m-press-row__go { font-size: 15px; font-weight: 600; text-align: right; }
.m-press-row:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Checklist */
.m-check { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; border: 1px solid var(--m-line); }
.m-check__title { font-size: 20px; line-height: 28px; font-weight: 600; }
.m-check label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 23px; cursor: pointer; }
.m-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--m-ink); }
.m-check input:checked + span { color: var(--m-muted); text-decoration: line-through; }

/* Cảm ơn / 404 */
.m-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.m-done { width: 72px; height: 72px; border-radius: 50%; background: var(--m-sky); display: flex; align-items: center; justify-content: center; color: var(--m-ink); }
.m-404 { font-size: 120px; line-height: 120px; font-weight: 600; color: var(--m-ink); }
.m-card.is-current { outline: 2px solid var(--m-ink); }

/* Chính sách */
.m-policy { display: grid; grid-template-columns: 300px minmax(0, 760px); gap: 64px; align-items: start; }
.m-policy .m-aside { gap: 12px; }

/* Big idea / quote */
.m-bigidea { font-size: 60px; line-height: 70px; font-weight: 600; max-width: 960px; }
.m-promise { font-size: 36px; line-height: 46px; font-weight: 600; max-width: 960px; }

/* Thông báo nhỏ (link chưa có đích, video chưa có file) */
.m-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1000; max-width: min(560px, calc(100vw - 32px));
  padding: 12px 18px; border-radius: 14px; background: #2F4658; color: var(--m-white); font-size: 14px; line-height: 20px;
  box-shadow: 0 12px 32px rgba(17, 23, 29, .25); opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.m-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
body.has-sticky-buy .m-toast { bottom: 112px; }

.mila-body [hidden] { display: none !important; }
fieldset.m-check { margin: 0; min-width: 0; }

/* In checklist bé sơ sinh */
@media print {
  .m-header, .m-footer, .m-crumb, .m-float, .m-stickybuy, .m-toast, .edit-toolbar { display: none !important; }
  body.is-printing-checklist main > .row > [class*="col-"] > *:not(#checklist) { display: none !important; }
  body.is-printing-checklist #checklist .m-card--sky { display: none !important; }
  .m-check { break-inside: avoid; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1199px) {
  .m-nav { gap: 28px; }
  .m-h1--xl { font-size: 52px; line-height: 62px; }
  .m-pad-l { padding-left: 24px; }
  .m-pad-r-lg { padding-right: 24px; }
  .m-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  :root { --m-header-h: 72px; }
  .m-header__logo img { height: 44px; }
  .m-burger { display: inline-flex; }
  .m-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 20px 20px;
    background: var(--m-white); border-bottom: 1px solid var(--m-line-soft); box-shadow: 0 16px 32px rgba(61, 86, 106, .12);
    font-size: 17px; display: none; max-height: calc(100vh - var(--m-header-h)); overflow: auto;
  }
  .m-nav.is-open { display: flex; }
  .m-nav a { padding: 14px 0; border-bottom: 1px solid var(--m-line-soft); }
  .m-nav a.is-active::after { display: none; }
  .m-nav a.is-active { font-weight: 600; }

  .m-sec { padding: 72px 0; }
  .m-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-split, .m-split--wide-left, .m-split--wide-right, .m-test, .m-test--rev, .m-article, .m-policy { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .m-test--rev .m-test__media { order: 0; }
  .m-split > .m-media, .m-split > .m-ph { order: -1; }
  .m-split--keep > .m-media, .m-split--keep > .m-ph { order: 0; }
  .m-pad-r, .m-pad-r-lg, .m-pad-l { padding: 0; }
  .m-aside { position: static; }
  .m-mila, .m-mila--lab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-mila > .m-media { grid-column: 1 / -1; order: -1; height: 360px; }
  .m-mila__side--right-align { text-align: left; }
  .m-mila__side { gap: 24px; }
  .m-press { flex-direction: column; align-items: flex-start; gap: 20px; }
  .m-press__label { width: auto; }
  .m-press__list { width: 100%; display: flex; overflow-x: auto; scrollbar-width: none; }
  .m-press__item { flex: 0 0 160px; }
  .m-carousel { grid-auto-columns: calc((100% - 24px) / 2); }
  .m-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-footer__brand { grid-column: 1 / -1; }
  .m-press-row { grid-template-columns: 140px minmax(0, 1fr); }
  .m-press-row__go { grid-column: 2; text-align: left; }
  .m-gallery__main { height: 480px; }
  .m-h-520, .m-h-600 { height: 420px; }
  .m-h-480 { height: 400px; }
}

@media (max-width: 767px) {
  .m-container, .m-container--narrow { width: calc(100% - 40px); }
  .m-sec, .m-sec--md { padding: 56px 0; }
  .m-sec--sm { padding: 48px 0; }
  .m-stack { gap: 32px; }
  .m-h1, .m-h1--xl, .m-h1--md { font-size: 36px; line-height: 44px; }
  .m-h1--pdp { font-size: 32px; line-height: 40px; }
  .m-h2, .m-h2--lg { font-size: 30px; line-height: 38px; }
  .m-h2--md, .m-h2--sm { font-size: 26px; line-height: 34px; }
  .m-bigidea { font-size: 36px; line-height: 44px; }
  .m-promise { font-size: 26px; line-height: 36px; }
  .m-404 { font-size: 88px; line-height: 88px; }
  .m-lead { font-size: 16px; line-height: 26px; }
  .m-text { font-size: 16px; line-height: 26px; }
  .m-headrow { flex-direction: column; align-items: flex-start; }

  .m-grid--2, .m-grid--3, .m-grid--4, .m-grid--5, .m-form__row { grid-template-columns: minmax(0, 1fr); }
  .m-span-2 { grid-column: auto; }
  .m-grid--keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-trust .m-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .m-trust__item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .m-mila, .m-mila--lab { grid-template-columns: minmax(0, 1fr); }
  .m-mila > .m-media { height: 300px; }
  .m-carousel { grid-auto-columns: 82%; }
  .m-tabs--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .m-tabs--scroll::-webkit-scrollbar { display: none; }
  .m-container.m-tabs--scroll { width: 100%; margin-inline: 0; }
  .m-buybox .m-grid--keep2 { grid-template-columns: minmax(0, 1fr); }
  .m-h-520, .m-h-600, .m-h-480, .m-h-440 { height: 300px; }
  .m-h-380, .m-h-360, .m-h-320 { height: 260px; }
  .m-test__media { height: 240px; }
  .m-gallery__main { height: 340px; }
  .m-thumb { height: 64px; }
  .m-form { padding: 24px 20px; }
  .m-btns--stack { flex-direction: column; align-items: stretch; }
  .m-btns--stack .m-btn { width: 100%; }
  .m-search-box { flex-direction: column; }

  .m-footer { padding: 48px 0 32px; }
  .m-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .m-footer__brand { padding-bottom: 24px; }
  .m-footer__col { border-top: 1px solid var(--m-dark-line); gap: 0; }
  .m-footer__col summary { cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; }
  .m-footer__col summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
  .m-footer__col[open] summary::after { content: "–"; }
  .m-footer__links { padding-bottom: 16px; }
  .m-footer__bottom { flex-direction: column; margin-top: 24px; }

  .m-press-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .m-press-row__logo { height: 72px; }
  .m-press-row__go { grid-column: auto; }

  .m-float { right: 16px; bottom: 16px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .m-float span { display: none; }
  body.has-sticky-buy .m-float { bottom: 152px; }
  .m-stickybuy__in { flex-wrap: wrap; gap: 10px 12px; }
  .m-stickybuy__img { width: 44px; height: 44px; }
  .m-stickybuy .m-btns { width: 100%; }
  .m-stickybuy .m-btn { flex: 1; height: 44px; padding: 0 12px; }
  .m-header__contact { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .m-stickybuy, .m-btn { transition: none; }
}

/* Nội dung HTML soạn trong admin (News.Content, Products.Content) */
.m-prose ul, .m-prose ol, .m-acc__body ul, .m-acc__body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.m-prose img { border-radius: 16px; height: auto; }
.m-prose a:not(.m-link):not(.m-btn) { text-decoration: underline; text-underline-offset: 3px; }
.m-acc__body b, .m-acc__body strong { color: var(--m-ink); }

/* Bo góc dùng cho ô ảnh / video của khối sửa được (_Media) */
.m-r24 { border-radius: 24px; }
.m-r16 { border-radius: 16px; }
.m-r12 { border-radius: 12px; }
.m-media.m-cream { background: var(--m-cream); }

/* Video dọc 9:16 (review KOC) */
.m-review-media { aspect-ratio: 9 / 16; max-height: 500px; height: auto; border-radius: 16px; }
.m-video.m-video--r18, .m-video.m-media--r24 { border-radius: 18px; }

/* Mô tả có HTML do admin nhập (chữ đậm cùng màu tiêu đề) */
.m-text--rich b, .m-text--rich strong { color: var(--m-ink); }
