/**
 * 모바일 전용 "뒤로가기 + 타이틀" 헤더 바.
 * cf. html.ori/skin/site_m/responsive-play/shop.header.php — 레거시는 주문서/장바구니 페이지에서
 * 이 바가 전역 헤더(로고·검색·gnb)를 완전히 대체한다. 데스크톱은 그대로 전역 헤더 유지.
 * 상품상세는 레거시엔 없는 확장이지만 동일 패턴으로 적용(사용자 요청).
 */
.page-title-bar {
    display: none;
}

@media (max-width: 900px) {
    body.page-order header,
    body.page-order footer,
    body.page-cart header,
    body.page-cart footer,
    body.page-product-detail header,
    body.page-product-detail footer,
    /* /pages/* : 사이트 헤더·푸터만 숨김 (본문 <header>는 유지) */
    body.page-view > header.boolub-header,
    body.page-view > footer {
        display: none !important;
    }

    .page-title-bar {
        display: flex;
    }
}

.page-title-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.dark .page-title-bar {
    background: #0f172a;
    border-bottom-color: #1e293b;
}

.page-title-bar-back,
.page-title-bar-home {
    position: absolute;
    top: 0;
    height: 100%;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
}

.page-title-bar-back {
    left: 0;
}

.page-title-bar-home {
    right: 0;
}

.dark .page-title-bar-back,
.dark .page-title-bar-home {
    color: #e2e8f0;
}

.page-title-bar-text {
    max-width: calc(100% - 96px); /* 좌·우 아이콘 영역(48px) 확보 */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.dark .page-title-bar-text {
    color: #f1f5f9;
}
