/* ==========================================================================
   mau.css — Mẫu C · Shop sản phẩm (hướng C "vật liệu 3D") · thương hiệu minh hoạ "Lọ Mộc"
   Nạp SAU /_loi/xuong.css và /_loi/khoi.css. Đổi màu/font: sửa khối :root ngay dưới đây.
   Bảng màu riêng của mẫu: xô thơm (nền đầu trang) · kem yến mạch (nền) · mực rêu (chữ) · xanh lá ổi (nhấn)
   · gỗ nắp lọ. Tương phản đã đo 22/9: chữ thân 14,2:1 · chữ phụ 6,7:1 · nhấn chữ nhỏ 7,3:1 · chữ trên nền tối 15,3:1.
   ========================================================================== */

:root {
  --mau-nen: #F3EFE6;          /* kem yến mạch */
  --mau-nen-2: #E8E1D2;        /* kraft nhạt */
  --mau-chu: #17231A;          /* mực rêu */
  --mau-chu-phu: #4B5648;      /* 6,72:1 trên nền */
  --mau-nhan: #4A6B2C;         /* xanh lá ổi — số, chữ lớn · 5,33:1 */
  --mau-nhan-dam: #3B5523;     /* nhấn cho chữ nhỏ · 7,29:1 */
  --mau-toi: #121B14;          /* rừng đêm */
  --mau-chu-sang: #EEF0E5;     /* 15,29:1 trên nền tối */
  --mau-chu-sang-phu: #B3BDA9; /* 9,03:1 */
  --mau-nhan-sang: #C6D98C;    /* lá non trên nền tối · 11,49:1 */
  --mau-vien: rgba(23, 35, 26, .14);
  --mau-vien-sang: rgba(238, 240, 229, .16);

  --font-tieu-de: "Unbounded", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dam-tieu-de: 700;
  --co-1: clamp(1.9rem, 1.2rem + 2.9vw, 3.5rem);
  --co-2: clamp(1.4rem, 1.08rem + 1.45vw, 2.25rem);
  --co-3: clamp(1.1rem, 1.02rem + .4vw, 1.35rem);

  /* riêng mẫu C */
  --lm-xo: #DCE3CD;            /* xô thơm — nền phần đầu trang */
  --lm-xo-2: #CFD8BD;
  --lm-la-dam: #2C4A23;        /* chữ khổng lồ · 7,54:1 trên nền xô thơm */
  --lm-go: #8B5E3C;            /* gỗ nắp lọ */
  --lm-mat-ong: #D9A441;
  --lm-chu-phu: #4B5648;       /* bản sáng của các biến màu — dùng lại trong khối vốn là nền tối */
  --lm-nhan-dam: #3B5523;
  --lm-vien: rgba(23, 35, 26, .14);
  --lm-bong: 0 24px 60px -34px rgba(18, 27, 20, .55);
}

[id] { scroll-margin-top: 84px; }
h1, h2 { letter-spacing: -.025em; }
h3 { letter-spacing: -.01em; }

/* Tiêu đề khối dùng chung */
.lm-dau-muc { max-width: 46rem; }
.lm-dau-muc h2 { font-size: var(--co-1); margin-top: var(--k-4); }
.lm-dau-muc .xw-lon { margin-top: var(--k-5); }
.lm-dau-muc--hang { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--k-5) var(--k-7); }
.lm-dau-muc--hang > div { max-width: 40rem; }
.lm-lien-ket {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  font-weight: 600; color: var(--mau-nhan-dam); text-decoration: underline; text-underline-offset: .25em;
}

/* ============================================================ thanh trên */
.lm-thanh {
  position: fixed; z-index: var(--z-thanh);
  top: max(10px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.lm-thanh > * { pointer-events: auto; }
.lm-thanh__logo, .lm-thanh__menu, .lm-thanh__gio {
  background: var(--mau-nen); color: var(--mau-chu);
  border: 1px solid var(--mau-vien); border-radius: 999px; box-shadow: 0 10px 28px -18px rgba(18, 27, 20, .5);
}
.lm-thanh__logo {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: 0 1.15em 0 .75em;
  font-family: var(--font-tieu-de); font-weight: 700; font-size: 1rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
}
.lm-thanh__logo svg { width: 28px; height: 28px; flex: none; }
.lm-thanh__menu { display: flex; gap: 2px; margin-inline: auto; padding: 3px; }
.lm-thanh__menu a {
  display: inline-grid; place-items: center; min-height: 44px; padding: 0 1.05em; border-radius: 999px;
  font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.lm-thanh__menu a:hover { background: var(--mau-nen-2); }
.lm-thanh__gio .gio-vietqr__nut { min-height: 48px; padding: 0 .55em 0 1em; border: 0; }
.lm-thanh__gio .gio-vietqr__dem { background: var(--mau-chu); color: var(--mau-nen); }
.lm-thanh__gio .gio-vietqr__nut.co-hang .gio-vietqr__dem { background: var(--mau-nhan); color: #fff; }
@media (max-width: 900px) {
  .lm-thanh__menu { display: none; }
  .lm-thanh__gio { margin-left: auto; }
}
@media (max-width: 420px) {
  .lm-thanh__gio .gio-vietqr__nut-chu { display: none; }
  .lm-thanh__gio .gio-vietqr__nut { padding: 0 .6em 0 .85em; }
}

/* ============================================================ phần đầu trang: chữ khổng lồ + lọ 3D */
/* Khối vat-the-3d vốn nền tối — ở đây đổi sang nền xô thơm, trả các biến màu về bản dùng trên nền sáng */
.lm-hero.vat-the-3d {
  --mau-chu-phu: var(--lm-chu-phu); --mau-nhan-dam: var(--lm-nhan-dam); --mau-vien: var(--lm-vien);
  background: var(--lm-xo); color: var(--mau-chu);
}
.lm-hero__san { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; }
.lm-hero__nen {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 42% at 50% 50%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 72%),
    linear-gradient(to bottom, var(--lm-xo) 0%, var(--lm-xo) 64%, var(--lm-xo-2) 64.15%, #D6DEC5 100%);
}
/* Máy đủ mạnh (L3): sân khấu dính trên một đường cuộn dài hơn — lọ xoay theo thanh cuộn của khách, không tự cuộn hộ */
html.xuong-dong[data-cap-may="L3"] .lm-hero { height: 200vh; }
html.xuong-dong[data-cap-may="L3"] .lm-hero__san { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }

.lm-hero__khong-lo {
  position: absolute; z-index: 0; left: 0; right: 0; top: clamp(5.25rem, 15vh, 8.5rem);
  display: flex; justify-content: center; gap: .2em; margin: 0; padding-inline: var(--le);
  font-family: var(--font-tieu-de); font-weight: 700; font-size: clamp(4.5rem, 15.6vw, 15.5rem);
  line-height: 1.02; letter-spacing: -.055em; text-transform: uppercase; color: var(--lm-la-dam);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.lm-hero__khong-lo > span { display: inline-block; padding-top: .12em; }   /* chừa chỗ cho dấu mũ chồng dấu nặng (Ộ) */
html.lm-cho-font .lm-hero__khong-lo { opacity: 0; }
.lm-hero__khong-lo { transition: opacity .5s var(--duong-cong); }

.lm-hero__vat { position: absolute; z-index: 2; left: 53%; top: 54%; width: min(42vw, 60vh, 580px); aspect-ratio: 1; translate: -50% -50%; }
/* Canvas 3D chỉ dựng SAU khi khung trang đã tải (khách chạm, cuộn, rê chuột hoặc sau 3,5 giây) — mau.js bật lớp lm-nap-3d */
.lm-hero .vat-the-3d__san { position: absolute; inset: 0; width: auto; margin: 0; aspect-ratio: auto; display: none; }
html.lm-nap-3d .lm-hero .vat-the-3d__san { display: block; }
.lm-hero .vat-the-3d__du-phong { filter: drop-shadow(0 30px 28px rgba(28, 40, 22, .18)); }
.lm-hero .vat-the-3d__goi-y { bottom: 2%; color: var(--mau-chu-phu); }
.lm-hero .vat-the-3d__xoay { right: 0; bottom: 0; background: rgba(243, 239, 230, .72); color: var(--mau-chu); border-color: var(--mau-vien); }
.lm-hero .vat-the-3d__xoay[aria-pressed="true"] { background: var(--mau-chu); color: var(--mau-nen); }

/* Lá, hạt, giọt dầu bay quanh lọ — trang trí, không nhận chuột */
.lm-hero__la { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lm-hero__la--truoc { z-index: 3; }
.lm-la { position: absolute; display: block; width: var(--c, 44px); height: auto; rotate: var(--g, 0deg); }
.lm-la--1 { --c: clamp(34px, 4.2vw, 60px); left: 9%; top: 40%; --g: -28deg; }
.lm-la--2 { --c: clamp(22px, 2.4vw, 34px); left: 30%; top: 34%; --g: 34deg; filter: blur(1.5px); opacity: .85; }
.lm-la--3 { --c: clamp(40px, 5vw, 72px); right: 13%; top: 44%; --g: 142deg; }
.lm-la--4 { --c: clamp(18px, 1.8vw, 26px); right: 29%; top: 30%; --g: -12deg; }
.lm-la--5 { --c: clamp(20px, 2vw, 30px); right: 42%; top: 86%; --g: 0deg; }
.lm-la--6 { --c: clamp(26px, 2.8vw, 40px); right: 22%; top: 76%; --g: 58deg; filter: blur(2px); }
.lm-la--7 { --c: clamp(14px, 1.3vw, 20px); left: 22%; top: 24%; --g: 0deg; }
.lm-la--8 { --c: clamp(30px, 3.4vw, 48px); right: 36%; top: 64%; --g: -150deg; }
html.xuong-dong:not([data-cap-may="tinh"]) .lm-la { animation: lm-bong var(--t, 7s) ease-in-out var(--tre, 0s) infinite alternate; }
.lm-la--2 { --t: 9s; --tre: -3s; } .lm-la--3 { --t: 8s; --tre: -1s; } .lm-la--4 { --t: 6s; --tre: -4s; }
.lm-la--5 { --t: 10s; --tre: -2s; } .lm-la--6 { --t: 7.5s; --tre: -5s; } .lm-la--7 { --t: 6.5s; } .lm-la--8 { --t: 8.5s; --tre: -6s; }
@keyframes lm-bong { from { translate: 0 -9px; } to { translate: 0 11px; } }

/* Chữ + nút ở chân phần đầu trang (cột trái — góc phải dưới để dành cho nút Zalo/Gọi nổi) */
.lm-hero__chu { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding-bottom: clamp(1.25rem, 4.5vh, 3rem); pointer-events: none; }
.lm-hero__trai { max-width: min(30rem, 38vw); pointer-events: auto; }
.lm-hero__trai .xw-nhan { color: var(--mau-nhan-dam); }
.lm-hero h1 { margin-top: var(--k-3); font-size: clamp(1.3rem, .95rem + 1.05vw, 1.9rem); line-height: 1.22; }
.lm-hero__mo-ta { margin-top: var(--k-3); max-width: 42ch; color: var(--mau-chu-phu); }
.lm-hero__nut { display: flex; flex-wrap: wrap; gap: var(--k-3); margin-top: var(--k-5); }
.lm-hero__tin { margin-top: var(--k-3); font-size: var(--co-nho); font-weight: 600; color: var(--mau-chu-phu); }

/* Chuyển động theo thanh cuộn (chỉ L3, trình duyệt hỗ trợ scroll-driven animation; không hỗ trợ thì đứng yên) */
@supports (animation-timeline: view()) {
  html.xuong-dong[data-cap-may="L3"] .lm-hero { view-timeline: --lm-hero block; }
  html.xuong-dong[data-cap-may="L3"] .lm-hero__khong-lo > span:first-child { animation: lm-tach-trai linear both; animation-timeline: --lm-hero; animation-range: contain 0% contain 100%; }
  html.xuong-dong[data-cap-may="L3"] .lm-hero__khong-lo > span:last-child { animation: lm-tach-phai linear both; animation-timeline: --lm-hero; animation-range: contain 0% contain 100%; }
  html.xuong-dong[data-cap-may="L3"] .lm-hero__la { animation: lm-la-troi linear both; animation-timeline: --lm-hero; animation-range: contain 0% contain 100%; }
  html.xuong-dong[data-cap-may="L3"] .lm-hero__la--truoc { animation-name: lm-la-troi-2; }
}
@keyframes lm-tach-trai { to { transform: translateX(-7vw); } }
@keyframes lm-tach-phai { to { transform: translateX(7vw); } }
@keyframes lm-la-troi { to { transform: translateY(-14vh); } }
@keyframes lm-la-troi-2 { to { transform: translateY(-30vh); } }

@media (max-width: 760px) {
  .lm-hero__khong-lo { top: 86px; flex-direction: column; align-items: stretch; gap: 0; font-size: 30vw; line-height: .98; }
  .lm-hero__khong-lo > span:first-child { text-align: left; }
  .lm-hero__khong-lo > span:last-child { text-align: right; }
  .lm-hero__vat { top: 47%; width: min(84vw, 44vh); }
  .lm-hero__chu { padding-bottom: var(--k-5); }
  .lm-hero__trai { max-width: none; }
  .lm-hero__nut { margin-top: var(--k-4); }
  .lm-hero__nut .xw-nut { padding-inline: 1.15em; }
  .lm-hero__mo-ta, .lm-hero .xw-nhan, .lm-hero .vat-the-3d__goi-y { display: none; }
  .lm-hero__nut, .lm-hero__tin { padding-right: 58px; }   /* chừa góc phải dưới cho nút Zalo/Gọi nổi */
  .lm-hero__nut { flex-wrap: nowrap; gap: var(--k-2); }
  .lm-hero__nut .xw-nut { padding-inline: .9em; font-size: .92rem; }
  .lm-la--1 { left: 3%; top: 56%; } .lm-la--3 { right: 2%; top: 52%; } .lm-la--2 { left: 12%; top: 40%; }
  .lm-la--5, .lm-la--6, .lm-la--8 { display: none; }
}
/* Điện thoại: nút Zalo/Gọi nổi thu thành hai nút tròn chỉ có biểu tượng (vẫn 48px, vẫn có nhãn cho trình đọc màn hình) */
@media (max-width: 480px) {
  [data-khoi="nut-noi"] > a { width: 50px; height: 50px; min-width: 50px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  [data-khoi="nut-noi"] svg { width: 24px; height: 24px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .lm-hero__vat { top: 47%; width: min(62vw, 34vh); }
  .lm-hero__khong-lo { font-size: min(30vw, 17vh); }
}
@media (max-width: 380px) { .lm-hero__nut .xw-nut--vien { display: none; } }
/* Máy tính bảng dựng đứng: bố cục gần như điện thoại — lọ to ở giữa, chữ dồn xuống dưới */
@media (min-width: 761px) and (orientation: portrait) {
  .lm-hero__vat { left: 50%; top: 45%; width: min(62vw, 40vh); }
  .lm-hero__trai { max-width: min(34rem, 64vw); }
  .lm-hero__mo-ta, .lm-hero .vat-the-3d__goi-y { display: none; }
}

/* ============================================================ dải chữ chạy */
.lm-chay { overflow: hidden; background: var(--mau-toi); color: var(--mau-chu-sang); padding-block: 1.05rem; }
.lm-chay__hang { display: flex; width: max-content; }
.lm-chay__hang > span {
  display: inline-flex; align-items: center; gap: .9em; padding-right: .9em; white-space: nowrap;
  font-family: var(--font-tieu-de); font-weight: 700; font-size: clamp(1.05rem, .85rem + 1vw, 1.7rem); letter-spacing: -.01em;
}
.lm-chay__hang svg { width: .95em; height: .95em; flex: none; }
html.xuong-dong:not([data-cap-may="tinh"]) .lm-chay__hang { animation: lm-chay 42s linear infinite; }
@keyframes lm-chay { to { transform: translateX(-50%); } }

/* ============================================================ chuỗi khung (chỉ hiện ở L1/L2 — L3 đã có lọ 3D xoay) */
.lm-xoay { display: none; }
html[data-cap-may="L1"] .lm-xoay, html[data-cap-may="L2"] .lm-xoay { display: block; }
.lm-xoay .chuoi-khung__nhip { font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); max-width: 24ch; }
.lm-xoay__nhan { position: absolute; z-index: 2; top: 96px; left: var(--le); }

/* ============================================================ tách đôi */
.lm-tach.tach-doi { background: var(--mau-nen-2); }
.lm-tach .tach-doi__nhip { font-size: clamp(1.3rem, 1.02rem + 1.3vw, 2.2rem); line-height: 1.25; }
.lm-tach__phai .xw-nhan { margin-bottom: var(--k-5); }
.lm-tach .tach-doi__keo span { color: var(--mau-chu-phu); }

/* ============================================================ thành phần */
.lm-tp__luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 32px); margin-top: var(--k-8); }
.lm-tp__the { display: grid; align-content: start; gap: var(--k-3); padding: clamp(1.1rem, 2vw, 1.6rem); border-radius: 22px; background: #FBF9F4; box-shadow: var(--lm-bong); }
.lm-tp__the img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-bottom: var(--k-3); }
.lm-tp__the h3 { font-size: var(--co-3); }
.lm-tp__the p { color: var(--mau-chu-phu); }
.lm-tp__so { font-family: var(--font-tieu-de); font-size: var(--co-nho); color: var(--mau-nhan); }
.lm-so {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--k-6);
  margin-top: var(--k-8); padding-top: var(--k-7); border-top: 1px solid var(--mau-vien);
}
.lm-so__muc { display: grid; gap: var(--k-3); justify-items: start; }
.lm-so__muc .so-lon__hang { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem); }
.lm-so__chu { color: var(--mau-chu-phu); font-weight: 600; max-width: 22ch; }
@media (max-width: 860px) {
  .lm-tp__luoi { grid-template-columns: 1fr; max-width: 30rem; }
  .lm-tp__the { grid-template-columns: 112px minmax(0, 1fr); column-gap: var(--k-4); align-items: center; }
  .lm-tp__the img { grid-row: span 3; margin: 0; }
  .lm-so { grid-template-columns: 1fr; gap: var(--k-6); }
}

/* ============================================================ lưới sản phẩm */
.lm-sp { background: var(--mau-nen); padding-top: calc(var(--dem-muc) * .55); }
.lm-sp .lm-lien-ket { margin-top: var(--k-3); }
.lm-sp .luoi-troi { margin-top: var(--k-7); }
.lm-the { display: grid; gap: var(--k-3); }
.lm-the__anh { display: block; border-radius: 20px; }
.lm-the__anh img { transition: transform .8s var(--duong-cong); }
.lm-the:hover .lm-the__anh img { transform: scale(1.04); }
.lm-the__chu { display: grid; gap: var(--k-2); }
.lm-the__ten { font-family: var(--font-than); font-weight: 600; font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); line-height: 1.35; letter-spacing: 0; }
.lm-the__ten a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.lm-the__ten a:hover { text-decoration: underline; }
.lm-the__mo-ta { color: var(--mau-chu-phu); font-size: var(--co-nho); }
.lm-the__hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--k-3); margin-top: var(--k-2); }
.lm-the__gia { font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.lm-them {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: .5em 1.1em;
  border-radius: 999px; border: 1px solid var(--mau-chu); background: transparent; color: var(--mau-chu);
  font-weight: 600; font-size: var(--co-nho); transition: background-color .25s, color .25s;
}
.lm-them:hover { background: var(--mau-chu); color: var(--mau-nen); }
.lm-the__het { display: none; min-height: 44px; align-items: center; font-weight: 600; font-size: var(--co-nho); color: var(--mau-chu-phu); }
.lm-the[data-con-hang="false"] .lm-them { display: none; }
.lm-the[data-con-hang="false"] .lm-the__het { display: inline-flex; }
@media (max-width: 760px) {
  .lm-the__hang { flex-direction: column; align-items: stretch; }
  .lm-them { width: 100%; }
}

/* ============================================================ dải hạt — làm từng mẻ nhỏ */
.lm-me.dai-hat { min-height: 92vh; }
.lm-me .dai-hat__chu h2 { font-size: var(--co-1); max-width: 18ch; }
.lm-me .dai-hat__chu .xw-nhan { justify-content: center; }

/* ============================================================ mặt số — cách dùng */
.lm-cach.mat-so { background: var(--mau-nen); }
.lm-cach__phai .xw-nhan { margin-bottom: var(--k-5); }
.lm-cach .mat-so__buoc h3 { font-size: var(--co-2); }
@media (max-width: 760px) { .lm-cach__phai .xw-nhan { justify-content: center; width: 100%; } }

/* ============================================================ cảm nhận khách — tự ẩn khi chưa có lời khách thật */
.lm-cam-nhan { display: none; background: var(--mau-nen-2); }
.lm-cam-nhan:has(.lm-cam-nhan__the) { display: block; }
.lm-cam-nhan__luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: var(--k-5); margin-top: var(--k-7); }
.lm-cam-nhan__the { display: grid; gap: var(--k-4); align-content: space-between; margin: 0; padding: clamp(1.3rem, 2.4vw, 2rem); border-radius: 20px; background: #FBF9F4; }
.lm-cam-nhan__the blockquote { margin: 0; font-size: var(--co-lon); line-height: 1.55; }
.lm-cam-nhan__the figcaption { font-size: var(--co-nho); font-weight: 600; color: var(--mau-chu-phu); }

/* ============================================================ hỏi đáp */
.lm-hoi__luoi { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--k-8); align-items: start; }
.lm-hoi__dau h2 { font-size: var(--co-1); margin-top: var(--k-4); }
.lm-hoi__dau p:not(.xw-nhan) { margin-top: var(--k-5); color: var(--mau-chu-phu); max-width: 34ch; }
.lm-hoi__ds { border-top: 1px solid var(--mau-vien); }
.lm-hoi__muc { border-bottom: 1px solid var(--mau-vien); }
.lm-hoi__muc summary {
  position: relative; display: flex; align-items: center; min-height: 64px; padding: var(--k-4) 3rem var(--k-4) 0;
  font-weight: 600; font-size: var(--co-lon); line-height: 1.4; cursor: pointer; list-style: none;
}
.lm-hoi__muc summary::-webkit-details-marker { display: none; }
.lm-hoi__muc summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  border: 1px solid var(--mau-vien);
  background:
    linear-gradient(var(--mau-chu), var(--mau-chu)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--mau-chu), var(--mau-chu)) center / 1.6px 12px no-repeat;
  transition: transform .3s var(--duong-cong);
}
.lm-hoi__muc[open] summary::after { transform: rotate(45deg); }
.lm-hoi__muc > p { padding: 0 3rem var(--k-5) 0; color: var(--mau-chu-phu); max-width: 60ch; }
@media (max-width: 860px) { .lm-hoi__luoi { grid-template-columns: 1fr; gap: var(--k-6); } }

/* ============================================================ kết trang: mây + giờ thật + nút liên hệ */
.lm-ket.may-chan-trang { background: var(--mau-nen); }
.lm-ket .may-chan-trang__may { height: 50%; }
.lm-ket .may-chan-trang__may span { background: radial-gradient(circle at 38% 30%, #ffffff 0%, #F7F7F0 30%, #E4EAD7 56%, rgba(228, 234, 215, 0) 70%); }
.lm-ket .may-chan-trang__chu h2 { max-width: 19ch; }
.lm-ket__gio { display: grid; justify-items: center; gap: var(--k-3); margin-top: var(--k-7); }
.lm-ket__gio .so-lon { align-items: center; }
.lm-ket__gio-chu { font-size: var(--co-nho); font-weight: 600; color: var(--mau-chu-phu); }
.lm-ket__nut { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--k-3); margin-top: var(--k-6); }
.lm-ket__nut .xw-nut { margin-top: 0; }

/* ============================================================ chân trang */
.lm-chan { padding: var(--k-9) 0 calc(var(--k-8) + 96px); }
.lm-chan__luoi { display: grid; grid-template-columns: 1.1fr .8fr 1.3fr; gap: var(--k-7); }
.lm-chan__ten { font-family: var(--font-tieu-de); font-weight: 700; font-size: var(--co-2); letter-spacing: -.02em; }
.lm-chan__ten small { display: block; margin-top: var(--k-2); font-family: var(--font-than); font-weight: 400; font-size: var(--co-nho); letter-spacing: 0; color: var(--mau-chu-sang-phu); }
.lm-chan__cot h2 { font-family: var(--font-than); font-size: var(--co-ti); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mau-nhan-sang); margin-bottom: var(--k-4); }
.lm-chan__ds { display: grid; gap: 2px; }
.lm-chan__ds a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mau-chu-sang); text-decoration: none; }
.lm-chan__ds a:hover { text-decoration: underline; }
.lm-chan__ds button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--mau-chu-sang); text-align: left; }
.lm-chan__ds button:hover { text-decoration: underline; }
.lm-chan__tt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45em 1em; margin: 0; font-size: var(--co-nho); }
.lm-chan__tt dt { color: var(--mau-chu-sang-phu); }
.lm-chan__tt dd { margin: 0; overflow-wrap: anywhere; }
.lm-chan__tt a { display: inline-block; padding-block: 13px; margin-block: -13px; color: var(--mau-chu-sang); }   /* vùng bấm 44px mà không giãn dòng */
.lm-chan__bct { margin-top: var(--k-5); width: 190px; min-height: 64px; padding: var(--k-3); font-size: var(--co-ti); border-color: var(--mau-vien-sang); background: rgba(238, 240, 229, .06); color: var(--mau-chu-sang-phu); }
.lm-chan__cuoi { margin-top: var(--k-8); padding-top: var(--k-5); border-top: 1px solid var(--mau-vien-sang); font-size: var(--co-nho); color: var(--mau-chu-sang-phu); }
@media (max-width: 960px) { .lm-chan__luoi { grid-template-columns: 1fr 1fr; } .lm-chan__luoi > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .lm-chan__luoi { grid-template-columns: 1fr; } }

/* ============================================================ trang chi tiết sản phẩm */
.lm-ct { padding-top: 104px; padding-bottom: var(--dem-muc); }
.lm-duong { display: flex; flex-wrap: wrap; align-items: center; gap: .2em .6em; font-size: var(--co-nho); color: var(--mau-chu-phu); }
.lm-duong a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mau-chu-phu); }
.lm-ct__luoi { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: var(--k-4); }
.lm-ct__anh { position: sticky; top: 88px; }
.lm-bo-anh { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--k-3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; border-radius: 24px; scrollbar-width: none; }
.lm-bo-anh::-webkit-scrollbar { display: none; }
.lm-bo-anh > * { scroll-snap-align: start; margin: 0; }
.lm-bo-anh img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--mau-nen-2); }
.lm-bo-anh__goi-y { margin-top: var(--k-3); font-size: var(--co-nho); color: var(--mau-chu-phu); text-align: center; }
.lm-ct__chu h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); margin-top: var(--k-3); }
.lm-ct__ma { font-size: var(--co-nho); color: var(--mau-chu-phu); }
.lm-ct__dan { margin-top: var(--k-4); font-size: var(--co-lon); color: var(--mau-chu-phu); }
.lm-ct__gia { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--k-3) var(--k-4); margin-top: var(--k-5); }
.lm-ct__gia-so { font-family: var(--font-tieu-de); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); font-variant-numeric: tabular-nums; }
.lm-ct__kho { display: inline-flex; align-items: center; gap: .45em; font-size: var(--co-nho); font-weight: 600; color: var(--mau-nhan-dam); }
.lm-ct__kho::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; }
.lm-ct__kho--het { display: none; color: var(--mau-chu-phu); }
.lm-ct[data-con-hang="false"] .lm-ct__kho--con { display: none; }
.lm-ct[data-con-hang="false"] .lm-ct__kho--het { display: inline-flex; }
.lm-ct[data-con-hang="false"] .lm-ct__mua { display: none; }
.lm-ct__mua { display: flex; flex-wrap: wrap; gap: var(--k-3); margin-top: var(--k-6); }
.lm-ct__mua .xw-nut { flex: 1 1 12rem; }
.lm-ct__tin { display: grid; gap: var(--k-3); margin-top: var(--k-6); padding: var(--k-5); border-radius: 18px; background: var(--mau-nen-2); }
.lm-ct__tin li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--k-3); align-items: start; font-size: var(--co-nho); }
.lm-ct__tin svg { width: 22px; height: 22px; color: var(--mau-nhan); }
.lm-ct__muc { margin-top: var(--k-6); border-top: 1px solid var(--mau-vien); }
.lm-ct__muc details { border-bottom: 1px solid var(--mau-vien); }
.lm-ct__muc summary {
  position: relative; display: flex; align-items: center; min-height: 58px; padding-right: 2.5rem;
  font-weight: 600; cursor: pointer; list-style: none;
}
.lm-ct__muc summary::-webkit-details-marker { display: none; }
.lm-ct__muc summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.8px solid var(--mau-chu); border-bottom: 1.8px solid var(--mau-chu); transform: rotate(45deg); transition: transform .3s var(--duong-cong);
}
.lm-ct__muc details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.lm-ct__muc details > div, .lm-ct__muc details > p { padding-bottom: var(--k-5); color: var(--mau-chu-phu); }
.lm-ct__tt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5em 1.2em; margin: 0; }
.lm-ct__tt dt { font-weight: 600; color: var(--mau-chu); }
.lm-ct__tt dd { margin: 0; }
.lm-ct__canh-bao { padding: var(--k-4); border-radius: 12px; background: #F6EBD2; color: #4A3413; }
.lm-khac { background: var(--mau-nen-2); }
@media (max-width: 860px) {
  .lm-ct__luoi { grid-template-columns: 1fr; }
  .lm-ct__anh { position: static; margin-inline: calc(var(--le) * -1); }
  .lm-bo-anh { grid-auto-columns: 86%; padding-inline: var(--le); scroll-padding-inline: var(--le); border-radius: 0; }
}

/* ============================================================ trang liên hệ */
.lm-lh-dau.dai-hat { min-height: 62vh; padding-top: 72px; }
.lm-lh-dau .dai-hat__chu h1 { font-size: var(--co-1); max-width: 16ch; margin-inline: auto; color: var(--mau-chu-sang); }
.lm-lh-dau .dai-hat__chu p { max-width: 44ch; margin: var(--k-5) auto 0; }
.lm-lh-dau .dai-hat__chu .xw-nhan { justify-content: center; }
.lm-lh__kenh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--k-4); }
.lm-lh__the {
  display: grid; gap: var(--k-2); align-content: start; min-height: 44px; padding: var(--k-5); border-radius: 18px;
  background: #FBF9F4; box-shadow: var(--lm-bong); text-decoration: none; color: var(--mau-chu);
}
.lm-lh__the strong { font-family: var(--font-tieu-de); font-size: var(--co-3); }
.lm-lh__the span { color: var(--mau-chu-phu); font-size: var(--co-nho); overflow-wrap: anywhere; }
a.lm-lh__the:hover strong { text-decoration: underline; }
.lm-lh__form { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--k-8); align-items: start; }
.lm-lh__form form { padding: clamp(1.4rem, 3vw, 2.5rem); border-radius: 22px; background: #FBF9F4; box-shadow: var(--lm-bong); }
.lm-lh__form h2 { margin-top: var(--k-4); }
.lm-lh__form .xw-phu { margin-top: var(--k-4); max-width: 36ch; }
@media (max-width: 960px) { .lm-lh__kenh { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .lm-lh__form { grid-template-columns: 1fr; gap: var(--k-6); } }
@media (max-width: 480px) { .lm-lh__kenh { grid-template-columns: 1fr; } }

/* ============================================================ trang chính sách */
.lm-cs { padding-top: 120px; padding-bottom: var(--dem-muc); }
.lm-cs h1 { font-size: var(--co-1); margin-top: var(--k-4); }
.lm-cs__ngay { margin-top: var(--k-4); color: var(--mau-chu-phu); font-size: var(--co-nho); }
.lm-cs__than { margin-top: var(--k-7); }
.lm-cs__than h2 { font-size: var(--co-3); margin-top: var(--k-7); }
.lm-cs__than p, .lm-cs__than ul, .lm-cs__than ol { margin-top: var(--k-4); }
.lm-cs__than ul, .lm-cs__than ol { padding-left: 1.3em; }
.lm-cs__than li + li { margin-top: var(--k-2); }
.lm-cs__than a { color: var(--mau-nhan-dam); font-weight: 600; }
.lm-cs__hop { margin-top: var(--k-6); padding: var(--k-5); border-radius: 16px; background: var(--mau-nen-2); }
.lm-chan__mo-ta { margin-top: var(--k-4); max-width: 34ch; }
.lm-ct__tin .lm-lien-ket { min-height: 44px; vertical-align: middle; }
@media (min-width: 861px) { .lm-bo-anh__goi-y { display: none; } }
button.lm-lien-ket { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
/* Ô đồng ý: cả nhãn là vùng bấm, tối thiểu 44px */
.form-lien-he__dong-y, .gio-vietqr__dong-y { min-height: 44px; align-items: center; }
.lm-lh.xw-muc { padding-bottom: 0; }
.lm-lh-form.xw-muc { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.lm-lh__form h2 { font-size: var(--co-2); }
/* Giữ chỗ cho nút giỏ trước khi khối gio-vietqr dựng xong — menu ở giữa không bị xô */
.lm-thanh__gio { display: flex; justify-content: center; min-width: 132px; min-height: 50px; }
@media (max-width: 420px) { .lm-thanh__gio { min-width: 72px; } }

/* ==== Lớp giao diện 2026-10 · tham chiếu GetLayers (màu/font/bố cục), mã tự viết ==== */
/* Mẫu C · bảng "Desert Sediment" (kem cát, nâu mực, đồng nhạt, xô thơm) · Montserrat 700 + Mulish · đầu trang kiểu soda-hero.
   Tương phản đã đo 3/10: chữ 14,9:1 · chữ phụ 7,4:1 · nhấn đậm (chữ nhỏ) 6,6:1 · chữ trắng trên nhấn 4,8:1 · chữ phụ trên nền xô thơm ≥ 5,3:1. */
:root {
  --mau-nen: #F8F1DE;
  --mau-nen-2: #EDE3CA;
  --mau-chu: #2A1A10;
  --mau-chu-phu: #5E4A3A;
  --mau-nhan: #9C6638;
  --mau-nhan-dam: #7A4A24;
  --mau-toi: #22150D;
  --mau-chu-sang: #F8F1DE;
  --mau-chu-sang-phu: #CDBFA3;
  --mau-nhan-sang: #D9AE78;
  --mau-vien: rgba(42, 26, 16, .16);
  --mau-vien-sang: rgba(248, 241, 222, .18);

  --lm-xo: #C3CBAA;
  --lm-xo-2: #B0BA98;
  --lm-la-dam: #4F220F;
  --lm-chu-phu: #4A3A2D;
  --lm-nhan-dam: #66391A;
  --lm-vien: rgba(42, 26, 16, .16);
  --lm-bong: 0 24px 60px -34px rgba(34, 21, 13, .5);

  --font-tieu-de: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-than: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dam-tieu-de: 700;
}

/* 6 · chữ: tiêu đề giãn -0,02em, dòng ≥ 1,12 để dấu tiếng Việt có chỗ; thân chữ từ 16px */
body { font-size: max(16px, var(--co-than)); }
h1, h2 { letter-spacing: -.02em; }
:where(h1, h2, h3) { line-height: 1.14; }
.lm-hero__khong-lo { line-height: 1.12; letter-spacing: -.035em; }

/* 3 · đồ trang trí rập khuôn: lá, hạt, giọt dầu bay quanh lọ (không mang chữ của trang quản trị) → ẩn; bỏ quầng sáng trắng sau lọ */
.lm-hero__la, .lm-cach .mat-so__vong { display: none !important; }
.lm-hero__nen { background: linear-gradient(to bottom, var(--lm-xo) 0%, var(--lm-xo) 66%, var(--lm-xo-2) 66.15%, var(--lm-xo-2) 100%); }
.lm-cach .mat-so__vat { left: 8%; top: 8%; width: 84%; height: 84%; }   /* lọ thay chỗ mặt đồng hồ */

/* 1 · nhãn nhỏ in hoa: giữ 1 nhãn trong 3 mục (đầu trang · Thành phần · Cách dùng · Hỏi đáp), còn lại ẩn */
.lm-xoay__nhan, .lm-tach .xw-nhan, .lm-sp .xw-nhan, .lm-me .xw-nhan,
.lm-cam-nhan .xw-nhan, .lm-danh-gia .xw-nhan, .lm-ket .xw-nhan { display: none !important; }

/* Đầu trang kiểu soda-hero: chữ trái · lọ lớn ở giữa · thông tin phải (từ 1000px; hẹp hơn giữ bố cục cũ) */
@media (min-width: 1000px) {
  .lm-hero__vat { left: 50%; top: 53%; width: min(46vw, 64vh, 620px); }
  .lm-hero__trai {
    max-width: none; pointer-events: none;
    display: grid; align-items: end;
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr) minmax(0, 15rem);
    grid-template-areas: "nhan . info" "tieu . info" "nut . tin";
    column-gap: clamp(1.5rem, 4vw, 4rem);
  }
  .lm-hero__trai > * { pointer-events: auto; }
  .lm-hero__trai .xw-nhan { grid-area: nhan; justify-self: start; }
  .lm-hero h1 { grid-area: tieu; }
  .lm-hero__nut { grid-area: nut; }
  .lm-hero__mo-ta { grid-area: info; align-self: end; max-width: none; margin: 0; }
  .lm-hero__tin { grid-area: tin; align-self: end; max-width: none; margin: var(--k-4) 0 0; }
}

/* 5 · khung ảnh sản phẩm / thành phần: nền kem đậm, viền 1px, bo góc đồng bộ */
.lm-the__anh, .lm-tp__the img, .lm-bo-anh img { border: 1px solid var(--mau-vien); border-radius: 14px; background: var(--mau-nen-2); }
.lm-the__anh { overflow: hidden; }

/* Điện thoại: chữ "LỌ MỘC" về một dòng phía trên lọ, để lọ không che dấu nặng của chữ Ộ (soát 4/10) */
@media (max-width: 760px) {
  .lm-hero__khong-lo { flex-direction: row; justify-content: center; gap: .18em; font-size: min(21vw, 13vh); }
}

/* Cảnh 3D "nắng qua lá" (máy mạnh, xem _loi/khoi/vat-the-3d.js): canvas phủ sân khấu, hộp lọ không chặn thao tác kéo.
   Nền bỏ đường chân trời cứng vì mặt bàn 3D tự đổ bóng lá và bóng chân lọ. */
.vat-the-3d--canh .lm-hero__vat { pointer-events: none; }
.vat-the-3d--canh .lm-hero__nen {
  background:
    radial-gradient(46% 42% at 50% 46%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 72%),
    linear-gradient(to bottom, var(--lm-xo) 0%, var(--lm-xo) 50%, var(--lm-xo-2) 82%, #D3DBC2 100%);
}
/* Khi nắp bay lên (máy tính), hai chữ khổng lồ tách xa hơn và tách xong cùng lúc nắp mở hẳn, để nắp lọt vào khe giữa */
@keyframes lm-tach-trai-xa { to { transform: translateX(-12vw); } }
@keyframes lm-tach-phai-xa { to { transform: translateX(12vw); } }
@media (min-width: 760px) {
  @supports (animation-timeline: view()) {
    html.xuong-dong[data-cap-may="L3"] .vat-the-3d--canh .lm-hero__khong-lo > span:first-child { animation-name: lm-tach-trai-xa; animation-range: contain 0% contain 30%; }
    html.xuong-dong[data-cap-may="L3"] .vat-the-3d--canh .lm-hero__khong-lo > span:last-child { animation-name: lm-tach-phai-xa; animation-range: contain 0% contain 30%; }
  }
}

/* Luật 3: đồng hồ "Giờ Việt Nam lúc này" chỉ để trang trí nên ẩn; giữ dòng giờ trực thật của shop */
.lm-ket__gio .so-lon { display: none !important; }

/* Máy không chạy cảnh 3D (điện thoại thường, máy yếu, lúc đang tải): bóng tán lá tĩnh trôi chậm trên nền đầu trang */
.lm-hero.vat-the-3d:not(.vat-the-3d--canh) .lm-hero__nen::after {
  content: ""; position: absolute; inset: -12%; pointer-events: none;
  background: url(/ai-web-kit/demo/c/anh/bong-la.webp) 0 0 / 1500px 1500px repeat;
  mix-blend-mode: multiply; opacity: .17;
  -webkit-mask-image: radial-gradient(120% 95% at 28% 18%, #000 25%, transparent 78%);
  mask-image: radial-gradient(120% 95% at 28% 18%, #000 25%, transparent 78%);
}
/* Ảnh lọ (khi chưa hoặc không chạy 3D) đứng thấp trong hộp để không che chân chữ khổng lồ */
@media (min-width: 761px) {
  .lm-hero.vat-the-3d:not(.vat-the-3d--3d) .vat-the-3d__du-phong { top: auto; height: 64%; object-position: 50% 100%; }
}
html.xuong-dong .lm-hero.vat-the-3d:not(.vat-the-3d--canh) .lm-hero__nen::after { animation: lm-la-lay 16s ease-in-out infinite alternate; }
@keyframes lm-la-lay { to { transform: translate3d(-2.5%, 1.5%, 0) rotate(.8deg); } }
