/* Top Bar */
.topbar-keranjang-saya {
    position: fixed;
    max-width: 480px;
    width: 100%;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    z-index: 99;
    background-color: white;
}

.topbar-keranjang-saya h2 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    font-weight: bold;
}

.icon-topbar-univ {
    width: 1.1rem;
    height: 1.1rem;
}

.topbar-keranjang .like-button {
    position: absolute;
    right: 15px;
}
.icon-like {
    width: 1.2rem;
    height: 1.2rem;
}
/* End Top Bar */

/* konten */
.keranjang-container {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    max-width: 480px;
    width: 100%;
    margin: auto;
    padding-top: 60px;
    height: auto;
}
.nav-tabs-keranjang {
    background-color: white;
    border-width: none !important;
    border-bottom: none;
}
.category-item-keranjang {
    width: fit-content !important;
    border-radius: 99px;
    /* background-color: #f5f5f5; */
    /* border: 1px solid red; */
}

.category-item-keranjang button {
    border-radius: 99px;
    width: 100%;
    display: inline-block;
    background-color: #f5f5f5;
    user-select: none;
    white-space: nowrap;
    /* border: 1px solid green; */
    padding: 0.3rem 1rem;
    text-decoration: none;
}
.nav-link-menu-keranjang.active {
    color: #20b1d3 !important;
    border-radius: 99px;
    background-color: #20b2d31e !important;
    border-color: transparent !important;
    /* border: 1px solid black; */
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #fff;
    position: sticky;
    top: 70px;
    z-index: 10;
}

.keranjang-list {
    height: auto;
    background: #ffffff;
    padding: 0 0 8rem 0;
    overflow-y: auto;
}

img.btn-filter-keranjang {
    height: 3rem;
    width: 3rem;
}

.btn-filter-keranjang button {
    border: none;
    background-color: #f7f7f7;
    border-radius: 5px;
}

.footer-keranjang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 15px;
    border-top: 1px solid #ddd;
    background: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: auto;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777;
}

.total-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #777;
    flex-direction: column;
}

.total-container strong {
    font-size: 14px;
    color: #000;
}

.total-beli-container {
    display: flex;
    align-items: center;
    gap: 7px;
}

.beli-button {
    background: #5bb7dc;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
    width: 7rem;
    height: 2.5rem;
}

.beli-button:hover {
    background: #0c92b4;
}
/* end konten */

/* item keranjang */
.keranjang-item {
    display: flex;
    flex-direction: column;
    background: white;
    margin-bottom: 5px;
    padding: 16px;
    /* margin: 0 16px; */
    /* border-radius: 12px; */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    height:auto;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.top-toko {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.gratis-ongkir {
    color: #10abcf;
    font-size: 12px;
    font-weight: bold;
}

.body-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.images-product {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.descripsi-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.price {
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.select-condition {
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 12px;
    max-width: 120px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background-color: #f9f9f9;
    cursor: pointer;
}

.container-quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    justify-content: space-between;
}

.container-quantity-control img {
    cursor: pointer;
}

.like-button-item {
    width: 20px;
    height: 20px;
    background-color: black;
    mask: url("/assets/img/icon/like-icon.svg") no-repeat center;
    -webkit-mask: url("/assets/img/icon/like-icon.svg") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
    cursor: pointer;
    transition: background-color 0.3s;
}

.like-button-item.liked {
    background-color: red;
}

.controll {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quality-control-ai {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

.control-button {
    background-color: white;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.control-button:hover {
    background-color: #f0f0f0;
}

.quantity-display {
    padding: 0 3px;
    /* background-color: #f9f9f9; */
    text-align: center;
    font-size: 16px;
}

.delete-icones {
    width: 1.5rem;
    height: 1.5rem;
}

input[type="number"] {
    border: none;
    text-align: center;
    width: 40px;
    font-size: 14px;
}

/* CSS untuk badge keranjang */
.cart-link {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    line-height: 1;
    z-index: 10;
}

/* Responsive CSS untuk badge keranjang */
@media only screen and (max-width: 450px) {
    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        min-width: 16px;
        top: -6px;
        right: -6px;
    }
}

/* end item keranjang */
