/* 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; }
.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; }
.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; }
.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%; }
.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-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-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; aspect-ratio: 1 / 1; background: var(--soft); border-radius: 14px; overflow: hidden; }
.hs-gallery-main img, .hs-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hs-gallery-thumbs a { aspect-ratio: 1 / 1; background: var(--soft); border-radius: 10px; overflow: hidden; display: block; }
.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 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); }

.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; }
.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; }
.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-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-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; }
.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%); }
@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; }
.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(320px, 1fr)); gap: 14px; }
.hs-coupon { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--cta); border-radius: 14px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.hs-coupon-main { flex: 999 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hs-coupon-main strong { font-size: 16px; line-height: 1.3; }
.hs-coupon-main span { font-size: 14px; color: var(--muted); }
.hs-coupon-main small { font-size: 13px; color: var(--muted); }
.hs-coupon-side { flex: 1 1 190px; display: flex; flex-direction: column; gap: 8px; }
.hs-coupon-code { min-height: 44px; border: 1px dashed var(--ink); border-radius: 10px; background: #F7F9FC; color: var(--ink); 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: var(--ink); overflow-wrap: anywhere; text-align: left; }
.hs-coupon-code span { font-size: 13px; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.hs-coupon .hs-buy { margin-top: 0; }
.hs-home-coupons { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.hs-home-coupons .hs-coupon { background: #FBFCFE; }
.hs-t2 .hs-home-coupons, .hs-t2 .hs-coupon { border-radius: 14px; }
.hs-t3 .hs-home-coupons { border: 0; border-radius: 10px; padding: 18px; }
.hs-t3 .hs-coupon, .hs-t3 .hs-coupon-code { border-radius: 8px; }
.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; }
