/* 공통 변수 */
:root {
    --primary-color: #4361EE;
    --primary-dark: #3A56D4;
    --secondary-color: #FF5E7D;
    --dark: #333;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --white: #fff;
    --transition: all 0.3s ease;
}

/* 컨테이너 스타일 */
.market-container {
    width: 100%;
    padding-bottom: 50px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 페이지 헤더 섹션 */
.page-header {
    background-color: var(--gray-100);
    padding: 50px 0 30px;
    margin-bottom: 30px;
}

.page-header-content {
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.page-description {
    max-width: 700px;
    margin: 0 auto 20px;
    color: var(--gray-600);
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.breadcrumb li {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 5px;
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .active {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 16px;
    color: var(--gray-400);
}

/* 마켓 카테고리 섹션 */
.market-categories-section {
    padding: 0 0 20px;
}

/* 서브 카테고리 네비게이션 */
.sub-category-wrap {
    position: relative;
    margin-bottom: 30px;
}

.scs-controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.scs-controls button {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
}

.scs-controls button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scs-controls .prevP {
    left: -15px;
}

.scs-controls .nextP {
    right: -15px;
}

.scs-controls button span {
    font-size: 0;
    text-indent: -9999px;
}

.sub-category {
    position: relative;
    overflow: hidden;
}

.sub-category .swiper-wrapper {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.3s ease;
}

.sub-category .swiper-slide {
    padding: 0 5px;
    flex-shrink: 0;
}

.sub-category-btn {
    display: block;
    padding: 10px 25px;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #555;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.sub-category-list01.active .sub-category-btn,
.sub-category-list09.active .sub-category-btn,
.sub-category-list07.active .sub-category-btn,
.sub-category-list06.active .sub-category-btn,
.sub-category-list08.active .sub-category-btn,
.sub-category-list04.active .sub-category-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.sub-category-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.bline {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
}

/* 소분류 카테고리 탭 */
.sub-category-tab {
    padding: 15px 0;
}

.category-tab-ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.category-tab-ul .li {
    padding: 0 5px;
    margin-bottom: 10px;
}

.category-tab-ul a {
    display: block;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #f5f5f5;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tab-ul a:hover,
.category-tab-ul a.on {
    background-color: var(--primary-color);
    color: #fff;
}

.cr {
    clear: both;
}

.hide {
    display: none;
}

/* 리스트 상단 검색 영역 */
.board-list-box {
    margin-bottom: 30px;
}

.top-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.total-txt {
    font-size: 14px;
    color: #555;
}

.total-txt i {
    font-style: normal;
    color: var(--primary-color);
    font-weight: 600;
}

.sub-right-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ppLstcate {
    font-size: 13px;
    color: #666;
    margin-right: 10px;
}

.sel_01 {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    background-color: #fff;
    color: #333;
}

.w70 {
    width: 70px;
}

.w130 {
    width: 130px;
}

.w120 {
    width: 120px;
}

.vtop2 {
    vertical-align: top;
}

.border-search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.border-search-box input {
    width: 200px;
    height: 36px;
    border: none;
    padding: 0 10px;
}

.board-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.board-search span {
    font-size: 0;
    width: 20px;
    height: 20px;
    background: url('/img/icon/search_white.png') no-repeat center / contain;
}

.u-gline-dpoint1 {
    height: 1px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
}

/* 구매문의 리스트 스타일 */
.board-list01 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.board-list01 li {
    margin-bottom: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.board-list01 li:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.board-list01 li.last {
    margin-bottom: 0;
}

.board-list01 li a {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    color: #333;
    text-decoration: none;
    position: relative;
}

.board-list01 .tit {
    width: 120px;
    margin-right: 20px;
}

.board-list01 .tit span {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #555;
    font-size: 13px;
}

.board-list01 .list-txt-box {
    flex: 1;
    min-width: 0;
}

.board-list01 h2 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.board-list01 .bt_txtL {
    float: left;
    width: 50%;
}

.board-list01 .bt_txtR {
    float: right;
    width: 50%;
    text-align: right;
}

.board-list01 .cp_tit {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.board-list01 .cp_txt {
    font-size: 14px;
    color: #333;
}

.board-list01 .cpadr {
    max-width: 70%;
    word-break: keep-all;
}

.board-list01 .progress {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: normal;
}

.board-list01 .progress.type01 {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

/* 반응형 미디어 쿼리 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .top-search {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .total-txt {
        margin-bottom: 15px;
    }
    
    .sub-right-box {
        width: 100%;
    }
    
    .border-search-box input {
        width: 100%;
    }
    
    .board-list01 li a {
        flex-direction: column;
        padding: 15px;
    }
    
    .board-list01 .tit {
        width: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .board-list01 .progress {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 15px;
    }
    
    .board-list01 .bt_txtL,
    .board-list01 .bt_txtR {
        float: none;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .sub-right-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sel_01 {
        width: 100% !important;
    }
    
    .border-search-box {
        width: 100%;
    }
}