div.best_item_area{
    margin-top: 30px;
    /* border-top: 1px solid #cdcdcd; */
    /* padding-top: 20px; */
}
div.best_item_title_area{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
div.best_item_title{
    font-size: 20px;
    font-weight: bold;
    color: #333;
}
div.best_item_list_area{
    margin-top: 10px;
}
div.best_item_list, div.recent_item_list{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overscroll-behavior-x: none; /* 스크롤 바운스 효과 방지 */
}
div.best_item_list::-webkit-scrollbar, div.recent_item_list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
div.best_item_list a.item, div.recent_item_list a.item{
    cursor: pointer;
    text-decoration: none;
    width: calc(36% - 10px);
    flex-shrink: 0;
    color:#333;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    overflow: hidden;
}
div.item_bottom{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 10px 8px;
}
div.item_image_area{
    width: 100%;
    position: relative;
    overflow: hidden;
    /* border: 1px solid #cdcdcd; */
    /* border-radius: 35px; */
}
div.item_image_area::before{
    content: "";
    display: block;
    padding-top: 57%;
}
div.item_image_area>img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}
div.bookmark{
    position: absolute;
    bottom:10px;
    right: 10px;
}
div.bookmark img{
    width: 30px;
}
span.profile_image{
    width: 100%;
    height: 100%;
    background-color: #ececec;
    display: inline-block;
}
span.profile_image>div{
    line-height: 1;
    font-weight: 500;
    font-size: 11px;
}
div.item_title{
    height: 14px;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1em;
    font-weight: bold;
    color: #333;
}
p.summary_text{
    height:52px;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    margin-top: 10px;
}
div.item_bottom_left{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #cdcdcd;
}
div.item_bottom_center{
    width: 100%;
}
div.item_bottom_right{
    width: 40px;
}
div.insert_cart{
    width: 40px;
    height: 40px;
    line-height: 38px;
    border: 1px solid #ddd;
    text-align: center;
}
div.insert_cart i.insert_cart{
    font-size: 18px;
    color: #666666;
    position: relative;
    top: 2px;
}
span.seller_nick_name::after{
    content: '/';
    font-size: 10px;
    margin-left: 10px;
    vertical-align: middle;
}
div.price_review_rating_area{
    margin-top: 5px;
}
div.item_seller_info_area{
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}
div.item_seller_info_area span.item_seller_nick_name{
    font-size: 12px;
    color: #666;
    font-weight: normal;
}
div.item_seller_info_area span.item_sales{
    font-size: 12px;
    line-height: 1em;
    font-weight: normal;
    color : #666;
}
div.item_seller_info_area span.dot{
    font-size: 12px;
    line-height: 1em;
    font-weight: normal;
    color : #666;
}
div.rate_area{
    display: flex;
    align-items: center;
    gap: 10px;
}
div.rate_and_rate_count{
    font-size: 14px;
}
div.rate_and_rate_count i{
    color: #FCD53F;
    font-size: 14px;
}
div.item_price{
    font-size: 16px;
    font-weight: bold;
}
div.pre_discount_price{

}
div.pre_discount_price span{
    text-decoration: line-through;
    font-size: 12px;
}
span.discount_rate{
    text-decoration: line-through;
    color: red;
}
div.item_price_area{
    display: flex;
    align-items: center;
    gap: 5px;
}
div.sort_index_list_wrap{
    z-index: 1;
}
ul.sort_index_list{
    margin: 0;
}
div.best_item_prev_next_area{
    display: flex;
    align-items: center;
    gap: 4px;
}
div.best_item_prev_next_button_area{
    display: flex;
    gap: 4px;
}
button.best_item_prev_next_button{
    width:30px;
    height: 30px;
    border-radius: 5px;
    border:1px solid #e1e1e1;
    background: #fff;
    cursor: pointer;
}
div.item_download_slide_area{
    display: flex;
    gap: 5px;
    align-items: center;
    position: absolute;
    bottom: 8px;
    left: 8px;
}
div.item_download_slide_area .item_download_count{
    display: none;
}
div.item_download_slide_area > div{
    font-size: 10px;
    line-height: 1em;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.88);
    color: #333;
    border: 1px solid #e1e1e1;
    border-radius: 30px;
    padding: 2px 6px;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
div.item_download_slide_area > span.dot{
    display: none;
    /* font-size: 14px;
    font-weight: bold;
    color: #000; */
}
span.item_add_benefit{
    font-size: 14px;
    font-weight: bold;
    color: #FF0000;
}

/* 모바일 768px 초과 (PC) */
@media screen and (min-width: 769px){
    div.best_item_list{
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        overscroll-behavior-x: none; /* 스크롤 바운스 효과 방지 */
        touch-action: pan-y; /* 수직 스크롤만 허용 */
    }
    div.best_item_list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    ul.category_list>li:hover ul.child_list{
        display: flex;
    }
}

/* 모바일 768px 이하 */
@media screen and (max-width: 768px){
    div.item_area{
        padding: 0 15px;
    }
    div.item_list{
        margin-top: 15px;
    }
    span.profile_image>div{
        line-height: 1;
        font-weight: 500;
        font-size: 9px;
    }
    span.profile_image{
        width: 20px;
        height: 20px;
    }
    /* img.profile_image{
        width: 20px;
        height: 20px;
    } */
    div.item_title{
        height: 14px;
        margin-top: 0;
    }
    ul.child_list>li{
        width: 100%;
        margin-bottom: 1px;
        border-left: 1px solid #fff;
        border-right: 1px solid #fff;
    }
    ul.child_list{
        background-color: #fff;
    }
    div.item_bottom_left{
        display: none;
    }
    div.item_bottom_center{
        width: 100%;
    }
    div.item_title{
        font-size: 14px;
    }
    div.rate_area{
        align-items: flex-start;
    }
    div.item_seller_info_area{
        gap: 3px;
        margin-top: 4px;
    }
    div.rate_and_rate_count{
        font-size: 12px;
        white-space: nowrap;
    }
    div.item_price{
        white-space: nowrap;
        font-size: 14px;
    }
    div.item_price_area{
        gap: 0 3px;
        flex-wrap: wrap;
    }
    div.pre_discount_price{
        text-align: right;
    }
    div.bookmark{
        bottom: 3px;
        right: 3px;
    }
    div.bookmark img{
        width: 25px;
    }
    a {
        -webkit-tap-highlight-color: transparent;
    }
    div.best_item_list{
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: auto;
    }
    div.best_item_prev_next_area{
        display: none;
    }
    div.best_item_list a.item, div.recent_item_list a.item{
        width: calc(57%);
        margin-top: 2px;
    }
    div.best_item_list a.item .uk-card,
    div.recent_item_list a.item .uk-card{
        margin-top: 0;
    }
    div.best_item_area{
        border-top: 10px solid #F0F0F0;
        border-bottom: 10px solid #F0F0F0;
        padding: 20px 15px;
        margin-left: -15px;
        margin-right: -15px;
    }
}

.best_item_area .recent_item_list .item_image_area.recent_thumb_frame .bookmark img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    position: static !important;
    transform: none !important;
    object-fit: contain !important;
}

@media screen and (max-width: 768px) {
    .best_item_area .recent_item_list .item_image_area.recent_thumb_frame .bookmark img {
        width: 25px !important;
        height: 25px !important;
        max-width: 25px !important;
        max-height: 25px !important;
    }
}

/* 최근 업데이트 상품 썸네일 프레임 리셋 */
.best_item_area .recent_item_list .item_image_area.recent_thumb_frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 기존 item_image_area::before 높이 생성 제거 */
.best_item_area .recent_item_list .item_image_area.recent_thumb_frame::before {
    content: none !important;
    display: none !important;
    padding-top: 0 !important;
}

/* 기존 div.item_image_area > img 의 cover 규칙 완전 무효화 */
.best_item_area .recent_item_list .item_image_area.recent_thumb_frame > img.recent_thumb_img {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}

/* 스크랩 버튼은 기존 위치/크기 유지 */
.best_item_area .recent_item_list .item_image_area.recent_thumb_frame .bookmark {
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important;
    z-index: 5;
}

.best_item_area .recent_item_list .item_image_area.recent_thumb_frame .bookmark img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    position: static !important;
    transform: none !important;
    object-fit: contain !important;
}

@media screen and (max-width: 768px) {
    .best_item_area .recent_item_list .item_image_area.recent_thumb_frame .bookmark {
        right: 3px !important;
        bottom: 3px !important;
    }

    .best_item_area .recent_item_list .item_image_area.recent_thumb_frame .bookmark img {
        width: 25px !important;
        height: 25px !important;
        max-width: 25px !important;
        max-height: 25px !important;
    }
}