/* HHAT Shop. Màu theo skin nằm trong các biến --top, --accent, --cta, --page (đặt ở MainLayout). */
:root {
    --ink: #14213D; --muted: #4B5670; --line: #DCE4F2; --soft: #E8EEF9; --surface: #FFFFFF;
    --good-bg: #DDF3E4; --good-ink: #0B5B2C; --warn-bg: #FFF0BF; --warn-ink: #5C4300; --bad-bg: #FFE3D1; --bad-ink: #7A2A06;
}
body { font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); }

/* ---------- Trang khách ---------- */
.hs { background: var(--page); min-height: 100vh; font-size: 15px; line-height: 1.45; display: flex; flex-direction: column; }
.hs a { color: var(--ink); text-decoration: none; }
.hs a:hover { color: var(--accent); }
.hs-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hs-sr { position: absolute; left: -9999px; }
.hs-promo { background: var(--top); color: var(--top-ink); text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 500; }

.hs-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.hs-header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.hs-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.hs-brand img { width: 52px; height: 52px; object-fit: contain; }
.hs-search { flex: 999 1 320px; display: flex; min-width: 0; position: relative; }
.hs-search input { flex: 1; min-width: 0; height: 46px; border: 1px solid #B8C6E0; border-right: 0; border-radius: 999px 0 0 999px; padding: 0 20px; font: inherit; color: var(--ink); background: #fff; }
.hs-search button { height: 46px; padding: 0 24px; border: 0; border-radius: 0 999px 999px 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; }
/* Bảng gợi ý của ô tìm kiếm tức thì (dựng bằng shop.js). */
.hs-sg { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 14px 36px rgba(20, 33, 61, .16); text-align: left; }
.hs-sg[hidden] { display: none; }
.hs-sg-lab { margin: 10px 10px 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hs a.hs-sg-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.hs a.hs-sg-row:hover, .hs a.hs-sg-row.on, .hs a.hs-sg-all:hover, .hs a.hs-sg-all.on, .hs a.hs-sg-ht:hover, .hs a.hs-sg-ht.on { background: var(--soft); color: var(--ink); }
.hs-sg-row img { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; background: var(--soft); }
.hs-sg-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hs-sg-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.hs-sg-name mark { background: var(--warn-bg); color: inherit; border-radius: 3px; padding: 0 1px; }
.hs-sg-sub { font-size: 12.5px; color: var(--muted); }
.hs-sg-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.hs-sg-price b { font-size: 14.5px; color: var(--cta-text, var(--cta)); }
.hs-sg-price small { font-size: 12px; color: var(--muted); }
.hs-sg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 10px 8px; }
/* Nút gợi ý nằm trong biểu mẫu tìm kiếm, nên phải thắng kiểu của nút "Tìm" ở cả ba mẫu giao diện. */
.hs .hs-search .hs-sg .hs-sg-chip { height: auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.hs .hs-search .hs-sg .hs-sg-chip:hover, .hs .hs-search .hs-sg .hs-sg-chip:focus-visible { background: var(--soft); }
.hs a.hs-sg-all, .hs a.hs-sg-ht { display: block; margin-top: 4px; padding: 10px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.hs a.hs-sg-ht { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.hs-sg-none { display: flex; flex-direction: column; gap: 4px; padding: 22px 14px 12px; text-align: center; }
.hs-sg-none span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 600px) {
    /* Màn hẹp: tên món được xuống hai dòng thay vì bị cắt sau vài chữ. */
    .hs-sg-name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 14px; line-height: 1.3; }
    .hs-ht { padding: 16px; }
}

/* ---------- Phần nội dung của trang sản phẩm: ba cấu trúc (ContentOne, ContentTwo, ContentThree) ---------- */
.hs-pc { display: flex; flex-direction: column; }
.hs-pc p { margin: 0 0 8px; line-height: 1.6; }
.hs-pc-ico { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hs-tone-a { background: #E3EDFF; color: #1D4FD7; }
.hs-tone-s { background: var(--good-bg); color: var(--good-ink); }
.hs-tone-w { background: var(--warn-bg); color: var(--warn-ink); }
.hs-tone-p { background: #EEEAFE; color: #4A3AA8; }
.hs-pc-src { font-size: 13px; color: var(--muted); }
.hs-pc-foot { display: block; margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.hs-pc-track { flex: 1; height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.hs-pc-track i { display: block; height: 100%; border-radius: 999px; background: var(--good-ink); }
.hs-pc-track i.hs-pc-low { background: var(--bad-ink); }

/* Cấu trúc 1: thẻ biểu tượng */
.hs-pc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hs-pc-tile { display: flex; align-items: center; gap: 10px; background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.hs-pc-tile div { display: flex; flex-direction: column; min-width: 0; }
.hs-pc-tile small { font-size: 12.5px; color: var(--muted); }
.hs-pc-tile strong { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.hs .hs-pc h2.hs-pc-h { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 20px; }
.hs-pc-lines { list-style: none; margin: 0; padding: 0; }
.hs-pc-lines li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; line-height: 1.5; }
.hs-pc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.hs-pc-cols li { align-items: center; font-weight: 500; }
.hs-pc-notes li { padding: 5px 0; }
.hs-pc-notes .hs-ico { flex: none; margin-top: 1px; color: var(--warn-ink); }
.hs-pc-bars { display: grid; gap: 10px; }
.hs-pc-bar { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.hs-pc-bar > span:first-child { flex: 0 0 150px; color: var(--muted); }
.hs-pc-bar strong { flex: 0 0 52px; text-align: right; font-weight: 600; }
.hs-pc-bars + .hs-pc-src { margin-top: 8px; }
.hs-pc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.hs-pc-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.hs-pc-chip .hs-ico { color: #4A3AA8; }
.hs-pc-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.hs-pc-faq details:last-child { border-bottom: 1px solid var(--line); }
.hs-pc-faq summary { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; list-style: none; min-height: 28px; }
.hs-pc-faq summary::-webkit-details-marker { display: none; }
.hs-pc-faq summary .hs-ico { flex: none; color: #1D4FD7; }
.hs-pc-faq details p { margin: 8px 0 0 30px; color: var(--muted); }
.hs-pc-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 24px; background: var(--page); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.hs-pc-buy div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.hs-pc-buy small { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.hs-pc-buy strong { font-size: 22px; color: var(--cta-text, var(--cta)); }
.hs-pc-buy s { font-size: 14px; color: var(--muted); }
.hs .hs-pc-buy a.hs-buy, .hs .hs-pc2-cta a.hs-buy { margin-top: 0; padding: 13px 28px; font-size: 16px; }

/* Cấu trúc 2: bảng tư vấn */
.hs .hs-pc2 h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 18px; }
.hs-pc2 h2 .hs-ico { flex: none; color: #1D4FD7; }
.hs .hs-pc2 h2.hs-pc2-h { margin: 26px 0 12px; font-size: 20px; }
.hs-pc2-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: var(--good-bg); color: var(--good-ink); border-radius: 14px; padding: 16px 20px; }
.hs-pc2-sum > div:last-child { flex: 1 1 240px; min-width: 0; }
.hs .hs-pc2 .hs-pc2-sum h2, .hs-pc2-sum h2 .hs-ico { color: var(--good-ink); margin-bottom: 4px; }
.hs-pc2-sum p { margin: 0; }
.hs-pc2-score { display: flex; flex-direction: column; align-items: center; min-width: 96px; }
.hs-pc2-score strong { font-size: 34px; line-height: 1.1; }
.hs-pc2-score span { font-size: 13px; }
.hs-pc2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.hs-pc2-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.hs-pc2-kv { margin: 0; display: grid; grid-template-columns: auto 1fr; font-size: 14.5px; }
.hs-pc2-kv dt, .hs-pc2-kv dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hs-pc2-kv dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 400; padding-right: 14px; }
.hs-pc2-kv dd { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.hs-pc2-card .hs-pc-src { margin: 10px 0 0; overflow-wrap: anywhere; }
.hs-pc2-star { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 7px 0; }
.hs-pc2-star > span:first-child { flex: 0 0 46px; }
.hs-pc2-star > span:last-child { flex: 0 0 52px; text-align: right; }
.hs-pc2-star .hs-pc-track i { background: #E0A100; }
.hs-pc2-photo { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.hs-pc2-card ul { list-style: none; margin: 0; padding: 0; }
.hs-pc2-card li { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; line-height: 1.5; font-size: 14.5px; }
.hs-pc2-card li .hs-ico { flex: none; margin-top: 2px; }
.hs-pc2-good { border-color: var(--good-ink); }
.hs .hs-pc2 .hs-pc2-good h2, .hs-pc2-good h2 .hs-ico, .hs-pc2-good li .hs-ico { color: var(--good-ink); }
.hs-pc2-warn { border-color: var(--warn-ink); }
.hs .hs-pc2 .hs-pc2-warn h2, .hs-pc2-warn h2 .hs-ico, .hs-pc2-warn li .hs-ico { color: var(--warn-ink); }
.hs-pc2-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 20px; }
.hs-pc2-steps li { flex: 1 1 170px; display: flex; align-items: flex-start; gap: 12px; }
.hs-pc2-steps div { display: flex; flex-direction: column; }
.hs-pc2-steps span { font-size: 13.5px; color: var(--muted); }
.hs-pc2-num { width: 32px; height: 32px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px !important; background: #E3EDFF; color: #1D4FD7 !important; }
.hs-pc2-cta { margin-top: 16px; }
.hs-pc2-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.hs-pc2-faq > div { background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.hs-pc2-faq p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
/* Cấu trúc 3: hồ sơ chọn lọc. Kiểu tạp chí: chữ có chân (phông có sẵn trên máy, không tải thêm) cho lời nhận định và con số,
   đường kẻ mảnh, ít màu. Màu nhấn là --cta-text của skin (luôn đọc rõ trên nền trắng). */
.hs-pc3 { --serif: "Noto Serif", Georgia, "Times New Roman", serif; --serif-num: "Noto Serif", "Times New Roman", serif; --rule: #C9D3E4; }
.hs-pc3-mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.hs-pc3-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hs-pc3-brand img { flex: none; border-radius: 10px; }
.hs-pc3-brand div { display: flex; flex-direction: column; min-width: 0; }
.hs-pc3-brand strong { font-size: 16px; }
.hs-pc3-brand span { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }
.hs-pc3-seal { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--good-ink); color: var(--good-ink); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.hs-pc3-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 28px; margin-top: 22px; }
.hs-pc3-hero-text { grid-template-columns: 1fr; }
.hs-pc3-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: var(--soft); }
.hs-pc3-kick { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cta-text, var(--cta)); }
.hs .hs-pc3 p.hs-pc3-lead { font-family: var(--serif); font-size: 25px; line-height: 1.45; margin: 8px 0 12px; color: var(--ink); }
.hs-pc3-meta { font-size: 13.5px; color: var(--muted); }
.hs-pc3-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 26px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hs-pc3-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 14px; min-width: 0; }
.hs-pc3-stats > div + div { border-left: 1px solid var(--line); }
.hs-pc3-stats dt { font-size: 12.5px; color: var(--muted); }
.hs-pc3-stats dd { margin: 0; font-family: var(--serif-num); font-variant-numeric: lining-nums; font-size: 34px; line-height: 1; color: var(--ink); overflow-wrap: anywhere; }
.hs .hs-pc3 h2.hs-pc3-h { display: flex; align-items: center; gap: 8px; margin: 30px 0 14px; font-size: 19px; }
.hs-pc3-h .hs-ico { flex: none; }
.hs-pc3-good .hs-ico { color: var(--good-ink); }
.hs-pc3-warn .hs-ico { color: var(--warn-ink); }
.hs-pc3-reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.hs-pc3-reasons .hs-pc3-img { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.hs-pc3-reasons li > div { display: flex; align-items: baseline; gap: 12px; line-height: 1.5; }
.hs-pc3-reasons-text li { border-top: 1px solid var(--rule); padding-top: 12px; }
.hs-pc3-num { flex: none; font-family: var(--serif-num); font-variant-numeric: lining-nums; font-size: 24px; line-height: 1; color: var(--cta-text, var(--cta)); }
.hs-pc3-striphead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.hs-pc3-striphead span { font-size: 13px; color: var(--muted); }
/* Dải ảnh giãn đủ hàng dù có 3 hay 6 ảnh. */
.hs-pc3-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; }
.hs-pc3-strip a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.hs-pc3-strip img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .2s; }
.hs-pc3-strip a:hover img, .hs-pc3-strip a:focus-visible img { transform: scale(1.04); }
.hs-pc3-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 36px; }
.hs-pc3-kv { margin: 0; font-size: 14.5px; }
.hs-pc3-kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hs-pc3-kv dt { color: var(--muted); flex: none; }
.hs-pc3-kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.hs-pc3 .hs-pc-src { margin: 10px 0 0; overflow-wrap: anywhere; }
.hs-pc3-star { display: flex; align-items: center; gap: 12px; font-size: 14px; margin: 9px 0; }
.hs-pc3-star > span:first-child { flex: 0 0 46px; }
.hs-pc3-star > span:last-child { flex: 0 0 56px; text-align: right; }
.hs-pc3-star .hs-pc-track { height: 6px; }
.hs-pc3-star .hs-pc-track i { background: #E0A100; }
.hs-pc3-list { margin: 0; padding: 0; list-style: none; }
.hs-pc3-list li { position: relative; padding: 7px 0 7px 18px; line-height: 1.55; }
.hs-pc3-list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--cta-text, var(--cta)); }
.hs-pc3-notes li { color: var(--muted); }
.hs-pc3-faq summary { font-weight: 600; justify-content: space-between; }
.hs-pc3-faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--muted); }
.hs-pc3-faq details[open] summary::after { content: "−"; }
.hs-pc3-faq details p { margin-left: 0; }
.hs-pc3-close { margin-top: 30px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.hs-pc3-why { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; background: var(--page); }
.hs-pc3-why img { flex: none; border-radius: 10px; }
.hs .hs-pc3 .hs-pc3-why p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.hs-pc3-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; }
.hs-pc3-buy div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.hs-pc3-buy small { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.hs-pc3-buy strong { font-family: var(--serif-num); font-variant-numeric: lining-nums; font-size: 28px; color: var(--ink); }
.hs-pc3-buy s { font-size: 14px; color: var(--muted); }
.hs .hs-pc3-buy a.hs-buy { margin-top: 0; padding: 13px 28px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .hs-pc3-strip img { transition: none; } .hs-pc3-strip a:hover img { transform: none; } }

@media (max-width: 600px) {
    .hs-pc-tiles { grid-template-columns: 1fr 1fr; }
    .hs-pc-bar > span:first-child { flex-basis: 118px; }
    .hs-pc-faq details p { margin-left: 0; }
    .hs .hs-pc-buy a.hs-buy { flex: 1 1 100%; }
    .hs-pc3-hero { grid-template-columns: 1fr; gap: 16px; }
    .hs .hs-pc3 p.hs-pc3-lead { font-size: 21px; }
    .hs-pc3-stats { grid-template-columns: 1fr 1fr; }
    .hs-pc3-stats > div:nth-child(3) { border-left: 0; }
    .hs-pc3-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .hs-pc3-stats dd { font-size: 27px; }
    /* Lý do có ảnh: ảnh nhỏ bên trái, chữ bên phải, để ba lý do không dài hết màn hình. */
    .hs-pc3-reasons { gap: 14px; }
    .hs-pc3-reasons:not(.hs-pc3-reasons-text) li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; }
    .hs-pc3-reasons .hs-pc3-img { aspect-ratio: 1 / 1; margin-bottom: 0; border-radius: 10px; }
    .hs .hs-pc3-buy a.hs-buy { flex: 1 1 100%; }
}

/* Trang "Thành tích của tôi": đổi quà, quà đã nhận, sổ điểm. */
.hs-rw-alert { display: flex; align-items: flex-start; gap: 10px; }
.hs-rw-alert .hs-ico { flex: none; margin-top: 1px; }
.hs-rw-tiers { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.hs-rw-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.hs-rw-tier-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hs-rw-tier-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14.5px; }
.hs-rw-tier-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-rw-tier small { font-size: 13px; color: var(--muted); }
.hs .hs-rw-tier .hs-btn { min-height: 40px; padding: 6px 20px; }
.hs-rw-note { font-size: 13.5px; color: var(--muted); }
.hs-rw-requests { display: flex; flex-direction: column; gap: 10px; }
.hs-rw-request { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.hs-rw-request-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hs-rw-request-head small { color: var(--muted); font-size: 13px; }
.hs-rw-request p { font-size: 14px; color: var(--muted); }
.hs-rw-chip { font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--soft); color: var(--ink); }
.hs-rw-chip-pending { background: var(--warn-bg); color: var(--warn-ink); }
.hs-rw-chip-approved, .hs-rw-chip-paid { background: var(--good-bg); color: var(--good-ink); }
.hs-rw-chip-rejected { background: var(--bad-bg); color: var(--bad-ink); }
.hs-rw-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--page); border-radius: 12px; padding: 10px 12px; }
.hs-rw-code code { font-size: 17px; font-weight: 700; letter-spacing: .06em; background: none; padding: 0; }
.hs-rw-code span { font-size: 13px; color: var(--muted); flex: 1 1 200px; }
.hs-rw-minus { color: var(--bad-ink); }

/* Khối "Cần gấp? Giao Hoả Tốc" ở trang chủ. */
.hs-ht { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 20px; scroll-margin-top: 16px; }
.hs-ht h2 { margin: 0; font-size: 20px; }
.hs-ht-note { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); max-width: 760px; }
.hs-ht-tabs { display: flex; gap: 8px; margin-top: 14px; }
.hs-ht-tabs[hidden] { display: none; }
.hs-ht-tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.hs-ht-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hs-ht-city { margin: 16px 0 0; font-size: 15px; }
.hs-ht[data-ht-on="tabs"] .hs-ht-city { display: none; }
.hs-ht-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hs-ht-list[hidden] { display: none; }
.hs .hs-ht-list a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-weight: 500; background: var(--page); }
.hs .hs-ht-list a:hover { border-color: var(--accent); color: var(--ink); }
.hs-ht-list a::after { content: "→"; color: var(--muted); }

.hs-header-links { display: flex; gap: 18px; font-weight: 500; }
.hs-header-links a { padding: 12px 4px; }
.hs-nav { border-top: 1px solid #EDF1F8; }
.hs-nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-weight: 500; }
.hs-nav-row a { padding: 12px 0; }
/* "Ngành khác": các ngành không đủ chỗ trên thanh, mở bằng thẻ details (chạy cả khi không có script). */
.hs-nav-more { position: relative; }
.hs-nav-more summary { padding: 12px 0; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.hs-nav-more summary::-webkit-details-marker { display: none; }
.hs-nav-more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.hs-nav-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.hs-nav-more-list { position: absolute; z-index: 30; top: 100%; left: 0; min-width: 260px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20, 33, 61, .14); padding: 8px; display: grid; }
.hs .hs-nav-row .hs-nav-more-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.hs .hs-nav-row .hs-nav-more-list a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.hs-nav-more-list a span { color: var(--muted); font-weight: 400; }
.hs-t2 .hs-nav-more summary { color: #fff; }
.hs-footer-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hs a.hs-nav-all { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }

.hs-main { flex: 1; padding-top: 20px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 26px; }
.hs-note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 12px 16px; font-size: 14px; }

.hs-hero { background: var(--accent); color: var(--accent-ink); border-radius: 20px; overflow: hidden; display: flex; flex-wrap: wrap; }
.hs-hero-text { flex: 1 1 420px; padding: 44px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.hs-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; }
.hs-hero p { margin: 0; font-size: 17px; max-width: 520px; }
.hs-hero img { flex: 1 1 360px; min-width: 0; width: 100%; height: 380px; object-fit: cover; object-position: center 22%; }
/* Nền banner kiểu "Công nghệ" (từ 24/11/2026), vẽ bằng CSS từ màu chính của skin, không tải ảnh.
   Lớp dưới cùng: nền chuyển màu chéo và lưới chấm. ::before: các tia sáng dọc mọc từ mép dưới. ::after: vệt sáng ở mép dưới.
   Dòng background-image đầu là bản dự phòng cho trình duyệt chưa hiểu "oklch(from …)"; trình duyệt mới dùng dòng sau. */
.hs-hero-fx-tech { position: relative; overflow: hidden; isolation: isolate; background-color: var(--accent);
    background-image: radial-gradient(color-mix(in srgb, var(--accent-ink) 15%, transparent) 1px, transparent 1.6px),
        linear-gradient(115deg, color-mix(in srgb, var(--accent) 90%, var(--accent-ink)) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 68%, #000) 100%);
    background-image: radial-gradient(color-mix(in srgb, var(--accent-ink) 15%, transparent) 1px, transparent 1.6px),
        linear-gradient(115deg, oklch(from var(--accent) calc(l + .05) c calc(h - 48)) 0%, var(--accent) 48%, color-mix(in srgb, var(--accent) 66%, #000) 100%);
    background-size: 18px 18px, auto; }
.hs-hero-fx-tech > * { position: relative; z-index: 1; }
.hs-hero-fx-tech::before, .hs-hero-fx-tech::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 0; }
.hs-hero-fx-tech::before { height: 78%;
    background-image: repeating-linear-gradient(90deg, transparent 0 37px, color-mix(in srgb, var(--accent-ink) 38%, transparent) 37px 39px, transparent 39px 93px),
        repeating-linear-gradient(90deg, transparent 0 71px, color-mix(in srgb, var(--accent-ink) 26%, transparent) 71px 72px, transparent 72px 151px);
    -webkit-mask-image: linear-gradient(to top, #000 0, rgba(0, 0, 0, .55) 35%, transparent 100%); mask-image: linear-gradient(to top, #000 0, rgba(0, 0, 0, .55) 35%, transparent 100%);
    animation: hs-tech-rise 7s ease-in-out infinite alternate; }
.hs-hero-fx-tech::after { height: 46%; background: linear-gradient(to top, color-mix(in srgb, var(--accent-ink) 55%, transparent) 0 1px, transparent 1px), radial-gradient(80% 100% at 50% 100%, color-mix(in srgb, var(--accent-ink) 46%, transparent) 0, transparent 70%); }
@keyframes hs-tech-rise {
    from { transform: translate3d(0, 14px, 0); opacity: .55; }
    to { transform: translate3d(0, 0, 0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hs-hero-fx-tech::before { animation: none; } }
/* Ngôi sao đánh giá màu vàng (từ 24/11/2026) ở thẻ sản phẩm và dòng dưới tên món của trang sản phẩm.
   Cùng màu với bảng chấm sao; cố định, không theo skin. Dùng ký tự ★ tô màu thay vì emoji để máy nào cũng vẽ giống nhau. */
.hs .hs-gold-star { color: #E0A100; }
.hs-kicker { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hs a.hs-btn-cta { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-weight: 700; }

.hs-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.hs-trust div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; }
.hs-trust span { color: var(--muted); font-size: 14px; }

.hs-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hs-cats a { border-radius: 18px; padding: 22px; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hs-cats strong { font-size: 20px; }
.hs-cats span { font-weight: 600; font-size: 14px; }

.hs-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.hs-block-head h2 { margin: 0; font-size: 24px; font-weight: 700; }
.hs-block-head a { font-weight: 600; text-decoration: underline; padding: 8px 0; }
.hs-block-note { font-size: 14px; color: var(--muted); }
.hs .hs-block-note a { font-weight: 500; padding: 0; }
.hs-block-deal { background: var(--surface); border: 2px solid var(--cta); border-radius: 20px; padding: 22px; }
.hs-block-deal h2 { color: var(--cta-text, var(--cta)); }

.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.hs-grid-tight { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.hs-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.hs-card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--soft); }
.hs-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-badge { position: absolute; top: 10px; left: 10px; background: var(--cta); color: var(--cta-ink); font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 999px; }
.hs-badge-inline { position: static; }
.hs-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hs-card-shop { font-size: 12px; color: var(--muted); }
.hs-card h3 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-card-price strong { font-size: 18px; color: var(--cta-text, var(--cta)); }
.hs-card-price s { color: var(--muted); font-size: 13px; margin-left: 6px; }
.hs-card-meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 0 10px; }
.hs a.hs-buy { margin-top: auto; text-align: center; padding: 11px 10px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-weight: 700; font-size: 14px; }
.hs a.hs-buy-outline { background: transparent; color: var(--cta-text, var(--cta)); border: 1px solid var(--cta-text, var(--cta)); }
.hs a.hs-buy-big { margin-top: 4px; padding: 16px 20px; font-size: 17px; }

.hs-about { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-wrap: wrap; }
.hs-about img { flex: 1 1 340px; min-width: 0; width: 100%; height: 280px; object-fit: cover; }
.hs-about div { flex: 1 1 400px; padding: 32px 36px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hs-about h2 { margin: 0; font-size: 24px; font-weight: 700; }
.hs-about p { margin: 0; color: var(--muted); }
.hs-about a { font-weight: 600; text-decoration: underline; padding: 8px 0; }

.hs-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 28px; text-align: center; }
.hs-empty h1, .hs-empty h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.hs-empty p { color: var(--muted); margin: 0 0 12px; }
.hs-404 { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; text-align: left; }
.hs-404 img { flex: 0 1 260px; width: 260px; height: 260px; object-fit: cover; border-radius: 16px; }

.hs-crumbs { font-size: 14px; color: var(--muted); }
.hs-crumbs a { padding: 8px 0; display: inline-block; }
.hs-list-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: -14px; }
.hs-list-head h1 { margin: 0; font-size: 28px; font-weight: 700; }
.hs-list-head span { color: var(--muted); }
.hs .hs-list-feature { margin: 4px 0 12px; font-size: 18px; font-weight: 700; }
.hs .hs-grid + .hs-list-feature { margin-top: 26px; }
.hs-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.hs .hs-cat-chips a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--ink); }
.hs .hs-cat-chips a:hover { border-color: var(--accent); }
.hs-cat-chips a span { color: var(--muted); }
.hs-list { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.hs-filter { flex: 1 1 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.hs-filter fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hs-filter legend { font-weight: 700; font-size: 15px; margin-bottom: 4px; float: none; width: auto; }
.hs-filter label { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 14px; }
.hs-filter input[type=radio] { width: 17px; height: 17px; accent-color: var(--accent); }
.hs-btn { height: 46px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; }
.hs-filter-clear { text-align: center; text-decoration: underline !important; font-size: 14px; padding: 6px 0; }
.hs-list-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hs-sort { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hs-sort span { color: var(--muted); margin-right: 4px; }
.hs-sort a, .hs-pages a { min-height: 44px; min-width: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid #B8C6E0; background: #fff; }
.hs .hs-sort a.on, .hs .hs-pages a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.hs-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hs-pages a { border-radius: 10px; }

.hs-product { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-wrap: wrap; gap: 28px; }
.hs-gallery { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hs-gallery-main { display: block; position: relative; aspect-ratio: 1 / 1; background: var(--soft); border-radius: 14px; overflow: hidden; }
/* Mũi tên lật ảnh và số đếm nằm trên ảnh lớn */
.hs-gallery-step { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(20, 33, 61, .18); }
.hs-gallery-step:hover { background: #fff; }
.hs-gallery-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hs-gallery-prev { left: 10px; }
.hs-gallery-next { right: 10px; }
.hs-gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(20, 33, 61, .72); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.hs-gallery-main img, .hs-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Hàng ảnh nhỏ: 5 ảnh vừa một hàng; nhiều hơn thì cuộn ngang, ảnh thứ sáu ló ra một phần để khách biết còn ảnh.
   Phần đệm 4px chừa chỗ cho viền của ảnh đang chọn (khung cuộn sẽ cắt mất viền nếu không có).
   Không dùng scroll-snap: nó kéo hàng ảnh về vị trí cũ sau khi script cuộn tới ảnh đang chọn, làm ảnh đó bị cắt. */
.hs-gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.hs-gallery-thumbs a { flex: 0 0 calc((100% - 40px) / 5); aspect-ratio: 1 / 1; background: var(--soft); border-radius: 10px; overflow: hidden; display: block; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.hs-gallery-thumbs-more a { flex-basis: calc((100% - 50px) / 5.4); }
/* Ảnh nhỏ đang hiện ở khung lớn có viền màu; rê chuột hoặc Tab tới cũng thấy viền nhạt */
.hs-gallery-thumbs a:hover, .hs-gallery-thumbs a:focus-visible { outline-color: var(--line); }
.hs-gallery-thumbs a[aria-current="true"] { outline-color: var(--accent); }
.hs-info { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hs-info h1 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; }
.hs-info-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.hs-info-meta strong { color: var(--ink); }
.hs-pricebox { background: #FFF4EC; border-radius: 14px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.hs-pricebox small.hs-price-stale { display: block; margin-top: 6px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 8px; padding: 6px 10px; font-weight: 600; }
.hs-pricebox strong { font-size: 32px; color: var(--cta-text, var(--cta)); line-height: 1.1; }
.hs-pricebox s { color: var(--muted); }
.hs-pricebox small { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.hs-variation > div { font-weight: 600; margin-bottom: 6px; }
.hs-variation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.hs-variation li { border: 1px solid #B8C6E0; border-radius: 8px; padding: 7px 12px; }
.hs-disclose { margin: 0; font-size: 13px; color: var(--muted); }

/* Hàng nút chia sẻ (trang sản phẩm, cuối bài viết). Nút tròn 40px, màu theo từng mạng; trên màn hẹp tự xuống dòng. */
.hs-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hs-share-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.hs-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hs .hs-share-btn { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; padding: 0; margin: 0; background: var(--ink); color: #fff; font: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.hs .hs-share-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(20, 33, 61, .22); }
.hs .hs-share-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hs .hs-share-facebook { background: #1877F2; }
.hs .hs-share-zalo { background: #0068FF; font-size: 11px; font-weight: 800; letter-spacing: -.2px; }
.hs .hs-share-instagram { background: linear-gradient(45deg, #F9A63A, #E1306C 50%, #7B3FC4); }
.hs .hs-share-x { background: #000; }
.hs .hs-share-pinterest { background: #E60023; }
.hs .hs-share-telegram { background: #1C8FCC; }
.hs .hs-share-copy, .hs .hs-share-more { background: var(--surface); color: var(--ink); border: 1px solid #B8C6E0; }
.hs .hs-share-copy:hover, .hs .hs-share-more:hover { color: var(--ink); }
.hs-share-status { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.hs-share-status:empty { display: none; }
.hs-share-member { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.hs .hs-share-member a { text-decoration: underline; }

/* Trang "Thành tích của tôi" của thành viên */
.hs-member { display: flex; flex-direction: column; gap: 14px; }
.hs-member h1 { margin: 0; font-size: 26px; }
.hs-member h2 { margin: 10px 0 0; font-size: 18px; }
.hs-member ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.hs-member p { margin: 0; }
.hs-member-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hs-member-cards div { background: var(--soft); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.hs-member-cards strong { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hs-member-cards span { font-size: 13px; color: var(--muted); }
.hs-member-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hs-member-link code, .hs-member li code { background: var(--soft); border-radius: 8px; padding: 6px 10px; font-size: 14px; overflow-wrap: anywhere; }
.hs-btn-copy, .hs-member-actions button { border: 1px solid #B8C6E0; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.hs-btn-copy:hover, .hs-member-actions button:hover { border-color: var(--accent); }
.hs-member-table { overflow-x: auto; }
.hs-member-table table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hs-member-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.hs-member-table td { padding: 8px; border-bottom: 1px solid #EDF1F8; }
.hs-member-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hs .hs-member-actions a, .hs .hs-member a { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .hs .hs-share-btn { transition: none; } .hs .hs-share-btn:hover { transform: none; } }

.hs-product-more { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.hs-product-left { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hs-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.hs-panel h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.hs-ratings { flex: 1 1 320px; min-width: 0; }
.hs-ratings p { color: var(--muted); font-size: 14px; margin: 12px 0 6px; }
.hs-ratings small { color: var(--muted); }
.hs-rating-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.hs-rating-big strong { font-size: 36px; line-height: 1; }
.hs-rating-big span { color: var(--muted); }
.hs-bar { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.hs-bar > span:first-child { width: 30px; }
.hs-bar > span:last-child { width: 118px; text-align: right; color: var(--muted); }
.hs-bar-track { flex: 1; height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.hs-bar-fill { display: block; height: 100%; min-width: 2px; }
.hs-bar-good { background: #15803D; } .hs-bar-mid { background: #8A6100; } .hs-bar-bad { background: #B91C1C; }
.hs-facts { margin: 0; display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; }
.hs-facts dt { color: var(--muted); font-weight: 400; }
.hs-facts dd { margin: 0; }
.hs-prose { max-width: 820px; }
.hs-prose h1 { font-size: 28px; font-weight: 700; margin: 0 0 14px; }
.hs-prose h2 { margin-top: 22px; }
.hs-prose img { width: 100%; height: 260px; object-fit: cover; object-position: center 22%; border-radius: 14px; margin-bottom: 16px; }
.hs-prose a { text-decoration: underline; }
.hs-prose li { margin-bottom: 6px; }

.hs-footer { background: #0B2A6F; color: #fff; }
.hs-footer-row { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 34px; padding-bottom: 34px; }
.hs-footer-about { flex: 2 1 320px; display: flex; flex-direction: column; gap: 10px; }
.hs-footer-about p { margin: 0; font-size: 14px; }
.hs-footer-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.hs-footer-brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.hs-footer-col { flex: 1 1 160px; display: flex; flex-direction: column; font-size: 14px; }
.hs-footer-col strong { margin-bottom: 6px; }
.hs .hs-footer a { color: #fff; padding: 6px 0; }
.hs .hs-footer a:hover { text-decoration: underline; }

/* ---------- Trang quản trị ---------- */
.ad { display: flex; flex-wrap: wrap; min-height: 100vh; background: #F3F6FB; font-size: 15px; line-height: 1.45; }
.ad a { color: #1456E0; }
.ad-side { flex: 1 1 220px; background: #0B2A6F; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.ad-side a, .ad-logout button { padding: 11px 12px; border-radius: 10px; color: #fff; font-weight: 500; text-decoration: none; text-align: left; }
.ad-side a.active { background: #1456E0; font-weight: 700; }
.ad-side a:hover, .ad-logout button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ad-side a.ad-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 4px 8px 14px; background: none; }
.ad-brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.ad-logout { margin-top: 12px; }
.ad-logout button { width: 100%; background: none; border: 1px solid rgba(255, 255, 255, .4); font: inherit; }
.ad-main { flex: 999 1 560px; min-width: 0; padding: 26px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.ad-main h1 { margin: 0; font-size: 26px; font-weight: 700; }
.ad-main h2 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.ad-main h3 { margin: 16px 0 8px; font-size: 15px; font-weight: 700; }
.ad-lead { margin: -10px 0 0; color: var(--muted); }
.ad-muted { color: var(--muted); font-size: 14px; }
.ad-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.ad-head > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.ad-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.ad-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; }
.ad-panel-head h2 { margin: 0; }
/* Bộ nút đặt trong đầu khung thì dạt sang phải; màn hẹp thì tự xuống dòng */
.ad-panel-head .ad-actions { margin-left: auto; align-self: center; }
.ad-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.ad-two .ad-panel { display: flex; flex-direction: column; gap: 12px; }
.ad-two p { margin: 0; }
.ad-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ad-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; }
a.ad-card { color: var(--ink); text-decoration: none; }
a.ad-card:hover { border-color: #1456E0; }
.ad-card-warn { border-color: var(--warn-ink); background: var(--warn-bg); }
.ad-card strong { font-size: 30px; line-height: 1.1; }
.ad-card span { color: var(--muted); font-size: 14px; }
.ad-card-good strong { color: var(--good-ink); }
.ad-drop { border: 2px dashed #B8C6E0; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.ad-drop span { font-weight: 600; }
.ad-drop small { color: var(--muted); }
.ad-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.ad-field input, .ad-field select, .ad-field textarea { min-height: 44px; border: 1px solid #B8C6E0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; }
.ad-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 16px; }
.ad-weekdays { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ad-form-weights { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ad-field-wide { grid-column: 1 / -1; margin-top: 12px; }
.ad-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-top: 12px; }
.ad-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: #1456E0; }
.ad-inline { display: flex; flex-wrap: wrap; gap: 0 24px; }
.ad-bookmark { background: #EEF3FC; border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; }
.ad-bookmark span { flex: 1 1 220px; }
.ad .ad-bookmark a { padding: 11px 16px; border-radius: 10px; background: #14213D; color: #fff; font-weight: 600; text-decoration: none; cursor: grab; }
.ad-btn { min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid #B8C6E0; background: #fff; color: var(--ink); font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ad .ad-btn-primary { background: #1456E0; color: #fff; border-color: #1456E0; font-weight: 700; }
.ad-btn:disabled { opacity: .55; }
.ad-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ad-ok, .ad-error, .ad-warn, .ad-tip { border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 0; }
.ad-ok { background: var(--good-bg); color: var(--good-ink); }
.ad-error { background: var(--bad-bg); color: var(--bad-ink); }
.ad-warn { background: var(--warn-bg); color: var(--warn-ink); }
.ad-tip { background: #EEF3FC; color: var(--ink); }
.ad-scroll { overflow-x: auto; }
.ad-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.ad-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.ad-table td { padding: 10px 8px; border-bottom: 1px solid #EDF1F8; vertical-align: top; }
.ad-table-click tbody tr { cursor: pointer; }
.ad-table-click tbody tr.sel { background: #EEF3FC; }
.ad-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ad-rowbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--ink); text-align: left; }
.ad-chip, .ad-score { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.ad-score { min-width: 40px; text-align: center; border-radius: 8px; font-weight: 700; }
.ad-score-big { font-size: 28px; padding: 6px 14px; border-radius: 12px; }
.ad-chip-good, .ad-score.good { background: var(--good-bg); color: var(--good-ink); }
.ad-chip-warn, .ad-score.warn { background: var(--warn-bg); color: var(--warn-ink); }
.ad-chip-bad, .ad-score.bad { background: var(--bad-bg); color: var(--bad-ink); }
.ad-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #B8C6E0; background: #fff; color: var(--ink); font: inherit; }
.ad-tabs button.on { background: #14213D; color: #fff; border-color: #14213D; font-weight: 600; }
.ad-tabs-links { margin: 4px 0 18px; }
.ad-tabs-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #B8C6E0; background: #fff; color: var(--ink); text-decoration: none; }
.ad-tabs-links a.on { background: #14213D; color: #fff; border-color: #14213D; font-weight: 600; }
.ad-bookmarklet { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #1456E0; color: #fff !important; font-weight: 700; text-decoration: none; cursor: grab; }
.ad-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.ad-token { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: .02em; }
.ad-review { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.ad-review-list { flex: 999 1 560px; min-width: 0; }
.ad-review-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ad-review-side p { margin: 0; }
.ad-side-head { display: flex; align-items: center; gap: 12px; }
.ad-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; background: var(--soft); }
.ad-group { display: flex; flex-direction: column; gap: 6px; }
.ad-group-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.ad-part { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ad-part > span:first-child { flex: 1 1 130px; }
.ad-part > span:last-child { width: 62px; text-align: right; color: var(--muted); }
.ad-part-track { flex: 1 1 70px; height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.ad-part-track span { display: block; height: 100%; background: #1456E0; }

/* ---------- Xem thử, dải chữ dịp lễ, hiệu ứng ---------- */
.hs-preview { background: #14213D; color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; }
/* Dải nhắc bảo trì: chỉ quản trị viên thấy */
.hs-maint { background: #B42318; color: #fff; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.hs .hs-maint a { color: #fff; text-decoration: underline; margin-left: 6px; }
.ad-maint { margin-bottom: 16px; font-weight: 600; }
.ad-panel-alert { border-color: #B42318; box-shadow: inset 4px 0 0 #B42318; }
.hs .hs-preview a { color: #fff; text-decoration: underline; margin-left: 6px; }
.hs-frame { position: absolute; left: 0; right: 0; bottom: 0; background: var(--top); color: var(--top-ink); font-size: 12px; font-weight: 600; text-align: center; padding: 4px; }
.hs-fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.hs-fx span { position: absolute; top: -24px; width: var(--fx-size, 10px); height: var(--fx-size, 10px); animation: hs-fall linear infinite; opacity: .85; }
.hs-fx-snow span { background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(11, 42, 111, .18), 0 0 6px rgba(255, 255, 255, .9); }
.hs-fx-petal span { background: #F6B100; border-radius: 80% 0 80% 0; }
.hs-fx-star span { background: #FFD21F; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
/* Hai hiệu ứng thêm ngày 24/11/2026. Hoa giấy: mảnh chữ nhật ba màu. Trái tim: cắt hình bằng clip-path. */
.hs-fx-confetti span { height: calc(var(--fx-size, 10px) * .5); border-radius: 2px; background: #FACC15; }
.hs-fx-confetti span:nth-child(3n) { background: #F97316; }
.hs-fx-confetti span:nth-child(3n + 1) { background: #1F2937; }
.hs-fx-heart span { background: #EC4899; clip-path: polygon(50% 100%, 8% 56%, 0 32%, 7% 12%, 25% 2%, 42% 8%, 50% 22%, 58% 8%, 75% 2%, 93% 12%, 100% 32%, 92% 56%); }
.hs-fx-heart span:nth-child(even) { background: #F9A8D4; }
@keyframes hs-fall {
    from { transform: translate3d(0, -5vh, 0) rotate(0deg); }
    to { transform: translate3d(40px, 105vh, 0) rotate(320deg); }
}
@media (prefers-reduced-motion: reduce) { .hs-fx { display: none; } }

/* ---------- Mẫu 2 (Market): đầu trang tô màu, danh mục dọc cạnh banner ---------- */
.hs-t2 .hs-header { background: var(--accent); border-bottom: 0; }
.hs-t2 .hs-header .hs-brand, .hs-t2 .hs-header-links a { color: var(--accent-ink); }
.hs-t2 .hs-brand img { background: #fff; border-radius: 12px; padding: 3px; }
.hs-t2 .hs-search input { border: 0; border-radius: 10px 0 0 10px; }
.hs-t2 .hs-search button { border-radius: 0 10px 10px 0; background: var(--cta); color: var(--cta-ink); }
.hs-t2 .hs-nav { background: #14213D; border-top: 0; }
.hs-t2 .hs-nav-row a { color: #fff; }
.hs-t2 .hs-nav-row a:hover { color: #fff; text-decoration: underline; }
.hs-t2 a.hs-nav-all { background: var(--cta); color: var(--cta-ink); }
.hs-t2 a.hs-btn-cta, .hs-t2 a.hs-buy, .hs-t2 .hs-card { border-radius: 10px; }
.hs-market-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.hs-market-cats { flex: 1 1 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hs-market-cats > div { background: #14213D; color: #fff; font-weight: 700; padding: 12px 16px; }
.hs-market-cats a { display: flex; justify-content: space-between; padding: 11px 16px; border-top: 1px solid #EDF1F8; font-weight: 500; }
.hs-market-hero { flex: 999 1 460px; min-width: 0; position: relative; border-radius: 14px; overflow: hidden; min-height: 360px; background: #14213D; color: #fff; }
.hs-market-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hs-market-hero > div { position: relative; padding: 44px 40px; display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
.hs-market-hero h1 { margin: 0; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; font-weight: 700; }
.hs-market-hero p { margin: 0; font-size: 16px; }
.hs-market-side { flex: 1 1 210px; display: flex; flex-direction: column; gap: 16px; }
.hs-market-side a { flex: 1; border-radius: 14px; padding: 20px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.hs-market-side strong { font-size: 18px; }
.hs-market-side span { font-weight: 600; text-decoration: underline; }
.hs-market-deal { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hs-market-deal-head { background: var(--accent); color: var(--accent-ink); padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.hs-market-deal-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.hs .hs-market-deal-head a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; padding: 8px 0; }
.hs-market-deal .hs-grid { padding: 18px; }
.hs-market-cat { display: flex; flex-wrap: wrap; gap: 16px; }
.hs-market-cat-tile { flex: 1 1 220px; border-radius: 14px; padding: 24px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hs-market-cat-tile strong { font-size: 24px; line-height: 1.2; }
.hs-market-cat-tile span { font-weight: 600; text-decoration: underline; }
.hs-market-cat .hs-grid { flex: 999 1 500px; min-width: 0; }

/* ---------- Mẫu 3 (Mall): đầu trang gọn có viền màu, hàng lối tắt, khung trắng theo ngành ---------- */
.hs-t3 .hs-header { border-bottom: 3px solid var(--accent); }
.hs-t3 .hs-search input { border: 2px solid var(--accent); border-right: 0; border-radius: 6px 0 0 6px; }
.hs-t3 .hs-search button { border-radius: 0 6px 6px 0; }
.hs-t3 .hs-nav { border-top: 0; background: #F7F9FC; }
.hs-t3 a.hs-nav-all { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
.hs-t3 a.hs-btn-cta, .hs-t3 a.hs-buy { border-radius: 6px; }
.hs-t3 .hs-card { border-radius: 8px; }
.hs-t3 .hs-main { gap: 18px; }
.hs-mall-top { display: flex; flex-wrap: wrap; gap: 14px; }
.hs-mall-hero { flex: 999 1 520px; min-width: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); padding: 44px 40px; min-height: 240px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.hs-mall-hero h1 { margin: 0; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; font-weight: 700; }
.hs-mall-hero p { margin: 0; font-size: 16px; max-width: 520px; }
.hs-mall-tile { flex: 1 1 270px; border-radius: 10px; background: #FFF0BF; padding: 28px; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.hs-mall-tile strong { font-size: 28px; line-height: 1.15; }
.hs-mall-tile span:last-child { font-weight: 600; text-decoration: underline; }
.hs-mall-shortcuts { background: var(--surface); border-radius: 10px; padding: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.hs-mall-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; text-align: center; font-size: 14px; font-weight: 500; }
.hs-mall-shortcuts a span:first-child { min-width: 52px; height: 52px; padding: 0 8px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--ink); }
.hs-mall-deal, .hs-mall-box { background: var(--surface); border-radius: 10px; overflow: hidden; }
.hs-mall-deal-head { background: var(--cta); color: var(--cta-ink); padding: 12px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.hs-mall-deal-head h2 { margin: 0; font-size: 22px; font-weight: 700; font-style: italic; letter-spacing: .04em; text-transform: uppercase; }
.hs .hs-mall-deal-head a { color: var(--cta-ink); font-weight: 600; text-decoration: underline; padding: 8px 0; }
.hs-mall-deal .hs-grid, .hs-mall-cat .hs-grid { padding: 16px; }
.hs-mall-box > h2 { margin: 0; padding: 18px 18px 0; font-size: 20px; font-weight: 700; }
.hs-mall-shops { padding: 14px 18px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.hs-mall-shops a { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.hs-mall-shops span { font-size: 13px; color: var(--muted); }
.hs-mall-cat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; border-bottom: 2px solid var(--accent); padding-right: 16px; }
.hs-mall-cat-head h2 { margin: 0; font-size: 18px; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; }
.hs-mall-cat-head a { font-weight: 600; text-decoration: underline; padding: 10px 0; }

/* ---------- Quản trị: trang Giao diện ---------- */
.ad-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ad-theme { border: 2px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ad-theme.on, .ad-skin.on { border-color: #1456E0; }
.ad-theme .ad-muted { min-height: 62px; }
/* Ảnh mẫu của mục "Ảnh khi chia sẻ": cùng một khung ngang để so hai cách; ảnh vuông nằm giữa khung. */
.ad-share-sample { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #F3F6FB; }
.ad-share-sample.square { object-fit: contain; }
/* Khung "Phong cách của ảnh có chữ": hai ô chọn chế độ, sáu thẻ phong cách, hàng lưu. */
.ad-panel h3#phong-cach-anh { margin-top: 26px; }
.ad-style-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 14px 0 16px; }
.ad .ad-style-mode { text-align: left; border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ad .ad-style-mode.on { border-color: #1456E0; background: #F2F6FF; }
.ad-style-mode span { font-size: 14px; color: var(--muted); }
.ad-styles .ad-theme .ad-muted { min-height: 0; }
.ad-styles .ad-check { margin-top: 0; }
.ad-style-save { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 18px 0 12px; }
.ad-style-save .ad-field { flex: 1 1 280px; max-width: 420px; }
.ad-wire { background: #F3F6FB; border-radius: 8px; padding: 8px; height: 118px; display: grid; gap: 5px; grid-template-columns: 1fr 3fr 1fr; grid-template-rows: 10px 1fr 14px 24px; }
.ad-wire i { border-radius: 3px; background: #B8C6E0; }
.ad-wire i:nth-child(1) { grid-column: 1 / -1; background: #fff; border: 1px solid #B8C6E0; }
.ad-wire i:nth-child(2) { grid-column: 1 / -1; background: #1456E0; }
.ad-wire i:nth-child(3) { display: none; }
.ad-wire i:nth-child(4) { grid-column: 1 / -1; background: repeating-linear-gradient(90deg, #B8C6E0 0 22%, transparent 22% 26%); }
.ad-wire i:nth-child(5) { grid-column: 1 / -1; background: #DCE4F2; }
.ad-wire-2 i:nth-child(1) { background: #1456E0; border: 0; }
.ad-wire-2 i:nth-child(2) { grid-column: 2 / 3; }
.ad-wire-2 i:nth-child(3) { display: block; grid-column: 1 / 2; grid-row: 2; }
.ad-wire-2 i:nth-child(4) { grid-row: 3; }
.ad-wire-2::after { content: ""; grid-column: 3 / 4; grid-row: 2; border-radius: 3px; background: #F2B38C; }
.ad-wire-3 i:nth-child(2) { grid-column: 1 / 3; }
.ad-wire-3::after { content: ""; grid-column: 3 / 4; grid-row: 2; border-radius: 3px; background: #F2D98C; }
.ad-wire-3 i:nth-child(4) { background: repeating-linear-gradient(90deg, #F2B38C 0 10%, transparent 10% 12.5%); }
.ad-skins { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.ad-skin { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ad-swatches { display: flex; height: 44px; }
.ad-swatches span { flex: 1; }
.ad-skin-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ad-skin .ad-btn, .ad-table .ad-btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.ad-subpanel { background: #F3F6FB; border-radius: 12px; padding: 16px; margin-top: 16px; }
.ad-subpanel h3 { margin-top: 0; }
.ad-field input[type=color] { padding: 4px; width: 100%; }
td.ad-actions { flex-wrap: nowrap; }

/* ---------- Nội dung AI viết: trang sản phẩm và trang quản trị ---------- */
.hs-lede { margin: 0; color: var(--muted); font-size: 16px; }
.hs-content h2 { margin-top: 18px; }
.hs-content h2:first-child { margin-top: 0; }
.hs-content ul { margin: 0; padding-left: 20px; }
.hs-content li, .hs-content p { margin: 0 0 6px; }
.hs-content details { border-top: 1px solid var(--line); padding: 10px 0; }
.hs-content summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.hs-content details p { margin: 8px 0 0; color: var(--muted); }
.hs-content small { display: block; margin-top: 14px; color: var(--muted); }
.ad-pre { background: #F3F6FB; border-radius: 10px; padding: 12px; font-size: 13px; white-space: pre-wrap; word-break: break-word; margin: 0 0 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ad-review-side .ad-panel { display: flex; flex-direction: column; gap: 10px; }
.ad-warn ul { margin: 6px 0 0; padding-left: 20px; }
.ad-head .ad-tip { align-self: center; }

/* ---------- Khuyến mãi: mã giảm giá, chiến dịch, đếm ngược ---------- */
.hs a.hs-nav-hot { color: var(--cta-text, var(--cta)); font-weight: 700; }
.hs-t2 .hs-nav-row a.hs-nav-hot { color: #fff; }
.hs-countdown { display: inline-block; background: #14213D; color: #fff; border-radius: 8px; padding: 5px 12px; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-block-head .hs-countdown, .hs-market-deal-head .hs-countdown, .hs-mall-deal-head .hs-countdown { margin-right: auto; }
.hs-coupons { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 16px; }
/* Thẻ mã giảm giá kiểu vé (CouponCard): cuống vé .hs-cp-stub ghi mức giảm, thân vé .hs-cp-body. Ba mẫu hs-cp1, hs-cp2, hs-cp3 theo cài đặt
   CouponStyle. Thẻ không nêu mức giảm (hs-cp-plain) hiện biểu tượng. Màu của mẫu 1 và 3 theo skin; mẫu 2 cố định. */
.hs-coupon { --cp-stub: 112px; min-width: 0; display: flex; color: var(--ink); }
.hs-cp-in { flex: 1; min-width: 0; display: flex; position: relative; min-height: 164px; }
.hs-cp-stub { flex: none; width: var(--cp-stub); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative; text-align: center; padding: 10px 6px; }
.hs-cp-stub i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; }
.hs-cp-stub b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.hs-cp-stub b.hs-cp-long { font-size: 26px; }
.hs-cp-body { flex: 1; min-width: 0; padding: 14px 16px 13px; display: flex; flex-direction: column; gap: 4px; }
.hs-cp-shop { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.hs-cp-body strong { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.hs-cp-body p { margin: 0; font-size: 13px; line-height: 1.45; }
.hs-home-coupons .hs-cp-body p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hs-cp-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hs-cp-exp { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hs-coupon a.hs-cp-go, .hs .hs-coupon a.hs-cp-go { margin-top: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 17px; border-radius: 999px; font-size: 13.5px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.hs-coupon .hs-ico { flex: none; }
.hs-coupon-code { margin-top: 6px; min-height: 42px; border: 1px dashed currentColor; border-radius: 10px; background: transparent; color: inherit; font: inherit; padding: 6px 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; cursor: pointer; }
.hs-coupon-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 700; color: inherit; overflow-wrap: anywhere; text-align: left; }
.hs-coupon-code span { font-size: 13px; font-weight: 600; text-decoration: underline; white-space: nowrap; }

/* Mẫu 1 · Vé đỏ nổi: cuống vé màu nút mua của skin có mép răng cưa, thân trắng. */
.hs-cp1 { filter: drop-shadow(0 5px 12px rgba(20, 33, 61, .10)); }
.hs-cp1 .hs-cp-stub { color: var(--cta-ink, #fff); background: var(--cta, #B91C1C); background: linear-gradient(160deg, color-mix(in srgb, var(--cta, #B91C1C) 86%, #fff), var(--cta, #B91C1C) 55%, color-mix(in srgb, var(--cta, #B91C1C) 76%, #000));
    -webkit-mask: radial-gradient(circle at 0 11px, #0000 6px, #000 6.6px) 0 0 / 100% 22px; mask: radial-gradient(circle at 0 11px, #0000 6px, #000 6.6px) 0 0 / 100% 22px; }
.hs-cp1.hs-cp-plain .hs-cp-stub { color: var(--accent-ink, #fff); background: var(--accent, #0F3D2E); background: linear-gradient(160deg, color-mix(in srgb, var(--accent, #0F3D2E) 86%, #fff), var(--accent, #0F3D2E) 55%, color-mix(in srgb, var(--accent, #0F3D2E) 76%, #000)); }
.hs-cp1 .hs-cp-stub::after { content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; border-right: 2px dashed rgba(255, 255, 255, .55); }
.hs-cp1 .hs-cp-body { background: var(--surface, #fff); border-radius: 0 16px 16px 0; }
.hs-cp1 .hs-cp-shop { color: var(--cta-text, var(--cta, #B91C1C)); }
.hs-cp1 .hs-cp-body p { color: var(--muted); }
.hs-cp1 .hs-cp-exp { color: #8A5A00; background: #FFF3CC; border-radius: 999px; padding: 5px 11px; }
.hs-cp1 .hs-cp-exp.urgent { color: var(--bad-ink); background: var(--bad-bg); }
.hs-coupon.hs-cp1 a.hs-cp-go, .hs-coupon.hs-cp1 a.hs-cp-go:hover { background: var(--cta, #B91C1C); color: var(--cta-ink, #fff); }

/* Mẫu 2 · Đen vàng: thẻ quà tặng nền tối, khung và con số màu vàng kim. Màu cố định, không theo skin. */
.hs-cp2 .hs-cp-in { background: linear-gradient(135deg, #0E1524 0%, #1B2438 60%, #121A2B 100%); border-radius: 16px; box-shadow: 0 8px 20px rgba(14, 21, 36, .22); color: #F8F3E6; }
.hs-cp2 .hs-cp-in::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(214, 174, 82, .55); border-radius: 11px; pointer-events: none; }
.hs-cp2 .hs-cp-stub { color: #E7C873; }
.hs-cp2 .hs-cp-stub b { font-family: "Times New Roman", Times, serif; font-variant-numeric: lining-nums; font-weight: 700; font-size: 42px; letter-spacing: 0; color: #D6AE52; background: linear-gradient(180deg, #F6E3A1 0%, #D6AE52 55%, #B8892E 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hs-cp2 .hs-cp-stub b.hs-cp-long { font-size: 32px; }
.hs-cp2 .hs-cp-stub::after { content: ""; position: absolute; right: 0; top: 26px; bottom: 26px; width: 1px; background: linear-gradient(180deg, #0000, #D6AE52 20%, #D6AE52 80%, #0000); }
.hs-cp2 .hs-cp-stub::before { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: #D6AE52; transform: rotate(45deg); }
.hs-cp2 .hs-cp-body { padding: 18px 22px 17px 20px; }
.hs-cp2 .hs-cp-shop { color: #D6AE52; }
.hs-cp2 .hs-cp-body strong { color: #F8F3E6; }
.hs-cp2 .hs-cp-body p { color: #A9B2C5; }
.hs-cp2 .hs-coupon-code { color: #E7C873; }
.hs-cp2 .hs-cp-exp { color: #E7C873; border: 1px solid rgba(214, 174, 82, .55); border-radius: 999px; padding: 4px 11px; }
.hs-cp2 .hs-cp-exp.urgent { color: #1B1403; background: #E7C873; border-color: #E7C873; }
.hs-coupon.hs-cp2 a.hs-cp-go, .hs-coupon.hs-cp2 a.hs-cp-go:hover { background: #D6AE52; background: linear-gradient(180deg, #F1D88A, #D6AE52); color: #1B1403; }

/* Mẫu 3 · Kem và xanh ngọc: vé giấy màu kem có hai vết khuyết, cuống vé màu chính của skin viền vàng, chữ có chân.
   Chữ có chân dùng Times New Roman với số thẳng hàng, vì Georgia có số "lên xuống". */
.hs-cp3 { filter: drop-shadow(0 4px 10px rgba(60, 48, 20, .10)); }
.hs-cp3 .hs-cp-in { background: #FBF7EC; border: 1px solid #E4D9BF; border-radius: 16px; overflow: hidden;
    -webkit-mask: radial-gradient(circle 9px at var(--cp-stub) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--cp-stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 9px at var(--cp-stub) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--cp-stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; }
.hs-cp3 .hs-cp-stub { background: var(--accent, #0F3D2E); color: #FBF7EC; }
.hs-cp3 .hs-cp-stub::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(214, 174, 82, .75); border-radius: 8px; }
.hs-cp3 .hs-cp-stub i { color: #E7C873; }
.hs-cp3 .hs-cp-stub b { font-family: "Times New Roman", Times, serif; font-variant-numeric: lining-nums; font-weight: 700; font-size: 42px; letter-spacing: 0; }
.hs-cp3 .hs-cp-stub b.hs-cp-long { font-size: 32px; }
.hs-cp3 .hs-cp-body { border-left: 2px dashed #D9CBA8; }
.hs-cp3 .hs-cp-shop { color: var(--accent, #0F3D2E); }
.hs-cp3 .hs-cp-body strong { font-family: "Times New Roman", Times, serif; font-variant-numeric: lining-nums; font-size: 19px; line-height: 1.22; color: #1F2A1F; }
.hs-cp3 .hs-cp-body p { color: #5B5A4E; }
.hs-cp3 .hs-cp-exp { color: #7A5A12; }
.hs-cp3 .hs-cp-exp.urgent { color: #9A2B0B; font-weight: 700; }
.hs-coupon.hs-cp3 a.hs-cp-go, .hs-coupon.hs-cp3 a.hs-cp-go:hover { background: var(--accent, #0F3D2E); color: #FBF7EC; box-shadow: inset 0 0 0 1.5px #D6AE52; }
@media (max-width: 760px) {
    .hs-coupon { --cp-stub: 92px; }
    .hs-cp-in { min-height: 150px; }
    .hs-cp-stub b { font-size: 28px; }
    .hs-cp2 .hs-cp-stub b, .hs-cp3 .hs-cp-stub b { font-size: 34px; }
    .hs-cp-stub b.hs-cp-long, .hs-cp2 .hs-cp-stub b.hs-cp-long, .hs-cp3 .hs-cp-stub b.hs-cp-long { font-size: 24px; }
    .hs-cp-body, .hs-cp2 .hs-cp-body { padding: 12px 13px; }
}
/* Thẻ mẫu ở trang Giao diện: các biến màu của skin được đặt ngay trên khung này (trang quản trị không có chúng). */
.ad-coupon-sample { background: var(--page, #F3F6FB); border-radius: 10px; padding: 16px 14px; }
.ad-coupon-styles { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.ad-coupon-styles .ad-theme .ad-muted { min-height: 0; }
.hs-home-coupons { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.hs-t2 .hs-home-coupons { border-radius: 14px; }
.hs-t3 .hs-home-coupons { border: 0; border-radius: 10px; padding: 18px; }
.hs-campaigns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.hs-campaign-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hs-campaign-tile.on { border: 2px solid var(--cta); }
.hs-campaign-tile strong { font-size: 22px; line-height: 1.2; }
.hs-campaign-go { font-weight: 600; text-decoration: underline; margin-top: auto; }
.hs-campaign-hero { background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; }
.hs-campaign-hero h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; font-weight: 700; }
.hs-campaign-hero p { margin: 0; font-size: 16px; max-width: 760px; }
.hs-campaign-time { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; }
.hs-t2 .hs-campaign-hero { border-radius: 14px; }
.hs-t3 .hs-campaign-hero { border-radius: 10px; }

/* ---------- Bài viết ---------- */
.hs-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hs-post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.hs-post-card-img { display: block; aspect-ratio: 16 / 9; background: var(--soft); }
.hs-post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-post-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hs-post-card h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.hs-post-card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hs-post-card small { color: var(--muted); font-size: 13px; margin-top: auto; }
.hs-post-kind { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hs-post { max-width: 860px; width: 100%; margin: 0 auto; padding: 30px 34px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; }
.hs-post header { display: flex; flex-direction: column; gap: 10px; }
.hs-post h1 { margin: 0; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; font-weight: 700; }
.hs-post h2 { margin: 14px 0 0; font-size: 22px; font-weight: 700; line-height: 1.3; scroll-margin-top: 16px; }
.hs-post p, .hs-post ul { margin: 0; }
.hs-post ul { padding-left: 22px; }
.hs-post li { margin-bottom: 6px; }
.hs-post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; }
.hs-toc { background: #F7F9FC; border-radius: 12px; padding: 16px 20px; font-size: 15px; }
.hs-toc ol { margin: 8px 0 0; padding-left: 22px; }
.hs-toc a, .hs a.hs-link, .hs-linklist a { text-decoration: underline; }
.hs-post-product { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-wrap: wrap; background: #FBFCFE; font-size: 15px; line-height: 1.45; }
.hs-post-product-img { flex: 1 1 180px; max-width: 240px; aspect-ratio: 1 / 1; background: var(--soft); display: block; }
.hs-post-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-post-product-body { flex: 999 1 280px; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hs-post-product h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.hs-post-product small { color: var(--muted); font-size: 13px; }
.hs-post-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; }
.hs-post-product-actions .hs-buy { margin-top: 0; padding-left: 26px; padding-right: 26px; }
.hs-post footer { border-top: 1px solid var(--line); padding-top: 14px; line-height: 1.5; }
.hs-linklist { margin: 0; padding-left: 20px; }
.hs-linklist li { margin-bottom: 6px; }

/* ---------- Quản trị: mã giảm giá, chiến dịch, bài viết ---------- */
.ad-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.ad-field textarea.ad-body { min-height: 460px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.ad-form-full { grid-template-columns: 1fr; }
.ad-pick { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ad-pick label, .ad-pick-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #EDF1F8; font-size: 14px; }
.ad-pick label { cursor: pointer; }
.ad-pick-row { align-items: center; }
.ad-pick-row .ad-btn { min-height: 36px; padding: 0 12px; font-size: 13px; flex: none; }
.ad-pick input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: #1456E0; }
.ad-pick span { color: var(--muted); white-space: nowrap; margin-left: auto; padding-left: 10px; }
.ad-edit { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.ad-edit-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ad-edit-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ad-edit-side .ad-panel { display: flex; flex-direction: column; gap: 10px; }
.ad-edit-side p { margin: 0; }

/* Quản trị: chú thích đăng mạng xã hội */
.ad-captions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.ad-caption { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #FAFBFD; }
.ad-caption-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ad-caption p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }


/* Quản trị: danh sách các bước làm theo thứ tự */
.ad-steps { margin: 4px 0 12px; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }

/* ===== Trang tài khoản: các trang "vào cửa" (.hs-auth) và khu "Tài khoản của tôi" (.hs-acct-shell) =====
   Mọi thứ nằm trong .hs-acct. Màu nhấn lấy từ skin của shop (--accent, --top) nên đổi skin là các trang này đổi theo.
   Các lớp hs-* ở đây thay cho lớp Bootstrap mà mẫu trang tài khoản gốc dùng. */
.hs-acct { --ok: #0F6E56; --ok-bg: #E6F4EC; --warn: #8A5A00; --warn-bg: #FFF4D6; --danger: #B42318; --danger-bg: #FDECEA; --field-line: #B8C6E0; }
.hs-acct .hs-row, .hs-acct .hs-col, .hs-auth-card section { display: contents; }
.hs .hs-acct a:not(.hs-btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.hs .hs-acct a:not(.hs-btn):hover { color: var(--ink); }
.hs-acct code { color: var(--ink); }
.hs-acct p { margin: 0; }
.hs-muted { color: var(--muted); }
.hs-ico { flex: none; }

/* Khung hai cột của trang vào cửa */
.hs-auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; max-width: 1000px; width: 100%; margin: 4px auto 28px; }
.hs-auth-brand { background: #fff; border-top: 6px solid var(--top); border-right: 1px solid var(--line); padding: 30px 30px 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.hs-auth-brand img { width: min(270px, 72%); height: auto; display: block; }
.hs-auth-brand-text { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hs-auth-hello { font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.hs-auth-tagline { color: var(--muted); max-width: 34ch; }
.hs-auth-brand ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.hs-auth-brand li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hs-auth-brand li .hs-ico { color: var(--accent); }
.hs-auth-card { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.hs-auth-card h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.hs-auth-sub { color: var(--muted); font-size: 15px; }
.hs-auth-card form { display: flex; flex-direction: column; gap: 16px; }
.hs-auth-foot { text-align: center; font-size: 14px; }
.hs-auth-dev { font-size: 13px; border-top: 1px dashed var(--line); padding-top: 12px; }

/* Ô nhập */
.hs-field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.hs-field > label { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.hs-input { width: 100%; height: 48px; border: 1px solid var(--field-line); border-radius: 12px; padding: 0 14px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.hs-input::placeholder { color: #8A94AB; }
.hs-input:hover { border-color: #8FA3C8; }
.hs-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.hs-input:disabled { background: var(--soft); color: var(--muted); }
.hs-input.invalid, .hs-input.valid.modified { outline: none; }
.hs-input.invalid { border-color: var(--danger); }
.hs-input.invalid:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 16%, transparent); }
.hs-input-code { letter-spacing: .32em; font-size: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.hs-pw { position: relative; display: block; }
.hs-pw .hs-input { padding-right: 50px; }
.hs-pw-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hs-pw-toggle:hover { background: var(--soft); color: var(--ink); }
.hs-pw-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.hs-pw-toggle .hs-ico-eyeoff, .hs-pw-toggle[aria-pressed="true"] .hs-ico-eye { display: none; }
.hs-pw-toggle[aria-pressed="true"] .hs-ico-eyeoff { display: block; }
.hs-error, .hs-acct .validation-message { color: var(--danger); font-size: 13px; }
.hs-error-summary { color: var(--danger); font-size: 14px; margin: 0; padding-left: 18px; }
.hs-pw-rules { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 12px; font-size: 13px; color: var(--muted); }
.hs-pw-rules li { display: flex; align-items: center; gap: 6px; }
.hs-pw-rules .hs-ico { color: var(--field-line); }
.hs-pw-rules li.ok, .hs-pw-rules li.ok .hs-ico { color: var(--ok); }
.hs-check-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; font-size: 14px; }
.hs-check-row label { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.hs-check { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hs-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.hs-or::before, .hs-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Nút */
.hs .hs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: filter .15s, border-color .15s, background .15s; }
.hs .hs-btn-block { width: 100%; }
.hs .hs-btn-primary { background: var(--accent); color: var(--accent-ink); }
.hs .hs-btn-primary:hover { filter: brightness(1.1); color: var(--accent-ink); }
.hs .hs-btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--field-line); }
.hs .hs-btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.hs .hs-btn-danger { background: var(--danger); color: #fff; }
.hs .hs-btn-danger:hover { filter: brightness(1.08); color: #fff; }
.hs .hs-btn-danger-ghost { background: var(--surface); color: var(--danger); border-color: #F1B8B2; }
.hs .hs-btn-danger-ghost:hover { background: var(--danger-bg); color: var(--danger); }
.hs .hs-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.hs-btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.hs-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Khung thông báo trong trang, và trang thông báo ngắn */
.hs-alert { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--soft); color: var(--ink); }
.hs-alert p + p { margin-top: 6px; }
.hs-alert-success { background: var(--ok-bg); border-color: #A9D8BF; color: #0B5A45; }
.hs-alert-danger { background: var(--danger-bg); border-color: #F1B8B2; color: #8F1D14; }
.hs-alert-warn { background: var(--warn-bg); border-color: #F0D58A; color: #6B4500; }
.hs .hs-acct .hs-alert a:not(.hs-btn) { color: inherit; }
.hs-notice { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hs-notice-icon { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--accent); }
.hs-notice-ok .hs-notice-icon { background: var(--ok-bg); color: var(--ok); }
.hs-notice-warn .hs-notice-icon { background: var(--warn-bg); color: var(--warn); }
.hs-notice-danger .hs-notice-icon { background: var(--danger-bg); color: var(--danger); }
.hs-notice-body { display: flex; flex-direction: column; gap: 8px; }
.hs-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Khu "Tài khoản của tôi" */
.hs-acct-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.hs-acct-side { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; position: sticky; top: 12px; }
.hs-acct-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.hs-acct-avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--soft); color: var(--accent); font-weight: 700; }
.hs-acct-email { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-acct-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-acct-nav form { margin: 0; }
.hs .hs-acct .hs-acct-nav a, .hs-acct-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.hs .hs-acct .hs-acct-nav a:hover, .hs-acct-nav button:hover { background: var(--soft); color: var(--ink); }
.hs .hs-acct .hs-acct-nav a.active { background: var(--soft); font-weight: 700; }
.hs-acct-nav .hs-ico { color: var(--muted); }
.hs-acct-nav a.active .hs-ico { color: var(--accent); }
.hs-acct-nav-out { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.hs-acct-body { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hs-acct-body h3 { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.25; }
.hs-acct-body h4 { margin: 8px 0 0; font-size: 16px; font-weight: 700; }
.hs-acct-lede { color: var(--muted); max-width: 64ch; }
.hs-acct-body form { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 470px; margin: 0; }
.hs-acct-body .hs-table form, .hs-acct-body .hs-zone form { display: block; max-width: none; }
.hs-state { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 14px; font-weight: 600; }
.hs-state-on { background: var(--ok-bg); color: var(--ok); }
.hs-badge-ok, .hs-badge-warn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.hs-badge-ok { background: var(--ok-bg); color: var(--ok); }
.hs-badge-warn { background: var(--warn-bg); color: var(--warn); }
.hs-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.hs-zone > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.hs-zone p { color: var(--muted); font-size: 14px; }
.hs-zone-danger { border-color: #F1B8B2; background: #FFFAF9; }
.hs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hs-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hs-table td:last-child { text-align: right; }
.hs-table td:last-child > form > div { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hs-table .hs-btn { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.hs-empty-line { color: var(--muted); }
.hs-code { display: inline-block; background: var(--soft); border-radius: 8px; padding: 6px 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.hs-code-key { font-size: 15px; letter-spacing: .06em; overflow-wrap: anywhere; }
/* Mã QR ở trang cài ứng dụng xác thực: nền trắng, đủ lớn để quét, không bị nền tối của skin làm mờ. */
.hs-qr { width: 208px; max-width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 6px 0 10px; }
.hs-qr svg { display: block; width: 100%; height: 100%; }
.hs-qr-phone { display: none; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.hs-qr-phone span { font-size: 13.5px; color: var(--muted); }
@media (pointer: coarse) { .hs-qr-phone { display: flex; } }
.hs-qr-note { font-size: 13.5px; color: var(--muted); }
.hs-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.hs-codes .hs-code { text-align: center; }
.hs-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.hs-steps li > p + p, .hs-steps li > p + form { margin-top: 8px; }
.hs-acct-body .hs-member { display: flex; flex-direction: column; gap: 16px; }
.hs-acct-body .hs-member h2 { margin: 6px 0 0; font-size: 17px; font-weight: 700; }

@media (max-width: 860px) {
    .hs-auth { grid-template-columns: 1fr; border-radius: 18px; }
    .hs-auth-brand { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 14px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
    .hs-auth-brand img { width: 76px; }
    .hs-auth-brand-text { align-items: flex-start; }
    .hs-auth-hello { font-size: 17px; }
    .hs-auth-tagline, .hs-auth-brand ul { display: none; }
    .hs-auth-card { padding: 26px 20px 30px; }
    .hs-auth-card h1 { font-size: 24px; }
    .hs-acct-shell { grid-template-columns: 1fr; gap: 12px; }
    .hs-acct-side { position: static; padding: 8px; border-radius: 14px; }
    .hs-acct-user { display: none; }
    .hs-acct-nav { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
    .hs .hs-acct .hs-acct-nav a, .hs-acct-nav button { width: auto; white-space: nowrap; border: 1px solid var(--line); padding: 8px 12px; }
    .hs-acct-nav-out { margin: 0; padding: 0; border: 0; }
    .hs-acct-body { padding: 22px 18px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hs-input, .hs .hs-btn { transition: none; } }

/* Thanh báo lỗi của Blazor: ẩn sẵn, Blazor tự bật khi trang gặp lỗi không xử lý được. Thiếu quy tắc này thì dòng chữ lỗi luôn hiện ở cuối mọi trang. */
#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 10px 44px 10px 16px; background: #FFF4D6; color: #6B4500; border-top: 1px solid #F0D58A; font-size: 14px; }
#blazor-error-ui .dismiss { position: absolute; right: 14px; top: 8px; cursor: pointer; }
/* Nút đứng riêng trong thân trang tài khoản không kéo hết bề ngang */
.hs-acct-body > .hs-btn, .hs-acct-body > form > .hs-btn, .hs-steps .hs-btn { align-self: flex-start; }
.hs-acct-body > form:has(> .hs-btn:only-child), .hs-acct-body > div > form { max-width: none; }

/* Nút "Tiếp tục với Google": nền trắng, viền mảnh, chữ G bốn màu theo quy định nhận diện của Google */
.hs .hs-btn-google { background: #fff; color: #1F1F1F; border-color: #747775; font-weight: 600; }
.hs .hs-btn-google:hover { background: #F6F8FB; color: #1F1F1F; border-color: #747775; }
.hs-btn-google svg { flex: none; }

/* Thanh xin đồng ý cookie đo lường (do-luong.js tạo) */
.hs-consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: var(--surface, #fff); color: var(--ink, #14213D);
  border: 1px solid var(--line, #DCE4F2); border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 33, 61, .18); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.hs-consent p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.hs-consent p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hs-consent-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.hs-consent button { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.hs-consent-no { background: #fff; color: var(--ink, #14213D); border: 1px solid #B8C6E0; }
.hs-consent-yes { background: var(--accent, #1456E0); color: var(--accent-ink, #fff); border: 1px solid var(--accent, #1456E0); }
@media (max-width: 520px) { .hs-consent { left: 8px; right: 8px; bottom: 8px; } .hs-consent-actions { width: 100%; } .hs-consent button { flex: 1; } }

/* Thanh trên cùng của trang Cài đặt: tiêu đề, tab và nút Lưu luôn trong tầm tay khi cuộn */
.ad-sticky { position: sticky; top: 0; z-index: 20; background: #F3F6FB; margin: -26px -28px 0; padding: 14px 28px 4px; border-bottom: 1px solid var(--line); }
.ad-sticky-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ad-sticky .ad-tabs-links { margin: 8px 0 6px; }
.ad-btn-dirty { box-shadow: 0 0 0 3px rgba(242, 153, 0, .45); }

/* Tab "Tự động đăng bài": một bài trong hàng chờ */
.ad-fb-post { display: flex; gap: 14px; padding: 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ad-fb-post.on { border-color: #1E8E5A; box-shadow: inset 4px 0 0 #1E8E5A; }
.ad-fb-post img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.ad-fb-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ad-fb-head { display: flex; flex-direction: column; gap: 2px; }
.ad-fb-text { margin: 0; white-space: pre-wrap; font: inherit; font-size: 14px; background: #F7F9FD; border-radius: 10px; padding: 10px 12px; max-height: 220px; overflow: auto; }
.ad-fb-body textarea, .ad-fb-body input[type=text] { width: 100%; font: inherit; border: 1px solid #B8C6E0; border-radius: 10px; padding: 8px 10px; }
.ad-fb-post.warn { border-color: var(--warn-ink); box-shadow: inset 4px 0 0 var(--warn-ink); }
button.ad-card-btn { font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
button.ad-card-btn:hover { border-color: #1456E0; }
button.ad-card-btn.on { border-color: #1456E0; box-shadow: inset 0 0 0 1px #1456E0; }
@media (max-width: 600px) { .ad-fb-post { flex-direction: column; } }
.ad-details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #F7F9FD; }
.ad-details summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }

/* ---------- Điện thoại: lưới sản phẩm luôn 2 cột (23/11/2026) ----------
   Trước đây mỗi cột cần ít nhất 200 điểm, mà iPhone 15 Pro Max chỉ rộng 430 điểm: trừ lề 24 + 24 còn
   382, không đủ 416 cho hai cột, nên mọi điện thoại chỉ thấy một cột. Từ 760 điểm trở xuống: hai cột co
   giãn được, lề trang 12, thẻ gọn lại cho vừa khoảng 195 điểm mỗi thẻ. Máy tính và máy tính bảng không đổi. */
@media (max-width: 760px) {
    .hs-wrap { padding-left: 12px; padding-right: 12px; }
    .hs-grid, .hs-grid-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hs-market-deal .hs-grid, .hs-mall-deal .hs-grid, .hs-mall-cat .hs-grid { padding: 10px; }
    .hs-market-cat .hs-grid { flex-basis: 100%; }
    .hs-card { border-radius: 12px; }
    .hs-card-body { padding: 10px 10px 12px; gap: 5px; }
    .hs-card-shop { font-size: 11.5px; }
    .hs-card h3 { font-size: 13.5px; line-height: 1.35; min-height: 36px; }
    .hs-card-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
    .hs-card-price strong { font-size: 16px; }
    .hs-card-price s { margin-left: 0; font-size: 12px; }
    .hs-card-meta { font-size: 12px; gap: 0 8px; }
    .hs a.hs-buy { padding: 9px 6px; font-size: 13.5px; }
    .hs-badge { top: 8px; left: 8px; font-size: 12px; padding: 2px 8px; }
    .hs-frame { font-size: 11px; padding: 3px; }
}

/* ---------- Điện thoại: gói tối ưu (24/11/2026) ----------
   Đo trên iPhone 15 Pro Max (430 điểm) trước khi làm: đầu trang cao 410–460 điểm, trang ngành phải cuộn 1.636 điểm mới tới món
   đầu tiên, nút mua của trang sản phẩm ở điểm 1.414, lưới đầu tiên của trang chủ ở điểm 3.284. Khối này chỉ đổi bố cục từ 760
   điểm trở xuống; màn rộng giữ nguyên. Ba phần tử dưới đây chỉ dành cho điện thoại nên mặc định ẩn. */
.hs-me, .hs-filter-check, .hs-filter-bar, .hs-buybar { display: none; }
.hs-hero picture { flex: 1 1 360px; min-width: 0; display: block; }
.hs-hero picture img { display: block; }
@media (max-width: 760px) {
    /* Đầu trang: băng rôn một dòng; logo nhỏ + nút tài khoản; ô tìm kiếm trọn hàng; thanh ngành một dòng vuốt ngang. */
    .hs-promo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; padding: 7px 12px; }
    .hs-header-row { gap: 8px 12px; padding-top: 8px; padding-bottom: 10px; }
    .hs-brand { font-size: 18px; gap: 8px; }
    .hs-brand img { width: 36px; height: 36px; }
    .hs-header-links { display: none; }
    .hs-me { display: block; margin-left: auto; position: relative; }
    .hs-me summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
    .hs-me summary::-webkit-details-marker { display: none; }
    .hs-me-list { position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20, 33, 61, .16); padding: 6px; display: grid; }
    .hs .hs-me-list a { padding: 12px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
    .hs-search { flex: 1 1 100%; order: 3; }
    /* Chữ từ 16 điểm: nhỏ hơn thì Safari trên iPhone tự phóng to cả trang khi chạm vào ô. */
    .hs-search input { font-size: 16px; height: 44px; padding: 0 16px; }
    .hs-search button { height: 44px; padding: 0 20px; }
    .hs input:not([type=checkbox]):not([type=radio]), .hs select, .hs textarea { font-size: 16px; }
    .hs-nav-row { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 0 20px; scrollbar-width: none; }
    .hs-nav-row::-webkit-scrollbar { display: none; }
    .hs-nav-row > a, .hs-nav-more { flex: 0 0 auto; }
    .hs-nav-row .hs-nav-all { order: -3; }
    .hs-nav-row .hs-nav-hot { order: -2; }
    .hs-nav-row .hs-nav-coupon { order: -1; }
    /* "Ngành khác" nằm trong hàng vuốt ngang nên bảng của nó không thả xuống được (bị cắt): cho nó thành bảng nổi ở đáy màn hình. */
    .hs-nav-more { position: static; }
    .hs-nav-more-list { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); max-height: 62vh; min-width: 0; white-space: normal; z-index: 70; }

    .hs-main { padding-top: 12px; gap: 18px; }
    .hs-crumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Trang ngành và tìm kiếm: bảng lọc gập sau nút "Lọc"; hàng sắp xếp và hàng nhãn ngành vuốt ngang. */
    .hs-list-head { margin-top: -8px; }
    .hs-list-head h1 { font-size: 22px; }
    .hs-list { gap: 10px; }
    .hs-filter-check { display: block; position: absolute; left: -9999px; }
    .hs-filter-bar { display: flex; align-items: center; gap: 14px; flex: 1 1 100%; }
    .hs-filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #B8C6E0; background: #fff; font-weight: 600; cursor: pointer; }
    .hs-filter-check:focus-visible ~ .hs-filter-bar .hs-filter-toggle { outline: 2px solid var(--accent); outline-offset: 2px; }
    .hs-filter-check:checked ~ .hs-filter-bar .hs-filter-toggle { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
    .hs .hs-filter-bar a { text-decoration: underline; font-size: 14px; padding: 10px 0; }
    .hs-filter { display: none; flex-basis: 100%; }
    .hs-filter-check:checked ~ .hs-filter { display: flex; }
    .hs-list-main { flex-basis: 100%; gap: 12px; }
    .hs-sort, .hs-cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .hs-sort::-webkit-scrollbar, .hs-cat-chips::-webkit-scrollbar, .hs-trust::-webkit-scrollbar, .hs-cats::-webkit-scrollbar { display: none; }
    .hs-sort { padding: 8px 10px; border-radius: 14px; }
    .hs-sort a, .hs-sort span, .hs-cat-chips a { flex: 0 0 auto; white-space: nowrap; }
    .hs-sort a { min-height: 40px; padding: 0 14px; }
    .hs-cat-chips { margin-bottom: 4px; }

    /* Trang chủ Mẫu 1: banner chỉ còn khung chữ; hàng cam kết và hàng ô ngành vuốt ngang. */
    .hs-hero picture { display: none; }
    .hs-hero-text { flex-basis: 100%; padding: 24px 20px; gap: 12px; }
    .hs-hero h1 { font-size: 24px; }
    .hs-hero p { font-size: 15px; }
    .hs a.hs-btn-cta { padding: 12px 22px; }
    .hs-trust { display: flex; overflow-x: auto; gap: 10px; scrollbar-width: none; }
    .hs-trust div { flex: 0 0 230px; padding: 12px 14px; }
    .hs-cats { display: flex; overflow-x: auto; gap: 10px; scrollbar-width: none; }
    .hs-cats a { flex: 0 0 150px; min-height: 92px; padding: 14px; border-radius: 14px; gap: 8px; }
    .hs-cats strong { font-size: 16px; }
    .hs-cats span { font-size: 12.5px; }
    .hs-block-head h2 { font-size: 20px; }
    .hs-block-deal { padding: 12px; border-radius: 16px; }
    /* Hiệu ứng rơi: một nửa số hạt, để ít đè lên chữ trên màn hẹp. */
    .hs-fx span:nth-child(n+9) { display: none; }

    /* Trang sản phẩm: khung gọn hơn và thanh mua dính đáy (chừa khoảng an toàn cho vạch Home của iPhone). */
    .hs-product { padding: 12px; gap: 16px; border-radius: 14px; }
    .hs-info h1 { font-size: 21px; }
    .hs-pricebox strong { font-size: 28px; }
    .hs-buybar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20, 33, 61, .10); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); transition: transform .2s ease; }
    .hs-buybar-hide { transform: translateY(110%); }
    .hs-buybar-price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
    .hs-buybar-price strong { font-size: 19px; color: var(--cta-text, var(--cta)); }
    .hs-buybar-price span { font-size: 12.5px; color: var(--muted); }
    .hs .hs-buybar a.hs-buy { margin: 0 0 0 auto; flex: 0 0 auto; padding: 13px 22px; font-size: 15px; }
    .hs:has([data-buybar]) .hs-footer { padding-bottom: 86px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .hs-buybar { transition: none; } }


/* ---------- Tik.HHAT: bản vẽ đã duyệt ngày 05/12/2026 (đặt cuối tệp để thắng các kiểu cũ của HHAT Shop) ---------- */
.hs-wrap { max-width: 1248px; }
.hs-promo { font-size: 13px; padding: 6px 16px; font-weight: 400; }
.hs-brand { font-size: 24px; font-weight: 800; gap: 8px; }
.hs-brand img { width: 48px; height: 48px; }
.hs-brand-tail { color: var(--cta-text, var(--cta)); }
.hs-search input { height: 44px; border-color: #8A96B2; padding: 0 18px; }
.hs-search button { height: 44px; padding: 0 22px; }
.hs-header-links { gap: 24px; font-weight: 400; }
.hs-nav { border-top: 0; }
.hs-nav-row { gap: 4px 22px; padding-bottom: 10px; font-weight: 400; }
.hs-nav-row a, .hs-nav-more summary { min-height: 44px; padding: 0; display: flex; align-items: center; }
.hs-t1 a.hs-nav-all { padding: 0 16px; border-radius: 10px; gap: 8px; }
.hs .hs-nav-row a.hs-nav-hot { color: var(--cta-text, var(--cta)); font-weight: 600; }

/* Banner: nền theo màu thanh trên cùng của skin, chữ nhỏ phía trên màu vàng nhạt. */
.hs-t1 .hs-hero { background: var(--top); color: var(--top-ink); border-radius: 18px; }
.hs-t1 .hs-hero-text { padding: 40px; gap: 14px; }
.hs-t1 .hs-hero h1 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.26; font-weight: 800; }
.hs-t1 .hs-hero p { font-size: 16px; line-height: 26px; opacity: .88; }
.hs-t1 .hs-hero .hs-kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: #FFD9A0; }
.hs-t1 .hs-hero img { height: 360px; object-position: 30% 40%; }
.hs a.hs-btn-cta { min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center; font-size: 15px; }
.hs a.hs-btn-accent { align-self: flex-start; min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; }
.hs a.hs-btn-accent:hover { filter: brightness(1.08); color: var(--accent-ink); }

.hs-trust { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.hs-trust div { padding: 14px 16px; }
.hs-trust strong { font-size: 15px; }
.hs-trust span { font-size: 13px; line-height: 20px; }
.hs-t1 .hs-cats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.hs-t1 .hs-cats a { border-radius: 14px; padding: 18px 16px; min-height: 84px; gap: 6px; justify-content: flex-start; }
.hs-t1 .hs-cats strong { font-size: 17px; line-height: 24px; }
.hs-t1 .hs-cats span { font-size: 13px; font-weight: 400; color: #3A4560; }

/* Khối sản phẩm nằm trong khung trắng (Bán chạy nhất, Giá vừa giảm). */
.hs-block-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.hs-block-head h2 { font-size: 22px; line-height: 30px; font-weight: 800; }
.hs-block-head a { font-size: 14px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0; }
.hs-card h3 { font-weight: 600; line-height: 20px; min-height: 40px; }
.hs-card h3 a { display: block; }
.hs-card-price strong { font-weight: 800; }
.hs-card-meta { font-size: 12px; }
.hs a.hs-buy { min-height: 44px; padding: 0 10px; display: flex; align-items: center; justify-content: center; }
.hs a.hs-buy-big { min-height: 56px; }

/* Khối mời theo dõi kênh Telegram và khối "Về Tik.HHAT". */
.hs-tele { background: #E3ECFB; border-radius: 18px; overflow: hidden; display: flex; flex-wrap: wrap; }
.hs-tele > div { flex: 999 1 380px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hs-tele h2, .hs-about h2 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 800; }
.hs-tele p { margin: 0; font-size: 15px; line-height: 24px; color: #3A4560; }
.hs-tele img { flex: 1 1 300px; min-width: 0; width: 100%; max-width: 420px; height: 260px; object-fit: cover; object-position: 50% 18%; }
.hs-about { border-radius: 18px; }
.hs-about img { flex: 1 1 300px; max-width: 420px; height: 240px; object-position: 35% 45%; }
.hs-about div { flex: 999 1 380px; min-width: 0; padding: 24px; gap: 10px; }
.hs-about p { font-size: 15px; line-height: 24px; }
.hs-about a { font-size: 14px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; padding: 0; }

/* Trang danh sách. */
.hs-list-head h1 { font-size: 30px; line-height: 40px; font-weight: 800; }
.hs-list-head span { font-size: 14px; }
.hs-list { gap: 24px; }
.hs-filter { flex: 1 1 220px; max-width: 260px; border-radius: 14px; padding: 16px; }
.hs-filter legend { font-size: 14px; }
.hs-filter label { min-height: 36px; gap: 8px; }
.hs-filter input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.hs-filter .hs-btn { height: 44px; border-radius: 999px; font-size: 15px; }
.hs-filter-about { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.hs-filter-about img { display: block; width: 100%; height: 170px; border-radius: 10px; object-fit: cover; object-position: 50% 12%; }
.hs-filter-about strong { font-size: 14px; }
.hs-filter-about span { font-size: 13px; line-height: 20px; color: var(--muted); }
.hs .hs-filter-about a { font-size: 13px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; align-self: flex-start; }
.hs-list-main { flex: 999 1 560px; }
.hs-sort { border-radius: 14px; padding: 8px 12px; font-size: 14px; }
.hs-sort a { min-height: 40px; border-color: #8A96B2; }
.hs-pages a { border-color: #8A96B2; }
.hs .hs-sort a.on, .hs .hs-pages a.on { background: var(--top); color: var(--top-ink); border-color: var(--top); font-weight: 600; }

/* Trang sản phẩm. */
.hs-product { padding: 24px; gap: 32px; }
.hs-gallery { flex: 1 1 380px; max-width: 520px; }
.hs-info { flex: 1 1 380px; }
.hs-info h1 { font-size: 28px; line-height: 38px; font-weight: 800; }
.hs .hs-info-meta a { text-decoration: underline; text-underline-offset: 3px; }
.hs-pricebox { background: #FFF4E4; padding: 16px; }
.hs-pricebox strong { font-size: 34px; line-height: 40px; font-weight: 800; }
.hs-pricebox small { color: #5C4300; line-height: 20px; }
.hs-two { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.hs-two > .hs-panel { flex: 1 1 380px; min-width: 0; }
.hs-panel { padding: 20px; }
.hs-panel h2 { font-weight: 800; line-height: 28px; }
.hs-facts { grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; line-height: 22px; }
.hs-facts dd { font-weight: 600; overflow-wrap: anywhere; }
.hs-history { display: flex; flex-direction: column; gap: 12px; }
.hs-history h2 { margin: 0; }
.hs-history-chart { display: block; width: 100%; height: 140px; border-radius: 12px; background: var(--soft); color: var(--accent); }
.hs-history-empty { min-height: 140px; border-radius: 12px; background: var(--soft); border: 1px dashed #8A96B2; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
.hs-history p { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.hs-history small { font-size: 12.5px; color: var(--muted); }
.hs-howto img { flex: 1 1 260px; max-width: 360px; height: 220px; object-position: 60% 36%; }
.hs-howto h2 { font-size: 20px; line-height: 28px; }
.hs-howto ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 24px; }

/* Chân trang theo màu thanh trên cùng của skin. */
.hs-footer { background: var(--top); color: var(--top-ink); }
.hs-footer-row { gap: 24px 48px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; line-height: 22px; }
.hs-footer-about { flex: 999 1 360px; gap: 8px; }
.hs-footer-about p { opacity: .86; }
.hs-footer-brand { font-weight: 800; gap: 12px; }
.hs-footer-brand img { width: 48px; height: 48px; padding: 2px; }
.hs-footer-col { flex: 0 1 auto; gap: 2px; }
.hs-footer-col strong { font-weight: 700; margin-bottom: 4px; }
.hs .hs-footer a, .hs-footer .hs-footer-link { color: var(--top-ink); opacity: .86; min-height: 44px; padding: 0; display: flex; align-items: center; }
.hs .hs-footer a:hover, .hs-footer .hs-footer-link:hover { opacity: 1; }

@media (max-width: 760px) {
    .hs-filter { max-width: none; }
    .hs-filter-about picture, .hs-tele img, .hs-howto img { display: none; }
    .hs-t1 .hs-hero-text { padding: 26px 22px; }
    .hs-tele > div { padding: 22px; }
    .hs-product { padding: 16px; gap: 20px; }
    .hs-info h1 { font-size: 22px; line-height: 30px; }
    .hs-nav-row { gap: 0 18px; }
    .hs-facts { grid-template-columns: 110px minmax(0, 1fr); }
}

/* Trang quản trị "Kênh Telegram": khung xem trước một bài. */
.ad-tg-post { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; max-width: 560px; }
.ad-tg-post pre { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.5; }
