/* Shop / product category archive (Figma 02 · Trang danh mục, 03.1 · Bộ lọc đang mở) */
.ldp-shop { padding-bottom: 8px; }

/* Main banner (1320×360) */
.ldp-catbanner { margin-bottom: 20px; }
.ldp-catbanner__main { position: relative; display: flex; align-items: center; min-height: 360px; border-radius: var(--r-lg); overflow: hidden; background: #c41212 right center / cover no-repeat; }
.ldp-catbanner__main.is-custom { display: block; min-height: 0; }
.ldp-catbanner__main.is-custom img { display: block; width: 100%; height: auto; }
.ldp-catbanner__main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(160, 8, 8, .92) 0%, rgba(196, 18, 18, .75) 38%, rgba(196, 18, 18, 0) 62%); }
.ldp-catbanner__tx { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 640px; padding: 24px 56px; color: #fff; }
.ldp-catbanner__tag { padding: 5px 14px; border-radius: 999px; background: var(--yellow); color: var(--red-600); font: 700 14px/1.3 var(--font); text-transform: uppercase; letter-spacing: .3px; }
.ldp-catbanner__tx h2 { display: flex; flex-direction: column; margin: 0; font: 800 56px/1.2 var(--font); text-transform: uppercase; color: #fff; }
.ldp-catbanner__tx h2 em { font-style: normal; color: var(--yellow); }
.ldp-catbanner__tx p { margin: 0; font: 500 18px/1.5 var(--font); }
.ldp-catbanner__deals { display: flex; gap: 14px; flex-wrap: wrap; }
.ldp-catbanner__deal { display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 18px; border-radius: 10px; background: #fff; color: var(--red-600); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.ldp-catbanner__deal small { display: flex; flex-direction: column; font: 500 14px/1.15 var(--font); color: var(--n-900); }
.ldp-catbanner__deal small b { font: 800 15px/1.15 var(--font); color: var(--red-600); text-transform: uppercase; }
.ldp-catbanner__deal strong { font: 800 40px/1 var(--font); color: var(--red-600); }
.ldp-catbanner__note { font: 400 13px/1.4 var(--font); font-style: normal; opacity: .95; }
a.ldp-catbanner__main, a.ldp-catbanner__main:hover { color: #fff; text-decoration: none; }

/* 2 sub banners: colour panel left, real photo right (object-fit: contain) */
.ldp-catsub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.ldp-subbn { position: relative; display: flex; align-items: stretch; min-height: 180px; border-radius: var(--r-lg); background: #fff; color: #fff !important; overflow: hidden; }
.ldp-subbn__tx { position: relative; z-index: 1; flex: 0 0 64%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 22px 28px; }
.ldp-subbn--blue .ldp-subbn__tx { background: linear-gradient(90deg, #17549a 0%, #1f6fc5 70%, rgba(31, 111, 197, 0) 100%); }
.ldp-subbn--green .ldp-subbn__tx { background: linear-gradient(90deg, #0f6b3a 0%, #15803d 70%, rgba(21, 128, 61, 0) 100%); }
.ldp-subbn small { font: 700 14px/1.2 var(--font); color: var(--yellow); text-transform: uppercase; letter-spacing: .3px; }
.ldp-subbn b { font: 700 22px/1.3 var(--font); white-space: nowrap; }
.ldp-subbn__btn { margin-top: 2px; padding: 6px 14px; border-radius: 6px; background: var(--yellow); color: var(--red-600); font: 800 16px/1.3 var(--font); }
.ldp-subbn .ldp-subbn__img { position: absolute; right: 0; top: 0; width: 50.6%; height: 100%; object-fit: contain; background: #fff; }
.ldp-subbn:hover .ldp-subbn__btn { filter: brightness(1.05); }

/* Deal sốc */
.ldp-deal { padding: 16px 16px 16px; margin-bottom: 20px; border-radius: var(--r-lg); background: linear-gradient(100deg, #c41212 0%, #e31b1b 45%, #ff5a36 100%); }
.ldp-deal__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 4px 14px; }
.ldp-deal__head h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--yellow); font: 800 24px/1.15 var(--font); }
.ldp-deal__head h2 .ldp-icon { color: var(--yellow); }
.ldp-deal .ldp-countdown { gap: 6px; }
.ldp-deal .ldp-countdown b { min-width: 34px; height: 27px; border-radius: 4px; }
.ldp-deal__all { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: #fff !important; font: 600 14px/1 var(--font); }
.ldp-deal .ldp-card { border-color: transparent; }

/* Main box */
.ldp-shop__box { background: #fff; border: 1px solid var(--n-150); border-radius: var(--r-lg); padding: 24px; }
.ldp-shop__box + .ldp-shop__box { margin-top: 20px; }
.ldp-catprod { padding: 20px; }
.ldp-catinfo > :last-child { margin-bottom: 0; }
.ldp-shop__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ldp-shop .ldp-shop__title { margin: 0; font: 700 32px/1.25 var(--font); color: var(--blue-600); }
.ldp-shop__count { color: var(--n-500); font-size: 16px; }

/* Section titles on the archive: brand blue (Figma) */
.ldp-shop .ldp-section-title { color: var(--blue-600); }
.ldp-shop .ldp-section-title::before { background: var(--blue-600); }

/* Recently viewed strip (between category info and the product block) */
.ldp-shop__viewed .ldp-viewed { margin: 0; }
.ldp-shop__viewed .ldp-section-head { margin-bottom: 20px; }
.ldp-shop__viewed .ldp-mini img { width: 56px; height: 56px; }

/* Short description (always fully shown, no "Xem thêm") */
.ldp-catdesc { position: relative; margin-bottom: 18px; padding: 14px 18px; border-radius: var(--r-md); background: var(--blue-50); }
.ldp-catdesc__body { font-size: 14px; line-height: 1.6; color: var(--n-700); }
.ldp-catdesc .ldp-catdesc__body p { margin: 0; }
.ldp-catdesc .ldp-catdesc__body p + p { margin-top: 8px; }
.ldp-longdesc__body { position: relative; max-height: 260px; overflow: hidden; font-size: 14px; line-height: 1.6; color: var(--n-700); transition: max-height .3s var(--ease); }
.ldp-longdesc__body:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(255, 255, 255, 0), #fff); height: 80px; }
.ldp-longdesc__body.is-open { max-height: none; }
.ldp-longdesc__body h1, .ldp-longdesc__body h2, .ldp-longdesc__body h3 { color: var(--blue-600); }
.ldp-catdesc__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--blue-600); font: 600 14px/1.4 var(--font); cursor: pointer; }
.ldp-catdesc__more[aria-expanded="true"] .ldp-icon { transform: rotate(180deg); }
.ldp-longdesc { display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--n-150); border-radius: var(--r-lg); padding: 24px 32px; }
.ldp-longdesc__tag { margin-bottom: 14px; padding: 6px 18px; border: 1px solid var(--blue-600); border-radius: var(--r-sm); color: var(--blue-600); font: 700 14px/1.3 var(--font); text-transform: uppercase; }
.ldp-longdesc__body { width: 100%; max-width: 900px; }
.ldp-longdesc .ldp-catdesc__more { margin: 14px auto 0; padding: 8px 20px; border: 1px solid var(--blue-600); border-radius: var(--r-sm); }

/* Sub-category chips */
.ldp-subcats { display: flex; flex-wrap: wrap; gap: 10px; }
.ldp-subcat { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 6px 14px 6px 6px; border: 1px solid var(--n-200); border-radius: var(--r-md); background: #fff; font: 500 15px/1.3 var(--font); color: var(--n-900) !important; transition: border-color .15s var(--ease); }
.ldp-subcat:hover { border-color: var(--blue-500); color: var(--blue-600) !important; }
.ldp-subcat img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: var(--n-100); }

/* Filter row: Lọc + all 13 brand logos in one line */
.ldp-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.ldp-filter__btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--n-300); border-radius: var(--r-sm); background: #fff; font: 500 15px/1 var(--font); color: var(--n-800); cursor: pointer; }
.ldp-filter__btn:hover, .ldp-filter__btn[aria-expanded="true"], .ldp-filter__btn.is-active { border-color: var(--blue-600); color: var(--blue-600); }
.ldp-filter__btn b { min-width: 18px; height: 18px; border-radius: 9px; background: var(--blue-600); color: #fff; font-size: 11px; display: grid; place-items: center; }
.ldp-filter__chev { display: none; }
.ldp-filter__brands { flex: 1; display: flex; gap: 8px; flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.ldp-filter__brands::-webkit-scrollbar { display: none; }
.ldp-brandchip { flex: 1 0 76px; display: inline-grid; place-items: center; height: 40px; padding: 3px 4px; border: 1px solid var(--n-200); border-radius: var(--r-sm); background: #fff; font: 600 13px/1 var(--font); overflow: hidden; }
.ldp-brandchip img { max-height: 32px; width: auto; max-width: 100%; object-fit: contain; }
.ldp-brandchip:hover { border-color: var(--blue-500); }
.ldp-brandchip.is-active { border-color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue-600); background: var(--blue-50); }

/* Filter modal */
.ldp-fm { position: fixed; inset: 0; z-index: 150; }
.ldp-fm[hidden] { display: none; }
.ldp-fm__backdrop { position: absolute; inset: 0; background: rgba(26, 28, 36, .45); }
.ldp-fm__dlg { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); width: min(960px, calc(100vw - 32px)); max-width: none; max-height: min(800px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 33, 64, .22); margin: 0; padding: 0; }
.ldp-fm__dlg.is-anchored { transform: none; }
.ldp-fm__dlg.is-anchored::before { content: ""; position: absolute; top: -8px; left: var(--notch, 36px); width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 3px 0 0 0; }
.ldp-fm__head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 71px; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; }
.ldp-fm__head b { font: 700 18px/1.3 var(--font); color: #1f2937; }
.ldp-fm__close { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font: 500 14px/1 var(--font); color: #1f2937; cursor: pointer; }
.ldp-fm__close:hover { border-color: var(--n-400); }
.ldp-fm__body { flex: 1; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; overscroll-behavior: contain; padding: 20px 28px 20px 20px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.ldp-fm__sec { margin: 0; padding: 0; border: 0; min-width: 0; }
.ldp-fm__sec legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font: 600 16px/20px var(--font); color: #1f2937; }
.ldp-fm__sec legend + * { clear: both; }
.ldp-fm__brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ldp-fm__brand, .ldp-fm__chip { position: relative; cursor: pointer; }
.ldp-fm__brand input, .ldp-fm__chip input { position: absolute; opacity: 0; pointer-events: none; }
.ldp-fm__brand span { display: grid; place-items: center; height: 42px; padding: 7px 15px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; transition: border-color .15s var(--ease); }
.ldp-fm__brand img { max-height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.ldp-fm__brand:hover span, .ldp-fm__chip:hover span { border-color: #2f80ed; }
a.ldp-fm__brand { display: block; }
.ldp-fm__brand input:checked + span, .ldp-fm__brand.is-active span { border-color: #2f80ed; box-shadow: inset 0 0 0 .5px #2f80ed; }
.ldp-fm__brand.is-active span::after, .ldp-fm__brand input:checked + span::after { content: "✓"; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #2f80ed; color: #fff; font: 700 11px/18px var(--font); text-align: center; }
.ldp-fm__brand input:focus-visible + span, .ldp-fm__chip input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.ldp-fm__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ldp-fm__chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font: 400 14px/18px var(--font); color: #1f2937; white-space: nowrap; transition: border-color .15s var(--ease); }
.ldp-fm__chip input:checked + span { border-color: #2f80ed; box-shadow: inset 0 0 0 .5px #2f80ed; background: #eaf2fd; color: #2f80ed; font-weight: 500; }
.ldp-fm__price { display: grid; grid-template-columns: 261px 380px; align-items: center; gap: 16px 29px; margin-top: 16px; }
.ldp-fm__hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; font: 400 14px/18px var(--font); color: #2f80ed; white-space: nowrap; }
.ldp-range { position: relative; height: 24px; }
.ldp-range::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #e2e8f0; }
.ldp-range__fill { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #2f80ed; left: 0; right: 0; }
.ldp-range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 24px; }
.ldp-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #2f80ed; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; }
.ldp-range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #2f80ed; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; }
.ldp-range input::-webkit-slider-runnable-track { background: none; }
.ldp-fm__pin { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ldp-fm__pin i { flex: 1; }
.ldp-fm__pin label { display: inline-flex; align-items: center; min-width: 110px; height: 40px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font: 500 14px/18px var(--font); color: #1f2937; cursor: text; }
.ldp-fm__pin label:focus-within { border-color: #2f80ed; }
.ldp .ldp-fm__pin input { flex: none; field-sizing: content; min-width: 1ch; width: 9ch; max-width: 12ch; height: 100% !important; border: 0 !important; padding: 0 !important; outline: 0; box-shadow: none !important; background: none !important; font: 500 14px var(--font); color: #1f2937; }
.ldp-fm__foot { position: relative; display: flex; justify-content: center; gap: 16px; padding: 14px 20px; border-top: 1px solid #e2e8f0; box-shadow: 0 -4px 10px rgba(15, 33, 64, .06); border-radius: 0 0 14px 14px; }
.ldp-fm__reset, .ldp-fm__go { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: 8px; font: 500 15px/19px var(--font); }
.ldp-fm__reset { min-width: 160px; background: #fff; color: #d70018 !important; border: 1px solid #d70018; }
.ldp-fm__reset:hover { background: var(--red-50); }
.ldp-fm__go { min-width: 180px; background: #2f80ed; color: #fff; border: 1px solid #2f80ed; font-weight: 700; cursor: pointer; }
.ldp-fm__go:hover { background: #1f6fd8; border-color: #1f6fd8; }
.ldp-fm__go b { font-weight: 700; margin: 0 .25em; }
.ldp-fm__go.is-loading b { opacity: .5; }
html.ldp-fm-open { overflow: hidden; }

/* Sort */
.ldp-sort { display: flex; align-items: center; gap: 14px; padding: 0 0 16px; }
.ldp-sort__label { flex: none; font: 400 15px/1.2 var(--font); color: var(--n-500); }
.ldp-sort__tabs { display: flex; align-items: center; flex-wrap: wrap; }
.ldp-sort__tabs > * + *::before { content: ""; width: 4px; height: 4px; margin: 0 14px; border-radius: 50%; background: var(--n-300); flex: none; }
.ldp-sort__tabs > * { display: inline-flex; align-items: center; }
.ldp-sort__tab { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0; border: 0; background: none; color: var(--n-800) !important; font: 400 15px/1.2 var(--font); white-space: nowrap; cursor: pointer; }
.ldp-sort__tab:hover { color: var(--blue-600) !important; }
.ldp-sort__tab.is-active { color: var(--blue-600) !important; font-weight: 600; }
.ldp-sort__price { position: relative; }
.ldp-sort button.ldp-sort__tab, .ldp-sort button.ldp-sort__tab:hover, .ldp-sort button.ldp-sort__tab:focus { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; outline-offset: 2px; }
.ldp-sort__menu { position: absolute; left: -12px; top: calc(100% + 8px); z-index: 20; width: 200px; padding: 6px; border-radius: var(--r-md); background: #fff; box-shadow: 0 10px 30px rgba(15, 33, 64, .16); }
.ldp-sort__menu[hidden] { display: none; }
.ldp-sort__menu a { display: block; padding: 10px 12px; border-radius: var(--r-sm); font: 400 15px/1.4 var(--font); color: var(--n-800) !important; }
.ldp-sort__menu a:hover, .ldp-sort__menu a.is-active { background: var(--blue-50); color: var(--blue-600) !important; }

/* Grid + load more */
.ldp-shop .ldp-grid { margin: 0; padding: 0; list-style: none; }
.ldp-shop .ldp-grid::before, .ldp-shop .ldp-grid::after { content: none !important; }
.ldp-loadmore { min-width: 260px; }
.ldp-loadmore.is-loading { opacity: .6; pointer-events: none; }
.js-loadmore .ldp-shop .woocommerce-pagination { display: none; }
.ldp-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 16px; text-align: center; color: var(--n-500); }
.ldp-empty .ldp-icon { color: var(--n-300); }
.ldp-empty a:not(.ldp-btn) { color: var(--red-500); font-weight: 600; }

/* Khám phá nhóm sản phẩm khác */
.ldp-shop > .ldp-section { margin: 20px 0 0; }
.ldp-sibcats { padding: 20px 24px 24px; background: #fff; border: 1px solid var(--n-150); border-radius: var(--r-lg); }
.ldp-sibcats__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ldp-sibcat { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--n-200); border-radius: var(--r-md); min-width: 0; }
.ldp-sibcat:hover { border-color: var(--blue-500); }
.ldp-sibcat img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--r-sm); background: var(--n-100); flex: none; }
.ldp-sibcat > span { min-width: 0; }
.ldp-sibcat b { display: block; font: 500 15px/1.4 var(--font); color: var(--n-900); }
.ldp-sibcat small { color: var(--n-500); font-size: 12px; }

@media (max-width: 1200px) {
	.ldp-sibcats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	/* Banner: compact (Figma mobile: headline + "Từ 5 cái -15%" pill) */
	.ldp-catbanner { margin-bottom: 16px; }
	.ldp-catbanner__main { min-height: 150px; border-radius: var(--r-md); background-position: 70% center; }
	.ldp-catbanner__main::before { background: linear-gradient(90deg, rgba(160, 8, 8, .95) 0%, rgba(196, 18, 18, .7) 55%, rgba(196, 18, 18, .1) 100%); }
	.ldp-catbanner__tx { gap: 10px; padding: 16px; max-width: 70%; }
	.ldp-catbanner__tag, .ldp-catbanner__tx p, .ldp-catbanner__note, .ldp-catbanner__deal:first-child { display: none; }
	.ldp-catbanner__tx h2 { font-size: 22px; line-height: 1.3; }
	.ldp-catbanner__deal { height: 34px; gap: 8px; padding: 0 10px; border-radius: 6px; }
	.ldp-catbanner__deal small { font-size: 12px; }
	.ldp-catbanner__deal small b { display: none; }
	.ldp-catbanner__deal strong { font-size: 20px; }
	.ldp-catbanner__deal strong::before { content: "-"; }
	/* Sub banners: one per screen, swipe */
	.ldp-catsub { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin: 0 calc(-1 * var(--gutter)) 12px; padding: 0 var(--gutter); }
	.ldp-catsub::-webkit-scrollbar { display: none; }
	.ldp-subbn { flex: 0 0 100%; scroll-snap-align: center; min-height: 110px; border-radius: var(--r-md); }
	.ldp-subbn__tx { flex-basis: 66%; gap: 6px; padding: 14px 16px; }
	.ldp-subbn small { font-size: 12px; }
	.ldp-subbn b { font-size: 15px; white-space: normal; }
	.ldp-subbn__btn { font-size: 12px; padding: 3px 8px; }
	/* Deal: title + countdown + "Xem tất cả" on one line */
	.ldp-deal { padding: 12px 12px 16px; border-radius: 0; margin: 0 calc(-1 * var(--gutter)) 12px; }
	.ldp-deal__head { gap: 8px; flex-wrap: nowrap; margin: 0 0 12px; }
	.ldp-deal__head h2 { font-size: 19px; white-space: nowrap; }
	.ldp-deal__head h2 .ldp-icon { width: 18px; height: 18px; }
	.ldp-deal__cat, .ldp-deal .ldp-countdown span { display: none; }
	.ldp-deal .ldp-countdown { gap: 4px; margin: 0; }
	.ldp-deal .ldp-countdown b { min-width: 26px; height: 24px; font-size: 13px; }
	.ldp-deal__all { font-size: 13px; white-space: nowrap; }
	/* Boxes run edge to edge */
	.ldp-shop__box { padding: 16px; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; }
	.ldp-shop__box + .ldp-shop__box { margin-top: 12px; }
	.ldp-shop__head { gap: 6px; margin-bottom: 14px; }
	.ldp-shop .ldp-shop__title { font-size: 24px; }
	.ldp-shop__count { font-size: 14px; }
	.ldp-shop__count-tx { display: none; }
	.ldp-catdesc { margin-bottom: 14px; padding: 12px 14px; }
	.ldp-subcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
	.ldp-subcats::-webkit-scrollbar { display: none; }
	.ldp-subcat { flex: none; height: 46px; font-size: 13px; }
	.ldp-subcat img { width: 34px; height: 34px; }
	.ldp-shop__viewed .ldp-section-head { margin-bottom: 12px; }
	/* Product block: white filter/sort bar, grid on the page background */
	.ldp-catprod { padding: 0; background: none; border: 0; }
	.ldp-catprod__bar { padding: 12px 16px; margin-bottom: 12px; background: #fff; border-bottom: 1px solid var(--n-150); }
	.ldp-catprod > :not(.ldp-catprod__bar) { margin-left: var(--gutter); margin-right: var(--gutter); }
	.ldp-filter { margin: 0 -16px 12px 0; }
	.ldp-filter__btn { height: 38px; padding: 0 10px; }
	.ldp-filter__chev { display: block; }
	.ldp-filter__brands { padding-right: 16px; }
	.ldp-brandchip { flex: 0 0 76px; height: 38px; }
	.ldp-fm__dlg, .ldp-fm__dlg.is-anchored { left: 0; right: 0; bottom: 0; top: auto; transform: none; width: auto; max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
	.ldp-fm__dlg.is-anchored::before { content: none; }
	.ldp-fm__head { min-height: 54px; }
	.ldp-fm__head b { font-size: 16px; }
	.ldp-fm__close { right: 12px; height: 32px; padding: 0 10px; }
	.ldp-fm__body { gap: 18px; padding: 16px; }
	.ldp-fm__brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.ldp-fm__chips { gap: 8px; }
	.ldp-fm__chip span { height: 36px; padding: 0 12px; font-size: 13px; }
	.ldp-fm__price { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ldp-fm__pin { grid-column: 1; }
	.ldp-fm__pin label { width: auto; flex: 1; min-width: 0; }
	.ldp-fm__pin i { flex: 0 0 10px; height: 1px; background: var(--n-300); }
	.ldp-fm__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
	.ldp-fm__reset, .ldp-fm__go { flex: 1; min-width: 0; }
	.ldp-sort { padding: 0; }
	.ldp-sort__label, .ldp-sort__more { display: none; }
	.ldp-sort__tabs { flex: 1; flex-wrap: nowrap; justify-content: space-between; }
	.ldp-sort__tabs > * + *::before { content: none; }
	.ldp-sort__tab { font-size: 14px; }
	.ldp-sort__menu { left: auto; right: 0; }
	.ldp-shop > .ldp-section { margin: 12px calc(-1 * var(--gutter)) 0; }
	.ldp-sibcats { padding: 16px; border-radius: 0; border-left: 0; border-right: 0; }
	.ldp-sibcats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.ldp-sibcat { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 12px 6px; text-align: center; }
	.ldp-sibcat img { width: 48px; height: 48px; }
	.ldp-sibcat b { font-size: 13px; font-weight: 400; }
	.ldp-longdesc { padding: 16px; border-radius: 0; border-left: 0; border-right: 0; align-items: stretch; }
	.ldp-longdesc__tag { display: none; }
	.ldp-longdesc .ldp-catdesc__more { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
	.ldp-loadmore { min-width: 0; width: 100%; }
}

/* 30/11 Tuyết: ghim bộ lọc mobile kiểu Shopee */
.ldp-sortpin { display: none; }
@media (max-width: 991px) {
	.ldp-sortpin { position: fixed; left: 0; right: 0; top: var(--hdr-live, 140px); z-index: 85; display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--n-150); box-shadow: 0 4px 10px rgba(15, 26, 51, .08); transform: translateY(-110%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .2s var(--ease), opacity .2s, visibility 0s .2s; }
	.ldp-sortpin.is-on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .2s var(--ease), opacity .2s; }
	.ldp-sortpin button, .ldp-sortpin button:hover, .ldp-sortpin button:focus { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--n-200); border-radius: var(--r-sm); background: #fff; color: var(--n-800); font: 500 14px/1 var(--font); white-space: nowrap; box-shadow: none; }
	.ldp-sortpin__filter { flex: none; }
	.ldp-sortpin__btn { flex: 1; min-width: 0; justify-content: space-between; }
	.ldp-sortpin__btn span { overflow: hidden; text-overflow: ellipsis; }
	.ldp-sortpin__btn b { color: var(--blue-600); font-weight: 600; }
	.ldp-sortpin__btn[aria-expanded="true"] { border-color: var(--blue-600); }
	.ldp-sortpin__menu { position: absolute; left: 0; right: 0; top: 100%; width: auto; margin: 0; padding: 4px 0; border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 12px 24px rgba(15, 26, 51, .15); }
	.ldp-sortpin__menu a { padding: 13px 16px; border-radius: 0; border-bottom: 1px solid var(--n-100); font-size: 15px; }
	.ldp-sortpin__menu a:last-child { border-bottom: 0; }
	.ldp-sortpin__menu a.is-active { background: none; color: var(--red-500) !important; font-weight: 600; }
}
