/*
* author : minjeong
* purpose : feelframe.co.kr cart_in popup 장바구니 담은 후 팝업
* date: 2025.12.04
*/

.cart-in {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.cart-in-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.cart-in .box-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 300px), calc(-50% - 258px));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.cart-in .box-close i {
    font-size: 20px;
    color: #fff;
    cursor: pointer;
} 

.cart-in-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 24px;
    overflow: hidden;
    padding: 24px;
} 
.cart-in-box .cart-box-bar {
    display: none;
}
.cart-in-box .box-top {
    display: flex;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #E1E1E1;
}
.cart-in-box .box-top-img {
    width: 46px;
    height: 46px;
    border-radius: 23px;
    overflow: hidden;
}
.cart-in-box .box-top-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-in-box .box-top-txt {
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 1;
}
.cart-in-box .box-top-txt-title {
    font-size: 18px;
    font-family: 'Pretendard-SemiBold';
}
.cart-in-box .box-top-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.cart-in-box .box-top-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3869FA;
}
.cart-in-box .box-top-btn a span {
    font-size: 14px;
    color: #3869FA;
}
.cart-in-box .box-top-btn a i {
    font-size: 14px;
    color: #3869FA;
    margin-left: 4px;
}

.cart-in-box .box-bottom {
    padding: 24px 0 0;
}
.cart-in-box .box-bottom-title {
    font-size: 18px;
    font-family: 'Pretendard-SemiBold';
}
.cart-in-box .box-bottom-content {
    margin-top: 16px;
}
.cart-in-box .box-bottom-content .list {
    display: flex;
    gap: 12px;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 30px;
}
.cart-in-box .box-bottom-content .list .list-item {
    position: relative;
}
.cart-in-box .box-bottom-content .list .list-item .list-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FA9538;
    color: #fff;
    font-size: 12px;
    font-family: 'Pretendard-SemiBold';
    padding: 4px 8px;
    border-radius: 4px;
}
.cart-in-box .box-bottom-content .list .list-item .list-item-img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}
.cart-in-box .box-bottom-content .list .list-item .list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-in-box .box-bottom-content .list .list-item .list-item-desc {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-in-box .box-bottom-content .list .list-item .list-item-desc .category {
    font-family: 'Pretendard-Regular';
    font-size: 12px;
    color: #999;
}
.cart-in-box .box-bottom-content .list .list-item .list-item-desc .name {
    font-family: 'Pretendard-Regular';
    font-size: 14px;
    margin-bottom: 4px;
}
.cart-in-box .box-bottom-content .list .list-item .list-item-desc .price {
    font-size: 16px;
    color: #333;
    font-family: 'Pretendard-SemiBold';
}



/* mobile */
@media (max-width: 768px) {
    .cart-in .box-close {
        display: none;
    }
    .cart-in-box {
        top: auto;
        bottom: 0;
        transform: translate(-50%, 0);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 0 20px 20px;
    }

    .cart-in-box .cart-box-bar {
        display: block;
        width: 43px;
        height: 5px;
        background-color: #E1E1E1;
        border-radius: 3px;
        margin: 12px auto 20px;
    }

    .cart-in-box .box-top-img {
        width: 43px;
        height: 43px;
    }
    .cart-in-box .box-top-txt {
        margin-left: 12px;
    }
    .cart-in-box .box-top-txt-title {
        font-size: 16px;
    }
    .cart-in-box .box-top-btn a span {
        font-size: 12px;
    }
    .cart-in-box .box-top-btn a i {
        font-size: 12px;
    }

    .cart-in-box .box-bottom-content .list {
        padding-bottom: 20px;
    }

}