.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 999;
    display: none;
}

    .cart-overlay.active {
        display: block;
    }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: var(--ivory);
    z-index: 1000;
    transition: right .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
}

    .cart-drawer.active {
        right: 0;
    }

.cart-drawer-header {
    padding: 22px;
    border-bottom: 1px solid rgba(0,0,0,.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-drawer-header h3 {
        margin: 0;
        font-weight: var(--fw-headline);
    }

    .cart-drawer-header button {
        border: 0;
        background: transparent;
        font-size: 32px;
        line-height: 1;
    }

.cart-drawer-body {
    padding: 20px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

    .cart-item img {
        width: 76px;
        height: 76px;
        object-fit: cover;
        border-radius: 2px;
    }

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.cart-item-price {
    color: var(--black);
    margin-bottom: 8px;
}

/*.cart-count {
    width: 70px;
    padding: 6px;
}*/

.cart-remove {
    border: 0;
    background: transparent;
    color: var(--red);
    padding: 0;
    margin-top: 8px;
}

.cart-total {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    text-align: center;
    background: var(--black);
    color: var(--ivory);
    border-radius: 0;
    text-decoration: none;
}

.cart-empty {
    text-align: center;
    padding: 50px 10px;
}
