@charset "UTF-8";

/* ==========================================================================
   MUSEUM - 모바일 상품 목록 (필웨이 판매상품 아카이브)
   판매완료/품절 상품의 카드뷰 리스트. 구매 불가, 상세 페이지 없음.
   ========================================================================== */

.museum [hidden] {
    display: none !important;
}

.header.museum-no-gnb-fixed .header__nav__wrap {
    position: static !important;
}

.museum .commonNoData {
    margin-bottom: 70px;
}
.museum .commonNoData__txt01 {
    font-size: 14px;
    line-height: 16px;
}
.museum .commonNoData .keyword {
    color: #ed4e2b;
}

/* ===== 본문 외곽 컨테이너 ===== */
.museum {
    padding-bottom: 20px;
}

/* ===== .museumStickyHeader ===== */
.museumStickyHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    height: 50px;
    padding: 4px 15px 4px 50px;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transform: translateY(-100%);
    box-sizing: border-box;
}

.museumStickyHeader.is-visible {
    transform: translateY(0);
}

.museumStickyHeader__back {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50px;
    padding: 0;
    background: url('//icon.feelway.com/recent/mo/common/bg_headerPrev.png') no-repeat center / 50px;
    border: 0;
    cursor: pointer;
}

/* back 옆 영역 - search 펼침 폼이 이 안에서만 absolute (back 영역 침범 X) */
.museumStickyHeader__main {
    position: relative;
    flex: 1;
    min-width: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 브랜드 영역 (brandSelect 가 brand 텍스트 영역만 덮도록 width 지정 X) */
.museumStickyHeader__brand {
    position: relative;
    min-width: 0;
}

.museumStickyHeader__corner {
    display: block;
    margin: 0;
    height: 6px;
    width: auto;
}

.museumStickyHeader__brandEng {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0 0;
    font-family: 'Pretendard SemiBold';
    font-weight: normal;
    font-size: 14px;
    line-height: 16px;
    color: var(--black-1200);
}

.museumStickyHeader__brandArrowBox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1px solid var(--gray-400);
    border-radius: 2px;
    color: var(--gray-400);
}

.museumStickyHeader__brandSelect {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.museumStickyHeader__searchBtn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    margin: -4px 0;
    padding: 4px 0;
    background: transparent;
    border: 0;
    color: var(--black-1200);
    cursor: pointer;
}

/* 검색 펼침: 검색 폼 - main 컨테이너 안에서 absolute right:0, width 0→100% (back 옆에서만 펼침) */
/* z-index: brandSelect(z:1) 보다 위에 와야 input/button 클릭 가능 */
.museumStickyHeader__search {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.2s ease;
    box-sizing: border-box;
}

.museumStickyHeader__search.is-expanded {
    width: 100%;
    opacity: 1;
}

.museumStickyHeader__searchInputArea {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
}

.museumStickyHeader__searchLabel {
    flex-shrink: 0;
    padding: 5px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: var(--black-1200);
    white-space: nowrap;
}
span.museumStickyHeader__searchLabel {
    -webkit-tap-highlight-color: transparent;   /* span 일 때 모바일 tap 깜빡임 제거 */
}

.museumStickyHeader__searchInput {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    font-size: 14px;
    color: #222;
    outline: none;
}

.museumStickyHeader__searchClose,
.museumStickyHeader__searchClear,
.museumStickyHeader__searchSubmit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--black-1200);
    cursor: pointer;
}

/* ===== MUSEUM 헤더 (브랜드 타이틀 + 검색 진입) ===== */
/* .museumStickyHeader 가 위에서 슬라이드 다운 */
.museumHeader {
    padding: 20px 15px 10px;
}

.museumHeader__corner {
    display: block;
    margin: 0;
    height: 8px;
    width: auto;
}

.museumHeader__bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    min-height: 40px;
    margin-top: 5px;
}

.museumHeader__brand {
    position: relative;
    display: flex;
    flex-direction: column;
}

.museumHeader__brandSelect {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.museumHeader__brandEng {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    margin: 0;
    font-family: 'Pretendard SemiBold';
    font-weight: normal;
    font-size: 18px;
    line-height: 22px;
}

.museumHeader__brandArrowBox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1px solid var(--gray-400);
    border-radius: 2px;
}

.museumHeader__brandArrow {
    display: block;
    color: var(--gray-400);
}

.museumHeader__brandKor {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--gray-800);
    line-height: 16px;
}

.museumHeader__searchBtn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 95px;
    height: 40px;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: 8px;
    color: var(--black-1200);
    cursor: pointer;
    box-sizing: border-box;
}

.museumHeader__searchBtnIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 100%;
}

/* ----- 검색 폼 ----- */
/* bar의 absolute 자식. right:0 기준으로 width:0 → 100% 확장 (우측에서 좌측으로 펼쳐짐) */
.museumHeader__search {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.2s ease;
    box-sizing: border-box;
}

.museumHeader__searchInputArea {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
}

.museumHeader__search.is-expanded {
    width: 100%;
    opacity: 1;
}

.museumHeader__searchLabel {
    flex-shrink: 0;
    padding: 5px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: var(--black-1200);
    white-space: nowrap;
}
span.museumHeader__searchLabel {
    -webkit-tap-highlight-color: transparent;
}

.museumHeader__searchInput {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    font-size: 14px;
    color: #222;
    outline: none;
}

.museumHeader__searchClose,
.museumHeader__searchClear,
.museumHeader__searchSubmit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--black-1200);
    cursor: pointer;
}

/* ===== 카테고리 Nav (1단 대분류 + 2단 소분류) ===== */
/* 위/아래 padding은 btn으로 옮겨서 탭 영역 확장 */
.museumCateNav {
    position: sticky;
    top: 50px;
    background: #fff;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.museumCateNav.is-hidden {
    display: none;
}

.museumCateNav__main,
.museumCateNav__sub {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0 10px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.museumCateNav__main::-webkit-scrollbar,
.museumCateNav__sub::-webkit-scrollbar {
    display: none;
}

.museumCateNav__sub {
    border-top: 1px solid var(--gray-300);
}

.museumCateNav__item {
    flex-shrink: 0;
}

.museumCateNav__btn {
    padding: 10px 5px;
    background: transparent;
    border: 0;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
}

.museumCateNav__btn.is-active {
    color: var(--black-1200);
    font-family: 'Pretendard SemiBold';
}

/* ===== 필터 / 정렬 바 ===== */
.museumFilter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.museumFilter__chips {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ----- 상품유형 토글 ----- */
.museumFilter__toggle {
    position: relative;
    display: inline-flex;
    width: 90px;
    height: 32px;
    background: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: 999px;
    box-sizing: border-box;
}

/* radio 시각 hide (display:none 이면 form submit 안 됨) */
.museumFilter__toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* indicator - container 50% */
.museumFilter__toggleIndicator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    background: var(--black-1200);
    border-radius: 999px;
    transition: transform 0.25s ease;
    pointer-events: none;
    z-index: 0;
}

.museumFilter__toggle input[value="used"]:checked ~ .museumFilter__toggleIndicator {
    transform: translateX(100%);
}

.museumFilter__toggleBtn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: 12px;
    line-height: 20px;
    color: var(--black-1200);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.museumFilter__toggle input[type="radio"]:checked + .museumFilter__toggleBtn {
    color: var(--white);
}

.museumFilter__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 32px;
    min-width: 62px;
    padding: 0 10px 0 14px;
    background: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: 999px;
    font-size: 12px;
    line-height: 20px;
    color: var(--black-1200);
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

/* SVG 의 hidden attr 강제 적용 - 일부 브라우저에서 SVG 에 user-agent [hidden]{display:none} 적용이 안 되는 케이스 대비 */
.museumFilter__chip svg[hidden] {
    display: none;
}

.museumFilter__chip.is-active {
    background: var(--black-1200);
    border-color: var(--black-1200);
    color: var(--white);
}


.museumFilter__chip.is-active {
    min-width: 130px;
    justify-content: space-between;
    font-variant-numeric: tabular-nums;
}

/* ----- 연도 드롭다운 (custom) ----- */
.museumFilter__year {
    position: relative;
}

/* ----- 옵션 ul (연도/정렬 공통) ----- */
.museumFilter__options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
}

.museumFilter__option {
    margin: 0;
    padding: 0;
}

.museumFilter__optionBtn {
    display: block;
    width: 100%;
    padding: 8px 14px;
    background: transparent;
    border: 0;
    font-size: 13px;
    color: #555;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.museumFilter__optionBtn:hover {
    background: #f5f5f5;
}

.museumFilter__optionBtn.is-active {
    color: #222;
    font-family: 'Pretendard SemiBold';
}

/* ----- 정렬 ----- */
.museumFilter__sort {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 80px;            /* 가장 긴 옵션(낮은/높은가격순) 기준, chip 위치 고정 */
    justify-content: flex-end;
}

/* 정렬 chip 은 borderless (텍스트+화살표만) - 연도 chip 의 박스 스타일 override */
/* justify-content: flex-end - chip 안 두 요소(label/arrow) 우측 끝 고정. 텍스트 길어져도 화살표 위치 안 움직임 */
/* gap 8px - 텍스트와 화살표 사이 여유 (연도 chip 의 gap 4px 와 분리) */
.museumFilter__sort .museumFilter__chip {
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--black-1200);
    font-size: 12px;
    justify-content: flex-end;
    gap: 8px;
}

/* 정렬 옵션은 우측 정렬 (정렬 chip 이 우측에 위치) */
.museumFilter__sort .museumFilter__options {
    left: auto;
    right: 0;
}

/* ===== 브랜드 선택 레이어 ===== */
/* 화면 기준 고정 (스크롤 무관) */
.museumBrandLayer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* X 버튼 absolute 기준 + MUSEUM 타이틀 영역 */
.museumBrandLayer__head {
    position: relative;
    padding: 35px 15px 5px;
}

.museumBrandLayer__title {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    color: var(--primary-300);
    letter-spacing: 1.2px;
}

.museumBrandLayer__close {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #222;
    cursor: pointer;
}

.museumBrandLayer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.museumBrandLayer__btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: 0;
    border-top: 1px solid #eee;
    cursor: pointer;
    text-align: left;
}

.museumBrandLayer__brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.museumBrandLayer__eng {
    font-family: 'Pretendard SemiBold';
    font-size: 14px;
    line-height: 16px;
    color: #222;
}

.museumBrandLayer__kor {
    font-size: 14px;
    line-height: 16px;
    color: #999;
}

.museumBrandLayer__arrowBox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1px solid var(--gray-400);
    border-radius: 2px;
}

.museumBrandLayer__arrow {
    display: block;
    color: var(--gray-400);
}

/* ===== 상품 목록 ===== */
.museumCardList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.museumCardSkeleton__line {
    display: inline-block;
    background: #ececec;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.museumCardSkeleton__line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120px;
    width: 80px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: museumCardSkeletonShimmer 1.4s infinite;
}
.museumCardSkeleton__thumb {
    display: block;
    aspect-ratio: 1 / 1;
}
.museumCardSkeleton__brand { width: 80px; height: 14px; }
.museumCardSkeleton__name  { width: 120px; height: 14px; }
.museumCardSkeleton__price { width: 90px; height: 14px; }
.museumCardSkeleton__year  { width: 50px; height: 12px; }
@keyframes museumCardSkeletonShimmer {
    0%   { left: -120px; }
    100% { left: 100%; }
}

.museumCardList__sentinel {
    height: 1px;
}

.museumCard {
    padding: 10px 0 30px;
    text-align: center;
}

.museumCardList__item:first-child .museumCard {
    padding-top: 0;
}

.museumCard__thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}

.museumCard__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.museumCard__aiSearch {
    position: absolute;
    left: 15px;
    bottom: 10px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 0;
    border-radius: 15px;
    font-size: 10px;
    color: #fff;
    cursor: pointer;
    z-index: 1;
}

.museumCard__aiSearch::after {
    content: "";
    width: 4px;
    height: 4px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
}

.museumCard__info {
    margin-top: 20px;
    padding: 0 16px;
}

.museumCard__brand {
    margin: 0;
    font-family: 'Pretendard SemiBold';
    font-size: 14px;
    line-height: 16px;
    color: var(--black-1200);
}

.museumCard__name {
    margin: 16px 0 0;
    font-family: 'Pretendard';
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: var(--black-1200);
    word-break: keep-all;
}

.museumCard__price {
    margin: 8px 0 0;
    font-family: 'Pretendard SemiBold';
    font-size: 14px;
    line-height: 16px;
    color: var(--black-1200);
}

.museumCard__year {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 16px;
    color: var(--black-1200);
}
