/* =========================================================
   ZTC – Thiết bị vệ sinh | ztc.vn
   Font: Verdana (font hệ thống, không cần tải) – dễ đọc
   ========================================================= */

:root {
    --font: Verdana, Geneva, Tahoma, sans-serif;

    --navy: #0e3552;
    --navy-2: #123f60;
    --navy-deep: #0b2638;
    --teal: #0ea5b7;
    --teal-dark: #0a8c9c;
    --teal-soft: #e4f5f8;
    --red: #e53935;

    --text: #1d2d38;
    --muted: #66747e;
    --line: #e2eaee;
    --bg: #f1f6f8;
    --card: #ffffff;

    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 2px 10px rgba(14, 53, 82, .06);
    --shadow-hover: 0 10px 26px rgba(14, 53, 82, .13);

    --container: 1200px;
    --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 12px; top: -40px; z-index: 100;
    background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.ic { width: 18px; height: 18px; flex: none; }

/* ---------- Nút ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    line-height: 1.2;
    transition: background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(14, 165, 183, .3); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--sm { padding: 8px 16px; font-size: 12px; }

.eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: .18em; font-weight: 700; color: var(--teal);
}
.eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: #d9eef3; }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar__contact { display: flex; gap: 22px; align-items: center; }
.topbar__contact li, .topbar__contact a { display: flex; align-items: center; gap: 6px; }
.topbar__contact .ic { width: 14px; height: 14px; color: var(--navy); }
.topbar__contact a:hover { color: var(--teal); }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__links a { padding: 0 8px; border-left: 1px solid var(--line); }
.topbar__links a:first-child { border-left: 0; }
.topbar__links a:hover { color: var(--teal); }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a {
    width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--navy); color: #fff;
}
.topbar__social a:hover { background: var(--teal); }
.topbar__social .ic { width: 12px; height: 12px; }
.topbar__lang { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--navy); }
.topbar__lang .ic { width: 12px; height: 12px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 18px rgba(14, 53, 82, .1); }

.header__main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding-top: 12px;
    padding-bottom: 6px;
}
.header__burger { display: none; color: var(--navy); }
.header__burger .ic { width: 26px; height: 26px; }

.logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--navy); }
.logo__mark {
    font-size: 40px; font-weight: 700; letter-spacing: -.02em;
    font-family: "Arial Black", Verdana, sans-serif;
    color: var(--navy);
}
.logo__tag { margin-top: 4px; font-size: 7.5px; letter-spacing: .12em; color: var(--navy); white-space: nowrap; }
.logo--light .logo__mark, .logo--light .logo__tag { color: #fff; }

.search {
    display: flex; width: 100%; max-width: 460px; justify-self: center;
    background: #f1f4f6; border: 1px solid var(--line);
    border-radius: 8px; overflow: hidden;
}
.search input {
    flex: 1; min-width: 0; border: 0; background: transparent;
    padding: 9px 14px; font-size: 12px; outline: none;
}
.search input::placeholder { color: #8a979f; }
.search button {
    width: 42px; background: var(--teal); color: #fff;
    display: grid; place-items: center;
    transition: background .2s;
}
.search button:hover { background: var(--teal-dark); }

.header__tools { display: flex; align-items: center; gap: 22px; }
.tool { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 12px; }
.tool:hover { color: var(--teal); }
.tool .ic { width: 24px; height: 24px; }
.tool b { display: block; font-size: 12px; }
.tool small { display: block; font-size: 10px; color: var(--muted); }
.tool__icon { position: relative; display: block; }
.tool__count[data-zero] { display: none; }
.tool__count {
    position: absolute; top: -6px; right: -8px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; background: var(--red); color: #fff;
    font-size: 9px; font-style: normal; font-weight: 700;
    display: grid; place-items: center;
}

.header__nav { display: flex; align-items: center; justify-content: center; position: relative; min-height: 40px; }
.header__quote { position: absolute; right: var(--gutter); }

.nav > ul { display: flex; gap: 4px; }
.nav__head { display: none; }
.nav__item { position: relative; }
.nav__item > a {
    display: flex; align-items: center; gap: 4px;
    padding: 10px 16px;
    font-size: 12.5px; color: var(--navy);
    position: relative;
}
.nav__item > a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
    height: 2px; background: var(--teal); border-radius: 2px;
    transform: scaleX(0); transition: transform .2s;
}
.nav__item:hover > a, .nav__item.is-active > a { color: var(--teal); }
.nav__item:hover > a::after, .nav__item.is-active > a::after { transform: scaleX(1); }
.nav__item.is-active > a { font-weight: 700; }
.nav__caret { width: 12px; height: 12px; }

.nav__sub {
    position: absolute; top: 100%; left: 6px; min-width: 210px;
    background: #fff; border-radius: 10px; padding: 8px;
    box-shadow: var(--shadow-hover);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: .2s; z-index: 5;
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 12.5px; }
.nav__sub a:hover { background: var(--teal-soft); color: var(--teal-dark); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--navy-deep);
    color: #fff;
}
.hero__track, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg, .hero__bg > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; }
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 34, 48, .75) 0%, rgba(11, 34, 48, .35) 45%, rgba(11, 34, 48, 0) 65%);
}
.hero__content { position: relative; z-index: 2; padding-top: 44px; }
.hero__title {
    margin: 12px 0 14px;
    font-size: 38px; line-height: 1.18; font-weight: 400; letter-spacing: .02em;
}
.hero__sub { font-size: 12.5px; color: #dbe7ed; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__sub span { opacity: .6; }
.hero__stats { display: flex; gap: 34px; margin: 26px 0 28px; }
.hero__stats li { display: flex; gap: 10px; align-items: flex-start; }
.hero__stats .ic { width: 30px; height: 30px; color: var(--teal); stroke-width: 1.4; }
.hero__stats strong { display: block; font-size: 22px; line-height: 1; color: var(--teal); font-weight: 400; }
.hero__stats b { display: block; font-size: 10px; letter-spacing: .04em; margin-top: 4px; }
.hero__stats small { display: block; font-size: 9.5px; color: #b9cad4; }
.hero__slide:not(:first-child) .hero__content { padding-top: 70px; }
.hero__slide:not(:first-child) .btn { margin-top: 30px; }

.hero__aside {
    position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3;
    display: flex; justify-content: flex-end; align-items: flex-end; gap: 30px;
    pointer-events: none;
}
.hero__tagline {
    position: relative; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); font-size: 9px; letter-spacing: .14em; line-height: 1.4; color: #eaf3f6;
    padding-left: 50px;
}
.hero__tagline::before { content: ""; position: absolute; left: 0; top: 50%; width: 38px; height: 1px; background: #eaf3f6; }
.hero__controls { display: flex; gap: 10px; pointer-events: auto; }
.hero__arrow {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .7); color: #fff;
    display: grid; place-items: center; transition: .2s;
    background: rgba(11, 38, 56, .2);
}
.hero__arrow--next, .hero__arrow:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* =========================================================
   KHỐI NỘI DUNG
   ========================================================= */
.page {
    max-width: calc(var(--container) - 40px);
    margin: 0 auto;
    padding: 0 0 30px;
    position: relative;
}
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px 22px 22px;
    margin-top: 18px;
}
#danh-muc { margin-top: 12px; }
.block { margin-top: 20px; }

.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.section-title {
    display: flex; align-items: center; gap: 14px;
    font-size: 19px; font-weight: 700; color: var(--navy);
}
.section-title::after { content: ""; width: 40px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-title--plain::after { display: none; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--teal-dark); }
.link-more .ic { width: 14px; height: 14px; transition: transform .2s; }
.link-more:hover .ic { transform: translateX(3px); }

/* ---------- Danh mục ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.cat {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    height: 100%;
    padding: 8px 6px 10px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat:hover { border-color: var(--teal); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cat__img { width: 100%; height: 62px; display: grid; place-items: center; }
.cat__img > * { height: 100%; width: auto; object-fit: contain; }
.cat__name { font-size: 11.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }

/* ---------- Tabs lọc ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: #f3f7f9; border-radius: 999px; }
.tab {
    padding: 6px 16px; border-radius: 999px;
    font-size: 11.5px; color: var(--navy); transition: .2s;
}
.tab:hover { color: var(--teal); }
.tab.is-active { background: var(--teal); color: #fff; font-weight: 700; }

/* ---------- Thẻ sản phẩm ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.product {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.product:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: #cfe4ea; }
.product.is-hidden { display: none; }
.product__media {
    display: grid; place-items: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #f7fafb, #eef3f5);
    padding: 10px;
}
.product__media > * { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.product:hover .product__media > * { transform: scale(1.05); }

.badge {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 9px; border-radius: 4px;
    font-size: 10px; font-weight: 700; color: #fff;
    background: var(--teal);
}
.badge--sale { background: #ef5350; }
.badge--hot { background: var(--teal); }
.badge--new { background: #16a7a0; }

.product__wish {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; color: var(--navy);
    background: rgba(255, 255, 255, .85);
    transition: .2s;
}
.product__wish .ic { width: 16px; height: 16px; }
.product__wish:hover { color: var(--red); }
.product__wish[aria-pressed="true"] { color: var(--red); }
.product__wish[aria-pressed="true"] .ic { fill: currentColor; }

.product__body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.product__name { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.product__name a:hover { color: var(--teal); }
.product__desc { margin-top: 2px; font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.product__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.product__price strong { font-size: 14px; color: var(--teal-dark); }
.product__price strong.is-sale { color: var(--red); }
.product__price del { font-size: 10.5px; color: #97a3aa; }
.product__cart {
    width: 30px; height: 30px; border-radius: 8px; flex: none;
    display: grid; place-items: center; color: var(--teal-dark);
    transition: .2s;
}
.product__cart:hover { background: var(--teal); color: #fff; }
.product__cart.is-added { background: var(--teal); color: #fff; }

.product-grid--compact .product__media { aspect-ratio: 16 / 9; }

.empty-note { padding: 30px 0; text-align: center; color: var(--muted); }

/* ---------- Cam kết ---------- */
.benefits {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin-top: 16px;
}
.benefits li {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    padding: 14px 12px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fbfdfd;
}
.benefits .ic { width: 34px; height: 34px; color: var(--teal); stroke-width: 1.4; }
.benefits strong { display: block; font-size: 12px; color: var(--navy); }
.benefits small { display: block; font-size: 11px; color: var(--muted); }

/* ---------- Banner đôi ---------- */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.promo__item {
    position: relative; display: block;
    height: 150px; border-radius: var(--radius);
    overflow: hidden; color: #fff;
    background: var(--navy);
}
.promo__media, .promo__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__media > * { transition: transform .5s; }
.promo__item:hover .promo__media > * { transform: scale(1.04); }
.promo__item:first-child .promo__media { right: 40%; width: 60%; }
.promo__item:last-child .promo__media { right: 45%; width: 55%; }
.promo__item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14, 53, 82, 0) 35%, rgba(14, 53, 82, .95) 55%, var(--navy-2) 100%);
}
.promo__text {
    position: absolute; z-index: 2; top: 0; bottom: 0; right: 24px; left: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
}
.promo__text strong { font-size: 16px; line-height: 1.3; font-weight: 400; letter-spacing: .02em; }
.promo__text .eyebrow { font-size: 9.5px; }
.promo__text .eyebrow::after { display: none; }
.promo__text .btn { margin-top: 4px; }

/* ---------- Dự án ---------- */
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.project { display: block; }
.project__img {
    display: block; position: relative;
    aspect-ratio: 16 / 7.5; border-radius: 8px; overflow: hidden;
    background: #dde6ea; margin-bottom: 8px;
}
.project__img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .project__img > * { transform: scale(1.06); }
.project strong { display: block; font-size: 12px; color: var(--navy); }
.project:hover strong { color: var(--teal); }
.project small { display: block; font-size: 11px; color: var(--muted); }

/* ---------- Tin tức ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news { display: grid; grid-template-columns: 44% 1fr; gap: 14px; align-items: start; }
.news__img { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #dde6ea; }
.news__img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news:hover .news__img > * { transform: scale(1.06); }
.news strong { display: block; font-size: 12px; color: var(--navy); line-height: 1.45; }
.news:hover strong { color: var(--teal); }
.news time { display: block; margin-top: 8px; font-size: 10.5px; color: #97a3aa; }

/* ---------- Đối tác ---------- */
.partners { display: flex; align-items: center; gap: 30px; margin-top: 22px; }
.partners .section-title { flex: none; font-size: 17px; }
.partners__list { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.partners__list li {
    height: 46px; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 6px 10px;
    filter: grayscale(.2); transition: .2s;
}
.partners__list li:hover { filter: none; box-shadow: var(--shadow); }
.partners__list img { max-height: 30px; width: auto; object-fit: contain; }
.partners__list span { font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-deep); color: #c6d4dc; font-size: 12px; margin-top: 10px; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.1fr 1fr 1.4fr;
    gap: 30px;
    padding-top: 30px; padding-bottom: 24px;
}
.footer__brand p { margin: 12px 0 16px; max-width: 290px; line-height: 1.6; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: .2s;
}
.footer__social a:hover { background: var(--teal); border-color: var(--teal); }
.footer__social .ic { width: 15px; height: 15px; }
.footer h3 { font-size: 13px; color: #fff; margin-bottom: 12px; }
.footer__col li + li { margin-top: 6px; }
.footer__col a:hover { color: var(--teal); }
.footer__contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer__contact .ic { width: 15px; height: 15px; margin-top: 2px; color: #fff; }
.footer__contact .btn { margin-top: 14px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 11px; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.footer__policy a + a { margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .25); }
.footer__policy a:hover { color: var(--teal); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
    .page { padding-left: var(--gutter); padding-right: var(--gutter); }
    .header__main { gap: 24px; }
    .nav__item > a { padding: 10px 11px; }
    .nav__item > a::after { left: 11px; right: 11px; }
}

@media (max-width: 1024px) {
    .hide-md { display: none !important; }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; gap: 14px; }
    .news { grid-template-columns: 200px 1fr; }
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .partners { flex-direction: column; align-items: flex-start; gap: 14px; }
    .partners__list { width: 100%; grid-template-columns: repeat(4, 1fr); }
    .footer__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__brand { grid-column: 1 / -1; }
    .tool--account span { display: none; }

    /* Menu dạng ngăn kéo */
    .header__burger { display: block; }
    .header__main { grid-template-columns: auto auto 1fr auto; }
    .header__nav { min-height: 0; }
    .header__quote { display: none; }
    .nav {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
        width: min(320px, 86vw);
        background: #fff; overflow-y: auto;
        transform: translateX(-100%); transition: transform .3s ease;
        box-shadow: 10px 0 30px rgba(0, 0, 0, .15);
    }
    .nav.is-open { transform: none; }
    .nav__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
    .nav__head .logo__mark { font-size: 28px; }
    .nav__close .ic { width: 24px; height: 24px; }
    .nav > ul { flex-direction: column; gap: 0; padding: 8px 0; }
    .nav__item > a { justify-content: space-between; padding: 13px 20px; font-size: 13.5px; border-bottom: 1px solid #f0f4f6; }
    .nav__item > a::after { display: none; }
    .nav__sub {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; padding: 0 0 6px 16px; display: none; min-width: 0;
    }
    .nav__item.is-expanded .nav__sub { display: block; }
    .nav__item.is-expanded .nav__caret { transform: rotate(180deg); }
    .nav-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(8, 25, 36, .45); }
}

@media (max-width: 720px) {
    body { font-size: 13.5px; }
    .hide-sm { display: none !important; }
    .topbar__links, .topbar__social { display: none; }
    .topbar__contact { gap: 14px; }

    .header__main { grid-template-columns: auto 1fr auto; gap: 12px; row-gap: 10px; padding-bottom: 10px; }
    .logo { justify-self: start; }
    .logo__mark { font-size: 30px; }
    .logo__tag { font-size: 6px; }
    .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
    .header__tools { gap: 16px; }

    .hero { height: 460px; }
    .hero__content { padding-top: 30px; }
    .hero__title { font-size: 27px; }
    .hero__stats { flex-wrap: wrap; gap: 16px 22px; margin: 20px 0 22px; }
    .hero__stats small { display: none; }
    .hero__bg::after { background: linear-gradient(180deg, rgba(11, 34, 48, .8) 0%, rgba(11, 34, 48, .55) 70%, rgba(11, 34, 48, .3) 100%); }
    .hero__tagline { display: none; }

    .panel { padding: 16px 14px; border-radius: 12px; }
    .section-title { font-size: 16px; }
    .section-title::after { width: 26px; }
    .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { white-space: nowrap; }

    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .cat { padding: 6px 4px 8px; }
    .cat__img { height: 46px; }
    .cat__name { font-size: 10px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product__price strong { font-size: 13px; }

    .benefits { grid-template-columns: 1fr 1fr; gap: 8px; }
    .benefits li { flex-direction: column; text-align: center; gap: 6px; padding: 12px 8px; }

    .promo { grid-template-columns: 1fr; }
    .promo__item { height: 140px; }
    .promo__item .promo__media { right: 50% !important; width: 50% !important; }
    .promo__item::after { background: linear-gradient(90deg, rgba(14, 53, 82, 0) 20%, rgba(14, 53, 82, .95) 45%, var(--navy-2) 100%); }
    .promo__text { left: 42%; right: 16px; }
    .promo__text strong { font-size: 13.5px; }

    .project-grid { gap: 12px; }
    .news { grid-template-columns: 130px 1fr; gap: 12px; }

    .partners__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
    .partners__list li { flex: 1 1 calc(33.333% - 8px); max-width: calc(33.333% - 6px); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
    .footer__contact { grid-column: 1 / -1; }
    .footer__bottom-inner { flex-direction: column; gap: 6px; text-align: center; align-items: center; }
}

@media (max-width: 380px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .tool--cart .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   TRANG DANH MỤC & CHI TIẾT SẢN PHẨM
   ========================================================= */

.btn--ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn--outline { background: #fff; color: var(--teal-dark); border: 1.5px solid var(--teal); }
.btn--outline:hover { background: var(--teal-soft); }
.btn .ic { width: 16px; height: 16px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: "›"; opacity: .6; margin-right: 2px; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 700; }
.breadcrumb--light ol { color: #b9cbd5; }
.breadcrumb--light [aria-current] { color: #fff; }
.breadcrumb--light a:hover { color: #fff; }
.crumb-bar { padding-top: 14px; padding-bottom: 2px; }

/* ---------- Page hero (tiêu đề danh mục) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; }
.page-hero__bg { position: absolute; inset: 0; opacity: .55; }
.page-hero__bg svg { width: 100%; height: 100%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 38, 56, .95) 30%, rgba(11, 38, 56, .4)); }
.page-hero__inner { position: relative; z-index: 1; padding-top: 26px; padding-bottom: 30px; }
.page-hero__title { margin: 12px 0 8px; font-size: 28px; font-weight: 400; letter-spacing: .01em; }
.page-hero__intro { max-width: 620px; font-size: 13px; color: #cfdde5; }

/* ---------- Thanh danh mục ---------- */
.cat-strip { padding: 10px; }
.cat-strip ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.cat-chip {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 92px; flex: none; padding: 6px 4px 8px;
    border: 1px solid transparent; border-radius: var(--radius);
    font-size: 10.5px; font-weight: 700; color: var(--navy); text-align: center; line-height: 1.3;
    transition: .2s;
}
.cat-chip:hover { background: #f5f9fa; }
.cat-chip.is-active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.cat-chip__img { height: 40px; width: 100%; display: grid; place-items: center; }
.cat-chip__img > * { height: 100%; width: auto; object-fit: contain; }
.cat-chip__img--all .ic { width: 26px; height: 26px; color: var(--teal); }

/* ---------- Bố cục shop ---------- */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.shop__main { margin-top: 0; }
.shop__side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 120px; }
.side-head { display: none; }
.side-box {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 16px;
}
.side-box fieldset { border: 0; margin: 0; padding: 0; }
.side-box fieldset + fieldset { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-box legend { float: left; width: 100%; }
.side-box legend + * { clear: both; }
.side-title { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 10px; padding: 0; }
.side-cats li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 10px; border-radius: 6px; font-size: 12px;
}
.side-cats li a span { font-size: 10.5px; color: var(--muted); background: #f1f5f7; border-radius: 10px; padding: 1px 8px; }
.side-cats li a:hover { background: #f5f9fa; color: var(--teal-dark); }
.side-cats li.is-top > a { font-weight: 700; color: var(--navy); }
.side-cats li.is-top:not(:first-child) { margin-top: 4px; }
.side-cats li.is-child > a { padding-left: 22px; font-size: 11.5px; }
.side-cats li a.is-active { background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }

.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12px; cursor: pointer; }
.check input { appearance: none; width: 16px; height: 16px; margin: 0; flex: none; border: 1.5px solid #b5c3ca; border-radius: 4px; display: grid; place-items: center; cursor: pointer; transition: .15s; }
.check--radio input { border-radius: 50%; }
.check input:checked { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.check:hover span { color: var(--teal-dark); }
.side-actions { display: flex; gap: 8px; margin-top: 16px; }
.js .side-actions .btn[type="submit"] { display: none; }

.side-help {
    background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #d4e3eb;
    border-radius: var(--radius-lg); padding: 18px; font-size: 12px;
}
.side-help > .ic { width: 30px; height: 30px; color: var(--teal); margin-bottom: 8px; }
.side-help strong { display: block; color: #fff; font-size: 13px; margin-bottom: 4px; }
.side-help p { margin-bottom: 12px; line-height: 1.55; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.toolbar__filter { display: none; }
.toolbar__count { flex: 1; font-size: 12px; color: var(--muted); }
.toolbar__count b { color: var(--navy); }
.toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.toolbar__sort select {
    appearance: none; font: inherit; font-size: 12px; color: var(--navy);
    padding: 8px 32px 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e3552' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
}
.toolbar__sort select:focus { border-color: var(--teal); outline: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: 11px; font-weight: 700; }
.chip .ic { width: 12px; height: 12px; }
.chip:hover { background: #d3eef2; }
.chip--clear { background: transparent; color: var(--muted); text-decoration: underline; }

.product-grid--shop { grid-template-columns: repeat(4, 1fr); }

/* ---------- Phân trang ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; }
.pager__num, .pager__btn, .pager__gap {
    min-width: 36px; height: 36px; padding: 0 8px;
    display: grid; place-items: center; border-radius: 8px;
    font-size: 12.5px; color: var(--navy);
}
.pager__num, .pager__btn { border: 1px solid var(--line); background: #fff; transition: .2s; }
.pager a:hover { border-color: var(--teal); color: var(--teal-dark); }
.pager__num.is-current { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.pager__btn.is-disabled { opacity: .4; }
.pager .ic { width: 16px; height: 16px; }

/* ---------- Trạng thái rỗng ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty > .ic { width: 44px; height: 44px; margin: 0 auto 12px; color: #a9bac3; }
.empty strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.empty p { margin-bottom: 16px; font-size: 12.5px; }
.empty--sm { padding: 30px 16px; }

.benefits--page { margin-top: 18px; }
.benefits--page li { background: #fff; }

/* ---------- Chi tiết sản phẩm ---------- */
.page--flush > .panel:first-child { margin-top: 10px; }
.pd-tabs { margin-top: 18px; }
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; padding: 24px; }

.pd__gallery { min-width: 0; }
.pd__stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pd__stage .badge { top: 14px; left: 14px; font-size: 11px; padding: 4px 10px; z-index: 1; }
.pd__main { aspect-ratio: 1 / .85; display: grid; place-items: center; background: linear-gradient(180deg, #f7fafb, #edf2f4); cursor: zoom-in; overflow: hidden; }
.pd__main > * { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.pd__main.is-zoom > * { transform: scale(1.7); cursor: zoom-out; }
.pd__main img { padding: 0; }
.pd__art { display: grid; place-items: center; width: 100%; height: 100%; padding: 8%; }
.pd__art svg { width: 100%; height: 100%; }
/* 4 phông nền mẫu khi chưa có ảnh */
.pd__art--1 { background: linear-gradient(180deg, #f7fafb, #edf2f4); }
.pd__art--2 { background: linear-gradient(160deg, #e6eef2, #d5e1e7); }
.pd__art--2 svg { transform: scale(1.25) translateY(4%); }
.pd__art--3 { background: linear-gradient(180deg, #33495a, #22394a); }
.pd__art--4 { background: linear-gradient(180deg, #f4efe8, #e6ddd1); }
.pd__art--4 svg { transform: scaleX(-1); }

.pd__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pd__thumb { display: block; width: 100%; aspect-ratio: 1 / .8; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.pd__thumb > * { width: 100%; height: 100%; object-fit: cover; }
.pd__thumb .pd__art { padding: 10%; }
.pd__thumb:hover { border-color: #b8dde4; }
.pd__thumb.is-active { border-color: var(--teal); }

.pd__info { min-width: 0; }
.pd__cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.pd__name { margin: 6px 0 10px; font-size: 22px; line-height: 1.35; color: var(--navy); }
.pd__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 11.5px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.pd__meta b { color: var(--navy); }
.pd__meta .is-in, .pd__meta .is-out { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pd__meta .is-in { color: #1a9a5b; }
.pd__meta .is-out { color: var(--red); }
.pd__meta .is-in::before, .pd__meta .is-out::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pd__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 16px 0; padding: 14px 16px; background: var(--teal-soft); border-radius: var(--radius); }
.pd__price strong { font-size: 26px; color: var(--red); line-height: 1.1; }
.pd__price del { font-size: 14px; color: #8d9aa2; }
.pd__save { font-size: 11px; font-weight: 700; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 4px; }
.pd__price small { flex-basis: 100%; font-size: 10.5px; color: var(--muted); }

.pd__features li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 3px 0; }
.pd__features .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--teal); }

.pd__buy { margin-top: 18px; }
.pd__opt { border: 0; margin: 0 0 16px; padding: 0; }
.pd__opt legend { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 8px; padding: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 12px; cursor: pointer; transition: .15s; }
.swatch span:hover { border-color: #b8dde4; }
.swatch input:checked + span { border-color: var(--teal); color: var(--teal-dark); font-weight: 700; background: var(--teal-soft); }
.swatch input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.pd__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.pd__actions .btn { padding: 12px 22px; font-size: 13px; }
.qty { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; font-size: 18px; color: var(--navy); }
.qty button:hover { background: #f1f6f8; color: var(--teal); }
.qty input { width: 42px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd__wish { position: static; width: 46px; height: auto; min-height: 44px; border: 1.5px solid var(--line); background: #fff; }
.pd__added { margin-top: 10px; font-size: 12px; color: #1a9a5b; font-weight: 700; }

.pd__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pd__contact a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed #b8d6de; border-radius: var(--radius); font-size: 11.5px; color: var(--navy); transition: .2s; }
.pd__contact a:hover { border-color: var(--teal); background: var(--teal-soft); }
.pd__contact .ic { width: 22px; height: 22px; color: var(--teal); }
.pd__contact b { display: block; font-size: 13px; color: var(--teal-dark); }

.pd__policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd__policy li { display: flex; gap: 8px; font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.pd__policy .ic { width: 22px; height: 22px; color: var(--teal); }
.pd__policy b { display: block; font-size: 11.5px; color: var(--navy); }

.pd-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.pd-aside { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; position: sticky; top: 120px; }
.pd-aside__box { margin-top: 0; padding: 16px; }
.mini-spec div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef3f5; font-size: 11.5px; }
.mini-spec dt { color: var(--muted); }
.mini-spec dd { margin: 0; text-align: right; color: var(--navy); font-weight: 700; }
.pd-aside__box .link-more { margin-top: 10px; }

.pd-tabs { padding: 0; overflow: hidden; }
.pd-tabs__nav { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fafcfd; scrollbar-width: none; }
.pd-tabs__nav::-webkit-scrollbar { display: none; }
.pd-tabs__nav button { position: relative; padding: 15px 20px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pd-tabs__nav button:hover { color: var(--navy); }
.pd-tabs__nav button.is-active { color: var(--navy); font-weight: 700; }
.pd-tabs__nav button.is-active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--teal); }
.pd-tabs__panel { padding: 22px 24px 26px; }
.js .pd-tabs__panel:not(.is-active) { display: none; }
.no-js .pd-tabs__nav { display: none; }

.prose { font-size: 13px; line-height: 1.8; max-width: 760px; }
.prose p + p, .prose ul + p { margin-top: 10px; }
.prose h3 { font-size: 14px; color: var(--navy); margin: 18px 0 6px; }
.prose ul { list-style: disc; padding-left: 20px; }

.spec { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec th, .spec td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 36%; font-weight: 400; color: var(--muted); background: #f7fafb; }
.spec td { color: var(--navy); font-weight: 700; }

/* Thanh mua nhanh (mobile) */
.buybar { display: none; }

@media (max-width: 1100px) {
    .product-grid--shop { grid-template-columns: repeat(3, 1fr); }
    .pd-detail { grid-template-columns: 1fr; }
    .pd-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; margin-top: 0; }
}

@media (max-width: 1024px) {
    .shop { grid-template-columns: 1fr; }
    .toolbar__filter { display: inline-flex; }
    .shop__side {
        position: fixed; top: 0; bottom: 0; right: 0; left: auto; z-index: 60;
        width: min(340px, 90vw); overflow-y: auto;
        background: var(--bg); padding: 0 14px 20px;
        transform: translateX(100%); transition: transform .3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .15);
    }
    .shop__side.is-open { transform: none; }
    .side-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; margin: 0 -14px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--navy); }
    .side-close .ic { width: 22px; height: 22px; }
    .side-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(8, 25, 36, .45); }
    .js .side-actions .btn[type="submit"] { display: inline-flex; }
    .side-box--cats { display: none; }

    .pd { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 720px) {
    .page-hero__inner { padding-top: 18px; padding-bottom: 22px; }
    .page-hero__title { font-size: 21px; }
    .page-hero__intro { font-size: 12px; }
    .cat-chip { width: 76px; font-size: 9.5px; }
    .cat-chip__img { height: 32px; }

    .product-grid--shop { grid-template-columns: repeat(2, 1fr); }
    .toolbar { gap: 10px; }
    .toolbar__count { order: 3; flex-basis: 100%; }
    .toolbar__sort { margin-left: auto; }
    .toolbar__sort label { display: none; }

    .pd { padding: 14px; }
    .pd__name { font-size: 18px; }
    .pd__price strong { font-size: 22px; }
    .pd__thumbs { gap: 6px; }
    .pd__actions .btn { flex: 1; justify-content: center; padding: 12px 10px; }
    .pd__actions .qty { flex-basis: 100%; justify-content: space-between; }
    .pd__actions .qty input { flex: 1; }
    .pd__wish { display: none; }
    .pd__contact { grid-template-columns: 1fr; }
    .pd__policy { grid-template-columns: 1fr; gap: 8px; }
    .pd-tabs__nav button { padding: 13px 14px; font-size: 12px; }
    .pd-tabs__panel { padding: 16px 14px 20px; }
    .spec th { width: 42%; }
    .spec th, .spec td { padding: 9px 10px; font-size: 12px; }
    .pd-aside { grid-template-columns: 1fr; }

    .buybar {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff; box-shadow: 0 -4px 18px rgba(14, 53, 82, .12);
        transform: translateY(110%); transition: transform .25s;
    }
    .buybar.is-visible { transform: none; }
    .buybar__price { min-width: 0; }
    .buybar small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .buybar strong { font-size: 16px; color: var(--red); }
    body:has(.buybar) .footer { padding-bottom: 64px; }
}

/* =========================================================
   FORM NHẬN BÁO GIÁ
   ========================================================= */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.quote-form { padding: 24px; }
.quote-form .section-title { margin-bottom: 18px; }
.quote-aside { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field .req { color: var(--red); }
.field input, .field textarea, .field select {
    width: 100%; font: inherit; font-size: 13px; color: var(--text);
    padding: 11px 13px; border: 1px solid #d3dee4; border-radius: 8px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 165, 183, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field__err { display: block; margin-top: 4px; font-size: 11px; color: var(--red); }
.form-note { margin-top: 10px; font-size: 11px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 12.5px; }
.notice .ic { width: 24px; height: 24px; flex: none; }
.notice strong { display: block; margin-bottom: 2px; }
.notice--ok { background: #e6f6ee; color: #146c43; }
.notice--err { background: #fdecec; color: #b42318; }
@media (max-width: 900px) {
    .quote-layout { grid-template-columns: 1fr; }
    .quote-aside { margin-top: 0; }
}
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .quote-form { padding: 16px; }
}

/* =========================================================
   DỰ ÁN & TIN TỨC
   ========================================================= */
.chip-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; }
.chip-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 12px; color: var(--navy); background: #f3f7f9; transition: .2s; }
.chip-tab small { font-size: 10px; color: var(--muted); background: #fff; border-radius: 9px; padding: 0 6px; }
.chip-tab:hover { color: var(--teal-dark); background: var(--teal-soft); }
.chip-tab.is-active { background: var(--teal); color: #fff; font-weight: 700; }
.chip-tab.is-active small { color: var(--teal-dark); }
.chip-bar__search { display: flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.chip-bar__search input { border: 0; padding: 7px 14px; font-size: 12px; width: 180px; outline: none; }
.chip-bar__search button { width: 36px; display: grid; place-items: center; color: var(--teal-dark); }

.card-grid { display: grid; gap: 18px; margin-top: 18px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.pcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pcard__img { position: relative; display: block; aspect-ratio: 16 / 10; background: #dde6ea; overflow: hidden; }
.pcard__img > svg, .pcard__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard__img > svg, .pcard:hover .pcard__img > img { transform: scale(1.05); }
.pcard__tag { position: absolute; left: 12px; top: 12px; z-index: 1; background: rgba(11, 38, 56, .8); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.pcard__body strong { font-size: 14px; color: var(--navy); line-height: 1.4; }
.pcard:hover .pcard__body strong { color: var(--teal-dark); }
.pcard__meta { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.pcard__meta .ic { width: 13px; height: 13px; }
.pcard__text { font-size: 12px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--teal-dark); }
.pcard__more .ic { width: 14px; height: 14px; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.tag-topic { color: var(--teal-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.lead-post { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; padding: 0; overflow: hidden; margin-top: 18px; transition: box-shadow .25s; }
.lead-post:hover { box-shadow: var(--shadow-hover); }
.lead-post__img { position: relative; min-height: 260px; background: #dde6ea; }
.lead-post__img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-post__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.lead-post__body strong { font-size: 19px; line-height: 1.4; color: var(--navy); }
.lead-post:hover strong { color: var(--teal-dark); }
.lead-post__text { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 24px 28px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #d4e3eb; }
.cta-band strong { display: block; font-size: 17px; color: #fff; margin-bottom: 4px; }
.cta-band p { font-size: 12.5px; }

.page-hero--tall .page-hero__inner { padding-top: 40px; padding-bottom: 54px; }
.page-hero__bg--full { opacity: 1; }
.page-hero__bg--full > * { width: 100%; height: 100%; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; margin-top: 18px; }
.article-layout > .panel:first-child, .article-layout > div > .panel:first-child { margin-top: 0; }
.article-layout .lead-post { margin-top: 0; }
.article-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 120px; }
.article { padding: 26px 30px 30px; margin-top: 0; }
.article__head { margin-bottom: 18px; }
.article__title { font-size: 26px; line-height: 1.35; color: var(--navy); margin: 10px 0; }
.article__lead { font-size: 14px; line-height: 1.7; color: #3d5160; font-style: italic; }
.article__cover { position: relative; margin: 0 0 22px; aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; background: #dde6ea; }
.article__cover > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article__h { font-size: 17px; color: var(--navy); margin: 26px 0 12px; }
.prose--article { max-width: none; font-size: 14px; line-height: 1.85; }
.prose--article h2 { font-size: 18px; color: var(--navy); margin: 24px 0 8px; }
.prose--article h3 { font-size: 15px; margin: 18px 0 6px; }
.prose--article p { margin: 0 0 12px; }
.prose--article ul { margin: 0 0 12px; }
.article__share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.article__share a, .article__share button { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); justify-content: center; }
.article__share a:hover, .article__share button:hover { border-color: var(--teal); color: var(--teal-dark); }
.article__share .ic { width: 15px; height: 15px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 22px; padding: 16px; background: #f5f9fa; border-radius: var(--radius); }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 700; color: var(--navy); }
.facts .ic { width: 22px; height: 22px; color: var(--teal); flex: none; }
.facts small { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-grid a { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid a:hover img { transform: scale(1.05); }

.mini-posts, .mini-products { list-style: none; margin: 0; padding: 0; }
.page-hero--tall .eyebrow { margin-top: 18px; }
.mini-posts li + li { border-top: 1px solid #eef3f5; }
.mini-posts a { display: flex; gap: 10px; padding: 10px 0; font-size: 12px; line-height: 1.5; color: var(--navy); }
.mini-posts a:hover { color: var(--teal-dark); }
.mini-posts small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.mini-posts__no { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.mini-posts__img, .mini-products__img { position: relative; flex: none; width: 72px; height: 50px; border-radius: 6px; overflow: hidden; background: #eef3f5; }
.mini-posts__img > *, .mini-products__img > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-products__img > svg { object-fit: contain; padding: 3px; }
.mini-products li + li { border-top: 1px solid #eef3f5; }
.mini-products a { display: flex; gap: 10px; align-items: center; padding: 9px 0; font-size: 12px; color: var(--navy); line-height: 1.4; }
.mini-products a:hover { color: var(--teal-dark); }
.mini-products b { display: block; color: var(--red); font-size: 12.5px; margin-top: 2px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; gap: 14px; }
    .lead-post { grid-template-columns: 1fr; }
    .lead-post__img { min-height: 190px; }
    .lead-post__body { padding: 16px; }
    .lead-post__body strong { font-size: 16px; }
    .chip-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .chip-bar::-webkit-scrollbar { display: none; }
    .chip-tab { white-space: nowrap; }
    .chip-bar__search { display: none; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 20px; }
    .article { padding: 16px; }
    .article__title { font-size: 20px; }
    .photo-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   HỆ THỐNG ĐẠI LÝ
   ========================================================= */
.hero-nums { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 18px; }
.hero-nums strong { display: block; font-size: 26px; line-height: 1; color: var(--teal); font-weight: 400; }
.hero-nums span { font-size: 11px; color: #cfdde5; }

.dealer-filter { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.dealer-filter__regions { display: flex; flex-wrap: wrap; gap: 8px; }
.dealer-filter__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dealer-select {
    appearance: none; font: inherit; font-size: 12.5px; color: var(--navy); min-width: 200px;
    padding: 9px 34px 9px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e3552' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
}
.dealer-select:focus { outline: none; border-color: var(--teal); }
.dealer-search { flex: 1 1 220px; display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.dealer-search input { flex: 1; min-width: 0; border: 0; padding: 9px 12px; font-size: 12.5px; outline: none; }
.dealer-search button { width: 40px; display: grid; place-items: center; background: var(--teal); color: #fff; }

.dealer-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 18px; margin-top: 18px; align-items: start; }
.dealer-list { margin-top: 0; padding: 14px 16px; max-height: 680px; overflow-y: auto; scrollbar-width: thin; }
.dealer-list__count { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dealer-list__count b { color: var(--navy); }
.dealer-geo-msg { font-size: 11.5px; color: var(--teal-dark); background: var(--teal-soft); padding: 8px 10px; border-radius: 8px; margin-bottom: 8px; }
.dealer-group { position: sticky; top: -14px; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 10px -16px 6px; padding: 8px 16px; background: #f5f9fa; font-size: 12.5px; color: var(--navy); border-block: 1px solid var(--line); }
.dealer-group small { font-size: 10.5px; color: var(--muted); background: #fff; border-radius: 9px; padding: 0 8px; }
.dealer { padding: 12px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background .2s, border-color .2s; }
.dealer + .dealer { margin-top: 4px; }
.dealer:hover { background: #f7fafb; }
.dealer.is-active { border-color: var(--teal); background: var(--teal-soft); }
.dealer:focus-visible { outline: 2px solid var(--teal); }
.dealer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.dealer__head h3 { font-size: 13.5px; color: var(--navy); line-height: 1.4; }
.dealer__type { flex: none; font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef3f6; color: var(--muted); white-space: nowrap; }
.dealer__type--showroom { background: var(--teal); color: #fff; }
.dealer__type--phan-phoi { background: #e8effd; color: #2f5bb7; }
.dealer__type--bao-hanh { background: #fdf0e3; color: #b0600f; }
.dealer__line { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.5; margin-top: 3px; }
.dealer__line .ic { width: 14px; height: 14px; margin-top: 2px; color: var(--teal); }
.dealer__line a { color: var(--navy); font-weight: 700; }
.dealer__line--muted { color: var(--muted); }
.dealer__note { font-size: 11px; color: var(--muted); margin-top: 4px; font-style: italic; }
.dealer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.dealer__actions .btn { padding: 6px 12px; }
.dealer__focus { font-size: 11.5px; color: var(--teal-dark); text-decoration: underline; }
.dealer__dist { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--teal-dark); }

.dealer-map-wrap { position: sticky; top: 120px; }
.dealer-map { height: 680px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #dfe9ee; box-shadow: var(--shadow); z-index: 0; }
.dealer-map__fallback { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; color: var(--muted); font-size: 12.5px; }
.dmarker span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.dmarker--showroom span { background: var(--teal); }
.dmarker--phan-phoi span { background: #3b6fd9; }
.dmarker--bao-hanh span { background: #e8862a; }
.dpop { font-family: var(--font); font-size: 12px; line-height: 1.5; min-width: 180px; }
.dpop b { display: block; color: var(--navy); font-size: 12.5px; }
.dpop small { display: block; color: var(--muted); font-size: 10.5px; margin-bottom: 4px; }
.dpop p { margin: 0 0 6px; }
.dpop a { color: var(--teal-dark); font-weight: 700; }
.leaflet-container { font-family: var(--font); }

.apply { display: grid; grid-template-columns: 1fr 1.4fr; margin-top: 26px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); scroll-margin-top: 130px; }
.apply__intro { padding: 30px; background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #d4e3eb; }
.apply__intro h2 { font-size: 22px; color: #fff; margin: 10px 0 8px; font-weight: 400; }
.apply__intro p { font-size: 12.5px; margin-bottom: 18px; }
.apply__intro li { display: flex; gap: 10px; align-items: center; font-size: 12.5px; padding: 7px 0; }
.apply__intro .ic { width: 20px; height: 20px; color: var(--teal); }
.apply__form { padding: 26px 28px; background: #fff; }
.apply__form select { width: 100%; font: inherit; font-size: 13px; padding: 11px 13px; border: 1px solid #d3dee4; border-radius: 8px; background: #fff; }

@media (max-width: 1024px) {
    .dealer-layout { grid-template-columns: 1fr; }
    .dealer-map-wrap { position: static; order: -1; }
    .dealer-map { height: 380px; }
    .dealer-list { max-height: none; overflow: visible; }
    .dealer-group { top: 120px; }
    .apply { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .dealer-select { min-width: 0; flex: 1 1 45%; }
    .dealer-filter__regions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .dealer-map { height: 300px; }
    .dealer-group { top: 110px; }
    .apply__intro, .apply__form { padding: 20px 16px; }
    .hero-nums { gap: 20px; }
    .hero-nums strong { font-size: 21px; }
}

/* Logo ảnh (tải lên trong Quản trị → Cài đặt) */
.logo__img { display: block; max-height: 46px; width: auto; max-width: 180px; object-fit: contain; }
.logo--light .logo__img { max-height: 52px; }
.partners__list a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
@media (max-width: 720px) { .logo__img { max-height: 38px; max-width: 130px; } }

/* Ảnh trong bài mô tả (![...](...)) */
.content-img { margin: 14px 0; }
.content-img img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 0 auto; }
.content-img figcaption { font-size: 12px; color: var(--muted, #6b7a85); text-align: center; margin-top: 6px; }

/* Nội dung soạn bằng trình soạn thảo (mô tả sản phẩm, bài viết) */
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
.prose figure.image { display: table; margin: 14px auto; }
.prose figure.image figcaption { display: table-caption; caption-side: bottom; font-size: 12px; color: var(--muted, #6b7a85); text-align: center; padding-top: 6px; }
.prose h2 { font-size: 17px; color: var(--navy); margin: 22px 0 8px; }
.prose h4 { font-size: 13.5px; color: var(--navy); margin: 14px 0 4px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose blockquote { border-left: 3px solid var(--teal, #0e9fb3); margin: 14px 0; padding: 6px 14px; background: #f5f9fb; }
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0; }
.prose table { border-collapse: collapse; min-width: 100%; }
.prose table td, .prose table th { border: 1px solid #dfe7ec; padding: 7px 10px; vertical-align: top; }
.prose table th { background: #f3f7fa; text-align: left; }
.prose iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.prose p:empty { display: none; }
