/* filter0211-ui.css: bộ lọc ?view=filter0211 (02/11). Chỉ dùng token --ak-* của brand (theme-brand/src/10-tokens.css), không thêm màu.
   Desktop (≥769px): thanh nút thả xuống trên lưới. Mobile (≤768px): nút "Lọc (n)" ở hàng Sắp xếp + bảng lọc trượt từ dưới lên. */
.f0211 { order:4; flex:1 1 100%; min-width:0; font-family:'Be Vietnam Pro',Arial,sans-serif; }
.f0211:empty { display:none; }
.f0211 button, .f0211-sheet button, .f0211-open { font-family:inherit; -webkit-tap-highlight-color:transparent; }
.f0211 :focus-visible, .f0211-sheet :focus-visible, .f0211-open:focus-visible { outline:2px solid var(--ak-focus); outline-offset:2px; }

/* Thanh lọc (desktop) */
.f0211-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px 0 0; border-top:1px solid var(--ak-line); }
.f0211-bar__t { display:inline-flex; align-items:center; gap:6px; margin-right:4px; color:var(--ak-ink); font-size:14px; font-weight:600; line-height:20px; }
.f0211-dd { position:relative; }
.f0211-btn { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 14px; border:1px solid var(--ak-line-strong); border-radius:var(--ak-radius-pill); background:var(--ak-bg); color:var(--ak-ink); font:500 14px/20px 'Be Vietnam Pro',Arial,sans-serif; cursor:pointer; white-space:nowrap; }
.f0211-btn:hover { border-color:var(--ak-ink); }
.f0211-btn.is-on, .f0211-btn[aria-pressed="true"] { border-color:var(--ak-solid); background:var(--ak-solid); color:var(--ak-on-solid); }
.f0211-btn[aria-expanded="true"] .f0211-caret { transform:rotate(180deg); }
.f0211-caret { transition:transform .15s; }
.f0211-badge { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:var(--ak-radius-pill); background:var(--ak-on-solid); color:var(--ak-solid); font:700 12px/1 'Be Vietnam Pro',Arial,sans-serif; }
.f0211-badge[hidden] { display:none; }
.f0211-pop { position:absolute; z-index:60; top:calc(100% + 6px); left:0; display:flex; flex-direction:column; gap:6px; min-width:240px; padding:10px; border:1px solid var(--ak-line); border-radius:var(--ak-radius-m); background:var(--ak-bg); box-shadow:var(--ak-shadow); }
.f0211-pop--r { left:auto; right:0; }
.f0211-pop[hidden] { display:none; }

/* Một lựa chọn (chip bật/tắt) – dùng chung cho thanh thả xuống và bảng lọc */
.f0211-o { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:0 14px; border:1px solid var(--ak-line-strong); border-radius:var(--ak-radius-s); background:var(--ak-bg); color:var(--ak-ink); font:500 14px/20px 'Be Vietnam Pro',Arial,sans-serif; text-align:left; cursor:pointer; }
.f0211-o:hover { border-color:var(--ak-ink); }
.f0211-o[aria-pressed="true"] { border-color:var(--ak-solid); background:var(--ak-solid); color:var(--ak-on-solid); }
.f0211-o[aria-disabled="true"] { border-style:dashed; color:var(--ak-muted); cursor:default; }
.f0211-o__n { color:var(--ak-muted); font-weight:400; font-variant-numeric:tabular-nums; }
.f0211-o[aria-pressed="true"] .f0211-o__n, .f0211-btn[aria-pressed="true"] .f0211-o__n { color:inherit; }
.f0211-tick { width:16px; height:16px; border:1.5px solid currentColor; border-radius:4px; flex:0 0 auto; }
[aria-pressed="true"] > .f0211-tick { background:currentColor; box-shadow:inset 0 0 0 3px var(--ak-solid); }

/* Hàng trạng thái: số kết quả + chip đang chọn + Xóa lọc */
.f0211-active { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; padding-top:10px; }
.f0211-active:not(.is-on) { display:none; }
.f0211-status { margin:0; color:var(--ak-ink); font:600 14px/20px 'Be Vietnam Pro',Arial,sans-serif; font-variant-numeric:tabular-nums; }
.f0211-chips { display:flex; flex-wrap:wrap; gap:8px; }
.f0211-chip { display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border:1px solid var(--ak-line-strong); border-radius:var(--ak-radius-pill); background:var(--ak-bg-soft); color:var(--ak-ink); font:500 13px/18px 'Be Vietnam Pro',Arial,sans-serif; cursor:pointer; position:relative; }
.f0211-chip::after { content:''; position:absolute; left:0; right:0; top:-4px; bottom:-4px; }
.f0211-chip:hover { border-color:var(--ak-ink); }
.f0211-clear { min-height:44px; padding:0 6px; border:0; background:none; color:var(--ak-cyan-ink); font:600 14px/20px 'Be Vietnam Pro',Arial,sans-serif; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.f0211-clear[hidden] { display:none; }

/* Lưới khi lọc: cùng class col3-grid/col5-grid nên thẻ y như cũ */
.f0211-grid[hidden], .f0211-more[hidden], .col5 [data-col5-more-box][hidden], .col5 .col3-pag[hidden], #Col5Grid[hidden] { display:none !important; }
.f0211-grid.is-busy { opacity:.55; transition:opacity .2s; }
.f0211-wait { grid-column:1/-1; width:100%; padding:40px 16px; text-align:center; color:var(--ak-muted); font:400 15px/22px 'Be Vietnam Pro',Arial,sans-serif; }
.f0211-retry { min-height:44px; margin-left:8px; padding:0 16px; border:1px solid var(--ak-line-strong); border-radius:var(--ak-radius-pill); background:var(--ak-bg); color:var(--ak-ink); font:inherit; cursor:pointer; }
.f0211-empty { width:100%; }
.f0211-more .col5-more__btn[hidden] { display:none; }

/* Nút mở bảng lọc (mobile) */
.f0211-open { display:none; align-items:center; gap:6px; min-height:44px; padding:0 14px; border:1px solid var(--ak-line-strong); border-radius:var(--ak-radius-pill); background:var(--ak-bg); color:var(--ak-ink); font:600 15px/20px 'Be Vietnam Pro',Arial,sans-serif; cursor:pointer; flex:0 0 auto; }
.f0211-open.is-on { border-color:var(--ak-solid); background:var(--ak-solid); color:var(--ak-on-solid); }
.f0211-open__n { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:var(--ak-radius-pill); background:var(--ak-on-solid); color:var(--ak-solid); font:700 12px/1 'Be Vietnam Pro',Arial,sans-serif; }
.f0211-open__n[hidden] { display:none; }

/* Bảng lọc trượt từ dưới lên */
.f0211-sheet { position:fixed; inset:0; z-index:100000; font-family:'Be Vietnam Pro',Arial,sans-serif; }
.f0211-sheet[hidden] { display:none; }
.f0211-sheet__bg { position:absolute; inset:0; background:rgba(10,11,13,.5); }
.f0211-sheet__panel { position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column; max-height:86vh; max-height:86dvh; border-radius:16px 16px 0 0; background:var(--ak-bg); color:var(--ak-ink); box-shadow:var(--ak-shadow); transform:translateY(100%); transition:transform .22s ease-out; }
.f0211-sheet.is-open .f0211-sheet__panel { transform:none; }
@media (prefers-reduced-motion:reduce) { .f0211-sheet__panel { transition:none; } }
.f0211-sheet__head { display:flex; align-items:center; justify-content:space-between; padding:8px 8px 8px 16px; border-bottom:1px solid var(--ak-line); }
.f0211-sheet__t { margin:0; color:var(--ak-ink); font:700 17px/24px 'Be Vietnam Pro',Arial,sans-serif; }
.f0211-x { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:var(--ak-radius-pill); background:none; color:var(--ak-ink); cursor:pointer; }
.f0211-sheet__body { flex:1 1 auto; overflow-y:auto; overscroll-behavior:contain; padding:4px 16px 16px; }
.f0211-grp { padding:12px 0 4px; }
.f0211-grp + .f0211-grp { border-top:1px solid var(--ak-line); }
.f0211-grp__t { margin:0 0 10px; color:var(--ak-ink); font:600 15px/22px 'Be Vietnam Pro',Arial,sans-serif; }
.f0211-grp__o { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.f0211-grp__o .f0211-o { padding:0 12px; font-size:14px; }
.f0211-o--stock { grid-column:1/-1; justify-content:flex-start; }
.f0211-o--stock .f0211-o__n { margin-left:auto; }
.f0211-sheet__foot { display:grid; grid-template-columns:auto 1fr; gap:12px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--ak-line); background:var(--ak-bg); }
.f0211-sheet__clear { min-height:48px; padding:0 16px; border:1px solid var(--ak-line-strong); border-radius:var(--ak-radius-pill); background:var(--ak-ghost); color:var(--ak-ghost-fg); font:600 15px/20px 'Be Vietnam Pro',Arial,sans-serif; cursor:pointer; }
.f0211-sheet__go { min-height:48px; padding:0 16px; border:0; border-radius:var(--ak-radius-pill); background:var(--ak-cta); color:var(--ak-cta-fg); box-shadow:var(--ak-cta-shine); font:700 15px/20px 'Be Vietnam Pro',Arial,sans-serif; cursor:pointer; }
html.f0211-lock, html.f0211-lock body { overflow:hidden !important; }
html.f0211-lock #anker-live-chat { display:none !important; } /* nút chat (z-index tối đa) đè nút "Xem N sản phẩm", như pi-qv */

@media (max-width:768px) {
  .f0211-bar { display:none; }
  .f0211-open { display:inline-flex; }
  .col5.f0211-on .col5-sortrow__count { display:none !important; }
  .col5.f0211-on .col5-sortrow { justify-content:space-between; }
  .f0211 { order:4; }
  .f0211-active, .f0211-active:not(.is-on) { display:flex; flex-wrap:wrap; gap:4px 8px; padding-top:0; }
  .f0211-status { flex:1 1 100%; font-weight:400; color:var(--ak-muted); font-size:13px; }
  .f0211-active.is-on .f0211-status { color:var(--ak-ink); font-weight:600; }
  .f0211-chips { flex:1 1 0; min-width:0; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding:4px 0; }
  .f0211-chips::-webkit-scrollbar { display:none; }
  .f0211-chips:empty { display:none; }
  .f0211-chip { white-space:nowrap; flex:0 0 auto; }
  .f0211-clear { flex:0 0 auto; white-space:nowrap; }
}

/* Trang tìm kiếm (bản xem trước): ô tìm lại ngay dưới tiêu đề */
.f0211-sform { order:3; flex:1 1 100%; display:flex; gap:8px; max-width:640px; margin:0; }
.f0211-sform__l { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.f0211-sform__i { flex:1 1 auto; min-width:0; min-height:44px; padding:0 14px; border:1px solid var(--ak-line-strong); border-radius:var(--ak-radius-s); background:var(--ak-bg); color:var(--ak-ink); font:400 15px/20px 'Be Vietnam Pro',Arial,sans-serif; }
.f0211-sform__i::placeholder { color:var(--ak-muted); opacity:1; }
.f0211-sform__b { flex:0 0 auto; min-height:44px; padding:0 20px; border:0; border-radius:var(--ak-radius-s); background:var(--ak-cta); color:var(--ak-cta-fg); box-shadow:var(--ak-cta-shine); font:600 15px/20px 'Be Vietnam Pro',Arial,sans-serif; cursor:pointer; }
.f0211-search .col5-sortrow:empty { display:none; }
@media (max-width:768px) { .f0211-sform { max-width:none; } }
