/* =========================================================
   LỐI STUDIOS · ui.css — phần chung toàn site (brief minimal 25/11)
   Nạp SAU CSS riêng của từng trang để các biến ở đây thắng.
   Thang chữ: chỉ dùng các biến --fs-*; không chữ nào lớn hơn 30px.
   Thang: H1 22/30 · H2 17/20 · nội dung 14 · nhãn menu 13 · chữ phụ 12 · số liệu 12 · nhãn/nút 11 · ô nhập 16.
   ========================================================= */
/* Font tiêu đề League Spartan (OFL), tự lưu trong fonts/ thay cho Google Fonts. Font biến thiên: một file mỗi bảng chữ cho độ đậm 300–500. */
@font-face { font-family: "League Spartan"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("fonts/leaguespartan-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "League Spartan"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("fonts/leaguespartan-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "League Spartan"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("fonts/leaguespartan-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* màu */
  --ink: #121212;
  --paper: #FBFBF6;          /* nền web */
  --paper-in: #F7F4EF;       /* nền đồ in */
  --stone: #C9C9C5;
  --gold: var(--stone);      /* vàng chỉ dùng cho Khóa Son; mọi chỗ cũ dùng --gold (vạch, chấm, gạch chân) chuyển sang Stone */
  --ink-2: rgba(18, 18, 18, .6);   /* chữ phụ: nhạt bằng màu, không giảm độ đậm */
  --rule: var(--stone);      /* đường kẻ 1px Stone */
  --f-rule: var(--stone);
  --scrim: rgba(18, 18, 18, .4);

  /* thang chữ (điện thoại) */
  --fs-h1: 22px;
  --fs-h2: 17px;
  --fs-body: 14px;
  --fs-small: 12px;
  --fs-label: 11px;
  --fs-num: 12px;
  --fs-input: 16px;          /* ô nhập ≥16px để iOS không tự phóng to */
  --fs-menu: 13px;           /* nhãn menu: nhóm chính menu điện thoại, IN HOA 500, giãn .14em (brief 4.4) */
  --ls-label: .14em;

  /* bố cục */
  --col: 520px;              /* cột chữ tối đa */
  --mx: 24px;                /* lề hai bên */
  --gap-khoi: 112px;         /* khoảng cách giữa các khối lớn */
  --tap: 44px;               /* vùng bấm tối thiểu */
  --gold-son: #B8955A;      /* chỉ dùng cho Khóa Son (ảnh img/khoa-son.svg) */

  /* nối vào biến cũ của từng trang */
  --gutter: var(--mx);
  --pad-x: var(--mx);
  --space: var(--gap-khoi);
}
@media (min-width: 768px) {
  :root {
    --fs-h1: 30px;
    --fs-h2: 20px;
    --mx: max(64px, 5vw);
    --gap-khoi: 180px;
  }
}
.ab { --ab-x: var(--mx); }
.ht { --ht-x: var(--mx); }
.foot { --f-x: var(--mx); --f-rule: var(--stone); }

/* ô nhập: luôn ≥16px */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
  font-size: var(--fs-input) !important;
}

/* vùng bấm tối thiểu 44 × 44 dù chữ nhỏ */
.hd-menu, .hd-cart, .gio-x { min-width: var(--tap); min-height: var(--tap); }
.foot-col li a, .foot-col li button, .foot-legal a { display: inline-flex; align-items: center; min-height: var(--tap); }
/* máy tính (chuột): link chân trang sát nhau hơn khoảng cách tới tiêu đề cột */
@media (min-width: 60em) and (pointer: fine) { .foot-col li a, .foot-col li button { min-height: 0; } }
.pdp-sz-btns button, .pdp-cta, .hero-btn, .sol-btn, .ab-btn, .ht-btn, .foot-so-btn, .gio-btn, .p-sec summary { min-height: var(--tap); }


/* ---------- Nút nhãn (IN HOA 11px, gạch chân mảnh, không viền hộp) ---------- */
.nhan-nut {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; margin: 0;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  font: 500 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em; text-decoration-color: var(--stone);
}
.nhan-nut:hover { text-decoration-color: var(--ink); }
.nhan-hang { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }

/* =========================================================
   POPUP DÙNG CHUNG (sheet)
   Điện thoại: trượt từ đáy, cao tối đa 85%. Máy tính: bảng trượt từ phải, rộng 440px.
   ========================================================= */
html.sheet-mo, html.sheet-mo body { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 90; }
.sheet[hidden] { display: none; }
.sheet-nen { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .3s ease; }
.sheet-hop {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 85vh; max-height: 85dvh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  transform: translateY(100%); transition: transform .36s cubic-bezier(.23, 1, .32, 1);
  outline: none;
}
.sheet.is-open .sheet-nen { opacity: 1; }
.sheet.is-open .sheet-hop { transform: none; }
.sheet-dau { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px 0 24px; flex: none; }
.sheet-keo { position: absolute; top: 8px; left: 50%; width: 36px; height: 3px; margin-left: -18px; background: var(--stone); }
.sheet-ten { margin: 0; font: 500 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; }
.sheet-x { width: var(--tap); height: var(--tap); padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: 300 20px/1 var(--sans); }
.sheet-than { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 24px calc(32px + env(safe-area-inset-bottom)); font-size: var(--fs-body); line-height: 1.75; }
.sheet-than > :first-child { margin-top: 8px; }
.sheet-than p { margin: 14px 0 0; }
.sheet-than h3 { margin: 24px 0 0; font: 500 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--ink-2); }
.sheet-than dl { margin: 0; }
.sheet-than dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--stone); }
.sheet-than dt { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; }
.sheet-than dd { margin: 0; }
.sheet-than ul { margin: 8px 0 0; padding: 0; list-style: none; }
.sheet-than ul li { padding: 8px 0; border-bottom: 1px solid var(--stone); }
.sheet-than .phu { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; }
.sheet-than a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.sheet-than table { width: 100%; border-collapse: collapse; font: 400 var(--fs-num)/1.5 var(--mono, var(--sans)); letter-spacing: .02em; }
.sheet-than th, .sheet-than td { padding: 10px 4px; border-bottom: 1px solid var(--stone); text-align: right; font-weight: 400; }
.sheet-than th[scope="row"], .sheet-than thead th:first-child { text-align: left; font-family: var(--sans); letter-spacing: 0; }
.sheet-than th i { font-style: normal; color: var(--ink-2); margin-right: 8px; }
.sheet-than figure { margin: 24px 0 0; }
.sheet-than ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: n; }
.sheet-than ol li { counter-increment: n; position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--stone); }
.sheet-than ol li::before { content: counter(n); position: absolute; left: 0; top: 8px; font: 400 var(--fs-num)/1.75 var(--mono, var(--sans)); color: var(--ink-2); }
.sheet-than .cach-do b { display: block; font-weight: 500; }
.sheet-than .chon-size { display: block; margin-top: 8px; }
.sheet-than .buoc li, .sheet-than .cach-do li { display: block; }   /* số thứ tự đã đặt tuyệt đối: bỏ lưới để chữ không dồn vào cột số */
.sheet-than .chon-size h3 { margin-top: 32px; }
.sheet-than .so-do-note { margin: 12px 0 0; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.sheet-than svg { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
  .sheet-hop {
    left: auto; top: 0; bottom: 0; width: 440px; max-height: none;
    transform: translateX(100%);
  }
  .sheet-keo { display: none; }
  .sheet-dau { padding: 20px 20px 0 32px; }
  .sheet-than { padding: 8px 32px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-nen, .sheet-hop { transition: none; }
}

/* =========================================================
   THẺ COOKIE: thẻ nhỏ cố định đáy, không che giữa, không làm mờ trang
   ========================================================= */
.ck-the {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  padding: 20px; background: var(--paper); border: 1px solid var(--stone); color: var(--ink);
}
.ck-the[hidden] { display: none; }
.ck-the p { margin: 0; font-size: var(--fs-small); line-height: 1.7; }
.ck-the a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.ck-nut { display: flex; gap: 8px; margin-top: 16px; }
.ck-nut button {
  flex: 1 1 0; height: 44px; padding: 0 12px; cursor: pointer;
  font: 500 var(--fs-label)/1.4 var(--sans); letter-spacing: var(--ls-label); text-transform: uppercase;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
}
.ck-nut .ck-dong-y { background: var(--ink); color: var(--paper); }
@media (min-width: 768px) {
  .ck-the { left: 24px; right: auto; bottom: 24px; width: 400px; }
}
.foot-cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: left; }
.foot-cookie:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }

@media print { .ck-the, .sheet { display: none !important; } }

/* =========================================================
   CHUYỂN ĐỘNG KHI CUỘN (brief minimal 5.1): gần như không thấy.
   Chỉ: hiện dần khi vào màn hình (mờ → rõ, dịch lên 12px, 600ms, ease-out) và ảnh hero thu nhẹ 1.04 → 1 khi tải.
   Chỉ animate opacity/transform. html.js do site-config.js gắn; site.js gắn data-in và lớp is-in (IntersectionObserver).
   Người xem bật giảm chuyển động: tắt toàn bộ.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-in] {
    opacity: 0; transform: translate3d(0, 12px, 0);
    transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-in].is-in { opacity: 1; transform: none; }
  .js .hero img { transform: scale(1.04); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
  .js .hero.is-tai img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* focus thấy được trên mọi nút, link, ô (brief 5.5) */
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .sheet :focus-visible, .ck-the :focus-visible { outline-color: var(--ink); }
.ck-dong-y:focus-visible, .submit:focus-visible, .hero-btn:focus-visible { outline-offset: 2px; }

/* Popup Bảo quản: ký hiệu giặt như trên nhãn care */
.sheet-than .cham-soc li { display: flex; align-items: center; gap: 16px; }
.cham-soc svg { flex: none; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }

/* Link chữ trong đoạn: gạch chân màu chữ, thấy rõ (thay gạch Stone quá nhạt) */
.ht-link, .more a, .pdp-mota-link a, .pdp-so a, .pdp-ck a, .so-do-note a, .lead a, .mono-note a {
  text-decoration: underline !important; text-decoration-color: currentColor !important; text-decoration-thickness: 1px !important; text-underline-offset: .3em;
}
.cham-soc-trong { flex: none; width: 30px; }   /* dòng lời dặn không có ký hiệu: giữ thẳng hàng chữ */

/* không để trang có thanh cuộn ngang (clip không làm hỏng thanh menu / cột chữ ghim) */
html, body { overflow-x: clip; }

/* Popup Xem size: cột và dòng size khách đang chọn nổi lên */
.sheet[data-size="S"] [data-c="S"], .sheet[data-size="M"] [data-c="M"], .sheet[data-size="L"] [data-c="L"], .sheet[data-size="XL"] [data-c="XL"] { background: #E9E9E3; color: var(--ink); font-weight: 500; }

/* Bảng size trong popup: cột tên điểm đo cố định, 4 cột size chia đều phần còn lại, số canh giữa */
.sheet-than .pom, .sheet-than .dang { table-layout: fixed; }
.sheet-than .pom thead th:first-child, .sheet-than .pom th[scope="row"] { width: 44%; }
.sheet-than .dang thead th:first-child, .sheet-than .dang th[scope="row"] { width: 16%; }
.sheet-than .pom td, .sheet-than .pom thead th:not(:first-child),
.sheet-than .dang td, .sheet-than .dang thead th:not(:first-child) { text-align: center; padding-left: 0; padding-right: 0; }

/* Dòng thời gian 6 tháng (.ht-tl): một kiểu cho trang Hành trình, trang chủ và trang sản phẩm.
   Chấm đặc: mốc đã qua; chấm rỗng, nét đứt: mốc sắp tới; li.on: mốc đang xem (chấm to, chữ vàng). */
.ht-tl { overflow-x: auto; scrollbar-width: none; background: var(--paper); }
.ht-tl::-webkit-scrollbar { display: none; }
.ht-tl ol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.ht-tl li { position: relative; }
/* đường nối các chấm */
.ht-tl li::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: #C9C9C5; }
.ht-tl li:first-child::before { left: 5px; }
.ht-tl li:last-child::before { right: auto; width: 5px; }
.ht-tl li.ht-tl-toi::before { background: none; border-top: 1px dashed #C9C9C5; height: 0; }
.ht-tl a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 36px 12px 16px 0; color: var(--ink); text-decoration: none; }
.ht-tl a::before { content: ""; position: absolute; left: 0; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1px solid #C9C9C5; transition: background .25s, transform .25s; }
.ht-tl li:not(.ht-tl-toi) a::before { background: #C9C9C5; }
.ht-tl li.on a::before { transform: scale(1.35); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(201, 201, 197, .45); }
.ht-tl time { font-family: var(--mono); font-size: var(--fs-num); letter-spacing: .02em; color: var(--ink-2); }
.ht-tl span { white-space: nowrap; font-family: var(--display); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.4; }
.ht-tl li.on span, .ht-tl a:hover span { color: #8A6B33; }   /* mốc đang xem: tô vàng */
.ht-tl-toi span { color: var(--ink-2); }
.ht-tl--tinh { margin: 0; }
