:root {
	--dltb-c: #0b64d8;
	--dltb-offset: 0px;
	--dltb-ink: #14202e;
	--dltb-mute: #66768a;
	--dltb-line: #e3e9f0;
	--dltb-bg: #f3f6fa;
	--dltb-soft: #e7f0fc;
	--dltb-r: 12px;
}
@supports (color: color-mix(in srgb, red, blue)) {
	:root { --dltb-soft: color-mix(in srgb, var(--dltb-c) 9%, #fff); }
}

.dltb,
.dltb-layer,
.dltb-nav {
	box-sizing: border-box;
	font-family: inherit;
	color: var(--dltb-ink);
	-webkit-tap-highlight-color: transparent;
}
.dltb *,
.dltb-layer *,
.dltb-nav * { box-sizing: border-box; }
.dltb [hidden],
.dltb-layer[hidden] { display: none !important; }

.dltb button,
.dltb-layer button {
	font: inherit;
	color: inherit;
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	line-height: 1.2;
	cursor: pointer;
}

html.dltb-lock,
html.dltb-lock body { overflow: hidden; }

.dltb {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 24px;
}

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

.dltb-top {
	position: sticky;
	top: var(--dltb-offset);
	z-index: 30;
	background: #fff;
	border-bottom: 1px solid var(--dltb-line);
	padding-top: 10px;
}
.dltb-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 10px 10px;
}
.dltb-ibtn {
	position: relative;
	flex: none;
	width: 42px;
	height: 42px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--dltb-ink);
}
.dltb-ibtn:active { background: var(--dltb-bg); }
.dltb-ibtn__n {
	position: absolute;
	top: 3px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--dltb-c);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.dltb-search {
	position: relative;
	flex: 1;
	min-width: 0;
}
.dltb-search__ic {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	color: var(--dltb-mute);
	pointer-events: none;
}
.dltb .dltb-search__in,
.dltb-layer .dltb-search__in {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 38px 0 38px;
	border: 1.5px solid transparent;
	border-radius: 21px;
	background: var(--dltb-bg);
	box-shadow: none;
	font-size: 16px; /* chặn iOS tự phóng to khi focus */
	color: var(--dltb-ink);
	-webkit-appearance: none;
	appearance: none;
}
.dltb .dltb-search__in:focus,
.dltb-layer .dltb-search__in:focus {
	outline: none;
	background: #fff;
	border-color: var(--dltb-c);
	box-shadow: none;
}
.dltb .dltb-search__in::-webkit-search-cancel-button,
.dltb-layer .dltb-search__in::-webkit-search-cancel-button { display: none; }
.dltb-search__x {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--dltb-mute);
}

/* gợi ý tìm kiếm */
.dltb-sugg__h {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0 4px;
	font-size: 13px;
	color: var(--dltb-mute);
}
.dltb-sugg__h button {
	border: 0;
	background: none;
	padding: 4px 0;
	color: var(--dltb-c);
	font-size: 13px;
}
.dltb-sugg__r {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--dltb-bg);
	background: none;
	text-align: left;
	font-size: 15px;
}
.dltb-sugg__r span { display: flex; color: var(--dltb-mute); }
.dltb-sugg__w { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }

/* ---------- chips ---------- */

.dltb-chips {
	position: relative;
	display: flex;
	gap: 8px;
	padding: 0 10px 10px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.dltb-chips::-webkit-scrollbar { display: none; }

.dltb-chip {
	flex: none;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--dltb-line);
	border-radius: 17px;
	background: #fff;
	font-size: 14px;
	white-space: nowrap;
}
.dltb-chip.is-on {
	background: var(--dltb-c);
	border-color: var(--dltb-c);
	color: #fff;
	font-weight: 600;
}
/* bộ lọc đang chọn */
.dltb-active {
	display: flex;
	gap: 8px;
	padding: 0 10px 10px;
	overflow-x: auto;
	scrollbar-width: none;
}
.dltb-active::-webkit-scrollbar { display: none; }
.dltb-tag {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 8px 0 12px;
	border: 0;
	border-radius: 15px;
	background: var(--dltb-soft);
	color: var(--dltb-c);
	font-size: 13px;
	white-space: nowrap;
}
.dltb-tag span { display: flex; }
.dltb-tag--clear { padding: 0 12px; background: transparent; text-decoration: underline; color: var(--dltb-mute); }

/* ---------- số lượng + sắp xếp ---------- */

.dltb-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 12px 8px;
}
.dltb-count { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--dltb-mute); min-height: 20px; }
.dltb .dltb-sort {
	width: auto;
	flex: none;
	max-width: 48%;
	height: 36px;
	margin: 0;
	padding: 0 28px 0 12px;
	border: 1px solid var(--dltb-line);
	border-radius: 18px;
	background-color: #fff;
	font-size: 14px;
	color: var(--dltb-ink);
	box-shadow: none;
}

/* ---------- lưới sản phẩm ---------- */

.dltb-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 0 10px;
}
.dltb-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--dltb-line);
	border-radius: var(--dltb-r);
	background: #fff;
	color: inherit;
	text-decoration: none;
}
.dltb-card:active { border-color: var(--dltb-c); }
.dltb-card__img {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #fff;
	border-bottom: 1px solid var(--dltb-bg);
}
.dltb-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	padding: 8px;
}

.dltb-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 10px;
}
.dltb-card__t {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--dltb-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}






.dltb-card:not(.is-skel) { animation: dltb-in .25s ease-out both; }
.dltb-card:not(.is-skel) .dltb-card__img img { opacity: 0; transition: opacity .25s ease; }
.dltb-card:not(.is-skel) .dltb-card__img img.is-in { opacity: 1; }
@keyframes dltb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dltb-card.is-skel { pointer-events: none; }
.dltb-card.is-skel .dltb-card__img { background: var(--dltb-bg); }
.dltb-sk {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--dltb-bg) 25%, #e8eef5 50%, var(--dltb-bg) 75%);
	background-size: 200% 100%;
	animation: dltb-shine 1.2s linear infinite;
}
.dltb-sk--s { width: 55%; }
@keyframes dltb-shine { to { background-position: -200% 0; } }

.dltb-more {
	display: block;
	width: calc(100% - 20px);
	margin: 14px 10px 0;
	height: 46px;
	border: 1.5px solid var(--dltb-c);
	border-radius: 23px;
	background: #fff;
	color: var(--dltb-c);
	font-size: 15px;
	font-weight: 600;
}
.dltb-more:disabled { opacity: .6; }
.dltb-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 18px 10px 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--dltb-c);
}
.dltb-loader[hidden] { display: none; }
.dltb-spin {
	width: 22px;
	height: 22px;
	border: 3px solid rgba(11, 100, 216, .2);
	border-top-color: var(--dltb-c);
	border-radius: 50%;
	animation: dltb-spin .8s linear infinite;
}
@keyframes dltb-spin { to { transform: rotate(360deg); } }
.dltb-sentinel { height: 1px; }

.dltb-empty {
	margin: 24px 10px;
	padding: 28px 18px;
	text-align: center;
	border: 1px dashed var(--dltb-line);
	border-radius: var(--dltb-r);
}
.dltb-empty strong { display: block; font-size: 17px; }
.dltb-empty p { margin: 8px 0 16px; color: var(--dltb-mute); }
.dltb-empty__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- nút chung ---------- */

.dltb .dltb-btn,
.dltb-layer .dltb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--dltb-line);
	border-radius: 22px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--dltb-ink);
}
.dltb .dltb-btn--solid,
.dltb-layer .dltb-btn--solid {
	background: var(--dltb-c);
	border-color: var(--dltb-c);
	color: #fff;
}
.dltb-layer .dltb-btn:disabled { opacity: .45; }

.dltb-pill {
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--dltb-line);
	border-radius: 18px;
	background: #fff;
	font-size: 14px;
}
.dltb-pill[aria-pressed="true"] {
	border-color: var(--dltb-c);
	background: var(--dltb-soft);
	color: var(--dltb-c);
	font-weight: 600;
}

/* ---------- lớp phủ ---------- */

.dltb-layer { position: fixed; inset: 0; z-index: 100000; }

/* ngăn kéo danh mục */
.dltb-drawer { background: #fff; transform: translateX(100%); transition: transform .24s ease; }
.dltb-drawer.is-open { transform: none; }
.dltb-d__panel { display: flex; flex-direction: column; height: 100%; }
.dltb-d__head {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 10px;
	padding-top: calc(8px + env(safe-area-inset-top, 0px));
	border-bottom: 1px solid var(--dltb-line);
	font-size: 17px;
}
.dltb-d__body { display: flex; flex: 1; min-height: 0; }
.dltb-d__left {
	flex: none;
	width: 30%;
	min-width: 104px;
	max-width: 160px;
	overflow-y: auto;
	background: var(--dltb-bg);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dltb-d__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 12px 6px;
	border: 0;
	border-left: 3px solid transparent;
	background: transparent;
	font-size: 13px;
	line-height: 1.25;
	text-align: center;
}
.dltb-d__item.is-on {
	background: #fff;
	border-left-color: var(--dltb-c);
	color: var(--dltb-c);
	font-weight: 600;
}
.dltb-d__right {
	flex: 1;
	min-width: 0;
	overflow-y: auto;
	padding: 14px 12px;
	padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.dltb-d__hint { color: var(--dltb-mute); font-size: 14px; }
.dltb .dltb-d__all,
.dltb-layer .dltb-d__all { width: 100%; height: 42px; font-size: 14px; margin-bottom: 14px; }
.dltb-d__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
/* bảng lọc (kéo từ dưới lên) */
.dltb-s__dim { position: absolute; inset: 0; background: rgba(10, 20, 32, .5); opacity: 0; transition: opacity .2s ease; }
.dltb-sheet.is-open .dltb-s__dim { opacity: 1; }
.dltb-s__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: 86vh;
	max-height: 86dvh;
	border-radius: 20px 20px 0 0;
	background: #fff;
	transform: translateY(100%);
	transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.dltb-sheet.is-open .dltb-s__panel { transform: none; }
.dltb-s__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 8px 6px 18px;
	font-size: 17px;
}
.dltb-s__body { flex: 1; overflow-y: auto; padding: 0 18px 8px; }
.dltb-group h4 { margin: 16px 0 10px; font-size: 15px; font-weight: 600; }
.dltb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dltb-s__foot {
	display: flex;
	gap: 10px;
	padding: 12px 18px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--dltb-line);
}
.dltb-s__foot .dltb-btn { flex: 1; }
.dltb-s__foot .dltb-btn--solid { flex: 2; }

/* ---------- thanh điều hướng dưới ---------- */

.dltb-nav { display: none; }

@media (max-width: 849px) {
	body.dltb-has-nav { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
	.dltb-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		background: #fff;
		border-top: 1px solid var(--dltb-line);
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.dltb-nav__i {
		position: relative;
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		height: 58px;
		color: var(--dltb-mute);
		font-size: 11px;
		text-decoration: none;
	}
	.dltb-nav__i.is-on { color: var(--dltb-c); font-weight: 600; }
	.dltb-nav__i span { line-height: 1; }

}

/* ---------- màn hình lớn ---------- */

@media (min-width: 640px) {
	.dltb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 14px; }
}
@media (min-width: 900px) {
	.dltb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.dltb-d__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.dltb-drawer {
		inset: 5vh 10vw;
		border-radius: 18px;
		overflow: hidden;
		box-shadow: 0 0 0 100vmax rgba(10, 20, 32, .5);
		transform: scale(.97);
		opacity: 0;
		transition: transform .2s ease, opacity .2s ease;
	}
	.dltb-drawer.is-open { transform: none; opacity: 1; }
	.dltb-s__panel {
		left: 50%;
		right: auto;
		bottom: auto;
		top: 50%;
		width: 520px;
		border-radius: 18px;
		transform: translate(-50%, -46%);
		opacity: 0;
		transition: transform .2s ease, opacity .2s ease;
	}
	.dltb-sheet.is-open .dltb-s__panel { transform: translate(-50%, -50%); opacity: 1; }
}

.dltb button:focus-visible,
.dltb a:focus-visible,
.dltb-layer button:focus-visible,
.dltb-nav a:focus-visible { outline: 2px solid var(--dltb-c); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.dltb-drawer,
.dltb-s__panel,
.dltb-s__dim,
.dltb-sk { transition: none; animation: none; }
.dltb-spin { animation-duration: 1.6s; }
.dltb-card:not(.is-skel) { animation: none; }
.dltb-card:not(.is-skel) .dltb-card__img img { opacity: 1; transition: none; }
}

/* ---------- avatar chữ cái / ảnh ---------- */

.dltb-av {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 20px;
}
.dltb-av--all { background: var(--dltb-soft) !important; color: var(--dltb-c) !important; }

/* ---------- lưới ngành hàng (trang chủ app) ---------- */

.dltb-home { padding: 14px 10px 4px; }
.dltb-h { margin: 0 2px 12px; padding: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--dltb-ink); }
.dltb-ic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.dltb-ic__b {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
}
.dltb-ic__i {
	display: block;
	width: 100%;
	max-width: 68px;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 6px;
	border: 1px solid var(--dltb-line);
	border-radius: 18px;
	background: #fff;
}
.dltb-ic__i.dltb-av { padding: 0; font-size: 24px; }
.dltb-ic__b:active .dltb-ic__i { border-color: var(--dltb-c); }
.dltb-ic__n {
	font-size: 12px;
	line-height: 1.3;
	color: var(--dltb-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- dải hãng / dòng sản phẩm ---------- */

.dltb-strip {
	position: relative;
	display: flex;
	gap: 6px;
	padding: 12px 10px 2px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.dltb-strip::-webkit-scrollbar { display: none; }

/* ---------- ngăn kéo: ảnh/chữ cái, tiêu đề, nhóm lọc nhanh ---------- */

.dltb-d__ai {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}
.dltb-d__ai.dltb-av { font-size: 17px; }
.dltb-d__sep { padding: 14px 10px 4px; font-size: 12px; color: var(--dltb-mute); text-align: center; }
.dltb-d__title { margin: 0 0 12px; padding: 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--dltb-ink); }
.dltb-d__nm { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--dltb-ink); }
.dltb-d__ct { font-size: 11px; color: var(--dltb-mute); }

@media (min-width: 640px) {
	.dltb-ic { grid-template-columns: repeat(8, minmax(0, 1fr)); }
	.dltb-d__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.dltb-d__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- kích thước ảnh: khung cố định, ảnh tự co vừa khung ---------- */

.dltb-pic,
.dltb-av.dltb-av {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.dltb-pic img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}

/* lưới ngành hàng */
.dltb-ic__i {
	width: 100%;
	max-width: 72px;
	height: auto;
	aspect-ratio: 1 / 1;
	padding: 9px;
	border: 1px solid var(--dltb-line);
	border-radius: 18px;
	background: #fff;
}
.dltb-av.dltb-ic__i { padding: 0; }

/* ngăn kéo */
.dltb-d__ai {
	width: 44px;
	height: 44px;
	padding: 5px;
	border: 1px solid var(--dltb-line);
	border-radius: 10px;
	background: #fff;
}
.dltb-av.dltb-d__ai { padding: 0; }

/* ảnh sản phẩm: lấp đầy khung vuông, không bị theme ghi đè */
.dltb-card__img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	padding: 10px;
	object-fit: contain;
}

/* lớp tìm kiếm ở các trang khác */
.dltb-sl__body { flex: 1; overflow-y: auto; padding: 4px 16px 24px; }
.dltb-d__head .dltb-search { flex: 1; min-width: 0; margin-right: 4px; }

/* ================= Ô TÌM KIẾM (gia cố chống theme ghi đè) ================= */

.dltb-search {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}
.dltb-search__ic {
	position: absolute;
	left: 13px;
	top: 50%;
	z-index: 2;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dltb-mute);
	pointer-events: none;
}
.dltb-search__ic svg { display: block; width: 18px; height: 18px; }

.dltb .dltb-search input.dltb-search__in[type="search"],
.dltb-layer .dltb-search input.dltb-search__in[type="search"] {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: block;
	float: none;
	width: 100%;
	max-width: none;
	height: 42px;
	min-height: 0;
	margin: 0;
	padding: 0 40px 0 40px;
	border: 1.5px solid transparent;
	border-radius: 21px;
	background: var(--dltb-bg);
	box-shadow: none;
	color: var(--dltb-ink);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	text-indent: 0;
	text-transform: none;
	letter-spacing: normal;
	outline: 0;
}
.dltb .dltb-search input.dltb-search__in[type="search"]:focus,
.dltb-layer .dltb-search input.dltb-search__in[type="search"]:focus {
	background: #fff;
	border-color: var(--dltb-c);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dltb-c) 14%, transparent);
}
.dltb .dltb-search input.dltb-search__in::placeholder,
.dltb-layer .dltb-search input.dltb-search__in::placeholder { color: #8a97a8; opacity: 1; }
.dltb-search input.dltb-search__in::-webkit-search-decoration,
.dltb-search input.dltb-search__in::-webkit-search-cancel-button,
.dltb-search input.dltb-search__in::-webkit-search-results-button,
.dltb-search input.dltb-search__in::-webkit-search-results-decoration { display: none; -webkit-appearance: none; }

.dltb .dltb-search .dltb-search__x {
	position: absolute;
	right: 5px;
	top: 50%;
	z-index: 2;
	width: 32px;
	height: 32px;
	margin: -16px 0 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	text-shadow: none;
	color: var(--dltb-mute);
}
.dltb .dltb-search .dltb-search__x[hidden] { display: none; }
.dltb .dltb-search .dltb-search__x svg { display: block; }

/* khung gợi ý: rộng đúng bằng thanh trên, nằm ngay dưới ô tìm kiếm */
.dltb-top .dltb-sugg {
	position: absolute;
	left: 10px;
	right: 10px;
	top: 56px;
	z-index: 40;
	max-height: min(60vh, 420px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0;
	padding: 4px 14px 14px;
	background: #fff;
	border: 1px solid var(--dltb-line);
	border-radius: var(--dltb-r);
	box-shadow: 0 14px 32px rgba(20, 32, 46, .16);
}
.dltb-sugg__r { color: var(--dltb-ink); }
.dltb-sugg__r:last-of-type { border-bottom: 0; }

/* hàng đầu của lớp tìm kiếm ở trang khác */
.dltb-d__head .dltb-search { margin-right: 6px; }

/* ---------- thương hiệu: chỉ hiện tên ---------- */

.dltb-strip { gap: 8px; padding: 12px 10px 2px; }
.dltb .dltb-bt {
	flex: none;
	height: 36px;
	padding: 0 16px;
	border: 1px solid var(--dltb-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: none;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	color: var(--dltb-ink);
}
.dltb .dltb-bt.is-on {
	border-color: var(--dltb-c);
	background: var(--dltb-soft);
	color: var(--dltb-c);
	font-weight: 600;
}

.dltb-layer .dltb-d__bt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 3px;
	min-height: 52px;
	padding: 8px 12px;
	border: 1px solid var(--dltb-line);
	border-radius: var(--dltb-r);
	background: #fff;
	text-align: left;
}
.dltb-layer .dltb-d__bt:active { border-color: var(--dltb-c); background: var(--dltb-soft); }
.dltb-d__grid { gap: 10px; }

/* ================= Ô TÌM KIẾM v2: khung bo tròn, icon + ô nhập + nút xóa xếp cạnh nhau ================= */

.dltb-search {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	margin: 0;
	padding: 0 6px 0 14px !important;
	box-sizing: border-box;
	border: 1.5px solid transparent;
	border-radius: 21px;
	background: var(--dltb-bg);
}
.dltb-search:focus-within {
	background: #fff;
	border-color: var(--dltb-c);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dltb-c) 14%, transparent);
}
.dltb .dltb-search .dltb-search__ic,
.dltb-layer .dltb-search .dltb-search__ic {
	position: static !important;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0 !important;
	transform: none !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dltb-mute);
	pointer-events: none;
}
.dltb .dltb-search input.dltb-search__in[type="search"],
.dltb-layer .dltb-search input.dltb-search__in[type="search"] {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: 0 !important;
	font-size: 16px !important;
	line-height: normal !important;
	text-indent: 0 !important;
}
.dltb .dltb-search .dltb-search__x {
	position: static !important;
	flex: none;
	width: 32px;
	height: 32px;
	margin: 0 !important;
	transform: none !important;
}

/* khung gợi ý: luôn là một thẻ nổi dưới ô tìm kiếm */
.dltb .dltb-top .dltb-sugg,
.dltb-top .dltb-sugg {
	position: absolute !important;
	left: 10px !important;
	right: 10px !important;
	top: 56px !important;
	z-index: 40;
	margin: 0 !important;
	padding: 4px 14px 14px !important;
	background: #fff !important;
	border: 1px solid var(--dltb-line) !important;
	border-radius: var(--dltb-r) !important;
	box-shadow: 0 14px 32px rgba(20, 32, 46, .16) !important;
}
.dltb-sugg[hidden] { display: none !important; }

/* ================= THẺ SẢN PHẨM – sao chép CSS thật của theme Flatsome Child (/san-pham/) ================= */
.dltb { --dltb-card-r: 14px; }
.dltb-card { position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; background: #fff; border: 1px solid #e2edf1; border-radius: var(--dltb-card-r); text-align: left; box-shadow: 0 1px 3px rgba(20, 40, 70, .04); }
.dltb-card:not(.is-skel):hover, .dltb-card:not(.is-skel):active { border-color: #8cc3fc; box-shadow: 0 8px 20px rgba(0, 70, 150, .10); }
.dltb-card__img { position: relative; display: block; aspect-ratio: auto; height: 0; padding-top: 100%; background: #fff; border: 0; border-radius: var(--dltb-card-r) var(--dltb-card-r) 0 0; overflow: hidden; }
.dltb-card__imga { position: absolute; inset: 0; display: block; }
.dltb-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; object-fit: cover; }

.dltb-card__body { display: block; flex: 1; padding: 14px 16px 16px; gap: 0; text-align: left; }
.dltb-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 8px; }
.dltb-card__tags span { padding: 0; border-radius: 0; background: none; font-size: 10px; font-weight: 500; line-height: 1.5; color: #1b2e37; }
.dltb-card__tags span:first-child { color: #004e90; font-weight: 600; }
.dltb-card__tags span:not(:first-child) { padding: 2px 8px; border-radius: 99px; background: #e0eef5; color: #1b2e37; }
.dltb-card__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 5px; min-height: 0; font-size: 14px; line-height: 1.6; }
.dltb-card__t a { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.6; color: #212121; text-decoration: none; }









.dltb-card__act { display: flex; width: 100%; column-gap: 8px; margin-top: 12px; }
.dltb .dltb-card__act a { margin: 0; transition: all .25s ease; text-decoration: none; }
.dltb .dltb-card__detail {
	flex: 1; width: 100%; height: 36px; display: inline-flex; justify-content: center; align-items: center; padding: 8px 12px;
	border: 0; border-radius: 10px; background: #177dd1; color: #fff; font-size: 13px; font-weight: 500; line-height: 1;
}
.dltb .dltb-card__detail:hover, .dltb .dltb-card__detail:active { background: #0065b4; color: #fff; }
.dltb .dltb-card__phone {
	flex: none; width: 36px; height: 36px; display: inline-flex; justify-content: center; align-items: center;
	border: 1px solid #d2e1e6; border-radius: 10px; background: transparent; color: #212121;
}
.dltb .dltb-card__phone:hover { border-color: #0065b4; color: #0065b4; background: transparent; }
.dltb-card.is-skel .dltb-card__body { display: flex; flex-direction: column; gap: 8px; }

/* phân trang – khớp .woocommerce-pagination của theme */
.dltb-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 30px 10px 0; }
.dltb-pager[hidden] { display: none; }
.dltb .dltb-pg {
	min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #dce1f5; border-radius: 8px; background: #fff; color: #333;
	font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.dltb .dltb-pg--nav { font-size: 18px; }
.dltb .dltb-pg.is-on { background: #005fe1; border-color: #005fe1; color: #fff; }
.dltb .dltb-pg:disabled { opacity: .4; cursor: default; }
.dltb .dltb-pg--gap { border-color: transparent; background: transparent; min-width: 24px; padding: 0; color: #8a98a5; cursor: default; }
@media (max-width: 849px) { .dltb-grid { gap: 10px; } }



/* ================= SỬA GIAO DIỆN MOBILE (v-fix) ================= */

/* thân thẻ: flex dọc để nút luôn nằm đáy, thẳng hàng giữa các thẻ */
.dltb-card__body { display: flex; flex-direction: column; padding: 12px; }

.dltb-card__act { margin-top: auto; }
.dltb .dltb-card__detail { white-space: nowrap; padding: 8px 6px; font-size: 13px; }
.dltb .dltb-card__phone { min-width: 36px; }

/* thẻ trắng: ảnh nền trắng hòa vào thẻ */
.dltb-card__img img { mix-blend-mode: multiply; }

@media (max-width: 849px) {
	/* badge reCAPTCHA không bị thanh menu dưới che */
	.grecaptcha-badge { bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
}


/* ================= BẢN KHÔNG GIÁ / KHÔNG GIỎ HÀNG ================= */
.dltb-card__tags { margin-bottom: 6px; }
.dltb-card__brand { display: block; height: 22px; width: auto; max-width: 90px; margin: 0 0 8px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.dltb-card__model { margin: 0 0 12px; font-size: 12px; line-height: 1.4; color: #576c7e; letter-spacing: .02em; text-transform: uppercase; }
.dltb-card__model:empty { display: none; }
.dltb .dltb-card__zalo {
	flex: none; width: 36px; height: 36px; display: inline-flex; justify-content: center; align-items: center;
	border: 1px solid #d2e1e6; border-radius: 10px; background: transparent; color: #0068ff; font-size: 11px; font-weight: 700; line-height: 1;
}
.dltb .dltb-card__zalo:hover { border-color: #0068ff; background: #eef4ff; }

/* ================= YÊU CẦU BÁO GIÁ ================= */
.dltb-nav__n { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e5352b; color: #fff; font-size: 10px; font-style: normal; line-height: 17px; text-align: center; }
.dltb-nav__n[hidden] { display: none; }
.dltb-card__quote { display: block; width: 100%; margin: 8px 0 0; padding: 8px 6px; border: 1px dashed #8cc3fc; border-radius: 10px; background: #f3f9ff; color: #177dd1; font-size: 12.5px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.dltb-card__quote.is-on { border-style: solid; background: #177dd1; border-color: #177dd1; color: #fff; }
.dltb-qbtn.is-on { background: #0a7a3d; border-color: #0a7a3d; }
.dltb-q__body { flex: 1; overflow-y: auto; padding: 12px 14px 90px; -webkit-overflow-scrolling: touch; }
.dltb-q__empty { margin: 4px 0 14px; color: #576c7e; font-size: 14px; line-height: 1.5; }
.dltb-q__item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e2edf1; }
.dltb-q__item img, .dltb-q__noimg { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: contain; background: #f4f7f9; }
.dltb-q__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dltb-q__txt a { color: #212121; font-size: 13.5px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.dltb-q__txt small { color: #576c7e; font-size: 12px; }
.dltb-q__form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.dltb .dltb-q__in, .dltb-q__in { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #d2e1e6; border-radius: 10px; background: #fff; font-size: 16px; font-family: inherit; color: #212121; }
.dltb-q__in:focus { outline: 2px solid #8cc3fc; border-color: #177dd1; }
.dltb-q__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.dltb-q__msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.dltb-q__msg[hidden] { display: none; }
.dltb-q__msg.is-ok { background: #e7f6ec; color: #0a5c2e; }
.dltb-q__msg.is-bad { background: #fdeceb; color: #a3231b; }
.dltb-q__send { width: 100%; min-height: 44px; }
.dltb-q__alt { display: flex; gap: 8px; }
.dltb-q__alt .dltb-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }

/* ================= GỌN LẠI THẺ SẢN PHẨM (v3.1.1) ================= */
.dltb .dltb-card__img { padding-top: 88%; background: #fff; }
.dltb .dltb-card__img img { object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.dltb .dltb-card__body { display: flex; flex-direction: column; gap: 0; padding: 10px 12px 12px; }
.dltb .dltb-card__brand { height: 16px; max-width: 72px; margin: 0 0 6px; }
.dltb .dltb-card__brandtx { margin: 0 0 4px; color: #004e90; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dltb .dltb-card__t { margin: 0 0 4px; min-height: 0; font-size: 13.5px; line-height: 1.35; -webkit-line-clamp: 2; }
.dltb .dltb-card__t a { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.dltb .dltb-card__model { margin: 0 0 10px; font-size: 11px; line-height: 1.3; color: #7a8c99; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dltb .dltb-card__act { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.dltb .dltb-card__act > * { flex: 1 1 0; min-width: 0; height: 34px; margin: 0; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; box-sizing: border-box; }
.dltb .dltb-card__detail { width: auto; background: #177dd1; color: #fff; }
.dltb .dltb-card__quote { width: auto; border: 1px solid #177dd1; background: #fff; color: #177dd1; }
.dltb .dltb-card__quote.is-on { background: #e8f3fd; border-color: #177dd1; color: #0a5aa3; }
@media (min-width: 640px) { .dltb .dltb-card__t, .dltb .dltb-card__t a { font-size: 14px; } }

/* v3.1.2: ảnh nằm gọn trong khung, bỏ mã model trên thẻ */
.dltb .dltb-card__img { height: 0 !important; padding-top: 85% !important; overflow: hidden; }
.dltb .dltb-card__imga { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dltb .dltb-card__img img, .dltb .dltb-card__imga img {
	position: static !important; inset: auto !important; width: auto !important; height: auto !important;
	max-width: 100% !important; max-height: 100% !important; margin: 0 !important; padding: 10px !important;
	box-sizing: border-box; object-fit: contain !important; object-position: center !important;
}
.dltb .dltb-card__model { display: none; }
.dltb .dltb-card__t { margin-bottom: 10px; }

/* v3.1.5: chống tràn ngang khi theme đặt khối trong flex/grid (nội dung cuộn ngang làm khối phình rộng hơn màn hình) */
.dltb { width: 100%; min-width: 0; max-width: min(1200px, 100%); flex: 1 1 0%; overflow-x: clip; }
.dltb > *, .dltb-top, .dltb-bar, .dltb-search, .dltb-chips, .dltb-strip, .dltb-home, .dltb-grid, .dltb-meta, .dltb-active { min-width: 0; max-width: 100%; }
.dltb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .dltb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 850px) { .dltb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dltb-chips, .dltb-strip, .dltb-active { overflow-x: auto; }
.dltb-sugg { max-width: calc(100vw - 16px); box-sizing: border-box; }
html, body { max-width: 100%; }

/* =====================================================================
   v3.2.0 – TỐI ƯU GIAO DIỆN ĐIỆN THOẠI
   ===================================================================== */

@media (max-width: 849px) {

	/* 1) Tràn hết chiều rộng màn hình: bỏ lề của theme (trước đây thẻ chỉ rộng ~160px) */
	.dltb {
		width: 100vw;
		max-width: 100vw;
		flex: none;
		margin-left: calc(50% - 50vw);
		margin-right: 0;
	}

	/* 2) Bỏ khoảng trắng thừa phía trên (padding/margin của khung trang theme) */
	:is(.page-wrapper, .entry-content, .col, .col-inner, .row, .section, .section-content, .container, #content, #main, main, article, .hentry, .elementor-widget-container, .elementor-widget-shortcode, .elementor-element-populated):has(.dltb) {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}
	.dltb-page { padding: 0; margin: 0; }

	/* 3) Thanh trên cùng gọn hơn */
	.dltb-top { padding-top: 6px; }
	.dltb-bar { gap: 4px; padding: 0 8px 8px; }
	.dltb-ibtn { width: 40px; height: 40px; }
	.dltb-search { height: 40px; }

	/* 4) Hàng chip: gọn, có dải mờ báo hiệu còn cuộn được */
	.dltb-chips { gap: 6px; padding: 0 28px 8px 10px; scroll-padding-left: 10px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
	.dltb-chip { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 16px; }
	.dltb-strip { padding: 10px 10px 2px; }

	/* 5) Số lượng + sắp xếp */
	.dltb-meta { padding: 10px 10px 8px; }

	/* 6) Lưới sản phẩm 2 cột, sát lề hơn */
	.dltb-grid { gap: 8px; padding: 0 8px; }
}

/* ---- Ngành hàng ở trang chủ app ---- */
.dltb-ic__t { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.dltb-ic__c { display: none; font-size: 12px; line-height: 1.2; color: var(--dltb-mute); }

/* ít danh mục (≤ 4): ô lớn 2 cột, ảnh bên trái – tên và số máy bên phải */
.dltb-ic--few { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dltb-ic--few .dltb-ic__b {
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid var(--dltb-line);
	border-radius: 14px;
	background: #fff;
	text-align: left;
}
.dltb-ic--few .dltb-ic__b:active { border-color: var(--dltb-c); background: var(--dltb-soft); }
.dltb-ic--few .dltb-ic__i { flex: none; width: 52px; max-width: 52px; padding: 6px; border-radius: 12px; }
.dltb-ic--few .dltb-ic__t { align-items: flex-start; }
.dltb-ic--few .dltb-ic__n { font-size: 13.5px; font-weight: 600; -webkit-line-clamp: 2; }
.dltb-ic--few .dltb-ic__c { display: block; }
@media (min-width: 640px) { .dltb-ic--few { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Thẻ sản phẩm ---- */
.dltb .dltb-card__img { padding-top: 72% !important; } /* khung 4:3 – máy lạnh là ảnh ngang, đỡ phí chỗ */
.dltb .dltb-card__body { padding: 8px 10px 10px; }
.dltb .dltb-card .dltb-card__t {
	margin: 0 0 8px;
	-webkit-line-clamp: 3;       /* 3 dòng: thấy được công suất / mã model ở cuối tên */
	min-height: calc(1.35em * 2);
	word-break: break-word;
	hyphens: auto;
}
.dltb .dltb-card .dltb-card__t a { font-size: 13.5px; line-height: 1.35; font-weight: 600; }
.dltb .dltb-card__brand { height: 14px; max-width: 64px; margin: 0 0 4px; }

/* Nút: điện thoại xếp dọc, chữ không bao giờ bị cắt; màn rộng thì xếp ngang */
.dltb .dltb-card .dltb-card__act { flex-direction: column; gap: 6px; padding-top: 2px; }
.dltb .dltb-card .dltb-card__act > * {
	flex: none;
	width: 100%;
	height: 38px;
	padding: 0 8px;
	font-size: 13px;
	border-radius: 10px;
	touch-action: manipulation;
}
.dltb .dltb-card .dltb-card__quote { margin: 0; border-width: 1.5px; background: #fff; }
.dltb .dltb-card .dltb-card__quote.is-on { background: var(--dltb-c); border-color: var(--dltb-c); color: #fff; }
@media (min-width: 640px) {
	.dltb .dltb-card .dltb-card__act { flex-direction: row; }
	.dltb .dltb-card .dltb-card__act > * { flex: 1 1 0; width: auto; }
}

/* ---- Thanh dưới & lớp phủ ---- */
@media (max-width: 849px) {
	.dltb-nav__i { font-size: 11px; }
	.dltb-nav__i svg { width: 22px; height: 22px; }
	.dltb-more { width: calc(100% - 16px); margin-left: 8px; margin-right: 8px; }
}

/* Chạm: bỏ trễ 300ms và không bôi chọn chữ khi bấm nhanh */
.dltb button, .dltb-layer button, .dltb-nav a { touch-action: manipulation; }

/* ---------- form yêu cầu báo giá (v3.3.0) ---------- */
.dltb-q__form[hidden], .dltb-q__done[hidden] { display: none !important; }
.dltb-q__form { padding-top: 14px; border-top: 1px solid var(--dltb-line); }
.dltb-q__form > strong { font-size: 15px; }
.dltb-q__form textarea.dltb-q__in { resize: vertical; min-height: 76px; line-height: 1.4; }
.dltb-q__in:focus { border-color: var(--dltb-c); outline: 2px solid color-mix(in srgb, var(--dltb-c) 25%, transparent); }
.dltb-q__send:disabled { opacity: .6; }
.dltb-q__done { margin: 8px 0 16px; padding: 22px 16px; text-align: center; border-radius: var(--dltb-r); background: #e7f6ec; color: #0a5c2e; }
.dltb-q__done strong { display: block; font-size: 17px; }
.dltb-q__done p { margin: 8px 0 14px; line-height: 1.45; }
.dltb-q__alt { margin-top: 12px; }
.dltb-q__body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
