/* ==========================================================================
   Thịnh Đại Phát — giao diện chính
   Viết theo hướng mobile-first. Mốc màn hình: 640 / 768 / 1024 / 1200.
   ========================================================================== */

:root {
    /* Cam là màu hành động (nút gọi, giá, điểm nhấn) — giữ từ site cũ để
       khách quen. --brand-ink dùng cho nền có chữ trắng: đạt tương phản 5:1. */
    --brand: #ea580c;
    --brand-ink: #c2410c;
    --brand-deep: #9a3412;
    --brand-tint: #fff7ed;
    --brand-tint-2: #ffedd5;

    /* Teal lấy từ chữ trong logo, dùng làm màu phụ. */
    --teal: #0f766e;
    --teal-tint: #e6f4f2;

    --zalo: #0068ff;
    --zalo-deep: #0052cc;

    --ink: #1c1917;
    --ink-2: #44403c;
    --muted: #6b6560;
    --line: #e7e5e4;
    --line-2: #d6d3d1;
    --bg: #f6f5f3;
    --surface: #fff;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 2px rgb(28 25 23 / .06);
    --shadow: 0 2px 6px rgb(28 25 23 / .06), 0 10px 24px -8px rgb(28 25 23 / .12);
    --shadow-lg: 0 24px 48px -12px rgb(28 25 23 / .28);

    --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1240px;
    --gutter: 16px;
    --header-h: 64px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
    :root { --gutter: 24px; }
}

/* ---------- Nền tảng ------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
    margin: 0;
    font: 400 15px/1.6 var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
    body { font-size: 16px; }
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.012em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }

/* ---------- Nút ----------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 9px 18px;
    border: 1.5px solid transparent; border-radius: 999px;
    font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--lg { min-height: 48px; padding: 11px 22px; font-size: 16px; }

.btn--primary { background: var(--brand-ink); color: #fff; box-shadow: 0 6px 16px -6px rgb(194 65 12 / .55); }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }

.btn--zalo { background: var(--zalo); color: #fff; box-shadow: 0 6px 16px -6px rgb(0 104 255 / .5); }
.btn--zalo:hover { background: var(--zalo-deep); color: #fff; }

.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--light { background: #fff; color: var(--brand-ink); }
.btn--light:hover { background: var(--brand-tint); color: var(--brand-deep); }

/* Chữ "Zalo" thay logo (logo là thương hiệu của Zalo, không vẽ lại). */
.zalo-mark {
    display: inline-grid; place-items: center;
    height: 20px; padding: 0 5px; border-radius: 6px;
    background: #fff; color: var(--zalo);
    font-size: 10.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1;
}

.icon-btn {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 50%;
    background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn .icon { width: 22px; height: 22px; }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-buttons--stack { flex-direction: column; }
.cta-buttons--stack .btn { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter);
    scroll-padding-inline: var(--gutter);
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--center { justify-content: center; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap;
    transition: border-color .15s, color .15s, background-color .15s;
}
.chip small { color: var(--muted); font-size: 12px; font-weight: 500; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active small { color: rgb(255 255 255 / .7); }

.badge {
    display: inline-grid; place-items: center;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: var(--brand-ink); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---------- Thanh trên cùng ---------------------------------------------- */

.topbar { display: none; background: var(--ink); color: rgb(255 255 255 / .78); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.topbar__meta { display: flex; gap: 20px; }
.topbar__meta li, .topbar__meta a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.topbar__meta a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; opacity: .7; }

@media (min-width: 1024px) {
    .topbar { display: block; }
}

/* ---------- Header -------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex; align-items: center; gap: 4px;
    min-height: var(--header-h);
}

.site-logo { display: inline-flex; align-items: center; margin-right: auto; color: var(--ink); }
.site-logo__img { width: auto; height: 42px; }
.site-logo__text { font-weight: 700; font-size: 18px; }

.search {
    position: relative; display: flex; align-items: center;
    flex: 1 1 auto;
}
.search__input {
    width: 100%; height: 46px; padding: 0 56px 0 18px;
    border: 1.5px solid var(--line-2); border-radius: 999px;
    background: var(--bg); outline: none;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.search__input::placeholder { color: var(--muted); }
.search__input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgb(234 88 12 / .12); }
.search__btn {
    position: absolute; right: 4px;
    display: grid; place-items: center;
    width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: var(--brand-ink); color: #fff;
}
.search__btn:hover { background: var(--brand-deep); }
.search__btn .icon { width: 18px; height: 18px; }
.search::-webkit-search-cancel-button { display: none; }

.header-contact { display: none; }
.icon-btn--call { color: var(--brand-ink); }

/* Điện thoại: ô tìm kiếm nằm thành một hàng riêng, bấm kính lúp mới hiện. */
@media (max-width: 1023px) {
    .site-header__inner { flex-wrap: wrap; }
    .site-header .search { order: 10; flex-basis: 100%; display: none; padding-bottom: 12px; }
    .site-header.is-searching .search { display: flex; }
    .site-logo__img { height: 38px; }
}

@media (min-width: 1024px) {
    .site-header { position: static; }
    .site-header__inner { gap: 32px; min-height: 88px; }
    .site-logo { margin-right: 0; }
    .site-logo__img { height: 60px; }
    .search { max-width: 560px; }
    .menu-toggle, .search-toggle, .icon-btn--call { display: none; }
    .header-contact { display: flex; align-items: center; gap: 16px; margin-left: auto; }
}

.header-hotline { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.header-hotline:hover { color: var(--ink); }
.header-hotline__icon {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: var(--brand-tint); color: var(--brand-ink);
}
.header-hotline__text { display: grid; line-height: 1.2; }
.header-hotline__text small { color: var(--muted); font-size: 12.5px; }
.header-hotline__text strong { font-size: 18px; color: var(--brand-ink); letter-spacing: .01em; }

/* ---------- Thanh menu (máy tính) ---------------------------------------- */

.site-nav { display: none; }

@media (min-width: 1024px) {
    .site-nav {
        display: block; position: sticky; top: 0; z-index: 40;
        background: var(--surface); border-bottom: 1px solid var(--line);
        transition: box-shadow .2s;
    }
    .site-nav.is-stuck { box-shadow: var(--shadow); }
    .site-nav__inner { display: flex; align-items: stretch; gap: 28px; min-height: 52px; position: relative; }
}

.catmenu { display: flex; }
.catmenu__toggle {
    display: flex; align-items: center; gap: 10px;
    width: 260px; padding: 0 18px; margin: 6px 0;
    border: 0; border-radius: var(--radius-sm);
    background: var(--brand-ink); color: #fff; font-weight: 600; font-size: 15px;
}
.catmenu__toggle:hover, .catmenu__toggle[aria-expanded="true"] { background: var(--brand-deep); }
.catmenu__caret { margin-left: auto; width: 18px; height: 18px; transition: transform .2s; }
.catmenu__toggle[aria-expanded="true"] .catmenu__caret { transform: rotate(180deg); }

.catmenu__panel {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 1px);
    padding: 28px; border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface); border: 1px solid var(--line); border-top: 0;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 140px); overflow: auto;
}
.catmenu__grid { columns: 5 180px; column-gap: 28px; }
.catmenu__group { break-inside: avoid; margin-bottom: 22px; }
.catmenu__parent {
    display: block; margin-bottom: 8px; padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-tint-2);
    color: var(--ink); font-weight: 700; font-size: 15px;
}
.catmenu__parent:hover { color: var(--brand-ink); }
.catmenu__group li a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 14px; }
.catmenu__group li a:hover { color: var(--brand-ink); }

.nav-menu { display: flex; align-items: stretch; gap: 4px; }
.nav-menu > li { position: relative; display: flex; }
.nav-menu > li > a {
    display: flex; align-items: center; padding: 0 12px;
    color: var(--ink-2); font-weight: 600; font-size: 15px;
    border-bottom: 2px solid transparent;
}
.nav-menu > li > a:hover,
.nav-menu > .current-menu-item > a,
.nav-menu > .current-menu-ancestor > a { color: var(--brand-ink); border-bottom-color: var(--brand); }
.nav-menu .sub-menu {
    position: absolute; top: 100%; left: 0; z-index: 5; min-width: 220px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink-2); }
.nav-menu .sub-menu a:hover { background: var(--bg); color: var(--brand-ink); }

/* ---------- Ngăn kéo menu (điện thoại) ----------------------------------- */

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(28 25 23 / .5); animation: fade .2s; }
.drawer__panel {
    position: absolute; top: 0; bottom: 0; left: 0;
    display: flex; flex-direction: column;
    width: min(88vw, 380px); background: var(--surface);
    box-shadow: var(--shadow-lg); animation: slide-in .25s var(--ease);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.drawer__head .site-logo__img { height: 36px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 16px 24px; overscroll-behavior: contain; }
.drawer__label { margin: 20px 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.drawer-menu li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.drawer-cats > li { border-bottom: 1px solid var(--line); }
.drawer-cats > li > a, .drawer-cats summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; color: var(--ink); font-weight: 500; cursor: pointer; list-style: none;
}
.drawer-cats summary::-webkit-details-marker { display: none; }
.drawer-cats summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.drawer-cats details[open] summary .icon { transform: rotate(180deg); }
.drawer-cats details ul { list-style: none; padding: 0 0 10px 12px; border-left: 2px solid var(--brand-tint-2); margin-bottom: 8px; }
.drawer-cats details a { display: block; padding: 7px 0; color: var(--ink-2); font-size: 14.5px; }
.drawer__contact { margin-top: 24px; display: grid; gap: 12px; }
.drawer__contact p { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.drawer__contact .icon { width: 16px; height: 16px; }

@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
@keyframes slide-up { from { transform: translateY(100%); } }

/* ---------- Khối, tiêu đề khối ------------------------------------------- */

.section { padding-block: 28px; }
.section--tight { padding-block: 8px 12px; }
.section--muted { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 1024px) {
    .section { padding-block: 40px; }
}

.section-head {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 12px 20px; margin-bottom: 18px;
}
.section-title { font-size: 21px; font-weight: 700; }
.section-title::before {
    content: ""; display: inline-block; vertical-align: -3px;
    width: 6px; height: 22px; margin-right: 12px; border-radius: 3px;
    background: linear-gradient(var(--brand), var(--brand-deep));
}
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; }
.section-link .icon { width: 16px; height: 16px; transition: transform .15s; }
.section-link:hover .icon { transform: translateX(3px); }
@media (min-width: 768px) {
    .section-title { font-size: 25px; }
}

.block-title { margin-bottom: 16px; font-size: 20px; font-weight: 700; }

/* ---------- Banner trang chủ --------------------------------------------- */

.hero { padding-top: 16px; }
.hero__grid { display: grid; gap: 16px; }
.hero__cats { display: none; }

@media (min-width: 1024px) {
    .hero { padding-top: 24px; }
    .hero__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: stretch; }
    .hero__cats {
        display: flex; flex-direction: column;
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        overflow: hidden;
    }
}
.hero__cats-title {
    display: flex; align-items: center; gap: 10px; padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.hero__cats-title .icon { color: var(--brand); width: 18px; height: 18px; }
.hero__cats ul { flex: 1; display: flex; flex-direction: column; justify-content: space-around; padding: 6px 0; }
.hero__cats a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 18px; color: var(--ink-2); font-size: 14.5px; font-weight: 500;
    border-left: 3px solid transparent;
}
.hero__cats a small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hero__cats a:hover { background: var(--brand-tint); border-left-color: var(--brand); color: var(--brand-ink); }

.hero__main { position: relative; border-radius: var(--radius); overflow: hidden; }

.hero-brand {
    display: grid; gap: 24px; align-items: center;
    padding: 28px 22px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgb(234 88 12 / .16), transparent 60%),
        radial-gradient(80% 80% at 0% 100%, rgb(15 118 110 / .10), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
}
.hero-brand__eyebrow {
    display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
    background: var(--teal-tint); color: var(--teal); font-size: 13px; font-weight: 600;
}
.hero-brand__title { font-size: clamp(26px, 6.4vw, 44px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.hero-brand__lead { margin-top: 14px; max-width: 34em; color: var(--ink-2); font-size: 15.5px; }
.hero-brand__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-brand__since { margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.hero-brand__showcase { display: none; }

@media (max-width: 767px) {
    .hero-brand { padding: 22px 20px 24px; }
    .hero-brand__eyebrow { margin-bottom: 10px; font-size: 12px; }
    .hero-brand__lead { margin-top: 10px; font-size: 14.5px; }
    .hero-brand__actions { margin-top: 18px; }
    .hero-brand__actions .btn { flex: 1 1 0; padding-inline: 12px; font-size: 15px; }
    .hero-brand__since { display: none; }
}

@media (min-width: 768px) {
    .hero-brand { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 44px 40px; }
    .hero-brand__showcase {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
        max-width: 380px; justify-self: end; width: 100%;
    }
    .hero-brand__showcase li {
        position: relative; min-width: 0; aspect-ratio: 1; border-radius: var(--radius);
        background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
    }
    .hero-brand__showcase li:nth-child(odd) { transform: translateY(14px); }
    .hero-brand__showcase img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
}
@media (min-width: 1024px) {
    .hero-brand { padding: 48px 48px; min-height: 420px; }
    .hero-brand__lead { font-size: 17px; }
}

.hero-slider { background: var(--surface); border: 1px solid var(--line); }
.hero-slider__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-behavior: smooth;
}
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-slider__slide { flex: 0 0 100%; scroll-snap-align: start; }
.hero-slider__slide img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.hero-slider__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgb(255 255 255 / .9); box-shadow: var(--shadow);
}
.hero-slider__nav:hover { background: #fff; }
.hero-slider__nav--prev { left: 12px; }
.hero-slider__nav--next { right: 12px; }
.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.hero-slider__dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
    background: rgb(255 255 255 / .6); box-shadow: 0 0 0 1px rgb(0 0 0 / .1); transition: width .2s;
}
.hero-slider__dots button[aria-current="true"] { width: 24px; background: #fff; }
@media (max-width: 767px) {
    .hero-slider__nav { display: none; }
}

/* Danh mục dạng cuộn ngang, chỉ trên điện thoại/tablet. */
.cat-scroller {
    display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1) 14px; padding: 2px var(--gutter);
    scroll-snap-type: x proximity;
}
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-scroller li { flex: 0 0 84px; scroll-snap-align: start; }
.cat-scroller a { display: grid; justify-items: center; gap: 8px; color: var(--ink-2); text-align: center; }
.cat-scroller__img {
    display: grid; place-items: center; width: 72px; height: 72px; padding: 8px;
    border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
    overflow: hidden; color: var(--muted);
}
.cat-scroller__img img { width: 100%; height: 100%; object-fit: contain; }
.cat-scroller__name { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
@media (min-width: 1024px) {
    .cat-scroller { display: none; }
}

/* ---------- Cam kết --------------------------------------------------------- */

.usp {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.usp__item {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.usp__icon {
    width: 42px; height: 42px; padding: 10px; flex: none; border-radius: 12px;
    background: var(--brand-tint); color: var(--brand-ink);
}
.usp__item div { display: grid; line-height: 1.35; min-width: 0; }
.usp__item strong { font-size: 14.5px; }
.usp__item span { color: var(--muted); font-size: 13px; }
@media (min-width: 1024px) {
    .usp { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .usp__item { padding: 18px 20px; }
}
@media (max-width: 479px) {
    .usp__item { flex-direction: column; align-items: flex-start; }
}

/* ---------- Lưới & thẻ sản phẩm ------------------------------------------ */

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) {
    .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
    .pgrid, .pgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .pgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Trên điện thoại, khối sản phẩm ở trang chủ cuộn ngang thay vì dựng dọc. */
@media (max-width: 767px) {
    .pgrid--scroll {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
        scroll-padding-inline: var(--gutter);
    }
    .pgrid--scroll::-webkit-scrollbar { display: none; }
    .pgrid--scroll > .pcard { flex: 0 0 44%; scroll-snap-align: start; }
}

.pcard {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.pcard:hover { border-color: var(--brand-tint-2); box-shadow: var(--shadow); transform: translateY(-2px); }
/* Ảnh đặt tuyệt đối trong khung vuông: ảnh dọc/ngang cỡ nào cũng không làm
   thẻ cao lệch nhau. */
.pcard__media { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; --pad: 12px; }
.pcard__img {
    position: absolute; inset: var(--pad); width: calc(100% - var(--pad) * 2); height: calc(100% - var(--pad) * 2);
    object-fit: contain; transition: transform .35s var(--ease);
}
.pcard:hover .pcard__img { transform: scale(1.04); }
.pcard__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 10px 14px 14px; border-top: 1px solid var(--bg); }
.pcard__label {
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    color: var(--teal); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.pcard__title { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.pcard__title a {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em; color: var(--ink);
}
/* Cả thẻ bấm được: mở rộng vùng bấm của link tiêu đề ra toàn thẻ. */
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard:hover .pcard__title a { color: var(--brand-ink); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.pcard__go { width: 18px; height: 18px; color: var(--line-2); transition: color .15s, transform .15s; }
.pcard:hover .pcard__go { color: var(--brand); transform: translateX(3px); }

.price { font-weight: 700; color: var(--brand-ink); font-size: 15px; }
.price--contact::before {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 2px;
    border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2);
}

@media (max-width: 479px) {
    .pcard__media { --pad: 8px; }
    .pcard__body { padding: 8px 10px 12px; }
    .pcard__title { font-size: 13.5px; }
}

/* ---------- Khối danh mục ở trang chủ ------------------------------------ */

.cat-block + .cat-block { padding-top: 0; }
.cat-block__box { display: grid; gap: 14px; }
.cat-block__side { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.cat-block__title { font-size: 21px; font-weight: 700; }
.cat-block__title a { color: var(--ink); }
.cat-block__count { grid-row: 2; color: var(--muted); font-size: 13.5px; }
.cat-block__all { grid-row: 1 / span 2; grid-column: 2; min-height: 38px; padding: 7px 14px; font-size: 14px; }
.cat-block__all .icon { width: 16px; height: 16px; }
.cat-block__subs {
    grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 8px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter);
}
.cat-block__subs::-webkit-scrollbar { display: none; }
.cat-block__subs a {
    display: block; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px;
}
.cat-block__img { display: none; }
.cat-block .btn--light { background: var(--surface); border-color: var(--line-2); color: var(--ink); }

@media (min-width: 1024px) {
    .cat-block__box {
        grid-template-columns: 250px minmax(0, 1fr); gap: 20px;
        padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
    }
    .cat-block__side {
        display: flex; flex-direction: column; align-items: flex-start; gap: 0;
        position: relative; overflow: hidden;
        padding: 24px 22px 0; border-radius: var(--radius);
        background: linear-gradient(160deg, var(--brand) 0%, var(--brand-ink) 55%, var(--brand-deep) 100%);
        color: #fff;
    }
    .cat-block__title { font-size: 22px; }
    .cat-block__title a { color: #fff; }
    .cat-block__count { color: rgb(255 255 255 / .8); margin-top: 4px; }
    .cat-block__subs { display: block; margin: 16px 0 0; padding: 0; overflow: visible; }
    .cat-block__subs li + li { border-top: 1px solid rgb(255 255 255 / .16); }
    .cat-block__subs a {
        padding: 7px 0; border: 0; border-radius: 0; background: none;
        color: rgb(255 255 255 / .92); font-size: 14px; white-space: normal;
    }
    .cat-block__subs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
    .cat-block .btn--light { margin: 18px 0 20px; background: #fff; border-color: #fff; color: var(--brand-ink); }
    .cat-block__img {
        display: grid; place-items: center; margin-top: auto; align-self: stretch;
        margin-inline: -22px; padding: 16px 22px 0;
    }
    .cat-block__img img {
        width: 100%; max-height: 190px; object-fit: contain;
        padding: 12px; border-radius: var(--radius) var(--radius) 0 0; background: #fff;
    }
    .cat-block .pgrid { gap: 14px; }
    .cat-block .pcard { border-color: var(--bg); }
}

/* ---------- Bài viết ------------------------------------------------------ */

.post-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    .post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.post-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: box-shadow .2s, transform .2s var(--ease);
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card__media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--bg); color: var(--line-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__ph { width: 40px; height: 40px; }
.post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.post-card__meta { color: var(--muted); font-size: 12.5px; }
.post-card__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand-ink); }
.post-card__excerpt {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--muted); font-size: 14px;
}

/* ---------- Dải kêu gọi báo giá ------------------------------------------- */

.cta-band { margin-top: 24px; padding-block: 32px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
    content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(closest-side, rgb(234 88 12 / .45), transparent);
    pointer-events: none;
}
.cta-band__inner { position: relative; display: grid; gap: 20px; align-items: center; }
.cta-band h2 { font-size: 22px; font-weight: 700; }
.cta-band p { margin-top: 6px; color: rgb(255 255 255 / .75); max-width: 40em; }
@media (min-width: 1024px) {
    .cta-band { padding-block: 44px; }
    .cta-band__inner { grid-template-columns: 1fr auto; gap: 40px; }
    .cta-band h2 { font-size: 28px; }
}

/* ---------- Chân trang ---------------------------------------------------- */

.site-footer { background: #0f0d0c; color: rgb(255 255 255 / .72); font-size: 14.5px; }
.site-footer__grid { display: grid; gap: 32px; padding-block: 40px; }
@media (min-width: 640px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-block: 56px; }
}
.site-footer .site-logo {
    padding: 10px 14px; margin-bottom: 16px; border-radius: var(--radius-sm); background: #fff;
}
.site-footer .site-logo__img { height: 44px; }
.site-footer__about p { max-width: 30em; }
.site-footer__title { margin-bottom: 14px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.site-footer__links li a { display: inline-block; padding: 5px 0; color: rgb(255 255 255 / .72); }
.site-footer__links li a:hover { color: #fff; }
.site-footer__contact { display: grid; gap: 12px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
.site-footer__contact a { color: rgb(255 255 255 / .85); }
.site-footer__contact a:hover { color: #fff; }
.social-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff; font-weight: 500; }
.social-link .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.social-link:hover { color: #fff; }
.social-link:hover .icon { background: #1877f2; }
.site-footer__bottom { border-top: 1px solid rgb(255 255 255 / .1); font-size: 13.5px; }
.site-footer__bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: rgb(255 255 255 / .72); }
.to-top .icon { width: 16px; height: 16px; }
.to-top:hover { color: #fff; }

/* ---------- Nút liên hệ nhanh -------------------------------------------- */

.quickbar {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(28 25 23 / .2);
}
.quickbar__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; border-radius: 999px; color: #fff; font-weight: 600;
}
.quickbar__btn .icon { width: 18px; height: 18px; }
.quickbar__btn--call { background: var(--brand-ink); }
.quickbar__btn--zalo { background: var(--zalo); }
.quickbar__btn:hover { color: #fff; filter: brightness(.95); }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
    .quickbar {
        left: auto; right: 20px; bottom: 20px;
        grid-template-columns: 1fr; gap: 10px; padding: 0;
        background: none; backdrop-filter: none; border: 0; box-shadow: none;
    }
    /* Máy tính: hai nút tròn gọn ở góc, chữ hiện khi rê chuột — không che
       cột nội dung bên phải trên màn hình 1280px. */
    .quickbar__btn {
        position: relative; width: 54px; min-height: 54px; padding: 0;
        box-shadow: var(--shadow-lg);
        transition: transform .15s var(--ease);
    }
    .quickbar__btn .icon { width: 22px; height: 22px; }
    .quickbar__btn .zalo-mark { height: 24px; font-size: 11.5px; }
    .quickbar__btn span:not(.zalo-mark) {
        position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
        padding: 6px 12px; border-radius: 8px; background: var(--ink); color: #fff;
        font-size: 13.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
    }
    .quickbar__btn:hover span:not(.zalo-mark), .quickbar__btn:focus-visible span:not(.zalo-mark) { opacity: 1; }
    .quickbar__btn:hover { transform: translateY(-2px); }
    .quickbar--product { display: none; }
}

/* ---------- Đầu trang nội dung, breadcrumb ------------------------------- */

.page-head { padding: 20px 0 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head__title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.page-head__lead { margin-top: 8px; color: var(--muted); max-width: 44em; }
.page-head__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.page-head__count { color: var(--muted); font-size: 14px; }
.page-head__desc { margin-top: 10px; max-width: 60em; color: var(--ink-2); font-size: 14.5px; }
.page-head .chips { margin-top: 16px; }
@media (min-width: 1024px) {
    .page-head { padding: 24px 0 28px; }
    .page-head__title { font-size: 32px; }
    .page-head .chips--scroll { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}

.breadcrumb { margin-bottom: 10px; font-size: 13.5px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; color: var(--line-2); margin-right: 2px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-ink); }
.breadcrumb [aria-current] span { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Trang danh mục: bộ lọc --------------------------------------- */

.catalog { display: grid; gap: 24px; padding-block: 20px 40px; align-items: start; }
@media (min-width: 1024px) {
    .catalog { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-block: 28px 56px; }
    .catalog:not(:has(.filters)) { grid-template-columns: minmax(0, 1fr); }
}

.filters {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.filters__head h2 { font-size: 16px; font-weight: 700; }
.filters__body { padding: 4px 18px 12px; }
.filters__foot { display: none; }

@media (min-width: 1024px) {
    .filters { position: sticky; top: 72px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; }
    .filters__body { overflow-y: auto; overscroll-behavior: contain; }
    .filters__close { display: none; }
}

/* Điện thoại: bộ lọc là một tấm trượt từ dưới lên. */
@media (max-width: 1023px) {
    .filters {
        position: fixed; z-index: 95; left: 0; right: 0; bottom: 0;
        display: none; flex-direction: column; max-height: 86vh;
        border-radius: 20px 20px 0 0; border: 0; box-shadow: var(--shadow-lg);
    }
    .filters.is-open { display: flex; animation: slide-up .25s var(--ease); }
    .filters__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
    .filters__foot {
        display: grid; grid-template-columns: auto 1fr; gap: 10px;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    }
    .filters-open::before {
        content: ""; position: fixed; inset: 0; z-index: 94; background: rgb(28 25 23 / .5); animation: fade .2s;
    }
}

.facet { border-bottom: 1px solid var(--line); }
.facet:last-child { border-bottom: 0; }
.facet__title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px;
}
.facet__title::-webkit-details-marker { display: none; }
.facet__title .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.facet[open] .facet__title .icon { transform: rotate(180deg); }
.facet__search {
    width: 100%; height: 36px; margin-bottom: 8px; padding: 0 12px;
    border: 1px solid var(--line-2); border-radius: var(--radius-xs); background: var(--bg); font-size: 14px;
}
.facet__search:focus { outline: none; border-color: var(--brand); background: #fff; }
.facet__list { display: grid; gap: 2px; padding-bottom: 12px; }
.facet__list.is-collapsed li:nth-child(n + 9) { display: none; }
.facet__list li.is-filtered-out { display: none !important; }
.facet__more {
    margin: -6px 0 12px; padding: 4px 0; border: 0; background: none;
    color: var(--brand-ink); font-weight: 600; font-size: 14px;
}

.check {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; margin-inline: -8px; border-radius: var(--radius-xs);
    cursor: pointer; font-size: 14.5px; color: var(--ink-2);
}
.check:hover { background: var(--bg); }
.check input {
    appearance: none; flex: none; width: 18px; height: 18px; margin: 0;
    border: 1.5px solid var(--line-2); border-radius: 5px; background: #fff;
    display: grid; place-items: center; transition: .12s;
}
.check input::after {
    content: ""; width: 10px; height: 6px; margin-top: -2px;
    border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0);
    transition: transform .12s;
}
.check input:checked { background: var(--brand-ink); border-color: var(--brand-ink); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.check__label { flex: 1; min-width: 0; }
.check__count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.check.is-empty { opacity: .45; }
.check:has(input:checked) { color: var(--ink); font-weight: 500; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar__search { position: relative; flex: 1 1 100%; display: flex; align-items: center; }
.toolbar__search .icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.toolbar__search input {
    width: 100%; height: 44px; padding: 0 14px 0 42px;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
}
.toolbar__search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(234 88 12 / .12); }
.toolbar__filter { flex: 1; min-height: 44px; }
.toolbar__filter .badge { margin-left: 2px; }
.toolbar__sort { position: relative; flex: 1; display: flex; align-items: center; }
.toolbar__sort .icon { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.toolbar__sort select {
    width: 100%; height: 44px; padding: 0 36px 0 40px;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
    appearance: none; cursor: pointer; font-weight: 500; font-size: 14.5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.toolbar__sort select:focus { outline: none; border-color: var(--brand); }
@media (min-width: 640px) {
    .toolbar__search { flex: 1 1 280px; }
    .toolbar__filter, .toolbar__sort { flex: 0 0 auto; }
    .toolbar__sort select { width: 190px; }
}
@media (min-width: 1024px) {
    .toolbar__filter { display: none; }
}

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.active-filters button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px 6px 12px; border: 1px solid var(--brand-tint-2); border-radius: 999px;
    background: var(--brand-tint); color: var(--brand-deep); font-size: 13.5px; font-weight: 500;
}
.active-filters button .icon { width: 14px; height: 14px; }
.active-filters button:hover { border-color: var(--brand); }
.active-filters .active-filters__clear { background: none; border-color: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.result-count { margin: 14px 0 12px; color: var(--muted); font-size: 14px; }
.result-count strong { color: var(--ink); }

/* Trước khi JS chạy: chỉ hiện 24 sản phẩm đầu để trang không nhảy khi lọc. */
.js .pgrid--catalog > .pcard:nth-child(n + 25) { display: none; }
.js .pgrid--catalog.is-ready > .pcard { display: flex; }
.js .pgrid--catalog.is-ready > .pcard[hidden] { display: none; }

.load-more { display: flex; justify-content: center; margin-top: 28px; }

.empty {
    display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center;
    background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius);
    color: var(--muted);
}
.empty__icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--bg); color: var(--muted); }
.empty__title { color: var(--ink); font-size: 17px; font-weight: 600; }
.empty .btn { margin-top: 6px; }

/* ---------- Trang sản phẩm ------------------------------------------------ */

.product-top { padding-top: 16px; }
.product { display: grid; gap: 24px; padding-bottom: 28px; }
@media (min-width: 900px) {
    .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; }
}
@media (min-width: 1200px) {
    .product { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 56px; }
}

.gallery { min-width: 0; }
@media (min-width: 900px) {
    .gallery { position: sticky; top: 72px; align-self: start; }
}
.gallery__main {
    position: relative; aspect-ratio: 1; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.gallery__slide { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__zoom {
    position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / .9);
    border: 1px solid var(--line); color: var(--ink-2); pointer-events: none;
}
.gallery__zoom .icon { width: 18px; height: 18px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button {
    width: 72px; height: 72px; padding: 6px; flex: none;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
    transition: border-color .15s;
}
.gallery__thumbs button:hover { border-color: var(--line-2); }
.gallery__thumbs button[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.summary { min-width: 0; }
.summary__cat {
    display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
    background: var(--teal-tint); color: var(--teal); font-size: 13px; font-weight: 600;
}
.summary__cat:hover { color: var(--teal); background: #d3ece8; }
.summary__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
@media (min-width: 1024px) {
    .summary__title { font-size: 30px; }
}
.summary__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.summary__meta strong { color: var(--ink-2); font-weight: 600; }
.summary__price {
    margin-top: 20px; padding: 16px 18px; border-radius: var(--radius);
    background: var(--brand-tint); border: 1px solid var(--brand-tint-2);
}
.summary__price .price { font-size: 22px; }
.summary__price p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.summary__cta { margin-top: 16px; }
.summary__cta .btn { flex: 1 1 200px; }
.summary__hint { display: flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 13px; }
.summary__hint .icon { width: 15px; height: 15px; flex: none; }
.summary__short { margin-top: 24px; }
.summary__usp {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px;
    margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.summary__usp li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.summary__usp .icon { width: 18px; height: 18px; color: var(--teal); }

.product-more { display: grid; gap: 24px; padding-bottom: 12px; }
@media (min-width: 1024px) {
    .product-more { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
.product-more__desc {
    padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 768px) {
    .product-more__desc { padding: 32px 36px; }
}
.product-more__side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) {
    .product-more__side { position: sticky; top: 72px; }
}

.info-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 16px; font-weight: 700; }
.info-card__title .icon { width: 20px; height: 20px; color: var(--brand); }

.contact-list { display: grid; gap: 10px; font-size: 14.5px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--brand-ink); }
.contact-list--lg { gap: 14px; font-size: 15.5px; margin-block: 20px; }

/* ---------- Nội dung soạn thảo (mô tả, bài viết, trang) ------------------ */

.prose { color: var(--ink-2); line-height: 1.75; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.6em; line-height: 1.3; }
.prose h2 { font-size: 1.35em; }
.prose h3 { font-size: 1.18em; }
.prose h4 { font-size: 1.05em; }
.prose > :first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(194 65 12 / .35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius-sm); margin-inline: auto; }
.prose figure, .prose .wp-caption { margin: 1.4em auto; max-width: 100%; }
.prose figcaption, .prose .wp-caption-text { margin-top: 8px; color: var(--muted); font-size: 13.5px; text-align: center; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--ink); font-style: italic; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table {
    width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92em; line-height: 1.5;
    border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; display: table;
}
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child > * { border-bottom: 0; }
.prose th { width: 40%; background: var(--bg); color: var(--ink-2); font-weight: 500; }
.prose td { color: var(--ink); font-weight: 500; }
.prose tr:nth-child(even) td { background: #fcfbfa; }
/* Lưới sản phẩm / bài viết nằm trong nội dung (shortcode cũ): bỏ kiểu chữ
   của .prose và co số cột theo bề ngang cột nội dung. */
.prose :is(.pgrid, .post-grid, .cat-tiles) { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-block: 1.4em; line-height: 1.5; }
.prose :is(.pgrid, .post-grid, .cat-tiles) :is(h3, p) { margin: 0; font-size: inherit; }
.prose :is(.pgrid, .post-grid, .cat-tiles) a { text-decoration: none; }
.prose :is(.pgrid, .post-grid) img { border-radius: 0; }
.prose .pcard__title, .prose .post-card__title { font-size: 15px; }
.prose--sm { font-size: 14.5px; line-height: 1.65; }
.prose--lg { font-size: 16px; }
@media (min-width: 768px) {
    .prose--lg { font-size: 17px; }
}
.summary__short.prose { font-size: 14.5px; }

/* ---------- Trang liên hệ ------------------------------------------------- */

.contact { padding-block: 24px 48px; }
.contact__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1024px) {
    .contact__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
.contact-card {
    display: flex; flex-direction: column; gap: 4px; padding: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
}
a.contact-card:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card__icon, .contact-card .zalo-mark { margin-bottom: 10px; }
.contact-card__icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--bg); color: var(--ink-2); }
.contact-card .zalo-mark { height: 42px; width: 42px; border-radius: 12px; background: var(--zalo); color: #fff; font-size: 12px; }
.contact-card__label { color: var(--muted); font-size: 13px; font-weight: 500; }
.contact-card__value { font-size: 18px; font-weight: 700; letter-spacing: .01em; overflow-wrap: anywhere; }
.contact-card__value--sm { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.contact-card__value:not(.contact-card__value--sm) { white-space: nowrap; }
@media (max-width: 479px) {
    .contact-card { padding: 14px; }
    .contact-card__value { font-size: 16px; }
    .contact-card__value--sm { font-size: 14px; }
}
.contact-card__hint { color: var(--muted); font-size: 13px; }
.contact-card--primary { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.contact-card--primary .contact-card__icon { background: rgb(255 255 255 / .16); color: #fff; }
.contact-card--primary .contact-card__label, .contact-card--primary .contact-card__hint { color: rgb(255 255 255 / .8); }
a.contact-card--primary:hover { color: #fff; border-color: var(--brand-deep); background: var(--brand-deep); }

.contact__grid { display: grid; gap: 20px; margin-top: 20px; align-items: start; }
@media (min-width: 1024px) {
    .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
}
.contact__info, .contact__form {
    padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 768px) {
    .contact__info, .contact__form { padding: 30px; }
}
.map { margin: 4px 0 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; }

.quote-form { display: grid; gap: 14px; margin-top: 18px; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 640px) {
    .field-row { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field em { color: var(--brand-ink); font-style: normal; }
.field input, .field textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    background: #fff; font-size: 15px; font-weight: 400; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(234 88 12 / .12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #dc2626; }
.quote-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-form__actions .btn { flex: 1 1 180px; }
.quote-form__note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.quote-form__note .icon { width: 15px; height: 15px; flex: none; }

/* ---------- Trang giới thiệu --------------------------------------------- */

.about-hero {
    padding: 22px 0 32px;
    background:
        radial-gradient(90% 120% at 100% 0%, rgb(234 88 12 / .14), transparent 60%),
        var(--surface);
    border-bottom: 1px solid var(--line);
}
.about-hero__grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 1024px) {
    .about-hero { padding: 28px 0 52px; }
    .about-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
}
.about-hero__eyebrow { margin-top: 10px; color: var(--teal); font-weight: 600; font-size: 14px; }
.about-hero__title { margin-top: 6px; font-size: clamp(26px, 5vw, 40px); font-weight: 700; letter-spacing: -.025em; }
.about-hero__lead { margin: 14px 0 22px; max-width: 36em; color: var(--ink-2); font-size: 16.5px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stats li {
    display: grid; gap: 2px; padding: 18px 20px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.stats strong { font-size: 30px; font-weight: 700; color: var(--brand-ink); letter-spacing: -.02em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14px; }

.about { display: grid; gap: 24px; padding-block: 32px 40px; }
@media (min-width: 1024px) {
    .about { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-block: 48px 56px; }
    .about__side { position: sticky; top: 72px; align-self: start; }
}
.about__content {
    padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 768px) {
    .about__content { padding: 36px 44px; }
}

.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) {
    .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .cat-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
}
.cat-tile {
    display: grid; justify-items: center; gap: 4px; padding: 16px 12px 18px; text-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
    transition: border-color .15s, box-shadow .15s, transform .15s var(--ease);
}
.cat-tile:hover { color: var(--ink); border-color: var(--brand-tint-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile__media { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 8px; color: var(--line-2); }
.cat-tile__media img { width: 100%; height: 100%; object-fit: contain; }
.cat-tile__media .icon { width: 40px; height: 40px; }
.cat-tile__name { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.cat-tile__count { color: var(--muted); font-size: 13px; }

/* ---------- Bài viết đơn, trang thường ----------------------------------- */

.article__head { padding: 20px 0 8px; }
.article__cat {
    display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
    background: var(--teal-tint); color: var(--teal); font-size: 13px; font-weight: 600;
}
.article__title { font-size: clamp(26px, 4.6vw, 38px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.article__meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.article__meta .icon { width: 16px; height: 16px; }
.article__cover { margin: 20px 0 0; }
.article__cover img { width: 100%; border-radius: var(--radius); }
.article__body { padding-block: 28px 40px; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 32px; color: var(--muted); }
.article__tags .icon { width: 16px; height: 16px; }
.article__tags a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; }

.page-body { padding-block: 28px 48px; }
.page-body__cover { margin: 0 0 24px; }
.page-body__cover img { width: 100%; border-radius: var(--radius); }
.page-body > .prose {
    padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 768px) {
    .page-body > .prose { padding: 36px 44px; }
}

.blog { padding-block: 20px 48px; }
.blog .chips { margin-bottom: 20px; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
    display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 500;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .page-numbers .icon { width: 18px; height: 18px; }

.notfound { display: grid; justify-items: center; gap: 14px; padding-block: 56px 64px; text-align: center; }
.notfound__code {
    font-size: clamp(72px, 16vw, 128px); font-weight: 700; line-height: 1; letter-spacing: -.05em;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound__title { font-size: 26px; font-weight: 700; }
.notfound .muted { max-width: 34em; }
.search--page { width: min(100%, 520px); margin: 10px 0 4px; }
.notfound .chips { max-width: 760px; margin-bottom: 10px; }

/* ---------- Hộp xem ảnh, thông báo --------------------------------------- */

.lightbox {
    width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
    border: 0; background: rgb(12 10 9 / .94);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(12 10 9 / .94); }
.lightbox__img { max-width: min(92vw, 1100px); max-height: 86vh; object-fit: contain; border-radius: var(--radius-sm); background: #fff; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgb(255 255 255 / .12); }
.lightbox .icon-btn:hover { background: rgb(255 255 255 / .24); color: #fff; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

.toast {
    position: fixed; z-index: 120; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
    transform: translateX(-50%); max-width: calc(100vw - 32px);
    padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff;
    font-size: 14px; box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (min-width: 1024px) {
    .toast { bottom: 32px; }
}

body.is-locked { overflow: hidden; }

/* ---------- Shortcode Flatsome còn sót trong nội dung cũ ----------------- */

.fs-section { padding: 1px 0; }
.fs-row { display: flex; flex-wrap: wrap; gap: 20px; }
.fs-row + .fs-row { margin-top: 20px; }
.fs-col { flex: 1 1 100%; min-width: 0; }
@media (min-width: 768px) {
    .fs-col { flex: 0 0 calc(var(--span, 12) / 12 * 100% - 20px * (12 - var(--span, 12)) / 12); }
}
.fs-image { margin: 0; }
.fs-image img { border-radius: var(--radius-sm); }
.fs-banner { position: relative; border-radius: var(--radius); overflow: hidden; }
.fs-banner img { width: 100%; }
.fs-banner__text { padding: 16px 0; }
.fs-slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.fs-slider > * { flex: 0 0 100%; scroll-snap-align: start; }
.fs-box { display: grid; gap: 8px; }
.fs-panel { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; }
.fs-panel + .fs-panel { margin-top: 8px; }
.fs-panel summary { padding: 12px 0; cursor: pointer; font-weight: 600; color: var(--ink); }
.fs-panel > div { padding-bottom: 14px; }
.fs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.fs-gallery figure { margin: 0; }
.fs-map iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
.fs-divider { border: 0; border-top: 1px solid var(--line); margin: 1.4em 0; }
.fs-message { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--brand-tint); }

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

@media print {
    .topbar, .site-nav, .quickbar, .cta-band, .site-footer, .filters, .toolbar, .search, .header-contact { display: none !important; }
    body { background: #fff; padding: 0; }
}
