/* Danh mục + bộ lọc W02, kết quả tìm W04.02. */

.qdr-shop__head { padding: 12px 16px 0; max-width: var(--qdr-max); margin: 0 auto; }
.qdr-crumb { font-size: 12.5px; color: var(--qdr-slate); }
.qdr-crumb a { color: var(--qdr-slate); text-decoration: none; }
.qdr-crumb a:hover { color: var(--qdr-red-deep); }
.qdr-shop__head h1 { font-size: 22px; font-weight: 700; margin: 4px 0 0; line-height: 1.25; color: var(--qdr-ink); }
.qdr-desc { margin-top: 4px; font-size: 13.5px; color: var(--qdr-slate); }
.qdr-desc__text p { margin: 0 0 6px; }
.qdr-desc.is-clamped .qdr-desc__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qdr-desc__more { border: 0; background: none; padding: 0; min-height: 36px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--qdr-red-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.qdr-shop__body { max-width: var(--qdr-max); margin: 0 auto; }
.qdr-shop__list { padding: 0 16px; min-width: 0; }
.qdr-shop__list.is-loading { opacity: .5; pointer-events: none; transition: opacity .15s ease; }

/* Thanh Sắp xếp / Lọc: dính dưới header trên điện thoại */
.qdr-toolbar { display: flex; gap: 8px; padding: 12px 0; position: sticky; top: 53px; background: #fff; z-index: 40; align-items: center; }
.admin-bar .qdr-toolbar { top: 99px; }
.qdr-tool {
	flex: 1; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--qdr-tap);
	border-radius: var(--qdr-pill); border: 1.5px solid var(--qdr-input); background: #fff; font: inherit; font-size: 14px; font-weight: 600;
	color: var(--qdr-ink); cursor: pointer; padding: 0 12px; margin: 0;
}
.qdr-tool.is-on { border-color: var(--qdr-red-deep); color: var(--qdr-red-deep); }
.qdr-tool--sort select {
	appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; font-weight: 600; color: inherit; padding: 0; margin: 0;
	cursor: pointer; min-height: 40px; box-shadow: none;
}
.qdr-tool--sort select:focus { outline: none; }
.qdr-tool--sort:focus-within { outline: 3px solid var(--qdr-focus); outline-offset: 2px; }
.qdr-toolbar__count { display: none; }

/* Chip đang lọc */
.qdr-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 12px; }
.qdr-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px 0 12px; border-radius: var(--qdr-pill);
	background: var(--qdr-blush); color: var(--qdr-wine); font-size: 13px; font-weight: 600; text-decoration: none;
}
.qdr-chip:hover { color: var(--qdr-wine); background: #FFD3DD; }
.qdr-chip__x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--qdr-pill); }
.qdr-chip--clear { background: none; color: var(--qdr-slate); text-decoration: underline; padding: 0 8px; }
.qdr-chip--clear:hover { background: none; color: var(--qdr-ink); }

/* Xem thêm */
.qdr-more { display: flex; justify-content: center; padding: 24px 0 8px; }
.qdr-more .qdr-btn { min-width: 220px; }

/* Không có kết quả */
.qdr-empty { text-align: center; padding: 24px 8px 8px; display: grid; justify-items: center; gap: 8px; }
.qdr-empty__masc { width: 120px; height: auto; }
.qdr-empty h2 { font-size: 19px; margin: 8px 0 0; color: var(--qdr-ink); }
.qdr-empty p { color: var(--qdr-slate); font-size: 14.5px; max-width: 42ch; margin: 0; }
.qdr-empty__acts { display: grid; gap: 10px; width: 100%; max-width: 360px; margin-top: 8px; }

/* ───── Ngăn lọc (điện thoại) ───── */
.qdr-filter { position: fixed; inset: 0; z-index: 110; display: none; }
.qdr-filter.is-open { display: block; }
.qdr-sheet {
	position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: var(--qdr-r-xl) var(--qdr-r-xl) 0 0; max-height: 78vh;
	display: flex; flex-direction: column; box-shadow: 0 -12px 32px -12px rgba(0, 0, 0, .25);
}
@media (prefers-reduced-motion: no-preference) {
	.qdr-filter.is-open:not(.is-staged) .qdr-sheet { animation: qdr-sheet-up .22s cubic-bezier(.2, .8, .2, 1); }
	@keyframes qdr-sheet-up { from { transform: translateY(40px); } to { transform: none; } }
}
.qdr-sheet__grab { width: 40px; height: 5px; border-radius: var(--qdr-pill); background: #D6D8DE; margin: 10px auto 0; }
.qdr-sheet__h { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 4px 20px; border-bottom: 1px solid var(--qdr-line); }
.qdr-sheet__h b { font-size: 18px; }
.qdr-sheet__b { overflow-y: auto; padding: 4px 20px 12px; }
.qdr-sheet__f { display: flex; gap: 10px; padding: 12px 16px 20px; border-top: 1px solid var(--qdr-line); }
.qdr-sheet__f .qdr-btn--ghost { flex: 0 0 112px; }
.qdr-sheet__f .qdr-btn--pri-sm { flex: 1; }
.qdr-fgroup { padding: 14px 0; border-bottom: 1px solid var(--qdr-line); }
.qdr-fgroup:last-child { border: 0; }
.qdr-fgroup h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--qdr-ink); }
.qdr-fgroup .qdr-switch-row { text-decoration: none; color: var(--qdr-ink); }
.qdr-fgroup span.qdr-sw { display: inline-block; }
.qdr-sw.is-on { background: var(--qdr-red-deep); }
.qdr-sw.is-on::after { transform: translateX(20px); }
.qdr-filter.is-busy .qdr-sheet__b { opacity: .6; }

/* ───── Máy tính: cột lọc bên trái, lưới 4 cột ───── */
@media (min-width: 900px) {
	.qdr-shop__head { padding: 24px var(--qdr-gutter) 0; }
	.qdr-shop__head h1 { font-size: 30px; }
	.qdr-desc { font-size: 15px; max-width: 80ch; }
	.qdr-shop__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 16px var(--qdr-gutter) 0; }
	.qdr-shop__list { padding: 0; }
	.qdr-toolbar { position: static; padding: 0 0 16px; }
	.qdr-tool { flex: none; }
	.qdr-tool--filter { display: none; }
	.qdr-toolbar__count { display: block; margin-left: auto; color: var(--qdr-slate); font-size: 14px; }

	.qdr-filter { position: static; display: block; z-index: auto; }
	.qdr-filter .qdr-scrim, .qdr-sheet__grab, .qdr-sheet__h .qdr-ib, .qdr-sheet__f .qdr-btn--pri-sm { display: none; }
	.qdr-sheet { position: static; max-height: none; border-radius: 0; box-shadow: none; animation: none; }
	.qdr-sheet__h { padding: 0 0 8px; }
	.qdr-sheet__b { padding: 0; overflow: visible; }
	.qdr-sheet__f { padding: 16px 0 0; border: 0; }
	.qdr-sheet__f .qdr-btn--ghost { flex: 1; }
	.qdr-fgroup .qdr-opt { min-height: 40px; font-size: 13.5px; }
}
