/* Side cart drawer (resources/views/home/sections/cart-drawer.blade.php) */
#cd_cart {
    padding: 0;
    overflow: hidden;
}
#cd_cart .cart-drawer {
    display: flex;
    flex-direction: column;
    height: 100%;
    direction: rtl;
}

#cd_cart .cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eef0f3;
}
#cd_cart .cart-drawer__title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2328;
}
#cd_cart .cart-drawer__count {
    margin-right: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #fff3eb;
    color: #fc7323;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
}
#cd_cart #remove_comp.cart-drawer__close {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #626773;
    transition: background-color .18s, color .18s;
}
#cd_cart #remove_comp.cart-drawer__close:after { content: none; }
#cd_cart #remove_comp.cart-drawer__close:hover { background: #f3f4f6; color: #1f2328; }

#cd_cart .cart-drawer__list {
    flex: 1 1 auto;
    overflow-y: auto;
    margin: 0;
    padding: 4px 20px;
}
#cd_cart .cart-drawer__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f2f4;
}
#cd_cart .cart-drawer__item:last-child { border-bottom: none; }

#cd_cart .cart-drawer__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 6px;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    background: #fff;
}
#cd_cart .cart-drawer__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#cd_cart .cart-drawer__info {
    flex: 1 1 auto;
    min-width: 0;
}
#cd_cart .cart-drawer__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1f2328;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
    text-decoration: none;
}
#cd_cart .cart-drawer__name:hover { color: #fc7323; }
#cd_cart .cart-drawer__meta {
    margin-top: 2px;
    color: #8a8f98;
    font-size: 12px;
}
#cd_cart .cart-drawer__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}
#cd_cart .cart-drawer__qty {
    color: #626773;
    font-size: 12px;
    line-height: 1.6;
}
#cd_cart .cart-drawer__qty small {
    display: block;
    color: #8a8f98;
    font-size: 11px;
}
#cd_cart .cart-drawer__price {
    text-align: left;
    white-space: nowrap;
    color: #fc7323;
    font-size: 14px;
    font-weight: 700;
}
#cd_cart .cart-drawer__price del {
    display: block;
    color: #a0a4ab;
    font-size: 11px;
    font-weight: 400;
}
#cd_cart .cart-drawer__price small,
#cd_cart .cart-drawer__total small {
    font-size: 11px;
    font-weight: 500;
}

#cd_cart .cart-drawer__remove {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    color: #a0a4ab;
    cursor: pointer;
    transition: background-color .18s, color .18s;
}
#cd_cart .cart-drawer__remove:hover { background: #fdecec; color: #e5484d; }

#cd_cart .cart-drawer__foot {
    flex: 0 0 auto;
    padding: 14px 20px 20px;
    border-top: 1px solid #eef0f3;
    background: #fff;
}
#cd_cart .cart-drawer__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #626773;
    font-size: 13px;
    margin-bottom: 6px;
}
#cd_cart .cart-drawer__total {
    color: #1f2328;
    font-size: 14px;
    font-weight: 600;
}
#cd_cart .cart-drawer__total span:last-child {
    color: #fc7323;
    font-size: 18px;
    font-weight: 700;
}
#cd_cart .cart-drawer__note {
    margin-bottom: 12px;
    color: #8a8f98;
    font-size: 11px;
}
#cd_cart .cart-drawer__checkout {
    display: block;
    padding: 13px;
    border-radius: 10px;
    background: #fc7323;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s;
}
#cd_cart .cart-drawer__checkout:hover { background: #e8621a; color: #fff; }

#cd_cart .cart-drawer__empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #a0a4ab;
}
#cd_cart .cart-drawer__empty p {
    margin: 0;
    color: #626773;
    font-size: 14px;
}
