/* =========================================================
   KSMALL CART DRAWER
   ========================================================= */

/* Drawer */
.ksmall-cart-drawer {
    width: 420px;
    max-width: 92vw;
    border: 0;
}


/* =========================================================
   HEADER
   ========================================================= */

.ksmall-cart-header {
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

.ksmall-cart-header .offcanvas-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.ksmall-cart-header .offcanvas-title i {
    margin-right: 6px;
}

.ksmall-cart-subtitle {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #888888;
}


/* =========================================================
   BODY
   ========================================================= */

.ksmall-cart-body {
    padding: 18px;
    background: #ffffff;
}

.ksmall-cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* =========================================================
   CART ITEM
   ========================================================= */

.ksmall-cart-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eeeeee;
}

.ksmall-cart-item-image {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}

.ksmall-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   ITEM INFO
   ========================================================= */

.ksmall-cart-item-info {
    flex: 1;
    min-width: 0;
}

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

.ksmall-cart-item-top h6 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #222222;
}

.ksmall-cart-remove {
    border: 0;
    padding: 2px;
    background: transparent;
    color: #999999;
    cursor: pointer;
    font-size: 15px;
}

.ksmall-cart-remove:hover {
    color: #dc3545;
}

.ksmall-cart-item-vendor {
    margin-top: 3px;
    font-size: 12px;
    color: #888888;
}


/* =========================================================
   VARIATIONS
   ========================================================= */

.ksmall-cart-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.ksmall-cart-variations span {
    padding: 3px 7px;
    border-radius: 5px;
    background: #f5f5f5;
    color: #666666;
    font-size: 11px;
}


/* =========================================================
   ITEM BOTTOM
   ========================================================= */

.ksmall-cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
}

.ksmall-cart-item-bottom strong {
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   MINI QUANTITY
   ========================================================= */

.ksmall-mini-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 7px;
    overflow: hidden;
}

.ksmall-qty-btn {
    width: 28px;
    height: 27px;
    border: 0;
    background: #f8f8f8;
    color: #333333;
    cursor: pointer;
    font-size: 15px;
}

.ksmall-qty-btn:hover {
    background: #eeeeee;
}

.ksmall-mini-quantity span {
    min-width: 28px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   EMPTY CART
   ========================================================= */

.ksmall-cart-empty {
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}

.ksmall-cart-empty-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #f5f7f7;
    font-size: 30px;
    color: #999999;
}

.ksmall-cart-empty h6 {
    margin-bottom: 7px;
    font-size: 16px;
    font-weight: 700;
}

.ksmall-cart-empty p {
    max-width: 260px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #888888;
}


/* =========================================================
   FOOTER
   ========================================================= */

.ksmall-cart-footer {
    padding: 18px 20px 20px;
    border-top: 1px solid #eeeeee;
    background: #ffffff;
}

.ksmall-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ksmall-cart-total span {
    font-size: 14px;
    color: #666666;
}

.ksmall-cart-total strong {
    font-size: 20px;
    font-weight: 700;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.ksmall-cart-view-btn,
.ksmall-cart-checkout-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.ksmall-cart-view-btn {
    margin-bottom: 8px;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #333333;
}

.ksmall-cart-view-btn:hover {
    background: #f7f7f7;
    color: #222222;
}

.ksmall-cart-checkout-btn {
    border: 0;
    background: #20a6a6;
    color: #ffffff;
}

.ksmall-cart-checkout-btn:hover {
    background: #188d8d;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .ksmall-cart-drawer {
        width: 92%;
        max-width: 92%;
    }

    .ksmall-cart-header {
        padding: 16px;
    }

    .ksmall-cart-body {
        padding: 16px;
    }

    .ksmall-cart-footer {
        padding: 15px 16px 18px;
    }

    .ksmall-cart-item-image {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }
}