/* common.css — nền, lưới, thành phần dùng chung mọi trang. Màu, cỡ chữ, bo góc, khoảng cách section chỉ lấy từ tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- lưới ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
/* hai section liền nhau cùng màu nền: chỉ giữ một khoảng đệm ở giữa, không cộng đôi */
html[data-mood="xen"] .section--light + .section--light { padding-top: 0; }
html[data-mood="xen"] .section:not(.section--light):not(.section--deep) + .section:not(.section--light):not(.section--deep) { padding-top: 0; }
/* mood đen: các nền gần như một màu nên không thể trông vào màu nền để tách section.
   Mỗi section góp nửa khoảng ở trên và nửa ở dưới, khối tràn khung (phim, banner đôi, dải ảnh) dùng margin,
   nên khoảng trống giữa hai section bất kỳ luôn bằng đúng một --section-y. */
html:is([data-mood="den"], [data-mood="trang"]) { --half-y: calc(var(--section-y) / 2); }
html:is([data-mood="den"], [data-mood="trang"]) main > .section, html:is([data-mood="den"], [data-mood="trang"]) main > .m-say { padding-block: var(--half-y); }
html:is([data-mood="den"], [data-mood="trang"]) main > :is(.m-film, .m-couple, .m-strip) { margin-block: var(--half-y); }
html:is([data-mood="den"], [data-mood="trang"]) main > .m-vow { margin-bottom: var(--half-y); }
html:is([data-mood="den"], [data-mood="trang"]) main > .m-say + .m-film { margin-top: 0; }
html:is([data-mood="den"], [data-mood="trang"]) .footer { padding-top: var(--half-y); }
:root { --head-gap: clamp(25px, 3vw, 50px); }
/* chiều cao một màn hình dành cho nội dung section (trừ header, chừa 20px mỗi đầu): các khối ảnh / thẻ lớn co theo để mỗi section nhìn trọn trong một màn */
:root { --fit: calc(100svh - var(--header-h) - 40px); }
.section--tint { background: var(--tint); }
.section--deep { background: var(--deep); color: var(--on-deep); }
/* mảng sáng: đổi nghĩa các biến màu trong phạm vi section, mọi thành phần bên trong tự theo */
html:not([data-mood="den"]) .section--light, html:not([data-mood="den"]) .is-light { --paper: var(--light-paper); --tile: var(--light-tile); --tint: var(--light-tile); --tint-2: var(--light-tile-2); --tint-3: var(--light-tile-2); --ink: var(--light-ink); --ink-soft: var(--light-ink-soft); --ink-mute: var(--light-ink-mute); --accent: var(--light-accent); --line: var(--light-line); --line-strong: var(--light-line-strong); --shadow: var(--light-shadow); --card: var(--light-card); background: var(--paper); color: var(--ink); }

/* ---------- mood: mặc định đen; ?mood=light (= ?mood=trang) nền trắng; ?mood=xen đan xen tối / trắng ngà ---------- */
/* trắng tinh toàn trang: đổi nghĩa biến màu ở gốc; chữ nằm trên ảnh / video thì giữ màu sáng */
html[data-mood="trang"] { --light-paper: var(--white-paper); --light-tile: var(--white-tile); --light-tile-2: var(--white-tile-2); --light-card: var(--white-tile);
  --paper: var(--light-paper); --tile: var(--light-tile); --tint: var(--light-tile); --tint-2: var(--light-tile-2); --tint-3: var(--light-tile-2);
  --deep: var(--light-paper); --deep-2: var(--light-tile); --on-deep: var(--light-ink); --on-deep-soft: var(--light-ink-soft);
  --ink: var(--light-ink); --ink-soft: var(--light-ink-soft); --ink-mute: var(--light-ink-mute); --accent: var(--light-accent);
  --line: var(--light-line); --line-strong: var(--light-line-strong); --shadow: var(--light-shadow); color-scheme: light; }
html[data-mood="trang"] .m-video__item, html[data-mood="trang"] .m-film { background: var(--photo-paper); }
html[data-mood="trang"] .footer { background: var(--tile); }   /* footer sáng tách khỏi section trắng phía trên bằng nền, không dùng đường kẻ */
html[data-mood="trang"] :is(.banner, .m-entry__tile, .m-couple__banner, .m-film, .m-line__photo, .m-video__item),
html[data-mood="trang"] body:not(.is-locked) .header:not(.is-stuck) { --ink: var(--photo-ink); --ink-soft: var(--photo-ink-soft); --on-deep: var(--photo-ink); --on-deep-soft: var(--photo-ink-soft); --accent: var(--accent-hover); --line: var(--photo-line); --line-strong: var(--photo-line-strong); --paper: var(--photo-paper); color: var(--ink); }
/* logo footer bản nền sáng: url lấy từ Cấu hình chung → Header & Footer, in inline trong Mona_Enqueue::mood_logo() */
html[data-mood="trang"] .m-hot__item:not(.swiper-slide-active) .m-hot__img { filter: none; opacity: .45; }
html[data-mood="trang"] .m-brands__logo { filter: brightness(0); opacity: .9; }
html[data-mood="trang"] .mona-sign img { content: url("../images/mona-dark.svg"); }

/* ---------- chữ ---------- */
.h2 { font: 400 var(--fs-h2)/1.2 var(--display); letter-spacing: 0; text-wrap: balance; padding-block: .06em; }
/* tiêu đề xếp so le theo dòng (ref Piaget): 2 dòng thì dòng 2 thụt vào; 3 dòng thì dòng 1 và 3 thụt, dòng 2 sát lề */
.stag { width: fit-content; text-wrap: nowrap; }
.stag span { display: block; }
@media (min-width: 768px) {
  .stag span:nth-child(2):last-child { padding-left: 1.9em; }
  .stag span:first-child:nth-last-child(3) { padding-left: 1.5em; }
  .stag span:nth-child(3) { padding-left: 2.3em; }
}
.h3 { font: 600 var(--fs-h3)/1.35 var(--body); text-wrap: balance; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 54ch; text-wrap: pretty; }
.section--deep .lead { color: var(--on-deep-soft); }
.label { font: 600 .75rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 24px; background: var(--accent-grad) 0 0 / 220% 100%; color: var(--on-accent); font: 600 0.75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background-position var(--dur-2) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.btn:hover { background-position: 100% 0; }
.btn:active { background-position: 60% 0; }
.btn--line, .link-cta { position: relative; display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; padding: 0 2px 0 0; background: none; color: var(--ink); font: 600 0.75rem/1 var(--body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color var(--dur-1) var(--ease); }
.btn--line::before, .link-cta::before { content: ""; position: absolute; left: 0; right: 0; top: calc(50% + 11px); border-bottom: var(--hair) solid currentColor; opacity: .5; transition: opacity var(--dur-1) var(--ease); }
.btn--line:hover::before, a:hover .link-cta::before, .link-cta:hover::before { opacity: 1; }
.btn--line:hover, .btn--line:active, a:hover .link-cta, .link-cta:hover { background: none; color: var(--accent); }
.link-cta--in { min-height: 30px; }
/* "Thêm vào giỏ" trên thẻ: rê chuột thì gạch chân, không đổi màu (user) */
.p-card__add::before { display: none; }
.p-card__add:hover, .p-card__add:focus-visible { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.btn--ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 var(--hair) var(--ink); transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.btn--ghost:hover, .btn--ghost:active { background: var(--ink); color: var(--paper); }

.arrow { position: relative; display: grid; place-items: center; width: 48px; height: 28px; background: none; color: var(--ink); box-shadow: inset 0 0 0 var(--hair) var(--line-strong); font-size: 0.5625rem; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease); }
.arrow::after { content: ""; position: absolute; inset: -8px 0; }
.arrow:hover { background: var(--ink); color: var(--paper); }
.arrow:disabled { opacity: .35; pointer-events: none; }

/* ---------- chip, tab ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--tint-3); color: var(--ink); font: 600 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.chip:hover { background: var(--ink); color: var(--paper); }
/* tab chữ, mục đang chọn có gạch dưới (theo hình user gửi, ref Longines) */
.tabs { display: flex; justify-content: center; gap: clamp(20px, 3vw, 44px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-mute); font: 600 .8125rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; position: relative; transition: color var(--dur-1) var(--ease); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 0; border-bottom: var(--hair) solid var(--accent); opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { opacity: 1; }

/* hàng cuộn ngang dùng chung: thẻ sản phẩm, đánh giá */
.rail__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), (100% - var(--container)) / 2); scroll-padding-inline: max(var(--gutter), (100% - var(--container)) / 2); }
.rail__track::-webkit-scrollbar { display: none; }
.is-grab { cursor: grab; }
.is-dragging { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; -webkit-user-select: none; }
.is-dragging * { pointer-events: none; }
.is-grab img { -webkit-user-drag: none; }
.rail__track > * { flex: none; scroll-snap-align: start; }
.rail__track > .p-card { width: clamp(250px, 23.6vw, 420px); }
@media (min-width: 768px) {
  /* thẻ trong hàng cuộn: cả section (tiêu đề 2 dòng + thẻ + thanh tiến trình) vừa một màn hình; ảnh thẻ cao 1,425 × rộng */
  .rail__track > .p-card { width: max(220px, min(clamp(250px, 23.6vw, 420px), calc((var(--fit) - 2.4 * var(--fs-h2) - var(--head-gap) - 194px) / 1.425))); }
}
.rail--tight .rail__track { gap: 5px; }
.rail-ui { display: flex; align-items: center; gap: 4px; }
.rail > .rail-ui { margin-top: clamp(12px, 1.2vw, 18px); }
.rail-ui__bar { position: relative; flex: 1; height: 4px; margin-right: clamp(12px, 2vw, 32px); background: var(--line); }
.rail-ui__bar i { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--ink); transition: left var(--dur-1) linear; }
.rail-ui__count { margin-right: 12px; font: 600 var(--fs-small)/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.rail-ui__count b { color: var(--ink); }
.rail.is-static .rail-ui { visibility: hidden; }

/* ---------- giá ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.price b { font: 600 1.0625rem/1.3 var(--body); }
.price s { font-size: var(--fs-xs); color: var(--ink-mute); }
.price em { font: 600 var(--fs-xs)/1.3 var(--body); color: var(--accent); }
.price--lg b { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.price--lg s, .price--lg em { font-size: var(--fs-body); }

/* ---------- thẻ sản phẩm (ref Longines, đo ở 1440: thẻ 299px, ô ảnh 4:5, khe 5px, chữ 12px). Rê chuột: hàng màu khác hiện ngay dưới ảnh, giá đổi thành "Thêm vào giỏ" ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) 5px; }
.p-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.p-card__info { height: 142px; overflow: hidden; }
.p-card__media { position: relative; display: flex; flex-direction: column; aspect-ratio: 4 / 5.7; background: var(--card, var(--tile)); overflow: hidden; }
.p-card__strip { flex: none; width: 100%; height: auto; }
.p-card__img { display: block; flex: 1; min-height: 0; width: 100%; padding: 11% 12% 8%; }
.p-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease); }
.p-card__tag { position: absolute; left: 8px; top: 8px; padding: 6px 9px 5px; background: var(--accent-grad); color: var(--on-accent); font: 600 0.75rem/1 var(--body); letter-spacing: .04em; }
.p-card__thumbs { display: flex; align-items: flex-start; gap: 4px; height: 0; overflow: hidden; opacity: 0; transition: height var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease), margin var(--dur-1) var(--ease); }
/* ô màu trên thẻ: ảnh nguyên chiếc (yêu cầu khách), vạch dưới đáy là màu vỏ; rê chuột thì ảnh thẻ đổi theo, bấm thì chọn hẳn */
.p-card__thumb { position: relative; flex: none; width: 40px; height: 50px; padding: 2px 2px 6px; background: var(--card, var(--tile)); box-shadow: inset 0 0 0 var(--hair) transparent; transition: box-shadow var(--dur-1) var(--ease); cursor: pointer; }
.p-card__thumb img { width: 100%; height: 100%; object-fit: contain; }
.p-card__thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--metal-bar); }
.p-card__thumb:hover { box-shadow: inset 0 0 0 var(--hair) var(--line-strong); }
.p-card__thumb.is-active { box-shadow: inset 0 0 0 1px var(--ink); }
.p-card__img img.is-swapping { opacity: 0; }

.p-card__title { margin-top: 16px; font: 600 0.875rem/1.35 var(--body); letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.p-card__spec { height: 1.5em; margin-top: 6px; font: 400 0.8125rem/1.5 var(--body); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: height var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease), margin var(--dur-1) var(--ease); }
.p-card .price { margin-top: 6px; }
.p-card .price b { font: 600 1rem/1.4 var(--body); }
.p-card .price s { font-size: 0.8125rem; }
.p-card__add { display: flex; height: 0; min-height: 0; margin-top: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: height var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease), margin var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
/* máy có rê chuột: hàng màu hiện ngay dưới ảnh, nút thêm giỏ thế dòng mô tả, tên gọn 1 dòng. Phần chữ thẻ (142px) vừa đủ cho lúc rê
   → thẻ không cao lên, hàng thẻ và thanh tiến trình bên dưới đứng yên. Dưới 768px coi như màn chạm (kể cả cửa sổ máy tính kéo hẹp) */
@media (hover: hover) and (min-width: 768px) {
  .p-card:hover .p-card__thumbs, .p-card:focus-within .p-card__thumbs { height: 50px; margin-top: 8px; opacity: 1; }
  .p-card:hover .p-card__title, .p-card:focus-within .p-card__title { margin-top: 10px; -webkit-line-clamp: 1; }
  .p-card:hover .p-card__spec, .p-card:focus-within .p-card__spec { height: 0; margin-top: 0; opacity: 0; }
  .p-card:hover .p-card__add, .p-card:focus-within .p-card__add { height: 1.5em; margin-top: 6px; opacity: 1; pointer-events: auto; }
}

/* màn chạm không có rê chuột (hoặc khổ dưới 768px): bỏ khoảng chừa sẵn, hàng màu luôn hiện, không có nút thêm giỏ */
@media (hover: none), (max-width: 767px) {
  .p-card__info { height: auto; }
  .p-card__thumbs { height: 50px; margin-top: 8px; opacity: 1; }
  .p-card__title { margin-top: 12px; }
  .p-card__add { display: none; }
}

/* dải deal trên thẻ (khách chốt 2026-10-14): nền đen, chữ champagne chạy ngang lặp vòng, rê chuột thì dừng */
.p-deal { flex: none; position: relative; overflow: hidden; height: clamp(32px, 2.8vw, 42px); display: flex; align-items: center; background: var(--photo-paper); color: var(--champ-2); font: 600 0.75rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.p-deal__run { display: flex; width: max-content; animation: marquee 18s linear infinite; }
.p-deal__run span { display: flex; align-items: center; }
.p-deal__run span::after { content: ""; width: 4px; height: 4px; margin-inline: 14px; background: currentColor; transform: rotate(45deg); opacity: .7; }
.p-card:hover .p-deal__run { animation-play-state: paused; }

/* ---------- thẻ đánh giá ---------- */
.m-review__list > .r-card { flex: none; width: min(86vw, 660px); margin-right: var(--gap); }
.r-card { display: grid; grid-template-columns: clamp(120px, 32%, 260px) 1fr; gap: clamp(16px, 2.4vw, 36px); padding: clamp(12px, 1.2vw, 20px); padding-right: clamp(18px, 2.4vw, 36px); background: var(--tile); }
.r-card__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--tile); }
.r-card__body { display: flex; flex-direction: column; }
.r-card__stars { display: flex; gap: 3px; color: var(--accent); font-size: 0.875rem; }
.r-card__text { margin-top: 16px; font-size: var(--fs-lead); text-wrap: pretty; }
.r-card__who { margin-top: auto; padding-top: 20px; display: grid; gap: 4px; }
.r-card__who b { font-weight: 600; }
.r-card__who span { font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- thẻ tin ---------- */
.n-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.n-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-2) var(--ease); }
.n-card:hover .n-card__media img { transform: scale(1.04); }
.n-card .h3 { margin-top: 16px; }
.n-card .h3 a { transition: color var(--dur-1) var(--ease); }
.n-card:hover .h3 a { color: var(--accent); }

/* ---------- stat ---------- */
.stat__num { display: flex; align-items: baseline; gap: 6px; }
.stat__num b { font: 400 var(--fs-stat)/1.05 var(--display); letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__num span { font: 600 clamp(1rem, .9rem + .5vw, 1.375rem)/1 var(--body); color: var(--accent); }
.stat__label { margin-top: 10px; font-size: var(--fs-body); color: var(--on-deep-soft); max-width: 22ch; }

/* ---------- FAQ ---------- */
.faq__item { background: var(--tint); }
.faq__item + .faq__item { margin-top: 8px; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px clamp(18px, 2vw, 28px); font: 600 var(--fs-lead)/1.4 var(--body); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ic { transition: transform var(--dur-1) var(--ease); }
.faq__item[open] summary .ic { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__item[open] { background: var(--tint-2); }
.faq__body { padding: 0 clamp(18px, 2vw, 28px) 22px; color: var(--ink-soft); max-width: 70ch; }
/* câu trả lời có ảnh (vd giấy chứng nhận): ảnh nhỏ bên phải chữ, bấm để xem lớn */
.faq__body--img { display: grid; grid-template-columns: minmax(0, 1fr) clamp(84px, 9vw, 120px); align-items: start; gap: clamp(16px, 2vw, 28px); max-width: none; }
.faq__img { display: block; aspect-ratio: 767 / 1100; padding: 4px; background: var(--paper); box-shadow: 0 8px 20px var(--shadow); cursor: zoom-in; transition: transform var(--dur-2) var(--ease); }
.faq__img:hover { transform: translateY(-3px); }
.faq__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- mạng xã hội ---------- */
.social { display: flex; gap: 6px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; transition: color var(--dur-1) var(--ease); }
.social a:hover { color: var(--accent); }
/* logo "Đã thông báo Bộ Công Thương" (online.gov.vn) */
.footer__bct { display: inline-flex; margin-top: 18px; transition: opacity var(--dur-1) var(--ease); }
.footer__brand .footer__bct img { width: 150px; height: auto; }
.footer__bct:hover { opacity: .85; }
.social .ic { width: 22px; height: 22px; }
.social--lg .ic { width: 26px; height: 26px; }

/* ---------- thanh trên + header (ref Piaget): trong suốt trên banner, có nền khi cuộn; menu nằm trong nút ---------- */
:root { --topbar-h: 32px; --hair: 0.5px; }
.topbar { position: relative; z-index: 61; height: var(--topbar-h); background: var(--accent-grad); color: var(--on-accent); font-size: var(--fs-xs); overflow: hidden; scrollbar-width: none; }
.topbar__in { display: flex; width: max-content; height: 100%; font-size: 0.6875rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.topbar__in li { display: flex; align-items: center; }
.topbar__in li::after { content: ""; width: 4px; height: 4px; margin-inline: clamp(20px, 2.4vw, 40px); background: currentColor; transform: rotate(45deg); opacity: .7; }
.topbar.is-running .topbar__in { animation: marquee var(--marquee-dur, 40s) linear infinite; }
.topbar.is-running:hover .topbar__in { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.header { position: sticky; top: 0; z-index: 60; color: var(--ink); transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
/* header luôn nền đen, chữ sáng, ở mọi mood (feedback 2026-10-09) */
.header, html[data-mood] .header { background: var(--photo-paper); --ink: var(--photo-ink); --ink-soft: var(--photo-ink-soft); --accent: var(--accent-hover); --line: var(--photo-line); --line-strong: var(--photo-line-strong); --paper: var(--photo-paper); color: var(--ink); }
.header__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: var(--header-h); }
.header__left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.header__in { column-gap: clamp(16px, 2vw, 40px); }
.nav { flex: 0 1 auto; min-width: 0; overflow: hidden; }
.nav--right { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 1.5vw, 30px); }
.nav .nav__link { min-height: 44px; font: 600 0.75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.header .burger { display: none; }
.header.is-compact .burger { display: block; }
.header.is-compact .nav { display: none; }
.header__logo { display: block; }
.header__logo img { height: calc(var(--header-h) - 22px); width: auto; }
.header__tools { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.header__tools .tool:last-child { margin-right: -12px; }
.header__tools .nav { margin-right: clamp(6px, 1vw, 18px); }
.nav__link { display: inline-flex; align-items: center; cursor: pointer; transition: color var(--dur-1) var(--ease); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--accent); }
.tool { display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.375rem; transition: color var(--dur-1) var(--ease); }
.tool:hover { color: var(--accent); }
.burger { position: relative; width: 44px; height: 44px; margin-left: -10px; }
.burger span { position: absolute; left: 10px; width: 24px; height: 1.5px; background: currentColor; transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease), top var(--dur-2) var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 21px; opacity: 0; } .burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(var(--header-h) + 72px) max(var(--gutter), (100% - var(--container)) / 2) 40px; background: var(--paper); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s var(--dur-2); }
.drawer.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.drawer .nav__link { min-height: 60px; font: 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem)/1.2 var(--display); letter-spacing: 0; text-transform: none; }
.drawer__nav li { border-bottom: var(--hair) solid var(--line); }
.drawer__nav .nav__link { display: flex; align-items: center; width: 100%; min-height: 0; padding-block: clamp(20px, 2.6vh, 28px); }
.btn .ic { flex: none; width: 18px; height: 18px; }
body.is-locked { overflow: hidden; }

/* ---------- footer ---------- */
.footer { background: var(--deep); color: var(--on-deep-soft); padding-block: var(--section-y-tight) 28px; font-size: var(--fs-small); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 40px clamp(20px, 2.6vw, 48px); }
.footer { position: relative; }
.footer__brand img { height: 64px; width: auto; }
.footer__lead { margin-top: 18px; font: 400 clamp(1.0625rem, .96rem + .3vw, 1.25rem)/1.2 var(--display); letter-spacing: 0; color: var(--on-deep); }
.footer__company { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; }
.footer__company .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
/* cột Liên hệ: số hotline to (chữ tiêu đề), Zalo / Messenger, rồi email, địa chỉ, giờ mở cửa */
.footer__hotline { display: grid; gap: 4px; font: 400 clamp(1.5rem, 1.15rem + .9vw, 2rem)/1.1 var(--display); letter-spacing: 0; color: var(--on-deep); -webkit-text-stroke: .022em currentColor; paint-order: stroke fill; }
.footer__hotline small { font: 600 0.6875rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-soft); -webkit-text-stroke: 0; }
.footer__chat { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer__chat a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; box-shadow: inset 0 0 0 var(--hair) var(--line-strong); color: var(--on-deep); font-weight: 600; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.footer .footer__chat a:hover { background: var(--on-deep); color: var(--deep); }   /* thắng luật .footer a:hover (chữ vàng trên nền tối bị chìm) */
.footer__chat .ic { width: 18px; height: 18px; }
/* icon Zalo có chữ trắng vẽ sẵn bên trong: ô icon trong nút luôn giữ màu Zalo, không theo màu chữ của nút
   (nút đảo màu khi rê chuột / mood tối thì ô không bị trắng trùng chữ) */
:is(.btn, .footer__chat a) .ic:has(use[href$="#brand-zalo"]) { color: var(--brand-zalo); }
.footer__chat .ic:has(use[href$="#brand-messenger"]) { color: var(--brand-messenger); }
.footer__info { display: grid; gap: 10px; margin-top: 18px; }
.footer__info li { display: flex; align-items: flex-start; gap: 12px; }
.footer__info .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.footer__brand .social { margin: 16px 0 0 -11px; }
.footer__title { margin-bottom: 14px; font: 600 var(--fs-body)/1.3 var(--body); color: var(--on-deep); }
.footer a { transition: color var(--dur-1) var(--ease); }
.footer__col a { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; }
.footer a:hover { color: var(--accent); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; margin-top: clamp(32px, 4vw, 56px); padding: 20px 0 0; }
.mona-sign { display: flex; align-items: center; justify-content: center; gap: 13px; flex-wrap: wrap; }
.mona-sign span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-soft); }
.mona-sign a { display: inline-flex; opacity: .9; transition: opacity var(--dur-1), transform var(--dur-1); }
.mona-sign a:hover { opacity: 1; transform: translateY(-1px); }
.mona-sign img { height: 19px; width: auto; }

/* ---------- nút nổi ---------- */
.floating { position: fixed; right: clamp(12px, 1.6vw, 24px); bottom: clamp(16px, 2vw, 28px); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.floating__call, .floating__top { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 1.25rem; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease), visibility 0s; }
.floating__call { background: var(--accent-grad) 0 0 / 220% 100%; color: var(--on-accent); }
.floating__call:hover { background-position: 100% 0; }
.floating__brand img { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px var(--shadow)); }
.floating__brand--zalo { color: var(--brand-zalo); }
.floating__brand--messenger { color: var(--brand-messenger); }
.floating__top { background: var(--tint-2); color: var(--ink); opacity: 0; visibility: hidden; }
.floating__top:hover { background: var(--ink); color: var(--paper); }
.floating.is-scrolled .floating__top { opacity: 1; visibility: visible; }
.floating__call, .floating__brand { animation: wiggle 7s var(--ease) infinite; }
.floating__brand--zalo { animation-delay: .5s; } .floating__brand--messenger { animation-delay: 1s; }
@keyframes wiggle { 0%, 88%, 100% { transform: none; } 90% { transform: rotate(-9deg); } 93% { transform: rotate(8deg); } 96% { transform: rotate(-5deg); } }

/* ---------- góc khuyến mãi (ref Daniel Wellington): tam giác ở góc trái dưới, chữ chạy theo cạnh huyền, có nút ẩn ---------- */
.promo { --promo: clamp(138px, 12vw, 168px); position: fixed; left: 0; bottom: 0; z-index: 49; width: var(--promo); height: var(--promo); pointer-events: none; transform: translate(-100%, 100%); transition: transform var(--dur-3) var(--ease); }
.has-promo .promo { transform: none; }
@keyframes promo-pulse { 0%, 100% { transform: none; filter: none; } 50% { transform: scale(1.09); filter: brightness(1.14); } }
.has-promo .promo__in { transform-origin: 0 100%; animation: promo-pulse 1.5s ease-in-out infinite; }
.promo__in { position: absolute; inset: 0; background: var(--accent-grad); color: var(--on-accent); clip-path: polygon(0 0, 100% 100%, 0 100%); pointer-events: auto; }
.promo__text { position: absolute; left: 38.5%; top: 61.5%; transform: translate(-50%, -50%) rotate(45deg); font: 600 0.6875rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.promo__close { position: absolute; left: 6px; bottom: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--on-accent); color: var(--champ-1); font-size: 0.625rem; }
.promo__close::after { content: ""; position: absolute; inset: -9px; }
@media (max-width: 767px) { .promo__text { font-size: 0.6875rem; letter-spacing: .05em; } }

/* ---------- panel liên hệ (ref Piaget): trượt từ phải, danh sách kẻ mảnh, link FAQ ở chân ---------- */
.contact { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s var(--dur-3); }
.contact.is-open { visibility: visible; transition-delay: 0s; }
.contact__scrim { position: absolute; inset: 0; background: var(--scrim-strong); opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.contact.is-open .contact__scrim { opacity: 1; }
.contact__panel { position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(100%, 480px); background: var(--tint); color: var(--ink); overflow-y: auto; transform: translateX(100%); transition: transform var(--dur-3) var(--ease); }
.contact.is-open .contact__panel { transform: none; }
.contact__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 24px; border-bottom: var(--hair) solid var(--line); }
.contact__title { font: 400 1.375rem/1 var(--display); letter-spacing: 0; }
.contact__body { flex: 1; padding: 28px 24px; }
.contact__lead { color: var(--ink-soft); }
.contact__list { margin-top: 28px; }
.contact__list li + li { border-top: var(--hair) solid var(--line); }
.contact__list a { display: flex; align-items: center; gap: 16px; min-height: 56px; font: 400 1.1875rem/1.2 var(--display); letter-spacing: 0; transition: color var(--dur-1) var(--ease); }
.contact__list a span { flex: 1; }
.contact__list .ic:first-child { font-size: 1.375rem; }
.contact__list a > :first-child { flex: none; width: 24px; height: 24px; }
.contact__list .ic:last-child, .contact__foot .ic { font-size: 0.875rem; }
.contact__list a:hover, .contact__foot:hover { color: var(--accent); }
.contact__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; border-top: var(--hair) solid var(--line); font: 600 0.75rem/1.5 var(--body); letter-spacing: .14em; text-transform: uppercase; transition: color var(--dur-1) var(--ease); }
@media (prefers-reduced-motion: reduce) { .contact, .contact__panel, .contact__scrim { transition: none; } }

/* ---------- intro lúc vào trang: màn espresso + logo, rồi kéo lên như tấm rèm ---------- */
.intro { display: none; }
.intro-on .intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--photo-paper); transition: transform var(--dur-intro-out) cubic-bezier(.76, 0, .24, 1); }
.intro__logo { width: min(58vw, 320px); height: auto; opacity: 0; transform: translateY(18px) scale(.94); animation: intro-in var(--dur-3) var(--ease) .15s forwards; }
@keyframes intro-in { to { opacity: 1; transform: none; } }
.intro.is-leaving { transform: translateY(-100%); }
.intro.is-leaving .intro__logo { animation: intro-out var(--dur-intro-out) cubic-bezier(.76, 0, .24, 1) forwards; }
@keyframes intro-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(46vh); } }
.intro-on, .intro-on body { overflow: hidden; }

/* ---------- hiện ra khi cuộn ---------- */
.js .js-reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.js .js-reveal.is-in { opacity: 1; transform: none; }
/* tiêu đề so le: từng dòng lên lần lượt */
.js .stag.js-reveal { opacity: 1; transform: none; }
.js .stag.js-reveal span { opacity: 0; transform: translateY(.45em); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.js .stag.js-reveal span:nth-child(2) { transition-delay: .12s; }
.js .stag.js-reveal span:nth-child(3) { transition-delay: .24s; }
.js .stag.js-reveal.is-in span { opacity: 1; transform: none; }
/* ảnh lớn: màn kéo từ trên xuống, ảnh bên trong thu về đúng cỡ */
.js .js-reveal--clip { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.4s cubic-bezier(.76, 0, .24, 1); }
.js .js-reveal--clip.is-in { clip-path: inset(0); }
.js .js-reveal--clip img { scale: 1.14; transition: scale 1.8s var(--ease); }
.js .js-reveal--clip.is-in img { scale: 1; }
/* chỉ mờ dần (khối có transform riêng bên trong) */
.js .js-reveal--fade { transform: none; }
.js-zoom { overflow: hidden; }
@supports (animation-timeline: view()) {
  .js-zoom img { animation: zoom linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
}

/* ---------- khổ nhỏ ---------- */
@media (max-width: 1100px) {
  .header .burger { display: block; }
  .header .nav { display: none; }
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(4, 1fr); }
  .footer__brand, .footer__contact { grid-column: span 2; grid-row: 1; }
  .footer__contact { grid-column: 3 / span 2; }
}
@media (max-width: 767px) {
  .floating:not(.is-scrolled) .floating__top { display: none; }
  .tabs { justify-content: flex-start; gap: 16px; }
  .tab { font-size: 0.75rem; letter-spacing: .06em; }
  .has-promo .footer { padding-bottom: 148px; }
  .m-review__list > .r-card { width: 80vw; }
  .r-card { grid-template-columns: 1fr; padding: 12px 12px 20px; }
  .r-card__photo { aspect-ratio: 4 / 3; }
  .rail__track > .p-card { width: 62vw; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .btn { min-height: 44px; padding: 0 20px; }
  .btn--line { min-height: 44px; padding: 0; }
  .floating { gap: 10px; }
  .footer__col a { min-height: 30px; }
  .footer__col { text-align: center; }
  .footer__brand { display: grid; justify-items: center; text-align: center; }
  .footer__brand, .footer__contact { grid-column: 1 / -1; grid-row: auto; }
  .footer__brand { order: -2; }
  .footer__contact { order: -1; }
  .footer__contact { display: grid; justify-items: center; text-align: center; padding-block: 8px 28px; }
  .footer__chat { justify-content: center; }
  .footer__info { justify-items: center; }
  .footer__info li { text-align: left; }
  .footer__brand .social { margin-left: 0; }
  .p-card__thumb, .p-card .p-card__more { width: 28px; height: 35px; }
  .p-card .p-card__more { padding-bottom: 5px; }
  .p-card__thumb { padding: 1px 1px 5px; }
  .p-card__thumb::after { height: 3px; }
  .p-deal { font-size: 0.6875rem; letter-spacing: .08em; }
  .p-card__thumbs { height: 35px; gap: 3px; }
  /* cụm tiêu đề section canh giữa, các dòng thẳng trục giữa (không so le như khổ lớn) */
  main .h2 { margin-inline: auto; text-align: center; }
  /* tiêu đề hai dòng: trên mobile để chữ tự xuống dòng, câu ngắn thì nằm trọn một hàng */
  main .stag { width: auto; white-space: normal; text-wrap: balance; }
  main .stag span { display: inline; }
  main .stag span + span::before { content: " "; }
  .m-hot__head .stag span { display: block; }
  .m-hot__head .stag span + span::before { content: none; }
  .floating__call, .floating__top { width: 44px; height: 44px; }
  .floating__brand .ic { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .js-reveal, .js .stag.js-reveal span { opacity: 1; transform: none; }
  .js .js-reveal--clip { clip-path: none; }
  .js .js-reveal--clip img { scale: 1; }
}

/* font tiêu đề chỉ có một nét Regular: làm đậm thêm bằng viền chữ cùng màu */
.h2, .banner__title, .m-hot__name, .m-say__text, .m-line__name, .stat__num b, .m-vow__item b, .drawer .nav__link, .footer__lead, .contact__title, .contact__list a { -webkit-text-stroke: .022em currentColor; paint-order: stroke fill; }

/* ---------- khối dùng chung nhiều trang: dải cam kết chạy ngang, CTA cuối (chuyển từ home.css) ---------- */
.m-vow { padding-block: clamp(10px, 1vw, 14px); background: var(--tile); }
html:not([data-mood="den"]) .m-vow.is-light { background: var(--tile); }
.m-vow__viewport { overflow: hidden; }
.m-vow__list { display: flex; width: max-content; }
.m-vow__viewport.is-running .m-vow__list { animation: marquee var(--marquee-dur, 40s) linear infinite; }
.m-vow__viewport.is-running:hover .m-vow__list { animation-play-state: paused; }
.m-vow__item { display: flex; align-items: center; gap: 10px; padding-inline: clamp(12px, 1.3vw, 22px); white-space: nowrap; }
.m-vow__item .ic { width: 24px; height: 24px; color: var(--ink); }
.m-vow__item b { display: block; font: 400 clamp(.9375rem, .9rem + .15vw, 1.0625rem)/1.2 var(--display); letter-spacing: 0; color: var(--ink); }
.m-vow__item small { display: block; margin-top: 0; font-size: 0.75rem; color: var(--ink-soft); }

.m-cta__grid { --split: minmax(0, 5fr) minmax(0, 7fr); --split-gap: clamp(28px, 5vw, 96px); }
.m-cta__grid { display: grid; grid-template-columns: var(--split); align-items: stretch; gap: var(--split-gap); }
.m-cta__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }   /* địa chỉ, giờ mở cửa đã có ở footer ngay dưới: khối này chỉ còn lời mời, nút và bản đồ */
.m-cta__body .lead { margin-top: clamp(16px, 1.8vw, 24px); max-width: 40ch; }
.m-cta__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: clamp(24px, 3vw, 40px); }
.m-cta__chat img { display: none; }
.m-cta__map { position: relative; min-height: clamp(320px, 34vw, 520px); background: var(--light-tile); overflow: hidden; }
.m-cta__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) {
  .m-cta__grid { grid-template-columns: 1fr; }
  .m-cta__map { min-height: clamp(260px, 56vw, 420px); }
}
@media (max-width: 767px) {
  .m-cta__body { align-items: center; }
  .m-cta__body .lead { text-align: center; }
  .m-cta__btns { flex-wrap: nowrap; justify-content: center; width: 100%; gap: 12px; }
  .m-cta__btns .btn:first-child { flex: none; padding-inline: 24px; }
  .m-cta__chat { flex: none; width: 50px; min-height: 50px; padding: 0; box-shadow: none; background: none; }
  .m-cta__chat img { display: block; width: 46px; height: 46px; }
  .m-cta__chat span { display: none; }
}

/* ---------- số trên biểu tượng giỏ + thông báo "đã thêm vào giỏ" ---------- */
.tool--cart { position: relative; }
.tool__count { position: absolute; top: 4px; right: 0; display: grid; place-items: center; min-width: 18px; height: 18px; padding-inline: 5px; border-radius: var(--r-pill); background: var(--accent-grad); color: var(--on-accent); font: 600 0.6875rem/1 var(--body); font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: clamp(16px, 2vw, 28px); z-index: 80; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; background: var(--photo-paper); color: var(--photo-ink); font-size: var(--fs-small); box-shadow: 0 10px 30px var(--shadow); opacity: 0; transform: translate(-50%, 12px); transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast > .ic { flex: none; width: 20px; height: 20px; color: var(--champ-2); }
.toast .link-cta { color: var(--champ-2); }

/* ---------- form dùng chung (thanh toán, liên hệ): nhãn trên ô, lỗi dưới ô, nút đang gửi ---------- */
.btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid var(--on-accent); border-right-color: transparent; border-radius: var(--r-pill); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font: 600 var(--fs-xs)/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.field label small { font-size: 0.75rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-mute); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.4 var(--body); transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field__select { position: relative; }
.field__select select { appearance: none; padding-right: 44px; cursor: pointer; }
.field__select .ic { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.field.is-error input, .field.is-error select { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field__err { font-size: var(--fs-xs); color: var(--danger); }
.choice { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px; border: 1px solid var(--line); cursor: pointer; transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.choice:hover { border-color: var(--ink-soft); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { flex: none; appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r-pill); display: grid; place-items: center; cursor: pointer; }
.choice input::after { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--ink); opacity: 0; }
.choice input:checked { border-color: var(--ink); }
.choice input:checked::after { opacity: 1; }
.choice > .ic { flex: none; width: 24px; height: 24px; color: var(--accent); }
.choice span { display: grid; gap: 2px; font-size: var(--fs-small); }
.choice b { font-weight: 600; }
.choice small { color: var(--ink-soft); }

/* ---------- đường dẫn (breadcrumb) trang con ---------- */
.crumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-xs); color: var(--ink-mute); }
.crumb li { display: flex; align-items: center; }
.crumb li + li::before { content: "/"; margin-inline: 10px; opacity: .6; }
.crumb a { color: var(--ink-soft); transition: color var(--dur-1) var(--ease); }
.crumb a:hover { color: var(--accent); }
.crumb [aria-current] { color: var(--ink); }
.crumb--light ol { color: var(--photo-ink-soft); }
.crumb--light a { color: var(--photo-ink-soft); }
.crumb--light a:hover { color: var(--champ-2); }
.crumb--light [aria-current] { color: var(--photo-ink); }
@media (max-width: 767px) {
  /* mobile: đường dẫn luôn một dòng, mục cuối (trang hiện tại) dài thì cắt bằng "…" */
  .crumb ol { flex-wrap: nowrap; white-space: nowrap; }
  .crumb li { flex: none; }
  .crumb li:last-child { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- phân trang + khoảng cách rail sản phẩm ở trang con ---------- */
.pager { display: flex; justify-content: center; gap: 4px; margin-top: clamp(36px, 4vw, 64px); }
.pager button { min-width: 44px; height: 44px; font: 600 var(--fs-small)/1 var(--body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pager button:hover { color: var(--ink); }
.pager button[aria-current] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--accent); }
.pager { align-items: center; }
.pager__step { display: grid; place-items: center; }
.pager__step .ic { width: 16px; height: 16px; }
.pager__step:disabled { opacity: .3; pointer-events: none; }
.pager__gap { min-width: 28px; text-align: center; color: var(--ink-mute); }
.pd-more .rail { margin-top: var(--head-gap); }
.n-card__date { margin-top: 16px; font-size: var(--fs-xs); letter-spacing: .08em; color: var(--ink-mute); }
.n-card__date + .h3 { margin-top: 6px; }
.n-card__cat { margin-left: 10px; padding-left: 10px; box-shadow: inset 1px 0 0 var(--line-strong); color: var(--accent); }

/* ---------- khung tìm kiếm: thả xuống từ trên, nền mờ phía sau ---------- */
.search { position: fixed; inset: 0; z-index: 90; }
.search__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.search__panel { position: relative; max-height: min(86svh, 760px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); transform: translateY(-16px); opacity: 0; transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease); }
.search.is-open .search__scrim { opacity: 1; }
.search.is-open .search__panel { transform: none; opacity: 1; }
.search__bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 14px; min-height: 76px; background: var(--paper); border-bottom: var(--hair) solid var(--line); }
.search__bar > .ic { flex: none; width: 22px; height: 22px; color: var(--ink-soft); }
.search__input { flex: 1; min-width: 0; height: 56px; border: 0; background: none; color: var(--ink); font: 400 clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.2 var(--body); }
.search__input:focus { outline: none; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__body { padding-block: clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 40px); }
.search__group + .search__group { margin-top: 24px; }
.search__group > .label { margin-bottom: 12px; color: var(--ink-mute); }
.search__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search__chip { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.search__results { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 64px); align-items: start; }
.search__results > .search__group + .search__group { margin-top: 0; }
.search__results > .search__group[hidden] + .search__group { grid-column: 1 / -1; }
.search__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px; transition: background var(--dur-1) var(--ease); }
.search__item:hover, .search__item[aria-selected="true"] { background: var(--tile); }
.search__item img { width: 56px; height: 70px; object-fit: contain; background: var(--tile); }
.search__name { display: grid; gap: 2px; font: 600 var(--fs-small)/1.35 var(--body); letter-spacing: .02em; text-transform: uppercase; }
.search__name small { font: 400 var(--fs-xs)/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.search__item .price { display: grid; justify-items: end; gap: 0; }
.search__item .price b { font-size: var(--fs-small); }
.search mark { background: none; color: var(--accent); }
.search__links a { display: grid; gap: 2px; padding: 10px 0; border-bottom: var(--hair) solid var(--line); font-size: var(--fs-small); transition: color var(--dur-1) var(--ease); }
.search__links a:hover { color: var(--accent); }
.search__links small { font-size: var(--fs-xs); color: var(--ink-mute); }
.search__all { grid-column: 1 / -1; justify-self: start; margin-top: 16px; }
.search__none { color: var(--ink-soft); }
.search__none b { color: var(--ink); }
@media (max-width: 767px) {
  .search__panel { max-height: 100svh; height: 100svh; }
  .search__results { grid-template-columns: minmax(0, 1fr); }
  .search__results > .search__group + .search__group { margin-top: 24px; }
  .search__item .price s { display: none; }
}

/* ---------- lưới logo thương hiệu (home ẩn, trang Thương hiệu) ---------- */
.m-brands__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--head-gap); }
.m-brands__tile { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: clamp(16px, 2.4vw, 40px); background: var(--tile); cursor: pointer; transition: background var(--dur-2) var(--ease); }
.m-brands__tile:hover { background: var(--tint-2); }
.m-brands__logo { width: auto; height: auto; max-width: min(82%, 230px); max-height: clamp(26px, 3vw, 44px); object-fit: contain; filter: brightness(0) invert(.93) sepia(.12); opacity: .92; transition: opacity var(--dur-1) var(--ease); }
html[data-mood="trang"] .m-brands__logo, html:not([data-mood="den"]) .section--light .m-brands__logo { filter: brightness(0); opacity: .82; }
.m-brands__logo--tall { max-height: clamp(46px, 5.4vw, 78px); }
.m-brands__tile:hover .m-brands__logo { opacity: 1; }
@media (max-width: 767px) {
  .m-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .m-brands__tile { aspect-ratio: 2 / 1; padding: 18px; }
  .m-brands__logo { max-height: 30px; }
  .m-brands__logo--tall { max-height: 52px; }
}

/* ảnh sản phẩm nền trắng (lấy từ web cũ) hoà vào nền ô ở giao diện sáng; ảnh đã tách nền không bị ảnh hưởng */
html:not([data-mood="den"]) :is(.p-card__img img, .p-card__thumb img, .pd__shot--cutout img, .pd__thumb--cutout img, .pd__variant img, .cart-row__img img, .search__item img, .bl__img img) { mix-blend-mode: multiply; }

/* ---------- ô chọn tuỳ biến (thay bảng chọn mặc định): nút + bảng thả xuống ---------- */
.dd__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd { position: relative; }
.dd__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; color: var(--ink); text-align: left; cursor: pointer; }
.dd__btn .ic { flex: none; width: 16px; height: 16px; transition: transform var(--dur-1) var(--ease); }
.dd.is-open .dd__btn .ic { transform: rotate(180deg); }
.dd.is-empty .dd__val { color: var(--ink-mute); }
.dd__pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; min-width: max(100%, 220px); max-width: min(92vw, 380px); padding: 6px; background: var(--paper); border: var(--hair) solid var(--line-strong); box-shadow: 0 18px 40px var(--shadow); opacity: 0; transform: translateY(-6px); transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.dd--right .dd__pop { left: auto; right: 0; }
.dd.is-open .dd__pop { opacity: 1; transform: none; }
.dd__find { width: 100%; height: 42px; margin-bottom: 6px; padding: 0 12px; border: var(--hair) solid var(--line-strong); background: var(--paper); color: var(--ink); font: 400 var(--fs-small)/1 var(--body); }
.dd__find:focus { outline: none; border-color: var(--ink); }
.dd__list { max-height: min(320px, 50svh); overflow-y: auto; overscroll-behavior: contain; }
.dd__list:focus { outline: none; }
.dd__opt { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; font-size: var(--fs-small); color: var(--ink-soft); cursor: pointer; }
.dd__opt .ic { flex: none; width: 16px; height: 16px; color: var(--accent); opacity: 0; }
.dd__opt.is-act { background: var(--tile); color: var(--ink); }
.dd__opt[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.dd__opt[aria-selected="true"] .ic { opacity: 1; }
/* trong form: nút trông như ô nhập */
.field .dd__btn { min-height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); background: var(--paper); font: 400 var(--fs-body)/1.4 var(--body); transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.field .dd__btn:hover { border-color: var(--ink-soft); }
.field .dd.is-open .dd__btn, .field .dd__btn:focus-visible { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field.is-error .dd__btn { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field__select:has(.dd) > .ic { display: none; }


/* ---------- đánh giá khách (home, chi tiết sản phẩm) ---------- */
.m-review__head { margin-bottom: var(--head-gap); }
.m-review__row { overflow: hidden; }
.m-review__list { display: flex; width: max-content; }
.m-review__row.is-running .m-review__list { animation: marquee var(--marquee-dur, 60s) linear infinite; }
.m-review__row.is-running:hover .m-review__list { animation-play-state: paused; }
.m-review .m-strip__viewport { margin-top: var(--gap); }
.m-review .m-strip__viewport--rev.is-running .m-strip__list { animation-direction: reverse; }

/* ---------- video TikTok (home, chi tiết sản phẩm): ô giữa lớn và đang phát, hai bên là ảnh bìa ---------- */
.m-video__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: var(--head-gap); }
.m-video__head .lead { margin-top: 12px; }
.m-video__head .btn .ic { width: 18px; height: 18px; }
.m-video__side { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
/* hàng cuộn ngang: clip đang chọn lớn hơn và nằm giữa, thêm bao nhiêu clip cũng chạy tiếp sang phải */
.m-video { --vid-w: max(180px, min(clamp(200px, 17.6vw, 340px), calc((var(--fit) - 2.4 * var(--fs-h2) - 40px - var(--head-gap)) / 2.382))); }   /* khung video co theo chiều cao màn hình (khung giữa cao 2,382 × rộng) */
.m-video__list { height: calc(var(--vid-w) * 1.34 * 16 / 9); overflow: hidden; }
.m-video__list .swiper-wrapper { display: flex; align-items: center; height: 100%; transition-property: transform; will-change: transform; }
.m-video__slide { position: relative; flex: none; width: var(--vid-w); aspect-ratio: 9 / 16; transition: transform .7s var(--ease); cursor: pointer; }
/* ô giữa phóng to 1,34 lần: các ô trước dạt sang trái, các ô sau dạt sang phải đúng phần nở ra */
.m-video__slide:has(~ .swiper-slide-active) { transform: translateX(calc(var(--vid-w) * -.17)); }
.swiper-slide-active ~ .m-video__slide { transform: translateX(calc(var(--vid-w) * .17)); }
.m-video__item { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); overflow: hidden; background: var(--deep-2); opacity: .5; transition: width .7s var(--ease), height .7s var(--ease), opacity var(--dur-2) var(--ease); }
.swiper-slide-active .m-video__item { z-index: 1; width: 134%; height: 134%; opacity: 1; }
.m-video__item img, .m-video__item iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
/* TikTok không có tham số ẩn số like / bình luận / chia sẻ: phóng khung phát 1,22 lần neo góc trái dưới để cột số bên phải, avatar và logo phía trên tràn ra ngoài ô; nút dừng, tắt tiếng, thời gian ở góc trái dưới vẫn còn */
.m-video__item iframe { transform: scale(1.3); transform-origin: 50% 50%; }
.m-video__item.is-ctl iframe { transform: none; }   /* thanh điều khiển nằm sát mép dưới, phóng lên là bị cắt mất */
/* TikTok không có tham số ẩn số like / bình luận / chia sẻ: phóng khung phát 1,3 lần TỪ TÂM (nội dung giữa khung không lệch),
   cắt avatar, logo, cột số ở mép phải và thanh điều khiển dưới đáy; bật / tắt tiếng bằng nút riêng (postMessage tới trình phát) */
.m-video__slide { --grow: 1; }
.m-video__slide.swiper-slide-active { --grow: 1.34; }
.m-video__sound { position: absolute; z-index: 2; left: calc(50% * (1 - var(--grow)) + 14px); bottom: calc(50% * (1 - var(--grow)) + 14px); display: none; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--scrim); color: var(--photo-ink); backdrop-filter: blur(6px); transition: background var(--dur-1) var(--ease), left .7s var(--ease), bottom .7s var(--ease); }
.m-video__slide:has(.is-playing) .m-video__sound { display: grid; }
.m-video__slide:has(.is-ctl) .m-video__sound { display: none; }   /* khung đang hiện thanh điều khiển TikTok (có sẵn nút loa) */
.m-video__sound:hover { background: var(--scrim-strong); }
.m-video__sound .ic { width: 20px; height: 20px; }
.m-video__sound[aria-pressed="true"] .ic:first-child, .m-video__sound[aria-pressed="false"] .ic:last-child { display: none; }
.m-video__slide:not(.swiper-slide-active):hover .m-video__item { opacity: 1; }
.m-video__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--accent-grad); color: var(--on-accent); border-radius: var(--r-pill); transition: transform var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease); }
.m-video__play .ic { width: 20px; height: 20px; margin-left: 2px; }
.m-video__item:hover .m-video__play { transform: scale(1.04); }
.m-video__item.is-playing .m-video__play, .m-video__item.is-playing img { opacity: 0; }

.m-video__more { display: none; }
@media (max-width: 767px) {
  .m-video__head { justify-content: center; text-align: center; }
  .m-video__head > div { width: 100%; }
  .m-video { --vid-w: 68vw; }
  .m-video__list { height: calc(var(--vid-w) * 16 / 9); }
  .m-video__slide, .m-video__slide:has(~ .swiper-slide-active), .swiper-slide-active ~ .m-video__slide { transform: none; }
  .swiper-slide-active .m-video__item { width: 100%; height: 100%; }
  .m-video__slide.swiper-slide-active { --grow: 1; }
  .m-video__side { display: none; }
  .m-video__head { margin-bottom: 28px; }
  .m-video__more { display: flex; justify-content: center; margin-top: 28px; }
}

/* ---------- xem ảnh lớn (chi tiết sản phẩm, ảnh thật): nền tối toàn màn hình ---------- */
html.is-lb { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--photo-paper); color: var(--photo-ink); }
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter); }
.lb__count { font: 600 0.75rem/1 var(--body); letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--photo-ink-soft); }
.lb__count b { color: var(--photo-ink); font-weight: 600; }
.lb__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-pill); color: var(--photo-ink); background: var(--deep-2); transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.lb__btn:hover { background: var(--photo-ink); color: var(--photo-paper); }
.lb__btn .ic { width: 22px; height: 22px; }
.lb__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 clamp(16px, 6vw, 96px); overflow: hidden; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform var(--dur-2) var(--ease); user-select: none; -webkit-user-drag: none; }
/* ảnh sản phẩm tách nền: đặt trên ô sáng cho đúng màu như ở trang */
.lb__img.is-cutout { padding: clamp(16px, 4vw, 56px); background: var(--white-tile); }
.lb.is-zoom .lb__img { transform: scale(2.2); cursor: zoom-out; }
.lb.is-zoom .lb__stage { touch-action: none; }
.lb.is-zoom .lb__nav { opacity: 0; pointer-events: none; }
.lb__nav { position: absolute; top: 50%; margin-top: -24px; }
.lb__nav--prev { left: clamp(8px, 2vw, 32px); }
.lb__nav--next { right: clamp(8px, 2vw, 32px); }
.lb__thumbs { display: flex; justify-content: safe center; gap: 6px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; }
.lb__thumbs[hidden] { display: none; }
.lb__thumb { flex: none; width: 56px; aspect-ratio: 4 / 5; overflow: hidden; opacity: .45; box-shadow: inset 0 0 0 1px transparent; transition: opacity var(--dur-1) var(--ease); }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumb.is-cutout { padding: 4px; background: var(--white-tile); }
.lb__thumb.is-cutout img { object-fit: contain; }
.lb__thumb:hover, .lb__thumb.is-active { opacity: 1; }
.lb__thumb.is-active { box-shadow: 0 0 0 1px var(--photo-ink); }
@media (max-width: 767px) {
  .lb__stage { padding: 0; }
  .lb__nav { display: none; }
  .lb__thumbs { justify-content: flex-start; }
  .lb__thumb { width: 44px; }
}

/* ---------- ảnh nền đầu trang con: phóng nhẹ rồi thu về khi vào trang (như banner home) ---------- */
.br-hero__bg, .lg-hero__bg, .tk-hero__bg { animation: hero-in 2.4s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .br-hero__bg, .lg-hero__bg, .tk-hero__bg { animation: none; } }

/* link "Bỏ qua tới nội dung": ẩn, chỉ hiện khi dùng phím Tab */
.skip { position: fixed; z-index: 300; left: 12px; top: 12px; padding: 12px 18px; background: var(--ink); color: var(--paper); font: 600 var(--fs-small)/1 var(--body); transform: translateY(-160%); transition: transform var(--dur-1) var(--ease); }
.skip:focus { transform: none; }
main:focus { outline: none; }

/* màu kim loại theo mã vỏ (đoạn 2 của SKU): chấm ở nút chọn vỏ (trang chi tiết), viền chấm màu trên thẻ sản phẩm */
[data-metal] { --metal: linear-gradient(135deg, var(--metal-steel-1), var(--metal-steel-2)); --metal-bar: var(--metal-steel-2); }
[data-metal="VH"] { --metal: linear-gradient(135deg, var(--metal-rose-1), var(--metal-rose-2)); --metal-bar: var(--metal-rose-2); }
[data-metal="VV"] { --metal: linear-gradient(135deg, var(--metal-gold-1), var(--metal-gold-2)); --metal-bar: var(--metal-gold-2); }
[data-metal="CH"] { --metal: linear-gradient(135deg, var(--metal-steel-1) 0 50%, var(--metal-rose-2) 50% 100%); --metal-bar: linear-gradient(90deg, var(--metal-steel-2) 0 50%, var(--metal-rose-2) 50% 100%); }
[data-metal="CV"] { --metal: linear-gradient(135deg, var(--metal-steel-1) 0 50%, var(--metal-gold-2) 50% 100%); --metal-bar: linear-gradient(90deg, var(--metal-steel-2) 0 50%, var(--metal-gold-2) 50% 100%); }
.p-card__more { display: inline-grid; place-items: center; flex: none; width: 40px; height: 50px; background: var(--tile); font: 600 0.6875rem/1 var(--body); color: var(--ink-soft); transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.p-card__more:hover { background: var(--ink); color: var(--paper); }
/* "+N" canh đúng giữa phần ảnh của ô màu bên cạnh (chừa phần vạch màu vỏ ở đáy), cắt khoảng trống trên/dưới của font để chữ không trông lệch */
.p-card__more { padding-bottom: 6px; text-box: trim-both cap alphabetic; }
