@charset "utf-8";

/* =========================================================
   [ 상품 목록(카테고리) 페이지 전용 디자인 ]
   ========================================================= */

/* 1. 우측 상단 관리자 톱니바퀴 아이콘 삭제 */
#sct_setup { display: none !important; }

/* 기본 영카트 UI 숨김: 브레드크럼/제목/하위분류/정렬/보기타입 */
#sct_sort,
#sct_title,
#sct_lst,
#sct_sortlst,
#sct_ct_1 {
    display: none !important;
}

.jjdd-category-page {
    padding-top: 0;
    padding-bottom: 40px;
}
#contents:has(.jjdd-category-page) { padding-top: 4px !important; }

#sct_hhtml,
#sct_hhtml * {
    display: none !important;
}

.jjdd-category-top {
    max-width: 1440px;
    margin: 0 auto 44px;
    padding: 0 20px;
    box-sizing: border-box;
}

.jjdd-category-breadcrumb {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 22px;
    font-size: 14px;
    color: #9b9b9b;
}

.jjdd-category-breadcrumb a {
    color: #7b7b7b;
    text-decoration: none;
}

.jjdd-category-breadcrumb a:hover {
    color: #0e0e0e;
    text-decoration: none;
}

.jjdd-category-breadcrumb strong {
    color: #0e0e0e;
    font-weight: 600;
}

.jjdd-category-heading h2 {
    margin: 40px 0 30px;
    font-size: 24px;
    font-weight: 800;
    color: #0e0e0e;
    text-align: center;
    opacity: 0;
    transform: translateY(-18px);
    animation: jjddCategoryTitleIn 0.7s ease forwards;
}

@keyframes jjddCategoryTitleIn {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jjdd-category-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 34px;
    padding: 0;
}

.jjdd-category-tabs li {
    margin: 0;
    padding: 0;
}

.jjdd-category-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f7f7f7;
    border: 1px solid #efefef;
    color: #727272;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.jjdd-category-tabs a:hover,
.jjdd-category-tabs a.is-active {
    background: #9f4ff0;
    border-color: #9f4ff0;
    color: #fff;
    text-decoration: none;
}

.jjdd-category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.jjdd-category-count {
    margin: 0;
    font-size: 14px;
    color: #7f7f7f;
    text-align: left;
}

.jjdd-category-sortbox {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.jjdd-category-sortbox select {
    min-width: 130px;
    height: 40px;
    padding: 0 28px 0 8px;
    border: 0;
    background: transparent;
    color: #2f2f2f;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: right;
    cursor: pointer;
}

.jjdd-category-sortbox::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #0e0e0e;
    border-bottom: 1.5px solid #0e0e0e;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

/* 리스트 페이지에 남은 불필요한 기본 테두리/여백 제거 */
#sct {
    padding: 0 !important;
    margin-top: 0 !important;
    border-top: 0 !important;
}
.sct_wrap { border: none !important; }

@media (max-width: 767px) {
    .jjdd-category-top {
        margin-bottom: 30px;
        padding: 0 16px;
    }

    .jjdd-category-breadcrumb {
        justify-content: flex-start;
        margin-bottom: 18px;
        gap: 8px;
        font-size: 13px;
    }

    .jjdd-category-heading h2 {
        font-size: 22px;
        text-align: left;
    }

    .jjdd-category-tabs {
        justify-content: center;
        gap: 8px;
        margin-bottom: 18px;
    }

    .jjdd-category-tabs a {
        min-width: 100px;
        height: 36px;
        font-size: 13px;
        padding: 0 12px;
    }

    .jjdd-category-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .jjdd-category-count {
        font-size: 12px !important;
    }

    .jjdd-category-sortbox {
        width: auto;
        justify-content: flex-end;
    }

    .jjdd-category-sortbox select {
        min-width: 0;
        width: 140px;
        padding-right: 22px;
    }
}