/* 찜한 상품 페이지 전용 스타일 */
.favorites-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 100;
}

.favorites-header-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
}

.favorites-back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #212529;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

.favorites-title {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
    color: #212529;
    margin: 0;
}

.favorites-header-actions {
    display: flex;
    gap: 12px;
    position: relative;
}

.favorites-search-btn,
.favorites-sort-btn {
    background: none;
    border: none;
    color: #212529;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorites-search-btn:hover,
.favorites-sort-btn:hover {
    opacity: 0.7;
}

/* 검색 레이어 */
.search-layer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.search-layer-content {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 0;
}

.search-layer-header {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #e2e8f0;
}

.search-layer-back-btn,
.search-layer-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #212529;
    cursor: pointer;
    padding: 8px;
}

.search-layer-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 12px;
    margin: 0 8px;
}

/* 카테고리 바 */
.category-bar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    height: 48px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 99;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding-left: var(--spacing-xs);
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-list {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 100%;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.category-item {
    display: inline-block !important;
    height: auto !important;
    padding: 8px 16px;
    font-size: 14px;
    color: #868E96;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 20px;
    transition: all 0.2s;
    flex-shrink: 0;
    border-bottom: none;
    font-weight: normal;
    position: static;
    gap: 0;
}

.category-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    border-bottom: none;
}

.category-item.active {
    background: #FF6F0F;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-bottom: none;
}

/* 메인 컨텐츠 */
.main-content {
    margin-top: 104px; /* 헤더(56px) + 카테고리바(48px) */
    padding-bottom: 80px;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #868E96;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* 로딩 */
.loading {
    text-align: center;
    padding: 40px;
    color: #868E96;
}

