@charset "utf-8";

/* CODEX UP 쇼핑몰 카테고리 전용 스타일 */

#container .shop-content {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.shop_category_heading {
    margin: 0 0 18px !important;
    padding: 24px 26px !important;
    border: 1px solid var(--kr-line) !important;
    border-radius: 11px !important;
    background: var(--kr-surface) !important;
    box-shadow: none !important;
}

.shop_category_heading > span {
    display: block;
    margin-bottom: 5px !important;
    color: var(--kr-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px !important;
}

.shop_category_heading h1 {
    margin: 0;
    color: var(--kr-text);
    font-size: 26px;
    font-weight: 750;
    line-height: 36px;
}

.shop_category_heading p {
    margin-top: 5px;
    color: var(--kr-muted);
    font-size: 14px;
    line-height: 22px;
}

.hd_menu li.is_active a {
    color: var(--kr-primary);
    font-weight: 700;
}

.shop_type_current {
    padding: 11px 9px;
    color: var(--kr-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 20px;
}

#sct {
    position: relative;
    margin: 0;
}

/* 현재 위치 */
#sct_location.is_list {
    position: static;
    display: flex;
    float: none;
    min-height: 44px;
    align-items: center;
    margin: 0 0 12px;
    padding: 0 14px;
    border: 1px solid var(--kr-line);
    border-radius: 9px;
    background: var(--kr-surface);
}

#sct_location .go_home {
    padding: 0 9px 0 0;
    color: var(--kr-muted);
    font-size: 15px;
    line-height: 20px;
}

#sct_location i.dividing-line {
    margin-right: 2px;
    color: var(--kr-muted);
    font-size: 11px;
    line-height: 20px;
}

#sct_location .shop_select_to_html {
    float: none;
}

#sct_location .shop_select_to_html span {
    display: block;
    padding: 11px 9px;
}

#sct_location .shop_select_to_html .category_title {
    color: var(--kr-text);
    font-size: 13px;
    font-weight: 600;
}

#sct_location .shop_select_to_html .category_title i {
    color: var(--kr-muted);
}

#sct_location .shop_select_to_html .menulist {
    top: 37px;
    right: auto;
    left: 0;
    border: 1px solid var(--kr-line);
    border-radius: 8px;
    background: var(--kr-surface);
    box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
}

#sct_location .shop_select_to_html .option a {
    padding: 0 22px;
    color: var(--kr-text);
    font-size: 13px;
}

#sct_location .shop_select_to_html .option:hover {
    background: var(--kr-surface-2);
}

/* 하위 분류 */
.sct_ct {
    margin: 0 0 18px;
    padding: 8px;
    border: 1px solid var(--kr-line);
    border-radius: 9px;
    background: var(--kr-surface);
}

#sct_ct_1 ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

#sct_ct_1 li {
    float: none;
    width: auto;
    border: 0;
}

#sct_ct_1 li a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-radius: 7px;
    color: var(--kr-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
}

#sct_ct_1 li a:hover {
    background: var(--kr-primary-soft);
    color: var(--kr-primary);
}

/* 정렬 및 보기 방식 */
#sct_sortlst {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border: 1px solid var(--kr-line);
    border-radius: 9px;
    background: var(--kr-surface);
}

#sct_sort {
    float: none;
    width: auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

#sct_sort::-webkit-scrollbar,
#hd_menu::-webkit-scrollbar {
    display: none;
}

#hd_menu {
    scrollbar-width: none;
}

#sct_sort ul {
    display: flex;
    padding: 0 8px;
    white-space: nowrap;
}

#sct_sort li {
    float: none;
    height: auto;
    margin: 0;
    padding: 0;
}

#sct_sort li a {
    display: block;
    padding: 14px 10px;
    border: 0;
    color: var(--kr-muted);
    font-size: 12px;
    line-height: 19px;
}

#sct_sort li a:hover,
#sct_sort li a.is_active {
    color: var(--kr-primary);
}

#sct_sort li a.is_active {
    font-weight: 700;
}

#sct_lst {
    display: flex;
    flex: 0 0 auto;
    float: none;
    padding-right: 6px;
}

#sct_lst li {
    float: none;
}

#sct_lst button {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: transparent;
    color: var(--kr-muted);
    font-size: 14px;
}

#sct_lst button:hover,
#sct_lst button.sct_lst_on {
    background: var(--kr-primary-soft);
    color: var(--kr-primary);
}

/* 상품 카드 */
#sct .sct_10.lists-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

#sct .sct_10 .sct_li {
    float: none;
    width: auto;
    min-width: 0;
    overflow: hidden;
    margin: 0 0 10px;
    padding: 0;
    border: 1px solid var(--kr-line);
    border-radius: 10px;
    background: var(--kr-surface);
    transition: border-color .18s ease, transform .18s ease;
}

#sct .sct_10 .sct_li:hover {
    border-color: var(--kr-line-strong);
    transform: translateY(-2px);
}

#sct .sct_10 .sct_img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--kr-surface-2);
    text-align: left;
}

#sct .sct_10 .sct_img > a {
    height: 100%;
}

#sct .sct_10 .sct_img img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform .25s ease;
}

#sct .sct_10 .sct_li:hover .sct_img img {
    transform: scale(1.025);
}

.shop_list_discount {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 2;
    min-width: 38px;
    height: 25px;
    padding: 0 8px;
    border-radius: 5px;
    background: var(--kr-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    line-height: 25px;
    text-align: center;
}

#sct .sct_10 .sct_cart {
    display: flex;
    inset: auto 10px 10px auto;
    width: auto;
    height: 34px;
    align-items: center;
    padding: 0 12px;
    border-radius: 6px;
    background: rgba(17, 24, 39, .82);
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .18s ease, transform .18s ease;
}

#sct .sct_10 .sct_img:hover .sct_cart {
    opacity: 1;
    transform: translateY(0);
}

#sct .sct_10 .sct_ct_wrap {
    padding: 15px 15px 16px;
}

#sct .sct_10 .sct_star {
    margin: 0 0 7px;
}

#sct .sct_10 .sct_txt {
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--kr-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sct .sct_10 .sct_txt a {
    color: inherit;
}

#sct .sct_10 .sct_txt a:hover {
    color: var(--kr-primary);
}

#sct .sct_10 .sct_basic {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    margin: 7px 0 12px;
    color: var(--kr-muted);
    font-size: 13px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#sct .sct_10 .sct_bottom {
    min-height: 43px;
    padding-right: 58px;
}

#sct .sct_10 .sct_cost {
    margin: 0;
    color: var(--kr-text);
    font-size: 17px;
    font-weight: 750;
    line-height: 23px;
}

#sct .sct_10 .sct_dict {
    display: block;
    color: var(--kr-muted);
    font-size: 12px;
    line-height: 18px;
}

#sct .sct_10 .sct_op_btn {
    right: 0;
    bottom: 2px;
    display: flex;
    gap: 3px;
}

#sct .sct_10 .sct_op_btn > button {
    width: 29px;
    height: 29px;
    border: 1px solid var(--kr-line);
    border-radius: 6px;
    background: var(--kr-surface);
    color: var(--kr-muted);
    font-size: 13px;
}

#sct .sct_10 .sct_op_btn > button:hover {
    border-color: var(--kr-primary);
    color: var(--kr-primary);
}

#sct .sct_op_btn > .btn_wish.is_wished {
    border-color: var(--kr-primary) !important;
    background: var(--kr-primary-soft) !important;
    color: var(--kr-primary) !important;
}

#sct .sct_op_btn > .btn_wish.is_loading {
    cursor: wait;
    opacity: .55;
}

#sct .sct_10 .sit_icon_li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 15px 15px;
}

#sct .sct_10 .shop_icon {
    margin: 0;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 19px;
}

#sct .shop_icon_soldout {
    display: grid;
    place-items: center;
    background: rgba(20, 23, 28, .58);
    color: #fff;
    font-size: 15px;
    line-height: normal;
}

/* 리스트 보기 */
#sct .sct_40 {
    margin: 0;
    border-top: 1px solid var(--kr-line);
}

#sct .sct_40 .sct_li {
    min-height: 180px;
    padding: 18px 72px 18px 190px !important;
    border-right: 1px solid var(--kr-line);
    border-bottom: 1px solid var(--kr-line);
    border-left: 1px solid var(--kr-line);
    background: var(--kr-surface);
}

#sct .sct_40 .sct_img {
    position: static;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    text-align: left;
}

#sct .sct_40 .sct_img > a {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    width: 144px;
    height: 144px;
}

#sct .sct_40 .sct_img img {
    width: 144px !important;
    height: 144px !important;
    border-radius: 8px;
    object-fit: cover;
}

#sct .sct_40 .shop_list_discount {
    top: 27px;
    left: 27px;
    z-index: 2;
}

#sct .sct_40 .sct_txt,
#sct .sct_40 .sct_cost {
    color: var(--kr-text);
}

#sct .sct_40 .sct_basic,
#sct .sct_40 .sct_dict {
    color: var(--kr-muted);
}

/* 상품 공유 모달 */
body.shop_share_open {
    overflow: hidden;
}

#sct .sct_li.share_open {
    transform: none !important;
    transition: none !important;
}

#sct .sct_sns_wrap {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1200 !important;
    display: none;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 20px;
    place-items: center;
}

#sct .sct_sns_wrap.is_open {
    display: grid;
}

#sct .sct_sns_bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: auto !important;
    height: auto !important;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(2px);
}

#sct .sct_sns {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 1;
    display: grid;
    width: min(308px, 100%) !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 16px 16px;
    overflow: visible !important;
    border: 1px solid var(--kr-line) !important;
    border-radius: 11px !important;
    background: var(--kr-surface) !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .2) !important;
    color: var(--kr-text);
    text-align: left !important;
    outline: 0;
    grid-template-columns: 1fr;
    gap: 8px;
}

#sct .sct_sns h3 {
    margin: 0 0 4px !important;
    padding: 16px 40px 12px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kr-line) !important;
    color: var(--kr-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
}

#sct .sct_sns a {
    display: flex !important;
    width: 100% !important;
    height: 46px !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid var(--kr-line) !important;
    border-radius: 8px !important;
    background: var(--kr-surface-2) !important;
    color: var(--kr-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 44px !important;
    text-align: left !important;
    gap: 10px;
}

#sct .sct_sns a:hover {
    border-color: var(--kr-primary) !important;
    color: var(--kr-primary);
}

#sct .sct_sns a::after {
    line-height: 20px;
}

#sct .sct_sns .share-facebook::after {
    content: "페이스북으로 공유";
}

#sct .sct_sns .share-twitter::after {
    content: "엑스(X)로 공유";
}

#sct .sct_sns img {
    display: block;
    width: 30px !important;
    height: 30px !important;
    padding: 7px;
    border-radius: 50%;
    object-fit: contain;
}

#sct .sct_sns .share-facebook img {
    background: #4267a9;
}

#sct .sct_sns .share-twitter img {
    background: #2caed6;
}

#sct .sct_sns_cls {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    display: grid;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    place-items: center;
    border: 0 !important;
    border-radius: 6px;
    background: transparent !important;
    color: var(--kr-muted) !important;
    font-size: 14px !important;
}

#sct .sct_sns_cls:hover {
    background: var(--kr-surface-2) !important;
    color: var(--kr-text) !important;
}

#sct .pg_wrap {
    margin-top: 28px;
}

html[data-theme="dark"] #sct_location .shop_select_to_html .menulist,
html[data-theme="dark"] #sct .sct_10 .sct_li,
html[data-theme="dark"] .sct_ct,
html[data-theme="dark"] #sct_sortlst {
    box-shadow: none;
}

@media (max-width: 1100px) {
    #sct .sct_10.lists-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #sct_ct_1 ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .shop_category_heading {
        padding: 21px !important;
    }

    .shop_category_heading h1 {
        font-size: 23px;
        line-height: 32px;
    }

    #sct_location.is_list {
        overflow-x: auto;
    }

    #sct_sortlst {
        align-items: stretch;
    }

    #sct_sort {
        padding-right: 4px;
    }

    #sct .sct_10.lists-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #sct .sct_sns_wrap {
        align-items: end;
        padding: 12px;
    }

    #sct .sct_sns {
        width: 100% !important;
        border-radius: 12px !important;
    }

    #sct_ct_1 ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #sct_sortlst {
        margin-bottom: 14px;
    }

    #sct_sort li a {
        padding: 14px 8px;
    }

    #sct .sct_10.lists-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #sct .sct_10 .sct_ct_wrap {
        padding: 13px;
    }

    #sct .sct_10 .sct_txt {
        font-size: 14px;
    }

    #sct .sct_10 .sct_basic {
        min-height: 40px;
        font-size: 12px;
        line-height: 20px;
    }

    #sct .sct_10 .sct_cost {
        font-size: 16px;
    }

    #sct .sct_10 .sct_bottom {
        padding-right: 0;
    }

    #sct .sct_10 .sct_op_btn {
        position: static;
        margin-top: 9px;
    }

    #sct .sct_40 .sct_li {
        min-height: 138px;
        padding: 14px 14px 14px 132px !important;
    }

    #sct .sct_40 .sct_img {
        width: auto;
        height: auto;
    }

    #sct .sct_40 .sct_img > a {
        top: 14px;
        left: 14px;
        width: 104px;
        height: 104px;
    }

    #sct .sct_40 .sct_img img {
        width: 104px !important;
        height: 104px !important;
    }

    #sct .sct_40 .shop_list_discount {
        top: 21px;
        left: 21px;
    }
}
