/* ==========================================================================
   mau.css — Mẫu J · Thực phẩm & đặc sản đóng gói · thương hiệu minh hoạ "Việt Thổ"
   Nạp SAU /_loi/xuong.css, /_loi/khoi.css và /_loi/khoi/the-xuat-xu.css. Đổi màu/font: sửa khối :root ngay dưới.
   Hướng nghệ thuật: minh bạch nguồn gốc, đóng gói hiện đại — nền chàm-than, chữ ngà, đồng nhạt cho tem và nhãn.
   Tương phản đã đo 22/9/2026 (công thức WCAG): chữ 13,3:1 · chữ phụ 7,85:1 (6,80:1 trên nền phụ) · đồng 6,14:1 ·
   chàm nhạt (link, chữ nhỏ) 8,40:1 · chữ trắng trên nút chàm 5,71:1 · trên tem giấy: mực 13,3:1, nhãn 6,11:1, đồng 5,54:1.
   Chàm sáng --mau-nhan chỉ làm MẢNG NỀN (nút Gọi, số trong giỏ) — trên nền tối nó chỉ 2,74:1, không dùng làm chữ.
   ========================================================================== */

:root {
  color-scheme: dark;
  --mau-nen: #1B2430;           /* chàm-than */
  --mau-nen-2: #232F3E;         /* mảng phụ */
  --mau-chu: #F2ECDF;           /* ngà ấm */
  --mau-chu-phu: #BDB7AB;       /* 7,85:1 trên nền · 6,80:1 trên nền phụ */
  --mau-nhan: #3E6B8A;          /* chàm sáng — chỉ làm nền (chữ trắng trên nó 5,71:1) */
  --mau-nhan-dam: #9CC3DD;      /* chàm nhạt — link, chữ nhấn nhỏ trên nền tối · 8,40:1 */
  --mau-toi: #121922;           /* mảng tối nhất: chân trang */
  --mau-chu-sang: #F2ECDF;
  --mau-chu-sang-phu: #BDB7AB;
  --mau-nhan-sang: #9CC3DD;
  --mau-vien: rgba(242, 236, 223, .14);
  --mau-vien-sang: rgba(242, 236, 223, .16);
  --mau-loi: #FFB4A8;           /* báo lỗi trên nền tối · 9,20:1 */
  --mau-dat: #A8E0B5;

  --font-tieu-de: "Space Grotesk", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dam-tieu-de: 700;
  --co-1: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --co-2: clamp(1.55rem, 1.2rem + 1.5vw, 2.5rem);
  --co-3: clamp(1.12rem, 1.04rem + .4vw, 1.36rem);
  --bo-goc: 16px;

  /* riêng mẫu J */
  --vt-dong: #C99A54;           /* đồng nhạt — tem, nhãn nhỏ, vùng nguyên liệu · 6,14:1 */
  --vt-giay: #F2ECDF;           /* giấy in tem */
  --vt-muc: #1B2430;            /* mực trên giấy */
  --vt-muc-phu: #4F5866;        /* 6,11:1 trên giấy */
  --vt-dong-dam: #7F5520;       /* đồng trên giấy · 5,54:1 */
  --vt-o: #141C26;              /* nền ô nhập */
  --vt-o-vien: rgba(242, 236, 223, .42);   /* viền ô nhập 3,6:1 */
  --vt-bong: 0 28px 60px -30px rgba(4, 8, 14, .7);
  --vt-cao-thanh: 64px;
}

[id] { scroll-margin-top: calc(var(--vt-cao-thanh) + 16px); }
h1, h2 { letter-spacing: -.028em; }
h1, h2, h3 { line-height: 1.12; }
h3 { letter-spacing: -.012em; }
:focus-visible { outline-color: var(--mau-nhan-dam); }
.xw-nhan { color: var(--vt-dong); }
a { text-decoration-color: rgba(242, 236, 223, .45); }

.vt-dau-muc { max-width: 44rem; }
.vt-dau-muc h2 { font-size: var(--co-1); }
.vt-dau-muc > p:not(.xw-nhan) { margin-top: var(--k-5); color: var(--mau-chu-phu); font-size: var(--co-lon); max-width: 40rem; }
.vt-dau-muc .xw-nhan + h2 { margin-top: var(--k-4); }
.vt-lien-ket {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-weight: 600; color: var(--mau-nhan-dam); text-decoration: underline; text-underline-offset: .25em;
  text-decoration-color: rgba(156, 195, 221, .5);
}
.vt-lien-ket:hover { text-decoration-color: currentColor; }
button.vt-lien-ket { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }

/* ============================================================ thanh trên: tên shop · menu · giỏ */
.vt-thanh {
  position: fixed; z-index: var(--z-thanh); top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: var(--k-4);
  height: var(--vt-cao-thanh); padding: 0 max(var(--le), env(safe-area-inset-right)) 0 max(var(--le), env(safe-area-inset-left));
  background: rgba(20, 27, 37, .82); color: var(--mau-chu);
  border-bottom: 1px solid rgba(242, 236, 223, .1);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.vt-thanh__logo {
  display: inline-flex; align-items: center; gap: .6em; min-height: 44px; margin-right: auto;
  font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
}
.vt-thanh__logo svg { width: 34px; height: 34px; flex: none; color: var(--vt-dong); }
.vt-thanh__menu { display: flex; align-items: center; gap: 2px; }
.vt-thanh__menu a {
  display: inline-grid; place-items: center; min-height: 44px; padding: 0 .95em; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--mau-chu-phu); text-decoration: none; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.vt-thanh__menu a:hover { color: var(--mau-chu); background: rgba(242, 236, 223, .07); }
.vt-thanh__gio { display: flex; justify-content: flex-end; min-width: 128px; min-height: 46px; margin-left: var(--k-3); }
.vt-thanh__gio .gio-vietqr__nut { min-height: 44px; border-color: rgba(242, 236, 223, .32); color: var(--mau-chu); padding: 0 .5em 0 .95em; }
.vt-thanh__gio .gio-vietqr__nut:hover { border-color: var(--mau-chu); }
@media (max-width: 900px) { .vt-thanh__menu { display: none; } }
@media (max-width: 420px) {
  .vt-thanh__gio { min-width: 72px; }
  .vt-thanh__gio .gio-vietqr__nut-chu { display: none; }
  .vt-thanh__gio .gio-vietqr__nut { padding: 0 .55em 0 .8em; }
}

/* ============================================================ đầu trang: bản đồ đồng mức + hũ + tem */
.vt-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(44% 52% at 74% 56%, rgba(214, 146, 48, .16), rgba(214, 146, 48, 0) 70%),
    linear-gradient(to bottom, #1D2735, var(--mau-nen) 60%);
  color: var(--mau-chu);
}
.vt-hero__nen { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.vt-hero__dong-muc {
  position: absolute; top: -6%; right: -12%; width: 92%; height: 112%; max-width: none; object-fit: cover;
  -webkit-mask-image: radial-gradient(62% 60% at 58% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(62% 60% at 58% 50%, #000 40%, transparent 100%);
}
html.xuong-dong:not([data-cap-may="tinh"]) .vt-hero__dong-muc { animation: vt-dong-muc-hien 2.4s var(--duong-cong) both, vt-dong-muc-troi 38s ease-in-out 2.4s infinite alternate; }
@keyframes vt-dong-muc-hien { from { opacity: 0; transform: scale(1.04); } }
@keyframes vt-dong-muc-troi { to { transform: translate3d(-2.2%, 1.6%, 0); } }
.vt-hero__khung {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(1rem, 3vw, 3.5rem);
  min-height: 100vh; min-height: 100svh; padding-top: calc(var(--vt-cao-thanh) + clamp(1.5rem, 4vh, 3rem)); padding-bottom: clamp(2rem, 6vh, 4rem);
}
.vt-hero__chu { position: relative; z-index: 2; }
.vt-hero h1 { margin-top: var(--k-5); font-size: clamp(2.3rem, 1.1rem + 3.9vw, 4.45rem); line-height: 1.08; letter-spacing: -.035em; max-width: 16ch; }
.vt-hero__mo-ta { margin-top: var(--k-5); max-width: 36rem; font-size: var(--co-lon); color: var(--mau-chu-phu); }
.vt-hero__nut { display: flex; flex-wrap: wrap; gap: var(--k-3); margin-top: var(--k-6); }
.vt-hero__tin { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: var(--k-5); padding: 0; list-style: none; font-size: var(--co-nho); font-weight: 600; color: var(--mau-chu-phu); }
.vt-hero__tin li { display: inline-flex; align-items: center; gap: .5em; }
.vt-hero__tin li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vt-dong); }

.vt-hero__vat { position: relative; width: min(100%, 37rem); aspect-ratio: 1; justify-self: center; }
.vt-hero__anh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vt-dau {
  position: absolute; z-index: 3; top: 9%; right: 7%; width: 25%; aspect-ratio: 1; color: var(--vt-dong);
  transform: rotate(-12deg); pointer-events: none;
}
.vt-dau text { font-family: var(--font-tieu-de); font-weight: 700; fill: currentColor; }
html.xuong-dong:not([data-cap-may="tinh"]) .vt-dau { animation: vt-dong-dau .7s cubic-bezier(.22, 1.35, .36, 1) .9s both; }
@keyframes vt-dong-dau { from { opacity: 0; transform: rotate(-4deg) scale(1.5); } }
.vt-hero__vi-tri {
  position: absolute; z-index: 3; left: 2%; bottom: 3%; display: grid; grid-template-columns: auto auto; column-gap: .65rem; align-items: center;
  font-size: var(--co-ti); font-weight: 600; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; color: var(--vt-dong);
}
.vt-hero__vi-tri svg { grid-row: span 2; width: 24px; height: 24px; }
.vt-hero__vi-tri span { white-space: nowrap; }
.vt-hero__vi-tri span + span { color: var(--mau-chu-phu); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.vt-hero__vi-tri span:empty { display: none; }
/* Máy L2/L3: rời đầu trang thì hũ và chữ trôi lên khác nhịp (CSS bám thanh cuộn; trình duyệt không hỗ trợ thì đứng yên) */
@supports (animation-timeline: view()) {
  html.xuong-dong:is([data-cap-may="L2"], [data-cap-may="L3"]) .vt-hero { view-timeline: --vt-hero block; }
  html.xuong-dong:is([data-cap-may="L2"], [data-cap-may="L3"]) .vt-hero__vat { animation: vt-vat-len linear both; animation-timeline: --vt-hero; animation-range: exit 0% exit 100%; }
  html.xuong-dong:is([data-cap-may="L2"], [data-cap-may="L3"]) .vt-hero__chu { animation: vt-chu-len linear both; animation-timeline: --vt-hero; animation-range: exit 0% exit 100%; }
}
@keyframes vt-vat-len { to { transform: translate3d(0, -9vh, 0) scale(.94); } }
@keyframes vt-chu-len { to { transform: translate3d(0, -4vh, 0); opacity: .35; } }

@media (max-width: 860px) {
  .vt-hero__khung { grid-template-columns: 1fr; align-content: start; gap: var(--k-3); padding-top: calc(var(--vt-cao-thanh) + var(--k-3)); }
  .vt-hero__vat { order: -1; width: min(82vw, 40svh, 26rem); }
  .vt-hero__dong-muc { top: 0; right: -40%; width: 160%; height: 70%; }
  .vt-hero h1 { margin-top: var(--k-3); font-size: clamp(2.05rem, 1.3rem + 3.4vw, 2.7rem); max-width: 14ch; }
  .vt-hero__mo-ta { display: none; }
  .vt-hero__nut { margin-top: var(--k-5); gap: var(--k-2); padding-right: 58px; }  /* chừa góc cho nút Zalo/Gọi nổi */
  .vt-hero__nut .xw-nut { padding-inline: 1em; font-size: .95rem; }
  .vt-hero__tin { padding-right: 58px; }
  .vt-hero__vi-tri { top: 1%; bottom: auto; left: 0; }   /* góc trên trái: không đè tổ ong ở góc dưới phải ảnh */
  .vt-hero .xw-nhan { 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 50px, 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; }
}

/* ============================================================ khối đỉnh: hũ tách đôi + tem nguồn gốc */
.vt-nguon.tach-doi {
  background:
    radial-gradient(40% 50% at 28% 50%, rgba(214, 146, 48, .14), rgba(214, 146, 48, 0) 70%),
    linear-gradient(to bottom, var(--mau-nen), #161E28);
}
.vt-nguon .tach-doi__san { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.vt-nguon .tach-doi__vat { width: min(100%, 34rem); }
.vt-nguon .tach-doi__keo span { color: var(--mau-chu-phu); }
.vt-nguon__phai { display: grid; gap: var(--k-5); justify-items: start; align-content: center; }
.vt-nguon__phai h2 { font-size: var(--co-2); max-width: 17ch; }
.vt-nguon__phai .the-xuat-xu { width: 100%; max-width: 31rem; }
@media (min-width: 761px) {
  :where(html.xuong-dong) .vt-nguon.tach-doi:not([data-cap-chay="tinh"]) .tach-doi__san { padding-top: calc(var(--vt-cao-thanh) + var(--k-4)); }
  :where(html.xuong-dong) .vt-nguon.tach-doi:not([data-cap-chay="tinh"]) .tach-doi__vat { width: min(100%, 32rem, 58vh); }
}
@media (min-width: 761px) and (max-height: 760px) {
  .vt-nguon__phai { gap: var(--k-4); }
  .vt-nguon__phai h2 { font-size: var(--co-3); }
  .vt-nguon .the-xuat-xu { --xx-dem: 1.15rem; }
  .vt-nguon .the-xuat-xu__chu-thich { display: none; }
}
@media (max-width: 760px) {
  .vt-nguon .tach-doi__san { grid-template-columns: 1fr; }
  .vt-nguon .tach-doi__vat { margin-block: 6% 4%; }
  .vt-nguon__phai { margin-top: var(--k-5); }
}

/* Tem nguồn gốc theo màu Việt Thổ (ghi đè biến của khối the-xuat-xu) */
.the-xuat-xu {
  --xx-giay: var(--vt-giay); --xx-muc: var(--vt-muc); --xx-muc-phu: var(--vt-muc-phu);
  --xx-nhan: var(--vt-dong-dam); --xx-tren-nhan: var(--vt-giay); --xx-vien: rgba(27, 36, 48, .17);
  --xx-dau: #A36F2C; --xx-dam: 500;
}
.the-xuat-xu :focus-visible { outline-color: var(--mau-nhan); }

/* ============================================================ sản phẩm */
.vt-sp { padding-top: calc(var(--dem-muc) * .7); background: #161E28; }
.vt-sp__dau { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--k-5) var(--k-7); }
.vt-sp__dau .vt-dau-muc { max-width: 38rem; }
.vt-sp .luoi-troi { margin-top: var(--k-7); }
.vt-the { display: grid; gap: var(--k-3); align-content: start; }
.vt-the__anh { display: block; border-radius: var(--bo-goc); box-shadow: var(--vt-bong); }
.vt-the__anh img { transition: transform .8s var(--duong-cong); }
.vt-the:hover .vt-the__anh img { transform: scale(1.035); }
.vt-the__chu { display: grid; gap: var(--k-2); }
.vt-the__vung {
  display: flex; align-items: flex-start; gap: .45em; font-size: var(--co-ti); font-weight: 600; letter-spacing: .06em; line-height: 1.5;
  text-transform: uppercase; color: var(--vt-dong);
}
.vt-the__vung::before {
  content: ""; flex: none; width: 13px; height: 13px; margin-top: .12em; 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E") center / contain 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0 1 13 0c0 5-6.5 11-6.5 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vt-the__ten { font-family: var(--font-than); font-weight: 600; font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); line-height: 1.35; letter-spacing: 0; }
.vt-the__ten a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.vt-the__ten a:hover { text-decoration: underline; }
.vt-the__mo-ta { color: var(--mau-chu-phu); font-size: var(--co-nho); }
.vt-the__hang { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--k-3); margin-top: var(--k-2); }
.vt-the__gia { font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.vt-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 rgba(242, 236, 223, .55); background: transparent; color: var(--mau-chu);
  font-weight: 600; font-size: var(--co-nho); transition: background-color .25s, color .25s, border-color .25s;
  touch-action: manipulation;
}
.vt-them:hover { background: var(--mau-chu); border-color: var(--mau-chu); color: var(--mau-nen); }
.vt-the__het { display: none; min-height: 44px; align-items: center; font-weight: 600; font-size: var(--co-nho); color: var(--mau-chu-phu); }
.vt-the[data-con-hang="false"] .vt-them { display: none; }
.vt-the[data-con-hang="false"] .vt-the__het { display: inline-flex; }
@media (max-width: 760px) {
  .vt-the__hang { flex-direction: column; align-items: stretch; }
  .vt-them { width: 100%; }
  .vt-the__vung { text-transform: none; letter-spacing: 0; font-size: .78rem; }
  .vt-the__vung > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ============================================================ mùa vụ (mặt số) */
.vt-mua.mat-so { background: #18212C; }
.vt-mua__phai h2 { font-size: var(--co-2); max-width: 15ch; margin-bottom: var(--k-6); }
.vt-mua .mat-so__vach { stroke: rgba(242, 236, 223, .2); }
.vt-mua .mat-so__vach--dai { stroke: rgba(242, 236, 223, .55); }
.vt-mua .mat-so__so { fill: var(--mau-chu-phu); font-family: var(--font-tieu-de); }
.vt-mua .mat-so__so.dang-hien { fill: var(--vt-dong); }
.vt-mua .mat-so__cung { stroke: var(--vt-dong); }
.vt-mua .mat-so__kim { fill: var(--vt-dong); }
.vt-mua .mat-so__nhan { color: var(--vt-dong); font-family: var(--font-tieu-de); letter-spacing: .08em; }
.vt-mua .mat-so__buoc h3 { font-size: var(--co-2); }
.vt-mua .mat-so__vat { left: 22%; top: 22%; width: 56%; height: 56%; }
@media (max-width: 760px) {
  .vt-mua__phai h2 { margin-inline: auto; text-align: center; margin-bottom: var(--k-4); }
  .vt-mua .mat-so__buoc h3 { font-size: var(--co-3); }
}

/* ============================================================ quy trình */
.vt-quy { background: var(--mau-nen); }
.vt-quy .the-quy-trinh__ds { margin-top: var(--k-7); }
.vt-quy .the-quy-trinh__the { background: var(--mau-nen-2); border: 1px solid rgba(242, 236, 223, .08); }
.vt-quy .the-quy-trinh__the:nth-child(even) { background: #141B25; }
.vt-quy .the-quy-trinh__so, .vt-quy .the-quy-trinh__the:nth-child(even) .the-quy-trinh__so { color: var(--vt-dong); font-weight: 500; }
.vt-quy .the-quy-trinh__the p { color: var(--mau-chu-phu); }
.vt-quy.the-quy-trinh--duong .the-quy-trinh__ds::before { background: var(--vt-dong); }
.vt-quy__ghi-chu { margin-top: var(--k-5); font-size: var(--co-nho); color: var(--mau-chu-phu); max-width: 44rem; }

/* ============================================================ cảm nhận khách — tự ẩn khi chưa có lời khách thật */
.vt-cam-nhan { display: none; background: #161E28; }
.vt-cam-nhan:has(.vt-cam-nhan__the) { display: block; }
.vt-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); }
.vt-cam-nhan__the { display: grid; gap: var(--k-4); align-content: space-between; margin: 0; padding: clamp(1.3rem, 2.4vw, 2rem); border-radius: var(--bo-goc); background: var(--mau-nen-2); }
.vt-cam-nhan__the blockquote { margin: 0; font-size: var(--co-lon); line-height: 1.55; }
.vt-cam-nhan__the figcaption { font-size: var(--co-nho); font-weight: 600; color: var(--mau-chu-phu); }

/* ============================================================ hỏi đáp */
.vt-hoi { background: #161E28; }
.vt-hoi__luoi { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--k-8); align-items: start; }
.vt-hoi__dau h2 { font-size: var(--co-1); }
.vt-hoi__dau p { margin-top: var(--k-5); color: var(--mau-chu-phu); max-width: 34ch; }
.vt-hoi__ds { border-top: 1px solid var(--mau-vien); }
.vt-hoi__muc { border-bottom: 1px solid var(--mau-vien); }
.vt-hoi__muc summary {
  position: relative; display: flex; align-items: center; min-height: 64px; padding: var(--k-4) 3.2rem var(--k-4) 0;
  font-weight: 600; font-size: var(--co-lon); line-height: 1.4; cursor: pointer; list-style: none;
}
.vt-hoi__muc summary::-webkit-details-marker { display: none; }
.vt-hoi__muc summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  border: 1px solid rgba(242, 236, 223, .3);
  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), background-color .3s, border-color .3s;
}
.vt-hoi__muc[open] summary::after { transform: rotate(45deg); border-color: var(--vt-dong); }
.vt-hoi__muc[open] summary { color: var(--vt-dong); }
.vt-hoi__muc > p { padding: 0 3.2rem var(--k-5) 0; color: var(--mau-chu-phu); max-width: 60ch; }
@media (max-width: 860px) { .vt-hoi__luoi { grid-template-columns: 1fr; gap: var(--k-6); } }

/* ============================================================ kết trang */
.vt-ket { position: relative; overflow: hidden; isolation: isolate; text-align: center; background: var(--mau-nen); }
.vt-ket__nen {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: .75;
  -webkit-mask-image: radial-gradient(50% 60% at 50% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(50% 60% at 50% 50%, #000 20%, transparent 100%);
}
.vt-ket__dau { width: clamp(96px, 12vw, 132px); margin: 0 auto var(--k-6); color: var(--vt-dong); transform: rotate(-8deg); }
.vt-ket__dau text { font-family: var(--font-tieu-de); font-weight: 700; fill: currentColor; }
.vt-ket h2 { font-size: var(--co-1); max-width: 18ch; margin-inline: auto; }
.vt-ket__mo-ta { max-width: 42ch; margin: var(--k-5) auto 0; color: var(--mau-chu-phu); font-size: var(--co-lon); }
.vt-ket__nut { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--k-3); margin-top: var(--k-6); }
.vt-ket__gio { margin-top: var(--k-5); font-size: var(--co-nho); font-weight: 600; color: var(--mau-chu-phu); }

/* ============================================================ chân trang */
.vt-chan { padding: var(--k-9) 0 calc(var(--k-8) + 96px); border-top: 1px solid rgba(242, 236, 223, .08); }
.vt-chan__luoi { display: grid; grid-template-columns: 1.1fr .8fr 1.3fr; gap: var(--k-7); }
.vt-chan__ten { display: flex; align-items: center; gap: .6rem; font-family: var(--font-tieu-de); font-weight: 700; font-size: var(--co-2); letter-spacing: -.02em; }
.vt-chan__ten svg { width: 42px; height: 42px; flex: none; color: var(--vt-dong); }
.vt-chan__minh-hoa { display: block; margin-top: var(--k-1); font-family: var(--font-than); font-weight: 400; font-size: var(--co-nho); letter-spacing: 0; color: var(--mau-chu-sang-phu); }
.vt-chan__mo-ta { margin-top: var(--k-4); max-width: 34ch; color: var(--mau-chu-phu); }
.vt-chan__cot h2 { font-family: var(--font-than); font-size: var(--co-ti); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--vt-dong); margin-bottom: var(--k-4); }
.vt-chan__ds { display: grid; gap: 2px; }
.vt-chan__ds a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mau-chu); text-decoration: none; }
.vt-chan__ds a:hover { text-decoration: underline; }
.vt-chan__ds button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--mau-chu); text-align: left; }
.vt-chan__ds button:hover { text-decoration: underline; }
.vt-chan__tt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45em 1em; margin: 0; font-size: var(--co-nho); }
.vt-chan__tt dt { color: var(--mau-chu-phu); }
.vt-chan__tt dd { margin: 0; overflow-wrap: anywhere; }
.vt-chan__tt a { display: inline-block; padding-block: 13px; margin-block: -13px; color: var(--mau-chu); }   /* vùng bấm 44px mà không giãn dòng */
.vt-chan__tt > div { display: contents; }
.vt-chan__tt > div:has(> dd:empty) { display: none; }   /* dòng giấy ATTP chỉ hiện khi chủ shop điền số giấy thật */
.vt-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(242, 236, 223, .04); color: var(--mau-chu-phu); }
.vt-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-phu); }
@media (max-width: 960px) { .vt-chan__luoi { grid-template-columns: 1fr 1fr; } .vt-chan__luoi > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .vt-chan__luoi { grid-template-columns: 1fr; } }

/* ============================================================ trang chi tiết sản phẩm */
.vt-ct { padding-top: calc(var(--vt-cao-thanh) + var(--k-5)); padding-bottom: var(--dem-muc); }
.vt-duong { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .6em; font-size: var(--co-nho); color: var(--mau-chu-phu); }
.vt-duong a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mau-chu-phu); }
.vt-ct__luoi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: var(--k-3); }
.vt-ct__anh { position: sticky; top: calc(var(--vt-cao-thanh) + 20px); }
.vt-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: 20px; scrollbar-width: none; }
.vt-bo-anh::-webkit-scrollbar { display: none; }
.vt-bo-anh > * { scroll-snap-align: start; margin: 0; }
.vt-bo-anh img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--mau-nen-2); }
.vt-bo-anh__goi-y { margin-top: var(--k-3); font-size: var(--co-nho); color: var(--mau-chu-phu); text-align: center; }
.vt-ct__chu h1 { font-size: clamp(1.8rem, 1.25rem + 2.1vw, 2.9rem); margin-top: var(--k-3); }
.vt-ct__vung { margin-top: var(--k-4); }
.vt-ct__dan { margin-top: var(--k-4); font-size: var(--co-lon); color: var(--mau-chu-phu); }
.vt-ct__gia { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--k-3) var(--k-4); margin-top: var(--k-5); }
.vt-ct__gia-so { font-family: var(--font-tieu-de); font-weight: 700; font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.4rem); font-variant-numeric: tabular-nums; }
.vt-ct__kho { display: inline-flex; align-items: center; gap: .45em; font-size: var(--co-nho); font-weight: 600; color: var(--mau-dat); }
.vt-ct__kho::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: currentColor; }
.vt-ct__kho--het { display: none; color: var(--mau-chu-phu); }
.vt-ct[data-con-hang="false"] .vt-ct__kho--con { display: none; }
.vt-ct[data-con-hang="false"] .vt-ct__kho--het { display: inline-flex; }
.vt-ct[data-con-hang="false"] .vt-ct__mua { display: none; }
.vt-ct__mua { display: flex; flex-wrap: wrap; gap: var(--k-3); margin-top: var(--k-6); }
.vt-ct__mua .xw-nut { flex: 1 1 12rem; }
.vt-ct__tin { display: grid; gap: var(--k-3); margin-top: var(--k-6); padding: var(--k-5); border-radius: 16px; background: var(--mau-nen-2); }
.vt-ct__tin li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--k-3); align-items: start; font-size: var(--co-nho); }
.vt-ct__tin svg { width: 22px; height: 22px; color: var(--vt-dong); }
.vt-ct__tin .vt-lien-ket { min-height: 44px; vertical-align: middle; }
.vt-ct__tem { margin-top: calc(var(--k-7) + 12px); }
.vt-ct__tem .the-xuat-xu { max-width: none; }
.vt-ct__muc { margin-top: var(--k-7); border-top: 1px solid var(--mau-vien); }
.vt-ct__muc details { border-bottom: 1px solid var(--mau-vien); }
.vt-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; }
.vt-ct__muc summary::-webkit-details-marker { display: none; }
.vt-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);
}
.vt-ct__muc details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.vt-ct__muc details > p, .vt-ct__muc details > dl { padding-bottom: var(--k-5); color: var(--mau-chu-phu); }
.vt-ct__tt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5em 1.2em; margin: 0; }
.vt-ct__tt dt { font-weight: 600; color: var(--mau-chu); }
.vt-ct__tt dd { margin: 0; }
.vt-ct__canh-bao { padding: var(--k-4); border-radius: 12px; background: #3A2A12; color: #F6E3BF; }
.vt-khac { background: #161E28; }
@media (min-width: 861px) { .vt-bo-anh__goi-y { display: none; } }
@media (max-width: 860px) {
  .vt-ct__luoi { grid-template-columns: 1fr; }
  .vt-ct__anh { position: static; margin-inline: calc(var(--le) * -1); }
  .vt-bo-anh { grid-auto-columns: 86%; padding-inline: var(--le); scroll-padding-inline: var(--le); border-radius: 0; }
}

/* ============================================================ trang liên hệ */
.vt-lh-dau { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--vt-cao-thanh) + var(--k-8)) 0 var(--k-8); }
.vt-lh-dau .vt-hero__dong-muc { z-index: -1; top: -20%; right: -25%; width: 110%; height: 150%; pointer-events: none; }
.vt-lh-dau h1 { font-size: var(--co-1); max-width: 14ch; margin-top: var(--k-4); }
.vt-lh-dau p:not(.xw-nhan) { margin-top: var(--k-5); max-width: 44ch; color: var(--mau-chu-phu); font-size: var(--co-lon); }
.vt-lh__kenh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--k-4); }
.vt-lh__the {
  display: grid; gap: var(--k-2); align-content: start; min-height: 44px; padding: var(--k-5); border-radius: 16px;
  background: var(--mau-nen-2); border: 1px solid rgba(242, 236, 223, .08); text-decoration: none; color: var(--mau-chu);
  transition: border-color .25s;
}
.vt-lh__the:hover { border-color: rgba(201, 154, 84, .6); }
.vt-lh__the strong { font-family: var(--font-tieu-de); font-size: var(--co-3); }
.vt-lh__the span { color: var(--mau-chu-phu); font-size: var(--co-nho); overflow-wrap: anywhere; }
.vt-lh.xw-muc { padding-top: 0; padding-bottom: 0; }
.vt-lh-form.xw-muc { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.vt-lh__form { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--k-8); align-items: start; }
.vt-lh__form h2 { font-size: var(--co-2); margin-top: var(--k-4); }
.vt-lh__form .xw-phu { margin-top: var(--k-4); max-width: 36ch; }
.vt-lh__form form { padding: clamp(1.4rem, 3vw, 2.5rem); border-radius: 20px; background: var(--mau-nen-2); border: 1px solid rgba(242, 236, 223, .08); }
@media (max-width: 960px) { .vt-lh__kenh { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .vt-lh__form { grid-template-columns: 1fr; gap: var(--k-6); } }
@media (max-width: 480px) { .vt-lh__kenh { grid-template-columns: 1fr; } }

/* ============================================================ trang chính sách */
.vt-cs { padding-top: calc(var(--vt-cao-thanh) + var(--k-8)); padding-bottom: var(--dem-muc); }
.vt-cs h1 { font-size: var(--co-1); margin-top: var(--k-4); }
.vt-cs__ngay { margin-top: var(--k-4); color: var(--mau-chu-phu); font-size: var(--co-nho); }
.vt-cs__than { margin-top: var(--k-7); }
.vt-cs__than h2 { font-size: var(--co-3); margin-top: var(--k-7); }
.vt-cs__than p, .vt-cs__than ul, .vt-cs__than ol { margin-top: var(--k-4); }
.vt-cs__than ul, .vt-cs__than ol { padding-left: 1.3em; }
.vt-cs__than li + li { margin-top: var(--k-2); }
.vt-cs__than a { color: var(--mau-nhan-dam); font-weight: 600; }
.vt-cs__hop { margin-top: var(--k-6); padding: var(--k-5); border-radius: 16px; background: var(--mau-nen-2); border-left: 3px solid var(--vt-dong); }

/* ============================================================ khối chức năng trên nền tối */
/* Ô nhập tối, viền đủ tương phản (3,6:1) */
.form-lien-he__o input:not([type="radio"]):not([type="checkbox"]), .form-lien-he__o textarea, .form-lien-he__o select,
.gio-vietqr__o input {
  background: var(--vt-o); color: var(--mau-chu); border-color: var(--vt-o-vien);
}
.form-lien-he__o input::placeholder, .form-lien-he__o textarea::placeholder { color: #8E897F; }
.form-lien-he__chip span { background: transparent; color: var(--mau-chu); border-color: var(--vt-o-vien); }
.form-lien-he__chip input:checked + span { background: var(--mau-chu); border-color: var(--mau-chu); color: var(--mau-nen); }
.form-lien-he__dong-y, .gio-vietqr__dong-y { min-height: 44px; align-items: center; }
.form-lien-he__dong-y input, .gio-vietqr__dong-y input { accent-color: var(--vt-dong); }
.form-lien-he__dong-y a, .gio-vietqr__dong-y a { color: var(--mau-nhan-dam); }
/* Banner cookie nền ngà: viền nút và viền focus đổi sang mực tối */
.banner-cookie__chon { border-color: rgba(27, 36, 48, .45); }
.banner-cookie__chon:hover { background: rgba(27, 36, 48, .08); }
.banner-cookie :focus-visible { outline-color: var(--mau-nhan); }
/* Giỏ hàng */
.gio-vietqr__thong-bao { box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7); }
.gio-vietqr__xem { border-color: rgba(27, 36, 48, .4); }
.gio-vietqr__hop { border-left: 1px solid rgba(242, 236, 223, .1); }
.gio-vietqr__sl button { min-width: 44px; min-height: 44px; }
.gio-vietqr__nut { touch-action: manipulation; }


/* ==== Lớp giao diện 2026-10 · tham chiếu GetLayers (màu/font/bố cục), mã tự viết ==== */
/* Mẫu J · tông tối. Màu: nền #0A0A0C · kem #F4F1EA · xám #A8A49B · vàng #C9A227. Chữ: Lora 600 (tiêu đề) + Mulish (thân).
   Bố cục đầu trang: khối chữ bên trái, khung hình hũ mật ong cao bên phải.
   Tương phản đo 3/10 (công thức WCAG): chữ 17,5:1 · chữ phụ 8,0:1 (7,3:1 trên mảng phụ) · vàng chữ nhỏ 8,2:1 · chữ trắng trên vàng sẫm làm nền nút 5,8:1 ·
   trên tem giấy: mực 16,3:1, nhãn 6,9:1, vàng đậm 6,3:1. Vàng sáng #C9A227 chỉ làm chữ/nét trên nền tối; --mau-nhan (vàng sẫm) chỉ làm mảng nền có chữ trắng. */
:root {
  color-scheme: dark;
  --mau-nen: #0A0A0C;
  --mau-nen-2: #151518;
  --mau-chu: #F4F1EA;
  --mau-chu-phu: #A8A49B;
  --mau-nhan: #7C6209;
  --mau-nhan-dam: #C9A227;
  --mau-nhan-sang: #C9A227;
  --mau-toi: #060607;
  --mau-chu-sang: #F4F1EA;
  --mau-chu-sang-phu: #A8A49B;
  --mau-vien: rgba(244, 241, 234, .14);
  --mau-vien-sang: rgba(244, 241, 234, .16);
  --vt-dong: #C9A227;
  --vt-giay: #F4F1EA;
  --vt-muc: #141416;
  --vt-muc-phu: #55524B;
  --vt-dong-dam: #6F5407;
  --vt-o: #0F0F12;
  --vt-o-vien: rgba(244, 241, 234, .42);
  --font-tieu-de: "Lora", Georgia, "Times New Roman", serif;
  --font-than: "Mulish", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dam-tieu-de: 600;
  --bo-goc: 14px;
}
.the-xuat-xu { --xx-dau: #8A6D0F; --xx-vien: rgba(10, 10, 12, .17); }

/* 6 · Chữ: thân từ 16px; tiêu đề giãn -0,02em, dòng cao từ 1,12; Lora chỉ nạp độ đậm 600 nên các chỗ từng ghi 700 đưa về 600 */
body { font-size: max(1rem, var(--co-than)); }
:root :is(h1, h2, h3) { letter-spacing: -.02em; line-height: 1.14; text-wrap: balance; }
:root .vt-chan__cot h2 { letter-spacing: .16em; line-height: 1.4; text-wrap: wrap; }
.vt-the__gia, .vt-ct__gia-so, .vt-chan__ten { font-weight: 600; }
.vt-dau text, .vt-ket__dau text { font-weight: 600; }
.vt-hero h1 { line-height: 1.14; letter-spacing: -.02em; }
@media (min-width: 861px) { .vt-hero h1 { font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.2rem); max-width: 15ch; } }

/* 1 · Nhãn nhỏ in hoa: chỉ giữ ở đầu trang chủ (máy tính), đầu trang liên hệ, trang chính sách và mã hàng ở trang sản phẩm;
   các nhãn lặp lại tên mục (Cửa hàng, Anh chị đã dùng?, Còn phân vân?, Để lại lời nhắn) ẩn */
:root .xw-nhan { display: none; }
:root .vt-hero .xw-nhan, :root .vt-lh-dau .xw-nhan, :root .vt-cs .xw-nhan, :root .vt-ct .xw-nhan { display: inline-flex; }
@media (max-width: 860px) { :root .vt-hero .xw-nhan { display: none; } }
:root .vt-dau-muc .xw-nhan + h2, :root .vt-lh__form h2 { margin-top: 0; }

/* 2 · Không tô màu hay in nghiêng một cụm trong tiêu đề */
:root h1 em, :root h2 em, :root h3 em, :root h1 i, :root h2 i, :root h3 i,
:root h1 > span, :root h2 > span, :root h3 > span { color: inherit; font-style: normal; font-weight: inherit; }

/* 3 · Đồ trang trí chỉ để làm cảnh thì ẩn: dấu tem tròn ở đầu trang và ở mục cuối, hai lớp "dòng mực" nền, la bàn/mặt số mùa vụ.
   Chữ thật (vùng nguyên liệu, tên và tháng của từng mùa vụ) vẫn còn nguyên. */
.vt-dau, .vt-ket__dau, .vt-hero__nen, .vt-ket__nen, .vt-mua .mat-so__dong-ho { display: none; }

/* 4 · Không quầng sáng vàng, không gradient nền: các mảng nền chàm-than cũ đổi sang nền đen / mảng phụ cùng một họ màu */
.vt-thanh { background: rgba(10, 10, 12, .86); border-bottom-color: rgba(244, 241, 234, .1); }
.vt-hero, .vt-nguon.tach-doi, .vt-quy, .vt-ket { background: var(--mau-nen); }
.vt-sp, .vt-cam-nhan, .vt-hoi, .vt-khac, .vt-mua.mat-so { background: var(--mau-nen-2); }
.vt-quy .the-quy-trinh__the:nth-child(even) { background: var(--mau-nen); }
.vt-the__anh { box-shadow: none; }

/* 5 · Khung ảnh: nền mảng phụ, viền 1px, cùng độ bo */
.vt-the__anh, .vt-bo-anh img { background: var(--mau-nen-2); border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); overflow: hidden; }
.vt-ct__tin, .vt-cs__hop { border-radius: var(--bo-goc); }

/* Đầu trang: khối chữ bên trái, khung hình hũ mật ong cao (4:5) bên phải */
.vt-hero__vat {
  aspect-ratio: 4 / 5; justify-self: end; overflow: hidden;
  border: 1px solid var(--mau-vien); border-radius: var(--bo-goc); background: var(--mau-nen-2);
}
.vt-hero__anh { inset: 8%; width: 84%; height: 84%; }
.vt-hero__vi-tri { top: auto; left: var(--k-4); bottom: var(--k-4); }
@media (min-width: 861px) {
  .vt-hero__khung { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .vt-hero__vat { width: min(100%, 31rem); }
}
@media (max-width: 860px) {
  .vt-hero__vat { justify-self: center; width: min(70vw, 34svh, 22rem); }
  .vt-hero__vi-tri { top: auto; left: var(--k-3); right: var(--k-3); bottom: var(--k-3); }
  .vt-hero__vi-tri span { white-space: normal; }
}

/* Mùa vụ: bỏ mặt số cuộn-ghim, trình bày bốn mùa thành bốn cột đứng yên (chữ giữ nguyên, tháng và tên mùa vẫn sửa được trong trang quản trị) */
section.vt-mua.mat-so { height: auto; border-top: 1px solid var(--mau-vien); }
section.vt-mua.mat-so .mat-so__san { position: static; height: auto; grid-template-columns: 1fr; padding: var(--dem-muc) var(--le); }
section.vt-mua.mat-so .vt-mua__phai h2 { max-width: 20ch; margin-inline: 0; text-align: left; }
section.vt-mua.mat-so .mat-so__buoc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--k-6) var(--k-5); min-height: 0; text-align: left; }
section.vt-mua.mat-so .mat-so__buoc > li {
  position: static; opacity: 1; transform: none; padding-top: var(--k-4); border-top: 1px solid var(--mau-vien);
}
section.vt-mua.mat-so .mat-so__buoc h3 { font-size: var(--co-3); }
section.vt-mua.mat-so .mat-so__buoc p { margin-inline: 0; }
@media (max-width: 960px) { section.vt-mua.mat-so .mat-so__buoc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { section.vt-mua.mat-so .mat-so__buoc { grid-template-columns: 1fr; } }

/* 7 · Tương phản: chữ thân ≥ 4,5:1 (số đo ở đầu khối); nút nền kem chữ đen 17,5:1; nút nổi và số trong giỏ nền vàng sẫm chữ trắng 5,8:1 */

/* Lớp ánh sáng "bụi vàng" ở đầu trang: nằm trên nền phần đầu, dưới nội dung (phần đầu có isolation riêng) */
.vt-hero > [data-khoi="anh-sang"] { z-index: -1; }
