/**
 * 헤더 하단: 연한 회색 그라데이션 선 (양끝 페이드)
 * body.header-scroll-border: 스크롤 시 그림자
 *
 * 랜딩(히어로) 페이지: sticky 헤더를 불투명 흰색으로 — hero/video가
 * bg-background-light/95 + backdrop-blur 뒤로 비치는 현상 방지
 */
body.page-category-local-design > header.boolub-header,
body.page-mongoltour > header.boolub-header,
body.page-view.page-mgexpedition > header.boolub-header,
body.page-view.page-mgtour > header.boolub-header,
body.page-view.page-mj > header.boolub-header {
    background-color: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.dark body.page-category-local-design > header.boolub-header,
.dark body.page-mongoltour > header.boolub-header,
.dark body.page-view.page-mgexpedition > header.boolub-header,
.dark body.page-view.page-mgtour > header.boolub-header,
.dark body.page-view.page-mj > header.boolub-header {
    background-color: #111827 !important;
}

html:has(body.page-category-local-design),
html:has(body.page-mongoltour),
html:has(body.page-view.page-mgexpedition),
html:has(body.page-view.page-mgtour),
html:has(body.page-view.page-mj) {
    background-color: #fff;
}

.dark html:has(body.page-category-local-design),
.dark html:has(body.page-mongoltour),
.dark html:has(body.page-view.page-mgexpedition),
.dark html:has(body.page-view.page-mgtour),
.dark html:has(body.page-view.page-mj) {
    background-color: #111827;
}

.boolub-header {
    border-bottom: none;
    /* 하단 선(::after)이 자식 배경(메뉴 행) 아래로 깔리지 않도록 */
    isolation: isolate;
}

.boolub-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    z-index: 20;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgb(226 232 240) 6%,
        rgb(226 232 240) 94%,
        transparent 100%
    );
}

.dark .boolub-header::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgb(71 85 105) 6%,
        rgb(71 85 105) 94%,
        transparent 100%
    );
}

body.header-scroll-border > header.header-scroll-border--scrolled {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.dark body.header-scroll-border > header.header-scroll-border--scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.header-utility-link:focus-visible,
.header-login-btn:focus-visible,
#headerDestBtn:focus-visible,
.header-group-quote-btn:focus-visible {
    outline: 2px solid rgb(0 122 204 / 0.45);
    outline-offset: 2px;
    border-radius: 9999px;
}

#headerDestBtn:focus-visible {
    border-radius: 0.375rem;
}

/* 헤더 우측 유틸: 높이·간격·세로 정렬 통일 (36px / h-9) */
.header-utility-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-utility-row .header-utility-link,
.header-utility-row .header-group-quote-btn,
.header-utility-row .header-app-link,
.header-utility-row .header-cart-btn,
.header-utility-row .header-login-btn {
    height: 2.25rem;
    box-sizing: border-box;
}

.header-utility-row .material-icons-round {
    line-height: 1;
}

/* 앱 다운로드 아이콘: 한 묶음으로 촘촘하게 */
.header-utility-row .header-app-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.header-utility-row .header-app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    flex-shrink: 0;
}

.header-utility-row .header-app-link img {
    display: block;
    height: 1.125rem;
    width: auto;
    max-width: 1.125rem;
    object-fit: contain;
}

.header-utility-row .header-cart-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    min-width: 1.75rem;
    padding: 0;
    line-height: 0;
}

.header-utility-row .header-cart-btn .material-icons-round {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    font-size: 1.125rem;
    line-height: 1.125rem;
    overflow: hidden;
}

.header-utility-row #headerUserBtn .material-icons-round {
    flex-shrink: 0;
}

.header-group-quote-btn {
    gap: 0.25rem;
    padding: 0 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(90deg, #1575bd, #38beef);
    box-shadow: none;
    transition: opacity 0.15s ease;
}

.header-group-quote-btn:hover {
    opacity: 0.92;
}

.header-group-quote-icon {
    display: block;
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    flex-shrink: 0;
}

/* 단체견적문의 모달 (상품문의 모달과 동일 패턴) */
.product-review-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-review-modal.hidden {
    display: none;
}

.product-review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.product-review-modal-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.dark .product-review-modal-panel {
    background: #111827;
}

.product-review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.product-review-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #64748b;
}

.product-review-modal-close:hover {
    background: #f1f5f9;
}

.dark .product-review-modal-close:hover {
    background: #1e293b;
}
