/* 여기에 작업 또는 수정할 당신의 css style을 설정하세요. (customizations) */

/* 헤더 컨테이너 넓이 확장 */
.header-wrap .container {
    max-width: 1680px !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* 헤더 타이틀 영역 플렉스 레이아웃 */
.header-title .container {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    position: relative;
}

/* 로고 스타일 */
.header-title .title-logo {
    flex-shrink: 0;
    margin-right: 30px;
}

/* 수평 메뉴 스타일 */
.header-nav-menu {
    flex: 1;
    margin-left: 20px;
}

/* 기존 navbar 스타일 덮어쓰기 */
.header-nav-menu .navbar-nav-horizontal,
.header-title .header-nav-menu .navbar-nav-horizontal {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    max-height: none !important;
    height: auto !important;
}

.navbar-nav-horizontal {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
}

.navbar-nav-horizontal > li {
    position: relative;
    margin-right: 30px;
    display: inline-block !important;
    float: none !important;
    width: auto !important;
}

.navbar-nav-horizontal > li > .nav-link {
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0 !important;
    color: #151515;
    text-decoration: none;
    display: block;
}

.navbar-nav-horizontal > li > .nav-link:hover {
    color: #3949ab;
}

.navbar-nav-horizontal > li.dropdown > .nav-link {
    position: relative;
}

.navbar-nav-horizontal > li.dropdown > .nav-link::after {
    content: "\f0d7";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 0.75rem;
    color: #b5b5b5;
}

/* 드롭다운 메뉴 스타일 */
.navbar-nav-horizontal .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin: 0;
    border-radius: 0;
    display: none;
    z-index: 1000;
}

.navbar-nav-horizontal .dropdown:hover .dropdown-menu {
    display: block;
}

.navbar-nav-horizontal .dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav-horizontal .dropdown-menu .dropdown-item {
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.navbar-nav-horizontal .dropdown-menu .dropdown-item:hover {
    background: #f8f9fa;
    color: #3949ab;
}

/* 모바일 버튼 위치 조정 */
.header-title-mobile-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 원래 네비게이션 영역 숨기기 (데스크톱에서만) */
@media (min-width: 992px) {
    .nav-wrap {
        display: none !important;
    }
    
    /* 데스크톱에서 수평 메뉴 강제 표시 */
    .header-nav-menu {
        display: block !important;
    }
    
    .header-nav-menu .navbar-nav-horizontal {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .header-nav-menu .navbar-nav-horizontal > li {
        display: inline-block !important;
        float: none !important;
        width: auto !important;
        margin-bottom: 0 !important;
    }
}

/* 모바일에서는 수평 메뉴 숨기기 */
@media (max-width: 991px) {
    .header-nav-menu {
        display: none !important;
    }
}

/* 헤더 높이 고정 */
.header-title {
    min-height: 90px;
}

/* 수평 메뉴 위치 미세 조정 */
.header-nav-menu {
    margin-left: 50px;
    margin-right: 20px;
}

.navbar-nav-horizontal > li {
    margin-right: 40px;
}

.navbar-nav-horizontal > li:last-child {
    margin-right: 0;
}

/* 카페24 스타일 toparea CSS */
.toparea {
    background: #fff;
    padding: 10px 0;
    overflow: hidden;
    min-height: 30px;
}

/* top-header와 header-title 구분선 제거 및 색상 통일 */
.header-wrap {
    position: relative;
}

.top-header {
    border-bottom: none !important;
    background: #fff !important;
    height: auto !important;
    min-height: 40px;
    overflow: visible !important;
    position: relative;
    z-index: 10;
}

.top-header .container {
    height: auto !important;
    min-height: 40px;
    overflow: visible !important;
    position: static !important;
}

.header-title {
    border-top: none !important;
    background: #fff !important;
    position: relative;
    z-index: 1;
}

.toparea_shoppinginfo {
    float: left;
}

.toparea_state {
    float: right;
    font-size: 12px;
}

.toparea_state a {
    color: #666;
    text-decoration: none;
    margin: 0 8px;
    padding: 5px;
    position: relative;
    line-height: 1.4;
    display: inline-block;
}

.toparea_state a:hover {
    color: #333;
}

.toparea_state a:not(:last-child):after {
    content: "|";
    position: absolute;
    right: -8px;
    color: #ccc;
}

.toparea_state_board {
    display: inline-block;
    position: relative;
    z-index: 100;
}

.toparea_state_board > a {
    cursor: pointer;
}

.toparea_state_board .icon {
    font-size: 10px;
    margin-left: 3px;
}

.toparea_state_board ul {
    position: fixed;
    top: auto;
    right: auto;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 120px;
    display: none;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.toparea_state_board:hover ul {
    /* JavaScript가 처리하므로 CSS hover 비활성화 */
}

.toparea_state_board ul li {
    border-bottom: 1px solid #eee;
}

.toparea_state_board ul li:last-child {
    border-bottom: none;
}

.toparea_state_board ul li a {
    display: block;
    padding: 8px 12px;
    color: #333;
    font-size: 12px;
    margin: 0;
}

.toparea_state_board ul li a:hover {
    background: #f5f5f5;
}

.toparea_state_board ul li a:after {
    display: none;
}

/* toparea 반응형 */
@media (max-width: 991px) {
    .display_pc_only {
        display: none !important;
    }
}

/* 또는 특정 최대 넓이로 설정하려면 */
/*
.header-wrap .container {
    max-width: 1400px !important;
}
*/

/* 최상단 배너 스타일 */
.main_top_banner {
    background: #f0f0f0 !important;
    border-bottom: 1px solid #ddd !important;
    position: relative !important;
    z-index: 1001 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.top_banner_box_inner {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.top_banner_text {
    flex: 1;
    padding: 8px 0;
}

.top_banner_text a {
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.top_banner_close {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.top_banner_close input[type="checkbox"] {
    margin-right: 5px;
}

.top_banner_close label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.top_banner_close .icon {
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 5px;
    margin-left: 5px;
}

.top_banner_close .icon:hover {
    color: #333;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .top_banner_box_inner {
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
    }
    
    .top_banner_text {
        text-align: center;
    }
    
    .top_banner_text a {
        font-size: 13px;
    }
}

/* 배너 숨김 상태 */
.main_top_banner.hidden {
    display: none !important;
}

/* 오피스 스타일 도매회원 안내 박스 */
.office-notice-wrap {
    margin: 30px 0;
}

.office-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    height: 100%;
    overflow: hidden;
}

/* 메인 카드 */
.primary-card {
    border-left: 3px solid #2c3e50;
}

.primary-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 24px;
    position: relative;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.3px;
}

.card-label {
    position: absolute;
    top: 16px;
    right: 20px;
    background: #2c3e50;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 24px;
}

.main-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 20px;
}

.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

.info-box strong {
    color: #2c3e50;
    font-weight: 600;
}

/* 서비스 카드 */
.service-card {
    border-left: 3px solid #6c757d;
}

.service-list {
    padding: 0;
}

.service-row {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.service-row:last-child {
    border-bottom: none;
}

.service-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.service-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.service-info small {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* 반응형 디자인 */
@media (max-width: 991px) {
    .office-notice-wrap {
        margin: 20px 0;
    }
    
    .office-card {
        margin-bottom: 15px;
    }
    
    .primary-card .card-header {
        padding: 18px 20px;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .card-label {
        position: static;
        display: inline-block;
        margin-top: 8px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .service-row {
        padding: 16px 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .office-notice-wrap {
        margin: 15px 0;
    }
    
    .primary-card .card-header {
        padding: 16px 18px;
    }
    
    .card-body {
        padding: 18px;
    }
    
    .main-desc br,
    .info-box br {
        display: none;
    }
    
    .main-desc,
    .info-box {
        text-align: center;
    }
    
    .service-row {
        padding: 14px 18px;
    }
}