/* RBDS Giỏ hàng · khối "Giỏ hàng" trên trang dự án (dùng biến màu của theme RBDS) */
.gh-sum { margin: 0 0 12px; font: 500 15px/1.5 var(--f-ui, system-ui); }
.gh-sum b { color: #146C43; font-size: 18px; }
.gh-upd { display: inline-block; margin-left: 8px; color: var(--muted, #6b7280); font-size: 14px; }
.gh-f { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.gh-f label { flex: 0 1 auto; }
.gh-f__q { flex: 1 1 180px !important; }
.gh-f input, .gh-f select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line, #d9dce1); border-radius: 8px; background: var(--surface, #fff); font: 16px var(--f-ui, system-ui); color: var(--ink, #1e2227); }
.gh-wrap { overflow-x: auto; border: 1px solid var(--line, #d9dce1); border-radius: 10px; }
.gh-t { width: 100%; border-collapse: collapse; font: 14px/1.4 var(--f-ui, system-ui); }
.gh-t th, .gh-t td { padding: 9px 10px; border-bottom: 1px solid var(--line, #eceef1); text-align: left; white-space: nowrap; }
.gh-t thead th { background: var(--bg-soft, #f6f7f9); font-weight: 600; font-size: 13px; color: var(--muted, #555); position: sticky; top: 0; }
.gh-t tbody tr:last-child > * { border-bottom: 0; }
.gh-t tbody th { font-weight: 700; }
.gh-t .gh-price.is-on { font-weight: 700; color: var(--brand, #c62828); }
.gh-st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #eceef1; color: #444; }
.gh-st--con { background: #e6f4ea; color: #146c2e; }
.gh-st--giu { background: #fff4d6; color: #7a5a00; }
.gh-st--coc { background: #ffe8cc; color: #8a4a00; }
.gh-st--ban { background: #fde7e9; color: #a1121c; }
.gh-st--chua_mo { background: #e8eefc; color: #23408e; }
.gh-none { padding: 14px; margin: 0; color: var(--muted, #6b7280); }
.gh-more { text-align: center; margin: 12px 0 0; }
.gh-note { margin-top: 10px; }
@media (max-width: 640px) {
	.gh-wrap { border: 0; overflow: visible; }
	.gh-t thead { display: none; }
	.gh-t, .gh-t tbody { display: block; }
	/* thẻ gọn: dòng đầu [mã căn ........ tình trạng], sau đó thông tin nối liền nhau (thường 1–2 dòng), giá ở cuối bên phải */
	.gh-t tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 8px 12px; margin: 0 0 6px; border: 1px solid var(--line, #d9dce1); border-radius: 10px; background: var(--surface, #fff); }
	.gh-t tr::after { content: ""; order: 2; flex-basis: 100%; height: 0; margin-top: -2px; }
	.gh-t tr[hidden] { display: none; }
	.gh-t th, .gh-t td { display: block; padding: 0; border: 0; white-space: normal; font-size: 16px; color: var(--ink, #1e2227); }
	.gh-t tbody th { order: 0; flex: 1 1 auto; font-size: 17px; }
	.gh-t td:last-child { order: 1; margin-left: auto; }
	.gh-t td { order: 3; }
	.gh-t td::before { content: attr(data-label) " "; color: var(--muted, #6b7280); font-weight: 500; }
	.gh-t td.gh-price { order: 4; margin-left: auto; }
	.gh-t td.gh-price::before, .gh-t td:last-child::before { content: none; }
	.gh-t td.gh-empty { display: none; }
	.gh-st { padding: 2px 10px; font-size: 14px; }
	/* căn hộ: loại căn + DT thông thủy chỉ hiện giá trị ("1PN  45,2 m²"), bỏ "Tòa" (đã có trong mã căn) và DT tim tường
	   (bảng đầy đủ xem trên máy tính). Nhà phố / biệt thự / đất nền giữ nhãn (DT đất / DT xây dựng / mặt tiền dễ lẫn). */
	.gh-t td[data-k="layout"]::before { content: none; }
	.gh-t td[data-k="layout"] { font-weight: 600; }
	.gh--can_ho .gh-t td[data-k="area"]::before { content: none; }
	.gh--can_ho .gh-t td[data-k="area"]::after { content: " m²"; }
	.gh--can_ho .gh-t td[data-k="area2"], .gh--can_ho .gh-t td[data-k="block"] { display: none; }
	.gh-f label { flex: 1 1 45%; }
}
/* chữ chỉ cho trình đọc màn hình (theme không có sẵn lớp này) */
.gh .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gh-price a { display: inline-block; min-height: 24px; }
@media (max-width: 640px) { .gh-more .btn { min-height: 44px; width: 100%; } .gh-price a { min-height: 44px; margin-block: -10px; padding: 0 4px; display: inline-flex; align-items: center; } } /* vùng chạm 44px, không làm thẻ cao thêm */
/* trang riêng /gio-hang/ */
.gh-page { padding-block: 24px 48px; }
.gh-h1 { margin: 0 0 6px; font: 800 clamp(26px, 5vw, 36px)/1.2 var(--f-head, var(--f-ui, system-ui)); }
.gh-back { margin: 0 0 16px; }
.gh-back a { display: inline-flex; align-items: center; min-height: 44px; }
.gh-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.gh-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line, #d9dce1); border-radius: 10px; background: var(--surface, #fff); color: var(--ink, #1e2227); text-decoration: none; }
.gh-list a:hover { border-color: var(--brand, #c62828); }
.gh-list span { color: var(--muted, #6b7280); font-size: 14px; }
@media (max-width: 640px) { .gh-f .gh-f__q { flex-basis: 100% !important; } }
/* trang riêng 1.1.0: thanh tìm lớn (.gh-qbar) dính dưới thanh đầu trang; bộ lọc của "Toàn bộ giỏ hàng" không dính (tránh 2 thanh dính) */
/* các ô chọn: máy tính nằm chung hàng với ô tìm (như cũ); điện thoại 1 hàng vuốt ngang → thanh lọc dính chỉ 2 hàng */
.gh-f__sel { display: contents; }
@media (max-width: 640px) {
	.gh-f__sel { position: relative; display: flex; flex: 1 1 100%; min-width: 0; max-width: calc(100% + 6px); padding: 3px; margin: -3px; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.gh-f__sel::-webkit-scrollbar { display: none; }
	.gh-f .gh-f__sel label { flex: 0 0 auto; }
	.gh-f .gh-f__sel label:last-child { order: -1; } /* ô "Tình trạng" (mặc định "Còn hàng") đứng đầu hàng: khách thấy ngay đang lọc gì */
	.gh-f__sel select { width: auto; min-width: 136px; max-width: 70vw; }
	.gh-page .gh-f { gap: 6px; }
}

/* ---------- Trang riêng /gio-hang/<dự án>/: tra cứu nhanh THÁP-TẦNG-CĂN (1.1.0) ---------- */
.gh--page .gh-hero, .gh--page .gh-q, .gh--page .gh-look { max-width: 960px; margin-inline: auto; }
.gh-hero { text-align: center; padding: 8px 0 4px; }
.gh-hero__lbl { margin: 0 0 4px; color: var(--brand, #b92d30); font: 700 14px/1.4 var(--f-ui, system-ui); letter-spacing: .12em; text-transform: uppercase; }
.gh-hero .gh-h1 { margin: 0 0 2px; }
.gh-hero .gh-back { margin: 0; }
.gh-hero .gh-sum { margin: 2px 0 0; font-size: 16px; }
.gh-qbar { position: sticky; top: var(--head-h, 0px); z-index: 20; padding: 10px 0; background: var(--bg, #f4f3f0); }
@media (min-width: 783px) { .admin-bar .gh-qbar { top: calc(var(--head-h, 0px) + 32px); } } /* như .admin-bar .site-header của theme */
.gh-q { display: flex; align-items: center; gap: 4px; min-height: 60px; padding: 5px 5px 5px 14px; border: 2px solid var(--line, #e4e2dc); border-radius: 14px; background: var(--surface, #fff); box-shadow: 0 6px 18px -12px rgba(30, 34, 39, .35); }
.gh-q:focus-within { border-color: var(--brand, #b92d30); }
.gh-q__ic { display: flex; color: var(--muted, #5d646c); flex: none; }
.gh-q__in { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 6px; border: 0; outline: 0; background: transparent; font: 600 18px/1.2 var(--f-ui, system-ui); color: var(--ink, #1e2227); letter-spacing: .02em; }
.gh-q__in::placeholder { font-weight: 400; color: var(--muted, #5d646c); letter-spacing: 0; }
.gh-q__in::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.gh-q__x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft, #eeece7); color: var(--ink, #1e2227); font: 400 24px/1 var(--f-ui, system-ui); cursor: pointer; }
.gh-q__go { flex: none; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 0; border-radius: 10px; background: var(--brand, #b92d30); color: #fff; cursor: pointer; }
.gh-q__go:hover { background: var(--brand-ink, #962326); }
.gh-q__x:focus-visible, .gh-q__go:focus-visible { outline: 3px solid var(--ink, #1e2227); outline-offset: 2px; }
.gh-look { display: grid; gap: 16px; margin-top: 6px; }
.gh-h2 { margin: 0 0 12px; font: 800 22px/1.25 var(--f-head, var(--f-display, var(--f-ui, system-ui))); color: var(--ink, #1e2227); }
.gh-all-h { max-width: none; margin-top: 36px; }
/* kết quả */
.gh-res, .gh-guide, .gh-hotsec { padding: 16px; border: 1px solid var(--line, #e4e2dc); border-radius: 14px; background: var(--surface, #fff); }
.gh-res__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line, #e4e2dc); }
.gh-res__sum { margin: 0; font: 500 17px/1.4 var(--f-ui, system-ui); color: var(--ink, #1e2227); }
.gh-res__q { color: var(--brand, #b92d30); }
.gh-res__close { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line, #e4e2dc); border-radius: 999px; background: var(--surface, #fff); font: 600 16px var(--f-ui, system-ui); color: var(--ink, #1e2227); cursor: pointer; }
.gh-res__close:hover { border-color: var(--brand, #b92d30); }
.gh-res__nf { margin-bottom: 14px; }
.gh-nf__t { margin: 0 0 10px; padding: 14px; border-radius: 10px; background: var(--bg, #f4f3f0); text-align: center; font: 700 17px/1.4 var(--f-ui, system-ui); }
.gh-nf__s { margin: 0; padding: 10px 12px; border-left: 3px solid var(--brand, #b92d30); border-radius: 0 8px 8px 0; background: var(--slot, #f8f2f2); font: 600 16px/1.45 var(--f-ui, system-ui); }
.gh-res__more { grid-column: 1 / -1; margin: 0; color: var(--muted, #5d646c); font-size: 16px; }
/* thẻ căn */
.gh-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .gh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gh-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line, #e4e2dc); border-radius: 12px; background: var(--surface, #fff); font: 16px/1.45 var(--f-ui, system-ui); color: var(--ink, #1e2227); }
.gh-card.is-hot { border-color: rgba(185, 45, 48, .45); box-shadow: inset 0 3px 0 var(--brand, #b92d30); }
.gh-card__top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.gh-card__code { font: 800 22px/1.2 var(--f-head, var(--f-display, var(--f-ui, system-ui))); letter-spacing: .02em; overflow-wrap: anywhere; }
.gh-card__top .gh-st { margin-left: auto; }
.gh-copy { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid var(--line, #e4e2dc); border-radius: 10px; background: var(--surface, #fff); color: var(--muted, #5d646c); cursor: pointer; font: 600 14px var(--f-ui, system-ui); }
.gh-copy:hover { border-color: var(--brand, #b92d30); color: var(--ink, #1e2227); }
.gh-copy.is-done { border-color: var(--ok, #1c7c4e); color: var(--ok, #1c7c4e); }
.gh-copy__t:empty { display: none; }
.gh-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--brand, #b92d30); color: #fff; font: 800 14px/1.2 var(--f-ui, system-ui); letter-spacing: .1em; }
.gh-card__box { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; border-radius: 10px; background: var(--bg, #f4f3f0); }
.gh-card__box > div { padding: 8px 6px; text-align: center; }
.gh-card__box > div + div { border-left: 1px solid var(--line, #e4e2dc); }
.gh-card__box dt { font: 600 14px/1.3 var(--f-ui, system-ui); color: var(--muted, #5d646c); text-transform: uppercase; letter-spacing: .04em; }
.gh-card__box dd { margin: 2px 0 0; font: 800 18px/1.3 var(--f-ui, system-ui); overflow-wrap: anywhere; }
.gh-card__meta, .gh-card__price { margin: 0; font-size: 16px; }
.gh-card__meta { color: var(--muted, #5d646c); }
.gh-card__price b.is-on { color: var(--brand, #b92d30); }
.gh-card__price a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.gh-card__act { display: flex; gap: 8px; margin-top: auto; }
.gh-card .gh-lock { flex: 1 1 auto; min-height: 48px; font-size: 16px; border-radius: 10px; }
.gh-call { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line, #e4e2dc); border-radius: 10px; background: var(--surface, #fff); color: var(--brand, #b92d30); }
.gh-call:hover { border-color: var(--brand, #b92d30); }
.gh-lock:focus-visible, .gh-call:focus-visible, .gh-copy:focus-visible, .gh-ex:focus-visible, .gh-res__close:focus-visible { outline: 3px solid var(--ink, #1e2227); outline-offset: 2px; }
/* hướng dẫn tìm kiếm */
.gh-guide__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .gh-guide__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gh-ex { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 12px 8px 8px; border: 1px solid var(--line, #e4e2dc); border-radius: 12px; background: var(--surface, #fff); text-align: left; cursor: pointer; font: 16px/1.35 var(--f-ui, system-ui); color: var(--ink, #1e2227); }
.gh-ex:hover { border-color: var(--brand, #b92d30); }
.gh-ex__q { flex: none; min-width: 104px; padding: 8px 10px; border-radius: 8px; background: var(--soft, #eeece7); text-align: center; font: 800 18px/1.2 var(--f-ui, system-ui); letter-spacing: .04em; }
.gh-ex__d { min-width: 0; }
/* hộp Check / Lock */
.gh-dlg { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--surface, #fff); color: var(--ink, #1e2227); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); }
.gh-dlg::backdrop { background: rgba(30, 34, 39, .55); }
.gh-dlg.is-fallback { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 1000; }
.gh-dlg__in { display: grid; gap: 12px; padding: 0 16px 16px; font: 16px/1.45 var(--f-ui, system-ui); }
.gh-dlg__head { display: flex; align-items: center; justify-content: space-between; margin: 0 -16px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line, #e4e2dc); }
.gh-dlg__h { margin: 0; font: 800 18px/1.3 var(--f-head, var(--f-display, var(--f-ui, system-ui))); }
.gh-dlg__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font: 400 28px/1 var(--f-ui, system-ui); color: var(--ink, #1e2227); cursor: pointer; }
.gh-dlg__x:hover { background: var(--soft, #eeece7); }
.gh-dlg__unit { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line, #e4e2dc); border-radius: 10px; }
.gh-dlg__lbl { flex-basis: 100%; color: var(--muted, #5d646c); font-size: 14px; }
.gh-dlg__code { font: 800 22px/1.2 var(--f-head, var(--f-display, var(--f-ui, system-ui))); }
.gh-dlg__unit .gh-st { margin-left: auto; }
.gh-dlg__msgh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-weight: 600; }
.gh-dlg__ok { color: var(--muted, #5d646c); font-weight: 600; }
.gh-dlg__ok.is-ok { color: var(--ok, #1c7c4e); }
.gh-dlg__msg { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line, #e4e2dc); border-radius: 10px; background: var(--bg, #f4f3f0); font: 16px/1.45 var(--f-ui, system-ui); color: var(--ink, #1e2227); resize: none; }
.gh-dlg .btn { min-height: 48px; font-size: 16px; border-radius: 10px; white-space: normal; text-align: center; }
.gh-dlg__tel { color: var(--ink, #1e2227); }
@media (max-width: 640px) {
	.gh-res, .gh-guide, .gh-hotsec { padding: 12px; }
	.gh-q__in { font-size: 17px; }
}
@media (max-width: 360px) {
	.gh-ex__q { min-width: 92px; font-size: 16px; }
}
/* ô tìm: viền đỏ của cả thanh là dấu focus (bỏ khung focus thứ hai của ô chữ); nhãn HOT nằm trên mép thẻ, không chiếm hàng */
.gh-q .gh-q__in:focus, .gh-q .gh-q__in:focus-visible { outline: none; box-shadow: none; }
.gh-q:has(.gh-q__in:focus-visible) { box-shadow: 0 0 0 3px rgba(185, 45, 48, .15); }
.gh-card .gh-badge { position: absolute; top: -11px; right: 12px; }
@media (max-width: 420px) {
	.gh-q { padding-left: 10px; }
	.gh-q__ic { display: none; }
	.gh-q__in::placeholder { font-size: 16px; }
}
.gh-card__price a { color: var(--brand, #b92d30); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gh-card .gh-st, .gh-dlg .gh-st { font-size: 15px; }
/* 1.2.0: hộp Check / Lock liệt kê chuyên viên phụ trách giỏ (ảnh, tên, Zalo, Gọi) */
.gh-dlg [hidden] { display: none !important; }
.gh-dlg__cvs { display: grid; gap: 8px; }
.gh-dlg__pick { margin: 0; font: 600 16px/1.4 var(--f-ui, system-ui); color: var(--ink, #1e2227); }
.gh-cvs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gh-cv { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line, #e4e2dc); border-radius: 12px; background: var(--surface, #fff); }
.gh-cv__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gh-cv__img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--soft, #eeece7); }
.gh-cv__ini { display: inline-flex; align-items: center; justify-content: center; color: var(--ink, #1e2227); font: 800 17px/1 var(--f-ui, system-ui); }
.gh-cv__nm { display: flex; flex-direction: column; min-width: 0; }
.gh-cv__name { font: 700 17px/1.3 var(--f-ui, system-ui); overflow-wrap: anywhere; }
.gh-cv__title { color: var(--muted, #5d646c); font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.gh-cv__act { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.gh-dlg .gh-cv__act .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 10px; }
.gh-cv__tel { color: var(--ink, #1e2227); }
.gh-cv__zalo:focus-visible, .gh-cv__tel:focus-visible, .gh-dlg__x:focus-visible { outline: 3px solid var(--ink, #1e2227); outline-offset: 2px; }
button.gh-call { cursor: pointer; padding: 0; font: inherit; }
@media (min-width: 640px) { .gh-dlg:has(.gh-dlg__cvs:not([hidden])) { width: min(480px, calc(100% - 32px)); } }
/* 1.2.0 v2: số điện thoại chuyên viên hiện bằng chữ (máy tính đọc / chép được); ô "Nội dung gửi" cao vừa chữ, không cuộn trong ô (320px) */
.gh-cv__phone { color: var(--ink, #1e2227); font: 600 16px/1.35 var(--f-ui, system-ui); font-variant-numeric: tabular-nums; letter-spacing: .02em; user-select: all; }
.gh-dlg__msg { overflow-y: hidden; field-sizing: content; min-height: 0; }
/* v2 (chủ msg 484): trang riêng không còn bảng toàn bộ giỏ; giỏ chưa có căn HOT → một dòng mời tìm */
.gh-hot-none { margin: 0; padding: 14px 16px; border: 1px dashed var(--line, #e4e2dc); border-radius: 14px; background: var(--surface, #fff); font: 16px/1.5 var(--f-ui, system-ui); color: var(--ink, #1e2227); }
.gh-hot-none[hidden] { display: none; }
