/* BASIC css start */
/* =========================================================
   제자들 상품 분류 페이지 - 미니멀 커머스형
   - 상단 가로 카테고리
   - 큰 썸네일 4열
   - 상품명 / 설명 / 혜택가 / 할인율 / 판매가 / 정가
========================================================= */

#contentWrapper,
#contentWrapper * { box-sizing: border-box; }

.prd-class-hd {
    border-top: 1px solid #e8ece8;
    border-bottom: 1px solid #edf0ed;
    background: #fafcfa;
}

.prd-class-hd .loc-navi {
    width: min(1200px, calc(100% - 40px));
    height: 44px;
    margin: 0 auto;
    color: #747d75;
    font-size: 12px;
    line-height: 44px;
}

.prd-class-hd .loc-navi dd {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.prd-class-hd .loc-navi img { width: 7px; height: auto; }
.prd-class-hd .loc-navi a:hover { color: #176526; }

#content {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

#productClass {
    margin-top: 30px;
    padding-bottom: 72px;
}

#productClass .page-body { display: block; }

/* 상단 카테고리 */
#productClass .navCategory {
    width: 100%;
    margin: 0 0 30px;
}

#productClass .navCategory nav {
    display: grid;
    grid-template-columns: minmax(165px, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 78px;
    padding: 18px 22px;
    border: 1px solid #e0e7e0;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbfdfb 0%, #f5f9f5 100%);
}

#productClass .navCategory .jm-category-head {
    min-width: 0;
}

#productClass .navCategory .jm-category-head > ul,
#productClass .navCategory .jm-category-menus > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#productClass .navCategory nav .now {
    margin: 0;
    padding: 0;
    border: 0;
    color: #171d18;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.8px;
    word-break: keep-all;
}

#productClass .navCategory nav .cate-back {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0;
}

#productClass .navCategory nav .cate-back img { width: 7px; }
#productClass .navCategory nav .cate-back a {
    color: #687169;
    font-size: 12px;
    font-weight: 700;
}
#productClass .navCategory nav .cate-back a:hover { color: #176526; }

#productClass .navCategory .jm-category-menus {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

#productClass .navCategory nav .menuCategory {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

#productClass .navCategory nav .menuCategory li { margin: 0; }

#productClass .navCategory nav .menuCategory li a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dce4dc;
    border-radius: 19px;
    background: #fff;
    color: #4b554c;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

#productClass .navCategory nav .menuCategory li a::before {
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 50%;
    background: #bcc9bd;
    content: "";
}

#productClass .navCategory nav .menuCategory li a:hover,
#productClass .navCategory nav .menuCategory li.selected a {
    border-color: #2b7837;
    background: #edf7ee;
    color: #176526;
}

#productClass .navCategory nav .menuCategory li.selected a::before { background: #176526; }
#productClass .navCategory nav .menuCategory li span { margin-left: 3px; color: #8f9790; font-size: 11px; }

/* 3depth: a compact second line, shown only for the relevant 2depth category */
#productClass .navCategory nav .menuCategoryDepth3 {
    padding-top: 10px;
    border-top: 1px dashed #d8e2d9;
}

#productClass .navCategory nav .menuCategoryDepth3 li a {
    min-height: 32px;
    padding: 0 12px;
    border-color: #e3e9e3;
    border-radius: 16px;
    background: #f8faf8;
    color: #606a61;
    font-size: 12px;
    font-weight: 600;
}

#productClass .navCategory nav .menuCategoryDepth3 li a::before {
    width: 4px;
    height: 4px;
    margin-right: 7px;
    background: #9caf9e;
}

#productClass .navCategory nav .menuCategoryDepth3 li a:hover,
#productClass .navCategory nav .menuCategoryDepth3 li.selected a {
    border-color: #76a87d;
    background: #e9f5eb;
    color: #176526;
}

/* 상품 개수 / 정렬 */
.product-cont,
#productClass .item-wrap { width: 100%; min-width: 0; }

#productClass .item-wrap .item-info .item-sort {
    margin: 0 0 28px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e0e5e0;
}

#productClass .item-wrap .item-info .item-sort dd ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#productClass .item-wrap .item-info .item-sort dd ul li.now {
    color: #242a25;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

#productClass .item-wrap .item-info .item-sort dd ul li.now span {
    margin-left: 4px;
    color: #176526;
    font-size: 14px;
    font-weight: 800;
}

#productClass .item-wrap .item-info .item-sort select {
    width: 112px !important;
    height: 38px !important;
    padding: 0 34px 0 13px !important;
    border: 1px solid #d7ddd7 !important;
    border-radius: 7px !important;
    background-color: #fff !important;
    background-position: calc(100% - 12px) center !important;
    color: #424943;
    font-size: 12px;
}

/* 상품 그리드 */
#productClass .product-item .item-cont.list4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 46px 22px;
    align-items: start;
}

#productClass .product-item .item-cont.list4 .cate-item-list,
.item-cont.list4 .cate-item-list .thumb {
    width: 100%;
    margin: 0;
}

#productClass .cate-item-list dl { margin: 0; }

.item-cont .cate-item-list .thumb {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid #e7ebe7;
    border-radius: 13px;
    background: #fafafa;
}

.item-cont .cate-item-list .thumb a,
.item-cont .cate-item-list .thumb .main_icons {
    display: block;
    width: 100%;
    height: 100%;
}

.item-cont .cate-item-list .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .32s ease;
}

.item-cont .cate-item-list:hover .thumb img { transform: scale(1.025); }

/* 상품 정보 */
.item-cont .cate-item-list .prd-info {
    padding: 14px 2px 0;
    text-align: left;
}

.item-cont .cate-item-list .prd-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.item-cont .cate-item-list .prd-info .prd-ico {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 0;
    margin: 0 0 5px;
}

.item-cont .cate-item-list .prd-info .prd-ico:empty,
.item-cont .cate-item-list .prd-info .prd-ico.is-empty { display: none; }

.item-cont .cate-item-list .prd-info .prd-ico img {
    max-height: 18px;
    margin: 0;
}

.item-cont .cate-item-list .prd-info .prd-name {
    min-height: 0 !important;
    margin: 5px 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.item-cont .cate-item-list .prd-info .prd-name a {
    display: -webkit-box;
    overflow: hidden;
    color: #1e231f;
    font-size: 15px;
    line-height: 1.48;
    font-weight: 700;
    word-break: keep-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.item-cont .cate-item-list .prd-info .prd-subname {
    display: block !important;
    min-height: 0 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
}

.item-cont .cate-item-list .prd-info .prd-subname:empty,
.item-cont .cate-item-list .prd-info .prd-subname.is-empty {
    display: none !important;
    margin: 0 !important;
}

.item-cont .cate-item-list .prd-info .prd-subname a {
    display: -webkit-box;
    overflow: hidden;
    color: #717971;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 400;
    word-break: keep-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.item-cont .cate-item-list .prd-info .prd-price {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    color: #151917;
    line-height: 1.35;
}

.item-cont .cate-item-list .prd-info .prd-price .jm-price-label {
    flex: 0 0 100%;
    margin: 0 0 2px;
    color: #ef5c46;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
}

.item-cont .cate-item-list .prd-info .prd-price .discount {
    margin: 0 !important;
    color: #ef5c46;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.item-cont .cate-item-list .prd-info .prd-price .price {
    color: #101412;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.35px;
}

.item-cont .cate-item-list .prd-info .prd-price strike {
    flex: 0 0 100%;
    margin: 3px 0 0 !important;
    color: #a1a7a2;
    font-size: 11.5px;
    line-height: 1.3;
    font-weight: 400;
}

.item-cont .cate-item-list .prd-color { margin-top: 7px; }
.item-cont .cate-item-list .prd-preview,
.item-cont .cate-item-list .prd-benefit,
.item-cont .cate-item-list .prd-wish { display: none !important; }

/* 하위 분류 */
#productClass .item-cate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding: 24px 0 16px;
    border-bottom: 1px solid #e5e9e5;
}

#productClass .item-cate .scate a { color: #1c211d; font-size: 20px; font-weight: 800; }
#productClass .item-cate .scate-more a { color: #687169; font-size: 12px; }

/* 페이징 */
#productClass .paging { margin: 56px 0 0; text-align: center; }
#productClass .paging a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 2px;
    padding: 0;
    border-radius: 6px;
    color: #737b74;
    font-size: 13px;
}

#productClass .paging a:hover,
#productClass .paging a.now,
#productClass .paging .now { background: #176526; color: #fff; }
#productClass .paging a.first,
#productClass .paging a.last { background: transparent; }
#productClass .paging img { vertical-align: middle; }

@media screen and (max-width: 1100px) {
    #content,
    .prd-class-hd .loc-navi { width: calc(100% - 32px); }

    #productClass .product-item .item-cont.list4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    #content,
    .prd-class-hd .loc-navi { width: calc(100% - 24px); }

    #productClass { margin-top: 18px; padding-bottom: 46px; }

    #productClass .navCategory { margin-bottom: 22px; }
    #productClass .navCategory nav {
        display: block;
        min-height: 0;
        padding: 17px;
        border-radius: 11px;
    }

    #productClass .navCategory .jm-category-head {
        margin-bottom: 13px;
    }

    #productClass .navCategory nav .now {
        margin: 0;
        font-size: 21px;
        white-space: normal;
    }

    #productClass .navCategory .jm-category-menus {
        gap: 8px;
    }

    #productClass .navCategory nav .menuCategory {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #productClass .navCategory nav .menuCategory::-webkit-scrollbar { display: none; }
    #productClass .navCategory nav .menuCategory li { flex: 0 0 auto; }
    #productClass .navCategory nav .menuCategory li a {
        min-height: 36px;
        padding: 0 12px;
        border-radius: 18px;
    }

    #productClass .navCategory nav .menuCategoryDepth3 {
        padding-top: 8px;
    }

    #productClass .navCategory nav .menuCategoryDepth3 li a {
        min-height: 32px;
        border-radius: 16px;
        font-size: 12px;
    }

    #productClass .item-wrap .item-info .item-sort { margin-bottom: 20px; }

    #productClass .product-item .item-cont.list4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 12px;
    }

    .item-cont .cate-item-list .prd-info { padding-top: 11px; }
    .item-cont .cate-item-list .prd-info .prd-name a { font-size: 13.5px; }
    .item-cont .cate-item-list .prd-info .prd-subname a { font-size: 11.5px; }
    .item-cont .cate-item-list .prd-info .prd-price .discount,
    .item-cont .cate-item-list .prd-info .prd-price .price { font-size: 17px; }
}

@media screen and (max-width: 420px) {
    #productClass .item-wrap .item-info .item-sort dd ul { align-items: flex-end; }
    #productClass .item-wrap .item-info .item-sort dd ul li.now { max-width: calc(100% - 105px); }
    #productClass .item-wrap .item-info .item-sort select { width: 100px !important; }
}


/* =========================================================
   분류 상품 품절 표시 강화
   - 검색 페이지와 동일한 SOLD OUT 강조 디자인
   - 하위분류 추천상품 / 일반 분류상품 공통
========================================================= */
#productClass .item-cont .item-list .prd-info .prd-price .jm-soldout-price {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    border: 2px solid #e21f2f;
    border-radius: 7px;
    background: #fff2f3;
    box-shadow: 0 2px 7px rgba(226, 31, 47, 0.10);
    box-sizing: border-box;
}

#productClass .item-cont .item-list .prd-info .prd-price .jm-soldout-price strong {
    color: #d91324;
    font-size: 16px;
    line-height: 1;
    font-weight: 950;
}

#productClass .item-cont .item-list .prd-info .prd-price .jm-soldout-price em {
    color: #9d1620;
    font-size: 12px;
    line-height: 1;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0.04em;
}

@media screen and (max-width: 767px) {
    #productClass .item-cont .item-list .prd-info .prd-price .jm-soldout-price {
        gap: 5px;
        min-height: 28px;
        padding: 5px 8px;
    }

    #productClass .item-cont .item-list .prd-info .prd-price .jm-soldout-price strong {
        font-size: 14px;
    }

    #productClass .item-cont .item-list .prd-info .prd-price .jm-soldout-price em {
        font-size: 10px;
    }
}


/* KINDERHEIM_CF_20261015: bridge-only styles; original product CSS above is unchanged. */
#jj-cf-board, #jj-cf-board * { box-sizing:border-box; }
#jj-cf-board { width:100%; margin:0 0 38px; color:#1c2e22; font-family:Arial,"Malgun Gothic",sans-serif; scroll-margin-top:24px; }
#jj-cf-board .jj-cf-header { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; padding:0 0 20px; border-bottom:1px solid #dce5de; margin:0 0 24px; }
#jj-cf-board h2 { margin:0 0 6px; color:#1b2b20; font-size:24px; line-height:1.4; font-weight:800; }
#jj-cf-board .jj-cf-header p { margin:0; color:#627267; font-size:13px; line-height:1.6; }
#jj-cf-board .jj-cf-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
#jj-cf-board .jj-cf-status { font-size:12px; color:#526c59; }
#jj-cf-board .jj-cf-count { font-size:15px; color:#1e592c; }
#jj-cf-board .jj-cf-refresh { padding:9px 13px; border:1px solid #d7e2d9; border-radius:7px; background:#fff; color:#255e31; font-family:inherit; font-size:13px; cursor:pointer; }
#jj-cf-board .jj-cf-refresh:disabled { opacity:.55; cursor:wait; }
#jj-cf-board .jj-cf-notice { margin:0 0 22px; padding:16px; background:#f3f8f4; border:1px solid #dbe7de; border-radius:9px; font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
#jj-cf-board .jj-cf-notice.is-error { background:#fff7eb; color:#75451a; border-color:#edd8b9; }
#jj-cf-board .jj-cf-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px 20px; }
#jj-cf-board .jj-cf-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid #dce5de; border-radius:12px; background:#fff; }
#jj-cf-board .jj-cf-card:hover { border-color:#aec7b3; }
#jj-cf-board .jj-cf-thumb { position:relative; display:flex; flex-shrink:0; align-items:center; justify-content:center; width:100%; aspect-ratio:640/430; overflow:hidden; background:#f7f9f7; text-decoration:none; }
#jj-cf-board .jj-cf-image { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; }
#jj-cf-board .jj-cf-placeholder { padding:18px; font-size:13px; color:#738079; text-align:center; }
#jj-cf-board .jj-cf-body { display:flex; flex:1; flex-direction:column; padding:16px; }
#jj-cf-board .jj-cf-title { padding:0; margin:0 0 12px; min-height:44px; font-size:15px; line-height:1.5; font-weight:700; word-break:keep-all; overflow-wrap:anywhere; }
#jj-cf-board .jj-cf-title a { color:#1c2e22; text-decoration:none; }
#jj-cf-board .jj-cf-types { margin-top:auto; min-height:26px; padding-bottom:10px; color:#64776a; font-size:12px; }
#jj-cf-board .jj-cf-button { display:block; width:100%; padding:12px 8px; border-radius:7px; background:#22652e; color:#fff!important; font-size:14px; font-weight:700; text-align:center; text-decoration:none!important; line-height:1.5; }
#jj-cf-board .jj-cf-button:hover { background:#174d21; }
#jj-cf-board .jj-cf-pages { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin:30px 0 0; }
#jj-cf-board .jj-cf-pages button { min-width:38px; height:38px; padding:0 12px; border:1px solid #dce5de; border-radius:6px; background:#fff; color:#47604e; font-family:inherit; cursor:pointer; }
#jj-cf-board .jj-cf-pages button[aria-current="page"] { border-color:#22652e; background:#22652e; color:#fff; }
#jj-cf-board .jj-cf-empty { grid-column:1/-1; padding:40px 20px; text-align:center; color:#697c6f; }
#jj-cf-board a:focus-visible, #jj-cf-board button:focus-visible { outline:3px solid #da961d; outline-offset:3px; }
@media(max-width:1000px) { #jj-cf-board .jj-cf-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 16px; } }
@media(max-width:690px) {
    #jj-cf-board h2 { font-size:21px; }
    #jj-cf-board .jj-cf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
    #jj-cf-board .jj-cf-body { padding:12px; }
    #jj-cf-board .jj-cf-title { min-height:42px; font-size:14px; }
    #jj-cf-board .jj-cf-button { padding:11px 6px; font-size:13px; }
}
@media(max-width:370px) { #jj-cf-board .jj-cf-grid { grid-template-columns:1fr; } }

/* CACHE-2: customer-facing state, with no image diagnostic links. */
#jj-cf-board .jj-cf-updated { font-size:12px; color:#718077; white-space:nowrap; }
#jj-cf-board .jj-cf-status:empty { display:none; }
#jj-cf-board .jj-cf-placeholder { display:flex; flex-direction:column; align-items:center; gap:13px; }
#jj-cf-board .jj-cf-file-icon { position:relative; display:flex; align-items:center; justify-content:center; width:56px; height:68px; border:2px solid #c6d5cb; border-radius:7px; background:#fff; color:#71897a; font:700 13px/1 Arial,sans-serif; }
#jj-cf-board .jj-cf-file-icon::before { content:""; position:absolute; right:-2px; top:-2px; width:15px; height:15px; background:#edf3ef; border-left:2px solid #c6d5cb; border-bottom:2px solid #c6d5cb; border-radius:0 6px 0 3px; }
#jj-cf-board .jj-cf-placeholder-label { font-size:13px; color:#7b8a81; }
#jj-cf-board .jj-cf-original-link { display:inline-block; margin-left:12px; color:#22652e; text-decoration:underline; }
@media(max-width:690px) { #jj-cf-board .jj-cf-tools { gap:8px 10px; } #jj-cf-board .jj-cf-updated { flex-basis:100%; } }

/* BASIC css end */

