/* 마켓 장바구니 카드 */
.market-cart-actions .market-cart-select-count { color: #333;font-weight: 500;}
.market-cart-actions .market-cart-select-count strong { color: #23b16c; font-weight: 700;}
.market-cart-list {display: flex;flex-direction: column; gap: 15px; width: 100%;}
.market-cart-card {padding: 20px 15px;border: 1px solid #eee;border-radius: 10px; background-color: #fff; display: flex;flex-direction: column;gap: 12px; width: 100%;}
.market-cart-card-header {display: flex; align-items: flex-start; gap: 10px; position: relative;padding-right: 28px;}
.market-cart-card-header .item-info {flex: 1;min-width: 0;justify-content: flex-start !important;}
.market-cart-card-header .item-info .thumb .item-link img{background-position: 50% 50%; height: 100% !important;object-position: top;}
.market-cart-card-header .btn-group-del { position: absolute; top: 0; right: 0; width: 24px; height: 24px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;}
.market-cart-card-header .btn-group-del i {font-size: 16px;color: #888;}
.market-cart-card-body { display: flex; flex-direction: column; gap: 10px; padding-left: 30px;}
.market-cart-line {padding: 15px; background-color: #fafafa; border-radius: 5px; display: flex; flex-direction: column; gap: 12px;}
.market-cart-line-top,
.market-cart-line-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px;}
.market-cart-line-top .option-name {color: #333;font-size: 14px; font-weight: 400; line-height: 1.2;}
.market-cart-line-bottom .quantity-control {display: flex; align-items: center; background-color: #fff; border-radius: 4px; border: 1px solid #eee;}
.market-cart-line-bottom .quantity-control .qty-btn,
.market-cart-line-bottom .quantity-control .qty-input { min-width: 28px; width: 28px; height: 28px; border: 0; text-align: center; background: transparent;}
.market-cart-line-bottom .price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px;}
.market-cart-line-bottom .price .amount { font-size: 14px; font-weight: 700; color: #333; line-height: 1;}
.market-cart-line-bottom .price .original-price {font-size: 12px; font-weight: 400; color: #b5b5b6; text-decoration: line-through; line-height: 1;}
.option-item .price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px;}
.option-item .price .original-price { font-size: 12px; font-weight: 400; color: #b5b5b6; text-decoration: line-through; line-height: 1;}
.market-cart-card-footer {padding-left: 30px; padding-top: 4px;}
.market-cart-card-total .val,
.market-cart-card-total .won { font-size: 18px; font-weight: 700; color: #333; line-height: 1;}
.market-cart-card .ship { display: flex; align-items: center; }
.market-cart-card .ship-fee { color: #23b16c;}
.market-cart-card .ship-method::before { margin: 0; }
.market-cart-line.soldout .option-name {color: #c9caca;}

/* 품절 cart-item 레이아웃 */
.cart-item.soldout { opacity: .65; }
.cart-item.soldout .thumb { position: relative; }
.cart-item.soldout .thumb::after {
    content: '품절';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    pointer-events: none;
}

.btn-default-text{color: #fff;}
.btn-default-text span{color: #fff;}
.cart-item.soldout .btn-buy-now,
.cart-item.soldout .btn-option-change { opacity: .4; pointer-events: none; cursor: not-allowed; }

@media (max-width: 720px) {
  .market-cart-card { padding: 16px 12px;}
  .market-cart-card-body,
  .market-cart-card-footer {padding-left: 0; }
}

.btn-del, .btn-group-del {
    display: inline-block !important;
}
