/* Bo loc trai v2 /shop, /collection (common/pb-filter.blade.php, PB_FILTER_V2) - thread #17fa70e2, spec v6.4 khoi 2 */
:root {
    --pbf-primary: #0b5179;
    --pbf-primary-dk: #094364;
    --pbf-secondary: #A7165C;
    --pbf-text: #222;
    --pbf-muted: #595959;
    --pbf-line: #e1e1e1;
    --pbf-hover: #f5f5f5;
    --pbf-border: #D6DADF;
    --pbf-radio: #8C8C8C;
    --pbf-sel-bg: #EEF4FB;
    --pbf-sel-hover: #DCE8F6;
    --pbf-mark: #FFF1C2;
}

.pbf-bar, .pbf-panel, .pbf-sheet-sort, .pbf-chips {
    font-family: 'Roboto', Helvetica, sans-serif;
    color: var(--pbf-text);
}
.pbf-bar, .pbf-bar *, .pbf-panel, .pbf-panel *, .pbf-sheet-sort, .pbf-sheet-sort *, .pbf-chips, .pbf-chips *,
.pbf-on .category-filter-left.col-3 {
    box-sizing: border-box;
}
.pbf-bar button, .pbf-panel button, .pbf-sheet-sort button, .pbf-chips button {
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    cursor: pointer;
    background: none;
    border: 0;
    color: inherit;
    line-height: 1.2;
    text-align: left;
}
.pbf-bar button:focus-visible, .pbf-panel button:focus-visible, .pbf-panel input:focus-visible, .pbf-panel a.pbf-val:focus-visible,
.pbf-sheet-sort button:focus-visible, .pbf-chips button:focus-visible {
    outline: 2px solid var(--pbf-primary);
    outline-offset: 2px;
}
.pbf-panel [hidden], .pbf-bar [hidden], .pbf-sheet-sort[hidden], .pbf-sheet-sort [hidden] {
    display: none !important;
}

/* ---------- badge, chip, clear all ---------- */
.pbf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--pbf-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.pbf-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 4px;
}
.pbf-chips .pbf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px 0 14px;
    border-radius: 16px;
    background: var(--pbf-sel-bg);
    color: var(--pbf-primary-dk);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.pbf-chips .pbf-chip:hover { background: var(--pbf-sel-hover); }
.pbf-chips .pbf-chip:hover svg { color: var(--pbf-primary-dk); }
.pbf-clearall, .pbf-chips .pbf-clearall {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 6px;
    color: var(--pbf-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

/* ---------- thanh cong cu (desktop theme) ---------- */
.pbf-bar-d {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    min-height: 40px;
}
.pbf-bar-d .pbf-chips { flex: 1 1 auto; min-width: 0; padding: 4px 4px 4px 0; }
.pbf-showing {
    margin-left: auto;
    font-size: 13px;
    color: var(--pbf-muted);
    white-space: nowrap;
}
.pbf-chips + .pbf-showing { margin-left: 0; }
.pbf-sort { position: relative; flex: 0 0 auto; }
.pbf-bar .pbf-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--pbf-border);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.pbf-sort-btn .pbf-chev, .pbf-gbtn .pbf-chev, .pbf-more .pbf-chev { transition: transform .2s; color: var(--pbf-muted); flex: 0 0 auto; }
.pbf-sort-btn[aria-expanded="true"] .pbf-chev { transform: rotate(180deg); }
.pbf-sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    width: 250px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--pbf-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(17, 17, 17, .14);
}
.pbf-sort-menu .pbf-sort-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
}
.pbf-sort-menu .pbf-sort-opt:hover { background: var(--pbf-hover); }
.pbf-sort-opt.is-active { font-weight: 700; color: var(--pbf-primary-dk); }
.pbf-sort-opt .pbf-check { color: var(--pbf-primary); }

/* ---------- khung loc ---------- */
.pbf-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 0 8px;
    border-bottom: 1px solid var(--pbf-line);
}
.pbf-title { font-size: 17px; font-weight: 700; }
.pbf-panel .pbf-head .pbf-clearall { margin-left: auto; }
.pbf-title-n { font-weight: 700; }
.pbf-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    border: 1px solid var(--pbf-border) !important;
    background: #fff !important;
    flex: 0 0 auto;
}
.pbf-panel .pbf-head .pbf-close { margin-left: auto; }
.pbf-panel .pbf-head .pbf-clearall + .pbf-close { margin-left: 4px; }
.pbf-close svg { width: 18px !important; height: 18px !important; min-width: 18px; flex: 0 0 18px; display: block; }
.pbf-ctx { margin: 10px 0 4px; font-size: 13px; color: var(--pbf-muted); }
.pbf-foot { margin: 14px 0 4px; font-size: 12px; color: var(--pbf-muted); }
.pbf-chips-in { padding: 6px 0 8px; }

.pbf-group { border-bottom: 1px solid var(--pbf-line); }
.pbf-gbtn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    padding: 0 4px;
}
.pbf-gname { font-size: 15px; font-weight: 700; color: var(--pbf-text); flex: 0 1 auto; white-space: nowrap; }
.pbf-gsel {
    margin-left: auto;
    max-width: 104px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: var(--pbf-primary);
}
.pbf-gbtn .pbf-chev { margin-left: auto; }
.pbf-gsel + .pbf-chev { margin-left: 0; }
.pbf-gbtn[aria-expanded="true"] .pbf-chev { transform: rotate(180deg); }
.pbf-gbody { padding: 0 0 12px; }

.pbf-list, .pbf-results { list-style: none; margin: 0; padding: 0; }
.pbf-list > li, .pbf-results > li { margin: 0; padding: 0; }
.pbf-val {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 36px;
    padding: 0 8px 0 6px;
    border-radius: 8px;
    font-size: 14px;
}
.pbf-panel .pbf-sm { display: none; }
.pbf-panel a.pbf-val, .pbf-panel a.pbf-val:hover, .pbf-panel a.pbf-val:focus { color: inherit; text-decoration: none; line-height: 1.2; }
.pbf-val:hover { background: var(--pbf-hover); }
.pbf-val::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--pbf-radio);
    border-radius: 50%;
    background: #fff;
}
.pbf-radio {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--pbf-radio);
    border-radius: 50%;
    background: #fff;
}
.pbf-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pbf-text); }
.pbf-name mark { background: var(--pbf-mark); color: inherit; padding: 0; }
.pbf-cnt {
    flex: 0 0 auto;
    min-width: 32px;
    text-align: right;
    font-size: 12px;
    color: var(--pbf-muted);
    font-variant-numeric: tabular-nums;
}
.pbf-val:not(.is-sel):hover .pbf-cnt { font-size: 0; }
.pbf-val:not(.is-sel):hover .pbf-cnt::after { content: "\2192"; font-size: 16px; color: var(--pbf-primary); }
.pbf-val.is-sel { background: var(--pbf-sel-bg); }
.pbf-val.is-sel .pbf-name { font-weight: 700; }
.pbf-val.is-sel::before { border-color: var(--pbf-primary-dk); background: var(--pbf-primary-dk); box-shadow: inset 0 0 0 3.5px #fff; }
.pbf-group:not(.is-multi) .pbf-val.is-sel::after {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 1px solid var(--pbf-border);
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pbf-group:not(.is-multi) .pbf-val.is-sel:hover::after { border-color: var(--pbf-primary-dk); }
.is-multi .pbf-val::before { border-radius: 4px; }
.is-multi .pbf-val.is-sel::before {
    box-shadow: none;
    background: var(--pbf-primary-dk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.pbf-group[data-color] .pbf-val::before { flex-basis: 16px; width: 16px; height: 16px; border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45); background: #fff; }
.pbf-group[data-color] .pbf-val.is-sel::before { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45), 0 0 0 2px #fff, 0 0 0 4px var(--pbf-primary-dk); }
.pbf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4px; }
.pbf-grid .pbf-val { gap: 6px; height: auto; min-height: 36px; padding: 2px 4px; font-size: 13px; text-align: left; }
.pbf-grid .pbf-name { flex: 0 1 auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.pbf-grid .pbf-cnt { min-width: 0; text-align: left; }
.pbf-grid .pbf-val:not(.is-sel):hover .pbf-cnt { font-size: 12px; }
.pbf-grid .pbf-val:not(.is-sel):hover .pbf-cnt::after { content: none; }
.pbf-grid .pbf-val.is-sel::after { display: none; }
.pbf-val.is-loading { background: var(--pbf-sel-bg); }
.pbf-val.is-loading::before, .pbf-sort-opt.is-loading .pbf-radio {
    border: 2px solid var(--pbf-primary);
    border-top-color: transparent;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
    animation: pbf-spin .7s linear infinite;
}
.pbf-sort-opt.is-loading .pbf-radio::after { display: none; }

/* ---------- hang Gender (L1) ---------- */
.pbf-gender { padding: 10px 0 12px; border-bottom: 1px solid var(--pbf-line); }
.pbf-gender-t { display: block; margin: 0 0 8px; padding: 0 4px; font-size: 15px; font-weight: 700; }
/* row facet (audit 22/10 diem 4): cung hinh gia tri loc .pbf-val - cao 36/44, bo 8, khong vien, cham radio; van la <a>/<button> nhu cu */
.pbf-gender-row { display: block; }
.pbf-gender-cell, .pbf-panel .pbf-gender-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 8px 0 6px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--pbf-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}
.pbf-gender-cell::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--pbf-radio);
    border-radius: 50%;
    background: #fff;
}
a.pbf-gender-cell:hover, button.pbf-gender-cell:hover { background: var(--pbf-hover); color: var(--pbf-text); text-decoration: none; }
.pbf-gender-cell.is-sel, .pbf-gender-cell.is-sel:hover { background: var(--pbf-sel-bg); color: var(--pbf-text); font-weight: 700; }
.pbf-gender-cell.is-sel::before { border-color: var(--pbf-primary-dk); background: var(--pbf-primary-dk); box-shadow: inset 0 0 0 3.5px #fff; }
.pbf-gender-cell.is-sel svg { display: none; }
.pbf-gender-cell.is-sel::after {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-left: auto;
    border: 1px solid var(--pbf-border);
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pbf-gender-cell.is-sel:hover::after { border-color: var(--pbf-primary-dk); }
.pbf-gender-cell.is-off { color: var(--pbf-radio); cursor: default; }
.pbf-gender-cell.is-off::before { border-style: dashed; background: none; }
.pbf-gender-cell.is-loading { background: var(--pbf-sel-bg); }
.pbf-gender-cell.is-loading::before {
    border: 2px solid var(--pbf-primary);
    border-top-color: transparent;
    background: #fff;
    box-shadow: none;
    animation: pbf-spin .7s linear infinite;
}
.pbf-panel a.pbf-gender-cell:focus-visible { outline: 2px solid var(--pbf-primary); outline-offset: 2px; }

/* ---------- khoi "Remove a filter to see more:" cuoi luoi (M2) ---------- */
.pbf-broaden, .pbf-broaden * { box-sizing: border-box; }
.pbf-broaden { margin: 16px 0 8px; font-family: 'Roboto', Helvetica, sans-serif; color: var(--pbf-text); }
.pbf-broaden-t { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.pbf-broaden-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pbf-broaden-list > li { margin: 0; padding: 0; }
.pbf-broaden-a, .pbf-broaden button.pbf-broaden-a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 560px;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--pbf-border);
    border-radius: 10px;
    background: #fff;
    color: var(--pbf-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
}
.pbf-broaden-a:hover { border-color: var(--pbf-primary-dk); background: var(--pbf-sel-bg); color: var(--pbf-text); text-decoration: none; }
.pbf-broaden-a:focus-visible { outline: 2px solid var(--pbf-primary); outline-offset: 2px; }
.pbf-broaden-a svg { flex: 0 0 14px; color: var(--pbf-primary-dk); }
.pbf-broaden-l { font-weight: 700; color: var(--pbf-primary-dk); }
.pbf-broaden-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pbf-broaden-dot { color: var(--pbf-muted); }
.pbf-broaden-c { font-size: 13px; color: var(--pbf-muted); font-variant-numeric: tabular-nums; }
@keyframes pbf-spin { to { transform: rotate(360deg); } }

.pbf-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    margin-top: 4px;
    padding: 0 6px;
    color: var(--pbf-primary) !important;
    font-size: 13px;
    font-weight: 700;
}
.pbf-more .pbf-chev { width: 16px; height: 16px; color: var(--pbf-primary); }
.pbf-more[aria-expanded="true"] .pbf-chev { transform: rotate(180deg); }
.pbf-skel { height: 30px; margin: 3px 6px; border-radius: 6px; background: linear-gradient(90deg, #f1f1f1 25%, #e6e6e6 50%, #f1f1f1 75%); background-size: 200% 100%; animation: pbf-shim 1s linear infinite; }
@keyframes pbf-shim { to { background-position: -200% 0; } }

.pbf-search { position: relative; margin: 2px 4px 6px; }
.pbf-search .pbf-mag { position: absolute; left: 10px; top: 50%; margin-top: -8px; color: var(--pbf-muted); pointer-events: none; }
.pbf-search .pbf-q {
    width: 100%;
    height: 40px;
    padding: 0 34px 0 32px;
    border: 1px solid var(--pbf-radio);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--pbf-text);
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}
.pbf-search .pbf-q::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.pbf-search .pbf-q:focus { outline: 2px solid var(--pbf-primary); outline-offset: 0; border-color: var(--pbf-primary); }
.pbf-search .pbf-qx {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pbf-muted);
}
.pbf-qcount { margin: 0 6px 4px; min-height: 0; font-size: 12px; color: var(--pbf-muted); }
.pbf-qcount:empty { margin: 0; }

/* thanh tien trinh chuyen trang */
.pbf-nbar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2147483000;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0b5179, #A7165C);
    transition: width 2.4s cubic-bezier(.1, .7, .2, 1);
    pointer-events: none;
}
.pbf-nbar.is-run { width: 82%; }

html.pbf-lock, html.pbf-lock body { overflow: hidden !important; }

/* ---------- PC >= 1280: sidebar 252px dinh, cuon rieng ---------- */
@media (min-width: 1280px) {
    .pbf-on.category-has-sidebar { --left: 252px; }
    .pbf-on .category-filter-left.col-3 {
        position: sticky;
        top: 12px;
        display: block;
        width: 252px;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        /* KHONG overscroll-behavior: contain - o dau trang sidebar chua dinh (top ~310 + cao 100vh-24 > vh): contain chan lan banh xe tren sidebar
           sang trang -> cuon het vung trong la ket, ~300px cuoi (nhom Price) nam duoi man hinh (#17fa70e2 scan 22/10 animal d1440) */
        padding: 0 4px 4px 4px;
    }
    .pbf-panel-desktop .pbf-backdrop, .pbf-panel-desktop .pbf-close, .pbf-panel-desktop .pbf-ctx,
    .pbf-panel-desktop .pbf-chips-in, .pbf-panel-desktop .pbf-foot, .pbf-bar-d .pbf-open { display: none !important; }
    .pbf-panel-desktop .pbf-head .pbf-clearall { margin-left: auto; }
}

/* ---------- tablet 768-1279 (theme desktop): thanh dinh 64px + ngan keo phai 420px ---------- */
@media (max-width: 1279px) {
    .pbf-on.category-has-sidebar { display: block; }
    .pbf-on .category-filter-left.col-3 { display: contents !important; }
    .pbf-on .category-filter-right.col-9 { width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
    .pbf-bar-d {
        position: sticky;
        top: 0;
        z-index: 50;
        height: 64px;
        margin: 0 0 12px;
        padding: 0 4px;
        background: #fff;
        border-bottom: 1px solid var(--pbf-line);
    }
    .pbf-bar-d .pbf-showing { display: none; }
    .pbf-bar-d .pbf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .pbf-bar-d .pbf-chips::-webkit-scrollbar { display: none; }
    .pbf-bar-d .pbf-sort { margin-left: auto; }
    .pbf-bar .pbf-open, .pbf-bar-d .pbf-sort-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 48px;
        padding: 0 16px;
        border: 1.5px solid #222;
        border-radius: 12px;
        background: #fff;
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    .pbf-bar-d .pbf-sort-pre { display: none; }

    .pbf-panel-desktop {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        height: 100dvh;
        z-index: 1000;
        visibility: hidden;
        transition: visibility 0s linear .2s;
    }
    .pbf-panel-desktop.is-open { visibility: visible; transition: none; }
    .pbf-panel-desktop .pbf-dlg {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        width: 420px;
        max-width: 100%;
        background: #fff;
        border-radius: 20px 0 0 20px;
        transform: translateX(100%);
        transition: transform .2s ease;
    }
    .pbf-panel-desktop.is-open .pbf-dlg { transform: none; }
    .pbf-panel-desktop .pbf-head { padding: 14px 16px 12px 20px; }
    .pbf-panel-desktop .pbf-title { font-size: 20px; }
    .pbf-panel-desktop .pbf-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 20px; }
}
.pbf-backdrop { display: none; }
@media (max-width: 1279px) {
    .pbf-panel-desktop .pbf-backdrop {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(17, 17, 17, .42);
        opacity: 0;
        transition: opacity .2s;
    }
    .pbf-panel-desktop.is-open .pbf-backdrop { opacity: 1; }
}

/* ---------- mobile (theme mobile): thanh dinh 64px + bang toan man hinh + bang Sort tu day ---------- */
.pbf-bar-m {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 64px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid var(--pbf-line);
}
.pbf-bar-m .pbf-open, .pbf-bar-m .pbf-sort-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border: 1.5px solid #222 !important;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}
.pbf-bar-m .pbf-open:only-child { grid-column: 1 / -1; }
.pbf-chips-m { flex-wrap: nowrap; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
.pbf-chips-m::-webkit-scrollbar { display: none; }

.pbf-panel-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100dvh;
    z-index: 1000;
    visibility: hidden;
    transition: visibility 0s linear .2s;
}
.pbf-panel-mobile.is-open { visibility: visible; transition: none; }
.pbf-panel-mobile .pbf-dlg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    transform: translateY(100%);
    transition: transform .2s ease;
}
.pbf-panel-mobile.is-open .pbf-dlg { transform: none; }
.pbf-panel-mobile .pbf-head { padding: 10px 12px 10px 16px; }
.pbf-panel-mobile .pbf-title { font-size: 20px; }
.pbf-panel-mobile .pbf-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.pbf-sheet-sort { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; }
.pbf-sheet-sort .pbf-backdrop {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(17, 17, 17, .42);
}
.pbf-sort-dlg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 86vh;
    max-height: 86dvh;
    overflow-y: auto;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 20px 20px 0 0;
    animation: pbf-up .2s ease;
}
@keyframes pbf-up { from { transform: translateY(100%); } }
.pbf-grab { display: block; width: 36px; height: 4px; margin: 0 auto 6px; border-radius: 2px; background: var(--pbf-border); }
.pbf-sort-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.pbf-sort-title { font-size: 17px; font-weight: 700; }
.pbf-sort-dlg .pbf-sort-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 48px;
    padding: 0 4px;
    font-size: 16px;
}
.pbf-sort-dlg .pbf-radio { flex-basis: 20px; width: 20px; height: 20px; }
.pbf-sort-dlg .pbf-sort-opt.is-active .pbf-radio { border-color: var(--pbf-primary-dk); }
.pbf-sort-dlg .pbf-sort-opt.is-active .pbf-radio::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--pbf-primary-dk);
}

/* ---------- cam ung ---------- */
@media (pointer: coarse) {
    .pbf-val { height: 44px; font-size: 15px; }
    .pbf-grid .pbf-val { min-height: 44px; font-size: 15px; }
    .pbf-gender-cell, .pbf-panel .pbf-gender-cell { height: 44px; font-size: 15px; }
    a.pbf-gender-cell:not(.is-sel):hover, button.pbf-gender-cell:not(.is-sel):hover { background: none; }
    .pbf-val:not(.is-sel):hover { background: none; }
    .pbf-val:not(.is-sel):hover .pbf-cnt { font-size: 12px; }
    .pbf-val:not(.is-sel):hover .pbf-cnt::after { content: none; }
    .pbf-search .pbf-q { height: 44px; font-size: 16px; }
    .pbf-chips .pbf-chip { height: 44px; border-radius: 22px; }
    .pbf-clearall, .pbf-chips .pbf-clearall { min-height: 44px; padding: 0 10px; }
    .pbf-more { min-height: 44px; }
}
/* nut (i) tren the 36x36: vung cham 48x48 (khong doi hinh), cung cach group-tag.blade.php */
@media (hover: none), (pointer: coarse) {
    .list-product .product-item-image-wrapper > .product-item-info::after,
    .category-list-product-wrapper .list-product .product-item-info::after { content: ""; position: absolute; top: -6px; right: -6px; bottom: -6px; left: -6px; }
}

/* ---------- giam chuyen dong ---------- */
@media (prefers-reduced-motion: reduce) {
    .pbf-panel-desktop .pbf-dlg, .pbf-panel-mobile .pbf-dlg, .pbf-panel-desktop, .pbf-panel-mobile,
    .pbf-backdrop, .pbf-chev, .pbf-nbar { transition: none !important; }
    .pbf-sort-dlg, .pbf-skel { animation: none !important; }
    .pbf-val.is-loading::before, .pbf-sort-opt.is-loading .pbf-radio, .pbf-gender-cell.is-loading::before { animation: none !important; border-top-color: var(--pbf-primary); }
}

/* ---------- o mau nhom Color (theo slug; slug khong co trong bang -> o trang vien xam) ---------- */
.pbf-group .pbf-val[data-c="black"]::before { background: #111; }
.pbf-group .pbf-val[data-c="white"]::before { background: #fff; }
.pbf-group .pbf-val[data-c="gray"]::before, .pbf-group .pbf-val[data-c="grey"]::before { background: #9e9e9e; }
.pbf-group .pbf-val[data-c="red"]::before { background: #d32f2f; }
.pbf-group .pbf-val[data-c="maroon"]::before { background: #7b1e2b; }
.pbf-group .pbf-val[data-c="pink"]::before { background: #f48fb1; }
.pbf-group .pbf-val[data-c="purple"]::before { background: #7b3fa0; }
.pbf-group .pbf-val[data-c="blue"]::before { background: #1e63c4; }
.pbf-group .pbf-val[data-c="navy"]::before { background: #1f2a5a; }
.pbf-group .pbf-val[data-c="light-blue"]::before { background: #8ec5f0; }
.pbf-group .pbf-val[data-c="green"]::before { background: #2e8b3e; }
.pbf-group .pbf-val[data-c="yellow"]::before { background: #f5d33b; }
.pbf-group .pbf-val[data-c="orange"]::before { background: #f08a24; }
.pbf-group .pbf-val[data-c="brown"]::before { background: #7a4b2a; }
.pbf-group .pbf-val[data-c="beige"]::before, .pbf-group .pbf-val[data-c="sand"]::before { background: #e3d3b4; }
.pbf-group .pbf-val[data-c="gold"]::before { background: #c9a227; }
.pbf-group .pbf-val[data-c="silver"]::before { background: #c0c0c0; }
.pbf-group .pbf-val[data-c="multicolor"]::before, .pbf-group .pbf-val[data-c="multi-color"]::before { background: conic-gradient(#d32f2f, #f5d33b, #2e8b3e, #1e63c4, #7b3fa0, #d32f2f); }
.pbf-group .pbf-val[data-c="rainbow"]::before, .pbf-group .pbf-val[data-c="multi"]::before { background: conic-gradient(#e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); }
.pbf-group .pbf-val[data-c="pastel-rainbow"]::before { background: conic-gradient(#f8b4c0, #fdd5a8, #fff2a8, #c3ecb2, #aed8f5, #d4c1f0, #f8b4c0); }
.pbf-group .pbf-val[data-c="neon-colors"]::before, .pbf-group .pbf-val[data-c="neon"]::before { background: linear-gradient(135deg, #39ff14 0 33%, #ff2fd1 33% 66%, #00e5ff 66%); }
.pbf-group .pbf-val[data-c="cream"]::before, .pbf-group .pbf-val[data-c="ivory"]::before { background: #f6eedb; }
.pbf-group .pbf-val[data-c="tan"]::before, .pbf-group .pbf-val[data-c="khaki"]::before { background: #c8a97e; }
.pbf-group .pbf-val[data-c="olive"]::before { background: #6b6b2a; }
.pbf-group .pbf-val[data-c="royal"]::before, .pbf-group .pbf-val[data-c="royal-blue"]::before { background: #2850c8; }
.pbf-group .pbf-val[data-c="berry"]::before { background: #8e2453; }
.pbf-group .pbf-val[data-c="coral"]::before { background: #f47c6a; }
.pbf-group .pbf-val[data-c="peach"]::before { background: #f9c8a4; }
.pbf-group .pbf-val[data-c="lavender"]::before { background: #b9a6dc; }
.pbf-group .pbf-val[data-c="moss"]::before { background: #7a8450; }
.pbf-group .pbf-val[data-c="ash"]::before { background: #c9c9c4; }
.pbf-group .pbf-val[data-c="charcoal"]::before { background: #3d3f42; }
.pbf-group .pbf-val[data-c="teal"]::before, .pbf-group .pbf-val[data-c="turquoise"]::before { background: #18908f; }
.pbf-group .pbf-val[data-c="mint"]::before { background: #a8e2c8; }
.pbf-group .pbf-val[data-c="burgundy"]::before, .pbf-group .pbf-val[data-c="wine"]::before { background: #6d1a2e; }
.pbf-group .pbf-val[data-c="mustard"]::before { background: #d4a72c; }
.pbf-group .pbf-val[data-c="sky-blue"]::before { background: #87c3ec; }
.pbf-group .pbf-val[data-c="forest-green"]::before { background: #24572f; }
.pbf-group .pbf-val[data-c="magenta"]::before, .pbf-group .pbf-val[data-c="hot-pink"]::before { background: #d6338a; }
.pbf-group .pbf-val[data-c="gold"]::before { background: linear-gradient(135deg, #e6c34d, #b38a1e); }
.pbf-group .pbf-val[data-c="silver"]::before { background: linear-gradient(135deg, #e3e3e3, #a7a7a7); }
.pbf-group .pbf-val[data-c="clear"]::before, .pbf-group .pbf-val[data-c="transparent"]::before { background: #fff; background-image: linear-gradient(45deg, #e3e3e3 25%, transparent 25%, transparent 75%, #e3e3e3 75%), linear-gradient(45deg, #e3e3e3 25%, transparent 25%, transparent 75%, #e3e3e3 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px; }
