.art_con > .art_content{
    padding: 0;
}
div.sort_area{
    display: none;
}
div.category_area{
    width: 100%!important;
}
div.item_list_wrapper{
    margin-top: 30px;
}
div.item_list{
    margin-top: 50px;
}
div.item_grid{
    margin: 12px 0 32px;
}
div.category_header{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: calc(100% - 20px);
    margin: 0 10px;
}
div.category_name{
    font-size: 24px;
    line-height: 1em;
    font-weight: bold;
    color: #333;
}
div.category_name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.category_icon_img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
a.view_all{
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    padding-right: 18px;
    color: #606060;
    background: url(../img/shot_cut_icon.png) right / 16px no-repeat;
}
a.view_all:hover{
    text-decoration: none;
}
@media ( max-width: 500px ) {
    a.view_all{
        font-size: 12px;
        line-height: 14px;
        background: url(../img/shot_cut_icon.png) right / 14px no-repeat;
    }
}

.old_main_category_area {
    display: none !important;
}

/* 콘텐츠몰 메인 검색/필터 */
.mall_tit_area{
    width: 100%;
    display: block;
    text-align: center;
}
.mall_tit_area img{
    width: 32px;
}
.mall_tit_area h2{
    font-size: 26px;
    font-weight: 500;
    color: #333;
    line-height: 1em;
    margin: 10px 0;
}
.content_main_search_area {
    width: 90vw;
    max-width: 1500px;
    margin: 64px auto 44px;
}

.content_main_search_area .content_search_form {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.content_main_search_area .content_search_box {
    width: min(760px, 90vw);
    height: 52px;
    border: 1px solid #0C318F;
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 22px;
    background: #fff;
}

.content_main_search_area .content_search_box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 15px;
    color: #222;
}

.content_main_search_area .content_search_box button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 50%;
    background: #0C318F;
    color: #fff;
    cursor: pointer;
}

.content_main_search_area .content_search_box button i{
    font-size: 16px;
}

.content_main_layout {
    width: 90vw;
    /* max-width: 1500px; */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.content_main_filter {
    position: sticky;
    top: 90px;
    z-index: 80;
}

.content_main_filter .search_filter_box {
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
}

.content_main_filter .filter_title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #333;
}

.content_main_products {
    min-width: 0;
}

.old_main_category_area {
    display: none !important;
}

/* 기존 상품 섹션을 잠깐 숨길 때만 사용 */
.old_main_item_sections {
    display: none !important;
}
@media(max-width:1400px){
    
    .content_main_search_area.sticky_search_area{
        top: 48px !important;
    }
}

@media (max-width: 900px) {
    .mall_tit_area{
        display: flex;
        justify-content: center;
        gap:4px
    }
    .mall_tit_area img {
        width: 24px;
    }
    .mall_tit_area h2{
        font-size: 22px;
    }
    .content_main_search_area .content_search_box{
        height: 44px;
        padding: 0 6px 0 16px;
    }
    .content_main_search_area .content_search_box button{
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }
    .content_main_search_area .content_search_box input{
        font-size: 14px;
    }
    .content_main_search_area {
        width: 92vw;
        margin: 36px auto 32px;
    }

    .content_main_layout {
        width: 92vw;
        grid-template-columns: 1fr;
    }

    .content_main_filter {
        display: none;
    }
    div.category_header{
        width: 100%;
        margin: 0;
    }
    div.category_name{
        font-size: 20px;
    }
    .category_icon_img{
        width: 18px;
        height: 18px;
    }
}

.filter_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.filter_link:hover {
    color: #0C318F;
    text-decoration: none;
}

.filter_fake_checkbox {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
}

.content_main_search_area.sticky_search_area {
    position: sticky;
    top: 62px;
    z-index: 40;
    width: 100%;
    max-width: none;
    margin: 0 0 32px;
    padding: 10px 0;

    background: #fff;
}

.content_main_search_area.sticky_search_area::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #fff;
    z-index: -1;
}


.content_main_search_area.sticky_search_area .content_search_form {
    width: min(760px, 90vw);
    margin: 0 auto;
}

.sticky_search_area {
    position: sticky;
    top: 70px;
    z-index: 60;
    background: #fff;
    padding: 14px 0 16px;
}

.content_main_products {
    position: relative;
    z-index: 1;
}

.content_main_products .item_image_area,
.content_main_products .item_swiper_wrap,
.content_main_products swiper-container {
    z-index: 1;
}

@media (max-width: 900px) {
    .sticky_search_area {
        position: static;
        padding: 0;
        background: transparent;
    }
}

@media (max-width: 767px) {
    .content_buy .item_grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 14px;

        margin-left: 0 !important;
        /* padding: 0 14px 8px 14px; */

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .content_buy .item_grid > .item {
        width: 66vw !important;
        min-width: 66vw !important;
        max-width: 66vw !important;

        padding-left: 0 !important;
        scroll-snap-align: start;
        display: block;
    }

    .content_buy .item_grid::before,
    .content_buy .item_grid::after {
        display: none !important;
    }

    .content_buy .item_grid::-webkit-scrollbar {
        display: none;
    }

    .content_buy .item_grid {
        scrollbar-width: none;
    }

    .content_buy .item_list {
        overflow: hidden;
    }
}

/* =========================
   Horizontal Scroll Fix
========================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

div.item_area.item_search_page {
    box-sizing: border-box;
    width: min(90vw, 1600px) !important;
    max-width: calc(100vw - 40px) !important;

    margin: 0 !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    overflow-x: clip;
}

/* item_area가 이미 가운데 정렬을 하니까 안쪽은 100%만 사용 */
.item_search_page .search_page,
.item_search_page .search_layout {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 검색창도 item_area 안쪽 기준으로 맞춤 */
.item_search_page .search_top_area {
    width: 100% !important;
    max-width: 100% !important;
}

/* 검색 form만 가운데 정렬 */
.item_search_page .search_top_area .content_search_form {
    width: min(760px, 100%) !important;
    margin: 0 auto !important;
}

/* 100vw 때문에 생기는 가로 스크롤 제거 */
.item_search_page .search_top_area.sticky_search_area::before {
    display: none !important;
}

/* 그리드 내부 넘침 방지 */
.item_search_page .search_result_area,
.item_search_page .item_list,
.item_search_page .search_item_grid,
.item_search_page .search_item_grid > .item,
.item_search_page .search_item_grid > .item .uk-card {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* =========================
   Prevent image flicker on index
   fallback -> swiper 전환 안정화
========================= */

.item_swiper_wrap {
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
}

/* 기본: fallback 이미지만 먼저 보이게 */
.item_swiper_wrap .item_image_fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.item_swiper_wrap .item_image_fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Swiper는 준비 전까지 숨김 */
.item_swiper_wrap .itemImageSwiper {
    position: relative;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
}

/* Swiper 첫 이미지가 준비되면 Swiper만 보이게 */
.item_swiper_wrap.is-swiper-ready .itemImageSwiper {
    opacity: 1;
    visibility: visible;
}

/* Swiper 준비 후 fallback 숨김 */
.item_swiper_wrap.is-swiper-ready .item_image_fallback {
    opacity: 0;
    visibility: hidden;
}

/* Swiper가 없는 상품은 fallback만 정상 노출 */
.item_swiper_wrap.is-fallback-only .item_image_fallback {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.item_swiper_wrap.is-fallback-only .itemImageSwiper {
    display: none;
}

.item_seller_info_area {
    display: block;
}

.item_seller_info_nick_name_price_area {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item_color_option_area {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    min-height: 18px;
}

.item_color_chip {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.18);
    box-sizing: border-box;
    cursor: default;
}

/* PC: 가격 오른쪽에 색상 옵션 표시 */
.content_buy .item_seller_info_area {
    width: 100%;
}

.content_buy .item_seller_meta_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 3px;
}

.content_buy .item_seller_info_nick_name_price_area {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
}

.content_buy .item_seller_info_nick_name_price_area .item_seller_nick_name,
.content_buy .item_seller_info_nick_name_price_area .item_sales {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content_buy .item_color_option_area {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.content_buy .item_color_chip {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.08);
    box-sizing: border-box;
    cursor: pointer;
}

.content_buy .item_color_chip.is-active {
    outline: 1px solid #555;
    outline-offset: 1px;
}

/* 모바일: 색상 옵션 숨김 */
@media (max-width: 767px) {
    .content_buy .item_color_option_area {
        display: none !important;
    }

    .content_buy .item_seller_meta_row {
        display: block;
        width: 100%;
        margin-top: 3px;
    }

    .content_buy .item_seller_info_nick_name_price_area {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
        overflow: hidden;
    }
}