/* Dau trang v2 /shop /collection (common/pb-header.blade.php), thread #17fa70e2, spec v6.4 khoi 3 */
.pbh {
    --pbh-text: #222;
    --pbh-body: #444;
    --pbh-muted: #595959;
    --pbh-primary: #0b5179;
    --pbh-primary-dk: #094364;
    --pbh-border: #D6DADF;
    --pbh-hover: #f5f5f5;
    --pbh-occ-bg: #f1f1f1;
    --pbh-occ-hover: #e6e6e6;
    --pbh-trend: #258635;
    --pbh-sep: #8C8C8C;
    --pbh-prog-bg: #EEF0F3;
    --pbh-btn: 34px;
    --pbh-chip-h: 40px;
    color: var(--pbh-text);
    padding-top: 14px;
}
.pbh *, .pbh *::before, .pbh *::after { box-sizing: border-box; }
.pbh a:focus-visible, .pbh button:focus-visible { outline: 2px solid var(--pbh-primary); outline-offset: 1px; }

.pbh-bc { position: relative; margin: 0 0 10px; }
.pbh-bc-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    font-size: 13px;
    line-height: 20px;
    height: 20px;
}
.pbh-bc-list::-webkit-scrollbar { display: none; }
.pbh-bc-item { display: flex; align-items: center; flex: 0 0 auto; margin: 0; padding: 0; }
.pbh-bc-item a { color: var(--pbh-body); text-decoration: none; }
.pbh-bc-item a:hover { color: var(--pbh-primary); text-decoration: underline; }
.pbh-bc-item [aria-current] { color: var(--pbh-text); font-weight: 700; }
.pbh-bc-sep { flex: 0 0 13px; width: 13px; height: 13px; margin: 0 6px; color: var(--pbh-sep); }
.pbh-bc::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    opacity: 0;
}
.pbh-bc.is-more::after { opacity: 1; }

.pbh-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; row-gap: 8px; margin: 0 0 10px; }
.pbh .pbh-h1 {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pbh-text);
    text-transform: none;
}
.pbh-row > .pbh-rail { flex: 1 1 0; min-width: 50%; }

.pbh-intro { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font-size: 15px; line-height: 24px; color: var(--pbh-body); }
.pbh-intro-txt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbh-intro-txt * { font-size: inherit !important; line-height: inherit; }
.pbh-intro:not(.is-open) .pbh-intro-txt * { display: inline; margin: 0; padding: 0; }
.pbh-intro:not(.is-open) .pbh-intro-txt br,
.pbh-intro:not(.is-open) .pbh-intro-txt img { display: none; }
.pbh-intro:not(.is-open) .pbh-intro-txt p + p::before { content: ' '; }
.pbh-intro.is-open { display: block; }
.pbh-intro.is-open .pbh-intro-txt { white-space: normal; overflow: visible; }
.pbh-intro.is-open .pbh-intro-txt p { margin: 0 0 8px; }
.pbh-more {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--pbh-primary);
    text-decoration: underline;
    cursor: pointer;
}
.pbh-more[hidden] { display: none; }
@media (pointer: coarse) {
    .pbh-more { position: relative; z-index: 1; }
    .pbh-more::after { content: ''; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; margin-top: -22px; }
}

.pbh-rail { position: relative; min-width: 0; }
.pbh-track {
    display: flex;
    gap: 8px;
    margin: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 40px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.pbh-track::-webkit-scrollbar { display: none; }
.pbh-track > li { display: flex; align-items: center; flex: 0 0 auto; gap: 4px; margin: 0; padding: 0; scroll-snap-align: start; }
.pbh-rail.is-ovf .pbh-track { margin-right: calc(var(--pbh-btn) + 6px); }
.pbh-rail::before, .pbh-rail::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    transition: opacity .15s;
}
.pbh-rail::before { left: 0; width: 32px; background: linear-gradient(to left, rgba(255, 255, 255, 0), #fff); }
.pbh-rail::after { right: calc(var(--pbh-btn) + 6px + var(--pbh-all-w, 0px)); width: 56px; background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff); }
.pbh-rail.can-prev::before, .pbh-rail.can-next::after { opacity: 1; }
.pbh-d .pbh-rail.can-prev .pbh-track { clip-path: inset(0 0 0 var(--pbh-btn)); }
.pbh-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--pbh-btn);
    height: var(--pbh-btn);
    margin: calc(var(--pbh-btn) / -2) 0 0;
    padding: 0;
    border: 1px solid var(--pbh-border);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    color: var(--pbh-text);
    cursor: pointer;
}
.pbh-nav[hidden] { display: none; }
.pbh-prev { left: 0; }
.pbh-next { right: var(--pbh-all-w, 0px); }
.pbh-ico { width: 16px; height: 16px; }

.pbh-chip { flex: 0 0 auto; white-space: nowrap; text-decoration: none; }
.pbh-chip:hover { text-decoration: none; }
.pbh-type {
    display: inline-flex;
    align-items: center;
    height: var(--pbh-chip-h);
    padding: 0 16px;
    border: 1px solid var(--pbh-border);
    border-radius: 38px;
    background: #fff;
    color: var(--pbh-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}
.pbh-type:hover { border-color: var(--pbh-text); background: var(--pbh-hover); color: var(--pbh-text); }
.pbh .pbh-type:focus-visible { outline: 2px solid var(--pbh-primary); outline-offset: -1px; }
.pbh-type.is-cur, .pbh-type.is-cur:hover { background: var(--pbh-text); border-color: var(--pbh-text); color: #fff; }

.pbh-occ-row { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.pbh-occ-row > .pbh-rail { flex: 1 1 0; }
.pbh-occ-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pbh-muted);
}
.pbh .oi { flex: 0 0 auto; width: 20px; height: 20px; color: var(--pbh-primary); }
.pbh .oi-lbl { width: 16px; height: 16px; }
.pbh-occ {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--pbh-chip-h);
    padding: 0 14px 0 10px;
    border-radius: 38px;
    background: var(--pbh-occ-bg);
    color: var(--pbh-primary-dk);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}
.pbh-occ:hover { background: var(--pbh-occ-hover); color: var(--pbh-primary-dk); }
.pbh-occ.is-cur, .pbh-type.is-cur { cursor: default; }
.pbh-occ.is-cur, .pbh-occ.is-cur:hover { background: var(--pbh-primary-dk); color: #fff; }
.pbh .pbh-occ.is-cur .oi { color: #fff; }
.pbh-x { flex: 0 0 16px; width: 16px; height: 16px; }
.pbh-occ-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--pbh-border);
    border-radius: 16px;
    background: #fff;
    color: var(--pbh-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.pbh-occ-x:hover { border-color: var(--pbh-primary-dk); color: var(--pbh-primary-dk); }
.pbh-occ-x-t { display: none; }
.pbh-track > .is-trend-li { position: relative; }
.pbh-occ.is-trend { padding-right: 36px; }
.pbh-trend-ic {
    position: absolute;
    top: 50%;
    right: 12px;
    display: flex;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    cursor: pointer;
}
.pbh .pbh-trend-ic .oi-tr { width: 20px; height: 20px; color: var(--pbh-trend); }
.pbh-occ.is-cur .pbh-trend-ic { position: static; flex: 0 0 auto; margin: 0; cursor: default; }
.pbh .pbh-occ.is-cur .pbh-trend-ic .oi-tr { color: #8fe3a2; }
.pbh-trend-lbl { font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--pbh-trend); padding: 0 2px; }
.pbh-track > .pbh-trend-sep { width: 1px; height: 24px; margin: 0 4px; background: var(--pbh-border); align-self: center; }

.pbh-rail.is-all, .pbh-rail.is-ovf { display: flex; align-items: center; }
.pbh-rail > .pbh-track { flex: 1 1 auto; min-width: 0; }
.pbh-all {
    flex: 0 0 auto;
    height: var(--pbh-chip-h);
    margin: 0 0 0 8px;
    padding: 0 14px;
    border: 1px solid var(--pbh-border);
    border-radius: 20px;
    background: #fff;
    color: var(--pbh-primary-dk);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.pbh-all:hover { border-color: var(--pbh-primary-dk); }
.pbh-all[hidden] { display: none; }
.pbh-rail.is-all { align-items: flex-start; }
.pbh-rail.is-all .pbh-track { flex-wrap: wrap; overflow: visible; margin-right: 0; scroll-snap-type: none; }
.pbh-rail.is-all::before, .pbh-rail.is-all::after { opacity: 0; }
.pbh-d .pbh-rail.is-all .pbh-track { clip-path: none; }
.pbh-rail.is-all .pbh-all { margin-top: 4px; }

.pbh-skip { position: absolute; left: 0; top: 0; z-index: 5; }
.pbh-skip-a {
    position: absolute;
    left: -10000px;
    top: 0;
    white-space: nowrap;
    padding: 10px 14px;
    background: #fff;
    border: 2px solid var(--pbh-primary);
    border-radius: 8px;
    color: var(--pbh-primary-dk);
    font-size: 14px;
    font-weight: 700;
}
.pbh-skip-a:focus { left: 0; }
.pbh-row, .pbh-m { position: relative; }
.pbh-sheet-head { display: none; }
html.pbh-lock, html.pbh-lock body { overflow: hidden !important; }

@media (max-width: 1279px) {
    .pbh { --pbh-btn: 38px; }
}
@media (pointer: coarse) {
    .pbh { --pbh-chip-h: 44px; --pbh-btn: 44px; }
    .pbh-occ-x { width: 44px; height: 44px; border-radius: 22px; }
}

.pbh-m { padding: 12px 16px 0; }
.pbh-m .pbh-bc { margin-bottom: 6px; }
.pbh-m .pbh-row { margin-bottom: 6px; }
.pbh-m .pbh-h1 { font-size: 22px; }
.pbh-m .pbh-intro { font-size: 14px; line-height: 22px; margin-bottom: 8px; }
.pbh-m .pbh-rail { margin: 0 -16px; }
.pbh-m .pbh-track { padding: 4px 16px; scroll-padding-inline: 16px; }
.pbh-m .pbh-rail.is-ovf .pbh-track { margin-right: 0; }
.pbh-m .pbh-rail::before, .pbh-m .pbh-rail::after { display: none; }
.pbh-m .pbh-rail-type { display: block; margin-bottom: 6px; }
.pbh-m .pbh-occ-row { display: block; margin-bottom: 8px; }
.pbh-m .pbh-occ { font-size: 14px; }
.pbh-m .pbh-rail-occasion { display: block; }
.pbh-m .pbh-rail-occasion.is-ovf .pbh-track, .pbh-m .pbh-rail-occasion.has-xtra .pbh-track { padding-right: calc(16px + var(--pbh-all-w, 0px)); }
.pbh-m .pbh-rail:not(.is-sheet) .pbh-track > .pbh-xli { display: none; }
.pbh-m .pbh-rail-occasion .pbh-all {
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 2;
    height: 44px;
    margin: -22px 0 0;
    padding: 0 14px;
    border-radius: 22px 0 0 22px;
    border-right: 0;
}
/* dai mo trang ngay trai nut All (40px mo dan, phan duoi All trang dac de goc bo tron cua All khong lo chip): chip bi cat trong co chu dich;
   chi hien khi con cuon tiep (.can-next) - cuon het thi tat, chip cuoi lo du nho padding-right */
.pbh-m .pbh-rail-occasion:not(.is-sheet)::after {
    display: block;
    right: 0;
    width: calc(var(--pbh-all-w, 0px) + 40px);
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 34px);
}
.pbh-m .pbh-rail.is-sheet {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    display: block;
    height: 100dvh;
    margin: 0;
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.pbh-m .is-sheet .pbh-sheet-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 8px 12px 8px 16px;
    background: #fff;
    border-bottom: 1px solid var(--pbh-border);
}
.pbh-sheet-title { font-size: 17px; font-weight: 700; }
.pbh-sheet-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--pbh-border);
    border-radius: 50%;
    background: #fff;
    color: var(--pbh-text);
    cursor: pointer;
}
.pbh-m .pbh-rail.is-sheet .pbh-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    scroll-snap-type: none;
}
.pbh-m .is-sheet .pbh-track > li { min-width: 0; }
.pbh-m .is-sheet .pbh-track > .pbh-trend-lbl, .pbh-m .is-sheet .pbh-track > .pbh-cur-li { grid-column: 1 / -1; }
.pbh-m .is-sheet .pbh-track > .pbh-trend-lbl { padding: 4px 0 0; }
.pbh-m .is-sheet .pbh-track > .pbh-trend-sep { grid-column: 1 / -1; width: auto; height: 1px; margin: 4px 0; }
.pbh-m .is-sheet .pbh-chip { width: 100%; min-width: 0; height: 56px; border-radius: 12px; }
.pbh-m .is-sheet .pbh-occ-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.pbh-m .is-sheet .pbh-cur-li .pbh-chip { flex: 1 1 auto; width: auto; }
.pbh-m .is-sheet .pbh-occ-x { width: auto; height: 44px; padding: 0 14px; border-radius: 22px; }
.pbh-m .is-sheet .pbh-occ-x-t { display: inline; }
.pbh-m .is-sheet .pbh-all { display: none; }
.pbh-prog { height: 3px; margin: 6px 16px 0; border-radius: 2px; background: var(--pbh-prog-bg); overflow: hidden; visibility: hidden; }
.pbh-rail.is-ovf .pbh-prog { visibility: visible; }
.pbh-prog span { display: block; width: 100%; height: 100%; border-radius: 2px; background: var(--pbh-body); }

@media (prefers-reduced-motion: reduce) {
    .pbh-rail::before, .pbh-rail::after { transition: none; }
}
