/* Bao Banh Bao - showroom vai. CHI 4 tong mau (user chot): trang - xam nhat - xam dam - den.
   O mau vai trong bo loc la DU LIEU mau vai, khong phai mau giao dien. */
:root {
  --bg: #ffffff; --soft: #f3f3f3; --line: #e3e3e3; --muted: #5c5c5c; --ink: #111111;
  --on-ink: #ffffff; --shadow: 0 16px 48px rgba(0, 0, 0, .14);
  --grey-light: #8f8f8f; /* diem cuoi hieu ung chuyen mau chu (xam nhat van du tuong phan tren nen trang) */
  --f-body: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: var(--f-body); /* user chot 2026-09-27: 1 font duy nhat Be Vietnam Pro */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0f0f; --soft: #1c1c1c; --line: #2c2c2c; --muted: #a6a6a6; --ink: #f4f4f4;
    --on-ink: #111111; --shadow: 0 16px 48px rgba(0, 0, 0, .6); --grey-light: #7a7a7a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0f; --soft: #1c1c1c; --line: #2c2c2c; --muted: #a6a6a6; --ink: #f4f4f4;
  --on-ink: #111111; --shadow: 0 16px 48px rgba(0, 0, 0, .6); --grey-light: #7a7a7a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.6 var(--f-body); }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; letter-spacing: -.01em; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.serif { font-family: var(--f-serif); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 4px; font-weight: 500; font-size: 15px; border: 1px solid var(--ink); cursor: pointer; background: var(--ink); color: var(--on-ink); text-align: center; }
.btn.line { background: transparent; color: var(--ink); }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.full { width: 100%; }
.btn.sm { padding: 9px 14px; font-size: 14px; }
.more { font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.more:hover { color: var(--ink); }

/* ===== Dau trang ===== */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font: 600 14px/1 var(--f-serif); letter-spacing: .04em; }
.logo b { display: block; font: 600 19px/1.1 var(--f-serif); letter-spacing: -.01em; }
.logo small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 520px; width: 100%; justify-self: center; background: var(--soft); border-radius: 4px; padding: 0 14px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 0; outline: none; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.icons { display: flex; align-items: center; gap: 4px; }
.ic { position: relative; min-width: 42px; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.ic:hover { background: var(--soft); }
.ic .n, .tabbar .n { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: var(--on-ink); font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.ic .lbl { display: inline; }
.menu { border-bottom: 1px solid var(--line); }
.menu .wrap { display: flex; gap: 34px; overflow-x: auto; scrollbar-width: none; }
.menu a { padding-block: 13px; font-size: 14.5px; white-space: nowrap; border-bottom: 1.5px solid transparent; color: var(--muted); }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 6px; z-index: 30; max-height: 70vh; overflow-y: auto; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 4px; font-size: 14.5px; }
.suggest a:hover, .suggest a.on { background: var(--soft); }
.suggest img { width: 40px; height: 52px; object-fit: cover; border-radius: 3px; }
.suggest small { display: block; color: var(--muted); font-size: 12.5px; }
.suggest .all { justify-content: center; font-weight: 500; }

/* ===== Chung ===== */
.crumb { font-size: 13px; color: var(--muted); padding-block: 20px 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumb a:hover { color: var(--ink); }
.sec { margin-top: 56px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-h h2 { margin: 0; font: 500 26px/1.2 var(--f-serif); }
.sec-h p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.page-h { padding-block: 8px 24px; display: grid; gap: 10px; max-width: 760px; }
.page-h h1 { margin: 0; font: 500 clamp(28px, 4vw, 40px)/1.15 var(--f-serif); }
.page-h p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid transparent; border-radius: 999px; padding: 7px 15px; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.chip em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.chip[aria-pressed="true"] em { color: inherit; opacity: .7; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; flex: none; }
.empty { padding: 50px 0; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); background: var(--soft); border-radius: 4px; padding: 12px 14px; }
.kv { margin: 0; display: grid; gap: 14px; }
.kv dt { font-size: 14px; font-weight: 600; }
.kv dd { margin: 2px 0 0; font-size: 15px; }
.tag-ref { position: absolute; left: 8px; bottom: 8px; background: rgba(17, 17, 17, .85); color: #fff; font-size: 11px; letter-spacing: .08em; padding: 3px 8px; border-radius: 3px; font-weight: 500; }

/* ===== Trang chu ===== */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--soft); margin-top: 24px; border-radius: 6px; overflow: hidden; }
.hero .txt { padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; align-content: center; }
.hero h1 { margin: 0; font: 500 clamp(32px, 4.2vw, 50px)/1.12 var(--f-serif); letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--muted); max-width: 40ch; }
.hero .btn { justify-self: start; }
.hero .pic { min-height: 360px; background: var(--line) center / cover no-repeat; }
.need { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.need a { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 22px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; font-weight: 500; }
.need a:hover { border-color: var(--ink); }
.need span { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.feel { display: flex; flex-wrap: wrap; gap: 10px; }
.feel a { padding: 10px 18px; border-radius: 999px; background: var(--soft); font-size: 15px; }
.feel a:hover { background: var(--ink); color: var(--on-ink); }
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat { display: grid; gap: 10px; }
.cat .ph { aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--line); }
.cat img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.cat:hover img { transform: scale(1.04); }
.cat b { font-weight: 500; font-size: 15px; }
.cat span { font-size: 13px; color: var(--muted); display: block; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post { display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 6px; }
.post:hover { border-color: var(--ink); }
.post h3 { margin: 0; font: 500 19px/1.3 var(--f-serif); }
.post p { margin: 0; font-size: 14.5px; color: var(--muted); }
.promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--ink); color: var(--on-ink); border-radius: 6px; padding: clamp(24px, 4vw, 40px); }
.promo h2 { margin: 0 0 6px; font: 500 24px/1.25 var(--f-serif); }
.promo p { margin: 0; opacity: .78; max-width: 56ch; }

/* ===== The vai ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 18px; }
.card { display: grid; gap: 10px; align-content: start; }
.card .ph { position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--line); }
.card .ph > a { display: block; height: 100%; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover img { transform: scale(1.025); }
.pick { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.pick[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.card .code { font-size: 12px; letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.card h3 { margin: 1px 0 0; font-size: 15.5px; line-height: 1.35; }
.card .sub { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.badge { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; }
.badge span { background: var(--bg); color: var(--ink); font-size: 11px; padding: 2px 7px; border-radius: 3px; font-weight: 500; }

/* ===== Danh sach + bo loc ===== */
.list { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: 140px; display: grid; gap: 26px; max-height: calc(100vh - 160px); overflow-y: auto; padding-right: 6px; }
.fg h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; color: var(--muted); width: 100%; background: none; border: 0; text-align: left; }
.opt .box { width: 16px; height: 16px; border: 1px solid var(--muted); border-radius: 3px; flex: none; }
.opt.round .box { border-radius: 50%; }
.opt[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.opt[aria-pressed="true"] .box { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--bg); }
.opt em { font-style: normal; margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.swatches { display: grid; grid-template-columns: repeat(6, 26px); gap: 10px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.list-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.list-h h1 { margin: 0; font: 500 30px/1.2 var(--f-serif); }
.list-h .cnt { font-size: 14px; color: var(--muted); }
.list-h .right { display: flex; gap: 10px; align-items: center; }
.sel { border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: 9px 12px; font-size: 14px; }
.open-f, .f-head, .f-foot { display: none; }
.active-f { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.active-f button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.load-more { display: flex; justify-content: center; margin-top: 32px; }

/* ===== Trang ho / loai / may gi ===== */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; padding-bottom: 8px; }
.intro .facts { display: grid; gap: 16px; padding: 22px; background: var(--soft); border-radius: 6px; }
.intro .facts h4 { margin: 0 0 4px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.intro .facts p { margin: 0; font-size: 15px; }
details.more-info { border-top: 1px solid var(--line); padding-top: 12px; }
details.more-info summary { cursor: pointer; font-size: 14.5px; font-weight: 500; }
details.more-info p { font-size: 15px; margin: 10px 0 0; }
.tp-list { display: grid; gap: 18px; }
.tp-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 8px; }
.tp-item h3 { margin: 0; font-size: 17px; font-weight: 500; }
.tp-item p { margin: 0; font-size: 15px; }
.tp-item b { font-weight: 500; }

/* ===== Chi tiet ===== */
.pd { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery .big { position: relative; aspect-ratio: 3 / 4; background: var(--line); border-radius: 4px; overflow: hidden; }
.gallery .big img, .gallery .big video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.gallery .big video { object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { position: relative; flex: none; width: 70px; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; padding: 0; cursor: pointer; background: var(--line); }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); outline: 1px solid var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); color: #fff; }
.thumbs small { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(17, 17, 17, .8); color: #fff; font-size: 9px; text-align: center; padding: 1px 0; letter-spacing: .04em; }
.pd .info { position: sticky; top: 140px; display: grid; gap: 22px; }
.pd h1 { margin: 4px 0 6px; font: 500 32px/1.2 var(--f-serif); }
.pd .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14.5px; align-items: center; }
.pd .meta span, .pd .meta a { display: inline-flex; align-items: center; gap: 7px; }
.pd .meta a { text-decoration: underline; text-underline-offset: 3px; }
.blk h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.blk p { margin: 8px 0 0; font-size: 15px; }
.acts { display: grid; gap: 10px; }
.copied { font-size: 13.5px; color: var(--muted); min-height: 1.3em; margin-top: -12px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13.5px; color: var(--muted); }
.perks div { display: flex; gap: 10px; align-items: center; }
.tabs { border-top: 1px solid var(--line); }
.tablist { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tablist button { border: 0; background: none; padding: 14px 0; font-size: 14.5px; color: var(--muted); cursor: pointer; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.tablist button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.tabpanel { padding-top: 16px; font-size: 15px; }
.tabpanel p { margin: 0 0 10px; }
.tabpanel b { font-weight: 500; }

/* ===== Danh sach hoi mua ===== */
.cart { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.row img { width: 72px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; display: block; }
.row b { font-weight: 500; display: block; }
.row small { color: var(--muted); font-size: 13.5px; }
.row input { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; font-size: 14px; background: var(--bg); }
.row button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13.5px; text-decoration: underline; }
.sum { position: sticky; top: 140px; display: grid; gap: 14px; padding: 22px; background: var(--soft); border-radius: 6px; }
.sum pre { margin: 0; white-space: pre-wrap; font: 400 13.5px/1.55 var(--f-body); background: var(--bg); padding: 12px; border-radius: 4px; max-height: 260px; overflow-y: auto; }

/* ===== Bai viet ===== */
.bai { max-width: 780px; padding-block: 12px 20px; }
.bai h1 { font: 500 clamp(28px, 4vw, 40px)/1.15 var(--f-serif); margin: 8px 0 18px; }
.bai h2 { font: 500 22px/1.25 var(--f-serif); margin: 36px 0 12px; }
.bai h3 { font-size: 18px; margin: 22px 0 6px; }
.bai h3 a, .bai dd a, .bai th a { text-decoration: underline; text-underline-offset: 3px; }
.bai p { margin: 0 0 10px; }
.bai .lead { font-size: 18px; color: var(--muted); }
.bai b { font-weight: 500; }
.tbl { overflow-x: auto; margin-top: 12px; }
.tbl table { border-collapse: collapse; min-width: 560px; width: 100%; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: 16px; }
.tbl tbody th { font-weight: 600; width: 22%; }

/* ===== Cam hung ===== */
.insp { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.insp a { display: grid; gap: 8px; }
.insp img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; display: block; background: var(--line); }
.insp small { color: var(--muted); font-size: 13px; }

/* ===== Chan trang ===== */
footer { margin-top: 72px; border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-block: 36px 24px; }
footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
footer p { margin: 0 0 6px; font-size: 14.5px; color: var(--muted); }
footer p a:hover { color: var(--ink); }
footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); }

/* ===== Dien thoai ===== */
.tabbar { display: none; }
@media (max-width: 960px) {
  .wrap { padding-inline: 16px; }
  .bar .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .ic .lbl, .menu { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero .pic { min-height: 220px; order: -1; }
  .need { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .posts { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .list, .intro, .cart { grid-template-columns: 1fr; }
  .open-f { display: inline-flex; }
  .filters { position: fixed; inset: 0; z-index: 40; background: var(--bg); max-height: none; padding: 0 16px 96px; display: none; top: 0; }
  .filters.open { display: grid; align-content: start; }
  .f-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--bg); padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px; border-bottom: 1px solid var(--line); z-index: 1; }
  .f-head b { font-size: 17px; font-weight: 500; }
  .f-foot { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .pd .info, .sum { position: static; }
  .pd h1 { font-size: 27px; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); padding: 4px 0; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--ink); font-weight: 500; }
  .tabbar .n { left: calc(50% + 6px); right: auto; top: 0; }
}
@media (max-width: 480px) {
  .logo small { display: none; }
  .need { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .sec-h h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .card img, .cat img { transition: none; } }

/* ===== Thu bac chu TO - VUA - NHO + chuyen mau den -> xam dam -> xam nhat (user yeu cau 2026-09-27) =====
   Dat cuoi file de thang cac co chu cu; dung clamp() nen tu co lai tren dien thoai. */
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; }
.hero p { font-size: clamp(16px, 1.5vw, 19px); }
.page-h h1, .list-h h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; }
.sec-h h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.sec-h .eyebrow { display: block; margin-bottom: 8px; }
.pd h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }
.bai h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; }
.bai h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.promo h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; letter-spacing: -.02em; }
.post h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.cat b { font-size: 16px; }
.page-h p, .bai .lead { font-size: clamp(16px, 1.4vw, 19px); }
.eyebrow { font-size: 11.5px; letter-spacing: .2em; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1, .page-h h1, .list-h h1, .sec-h h2, .pd h1, .bai h1 {
    width: fit-content; max-width: 100%;
    background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 28%, var(--muted) 62%, var(--grey-light) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
  /* tieu de anh bia: mau chay cham qua lai den -> xam dam -> xam nhat */
  .hero h1 {
    background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 20%, var(--muted) 40%, var(--grey-light) 50%, var(--muted) 60%, var(--ink) 80%, var(--ink) 100%);
    background-size: 250% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text;
    animation: chayMau 9s ease-in-out infinite alternate;
  }
}
@keyframes chayMau { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; background-position: 60% 0; }
}
/* ===== Trang chu v2 (user duyet 10 y tuong 2026-09-27): nen xen ke trang / xam nhat / den ===== */
.band { padding-block: clamp(44px, 6vw, 80px); }
.band.soft { background: var(--soft); }
/* dai den: luon den chu trang o ca 2 giao dien sang/toi -> dat lai token trong pham vi dai */
.band.dark, .ticker {
  --bg: #111111; --soft: #1d1d1d; --line: #2e2e2e; --muted: #b5b5b5; --ink: #ffffff; --on-ink: #111111; --grey-light: #8c8c8c;
  background: var(--bg); color: var(--ink); color-scheme: dark;
}
.band + .band { margin-top: 0; }
.band .sec-h { margin-bottom: 26px; }
.home .sec { margin-top: 0; }

/* Anh bia ghep */
.hero2 { padding-block: clamp(28px, 4vw, 56px); }
.hero2-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.h-txt { display: grid; gap: 20px; align-content: center; }
.h-txt h1 { margin: 0; font-size: clamp(36px, 4.6vw, 62px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.h-txt h1 span { display: block; }
.h-txt p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 44ch; }
.h-btn { display: flex; flex-wrap: wrap; gap: 10px; }
.nums { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.nums div { display: grid; gap: 2px; }
.nums dt { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.nums dd { margin: 0; font-size: 13px; color: var(--muted); max-width: 16ch; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mosaic a, .mosaic .vid { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--line); display: block; }
.mosaic .vid { grid-row: span 2; aspect-ratio: auto; }
.mosaic img, .mosaic video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.mosaic a:hover img { transform: scale(1.06); }

/* Dai chu chay */
.ticker { overflow: hidden; padding-block: 14px; white-space: nowrap; }
.ticker .track { display: inline-flex; gap: 48px; padding-left: 48px; animation: chayChu 38s linear infinite; }
.ticker span { font-size: 14.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 48px; }
.ticker span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
@keyframes chayChu { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* O "Vai may gi" anh lon */
.need2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--line); display: block; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.05); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); display: grid; gap: 2px; }
.tile b { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.tile small { font-size: 13px; opacity: .85; }

/* Vai -> Mau may */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pair { display: grid; gap: 12px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 4px; background: var(--line); }
.duo .mid { position: relative; }
.pair b { font-weight: 500; font-size: 16px; }
.pair small { display: block; color: var(--muted); font-size: 13.5px; }
.pair:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* Tim theo mau */
.colors { display: flex; flex-wrap: wrap; gap: 18px 22px; }
.colors a { display: grid; justify-items: center; gap: 8px; font-size: 14px; min-width: 76px; }
.colors i { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); display: block; transition: transform .25s ease; box-shadow: inset 0 0 0 4px var(--bg); }
.colors a:hover i { transform: scale(1.08); }
.colors em { font-style: normal; font-size: 12px; color: var(--muted); margin-top: -6px; }

/* Cam nhan co anh */
.feel2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feel2 a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.feel2 a:hover { border-color: var(--ink); }
.feel2 img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; display: block; }
.feel2 b { font-weight: 600; font-size: 16px; display: block; }
.feel2 small { font-size: 13px; color: var(--muted); display: block; }

/* Dai video chat vai */
.reel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.reel a, .reel div.clip { position: relative; flex: none; width: clamp(150px, 17vw, 210px); aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; scroll-snap-align: start; background: #222; display: block; }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel .lbl { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: 12.5px; font-weight: 500; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* Vai moi ve: luoi tap chi */
.mag { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
.mag .card:first-child { grid-column: span 2; grid-row: span 2; }
.mag .card:first-child h3 { font-size: 20px; }

@media (max-width: 960px) {
  .hero2-in { grid-template-columns: 1fr; }
  .mosaic { order: -1; }
  .need2, .pairs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
  .need2 .tile { flex: none; width: 62%; scroll-snap-align: start; }
  .pairs .pair { flex: none; width: 86%; scroll-snap-align: start; }
  .feel2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .mag .card:first-child { grid-row: auto; }
}
@media (max-width: 480px) {
  .feel2 { grid-template-columns: 1fr; }
  .colors a { min-width: 64px; }
  .colors i { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .track { animation: none; }
  .mosaic img, .tile img { transition: none; }
}@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .h-txt h1 {
    width: fit-content; max-width: 100%;
    background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 20%, var(--muted) 40%, var(--grey-light) 50%, var(--muted) 60%, var(--ink) 80%, var(--ink) 100%);
    background-size: 250% 100%; background-position: 100% 0;
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    animation: chayMau 9s ease-in-out infinite alternate;
  }
}
@media (prefers-reduced-motion: reduce) { .h-txt h1 { animation: none; background-position: 60% 0; } }
/* Sua sau lan xem thu 2026-09-27 */
body { overflow-x: clip; }
.hero2-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.h-txt h1 { font-size: clamp(34px, 4.1vw, 54px); }
.h-txt h1 span { white-space: nowrap; }
.tile .tag-ref, .duo .tag-ref { top: 10px; bottom: auto; left: 10px; }
@media (max-width: 960px) {
  .hero2-in { grid-template-columns: 1fr; }
  .mag .card:first-child { grid-column: auto; }
  .mag .card:first-child h3 { font-size: 15.5px; }
}
@media (max-width: 380px) { .h-txt h1 span { white-space: normal; } }
/* ===== Song dong hon (user 2026-09-27, tham khao hinh ChatGPT): "roi nhe" + chieu sau + mau tu chinh anh vai =====
   Giao dien van 4 tong; MAU SAC chi den tu anh vai that (quang mau mo phia sau, anh). */
:root { --bong: 0 10px 30px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06); --bong-noi: 0 22px 50px rgba(0, 0, 0, .16), 0 4px 10px rgba(0, 0, 0, .08); }
.band.soft { background: linear-gradient(180deg, var(--soft), var(--bg) 140%); }

/* Anh bia: quang mau mo lay tu anh vai + o vai xep lech nhu roi tren ban */
.hero2 { position: relative; overflow: hidden; isolation: isolate; }
.hero2 .quang { position: absolute; inset: -20%; z-index: -1; display: grid; grid-template-columns: repeat(3, 1fr); filter: blur(70px) saturate(1.3); opacity: .38; pointer-events: none; }
.hero2 .quang img { width: 100%; height: 100%; object-fit: cover; }
.mosaic.roi { gap: 0; padding: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mosaic.roi > a, .mosaic.roi > .vid {
  border: 6px solid #fff; border-radius: 4px; box-shadow: var(--bong); margin: -6px;
  transform: rotate(var(--xoay, 0deg)) translateY(var(--lech, 0px));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; z-index: 1;
  animation: roiXuong .9s cubic-bezier(.2, .8, .25, 1) both; animation-delay: var(--tre, 0s);
}
.mosaic.roi > a:hover, .mosaic.roi > .vid:hover { transform: rotate(0deg) translateY(-6px) scale(1.04); box-shadow: var(--bong-noi); z-index: 3; }
@keyframes roiXuong {
  from { transform: translateY(-46px) rotate(calc(var(--xoay, 0deg) * -2)); opacity: .5; }
  to { transform: rotate(var(--xoay, 0deg)) translateY(var(--lech, 0px)); opacity: 1; }
}

/* Roi nhe khi cuon toi: phan tu luon HIEN o trang thai nghi; chi khi vao khung nhin moi chay 1 lan (bat dau tu hoi cao hon) */
.roi-vao { animation: roiNhe .8s cubic-bezier(.2, .8, .25, 1) both; animation-delay: var(--tre, 0s); }
@keyframes roiNhe { from { transform: translateY(-22px); opacity: .35; } to { transform: none; opacity: 1; } }

/* Chieu sau: bong mem, di chuot noi len */
.card .ph, .tile, .duo img, .cat .ph, .feel2 a, .post, .colors i, .reel a, .reel div.clip, .insp img { transition: transform .35s ease, box-shadow .35s ease; }
.card .ph, .tile, .cat .ph, .reel a, .reel div.clip { box-shadow: var(--bong); }
.card:hover .ph, .tile:hover, .cat:hover .ph, .reel a:hover { transform: translateY(-5px); box-shadow: var(--bong-noi); }
.feel2 a, .post { background: var(--bg); box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.feel2 a:hover, .post:hover { transform: translateY(-3px); box-shadow: var(--bong); }
.duo img { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.pair:hover .duo img:first-child { transform: rotate(-2deg) translateY(-4px); }
.pair:hover .duo .mid img { transform: rotate(2deg) translateY(-4px); }
.colors i { box-shadow: inset 0 0 0 4px var(--bg), var(--bong); }
.colors a:hover i { transform: translateY(-4px) scale(1.06); }
.band.dark .sec-h h2 { text-shadow: none; }

@media (max-width: 960px) {
  .mosaic.roi { padding: 10px 6px; }
  .mosaic.roi > a, .mosaic.roi > .vid { border-width: 4px; margin: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .mosaic.roi > a, .mosaic.roi > .vid, .roi-vao { animation: none; }
  .card:hover .ph, .tile:hover, .cat:hover .ph, .reel a:hover, .feel2 a:hover, .post:hover { transform: none; }
}
/* ===== v8 (2026-10-03, user duyet de xuat danh gia giao dien) =====
   1 MAU NHAN duy nhat (do do) chi cho: nut Zalo, nhan Video/Mau may, so dem, gia/khuc vai.
   Muon quay ve dung 4 tong trang-xam-den: dat --nhan = var(--ink) va --tren-nhan = var(--on-ink). */
:root { --nhan: #9e2b3a; --nhan-nhat: #f7e9eb; --tren-nhan: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --nhan: #e0727f; --nhan-nhat: #3a1d22; --tren-nhan: #111111; } }
:root[data-theme="dark"] { --nhan: #e0727f; --nhan-nhat: #3a1d22; --tren-nhan: #111111; }

/* Chu de doc hon cho khach 25-55: than chu dam hon (300 -> 400), chu nho tang len */
body { font-weight: 400; }
.card h3 { font-size: 16.5px; font-weight: 500; }
.card .sub, .cat span, .pair small, .tile small, .feel2 small, .colors em { font-size: 14px; }
.card .code { font-size: 12.5px; }
.menu a { font-size: 15.5px; }
.opt { font-size: 15px; }

/* Nut Zalo (hanh dong chinh) */
.btn.zalo { background: var(--nhan); border-color: var(--nhan); color: var(--tren-nhan); }
.btn.zalo:hover { filter: brightness(1.08); }
.ic .n, .tabbar .n { background: var(--nhan); color: var(--tren-nhan); }
.badge span { background: var(--nhan); color: var(--tren-nhan); }
.tabbar a[href^="https://zalo.me"] { color: var(--nhan); font-weight: 600; }

/* Cam ket o anh bia */
.cam-ket { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 500; }
.cam-ket li { display: inline-flex; align-items: center; gap: 8px; }
.cam-ket svg { color: var(--nhan); width: 20px; height: 20px; }

/* The vai: doi anh vai <-> mau may */
.card .ph > a { position: relative; }
.card .tp2 { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease, transform .5s ease; background: var(--line); }
.card .tp2-tag { opacity: 0; transition: opacity .35s ease; top: 10px; bottom: auto; left: 10px; }
.card.co-tp .ph:hover .tp2, .card.xem-tp .tp2, .card.co-tp .ph:hover .tp2-tag, .card.xem-tp .tp2-tag { opacity: 1; }
.card.co-tp .ph:hover .badge, .card.xem-tp .badge { opacity: 0; }
.doi-tp { position: absolute; left: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; padding: 0; border: 2px solid #fff; overflow: hidden; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); background: var(--line); display: none; }
.doi-tp img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: none) { .doi-tp { display: block; } .card.co-tp .ph:hover .tp2, .card.co-tp .ph:hover .tp2-tag { opacity: 0; } .card.xem-tp .tp2, .card.xem-tp .tp2-tag { opacity: 1; } .card.co-tp .ph:hover .badge { opacity: 1; } .card.xem-tp .badge { opacity: 0; } }
.khuc-tom { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--nhan); }

/* Trang chi tiet: cac khuc vai con */
.khuc-p { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.khuc-ds { display: flex; flex-wrap: wrap; gap: 10px; }
.khuc-o { display: grid; gap: 2px; min-width: 104px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--bg); cursor: pointer; text-align: left; }
.khuc-o b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.khuc-o span { font-size: 14px; color: var(--nhan); font-weight: 600; }
.khuc-o:hover { border-color: var(--ink); }
.khuc-o[aria-pressed="true"] { border-color: var(--nhan); background: var(--nhan-nhat); box-shadow: inset 0 0 0 1px var(--nhan); }

/* Nut Zalo noi (may tinh) */
.zalo-noi { position: fixed; right: 22px; bottom: 22px; z-index: 35; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: var(--nhan); color: var(--tren-nhan); font-weight: 600; font-size: 15px; box-shadow: 0 10px 28px rgba(158, 43, 58, .35); transition: transform .25s ease; }
.zalo-noi:hover { transform: translateY(-3px); }
@media (max-width: 960px) { .zalo-noi { display: none; } }
@media (prefers-reduced-motion: reduce) { .card .tp2, .card .tp2-tag, .zalo-noi { transition: none; } }

/* ===== v9 TONG MEM (user chot 11/10/2026 theo anh mau): hong kem + chu nau am + tieu de co chan (Playfair Display)
   DAO quyet dinh cu "4 tong trang-xam-den" + "1 font". Muon quay lai: xoa ca khoi v9 nay. ===== */
:root {
  --bg: #fffcf9; --soft: #f7efe9; --line: #eadfd7; --muted: #7b6a63; --ink: #3b2f2c; --on-ink: #ffffff; --grey-light: #a8968e;
  --nhan: #b5627a; --nhan-nhat: #f9ebee; --tren-nhan: #ffffff;
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --bong: 0 10px 30px rgba(92, 58, 48, .10), 0 2px 6px rgba(92, 58, 48, .06);
  --bong-noi: 0 22px 50px rgba(92, 58, 48, .16), 0 4px 10px rgba(92, 58, 48, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1615; --soft: #251e1c; --line: #3a302d; --muted: #bba9a1; --ink: #f5ece6; --on-ink: #1b1615; --grey-light: #8f7f78;
    --nhan: #e39aac; --nhan-nhat: #3a2228; --tren-nhan: #1b1615;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1615; --soft: #251e1c; --line: #3a302d; --muted: #bba9a1; --ink: #f5ece6; --on-ink: #1b1615; --grey-light: #8f7f78;
  --nhan: #e39aac; --nhan-nhat: #3a2228; --tren-nhan: #1b1615;
}
/* dai "den" cu -> dai hong nhat (giu tuong phan chu) */
.band.dark { --bg: var(--nhan-nhat); --soft: var(--soft); --line: var(--line); --muted: var(--muted); --ink: var(--ink); --on-ink: var(--on-ink); background: var(--nhan-nhat); color: var(--ink); color-scheme: inherit; }
.band.soft { background: var(--soft); }
.duo img { box-shadow: var(--bong); }

/* tieu de: chu co chan, mau dac (bo hieu ung chuyen mau den-xam) */
.hero h1, .page-h h1, .list-h h1, .sec-h h2, .pd h1, .bai h1, .h-txt h1, .h9-txt h1, .bai h2, .promo h2, .post h3 {
  font-family: var(--f-serif); font-weight: 500; letter-spacing: -.005em;
  background: none; color: var(--ink); -webkit-text-fill-color: currentColor; animation: none; width: auto;
}
.logo b { font-family: var(--f-serif); font-weight: 600; }
.logo .mark { border-color: var(--nhan); color: var(--nhan); font-family: var(--f-serif); }
.eyebrow { color: var(--nhan); }
.btn { border-radius: 6px; }
.card .ph, .tile, .cat .ph, .gallery .big { border-radius: 8px; }
.chip[aria-pressed="true"], .pick[aria-pressed="true"] { background: var(--nhan); color: var(--tren-nhan); }
.menu a[aria-current="page"] { border-color: var(--nhan); }
.zalo-noi { box-shadow: 0 10px 28px rgba(181, 98, 122, .35); }

/* Anh bia lon */
/* bia khong anh (12/10/2026): nen hong kem + 2 quang mau nhe, chu can giua */
.hero9 { position: relative; overflow: hidden; display: grid; place-items: center; text-align: center; padding: clamp(64px, 9vw, 120px) 0 clamp(84px, 10vw, 136px);
  background: radial-gradient(60% 80% at 12% 10%, color-mix(in srgb, var(--nhan) 14%, transparent), transparent 70%),
              radial-gradient(55% 75% at 92% 95%, color-mix(in srgb, var(--nhan) 10%, transparent), transparent 70%), var(--soft); }
.hero9::before { content: ""; position: absolute; inset: 18px; border: 1px solid color-mix(in srgb, var(--nhan) 22%, transparent); border-radius: 18px; pointer-events: none; }
.h9-in { position: relative; z-index: 2; width: 100%; }
.h9-txt { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 20px; }
.h9-txt .eyebrow { letter-spacing: .28em; }
.h9-txt .eyebrow::before, .h9-txt .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 12px; opacity: .6; }
.h9-txt h1 { margin: 0; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.1; }
.h9-txt h1 span { display: block; }
.h9-txt h1 span + span { font-style: italic; color: var(--nhan); -webkit-text-fill-color: currentColor; }
.h9-txt .h-btn { justify-content: center; margin-top: 6px; }
.h9-txt p { margin: 0; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }

/* Dai 4 cam ket */
.camket9 { list-style: none; margin: -34px 0 0; padding: 0; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--bong); }
.camket9 li { display: flex; gap: 12px; align-items: center; padding: 18px 20px; }
.camket9 li + li { border-left: 1px solid var(--line); }
.camket9 svg { color: var(--nhan); width: 30px; height: 30px; }
.camket9 b { display: block; font-weight: 600; font-size: 15px; }
.camket9 small { display: block; font-size: 13.5px; color: var(--muted); }

/* Trang chi tiet: anh nho xep doc ben trai + phong to */
.gallery:has(.thumbs) { grid-template-columns: 78px minmax(0, 1fr); align-items: start; }
.gallery:has(.thumbs) .thumbs { order: -1; flex-direction: column; overflow: auto; max-height: 72vh; }
.thumbs button { width: 78px; border-radius: 6px; }
.thumbs button[aria-pressed="true"] { border-color: var(--nhan); outline-color: var(--nhan); }
.gallery .big img { cursor: zoom-in; transition: transform .25s ease; }
.gallery .big.zoom img { transform: scale(2.2); cursor: zoom-out; }
.zoom-goi { position: absolute; right: 10px; bottom: 10px; background: rgba(255, 255, 255, .9); color: #3b2f2c; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.big.zoom .zoom-goi { display: none; }
.mau-note { margin: -12px 0 0; font-size: 13.5px; color: var(--muted); font-style: italic; }

@media (max-width: 960px) {
  .hero9 { padding: 56px 0 72px; }
  .hero9::before { display: none; }
  .h9-txt { gap: 14px; }
  .h9-txt .eyebrow::before, .h9-txt .eyebrow::after { width: 16px; margin: 0 8px; }
  .h9-txt .h-btn { width: 100%; }
  .h9-txt .h-btn .btn { flex: 1 1 100%; justify-content: center; }
  .camket9 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -26px; }
  .camket9 li { padding: 14px; gap: 10px; align-items: flex-start; }
  .camket9 li + li { border-left: 0; }
  .camket9 li:nth-child(even) { border-left: 1px solid var(--line); }
  .camket9 li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .camket9 svg { width: 24px; height: 24px; }
  .gallery:has(.thumbs) { grid-template-columns: 1fr; }
  .gallery:has(.thumbs) .thumbs { order: 0; flex-direction: row; max-height: none; }
  .thumbs button { width: 64px; }
}
@media (prefers-reduced-motion: reduce) { .gallery .big img { transition: none; } }
/* v9: bang thong so trang chi tiet */
.ts-bang { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 10px; }
.ts-bang th, .ts-bang td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ts-bang th { width: 38%; font-weight: 500; color: var(--muted); background: var(--soft); }
.suggest .hieu, .list-h .hieu { font-size: 13.5px; color: var(--nhan); padding: 6px 8px 4px; font-weight: 500; }
.f-note { margin: -4px 0 8px; font-size: 12.5px; color: var(--muted); }
.list-h .hieu { padding: 2px 0 0; }
/* v9: o "de lai SDT, shop goi lai" */
.goi-lai { border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; background: var(--bg); }
.goi-lai summary { cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--nhan); }
.goi-lai form { display: grid; gap: 10px; margin-top: 12px; }
.goi-lai label { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.goi-lai input { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 16px; background: var(--bg); color: var(--ink); }
.goi-lai .gl-bay { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gl-bao { margin: 0; font-size: 13.5px; color: var(--nhan); min-height: 1.2em; }
.gl-xong { margin: 8px 0 0; display: flex; gap: 8px; align-items: center; font-weight: 500; }
/* v9: cot trang chi tiet tren dien thoai khong duoc no theo noi dung (tranh tran ngang) */
@media (max-width: 960px) { .pd { grid-template-columns: minmax(0, 1fr); } .pd > * { min-width: 0; } }
.pd .info { grid-template-columns: minmax(0, 1fr); } .pd .info > * { min-width: 0; }  /* hang 4 tab vuot ngang, khong day trang */
/* v9: nut tim (thich) + hop thoai "hoi ve mau nay" */
.tim-nut { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.tim-nut[aria-pressed="true"], .tim-to[aria-pressed="true"] { color: var(--nhan); }
.tim-nut[aria-pressed="true"] svg path, .tim-to[aria-pressed="true"] svg path { fill: currentColor; }
.acts-2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.tim-to { width: 52px; padding-inline: 0; }
.hoi-nen { position: fixed; inset: 0; z-index: 60; background: rgba(40, 25, 20, .45); display: grid; place-items: center; padding: 16px; }
.hoi-hop { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); border-radius: 14px; padding: 20px; display: grid; gap: 14px; box-shadow: var(--bong-noi); }
.hoi-dong { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; font-size: 15px; }
.hoi-mau { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding-right: 36px; }
.hoi-mau img { width: 72px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; display: block; }
.hoi-mau b { display: block; font-weight: 600; }
.hoi-mau small { display: block; color: var(--muted); font-size: 13.5px; }
.hoi-shop { display: flex; gap: 10px; align-items: flex-end; }
.hoi-shop .mark { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--nhan); color: var(--nhan); display: grid; place-items: center; font: 600 12px/1 var(--f-serif); }
.hoi-shop p { margin: 0; background: var(--nhan-nhat); padding: 10px 14px; border-radius: 16px 16px 16px 4px; font-size: 15px; }
.hoi-o { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.hoi-o textarea { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); resize: vertical; }
.hoi-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hoi-hop .copied { margin: -6px 0 0; }
@media (max-width: 480px) { .hoi-nen { place-items: end center; padding: 0; } .hoi-hop { border-radius: 16px 16px 0 0; max-height: 92vh; } }
