/* Synce Tool — hệ thống giao diện. Không dùng inline style để tương thích CSP style-src 'self'. */
:root {
  --ink: #0b2545;
  --ink-2: #13315c;
  --accent: #f26b1d;
  --accent-d: #d85a10;
  --bg: #f5f7fa;
  --card: #fff;
  --text: #1c2430;
  --muted: #5b6675;
  --line: #e2e8f0;
  --ok: #138a4b;
  --err: #c0392b;
  --r: 12px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 6px 20px rgba(11, 37, 69, .06);
  --shadow-h: 0 2px 4px rgba(11, 37, 69, .08), 0 14px 34px rgba(11, 37, 69, .13);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--accent-d); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid #ffb27d; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .18s; line-height: 1.2; font-family: inherit; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ffe9db; color: var(--ink); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; }

/* Topbar */
.topbar { background: var(--ink); color: #cfd8e6; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: #ffb27d; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; gap: 6px; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: block; flex: none; }
.logo img { height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav > ul > li { position: relative; }
.nav a, .nav .nav-btn { display: flex; align-items: center; gap: 4px; padding: 10px 14px; font-weight: 600; color: var(--ink); border-radius: 8px; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav a:hover, .nav .nav-btn:hover, .nav a[aria-current="page"] { color: var(--accent-d); background: #fff4ec; }
.drop { position: absolute; left: 0; top: 100%; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-h); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; z-index: 5; }
.drop ul { list-style: none; margin: 0; padding: 0; }
.drop a { font-weight: 500; padding: 9px 12px; }
.drop .sub a { font-size: .85rem; color: var(--muted); padding: 5px 12px 5px 26px; }
.has-drop:hover > .drop, .has-drop:focus-within > .drop, .has-drop.open > .drop { opacity: 1; visibility: visible; transform: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-form { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 4px 0 12px; }
.search-form input { border: 0; background: transparent; padding: 9px 6px; font: inherit; font-size: .9rem; width: 170px; outline: none; }
.search-form button { border: 0; background: var(--ink); color: #fff; border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px; cursor: pointer; color: var(--ink); margin-left: auto; }
.menu-toggle .i { width: 24px; height: 24px; display: block; }

/* Hero */
.hero { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 60%, #1d4377 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; border: 60px solid rgba(242, 107, 29, .16); }
.hero .container { padding-top: 64px; padding-bottom: 56px; position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 780px; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
.hero h1 em { font-style: normal; color: #ffb27d; }
.hero p.lead { color: #cfd8e6; font-size: 1.1rem; max-width: 640px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 640px; }
.hero-stats div { border-left: 3px solid var(--accent); padding-left: 14px; }
.hero-stats strong { display: block; font-size: 1.7rem; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: #cfd8e6; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 560px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--accent-d); margin-bottom: 6px; display: block; }
.link-more { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: .18s; position: relative; overflow: hidden; }
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); border-color: #ffd0b3; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; }
.solution { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.solution .ico { width: 46px; height: 46px; border-radius: 12px; background: #fff0e6; color: var(--accent-d); display: grid; place-items: center; margin-bottom: 6px; }
.solution .ico .i { width: 24px; height: 24px; }
.solution h3 { margin: 0; }
.solution p { margin: 0; color: var(--muted); font-size: .92rem; }
.solution ul { list-style: none; padding: 0; margin: 8px 0 0; font-size: .85rem; position: relative; z-index: 1; }
.solution ul a { color: var(--muted); }
.solution ul a:hover { color: var(--accent-d); }

.pcard { display: flex; flex-direction: column; height: 100%; }
.pcard .thumb { aspect-ratio: 1 / 1; background: #f1f4f8; display: grid; place-items: center; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-d); }
.pcard h3 { font-size: 1rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard h3 a { color: var(--ink); }
.pcard .code { font-size: .8rem; color: var(--muted); }
.pcard .desc { font-size: .85rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; z-index: 1; }
.price-call { font-weight: 800; color: var(--ink); font-size: .9rem; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font: 600 .88rem var(--font); cursor: pointer; }
.tab:hover { border-color: var(--accent); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.brandcard { padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.brandcard .mark { font-weight: 900; font-size: 1.35rem; letter-spacing: .04em; color: var(--ink); }
.brandcard p { margin: 0; color: var(--muted); font-size: .88rem; }
.partners { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.partners a, .partners span { border: 1px solid var(--line); background: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 800; letter-spacing: .05em; color: var(--muted); font-size: .9rem; }
.partners a:hover { color: var(--accent-d); border-color: var(--accent); }

.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.benefit h3 { margin: 0 0 2px; font-size: 1rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .9rem; }

.post-card .thumb { aspect-ratio: 16 / 9; background: #e9eef5; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.post-card h3 { margin: 0; font-size: 1.02rem; }
.post-card h3 a { color: var(--ink); }
.post-card time, .meta { font-size: .8rem; color: var(--muted); }
.post-card p { margin: 0; font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* CTA band + forms */
.cta-band { background: linear-gradient(120deg, var(--ink), var(--ink-2)); color: #fff; border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd8e6; }
.trust { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 600; }
.trust .i { color: #ffb27d; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.field label .req { color: var(--err); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=datetime-local], .field input[type=file], .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #cbd5e1; border-radius: 10px; font: inherit; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 107, 29, .16); }
.field .err { color: #ffb3a8; font-size: .82rem; margin-top: 4px; }
.light .field .err, .page-form .field .err { color: var(--err); }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 16px; }
.alert-ok { background: #e7f6ee; color: #0c5b32; border: 1px solid #b6e2c9; }
.alert-err { background: #fdecea; color: #8e2a20; border: 1px solid #f5c2bb; }
.form-note { font-size: .8rem; color: #b6c3d8; margin: 0; }

/* Page head, breadcrumb */
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding: 22px 0 26px; }
.page-head h1 { margin: 6px 0 6px; }
.page-head p { color: var(--muted); margin: 0; max-width: 760px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: #9aa8ba; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-d); }

/* Listing layout */
.shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding: 32px 0 56px; align-items: start; }
.sidebar { position: sticky; top: 92px; display: grid; gap: 22px; }
.side-box { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; }
.side-box h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); font-size: .92rem; }
.side-box li a:hover, .side-box li a[aria-current="page"] { background: #fff4ec; color: var(--accent-d); font-weight: 700; }
.side-box ul ul { margin-left: 12px; border-left: 2px solid var(--line); }
.side-box ul ul a { font-size: .86rem; color: var(--muted); }
.side-box .count { color: #9aa8ba; font-size: .8rem; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--r); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { background: #fff4ec; color: var(--accent-d); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* Pagination */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 32px 0 0; justify-content: center; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; background: #fff; color: var(--ink); }
.pagination a:hover { border-color: var(--accent); color: var(--accent-d); }
.pagination .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled span { color: #b6c0cd; }

/* Product detail */
.pdp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; padding: 32px 0; align-items: start; }
.pdp-img { border: 1px solid var(--line); border-radius: var(--r); background: #f1f4f8; padding: 12px; position: sticky; top: 92px; }
.pdp-img img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.pdp h1 { margin-bottom: 10px; }
.facts { display: flex; gap: 10px 22px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.facts b { color: var(--ink); }
.price-box { background: #fff4ec; border: 1px solid #ffd7bd; border-radius: var(--r); padding: 18px; margin: 18px 0; }
.price-box strong { font-size: 1.15rem; color: var(--ink); display: block; margin-bottom: 4px; }
.price-box .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.assure { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .92rem; }
.assure li { display: flex; gap: 8px; align-items: center; }
.assure .i { color: var(--ok); }
.specs { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; background: var(--bg); font-weight: 700; color: var(--ink); }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 10px; margin: 1em auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1em 0; padding: .4em 1em; background: var(--bg); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 32px 0 56px; align-items: start; }
.article .hero-img { border-radius: var(--r); margin-bottom: 24px; width: 100%; }
.latest { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.latest a { font-weight: 600; color: var(--ink); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 36px 0 56px; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ico { width: 40px; height: 40px; border-radius: 10px; background: #fff0e6; color: var(--accent-d); display: grid; place-items: center; flex: none; }
.page-form { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); background: #fff; }

/* Footer */
.footer { background: #08203d; color: #b6c3d8; margin-top: 0; font-size: .92rem; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 36px; }
.footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer a { color: #b6c3d8; }
.footer a:hover { color: #ffb27d; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .contact li { display: flex; gap: 10px; }
.footer .contact .i { margin-top: 4px; color: var(--accent); }
.footer .social { display: flex; gap: 10px; margin-top: 16px; }
.footer .social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.footer .social a:hover { background: var(--accent); color: #fff; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Floating contact */
.float { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 10px; }
.float a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); font-weight: 800; font-size: .8rem; transition: .15s; }
.float a:hover { transform: scale(1.08); color: #fff; }
.float .f-phone { background: var(--accent); }
.float .f-zalo { background: #0068ff; }
.float .f-mess { background: #0084ff; }
.float .f-map { background: #1a9d5b; }
.float .i { width: 24px; height: 24px; }

/* Error pages */
.err-page { text-align: center; padding: 90px 20px; }
.err-page .code { font-size: 6rem; font-weight: 900; color: var(--accent); line-height: 1; }

/* Admin */
.adm { background: #f3f5f9; min-height: 100vh; }
.adm-bar { background: var(--ink); color: #fff; }
.adm-bar .container { display: flex; gap: 8px; align-items: center; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.adm-bar a, .adm-bar button { color: #cfd8e6; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .9rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.adm-bar a:hover, .adm-bar a.on { background: rgba(255, 255, 255, .12); color: #fff; }
.adm-bar .sp { margin-left: auto; }
.adm main { padding: 28px 0 60px; }
.adm .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.adm table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.adm .t th, .adm .t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.adm .t th { background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.adm .table-wrap { overflow-x: auto; }
.adm .stat { padding: 18px; }
.adm .stat strong { display: block; font-size: 2rem; color: var(--ink); }
.adm .actions { display: flex; gap: 8px; }
.adm .actions form { margin: 0; }
.adm .fgrid { display: grid; gap: 18px; max-width: 860px; }
.adm .field .err { color: var(--err); }
.adm .check { display: flex; gap: 10px; align-items: center; }
.adm .check input { width: 20px; height: 20px; }
.adm .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: #e8edf5; color: var(--ink); }
.badge.on { background: #e7f6ee; color: #0c5b32; }
.login-box { max-width: 420px; margin: 8vh auto; }

/* Responsive */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-form input { width: 120px; }
}
@media (max-width: 960px) {
  .topbar .hide-sm { display: none; }
  .menu-toggle { display: block; }
  .header-actions .search-form, .header-actions .btn { display: none; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; transform: translateX(100%); transition: transform .22s; z-index: 150; padding: 70px 14px 24px; overflow-y: auto; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); margin: 0; }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav .nav-btn { width: 100%; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; min-width: 0; display: none; }
  .has-drop.open > .drop { display: block; }
  .has-drop:hover > .drop { display: none; }
  .has-drop.open:hover > .drop { display: block; }
  .nav-close { position: absolute; top: 14px; right: 14px; }
  .nav-search { display: block !important; margin: 12px 0; }
  .scrim { position: fixed; inset: 0; background: rgba(8, 32, 61, .55); z-index: 140; opacity: 0; visibility: hidden; transition: .2s; }
  .scrim.open { opacity: 1; visibility: visible; }
  .shop { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
  .sidebar.open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .pdp, .article, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .pdp-img { position: static; }
  .cta-band { padding: 26px; gap: 24px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 961px) {
  .nav-close, .nav-search, .scrim { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .g2.keep1, .g3.keep1 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero-stats { gap: 10px; }
  .hero-stats strong { font-size: 1.3rem; }
  .footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .float { right: 10px; bottom: 10px; }
  .float a { width: 46px; height: 46px; }
  .pcard .body { padding: 10px 12px 12px; }
  .pcard .foot .btn { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .header, .float, .footer, .sidebar { display: none; }
}

.page-form .form-note { color: var(--muted); }
.page-form .alert-ok { margin-bottom: 0; }

.cta-band .field label { color: #fff; }
.cta-band .form-note { color: #b6c3d8; }
.cta-band .field input::placeholder, .cta-band .field textarea::placeholder { color: #94a3b8; }
.brand-hero { display: flex; gap: 16px; align-items: center; }
.meta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

.adm-h2 { margin-top: 28px; }
.adm .thumb-sm { width: 120px; height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #f1f4f8; margin-bottom: 8px; }
.adm .field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.adm .actions select { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.adm .search-form input { width: 200px; }

/* Sửa lỗi hiển thị phát hiện khi kiểm tra */
body { overflow-x: hidden; }
.nav a, .nav .nav-btn, .btn { white-space: nowrap; }
.header .container { gap: 16px; }
@media (min-width: 961px) and (max-width: 1240px) {
  .header-actions .search-form { display: none; }
}
@media (max-width: 960px) {
  .nav { visibility: hidden; transition: transform .22s, visibility .22s; }
  .nav.open { visibility: visible; }
}
@media (max-width: 640px) {
  .hero-stats span { font-size: .72rem; }
  .hero-stats strong { font-size: 1.15rem; }
  .hero-stats div { padding-left: 8px; }
  .btn { white-space: normal; }
}

/* =====================================================================
   GIAO DIỆN THEO vattucokhicnc.vn (Oswald, đỏ #dd3333, xanh #0000ff)
   ===================================================================== */
:root {
  --ink: #0b3bbf;
  --ink-2: #0b3bbf;
  --accent: #dd3333;
  --accent-d: #b82222;
  --blue: #0000ff;
  --bg: #f4f4f4;
  --text: #606060;
  --head: #353535;
  --font: Oswald, "Arial Narrow", Arial, sans-serif;
  --r: 6px;
}
body { font-size: 15px; font-weight: 400; color: var(--text); background: #fff; }
h1, h2, h3, h4 { color: var(--head); letter-spacing: 0; font-weight: 600; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
.btn { border-radius: 3px; text-transform: uppercase; letter-spacing: .02em; }
.btn-primary { background: var(--accent); }
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost { color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); }
.eyebrow { color: var(--accent); }
.field input, .field select, .field textarea { font-family: inherit; }

/* Topbar */
.topbar { background: #efefef; color: #606060; font-size: .78rem; text-transform: uppercase; }
.topbar a { color: #606060; }
.topbar a:hover { color: var(--accent); }
.topbar .container { padding-top: 5px; padding-bottom: 5px; }
.topbar ul { gap: 18px; }
.social-top a { color: #8a8a8a; }
.social-top .i { width: 1.05em; height: 1.05em; }

/* Masthead: logo + 4 lợi ích */
.masthead { background: #fff; }
.mast { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.mast .logo img { width: 260px; height: auto; }
.benefits { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 0 auto; padding: 0; flex: 1; max-width: 640px; }
.benefits li { display: flex; align-items: center; gap: 10px; font-size: .78rem; text-transform: uppercase; color: #606060; line-height: 1.25; }
.benefits img { width: 40px; height: 40px; object-fit: contain; flex: none; }

/* Hàng điều hướng */
.navrow { background: #fff; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.navbar { display: flex; align-items: center; gap: 22px; min-height: 52px; }
.vmenu { position: relative; width: 238px; flex: none; align-self: stretch; display: flex; }
.vmenu-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--accent); color: #f1f1f1; border: 0; font: 600 .95rem var(--font); text-transform: uppercase; padding: 0 16px; cursor: pointer; letter-spacing: .02em; }
.vmenu-btn .i { width: 20px; height: 20px; }
.vmenu-btn .vm-caret { margin-left: auto; width: 16px; height: 16px; }
.vmenu-panel { position: absolute; left: 0; top: 100%; width: 100%; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); z-index: 120; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.vmenu:hover .vmenu-panel, .vmenu.open .vmenu-panel, .vmenu:focus-within .vmenu-panel { opacity: 1; visibility: visible; transform: none; }
.vmenu-home .vmenu-panel { display: none; }
.vmenu-list { list-style: none; margin: 0; padding: 0; }
.vmenu-list > li { position: relative; border-bottom: 1px solid #ececec; }
.vmenu-list > li:last-child { border-bottom: 0; }
.vmenu-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #686868; font-size: .92rem; }
.vmenu-list a:hover { color: var(--accent); background: #fafafa; }
.vmenu-list img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.vm-dot { width: 22px; flex: none; }
.vmenu-list .vm-chev { margin-left: auto; width: 14px; height: 14px; color: #aaa; }
.fly { position: absolute; left: 100%; top: 0; min-width: 520px; min-height: 100%; background: #fff; box-shadow: 8px 8px 24px rgba(0, 0, 0, .16); display: none; padding: 16px 20px; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); z-index: 130; }
.has-fly:hover > .fly, .has-fly:focus-within > .fly { display: grid; }
.fly-col a { padding: 4px 0; font-size: .86rem; color: #777; }
.fly-col a.fly-h { font-weight: 600; color: var(--head); font-size: .92rem; padding-bottom: 6px; }

.nav { margin: 0; }
.nav > ul { gap: 0; }
.nav a { font-weight: 700; text-transform: uppercase; color: var(--ink); font-size: .95rem; padding: 14px 16px; border-radius: 0; letter-spacing: .01em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); background: transparent; }
.mobile-cats { display: none; }
.top-search { margin-left: auto; display: flex; border: 1px solid #ccc; background: #fff; padding: 0; border-radius: 3px; overflow: hidden; }
.top-search input { width: 190px; padding: 9px 12px; font-family: inherit; }
.top-search button { background: var(--blue); border-radius: 0; padding: 0 16px; }
.menu-toggle { display: none; }

/* Trang chủ: menu dọc + banner */
.home-top { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 0; margin-top: 0; align-items: stretch; }
.vmenu-static { background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); position: relative; z-index: 60; border-top: 0; }
.banner { display: block; background: #f1f1f1; }
.banner img { width: 100%; height: 100%; object-fit: cover; min-height: 250px; }

/* Khối sản phẩm */
.block { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 14px 20px 22px; margin: 34px 0; }
.block-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ececec; margin-bottom: 18px; }
.block-head h2 { margin: 0; font-size: 1.25rem; text-transform: uppercase; color: var(--ink); font-weight: 700; display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
.block-head h2 .i { width: 18px; height: 18px; }
.block-head a { font-weight: 700; color: var(--head); display: inline-flex; align-items: center; gap: 2px; }
.pgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 12px; }
.pgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc { text-align: center; position: relative; }
.pc-img { display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.pc:hover .pc-img img { transform: scale(1.06); }
.pc-body { padding: 6px 4px 0; }
.pc-cat { display: block; font-size: .72rem; text-transform: uppercase; color: #8d8d8d; letter-spacing: .02em; margin-bottom: 8px; }
.pc-name { font-size: .93rem; font-weight: 500; margin: 0 0 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pc-name a { color: #353535; }
.pc-name a:hover { color: var(--accent); }
.pc-price { margin: 0; font-weight: 700; color: var(--head); font-size: .88rem; }
.pc-rate { margin: 2px 0 0; font-size: .8rem; color: #555; }
.pc-rate > span:first-child { color: #ee9d3c; font-weight: 600; }
.star { color: #ee9d3c; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card2 .pimg { display: block; aspect-ratio: 2 / 1; overflow: hidden; background: #eee; }
.post-card2 .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card2:hover .pimg img { transform: scale(1.05); }
.post-card2 .pbody { text-align: center; padding: 12px 6px 0; }
.post-card2 h3 { font-size: 1rem; margin: 0 0 4px; line-height: 1.35; }
.post-card2 h3 a { color: var(--head); }
.post-card2 h3 a:hover { color: var(--accent); }
.post-card2 time { font-size: .78rem; color: #999; }
.post-card2 p { font-size: .85rem; color: #777; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.brandstrip { padding: 24px 20px; }
.brandstrip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 30px; justify-content: center; align-items: center; }
.brandstrip img { height: 64px; width: auto; max-width: 170px; object-fit: contain; filter: none; }

/* Footer kiểu site cũ */
.footer2 { border-top: 5px solid var(--accent); margin-top: 20px; background: #fff; color: #606060; }
.fcols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 34px; padding-bottom: 34px; }
.flogo { width: 220px; height: auto; margin-bottom: 14px; }
.footer2 h2 { font-size: 1.1rem; text-transform: uppercase; color: var(--head); border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 12px; }
.footer2 a { color: #404040; }
.footer2 a:hover { color: var(--accent); }
.fcontact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fcontact li { display: flex; gap: 10px; align-items: flex-start; }
.fcontact .i { color: var(--accent); margin-top: 4px; }
.flinks { list-style: none; margin: 0; padding: 0; }
.flinks li { border-bottom: 1px solid #e5e5e5; }
.flinks a { display: block; padding: 9px 0 9px 16px; position: relative; }
.flinks a::before { content: "›"; position: absolute; left: 2px; color: #999; }
.fbar { background: var(--blue); color: rgba(255, 255, 255, .75); font-size: .85rem; padding: 18px 0 18px; }
.fbar strong { color: #fff; }

/* Nút liên hệ nổi */
.float { display: none; }
.float2 { position: fixed; right: 14px; bottom: 14px; z-index: 90; display: flex; align-items: center; gap: 10px; }
.fpill { display: flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border-radius: 40px; padding: 6px 18px 6px 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); animation: ring 2.4s infinite; }
.fpill:hover { color: #fff; background: var(--accent-d); }
.fpill .fi { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; }
.fpill strong { font-size: 1.05rem; letter-spacing: .02em; }
.fcircle { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; border: 4px solid #d2d2d2; font: 600 .78rem/1.1 var(--font); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.fmenu { position: absolute; right: 0; bottom: 70px; background: #fff; border-radius: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); padding: 6px; min-width: 170px; display: grid; }
.fmenu a { display: flex; gap: 8px; align-items: center; padding: 10px 12px; color: #353535; font-weight: 500; border-radius: 6px; }
.fmenu a:hover { background: #f4f4f4; color: var(--accent); }
@keyframes ring { 0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,.3), 0 0 0 0 rgba(221,51,51,.45); } 50% { box-shadow: 0 4px 14px rgba(0,0,0,.3), 0 0 0 10px rgba(221,51,51,0); } }

/* Các trang trong: dùng màu mới */
.page-head { background: #f4f4f4; }
.page-head h1 { font-size: 1.7rem; text-transform: uppercase; color: var(--ink); }
.crumbs a:hover { color: var(--accent); }
.side-box h2 { color: var(--ink); }
.side-box li a:hover, .side-box li a[aria-current="page"] { background: #fff1f1; color: var(--accent); }
.cta-band { background: linear-gradient(120deg, #0b3bbf, #0000ff); border-radius: 8px; }
.cta-band .eyebrow { color: #ffd0d0; }
.tag { color: #8d8d8d; }
.price-box { background: #fff7f7; border-color: #f4caca; }
.pdp-img { background: #fff; }
.pagination .active span { background: var(--accent); border-color: var(--accent); }
.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.empty { border-radius: 6px; }
.brandcard .mark { color: var(--ink); }
.card { border-radius: 6px; box-shadow: none; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: none; border-color: #ddd; }
.prose a { color: var(--ink); }

@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefits { display: none; }
}
@media (max-width: 960px) {
  .navbar { gap: 10px; }
  .vmenu { display: none; }
  .home-top { grid-template-columns: 1fr; }
  .vmenu-static { display: none; }
  .banner img { min-height: 0; height: auto; }
  .mast { justify-content: space-between; }
  .mast .logo img { width: 190px; }
  .menu-toggle { display: block; margin-left: auto; }
  .navrow .container { display: block; padding: 0; }
  .top-search { margin: 0; width: 100%; border-width: 1px 0 0; border-radius: 0; }
  .top-search input { width: 100%; flex: 1; }
  .nav { z-index: 150; }
  .nav a, .nav .nav-btn { font-size: 1rem; }
  .mobile-cats { display: block; padding: 16px 14px; }
  .mobile-cats ul { list-style: none; margin: 8px 0 0; padding: 0; }
  .mobile-cats a { font-weight: 500; text-transform: none; padding: 10px 0; }
  .nav-search { display: flex !important; }
  .fcols { grid-template-columns: 1fr; gap: 26px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .navrow { position: static; }
}
@media (max-width: 640px) {
  .pgrid, .pgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .block { padding: 10px 12px 16px; margin: 20px 0; }
  .block-head h2 { font-size: 1.05rem; }
  .news-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .social-top { display: none; }
  .fpill strong { display: none; }
  .fpill { padding: 6px; }
}

.top-search { align-items: stretch; }
.top-search button { display: grid; place-items: center; }
