:root {
            --primary-color: #3730a3; /* Deep Indigo for luxury feel */
            --accent-gold: #c5a059; /* Luxury Gold accent */
            --text-main: #111827;
            --text-muted: #6b7280;
            --bg-gray: #f9fafb;
            --white: #ffffff;
}



/* Navigation Tabs */
         nav {
            position: sticky;
            top: 0;
            z-index: 100;
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            display: flex;
            justify-content: space-around;
            padding: 14px 10px;
            border-bottom: 1px solid #f3f4f6;
            overflow-x: auto;
            scrollbar-width: none;
        }

        nav::-webkit-scrollbar { display: none; }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #9ca3af;
            min-width: 64px;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .nav-item i {
            width: 22px;
            height: 22px;
            margin-bottom: 5px;
        }

        .nav-item span {
            font-size: 11px;
            font-weight: 600;
        }

        .nav-item.active {
            color: var(--text-main);
        }

        .nav-item.active i {
            color: var(--accent-gold);
            transform: translateY(-2px);
        }


.main_content_wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#logo_wrap { 
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);    
}


/* 전체 컨테이너 */
.stylebook-container {  background-color: var(--bg-gray);}

.sb-header {
background-color: var(--white);
    padding: 32px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;    
}

.sb-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 2px;
    background: var(--accent-gold);
}    


.sb-header .profile-img { width: 75px; height: 75px; border-radius: 100%; background: #f0f0f0; }
.sb-header h1 { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.sb-header span { 
display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;    
}

.profile-image {
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    padding: 3px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.list-container {  margin:10px;}

/* 카테고리 탭: 아이콘 형태 */
.category-tabs { display: flex; justify-content: space-around; padding: 20px 10px; border-bottom: 1px solid #f0f0f0; overflow-x: auto; }
.category-tabs li { list-style: none; text-align: center; min-width: 60px; }
.category-tabs a { text-decoration: none; color: #666; font-size: 11px; }
.category-tabs i { display: block; font-size: 24px; margin-bottom: 5px; color: #ccc; }
.category-tabs a.active i { color: #4a55a2; }
.category-tabs a.active span { color: #4a55a2; font-weight: bold; }

/* 리스트 스타일: 가로형 카드 */
.post-item { display: flex; padding: 15px; border-bottom: 1px solid #f8f8f8; align-items: center;  background:#fff; border-radius: 15px; margin:10px;}
.post-item .thumb { width: 100px; height: 100px; border-radius: 12px; overflow: hidden; margin-right: 15px; flex-shrink: 0; }
.post-item .thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-info { flex-grow: 1; }
.post-info .location { font-size: 13px; color: #999; margin-bottom: 2px; }
.post-info .subject { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 5px; }
.post-info .price { font-size: 16px; font-weight: 700; color: #000; }

/* 하단 메뉴 */
.action-section {
            background-color: var(--white);
            padding: 24px 16px;
            border-top: 1px solid var(--border-light);
        }

        .action-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            max-width: 440px;
            margin: 0 auto;
        }

        .action-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px;
            border-radius: 12px;
            background: var(--white);
            border: 1px solid #e2e8f0;
            color: var(--text-main);
            text-decoration: none;
            font-size: 13px;
            font-weight: 700;
            transition: all 0.2s;
        }

        .action-button:active {
            background-color: #f8fafc;
            transform: scale(0.98);
        }

        .action-button i { width: 16px; height: 16px; }


        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            margin: 20px 0;
        }

        .pg_wrap { background-color:transparent; }
        .pg_page {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background-color: var(--white);
            border: 1px solid #e2e8f0;
            color: var(--text-muted);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
        }
        .pg_current{
            background: var(--text-main);
            color: var(--white);
            border-color: var(--text-main);
            border-radius: 8px;
        }
#logo_wrap,
.footer-info { display:none; }        

/* [2. 모바일/반응형 설정] 768px 이하 */
@media (max-width: 499px) {
    /*
    nav {
        justify-content: flex-start; // 아이템들 사이의 간격을 최소화하거나 고정합니다 
        gap: 0; 
    }

    .nav-item {
        // [중요] 22.2%로 설정하면 4.5개가 화면에 배치되어 5번째가 절반 잘립니다 
        flex: 0 0 18.5%; 
        min-width: 18.5%;
    }
    */

#categoryNav {
        flex-wrap: wrap;
        justify-content: flex-start; /* 왼쪽 정렬로 변경 */
        padding: 10px 0; /* 좌우 여백 조정 */
    }

    .nav-item {
        /* 중요: flex-1을 해제하고 너비를 25%로 고정 */
        flex: 0 0 25%; 
        margin-bottom: 15px;
    }
    .sb-header { border-bottom:none;}
    .sb-header::after { display:none; }

}
